-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(VirtualizedMessageList): allow to merge custom virtuoso components with the SDK defaults #2140
feat(VirtualizedMessageList): allow to merge custom virtuoso components with the SDK defaults #2140
Conversation
…ts with the SDK defaults
…irtuoso-components-with-defaults
Size Change: +2.67 kB (0%) Total Size: 1.9 MB
ℹ️ View Unchanged
|
src/components/MessageList/hooks/VirtualizedMessageList/useVirtualizedMessageListComponents.tsx
Outdated
Show resolved
Hide resolved
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2140 +/- ##
==========================================
+ Coverage 83.24% 83.62% +0.38%
==========================================
Files 293 300 +7
Lines 7032 7067 +35
Branches 1892 1895 +3
==========================================
+ Hits 5854 5910 +56
+ Misses 1019 995 -24
- Partials 159 162 +3
☔ View full report in Codecov by Sentry. |
…e-custom-virtuoso-components-with-defaults' into feat/VirtualizedMessagelist/merge-custom-virtuoso-components-with-defaults
…irtuoso-components-with-defaults
🎉 This PR is included in version 10.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [11.0.0-rc.2](v11.0.0-rc.1...v11.0.0-rc.2) (2023-10-27) ### Bug Fixes * **emoji-mart:** simplify EmojiPicker & EmojiIndex integration ([#2117](#2117)) ([60c24b8](60c24b8)) ### Features * **renderText:** allow custom remark and rehype plugin composition ([#2142](#2142)) ([4a25912](4a25912)) * **VirtualizedMessageList:** allow to merge custom virtuoso components with the SDK defaults ([#2140](#2140)) ([6ea9ff0](6ea9ff0)) ### BREAKING CHANGES * **emoji-mart:** `EmojiPicker` and `EmojiIndex` have changed, see release guides in #2117 for more information
🎉 This PR is included in version 11.0.0-rc.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Allow integrators to add only some custom virtuoso components via
VirtualizedMessageListProps['additionalVirtuosoProps']['components']
and the rest to be filled with the defaults provided by the SDK.🛠 Implementation details
The
MessageList/hooks
directory structure has changed. Now the hooks used exclusively byVirtualizedMessageList
are placed inhooks/VirtualizedMessageList
and those used exclusively byMessageList
are stored inhooks/MessageList
. All the hooks that used to be exported from theMessageList/hooks
folder are still exported.I have also extracted new hooks from
VirtualizedMessageList
code and placed them intohooks/VirtualizedMessageList
. These are not exported for the integrators to use. These hooks are:useMessageSetKey
useScrollToBottomOnNewMessage
🎨 UI Changes
None.