@sendbird/uikit-react
Advanced tools
Changelog
[v3.3.1] (Nov 23 2022)
Fixes:
useThreadContext
channelStatus
to channelState
parentMessageInfoStatus
to parentMessageState
threadListStatus
to threadListState
enum ChannelStateTypes {
NIL = 'NIL',
LOADING = 'LOADING',
INVALID = 'INVALID',
INITIALIZED = 'INITIALIZED',
}
enum ParentMessageStateTypes {
NIL = 'NIL',
LOADING = 'LOADING',
INVALID = 'INVALID',
INITIALIZED = 'INITIALIZED',
}
enum ThreadListStateTypes {
NIL = 'NIL',
LOADING = 'LOADING',
INVALID = 'INVALID',
INITIALIZED = 'INITIALIZED',
}
Changelog
[v3.3.0] (Nov 23 2022)
Features:
Thread
. See the specific informations of this module on the Docs page
Thread
. Import it with
import Thread from "@sendbird/uikit-react/Thread"
ThreadProvider
and useThreadContext
for customization. Import it with
import { ThreadProvider, useThreadContext } from "@sendbird/uikit-react/Thread/context"
ThreadUI
, ThreadHeader
, ParentMessageInfo
, ParentMessageInfoItem
, ThreadList
, ThreadListItem
, and ThreadMessageInput
are itthreadReplySelectType
: Type of the value should be
enum ThreadReplySelectType { PARENT, THREAD }
You can see how to use it below
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
type onReplyInThread = ({ message: UserMessage | FileMessage }) => void
onQuoteMessageClick
: This function is called when user click the quote message on the message of Channel
type onQuoteMessageClick = ({ message: UserMessage | FileMessage }) => {}
onMessageAnimated
: This function is called after that message item is animated
type onMessageAnimated = () => void
onMessageHighlighted
: This function is called after that message item is highlighted
type onMessageHighlighted = () => void
ui/ThreadReplies
component
interface ThreadRepliesProps {
className?: string;
threadInfo: ThreadInfo;
onClick?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
}
Fixes:
Changelog
[v3.2.6] (Nov 14 2022)
Fix:
Changelog
[v3.2.5] (Nov 7 2022)
Fix:
channel
to channelUrl
channel
to channelUrl
channel
to channelUrl