Skip to content

Commit

Permalink
Release v3.3.2 on Dec 8 (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoonBaek authored Dec 8, 2022
1 parent 5cad9c4 commit 285df35
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 3 deletions.
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
# Changelog - v3

## [v3.3.2] (Dec 8 2022)
Features:
* Add props `renderTitle` to the <ChannelListHeader /> component
* `renderHeader` of <ChannelListHeader /> 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<string>;
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<string>;
onClose: () => void;
channel: GroupChannel;
};
ChannelSettings.overrideInviteUser?(params: OverrideInviteMemberType): void;
```

example:
```javascript
<ChannelList
overrideInviteUser={({users, onClose, channelType}) => {
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 <ChannelList />.
* 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 <App />.
* Change the props type `messageSearchQuery` of <MessageSearch /> to **MessageSearchQueryParams**.

## [v3.3.1] (Nov 23 2022)
Fixes:
* Rename properties of `useThreadContext`
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 285df35

Please sign in to comment.