@sendbird/uikit-react
Advanced tools
Changelog
[v3.15.6] (Oct 11th, 2024)
useLocalization
Hook:
"@sendbird/uikit-react/hooks/useLocalization"
ThreadReplySelectType
:
"@sendbird/uikit-react/Channel/context"
"@sendbird/uikit-react/GroupChannel/context"
MessageInput
to scroll to the caret position when pasting text.MessageInput
has been extended to '92px'
error message
on MenuItemAction
when the children prop is undefined
Changelog
[v3.15.5] (Oct 4th, 2024)
extendedMessagePayload.template
value will be displayed with TemplateMessageItemBody
.extendedMessagePayload.message_template
value will be displayed with TemplateMessageItemBody
.MessageContent
when value exists in message.extendedMessagePayload['ui']['container_type']
profile
, time
, and nickname
in extendedMessagePayload['message_template']['container_options']
Changelog
[v3.15.4] (Sep 26th, 2024)
'p'
|
| DATE_FORMAT__UNREAD_SINCE | 'p MMM dd'
|
| DATE_FORMAT__LAST_MESSAGE_CREATED_AT__TODAY | 'p'
|
| DATE_FORMAT__LAST_MESSAGE_CREATED_AT__THIS_YEAR | 'MMM d'
|
| DATE_FORMAT__LAST_MESSAGE_CREATED_AT__PREVIOUS_YEAR | 'yyyy/M/d'
|Changelog
[v3.15.3] (Sep 12th, 2024)
Checkbox
.Changelog
[v3.15.2] (Sep 6th, 2024)
message
event handlers for onSendMessageFailed
, onUpdateMessageFailed
, and onFileUploadFailed
in the eventHandlers
prop of the message input component. These handlers allow developers to respond to message send, update, and file upload failures.
<Sendbird
eventHandlers={{
message: {
onSendMessageFailed: (message, error) => {
// You can use the message parameter to create specific conditions
if (message.isUserMessage()) {
alert(`Message failed to send: ${error?.message}`);
}
},
onUpdateMessageFailed: (message, error) => {
console.log(`Failed to update message: ${message.messageId}, Error: ${error}`);
},
onFileUploadFailed: (error) => {
console.error('File upload failed', error);
},
},
}}