Skip to content
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

fix(emoji-mart): simplify EmojiPicker & emojiSearchIndex #2117

Merged
merged 20 commits into from
Nov 27, 2023

Conversation

arnautov-anton
Copy link
Contributor

@arnautov-anton arnautov-anton commented Oct 6, 2023

BREAKING CHANGE: EmojiPicker & EmojiIndex signatures changed, EmojiIndex has been renamed to emojiSearchIndex, both EmojiPicker & emojiSearchIndex are now optional, see release guide for more information
BREAKING CHANGE: useImageFlagEmojisOnWindow flag now requires extra style sheet import, see release guide for more information

Fixes: #2116
Fixes: #2094

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2023

Codecov Report

Attention: 19 lines in your changes are missing coverage. Please review.

Comparison is base (83f31da) 83.75% compared to head (f875a4a) 83.65%.

Files Patch % Lines
src/components/AutoCompleteTextarea/List.jsx 50.00% 10 Missing ⚠️
...c/components/ChatAutoComplete/ChatAutoComplete.tsx 50.00% 4 Missing ⚠️
...c/components/MessageInput/hooks/useEmojiTrigger.ts 81.81% 0 Missing and 2 partials ⚠️
src/components/Channel/Channel.tsx 50.00% 0 Missing and 1 partial ⚠️
src/components/MessageInput/MessageInputFlat.tsx 83.33% 0 Missing and 1 partial ⚠️
...mponents/MessageInput/hooks/useMessageInputText.ts 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2117      +/-   ##
==========================================
- Coverage   83.75%   83.65%   -0.11%     
==========================================
  Files         316      309       -7     
  Lines        7191     7073     -118     
  Branches     2019     2002      -17     
==========================================
- Hits         6023     5917     -106     
+ Misses        832      821      -11     
+ Partials      336      335       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arnautov-anton arnautov-anton changed the title fix(emoji-mart): simplify EmojiPicker integration fix(emoji-mart)!: simplify EmojiPicker integration Oct 6, 2023
@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch from 41bead3 to 8ab64fd Compare October 7, 2023 08:54
@arnautov-anton arnautov-anton changed the title fix(emoji-mart)!: simplify EmojiPicker integration fix(emoji-mart): simplify EmojiPicker integration Oct 9, 2023
@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch from 4715b40 to 22aff77 Compare October 10, 2023 09:55

## Dropping support for built-in `EmojiPicker` (with breaking changes)

By default - our SDK would ship with `emoji-mart` dependency on top of which our `EmojiPicker` component is built. And since the SDK is using `emoji-mart` for this component - it was also reused for reactions (`ReactionsList` and `ReactionSelector`) and suggestion list (`MessageInput`). This solution proved to be very uncomfortable to work with when it came to replacing either of the mentioned components (or disabling them completely) and the final applications using our SDK would still bundle certain `emoji-mart` parts which weren't needed (or seemingly "disabled") resulting in sub-optimal load times. Maintaining such architecture became a burden so we're switching things a bit.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
By default - our SDK would ship with `emoji-mart` dependency on top of which our `EmojiPicker` component is built. And since the SDK is using `emoji-mart` for this component - it was also reused for reactions (`ReactionsList` and `ReactionSelector`) and suggestion list (`MessageInput`). This solution proved to be very uncomfortable to work with when it came to replacing either of the mentioned components (or disabling them completely) and the final applications using our SDK would still bundle certain `emoji-mart` parts which weren't needed (or seemingly "disabled") resulting in sub-optimal load times. Maintaining such architecture became a burden so we're switching things a bit.
By default, our SDK would ship with `emoji-mart` dependency on top of which our `EmojiPicker` component is built. The SDK used `emoji-mart` for this `EmojiPicker`, reactions (`ReactionsList` and `ReactionSelector`) and suggestion list (`MessageInput`). This solution proved to be very uncomfortable to work with when it came to replacing either of the mentioned components (or disabling them completely) and the final applications using our SDK would still bundle certain `emoji-mart` parts which weren't needed (or seemingly "disabled") resulting in sub-optimal load times. Maintaining such architecture became a burden so we're switching things a bit.

