Package Exports
- curb-virtualized-chat
- curb-virtualized-chat/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (curb-virtualized-chat) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Curb Virtualized Chat
A virtualized chat component for React applications with real-time messaging capabilities.
Installation
Install the package using pnpm:
pnpm add curb-virtualized-chatOr using npm:
npm install curb-virtualized-chatOr using yarn:
yarn add curb-virtualized-chatUsage
import { VirtualizedChat } from 'curb-virtualized-chat';
function App() {
return (
<VirtualizedChat
messages={messages}
onSendMessage={handleSendMessage}
// ... other props
/>
);
}Development
Prerequisites
- Node.js (>=16.0.0)
- pnpm (>=7.0.0)
Setup
- Clone the repository
- Install dependencies:
pnpm installBuild
To build the package:
pnpm buildThis will:
- Compile TypeScript files (
pnpm compile) - Bundle the package (
node bundle.mjs)
Development Mode
To run in watch mode for development:
pnpm devTesting
Run tests:
pnpm testLinting
Check for linting issues:
pnpm lintFix linting issues:
pnpm lint:fixFormatting
Format code:
pnpm formatDeployment
Publishing to npm
Update version in
package.json:# For patch version (0.0.7 -> 0.0.8) pnpm version patch # For minor version (0.0.7 -> 0.1.0) pnpm version minor # For major version (0.0.7 -> 1.0.0) pnpm version major
Build the package:
pnpm buildPublish to npm:
pnpm publishThe
prepublishOnlyscript will automatically run the build process before publishing.
Pre-release versions
For beta or alpha releases:
# Create a beta version
pnpm version prerelease --preid=beta
# Publish beta version
pnpm publish --tag betaDry run
To test the publishing process without actually publishing:
pnpm publish --dry-runPackage Information
- Current version: 0.0.7
- License: MIT
- Author: fdomovic
- Main file:
dist/index.js - Type definitions:
dist/index.d.ts
Peer Dependencies
- React >=17.0.0
- React DOM >=17.0.0
Keywords
react, chat, virtualized, component, messaging, real-time, ui