Commit 5edb178
authored
Feature [v3] Mention (#137)
Mention
* Add isMentionEnabled props to the <App /> and <SendbirdProvider />
* Add userMention into the config props of the <App /> andd <SendbirdProvider />
* <SendbirdProvider config={{ userMention: { maxMentionCount: 10, maxSuggestionCount: 15 } }} />
* maxMentionCount: A maximum count that you can mention in the message input
* maxSuggestionCount: A maximum user count that the SuggestedMentionList suggests for user mention
* Create SuggestedMentionList component under the Channel smart component
* Create SuggestedUserMentionItem component
* Create MentionUserLabel ui component
* Add string set
* MENTION_NAME__NO_NAME: '(No name)'
* MENTION_COUNT__OVER_LIMIT: 'You can mention up to %d times per message.'1 parent 527d9c5 commit 5edb178
File tree
45 files changed
+1598
-290
lines changed- src
- lib
- smart-components
- App
- stories
- ChannelList/components/ChannelPreview
- Channel
- components
- MessageInput
- MessageList
- Message
- SuggestedMentionList
- context
- hooks
- ui
- Label
- MentionUserLabel
- __tests__
- __snapshots__
- stories
- MessageContent
- MessageInput
- __tests__
- OGMessageItemBody
- QuoteMessageInput
- TextMessageItemBody
- Word
- __tests__
- __snapshots__
- stories
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+1598
-290
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
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 | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments