Releases: sendbird/sendbird-uikit-react
Releases · sendbird/sendbird-uikit-react
[v3.1.1] (Aug 17 2022)
Features:
- Add channel handlers to the open channel settings
- Add an open channel handler into the OpenChannelSettings component
- Use operators property to render operator list on the OpenChannelSetting
instead of fetching operators
- Export handlers through
@sendbird/uikit-react/handlers
, this is a workaround
to fix an issue where inhertiance chains break custom handler implementation- ConnectionHandler ->
@sendbird/uikit-react/handlers/ConnectionHandler
- GroupChannelHandler ->
@sendbird/uikit-react/handlers/GroupChannelHandler
- OpenChannelHandler ->
@sendbird/uikit-react/handlers/OpenChannelHandler
- UserEventHandler ->
@sendbird/uikit-react/handlers/UserEventHandler
- Example: https://codesandbox.io/s/test-3-1-1-rc-5-f94w7i
- ConnectionHandler ->
Fixes:
- Update SendableMessage to UserMessage and FileMessage
- Change the type of MessageHandler.onFailed to FailedMessageHandler
- Add missing type defns into scripts/index_d_ts
- Typo in creating channelHandlerId on the ChannelList
[v3.1.0] (Aug 03 2022)
Features:
- Support moderation in OpenChannel
- Provide moderations: mute, unmute, ban, and unban on the
OpenChannelSettings
- Provide moderations: register and unregister operator on the
OpenChannelSettings
- Add MutedParticipantList and MutedParticipantsModal into the
OpenChannelSettings
- Add BannedUserList and BannedUsersModal into the
OpenChannelSettings
- Add OperatorList and OperatorsModal into the
OpenChannelSettings
- Add AddOperatorsModal into the
OpenChannelSettings
- Provide moderations: mute, unmute, ban, and unban on the
Full Changelog: v3.0.2...v3.1.0
[v3.0.2] (Aug 03 2022)
Fixes:
- Explicitly export library as esm-module
ESM library should have "type": "module" (package.json file that is going to /dist)
This fixes Cannot use import outside module issue in next.js - Add optional chaining for createApplicationUserList
- Fix QueryInProgress warning:
React 18 strict mode glitch that causes useEffect to run twice - Cannot connect sometimes when customApiHost is empty
Connection couldnt be established with no error message when customApiHost and customWebSocketHost
were passed as empty string - Handle all chances of command not received error
Handle chances of command not recieved error in markAsRead
Experimental markasread handling -> longer times, no more call after unmount - Move typing handler in channellist into local variable
[v3.0.2-beta.0] (July 31 2022)
Fixes:
- Explicitly export library as esm-module
ESM library should have "type": "module" (package.json file that is going to /dist)
This fixes Cannot use import outside module issue in next.js - Add optional chaining for createApplicationUserList
- Cannot connect sometimes when customApiHost is empty
Connection couldnt be established with no error message when customApiHost and customWebSocketHost
were passed as empty string - Handle all chances of command not received error
Handle chances of command not recieved error in markAsRead
Experimental markasread handling -> longer times, no more call after unmount - Move typing handler in channellist into local variable
[v3.0.1] (July 28 2022)
Features:
- Accept customApiHost & customWebSocketHost as props to SendbirdProvider
- Add basic TS project sample
Fixes:
- Improve URL detection in OG message
- Add onCloseClick to MessageSearchProps
- Safe call removeGroupChannelHandler in TypingIndicator
- Apply userListQuery
- Type definition for channellist and setting
[2.7.2] (July 27 2022)
- Bugfix
- Fix: Improve URL detection in messages
[v3.0.0] (July 12 2022)
[3.0.0-beta.6] (June 03 2022)
Feature:
- Show profile on clicking a mention
- Visual highlight when user is mention
- Add session handler interface
// its recommended to memoize configureSession function
const memoizedConfigureSession = (sb) => {
const sessionHandler = new sb.SessionHandler();
sessionHandler.onSessionTokenRequired = (onSuccess, onError) => {
};
return sessionHandler;
};
// see: https://sendbird.com/docs/chat/v3/javascript/guides/authentication
<SendbirdProvider
configureSession={memoizedConfigureSession}
/>
Fix:
- Change the front-weight of Subtitle2 from 600 to 500
- Modify mention badge position on the ChannelListItem component
- Change Info Icon size to 20px on the SuggestedMentionListItem component
Fix: Mention related stuff - Modify the onMouseOver event on the SuggestedMentionList component
- Filter 'html' text when pasting text to the MessageInput component
- Hide and apply ellipsis for overflowing text on the SuggestedMentionListItem component
- Deactivate the MessageInput component when the current user is muted or the current channel is frozen
- Reset the mention states of the current channel when changing channel and closing the edit MessageInput component
[3.0.0-beta.5] (May 24 2022)]
Fixes:
- Export useChannelList
- Active disableAutoSelect props
- Remove empty CSS file to fix source map warning
DOC:
- Add info about webpack 5 breaking changes
[3.0.0-beta.3] (May 19 2022)
Fixes:
- Rate limit markAsDelivered call
- Do not render date separator when renderCustomSeparator is null
Misc:
- Update Chat SDK minimum version to
3.1.13