Releases: sendbird/sendbird-uikit-react
Releases · sendbird/sendbird-uikit-react
[v3.15.11] (Dec 19 2024)
[v3.15.10] (Dec 12 2024)
Features:
- Added
scrollRef
in GroupChannelList context
Fixes:
- Fixed broken UI
- MessageInput height becomes short when it's disabled.
- Empty UserListItem menu appears on the ChannelSettings member list of normal channel member who is not an operator of the channel.
- Displayed members' name instead of default AI chatbot channel name, like the
Group Channel
does. - Fixed an issue where editing a text parent message in a channel did not update the corresponding parent message in the Thread area in real-time.
- Fixed a GroupChannel UI error when the
Open in Channel
action is triggered in a different channel.- The
Open in Channel
implementation invokes bothsetCurrentChannel
andsetStartingPoint
.
ThesetCurrentChannel
function triggers asynchronous side effects that updatechannel
,messagesDataSource
, andstartingPoint
.
IfsetStartingPoint
is invoked before these updates are completed, it can result in the channel not being updated correctly or the starting point being improperly set.
- The
[v3.15.9] (Nov 21 2024)
Fixes:
- Fixed error handling in message handlers:
- Allow void return type in
onBefore-
handlers - Add proper error handling via
eventHandlers.message
for:- onSendMessageFailed
- onUpdateMessageFailed
- onFileUploadFailed
- Users no longer need to return an empty object from
onBefore-
due to type constraints
- Allow void return type in
- Fixed a bug where profile bottom position was not updating correctly for messages with feedback and replies:
- Profile bottom position now updates properly when messages contain feedback and reply components
- Ensures consistent profile positioning across all message types and states
[v3.15.8] (Nov 7th, 2024)
Fixes:
- Fixed an issue where the
dir
attribute was not being properly applied to message containers:- Removed
useMessageLayoutDirection
hook in favor of a more React-friendly solution - Updated
MessageList
component to directly handle text direction through thedir
attribute
- Removed
- Fixed an issue in TypingIndicatorBubble component where null was returned before hook execution
- Fixed SDK initialization parameter override issue:
- Modified Object.assign order to allow proper parameter override
- Added test case to verify
localCacheEnabled
override functionality - Ensures
sdkInitParams.localCacheEnabled
properly overrides default settings;localCacheEnabled: true
[v3.15.7] (Oct 24th, 2024)
Features:
- Added support for new file types and extensions.
- Added mime types:
'application/zip', 'application/x-rar-compressed', 'application/x-7z-compressed', 'application/x-tar', 'application/gzip', 'application/x-bzip', 'application/x-bzip2', 'application/x-xz', 'application/x-iso9660-image'
- Added extensions:
- Image:
'.apng', '.avif', '.gif', '.jpg', '.jpeg', '.jfif', '.pjpeg', '.pjp', '.png', '.svg', '.webp', '.bmp', '.ico', '.cur', '.tif', '.tiff'
- Video:
'.mp4', '.webm', '.ogv', '.3gp', '.3g2', '.avi', '.mov', '.wmv', '.mpg', '.mpeg', '.m4v', '.mkv'
- Audio:
'.aac', '.midi', '.mp3', '.oga', '.opus', '.wav', '.weba', '.3gp', '.3g2'
- Document:
'.txt', '.log', '.csv', '.rtf', '.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx'
- Archive:
'.zip', '.rar', '.7z', '.tar', '.gz', '.bz2', '.xz', '.iso'
- Image:
- Added mime types:
- Enhanced MessageBody rendering support:
- Added support for
.bmp
files asThumbnailMessage
- Added support for
.heic
files asFileMessage
for cross-browser consistency
- Added support for
Fixes:
- Fixed an issue where the
OpenChannel
message list scroll would not move upon initialization on mobile browsers. - Fixed an issue where the
MessageInput
failed to auto-scroll when pasting text. - Fixed an issue where ASCII characters appeared in the
MessageInput
when pasting non-English text.
[v3.15.6] (Oct 11th, 2024)
Features:
- Exported
useLocalization
Hook:- Provided access to stringSet and dateLocale.
- Note: Required SendbirdProvider to wrap your component for proper usage.
- Import Path:
"@sendbird/uikit-react/hooks/useLocalization"
- Exported
ThreadReplySelectType
:- Import Paths:
"@sendbird/uikit-react/Channel/context"
"@sendbird/uikit-react/GroupChannel/context"
- Import Paths:
Fixes
- Modified the
MessageInput
to scroll to the caret position when pasting text. - The maximum height of the
MessageInput
has been extended to'92px'
- Fixed an
error message
onMenuItemAction
when the children prop isundefined
[v3.15.5] (Oct 4th, 2024)
Updates
- Usage of template message feature:
- Template data in message
- removed: A message with valid
extendedMessagePayload.template
value will be displayed withTemplateMessageItemBody
. - added: A message with valid
extendedMessagePayload.message_template
value will be displayed withTemplateMessageItemBody
.
- Container type data in message
- removed: Added 'wide' width support for
MessageContent
when value exists inmessage.extendedMessagePayload['ui']['container_type']
- added: Added support for template message rendering options (boolean type):
profile
,time
, andnickname
inextendedMessagePayload['message_template']['container_options']
[v3.15.4] (Sep 26th, 2024)
Features
- Added stringSet for date format and applied them
Key Value DATE_FORMAT__MESSAGE_CREATED_AT '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'
[v3.15.3] (Sep 12th, 2024)
Fixes
- Fixed incorrect styling for
Checkbox
. - Fixed the issue where the channel list appears empty when the UIKit is rendered for the first time.
[v3.15.2] (Sep 6th, 2024)
Features
-
Introduced new
message
event handlers foronSendMessageFailed
,
onUpdateMessageFailed
, andonFileUploadFailed
in theeventHandlers
prop of the message input component. These handlers allow developers to
respond to message send, update, and file upload failures.- How to use?
<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.error(`Failed to update message: ${message.messageId}, Error: ${error}`); }, onFileUploadFailed: (error) => { console.error('File upload failed', error); }, }, }}
Fixes
- Fixed an issue where the channel UI's scroll did not work after
sending a new message. This issue was specific to the NextJS
environment.