Commit df73f01
authored
Release v3.3.0 (#368)
[v3.3.0] (Nov 23 2022)
Features:
* Provide new module `Thread`. See the specific informations of this module on the [Docs page](https://sendbird.com/docs/uikit)
* You can use a combined component `Thread`. Import it with
```typescript
import Thread from "@sendbird/uikit-react/Thread"
```
* Also you can use `ThreadProvider` and `useThreadContext` for customization. Import it with
```typescript
import { ThreadProvider, useThreadContext } from "@sendbird/uikit-react/Thread/context"
```
* And the other UI components are provided under the Thread. `ThreadUI`, `ThreadHeader`, `ParentMessageInfo`, `ParentMessageInfoItem`, `ThreadList`, `ThreadListItem`, and `ThreadMessageInput` are it
* Add channel props
* `threadReplySelectType`: Type of the value should be
```typescript
enum ThreadReplySelectType { PARENT, THREAD }
```
You can see how to use it below
```typescript
import { ThreadReplySelectType } from "@sendbird/uikit-react/Channel/context";
<Channel
...
threadReplySelectType={ThreadReplySelectType.PARENT}
/>
```
* `animatedMessage`: Type of the value should be number(messageId)
* `onReplyInThread`: This function is called when user click the button "Reply in thread" on the message context menu
```typescript
type onReplyInThread = ({ message: UserMessage | FileMessage }) => void
```
* `onQuoteMessageClick`: This function is called when user click the quote message on the message of Channel
```typescript
type onQuoteMessageClick = ({ message: UserMessage | FileMessage }) => {}
```
* `onMessageAnimated`: This function is called after that message item is animated
```typescript
type onMessageAnimated = () => void
```
* `onMessageHighlighted`: This function is called after that message item is highlighted
```typescript
type onMessageHighlighted = () => void
```
* Add `ui/ThreadReplies` component
```typescript
interface ThreadRepliesProps {
className?: string;
threadInfo: ThreadInfo;
onClick?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
}
```
Fixes:
* Do not allow operator to unregister itself on the OperatorList of GroupChannel
* Create new group channel when user open 1:1 channel on the UserProfile
* Register the channel creator as an operator in 1:1 channel1 parent 13e74d9 commit df73f01
File tree
5 files changed
+71
-7
lines changed- scripts
- src/smart-components/Channel/context
5 files changed
+71
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
3 | 60 | | |
4 | 61 | | |
5 | 62 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
| |||
480 | 481 | | |
481 | 482 | | |
482 | 483 | | |
483 | | - | |
| 484 | + | |
484 | 485 | | |
485 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
486 | 491 | | |
487 | 492 | | |
488 | 493 | | |
| |||
1258 | 1263 | | |
1259 | 1264 | | |
1260 | 1265 | | |
1261 | | - | |
| 1266 | + | |
1262 | 1267 | | |
1263 | 1268 | | |
1264 | 1269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments