Feature:
-
Mention
- Add isMentionEnabled props to the and
- Add userMention into the config props of the andd
- <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.'
Fix:
-
Type definition file fix for TS project
For typescript projects, addnode_modules/@sendbird/uikit-react/index.d.ts
to yourinclude
section in tsconfig file to get type definitions -
Move font import to top of CSS file
Some bundlers such as parcel throw error:
@import rules must precede all rules aside from @charset and @layer statements
Resolve this issue by moving the line to the top