diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e4adc003..33133f3b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,60 @@ # Changelog - v3 +## [v3.3.2] (Dec 8 2022) +Features: +* Add props `renderTitle` to the component + * `renderHeader` of will be deprecated +* Add interface overrideInviteUser + + Add overrideInviteUser to ChannelList, CreateChannel and ChannelSettings + + This interface overrides InviteMember functionality. Customer has to create the channel + and close the popup manually + + ```javascript + export type OverrideInviteUserType = { + users: Array; + onClose: () => void; + channelType: 'group' | 'supergroup' | 'broadcast'; + }; + export interface ChannelListProps { + overrideInviteUser?(params: OverrideInviteUserType): void; + } + export interface CreateChannelProps { + overrideInviteUser?(params: OverrideInviteUserType): void; + } + export type OverrideInviteMemberType = { + users: Array; + onClose: () => void; + channel: GroupChannel; + }; + ChannelSettings.overrideInviteUser?(params: OverrideInviteMemberType): void; + ``` + + example: + ```javascript + { + createMyChannel(users, channelType).then(() => { + onClose(); + }) + }} + /> + ``` + +Fixes: +* Allow to override entire message search query. + Now message search query supports searching messages in multiple channels. +* Modify type definitions for props `ThreadUIProps.renderMessage`. +* Remove duplication of create channel button when using `renderHeader` of . +* The online status should work even configureSession is provided. + This was disabled because of a bug in sessionHandler in SDK now, we can re-enable this. +* Create channel sometimes had empty operatorID. + Use sendbird state to access currentUserID and use it incase prop value is empty. + Also, remove legacy HOC pattern. +* Add the props type `isMentionEnabled` of . +* Change the props type `messageSearchQuery` of to **MessageSearchQueryParams**. + ## [v3.3.1] (Nov 23 2022) Fixes: * Rename properties of `useThreadContext` diff --git a/package-lock.json b/package-lock.json index 024e38ea9..f235f80b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sendbird/uikit-react", - "version": "3.3.1", + "version": "3.3.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sendbird/uikit-react", - "version": "3.3.1", + "version": "3.3.2", "license": "SEE LICENSE IN LICENSE.md", "dependencies": { "@sendbird/chat": "^4.1.1", diff --git a/package.json b/package.json index 7c1e4a421..4ddac33b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sendbird/uikit-react", - "version": "3.3.1", + "version": "3.3.2", "description": "React based UI kit for sendbird", "main": "dist/index.js", "style": "dist/index.css",