Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3.3.0] (Nov 23 2022) Features: * Provide new module `Thread`. See the specific informations of this module on the [Docs page](https://sendbird.com/docs/uikit) * You can use a combined component `Thread`. Import it with ```typescript import Thread from "@sendbird/uikit-react/Thread" ``` * Also you can use `ThreadProvider` and `useThreadContext` for customization. Import it with ```typescript import { ThreadProvider, useThreadContext } from "@sendbird/uikit-react/Thread/context" ``` * And the other UI components are provided under the Thread. `ThreadUI`, `ThreadHeader`, `ParentMessageInfo`, `ParentMessageInfoItem`, `ThreadList`, `ThreadListItem`, and `ThreadMessageInput` are it * Add channel props * `threadReplySelectType`: Type of the value should be ```typescript enum ThreadReplySelectType { PARENT, THREAD } ``` You can see how to use it below ```typescript import { ThreadReplySelectType } from "@sendbird/uikit-react/Channel/context"; <Channel ... threadReplySelectType={ThreadReplySelectType.PARENT} /> ``` * `animatedMessage`: Type of the value should be number(messageId) * `onReplyInThread`: This function is called when user click the button "Reply in thread" on the message context menu ```typescript type onReplyInThread = ({ message: UserMessage | FileMessage }) => void ``` * `onQuoteMessageClick`: This function is called when user click the quote message on the message of Channel ```typescript type onQuoteMessageClick = ({ message: UserMessage | FileMessage }) => {} ``` * `onMessageAnimated`: This function is called after that message item is animated ```typescript type onMessageAnimated = () => void ``` * `onMessageHighlighted`: This function is called after that message item is highlighted ```typescript type onMessageHighlighted = () => void ``` * Add `ui/ThreadReplies` component ```typescript interface ThreadRepliesProps { className?: string; threadInfo: ThreadInfo; onClick?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void; } ``` Fixes: * Do not allow operator to unregister itself on the OperatorList of GroupChannel * Create new group channel when user open 1:1 channel on the UserProfile * Register the channel creator as an operator in 1:1 channel
- Loading branch information