
Security News
Knip Hits 500 Releases with v5.62.0, Improving TypeScript Config Detection and Plugin Integrations
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
mui-react-chat
Advanced tools
npm install sportstalk-react-chat --save
yarn add sportstalk-react-chat
This library version using the Sportstalk Chat SDK v3.17
import React from 'react'
import { SportstalkChat, MessageItemActions } from 'sportstalk-react-chat'
export function Example() {
renderCustomActions = props =>
<MessageItemActions {...props} onDeleteMessage={...} />
return (
<SportstalkChat
appId={[YOUR_APP_ID]}
apiToken={[YOUR_API_TOKEN]}
renderActions={renderCustomActions}
/>
)
}
Name | Type | Required | Description |
---|---|---|---|
appId | string | Yes | Sportstalk app ID |
apiToken | string | Yes | Sportstalk app token |
ref | ReactRef | No | Access to Sportstalk Client SDK ( see here) |
onSend | function | No | Callback function when user send message |
renderLoading | function | No | Custom loading view compontnt when initializing app |
renderAvatar | function | No | Custom message avatar |
renderMessage | function | No | Custom text message |
renderAdvertisement | function | No | Custom component for Advertisement messages |
renderInputToolbar | function | No | Custom input bar |
renderActions | function | No | Custom action on the right of the messages |
Common message interface
interface IMessage {
id: string;
text: string;
direction: Message.MessageDirection;
createdAt?: string;
updatedAt?: string;
author?: TypedMessageAuthor;
replyTo?: Partial<IMessage>;
type?: Message.MessageType;
reactions: TypedMessageReaction[];
reports: TypedMessageReport[];
customPayload?: any;
}
User interface
interface User {
userid: string;
handle?: string;
handlelowercase?: string;
displayname?: string;
pictureurl?: string;
profileurl?: string;
banned?: boolean;
shadowbanned?: boolean;
role?: UserRole;
customtags?: string[];
shadowbanexpires?: string | null | undefined;
}
FAQs
## 1. Installation
The npm package mui-react-chat receives a total of 0 weekly downloads. As such, mui-react-chat popularity was classified as not popular.
We found that mui-react-chat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.