{/* TODO: extend once you have the component ready */}
{/* TODO: mention that we're dropping the EmojiContext */}

## Switching to opt-in mechanism (BREAKING CHANGE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Switching to opt-in mechanism (BREAKING CHANGE)
## Switching to the opt-in mechanism (BREAKING CHANGE)

package.json Outdated Show resolved Hide resolved
@@ -33,8 +33,6 @@ export type MessageInputProps<
additionalTextareaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
/** Function to clear the editing state while editing a message */
clearEditingState?: () => void;
/** If true, picking an emoji from the `EmojiPicker` component will close the picker */
closeEmojiPickerOnClick?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would mention this removal in the release guide

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should also be removed from the docs - in 2 mdx files

@@ -33,18 +29,15 @@ export const EditMessageForm = <

const {
clearEditingState,
closeEmojiPicker,
emojiPickerIsOpen,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removal should be reflected in the docs: closeEmojiPicker, emojiPickerIsOpen, openEmojiPicker

@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch from eb41697 to 517d67d Compare October 12, 2023 21:16
@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch from 517d67d to bd3d04a Compare October 13, 2023 13:34
@arnautov-anton arnautov-anton changed the title fix(emoji-mart): simplify EmojiPicker integration fix(emoji-mart): simplify EmojiPicker & emojiIndex integration Oct 25, 2023
@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch 2 times, most recently from 3b10450 to c6b91dc Compare October 27, 2023 12:07
@arnautov-anton arnautov-anton marked this pull request as ready for review October 27, 2023 13:27
arnautov-anton added a commit that referenced this pull request Oct 27, 2023
BREAKING CHANGE: `EmojiPicker` and `EmojiIndex` have changed, see release guides in #2117 for more information
github-actions bot pushed a commit that referenced this pull request Oct 27, 2023
# [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
@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch from e98cb6c to 225748b Compare November 27, 2023 12:52
Base automatically changed from feat/reactions to master November 27, 2023 13:00
@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch from 225748b to 7d1efc2 Compare November 27, 2023 13:12
arnautov-anton and others added 19 commits November 27, 2023 14:13
This PR bumps our CSS package to the latest RC version which separates
`emoji-mart` related styling rules and `emoji-replacement` (styling
rules for the `Chat.useImageFlagEmojisOnWindows` property) from the main
`index.css` to reduce final bundle size for integrators who do not wish
to use these stylesheets.

Fixes: #2116

NOTE: This PR is part of the `v11` release, it should should be merged
only after `v4` of `stream-chat-css` lands.
@arnautov-anton arnautov-anton force-pushed the feat/emoji-picker-delete branch from 7d1efc2 to 98d5735 Compare November 27, 2023 13:13
Copy link

github-actions bot commented Nov 27, 2023

Size Change: -248 kB (-13%) 👏

Total Size: 1.71 MB

Filename Size Change
./dist/browser.full-bundle.js 701 kB -72.7 kB (-9%)
./dist/browser.full-bundle.min.js 389 kB -67.4 kB (-15%) 👏
./dist/components/AutoCompleteTextarea/Item.js 527 B +30 B (+6%) 🔍
./dist/components/AutoCompleteTextarea/List.js 1.52 kB +37 B (+2%)
./dist/components/AutoCompleteTextarea/Textarea.js 6.75 kB +171 B (+3%)
./dist/components/Channel/Channel.js 8.25 kB -175 B (-2%)
./dist/components/Channel/emojiData.js 0 B -464 B (removed) 🏆
./dist/components/ChatAutoComplete/ChatAutoComplete.js 1.25 kB +187 B (+18%) ⚠️
./dist/components/MessageInput/DefaultTriggerProvider.js 442 B +3 B (+1%)
./dist/components/MessageInput/EditMessageForm.js 1.05 kB -124 B (-11%) 👏
./dist/components/MessageInput/EmojiPicker.js 0 B -619 B (removed) 🏆
./dist/components/MessageInput/hooks/useCreateMessageInputContext.js 1.39 kB -94 B (-6%)
./dist/components/MessageInput/hooks/useEmojiIndex.js 0 B -268 B (removed) 🏆
./dist/components/MessageInput/hooks/useEmojiPicker.js 0 B -766 B (removed) 🏆
./dist/components/MessageInput/hooks/useEmojiTrigger.js 734 B +234 B (+47%) 🚨
./dist/components/MessageInput/hooks/useMessageInputState.js 2.74 kB -287 B (-9%)
./dist/components/MessageInput/hooks/useMessageInputText.js 914 B -3 B (0%)
./dist/components/MessageInput/index.js 173 B -8 B (-4%)
./dist/components/MessageInput/MessageInput.js 641 B +56 B (+10%) ⚠️
./dist/components/MessageInput/MessageInputFlat.js 2.36 kB -355 B (-13%) 👏
./dist/components/MessageInput/MessageInputSmall.js 1.68 kB -101 B (-6%)
./dist/context/DefaultEmoji.js 0 B -119 B (removed) 🏆
./dist/context/DefaultEmojiPicker.js 0 B -124 B (removed) 🏆
./dist/context/EmojiContext.js 0 B -765 B (removed) 🏆
./dist/context/index.js 121 B -7 B (-5%)
./dist/css/index.css 26.7 kB -1.7 kB (-6%)
./dist/css/v2/index.css 18.3 kB -1.78 kB (-9%)
./dist/css/v2/index.layout.css 7.44 kB -279 B (-4%)
./dist/i18n/de.json 1.82 kB -15 B (-1%)
./dist/i18n/en.json 1.12 kB -8 B (-1%)
./dist/i18n/es.json 1.83 kB -15 B (-1%)
./dist/i18n/fr.json 1.85 kB -13 B (-1%)
./dist/i18n/hi.json 2.08 kB -17 B (-1%)
./dist/i18n/it.json 1.83 kB -19 B (-1%)
./dist/i18n/ja.json 2.03 kB -19 B (-1%)
./dist/i18n/ko.json 1.97 kB -8 B (0%)
./dist/i18n/nl.json 1.75 kB -16 B (-1%)
./dist/i18n/pt.json 1.77 kB -16 B (-1%)
./dist/i18n/ru.json 2.23 kB -27 B (-1%)
./dist/i18n/tr.json 1.78 kB -10 B (-1%)
./dist/index.cjs.js 282 kB -96.7 kB (-26%) 🎉
./dist/stream-emoji.json 0 B -53 kB (removed) 🏆
./dist/components/Emojis/EmojiPicker.js 1.29 kB +1.29 kB (new file) 🆕
./dist/components/Emojis/index.cjs.js 1.7 kB +1.7 kB (new file) 🆕
./dist/components/Emojis/index.js 51 B +51 B (new file) 🆕
./dist/css/v2/emoji-mart.css 1.84 kB +1.84 kB (new file) 🆕
./dist/css/v2/emoji-replacement.css 299 B +299 B (new file) 🆕
./dist/icons-427fd8d5.js 44.1 kB +44.1 kB (new file) 🆕
./dist/index_UMD.js 175 B +175 B (new file) 🆕
ℹ️ View Unchanged
Filename Size
./dist/components/Attachment/attachment-sizing.js 1.08 kB
./dist/components/Attachment/Attachment.js 1.01 kB
./dist/components/Attachment/AttachmentActions.js 524 B
./dist/components/Attachment/AttachmentContainer.js 2.09 kB
./dist/components/Attachment/Audio.js 1.64 kB
./dist/components/Attachment/Card.js 1.76 kB
./dist/components/Attachment/DownloadButton.js 259 B
./dist/components/Attachment/FileAttachment.js 555 B
./dist/components/Attachment/FileSizeIndicator.js 240 B
./dist/components/Attachment/hooks/useAudioController.js 612 B
./dist/components/Attachment/icons.js 573 B
./dist/components/Attachment/index.js 109 B
./dist/components/Attachment/UnsupportedAttachment.js 267 B
./dist/components/Attachment/utils.js 1.65 kB
./dist/components/AutoCompleteTextarea/Header.js 332 B
./dist/components/AutoCompleteTextarea/index.js 157 B
./dist/components/AutoCompleteTextarea/types.js 31 B
./dist/components/AutoCompleteTextarea/utils.js 834 B
./dist/components/Avatar/Avatar.js 740 B
./dist/components/Avatar/index.js 46 B
./dist/components/Channel/channelState.js 1.04 kB
./dist/components/Channel/hooks/useChannelContainerClasses.js 353 B
./dist/components/Channel/hooks/useCreateChannelStateContext.js 1.49 kB
./dist/components/Channel/hooks/useCreateTypingContext.js 194 B
./dist/components/Channel/hooks/useEditMessageHandler.js 252 B
./dist/components/Channel/hooks/useIsMounted.js 168 B
./dist/components/Channel/hooks/useMentionsHandlers.js 422 B
./dist/components/Channel/index.js 117 B
./dist/components/Channel/LoadingChannel.js 360 B
./dist/components/Channel/utils.js 339 B
./dist/components/ChannelHeader/ChannelHeader.js 896 B
./dist/components/ChannelHeader/icons.js 458 B
./dist/components/ChannelHeader/index.js 53 B
./dist/components/ChannelList/ChannelList.js 2.95 kB
./dist/components/ChannelList/ChannelListMessenger.js 448 B
./dist/components/ChannelList/hooks/index.js 196 B
./dist/components/ChannelList/hooks/useChannelDeletedListener.js 409 B
./dist/components/ChannelList/hooks/useChannelHiddenListener.js 408 B
./dist/components/ChannelList/hooks/useChannelTruncatedListener.js 338 B
./dist/components/ChannelList/hooks/useChannelUpdatedListener.js 572 B
./dist/components/ChannelList/hooks/useChannelVisibleListener.js 574 B
./dist/components/ChannelList/hooks/useConnectionRecoveredListener.js 236 B
./dist/components/ChannelList/hooks/useMessageNewListener.js 509 B
./dist/components/ChannelList/hooks/useMobileNavigation.js 276 B
./dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.js 784 B
./dist/components/ChannelList/hooks/useNotificationMessageNewListener.js 661 B
./dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.js 369 B
./dist/components/ChannelList/hooks/usePaginatedChannels.js 1.45 kB
./dist/components/ChannelList/hooks/useUserPresenceChangedListener.js 424 B
./dist/components/ChannelList/index.js 78 B
./dist/components/ChannelList/utils.js 314 B
./dist/components/ChannelPreview/ChannelPreview.js 908 B
./dist/components/ChannelPreview/ChannelPreviewMessenger.js 881 B
./dist/components/ChannelPreview/hooks/index.js 97 B
./dist/components/ChannelPreview/hooks/useChannelPreviewInfo.js 431 B
./dist/components/ChannelPreview/hooks/useIsChannelMuted.js 280 B
./dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.js 829 B
./dist/components/ChannelPreview/index.js 81 B
./dist/components/ChannelPreview/utils.js 695 B
./dist/components/ChannelSearch/ChannelSearch.js 1.11 kB
./dist/components/ChannelSearch/hooks/useChannelSearch.js 2.2 kB
./dist/components/ChannelSearch/icons.js 701 B
./dist/components/ChannelSearch/index.js 85 B
./dist/components/ChannelSearch/SearchBar.js 1.29 kB
./dist/components/ChannelSearch/SearchInput.js 335 B
./dist/components/ChannelSearch/SearchResults.js 1.54 kB
./dist/components/ChannelSearch/utils.js 89 B
./dist/components/Chat/Chat.js 952 B
./dist/components/Chat/hooks/useChannelsQueryState.js 212 B
./dist/components/Chat/hooks/useChat.js 1.44 kB
./dist/components/Chat/hooks/useCreateChatContext.js 650 B
./dist/components/Chat/hooks/useCustomStyles.js 649 B
./dist/components/Chat/index.js 71 B
./dist/components/ChatAutoComplete/index.js 56 B
./dist/components/ChatDown/ChatDown.js 530 B
./dist/components/ChatDown/icons.js 1.26 kB
./dist/components/ChatDown/index.js 48 B
./dist/components/CommandItem/CommandItem.js 265 B
./dist/components/CommandItem/index.js 51 B
./dist/components/DateSeparator/DateSeparator.js 514 B
./dist/components/DateSeparator/index.js 53 B
./dist/components/EmoticonItem/EmoticonItem.js 417 B
./dist/components/EmoticonItem/index.js 52 B
./dist/components/EmptyStateIndicator/EmptyStateIndicator.js 458 B
./dist/components/EmptyStateIndicator/icons.js 323 B
./dist/components/EmptyStateIndicator/index.js 59 B
./dist/components/EventComponent/EventComponent.js 831 B
./dist/components/EventComponent/index.js 52 B
./dist/components/Gallery/Gallery.js 1.05 kB
./dist/components/Gallery/Image.js 638 B
./dist/components/Gallery/index.js 64 B
./dist/components/Gallery/ModalGallery.js 341 B
./dist/components/index.js 307 B
./dist/components/InfiniteScrollPaginator/index.js 54 B
./dist/components/InfiniteScrollPaginator/InfiniteScroll.js 1.43 kB
./dist/components/Loading/index.js 76 B
./dist/components/Loading/LoadingChannels.js 285 B
./dist/components/Loading/LoadingErrorIndicator.js 366 B
./dist/components/Loading/LoadingIndicator.js 671 B
./dist/components/LoadMore/index.js 68 B
./dist/components/LoadMore/LoadMoreButton.js 530 B
./dist/components/LoadMore/LoadMorePaginator.js 444 B
./dist/components/Message/FixedHeightMessage.js 1.7 kB
./dist/components/Message/hooks/index.js 134 B
./dist/components/Message/hooks/useActionHandler.js 751 B
./dist/components/Message/hooks/useDeleteHandler.js 616 B
./dist/components/Message/hooks/useEditHandler.js 300 B
./dist/components/Message/hooks/useFlagHandler.js 753 B
./dist/components/Message/hooks/useMentionsHandler.js 387 B
./dist/components/Message/hooks/useMuteHandler.js 941 B
./dist/components/Message/hooks/useOpenThreadHandler.js 266 B
./dist/components/Message/hooks/usePinHandler.js 930 B
./dist/components/Message/hooks/useReactionHandler.js 2.12 kB
./dist/components/Message/hooks/useRetryHandler.js 343 B
./dist/components/Message/hooks/useUserHandler.js 223 B
./dist/components/Message/hooks/useUserRole.js 735 B
./dist/components/Message/icons.js 1.63 kB
./dist/components/Message/index.js 162 B
./dist/components/Message/Message.js 1.99 kB
./dist/components/Message/MessageDeleted.js 374 B
./dist/components/Message/MessageOptions.js 900 B
./dist/components/Message/MessageRepliesCountButton.js 523 B
./dist/components/Message/MessageSimple.js 2.27 kB
./dist/components/Message/MessageStatus.js 1.23 kB
./dist/components/Message/MessageText.js 1.06 kB
./dist/components/Message/MessageTimestamp.js 546 B
./dist/components/Message/QuotedMessage.js 817 B
./dist/components/Message/renderText/componentRenderers/Anchor.js 327 B
./dist/components/Message/renderText/componentRenderers/Emoji.js 173 B
./dist/components/Message/renderText/componentRenderers/index.js 65 B
./dist/components/Message/renderText/componentRenderers/Mention.js 195 B
./dist/components/Message/renderText/index.js 132 B
./dist/components/Message/renderText/regex.js 374 B
./dist/components/Message/renderText/rehypePlugins/emojiMarkdownPlugin.js 252 B
./dist/components/Message/renderText/rehypePlugins/index.js 72 B
./dist/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.js 1.04 kB
./dist/components/Message/renderText/remarkPlugins/htmlToTextPlugin.js 178 B
./dist/components/Message/renderText/remarkPlugins/index.js 75 B
./dist/components/Message/renderText/remarkPlugins/keepLineBreaksPlugin.js 531 B
./dist/components/Message/renderText/renderText.js 1.76 kB
./dist/components/Message/renderText/types.js 31 B
./dist/components/Message/types.js 31 B
./dist/components/Message/utils.js 2.76 kB
./dist/components/MessageActions/index.js 62 B
./dist/components/MessageActions/MessageActions.js 1.32 kB
./dist/components/MessageActions/MessageActionsBox.js 1.33 kB
./dist/components/MessageInput/AttachmentPreviewList.js 1.07 kB
./dist/components/MessageInput/CooldownTimer.js 341 B
./dist/components/MessageInput/DropzoneProvider.js 548 B
./dist/components/MessageInput/hooks/index.js 78 B
./dist/components/MessageInput/hooks/useAttachments.js 976 B
./dist/components/MessageInput/hooks/useCommandTrigger.js 903 B
./dist/components/MessageInput/hooks/useCooldownTimer.js 760 B
./dist/components/MessageInput/hooks/useFileState.js 169 B
./dist/components/MessageInput/hooks/useFileUploads.js 1.22 kB
./dist/components/MessageInput/hooks/useImageUploads.js 1.33 kB
./dist/components/MessageInput/hooks/useLinkPreviews.js 1.37 kB
./dist/components/MessageInput/hooks/usePasteHandler.js 830 B
./dist/components/MessageInput/hooks/useSubmitHandler.js 2.53 kB
./dist/components/MessageInput/hooks/useUserTrigger.js 1.88 kB
./dist/components/MessageInput/hooks/utils.js 1.69 kB
./dist/components/MessageInput/icons.js 2.84 kB
./dist/components/MessageInput/LinkPreviewList.js 778 B
./dist/components/MessageInput/QuotedMessagePreview.js 916 B
./dist/components/MessageInput/types.js 387 B
./dist/components/MessageInput/UploadsPreview.js 871 B
./dist/components/MessageList/ConnectionStatus.js 457 B
./dist/components/MessageList/CustomNotification.js 300 B
./dist/components/MessageList/GiphyPreviewMessage.js 197 B
./dist/components/MessageList/hooks/index.js 183 B
./dist/components/MessageList/hooks/MessageList/index.js 108 B
./dist/components/MessageList/hooks/MessageList/useEnrichedMessages.js 646 B
./dist/components/MessageList/hooks/MessageList/useMessageListElements.js 1.04 kB
./dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.js 916 B
./dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.js 887 B
./dist/components/MessageList/hooks/useLastReadData.js 266 B
./dist/components/MessageList/hooks/VirtualizedMessageList/index.js 141 B
./dist/components/MessageList/hooks/VirtualizedMessageList/useGiphyPreview.js 381 B
./dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.js 388 B
./dist/components/MessageList/hooks/VirtualizedMessageList/useNewMessageNotification.js 691 B
./dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.js 1.21 kB
./dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.js 428 B
./dist/components/MessageList/hooks/VirtualizedMessageList/useShouldForceScrollToBottom.js 384 B
./dist/components/MessageList/icons.js 368 B
./dist/components/MessageList/index.js 176 B
./dist/components/MessageList/MessageList.js 2.87 kB
./dist/components/MessageList/MessageListMainPanel.js 258 B
./dist/components/MessageList/MessageListNotifications.js 455 B
./dist/components/MessageList/MessageNotification.js 293 B
./dist/components/MessageList/ScrollToBottomButton.js 1.08 kB
./dist/components/MessageList/utils.js 2.79 kB
./dist/components/MessageList/VirtualizedMessageList.js 3.86 kB
./dist/components/MessageList/VirtualizedMessageListComponents.js 1.62 kB
./dist/components/MML/index.js 43 B
./dist/components/MML/MML.js 535 B
./dist/components/Modal/icons.js 435 B
./dist/components/Modal/index.js 45 B
./dist/components/Modal/Modal.js 776 B
./dist/components/ReactFileUtilities/FileIcon/FileIcon.js 536 B
./dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.js 2.73 kB
./dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.js 5.46 kB
./dist/components/ReactFileUtilities/FileIcon/iconMap.js 800 B
./dist/components/ReactFileUtilities/FileIcon/index.js 53 B
./dist/components/ReactFileUtilities/FileIcon/mimeTypes.js 834 B
./dist/components/ReactFileUtilities/FilePreviewer.js 634 B
./dist/components/ReactFileUtilities/FileUploadButton.js 501 B
./dist/components/ReactFileUtilities/IconButton.js 273 B
./dist/components/ReactFileUtilities/icons/AttachmentIcon.js 397 B
./dist/components/ReactFileUtilities/icons/CloseIcon.js 560 B
./dist/components/ReactFileUtilities/icons/FilePlaceholderIcon.js 1.52 kB
./dist/components/ReactFileUtilities/icons/index.js 96 B
./dist/components/ReactFileUtilities/icons/PictureIcon.js 333 B
./dist/components/ReactFileUtilities/icons/RetryIcon.js 325 B
./dist/components/ReactFileUtilities/ImageDropzone.js 1.02 kB
./dist/components/ReactFileUtilities/ImagePreviewer.js 737 B
./dist/components/ReactFileUtilities/ImageUploadButton.js 430 B
./dist/components/ReactFileUtilities/index.js 177 B
./dist/components/ReactFileUtilities/LoadingIndicator.js 307 B
./dist/components/ReactFileUtilities/Thumbnail.js 468 B
./dist/components/ReactFileUtilities/ThumbnailPlaceholder.js 384 B
./dist/components/ReactFileUtilities/types.js 31 B
./dist/components/ReactFileUtilities/UploadButton.js 289 B
./dist/components/ReactFileUtilities/utils.js 1.21 kB
./dist/components/Reactions/hooks/useProcessReactions.js 881 B
./dist/components/Reactions/index.js 108 B
./dist/components/Reactions/reactionOptions.js 330 B
./dist/components/Reactions/ReactionSelector.js 1.81 kB
./dist/components/Reactions/ReactionsList.js 1.19 kB
./dist/components/Reactions/SimpleReactionsList.js 1.3 kB
./dist/components/Reactions/SpriteImage.js 622 B
./dist/components/Reactions/StreamEmoji.js 340 B
./dist/components/Reactions/utils/utils.js 300 B
./dist/components/SafeAnchor/index.js 74 B
./dist/components/SafeAnchor/SafeAnchor.js 304 B
./dist/components/Thread/icons.js 370 B
./dist/components/Thread/index.js 71 B
./dist/components/Thread/Thread.js 1.48 kB
./dist/components/Thread/ThreadHead.js 314 B
./dist/components/Thread/ThreadHeader.js 460 B
./dist/components/Thread/ThreadStart.js 283 B
./dist/components/Tooltip/hooks/index.js 61 B
./dist/components/Tooltip/hooks/useEnterLeaveHandlers.js 305 B
./dist/components/Tooltip/index.js 47 B
./dist/components/Tooltip/Tooltip.js 478 B
./dist/components/TypingIndicator/index.js 55 B
./dist/components/TypingIndicator/TypingIndicator.js 1.22 kB
./dist/components/UserItem/index.js 48 B
./dist/components/UserItem/UserItem.js 628 B
./dist/components/Window/index.js 46 B
./dist/components/Window/Window.js 372 B
./dist/constants/limits.js 96 B
./dist/constants/messageTypes.js 99 B
./dist/context/ChannelActionContext.js 588 B
./dist/context/ChannelStateContext.js 586 B
./dist/context/ChatContext.js 573 B
./dist/context/ComponentContext.js 579 B
./dist/context/MessageContext.js 580 B
./dist/context/MessageInputContext.js 350 B
./dist/context/MessageListContext.js 377 B
./dist/context/TranslationContext.js 783 B
./dist/context/TypingContext.js 581 B
./dist/context/utils/getDisplayName.js 102 B
./dist/i18n/index.js 67 B
./dist/i18n/Streami18n.js 5.76 kB
./dist/i18n/translations.js 172 B
./dist/i18n/utils.js 528 B
./dist/index.js 72 B
./dist/types/types.js 31 B
./dist/utils/browsers.js 156 B
./dist/utils/deprecationWarning.js 317 B
./dist/utils/generateRandomId.js 130 B
./dist/utils/getChannel.js 968 B
./dist/utils/getWholeChar.js 411 B
./dist/utils/index.js 79 B
./dist/version.js 60 B

compressed-size-action

@arnautov-anton arnautov-anton merged commit 3657ed0 into master Nov 27, 2023
6 of 7 checks passed
@arnautov-anton arnautov-anton deleted the feat/emoji-picker-delete branch November 27, 2023 14:04
arnautov-anton added a commit that referenced this pull request Nov 27, 2023
BREAKING CHANGE: `EmojiPicker` & `EmojiIndex` signatures changed,
`EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker`
& `emojiSearchIndex` are now optional, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more
information
BREAKING CHANGE: `useImageFlagEmojisOnWindow` flag now requires extra
style sheet import, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information

Fixes: #2116
Fixes: #2094
arnautov-anton added a commit that referenced this pull request Nov 27, 2023
Fixes: #2116
Fixes: #2094

BREAKING CHANGE: `EmojiPicker` & `EmojiIndex` signatures changed, `EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker` & `emojiSearchIndex` are now optional, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
BREAKING CHANGE: `useImageFlagEmojisOnWindow` flag now requires extra style sheet import, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
github-actions bot pushed a commit that referenced this pull request Nov 27, 2023
## [11.0.0](v10.20.1...v11.0.0) (2023-11-27)

### ⚠ BREAKING CHANGES

* **emoji-mart:** `EmojiPicker` & `EmojiIndex` signatures changed, `EmojiIndex` has been renamed to `emojiSearchIndex`, both `EmojiPicker` & `emojiSearchIndex` are now optional, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
* **emoji-mart:** `useImageFlagEmojisOnWindow` flag now requires extra style sheet import, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
* **emoji-mart:** `reactionOptions` signature has changed, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information
* the first argument to `doSendMessageRequest` is now Channel instance instead of `Channel.cid`
* apply the remark plugins `keepLineBreaksPlugin`, `htmlToTextPlugin` as a part of the default message text parsing, upgrade `unified` libraries

### Bug Fixes

* **emoji-mart:** new reactions  ([#1947](#1947)) ([14bef23](14bef23)), closes [#1935](#1935) [#1637](#1637) [#1437](#1437) [#2159](#2159)
* **emoji-mart:** simplify EmojiPicker & emojiSearchIndex ([#2117](#2117)) ([a6e0a87](a6e0a87)), closes [#2116](#2116) [#2094](#2094)

### Features

* apply keepLineBreaksPlugin & htmlToTextPlugin plugins to text rendering by default ([#2169](#2169)) ([e8047f2](e8047f2)), closes [#2170](#2170) [/github.com/GetStream/stream-chat-react/blob/f0bc7ba2532760cabb1db01e685a35bd3b0b64c5/src/components/Message/renderText/renderText.tsx#L158](https://github.com/GetStream//github.com/GetStream/stream-chat-react/blob/f0bc7ba2532760cabb1db01e685a35bd3b0b64c5/src/components/Message/renderText/renderText.tsx/issues/L158)
* export MessageListNotifications and LinkPreviewList components and component props ([#2181](#2181)) ([a5a7e5a](a5a7e5a))
* require Channel instance as the first argument to doSendMessageRequest ([#2171](#2171)) ([2a06b88](2a06b88))

### Chores

* **deps:** bump stream-chat from 8.14.0 to 8.14.2 ([#2179](#2179)) ([4e6a59d](4e6a59d))
* **deps:** bump stream-chat from 8.14.2 to 8.14.3 ([#2185](#2185)) ([3dd8dab](3dd8dab))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Flag for issues introducing breaking changes to the SDK. v11.0.0 To be release with v11.0.0
Projects
None yet
4 participants