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

feat: remove legacy style components #2394

Merged
merged 18 commits into from
May 27, 2024

Conversation

MartinCupela
Copy link
Contributor

@MartinCupela MartinCupela commented May 21, 2024

🎯 Goal

Remove all the code related to deprecated stylesheet in @stream-io/stream-chat-css.

Depends on GetStream/stream-chat-css#296

🛠 Implementation details

  1. Drop themeVersion property from ChatContext/ChatProvider ✅

  2. Drop all of the markup which relies on themeVersion

  • Audio.tsx - drop or rename V1 component to AudioLegacy ✅
  • Card.tsx - drop or rename V1 component to CardLegacy ✅
  • FileAttachment.tsx - drop or rename V1 component to FileAttachmentLegacy ✅
  • ChannelSearch.tsx - remove showSearchBarV2 condition ✅
  • SearchResults.tsx - remove conditions, adjust markup ✅
  • EmojiPicker.tsx - remove conditions and associated classNames, drop related icons ✅
  • MessageRepliesCountButton.tsx - remove condition and related icon ✅
  • MessageSimple.tsx - drop conditions and V1 markup ✅
  • MessageStatus.tsx - drop conditions and V1 markup ✅
  • EditMessageForm.tsx - drop conditions and V1 markup ✅
  • MessageInputFlat.tsx - drop MessageInputV1 ✅
  • QuotedMessagePreview.tsx - drop conditions and V1 markup ✅
  • SendButton.tsx - drop conditions and V1 markup ✅
  • MessageListMainPanel.tsx - drop conditions and V1 markup ✅
  • Modal.tsx - drop conditions and V1 markup ✅
  • SimpleReactionsList.tsx - drop conditions and V1 markup ✅
  • SimpleReactionsList.tsx - (possibly remove the whole component?)
  • Thread.tsx - drop conditions and V1 markup ✅
  • TypingIndicator.tsx - drop conditions and V1 markup ✅
  • UserItem.tsx - drop conditions and V1 markup ✅
  • Avatar.tsx - adjust to CSS vars (like in this [component](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Reactions/StreamEmoji.tsx)) ✅
  • MessageInputSmall.tsx - remove file ✅
  • ReactionSelector.tsx - should we remove detailedView prop if markup displayed with it is not styled in v2? ⁉️
  1. remove V1-related classNames from components which work with both versions ✅

  2. drop theme-V1-related deprecated components

  • Tooltip.tsx -> Tooltip (?) - FileUploadButton.tsx + AttachmentIcon.tsx ✅
  • FileIcon.tsx -> drop version property and V1 icons ✅
  • UploadsPreview.tsx - MessageInputSmall.tsx ✅
  • MessageInput/icons.tsx -> EmojiIconLarge ✅
  • MessageInput/icons.tsx -> EmojiIconSmall ✅
  • MessageInput/icons.tsx -> FileUploadIcon ✅
  • MessageInput/icons.tsx -> FileUploadIconFlat ✅
  • MessageInput/icons.tsx -> SendIconV1 ✅
  • MessageList/icons.tsx -> ArrowUp - will keep as complementary to ArrowDown
  • Message/icons.tsx -> ReplyIcon ✅
  • Message/icons.tsx -> DeliveredCheckIcon ✅
  • Message/icons.tsx -> ErrorIcon ✅
  • Message/icons.tsx -> PinIcon - will keep for those who want to implement pinned messages list 🚫
  • Message/icons.tsx -> PinIndicator - will keep for those who want to implement pinned messages list 🚫
  1. Fix bug in MessageInputFlat - not allowing to retry uploads as numberOfUploads does not include failed uploads ✅
  2. remove theme V1 CSS from final bundle and exports, move everything related to v2 styling from dist/css/v2 folder to dist/css, drop v2 folder ✅
  3. v12 docs & drop [Legacy](https://getstream.io/chat/docs/sdk/react/guides/theming/css_and_theming/) section ✅
  4. v12 migration guide ✅
  5. Review docs for references to removed components ✅
  6. Remove Chat component prop customStyles and associated code ✅
  7. Change docs theming/introduction.mdx id from themingv2 to something else - will not be done as we do not want to change URLs and do not have means to redirect 🚫
  8. drop tests related to v1 components & markup ✅
  9. rename V2 components (CardV2 → Card) ✅
  10. Remove ChatDown component ✅
  11. Remove $stream-chat-theme-version: '2'; from example apps’ CSS ✅

Out of scope

  1. Remove --str-chat__theme-version from CSS docs - global-variables.mdx - needs change in generation scripts
  2. Remove FixedHeightMessage?
  3. Remove theme prop from MessageText, MessageOptions?

BREAKING CHANGE: stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
BREAKING CHANGE: theme v1 related markup and classNames have been removed
BREAKING CHANGE: themeVersion property has been removed from ChatContext

rollup.config.js Outdated Show resolved Hide resolved
# Conflicts:
#	docusaurus/docs/React/components/message-input-components/ui-components.mdx
#	src/components/Attachment/AttachmentContainer.tsx
#	src/components/Attachment/UnsupportedAttachment.tsx
#	src/components/MessageInput/AttachmentPreviewList.tsx
#	src/components/MessageInput/hooks/useMessageInputState.ts
Copy link

github-actions bot commented May 22, 2024

Size Change: -94.2 kB (-4.39%)

Total Size: 2.05 MB

Filename Size Change
./dist/browser.full-bundle.js 810 kB -17 kB (-2.06%)
./dist/browser.full-bundle.min.js 456 kB -12.9 kB (-2.76%)
./dist/components/Attachment/AttachmentContainer.js 2.2 kB -8 B (-0.36%)
./dist/components/Attachment/Audio.js 650 B -829 B (-56.05%) 🏆
./dist/components/Attachment/Card.js 1.63 kB -158 B (-8.83%)
./dist/components/Attachment/FileAttachment.js 383 B -172 B (-30.99%) 🎉
./dist/components/Attachment/UnsupportedAttachment.js 311 B -29 B (-8.53%)
./dist/components/Attachment/utils.js 821 B -1.22 kB (-59.68%) 🏆
./dist/components/Attachment/VoiceRecording.js 1.05 kB -13 B (-1.23%)
./dist/components/AutoCompleteTextarea/Header.js 0 B -332 B (removed) 🏆
./dist/components/AutoCompleteTextarea/index.js 146 B -11 B (-7.01%)
./dist/components/AutoCompleteTextarea/Item.js 399 B -128 B (-24.29%) 🎉
./dist/components/AutoCompleteTextarea/List.js 1.4 kB -118 B (-7.76%)
./dist/components/AutoCompleteTextarea/Textarea.js 6.91 kB +10 B (+0.14%)
./dist/components/Avatar/Avatar.js 633 B -107 B (-14.46%) 👏
./dist/components/Channel/Channel.js 10.2 kB -8 B (-0.08%)
./dist/components/Channel/hooks/useChannelContainerClasses.js 347 B -6 B (-1.7%)
./dist/components/ChannelHeader/ChannelHeader.js 848 B -53 B (-5.88%)
./dist/components/ChannelList/ChannelList.js 3.07 kB +43 B (+1.42%)
./dist/components/ChannelList/ChannelListMessenger.js 482 B -8 B (-1.63%)
./dist/components/ChannelPreview/ChannelPreviewMessenger.js 870 B -11 B (-1.25%)
./dist/components/ChannelSearch/ChannelSearch.js 1.03 kB -78 B (-7.05%)
./dist/components/ChannelSearch/hooks/useChannelSearch.js 2.22 kB -45 B (-1.99%)
./dist/components/ChannelSearch/SearchResults.js 1.45 kB -138 B (-8.7%)
./dist/components/Chat/Chat.js 749 B -184 B (-19.72%) 🎉
./dist/components/Chat/hooks/useCreateChatContext.js 654 B -17 B (-2.53%)
./dist/components/Chat/hooks/useCustomStyles.js 0 B -649 B (removed) 🏆
./dist/components/Chat/index.js 71 B -13 B (-15.48%) 👏
./dist/components/ChatAutoComplete/ChatAutoComplete.js 1.21 kB -33 B (-2.65%)
./dist/components/ChatDown/ChatDown.js 0 B -530 B (removed) 🏆
./dist/components/ChatDown/icons.js 0 B -1.26 kB (removed) 🏆
./dist/components/ChatDown/index.js 0 B -48 B (removed) 🏆
./dist/components/Emojis/EmojiPicker.js 1.24 kB -154 B (-11.03%) 👏
./dist/components/Emojis/index.cjs.js 1.81 kB -143 B (-7.32%)
./dist/components/EmptyStateIndicator/EmptyStateIndicator.js 446 B -12 B (-2.62%)
./dist/components/index.js 312 B -4 B (-1.27%)
./dist/components/MediaRecorder/AudioRecorder/AudioRecorder.js 850 B -5 B (-0.58%)
./dist/components/Message/FixedHeightMessage.js 1.69 kB -19 B (-1.12%)
./dist/components/Message/icons.js 1.32 kB -318 B (-19.46%) 👏
./dist/components/Message/MessageRepliesCountButton.js 447 B -76 B (-14.53%) 👏
./dist/components/Message/MessageSimple.js 2.5 kB -100 B (-3.85%)
./dist/components/Message/MessageStatus.js 1.16 kB -74 B (-6.01%)
./dist/components/Message/MessageText.js 1 kB +2 B (+0.2%)
./dist/components/Message/QuotedMessage.js 825 B +3 B (+0.36%)
./dist/components/MessageInput/AttachmentPreviewList/FileAttachmentPreview.js 747 B +49 B (+7.02%) 🔍
./dist/components/MessageInput/AttachmentPreviewList/ImageAttachmentPreview.js 771 B +49 B (+6.79%) 🔍
./dist/components/MessageInput/AttachmentPreviewList/UnsupportedAttachmentPreview.js 773 B -10 B (-1.28%)
./dist/components/MessageInput/AttachmentPreviewList/VoiceRecordingPreview.js 835 B -10 B (-1.18%)
./dist/components/MessageInput/EditMessageForm.js 511 B -538 B (-51.29%) 🏆
./dist/components/MessageInput/hooks/useCommandTrigger.js 866 B -37 B (-4.1%)
./dist/components/MessageInput/hooks/useEmojiTrigger.js 670 B -64 B (-8.72%)
./dist/components/MessageInput/hooks/useMessageInputState.js 3.17 kB -53 B (-1.65%)
./dist/components/MessageInput/hooks/usePasteHandler.js 859 B -12 B (-1.38%)
./dist/components/MessageInput/hooks/useUserTrigger.js 1.9 kB -27 B (-1.4%)
./dist/components/MessageInput/icons.js 2.71 kB -627 B (-18.8%) 👏
./dist/components/MessageInput/index.js 177 B -14 B (-7.33%)
./dist/components/MessageInput/MessageInputFlat.js 2.59 kB -406 B (-13.54%) 👏
./dist/components/MessageInput/MessageInputSmall.js 0 B -1.72 kB (removed) 🏆
./dist/components/MessageInput/QuotedMessagePreview.js 782 B -145 B (-15.64%) 👏
./dist/components/MessageInput/SendButton.js 279 B -61 B (-17.94%) 👏
./dist/components/MessageInput/UploadsPreview.js 0 B -871 B (removed) 🏆
./dist/components/MessageList/MessageList.js 3.38 kB -2 B (-0.06%)
./dist/components/MessageList/MessageListMainPanel.js 209 B -81 B (-27.93%) 🎉
./dist/components/MessageList/ScrollToBottomButton.js 1.1 kB -14 B (-1.25%)
./dist/components/MessageList/VirtualizedMessageListComponents.js 2.15 kB -11 B (-0.51%)
./dist/components/Modal/Modal.js 612 B -209 B (-25.46%) 🎉
./dist/components/ReactFileUtilities/FileIcon/FileIcon.js 475 B -61 B (-11.38%) 👏
./dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.js 0 B -2.73 kB (removed) 🏆
./dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.js 0 B -5.46 kB (removed) 🏆
./dist/components/ReactFileUtilities/FileIcon/iconMap.js 696 B -104 B (-13%) 👏
./dist/components/ReactFileUtilities/FilePreviewer.js 0 B -634 B (removed) 🏆
./dist/components/ReactFileUtilities/FileUploadButton.js 0 B -543 B (removed) 🏆
./dist/components/ReactFileUtilities/IconButton.js 0 B -320 B (removed) 🏆
./dist/components/ReactFileUtilities/icons/AttachmentIcon.js 0 B -397 B (removed) 🏆
./dist/components/ReactFileUtilities/icons/CloseIcon.js 0 B -560 B (removed) 🏆
./dist/components/ReactFileUtilities/icons/FilePlaceholderIcon.js 0 B -1.52 kB (removed) 🏆
./dist/components/ReactFileUtilities/icons/index.js 0 B -96 B (removed) 🏆
./dist/components/ReactFileUtilities/icons/PictureIcon.js 0 B -333 B (removed) 🏆
./dist/components/ReactFileUtilities/icons/RetryIcon.js 0 B -325 B (removed) 🏆
./dist/components/ReactFileUtilities/ImagePreviewer.js 0 B -779 B (removed) 🏆
./dist/components/ReactFileUtilities/ImageUploadButton.js 0 B -472 B (removed) 🏆
./dist/components/ReactFileUtilities/index.js 109 B -68 B (-38.42%) 🎉
./dist/components/ReactFileUtilities/Thumbnail.js 0 B -468 B (removed) 🏆
./dist/components/ReactFileUtilities/ThumbnailPlaceholder.js 0 B -384 B (removed) 🏆
./dist/components/Reactions/ReactionsList.js 1.08 kB +36 B (+3.45%)
./dist/components/Reactions/ReactionsListModal.js 1.17 kB +4 B (+0.34%)
./dist/components/Reactions/SimpleReactionsList.js 888 B -159 B (-15.19%) 👏
./dist/components/Thread/Thread.js 1.49 kB -36 B (-2.37%)
./dist/components/Thread/ThreadHeader.js 454 B -10 B (-2.16%)
./dist/components/TypingIndicator/TypingIndicator.js 958 B -262 B (-21.48%) 🎉
./dist/components/UserItem/UserItem.js 581 B -47 B (-7.48%)
./dist/css/index.css 0 B -26.7 kB (removed) 🏆
./dist/i18n/de.json 2.88 kB +11 B (+0.38%)
./dist/i18n/en.json 1.81 kB +10 B (+0.56%)
./dist/i18n/es.json 2.87 kB +13 B (+0.45%)
./dist/i18n/fr.json 2.95 kB +13 B (+0.44%)
./dist/i18n/hi.json 3.29 kB +15 B (+0.46%)
./dist/i18n/it.json 2.88 kB +17 B (+0.59%)
./dist/i18n/ja.json 3.12 kB +9 B (+0.29%)
./dist/i18n/ko.json 3.05 kB +10 B (+0.33%)
./dist/i18n/nl.json 2.78 kB +12 B (+0.43%)
./dist/i18n/pt.json 2.83 kB +13 B (+0.46%)
./dist/i18n/ru.json 3.46 kB +9 B (+0.26%)
./dist/i18n/tr.json 2.85 kB +8 B (+0.28%)
./dist/index.cjs.js 23.6 kB -2.19 kB (-8.49%)
./dist/utils/generateRandomId.js 0 B -130 B (removed) 🏆
./dist/utils/index.js 63 B -16 B (-20.25%) 🎉
./dist/Window-8c5139ab.js 0 B -449 kB (removed) 🏆
./dist/components/ReactFileUtilities/FileIcon/FileIconSet.js 5.46 kB +5.46 kB (new file) 🆕
./dist/components/UtilityComponents/index.js 53 B +53 B (new file) 🆕
./dist/components/UtilityComponents/NullComponent.js 76 B +76 B (new file) 🆕
./dist/Window-1ed4758e.js 436 kB +436 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
./dist/components/Attachment/attachment-sizing.js 1.08 kB
./dist/components/Attachment/Attachment.js 1.08 kB
./dist/components/Attachment/AttachmentActions.js 524 B
./dist/components/Attachment/audioSampling.js 1.37 kB
./dist/components/Attachment/components/DownloadButton.js 262 B
./dist/components/Attachment/components/FileSizeIndicator.js 302 B
./dist/components/Attachment/components/index.js 112 B
./dist/components/Attachment/components/PlaybackRateButton.js 215 B
./dist/components/Attachment/components/PlayButton.js 279 B
./dist/components/Attachment/components/ProgressBar.js 288 B
./dist/components/Attachment/components/WaveProgressBar.js 1.01 kB
./dist/components/Attachment/hooks/useAudioController.js 1.73 kB
./dist/components/Attachment/icons.js 573 B
./dist/components/Attachment/index.js 132 B
./dist/components/AutoCompleteTextarea/types.js 31 B
./dist/components/AutoCompleteTextarea/utils.js 834 B
./dist/components/Avatar/index.js 46 B
./dist/components/Channel/channelState.js 1.04 kB
./dist/components/Channel/hooks/useCreateChannelStateContext.js 1.56 kB
./dist/components/Channel/hooks/useCreateTypingContext.js 235 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 848 B
./dist/components/ChannelHeader/icons.js 458 B
./dist/components/ChannelHeader/index.js 53 B
./dist/components/ChannelList/hooks/index.js 196 B
./dist/components/ChannelList/hooks/useChannelDeletedListener.js 454 B
./dist/components/ChannelList/hooks/useChannelHiddenListener.js 450 B
./dist/components/ChannelList/hooks/useChannelTruncatedListener.js 379 B
./dist/components/ChannelList/hooks/useChannelUpdatedListener.js 614 B
./dist/components/ChannelList/hooks/useChannelVisibleListener.js 616 B
./dist/components/ChannelList/hooks/useConnectionRecoveredListener.js 275 B
./dist/components/ChannelList/hooks/useMessageNewListener.js 599 B
./dist/components/ChannelList/hooks/useMobileNavigation.js 276 B
./dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.js 825 B
./dist/components/ChannelList/hooks/useNotificationMessageNewListener.js 702 B
./dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.js 411 B
./dist/components/ChannelList/hooks/usePaginatedChannels.js 1.59 kB
./dist/components/ChannelList/hooks/useUserPresenceChangedListener.js 466 B
./dist/components/ChannelList/index.js 78 B
./dist/components/ChannelList/utils.js 314 B
./dist/components/ChannelPreview/ChannelPreview.js 1.06 kB
./dist/components/ChannelPreview/hooks/index.js 97 B
./dist/components/ChannelPreview/hooks/useChannelPreviewInfo.js 471 B
./dist/components/ChannelPreview/hooks/useIsChannelMuted.js 319 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/icons.js 701 B
./dist/components/ChannelSearch/index.js 85 B
./dist/components/ChannelSearch/SearchBar.js 1.33 kB
./dist/components/ChannelSearch/SearchInput.js 335 B
./dist/components/ChannelSearch/utils.js 89 B
./dist/components/Chat/hooks/useChannelsQueryState.js 212 B
./dist/components/Chat/hooks/useChat.js 1.46 kB
./dist/components/Chat/hooks/useCreateChatClient.js 490 B
./dist/components/ChatAutoComplete/index.js 56 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/Emojis/index.js 51 B
./dist/components/EmoticonItem/EmoticonItem.js 417 B
./dist/components/EmoticonItem/index.js 52 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/BaseImage.js 478 B
./dist/components/Gallery/Gallery.js 1.13 kB
./dist/components/Gallery/Image.js 681 B
./dist/components/Gallery/index.js 70 B
./dist/components/Gallery/ModalGallery.js 627 B
./dist/components/InfiniteScrollPaginator/index.js 54 B
./dist/components/InfiniteScrollPaginator/InfiniteScroll.js 1.5 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 570 B
./dist/components/LoadMore/LoadMorePaginator.js 484 B
./dist/components/MediaRecorder/AudioRecorder/AudioRecordingButtons.js 264 B
./dist/components/MediaRecorder/AudioRecorder/AudioRecordingInProgress.js 792 B
./dist/components/MediaRecorder/AudioRecorder/AudioRecordingPreview.js 637 B
./dist/components/MediaRecorder/AudioRecorder/index.js 75 B
./dist/components/MediaRecorder/AudioRecorder/RecordingTimer.js 246 B
./dist/components/MediaRecorder/classes/AmplitudeRecorder.js 1.28 kB
./dist/components/MediaRecorder/classes/BrowserPermission.js 1.07 kB
./dist/components/MediaRecorder/classes/index.js 85 B
./dist/components/MediaRecorder/classes/MediaRecorderController.js 3.34 kB
./dist/components/MediaRecorder/hooks/index.js 31 B
./dist/components/MediaRecorder/hooks/useMediaRecorder.js 924 B
./dist/components/MediaRecorder/index.js 149 B
./dist/components/MediaRecorder/observable/BehaviorSubject.js 449 B
./dist/components/MediaRecorder/observable/index.js 89 B
./dist/components/MediaRecorder/observable/Observable.js 382 B
./dist/components/MediaRecorder/observable/Observer.js 109 B
./dist/components/MediaRecorder/observable/Subject.js 659 B
./dist/components/MediaRecorder/observable/Subscription.js 208 B
./dist/components/MediaRecorder/RecordingPermissionDeniedNotification.js 427 B
./dist/components/MediaRecorder/transcode/audioProcessing.js 873 B
./dist/components/MediaRecorder/transcode/index.js 365 B
./dist/components/MediaRecorder/transcode/mp3.js 974 B
./dist/components/MediaRecorder/transcode/wav.js 1.79 kB
./dist/components/Message/hooks/index.js 146 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/useMarkUnreadHandler.js 714 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.24 kB
./dist/components/Message/hooks/useReactionsFetcher.js 773 B
./dist/components/Message/hooks/useRetryHandler.js 343 B
./dist/components/Message/hooks/useUserHandler.js 223 B
./dist/components/Message/hooks/useUserRole.js 760 B
./dist/components/Message/index.js 162 B
./dist/components/Message/Message.js 2.32 kB
./dist/components/Message/MessageDeleted.js 374 B
./dist/components/Message/MessageEditedTimestamp.js 488 B
./dist/components/Message/MessageErrorText.js 381 B
./dist/components/Message/MessageOptions.js 951 B
./dist/components/Message/MessageTimestamp.js 352 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/Timestamp.js 506 B
./dist/components/Message/types.js 31 B
./dist/components/Message/utils.js 2.95 kB
./dist/components/MessageActions/CustomMessageActionsList.js 346 B
./dist/components/MessageActions/hooks/index.js 66 B
./dist/components/MessageActions/hooks/useMessageActionsBoxPopper.js 517 B
./dist/components/MessageActions/index.js 76 B
./dist/components/MessageActions/MessageActions.js 1.53 kB
./dist/components/MessageActions/MessageActionsBox.js 1.18 kB
./dist/components/MessageBounce/index.js 68 B
./dist/components/MessageBounce/MessageBounceModal.js 253 B
./dist/components/MessageBounce/MessageBouncePrompt.js 507 B
./dist/components/MessageInput/AttachmentPreviewList/AttachmentPreviewList.js 807 B
./dist/components/MessageInput/AttachmentPreviewList/index.js 61 B
./dist/components/MessageInput/AttachmentPreviewList/types.js 31 B
./dist/components/MessageInput/AttachmentPreviewList/UploadPreviewItem.js 704 B
./dist/components/MessageInput/CooldownTimer.js 244 B
./dist/components/MessageInput/DefaultTriggerProvider.js 442 B
./dist/components/MessageInput/DropzoneProvider.js 548 B
./dist/components/MessageInput/hooks/index.js 78 B
./dist/components/MessageInput/hooks/useAttachments.js 2.43 kB
./dist/components/MessageInput/hooks/useCooldownTimer.js 818 B
./dist/components/MessageInput/hooks/useCreateMessageInputContext.js 1.55 kB
./dist/components/MessageInput/hooks/useFileUploads.js 1.27 kB
./dist/components/MessageInput/hooks/useImageUploads.js 1.38 kB
./dist/components/MessageInput/hooks/useLinkPreviews.js 1.41 kB
./dist/components/MessageInput/hooks/useMessageInputText.js 958 B
./dist/components/MessageInput/hooks/useSubmitHandler.js 2.7 kB
./dist/components/MessageInput/hooks/useTimeElapsed.js 381 B
./dist/components/MessageInput/hooks/useTimer.js 302 B
./dist/components/MessageInput/hooks/utils.js 2.06 kB
./dist/components/MessageInput/LinkPreviewList.js 778 B
./dist/components/MessageInput/MessageInput.js 641 B
./dist/components/MessageInput/types.js 387 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 126 B
./dist/components/MessageList/hooks/MessageList/useEnrichedMessages.js 712 B
./dist/components/MessageList/hooks/MessageList/useMessageListElements.js 645 B
./dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.js 960 B
./dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.js 895 B
./dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.js 1.03 kB
./dist/components/MessageList/hooks/useLastReadData.js 266 B
./dist/components/MessageList/hooks/useMarkRead.js 1.25 kB
./dist/components/MessageList/hooks/VirtualizedMessageList/index.js 158 B
./dist/components/MessageList/hooks/VirtualizedMessageList/useGiphyPreview.js 423 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.32 kB
./dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.js 471 B
./dist/components/MessageList/hooks/VirtualizedMessageList/useShouldForceScrollToBottom.js 423 B
./dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.js 665 B
./dist/components/MessageList/icons.js 622 B
./dist/components/MessageList/index.js 204 B
./dist/components/MessageList/MessageListNotifications.js 471 B
./dist/components/MessageList/MessageNotification.js 293 B
./dist/components/MessageList/renderMessages.js 1.16 kB
./dist/components/MessageList/UnreadMessagesNotification.js 441 B
./dist/components/MessageList/UnreadMessagesSeparator.js 316 B
./dist/components/MessageList/utils.js 2.98 kB
./dist/components/MessageList/VirtualizedMessageList.js 4.45 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/ReactFileUtilities/FileIcon/index.js 53 B
./dist/components/ReactFileUtilities/FileIcon/mimeTypes.js 834 B
./dist/components/ReactFileUtilities/ImageDropzone.js 1.02 kB
./dist/components/ReactFileUtilities/LoadingIndicator.js 307 B
./dist/components/ReactFileUtilities/types.js 31 B
./dist/components/ReactFileUtilities/UploadButton.js 289 B
./dist/components/ReactFileUtilities/utils.js 1.47 kB
./dist/components/Reactions/hooks/useFetchReactions.js 624 B
./dist/components/Reactions/hooks/useProcessReactions.js 1.15 kB
./dist/components/Reactions/index.js 108 B
./dist/components/Reactions/reactionOptions.js 330 B
./dist/components/Reactions/ReactionSelector.js 1.84 kB
./dist/components/Reactions/SpriteImage.js 705 B
./dist/components/Reactions/StreamEmoji.js 385 B
./dist/components/Reactions/types.js 31 B
./dist/components/Reactions/utils/utils.js 300 B
./dist/components/SafeAnchor/index.js 74 B
./dist/components/SafeAnchor/SafeAnchor.js 347 B
./dist/components/Thread/icons.js 370 B
./dist/components/Thread/index.js 71 B
./dist/components/Thread/ThreadHead.js 314 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/UserItem/index.js 48 B
./dist/components/Window/index.js 46 B
./dist/components/Window/Window.js 372 B
./dist/constants/limits.js 163 B
./dist/constants/messageTypes.js 99 B
./dist/context/ChannelActionContext.js 588 B
./dist/context/ChannelListContext.js 377 B
./dist/context/ChannelStateContext.js 586 B
./dist/context/ChatContext.js 573 B
./dist/context/ComponentContext.js 579 B
./dist/context/index.js 131 B
./dist/context/MessageBounceContext.js 630 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/css/v2/emoji-mart.css 1.84 kB
./dist/css/v2/emoji-replacement.css 299 B
./dist/css/v2/index.css 26.2 kB
./dist/css/v2/index.layout.css 13.4 kB
./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_UMD.js 175 B
./dist/index.js 78 B
./dist/types/index.js 31 B
./dist/types/types.js 31 B
./dist/utils/browsers.js 156 B
./dist/utils/deprecationWarning.js 317 B
./dist/utils/getChannel.js 968 B
./dist/utils/getWholeChar.js 411 B
./dist/utils/mergeDeep.js 202 B
./dist/version.js 60 B

compressed-size-action

Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.35%. Comparing base (f2ed479) to head (c7caaa2).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2394      +/-   ##
==========================================
+ Coverage   85.28%   85.35%   +0.06%     
==========================================
  Files         392      372      -20     
  Lines        9027     8487     -540     
  Branches     2322     2132     -190     
==========================================
- Hits         7699     7244     -455     
+ Misses       1120     1065      -55     
+ Partials      208      178      -30     

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

…to feat/remove-legacy-style-components

# Conflicts:
#	src/components/MessageInput/MessageInputFlat.tsx
#	src/i18n/pt.json
…nts' into feat/remove-legacy-style-components
# Conflicts:
#	src/components/MessageInput/MessageInputFlat.tsx
#	src/components/MessageInput/__tests__/MessageInput.test.js
@MartinCupela MartinCupela merged commit bffcf77 into master May 27, 2024
8 of 9 checks passed
@MartinCupela MartinCupela deleted the feat/remove-legacy-style-components branch May 27, 2024 13:23
arnautov-anton pushed a commit that referenced this pull request May 29, 2024
BREAKING CHANGE: stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
BREAKING CHANGE: theme v1 related markup and classNames have been removed
BREAKING CHANGE: `themeVersion` property has been removed from `ChatContext`
MartinCupela added a commit that referenced this pull request Jun 12, 2024
BREAKING CHANGE: stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
BREAKING CHANGE: theme v1 related markup and classNames have been removed
BREAKING CHANGE: `themeVersion` property has been removed from `ChatContext`
MartinCupela added a commit that referenced this pull request Jun 17, 2024
BREAKING CHANGE: stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
BREAKING CHANGE: theme v1 related markup and classNames have been removed
BREAKING CHANGE: `themeVersion` property has been removed from `ChatContext`
github-actions bot pushed a commit that referenced this pull request Jun 17, 2024
## [12.0.0-rc.1](v11.21.0...v12.0.0-rc.1) (2024-06-17)

### ⚠ BREAKING CHANGES

* The VirtualizedMessageList does not provide default
Footer component
* The VirtualizedMessageList markup has changed as
TypingIndicator is rendered as a child of MessageListMainPanel
* stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
* theme v1 related markup and classNames have been removed
* `themeVersion` property has been removed from `ChatContext`

### Bug Fixes

* render typing indicator outside the VirtualizedMessageList scroll container ([#2406](#2406)) ([fcaafb6](fcaafb6))

### Features

* remove legacy style components ([#2394](#2394)) ([9410153](9410153))
arnautov-anton pushed a commit that referenced this pull request Jun 28, 2024
BREAKING CHANGE: stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
BREAKING CHANGE: theme v1 related markup and classNames have been removed
BREAKING CHANGE: `themeVersion` property has been removed from `ChatContext`
arnautov-anton pushed a commit that referenced this pull request Jun 28, 2024
* The VirtualizedMessageList does not provide default
Footer component
* The VirtualizedMessageList markup has changed as
TypingIndicator is rendered as a child of MessageListMainPanel
* stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
* theme v1 related markup and classNames have been removed
* `themeVersion` property has been removed from `ChatContext`

* render typing indicator outside the VirtualizedMessageList scroll container ([#2406](#2406)) ([fcaafb6](fcaafb6))

* remove legacy style components ([#2394](#2394)) ([9410153](9410153))
github-actions bot pushed a commit that referenced this pull request Jul 1, 2024
## [12.0.0-rc.1](v11.23.0...v12.0.0-rc.1) (2024-07-01)

### ⚠ BREAKING CHANGES

* The VirtualizedMessageList does not provide default
Footer component
* The VirtualizedMessageList markup has changed as
TypingIndicator is rendered as a child of MessageListMainPanel
* stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
* theme v1 related markup and classNames have been removed
* `themeVersion` property has been removed from `ChatContext`

### Bug Fixes

* render typing indicator outside the VirtualizedMessageList scroll container ([#2406](#2406)) ([9f5485d](9f5485d))

### Features

* remove legacy style components ([#2394](#2394)) ([cf40d56](cf40d56))

### Chores

* **deps:** bump @stream-io/stream-chat-css to version 5.0.0-rc.1nvm ([be132cb](be132cb))
MartinCupela added a commit that referenced this pull request Jul 1, 2024
BREAKING CHANGE: stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
BREAKING CHANGE: theme v1 related markup and classNames have been removed
BREAKING CHANGE: `themeVersion` property has been removed from `ChatContext`
MartinCupela pushed a commit that referenced this pull request Jul 1, 2024
## [12.0.0-rc.1](v11.21.0...v12.0.0-rc.1) (2024-06-17)

### ⚠ BREAKING CHANGES

* The VirtualizedMessageList does not provide default
Footer component
* The VirtualizedMessageList markup has changed as
TypingIndicator is rendered as a child of MessageListMainPanel
* stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
* theme v1 related markup and classNames have been removed
* `themeVersion` property has been removed from `ChatContext`

### Bug Fixes

* render typing indicator outside the VirtualizedMessageList scroll container ([#2406](#2406)) ([fcaafb6](fcaafb6))

### Features

* remove legacy style components ([#2394](#2394)) ([9410153](9410153))
github-actions bot pushed a commit that referenced this pull request Jul 1, 2024
## [12.0.0-rc.1](v11.23.0...v12.0.0-rc.1) (2024-07-01)

### ⚠ BREAKING CHANGES

* The VirtualizedMessageList does not provide default
Footer component
* The VirtualizedMessageList markup has changed as
TypingIndicator is rendered as a child of MessageListMainPanel
* stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
* theme v1 related markup and classNames have been removed
* `themeVersion` property has been removed from `ChatContext`

### Bug Fixes

* render typing indicator outside the VirtualizedMessageList scroll container ([#2406](#2406)) ([d9442d2](d9442d2))

### Features

* remove legacy style components ([#2394](#2394)) ([7bf63ae](7bf63ae))

### Chores

* **deps:** bump @stream-io/stream-chat-css to version 5.0.0-rc.1nvm ([e9cf42f](e9cf42f))
github-actions bot pushed a commit that referenced this pull request Jul 1, 2024
## [12.0.0-rc.1](v11.23.0...v12.0.0-rc.1) (2024-07-01)

### ⚠ BREAKING CHANGES

* The VirtualizedMessageList does not provide default
Footer component
* The VirtualizedMessageList markup has changed as
TypingIndicator is rendered as a child of MessageListMainPanel
* stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
* theme v1 related markup and classNames have been removed
* `themeVersion` property has been removed from `ChatContext`

### Bug Fixes

* render typing indicator outside the VirtualizedMessageList scroll container ([#2406](#2406)) ([d9442d2](d9442d2))

### Features

* remove legacy style components ([#2394](#2394)) ([7bf63ae](7bf63ae))

### Chores

* **deps:** bump @stream-io/stream-chat-css to version 5.0.0-rc.1nvm ([e9cf42f](e9cf42f))
github-actions bot pushed a commit that referenced this pull request Sep 17, 2024
## [12.0.0](v11.23.9...v12.0.0) (2024-09-17)

### ⚠ BREAKING CHANGES

* - own user will not anymore be filtered out of the selection list of users to mention if `mentionAllAppUsers` is enabled on MessageInput
* - removes the following variables from `MessageContext`: isReactionEnabled, onReactionListClick, showDetailedReactions, reactionSelectorRef
- removes prop `messageWrapperRef` from `MessageOptions` and `MessageActions` props.
* ComponentContext no longer provides any defaults
* removed Thread prop fullWidth, removed class str-chat__thread--full
* removed Window prop hideOnThread, replaced class str-chat__main-panel--hideOnThread with str-chat__main-panel--thread-open
* MP3 audio encoder has to be explicitly imported and
used as a plugin for audio recordings. The default audio recording
format is audio/wav.
* @breezystack/lamejs became a peer dependency and has to
be installed by the integrator so that the MP3 audio encoder can work
properly.
* Removed fileOrder, imageOrder, fileUploads,
imageUploads, uploadFile, uploadImage, removeFile, removeImage from the
MessageInputContext. Use attachments, uploadAttachment, uploadNewFiles, upsertAttachments, removeAttachments instead.
* Removed default values for timestamp formatting props
like calendar or format for DateSeparator, EventComponent,
MessageTimestamp. The formatting configuration now entirely relies on
i18n translations.
* The VirtualizedMessageList does not provide default
Footer component
* The VirtualizedMessageList markup has changed as
TypingIndicator is rendered as a child of MessageListMainPanel
* stylesheet import path changed & v1 stylesheet has been dropped, see release guide for more information
* theme v1 related markup and classNames have been removed
* `themeVersion` property has been removed from `ChatContext`

### Bug Fixes

* add theme to ChatView component ([#2494](#2494)) ([d477072](d477072))
* address the circular dependencies among TranslationContext and Streami18n ([#2483](#2483)) ([b91fd9a](b91fd9a))
* change platform for CJS bundle from node to browser ([#2454](#2454)) ([4bc2d35](4bc2d35))
* do not rerender on client options update ([#2465](#2465)) ([3899352](3899352))
* export typeVersions correctly for emojis and mp3-encoder ([#2449](#2449)) ([17218db](17218db))
* extract MP3 encoder plugin ([#2447](#2447)) ([625196f](625196f))
* provide both browser and node cjs bundles ([#2457](#2457)) ([273ea2a](273ea2a))
* quote replies in threads ([#2487](#2487)) ([0e4a6f1](0e4a6f1))
* remove the use of deprecated query operator $ne ([#2504](#2504)) ([09614f6](09614f6))
* render typing indicator outside the VirtualizedMessageList scroll container ([#2406](#2406)) ([d9442d2](d9442d2))
* reuse useChannelPreviewInfo for ThreadListItemUI ([#2508](#2508)) ([4bb5b7c](4bb5b7c))
* update ChannelHeader and ChannelPreview titles and images on channel.updated ([#2500](#2500)) ([f32fbb6](f32fbb6))

### Features

* add centralized dialog management ([#2489](#2489)) ([8235d45](8235d45))
* add ThreadList and ThreadProvider (Threads 2.0) ([#2407](#2407)) ([941707d](941707d))
* keep attachments array and remove file and image uploads in MessageInput state ([#2445](#2445)) ([238e801](238e801))
* remove default timestamp formatting props from DateSeparator, EventComponent, MessageTimestamp ([#2442](#2442)) ([6431954](6431954))
* remove fullWidth prop from Thread & hideOnThread prop from Window ([#2450](#2450)) ([32c8fc0](32c8fc0))
* remove legacy style components ([#2394](#2394)) ([7bf63ae](7bf63ae))

### Chores

* **deps:** bump @stream-io/stream-chat-css to version 5.0.0 ([9580a3f](9580a3f))
* **deps:** bump @stream-io/stream-chat-css to version 5.0.0-rc.1nvm ([e9cf42f](e9cf42f))
* **deps:** bump stream-chat to version 8.40.8 ([#2510](#2510)) ([5cc7a09](5cc7a09))
* **deps:** remove unused isomorphic-ws from dependencies ([853bd8b](853bd8b))
* **deps:** upgrade @stream-io/stream-chat-css to v5.0.0-rc.4 ([#2492](#2492)) ([6e30cb5](6e30cb5))
* **deps:** upgrade @stream-io/stream-chat-css to v5.0.0-rc.5 ([#2495](#2495)) ([2b8fa32](2b8fa32))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants