Skip to content

Latest commit

Β 

History

History
2652 lines (1563 loc) Β· 160 KB

CHANGELOG.md

File metadata and controls

2652 lines (1563 loc) Β· 160 KB

10.20.1 (2023-11-20)

Bug Fixes

  • calculate pagination stop from custom channel query message limit (#2180) (8374af1)

10.20.0 (2023-11-16)

Bug Fixes

Features

  • allow to configure channel query options (#2177) (4f91d9a)

10.19.0 (2023-11-14)

Features

  • expose optional remark plugin to keep all line breaks and keep HTML in message text (#2170) (5b191c9)
  • introduce MessageListContext (#2166) (8dcb1ac)

10.18.0 (2023-11-07)

Features

10.17.0 (2023-11-07)

Bug Fixes

Features

10.16.2 (2023-11-03)

Bug Fixes

10.16.1 (2023-11-03)

Bug Fixes

  • i18n: prevent removal of dynamically generated translation keys (#2154) (ebcaa8f)

10.16.0 (2023-10-31)

Bug Fixes

  • prevent flashing EmptyStateIndicator in ChannelList before the first channels page is loaded (#2150) (a2a9645)

Features

10.15.0 (2023-10-25)

Features

  • renderText: allow custom remark and rehype plugin composition (#2142) (4a25912)
  • VirtualizedMessageList: allow to merge custom virtuoso components with the SDK defaults (#2140) (6ea9ff0)

10.14.1 (2023-10-19)

  • chore(deps): bump stream-chat from 8.12.4 to 8.13.1

10.14.0 (2023-10-11)

Features

  • allow complete channel list throttled reload on internet connection recovery (#2123) (252cac3)

10.13.1 (2023-10-09)

10.13.0 (2023-10-06)

Bug Fixes

  • on pagination keep a unique list of channels in the ChannelList (#2115) (11173e1)

Features

  • add initializeOnMount prop to ChannelProps (#2113) (db18efd)
  • allow to conditionally display MessageInput's send button through MessageInputProps (#2109) (cd07418)

10.12.0 (2023-09-29)

Features

  • add messageDeliveryStatus prop to ChannelListPreview (#2104) (9aa4aea)
  • allow to configure the search query debounce interval (#2107) (d563369)

10.11.0 (2023-09-26)

Bug Fixes

  • adjust cooldown interval calculation for messages coming from future (#2101) (3263f10)
  • enable sending reactions to frozen channel with UseFrozenChannel permission (#2097) (852490d)

Features

  • add timezone support to datetime parsing (#2099) (3d4bdf9)

10.10.2 (2023-09-19)

Bug Fixes

  • keep channels initially without id registered for WS events (#2095) (eba7bbe)

10.10.1 (2023-09-13)

Bug Fixes

10.10.0 (2023-09-08)

Features

Performance Improvements

  • package-size: remove react-file-utils package (#2088) (1258e09)

10.9.1 (2023-08-31)

Bug Fixes

  • export ChannelSearchFunctionParams & ChannelSearchParams types (#2084) (1ef81ea)

10.9.0 (2023-08-21)

Bug Fixes

  • keep showing message read receipt once read (#2080) (6f9fb96)

Features

  • show read receipts in VirtualizedMessageList (#2076) (e08d972)

10.8.9 (2023-08-11)

Bug Fixes

  • remove color code from LoadingIndicator root class (#2072) (eba171f)

10.8.8 (2023-07-27)

Bug Fixes

  • prevent remounting Message components in VirtualizedMessageList (#2067) (17d48b0)

10.8.7 (2023-07-17)

Bug Fixes

  • namespace the ChannelSearch's root element "inline" and "popup" classes (#2056) (442e177)

10.8.6 (2023-07-11)

Bug Fixes

  • enable search results scrolling (#2041) (e61cabe)
  • prevent ignoring the clearSearchOnClickOutside search param on mobile (#2039) (e83d313)

10.8.5 (2023-06-27)

Bug Fixes

  • make cooldown timer to rely on skip-slow-mode capability (#2018) (8f7c79f)

10.8.4 (2023-06-22)

Bug Fixes

  • prevent showing original text of deleted quoted message (#2033) (773d59f)

10.8.3 (2023-06-12)

Bug Fixes

  • add missing effect and callback dependencies in useChannelSearch hooks (#2029) (1090dd3)

10.8.2 (2023-06-09)

Bug Fixes

10.8.1 (2023-05-22)

Bug Fixes

  • do not try close message input's autocomplete dropdown on textarea blur (#2015) (af4fb74)

10.8.0 (2023-05-05)

Bug Fixes

  • prevent duplicate simultaneous query channel quests (#2004) (33411b8)
  • prevent overriding event handlers in MessageInput's Textarea component (#2006) (569c53d)

Features

  • allow to retrieve the default message input value dynamically (#2007) (9316bdf)

10.7.6 (2023-04-24)

Bug Fixes

  • renderText: handle forward slash in mentions (#1997) (eb04651)

10.7.5 (2023-04-14)

Bug Fixes

  • prevent overwriting sent message on slow network (#1993) (5f5893a)

10.7.4 (2023-04-05)

Bug Fixes

  • update channel state on user.deleted event (#1985) (767d194)

10.7.3 (2023-03-16)

Bug Fixes

  • do not increase count of prepended VirtualizedMessageList messages of status "sending" or "failed" (#1972) (f1bf6fa)

10.7.2 (2023-03-08)

Bug Fixes

  • update event handler upon channel config update (#1969) (bec1f14)

10.7.1 (2023-03-03)

Bug Fixes

  • audit and upgrade packages with vulnerabilities (#1959) (a31a0bb)

10.7.0 (2023-02-24)

Bug Fixes

Features

  • Attachments: introduce UnsupportedAttachment component (#1952) (330b622)

10.6.0 (2023-02-10)

Bug Fixes

  • make all ThreadProps.additionalParentMessageProps keys optional (#1920) (62de38f)
  • make event optional for openThread in ChannelActionContext (#1928) (f144e9a)
  • reflect thread prop in Window component (#1919) (689514c)

Features

  • add custom class to ConnectionStatus component (#1924) (d008b96)

10.5.0 (2023-01-13)

Bug Fixes

  • renderText: specify linkifyjs types to look for (email and url) (#1902) (b5e100e)

Features

  • MessageInput: extend mentionQueryParams to accept filters function (#1900) (9c979f9)

10.4.3 (2023-01-05)

Bug Fixes

  • check for window with getComputedStyle (#1888) (bb7f38d)
  • prevent duplicate pagination requests in InfiniteScroll (#1885) (cf5ec80)

10.4.2 (2022-12-16)

Bug Fixes

  • merge mentionQueryParams.sort configuration correctly (#1869) (6ec31af)
  • renderText: special case @ symbol at the end of the message (#1873) (7dced57)
  • useCooldownTimer: derive cooldown from last message (#1879) (8e63653)

10.4.1 (2022-11-18)

Bug Fixes

  • add linkify.test check before any URL instantiation (#1838) (ef1dd0a)

10.4.0 (2022-11-04)

Bug Fixes

  • remove props spreading on React.Fragment (dragAndDropWindow) (#1835) (40c799a)
  • MessageSimple to apply renderText function from properties (#1824) (7133b33)

Features

Performance Updates

  • upgrade react-markdown, update renderText function, adjust types (#1824) (6afe663)

10.3.1 (2022-10-13)

Bug Fixes

10.3.0 (2022-10-11)

Bug Fixes

  • replace use of channel config with channelCapabilities to derive permission flags (#1807) (1143117)
  • unify paginator interface (#1803) (d65b7b9), closes #1801

Features

  • add popper tooltip to SimpleReactionList items (#1801) (478f0f2)

10.2.0 (2022-10-04)

Bug Fixes

  • add image attachment height from CSS (f5a9729)
  • display messages in virtualized thread (theme v2) (#1799) (9c1a16f)
  • example app build error (5430213)
  • keep configuration parameter shouldGenerateVideoThumbnail in hook dep array (50edd8b)
  • refresh virtualizedmessagelist after sizing has been set (afea3d7)
  • replace Infinity in calc statements as browser support isn't great (ebf89da)
  • update attachment configuration if attachment changed (a6295dd)
  • use useLayoutEffect for image and video height setting (386fae7)

Features

  • check that attachment height style is available before using max-height (79f6f1a)
  • integrate new CDN capabilities (1520a34)
  • update stream-chat-css version (03166a9)
  • use video thumbnails returned by backend (f68c8b1)

10.1.2 (2022-09-30)

Bug Fixes

  • export all necessary components (#1785) (075f703)
  • update pinnedMessages context property on pin/unpin message (#1784) (15128ab)

10.1.1 (2022-09-20)

Bug Fixes

  • edge case of prepend count not being reset when jumping (#1765) (18ba8f8)

10.1.0 (2022-09-19)

Bug Fixes

  • VirtualizedMessageList: use memoized values as hook dependencies directly (#1761) (41d1d67)

Features

10.0.2 (2022-09-14)

Bug Fixes

  • ChannelList: update class names order for theming variables (#1747) (80ec36e)
  • play video in attachment card theme v1 (#1748) (cd31d19)
  • Textarea: prevent caret movement on suggestion list item select (#1732) (be44762)

10.0.1 (2022-09-12)

Bug Fixes

10.0.0 (2022-09-09)

Bug Fixes

  • add missing class str-chat__message-actions-list-item-button to CustomMessageActions root (be16e40)

  • add missing getChannels callback dependency "searching" (a3307f7)

  • add str-chat__message--other class to MessageDeleted (25f3190)

  • Card: prefer title_link over og_scrape_url (843990e)

  • do not generate class names to contain string 'undefined', do not pass Media prop to Card (40342fe)

  • EditMessageForm: remove circular dependency (6218a65)

  • exit with non-zero status code if failed to provide args to merge-stream-chat-css-docs.sh (a4719b9)

  • File attachment UI in theme-v1 (0a80bef)

  • File attachment UI in theme-v1 (9604ca6)

  • FilePreviewItem: add file type for correct file icons (6e6fce5)

  • forward SearchInput prop to SearchBar (16fc8f8)

  • improve scrollToBottom with image attachments (be8bb7a)

  • MessageInput: add container className (a5e7908)

  • MessageInputFlat: send button adjustments (f456704)

  • MessageInput: remove useId, add quotedMessage patch (64e07d3)

  • MessageInput: update dropzone markup (974802b)

  • MessageList: prevent redundant calls to scroll to bottom, don't use ResizeObserver (363676e)

  • MessageStatus: add V2 TooltipContainer component "shim" (dcfbbfb)

  • move card caption to card content and rename to source link (c44bcd7)

  • QuotedMessagePreview: use themingVersion instead of PreviewHeader property (4f79b07)

  • reduce mount/unmount of image attachments (34082a4)

  • Responsive layout (7551650)

  • show channel list if search input contains empty string (b73dd2c)

  • SuggestionList: update trigger limits (2e1f025)

  • sync event listener keyDown type btw the image attachment and gallery modal (51e7c14)

  • ThemingV2 beta adjustments (#1728) (785ee11)

  • ThemingV2: MessageInputFlat missing lodash/zipObject (#1721) (dd8a457)

  • TypingIndicator: adjust position of the indicator (f5db199)

  • TypingIndicator: use MessageListMainPanel to position the indicator (865cbc8)

  • Merge pull request #1697 from GetStream/theming-v2-user-testing (2c133ad), closes #1697

  • Remove useMobilePress and useBreakpoint hooks (#1648) (430bf24), closes #1648

Features

  • adapt MessageOptions to theming v2 (23c2d93)
  • adapt MessageStatus to theming v2 (a5b0fae)
  • add "str-chat__message--error-message" class to message error div (c4f7520)
  • add Attachment icons for theming v2 (97e8047)
  • add Card component for theming v2 (5f5341f)
  • add class "str-chat__message-sender-avatar" to Avatar root to display it for sender only (ecd0b4b)
  • add class str-chat__message-list-scroll to virtuoso root element (7d2284e)
  • add common IconProps type (3ff89bb)
  • add FileAttachment component for theming v2 (52acd80)
  • add group styles to virtualized message list items (ff2044e)
  • add Message icons for theming v2 - MessageDeliveredIcon, MessageErrorIcon (9ff9034)
  • add ModalGallery to the ComponentContext (27e149a)
  • add realistic giphy attachment generator (e4c2a7b)
  • add str-chat__simple-message--error-failed class to str-chat__message-inner (a5f8f94)
  • add str-chat-react__modal__inner class to str-chat__modal__inner (0234522)
  • add svg image class to attachment (3d0237d)
  • add theme v2 class to CustomNotification (037dc89)
  • add theme v2 to Reaction components, extract shared logic ReactionList & SimpleReactionList (f6a12d0)
  • add themeVersion flag to ChatProps & ChatContext (70cbfcb)
  • add ThemeVersion type to ChatContext (695f30a)
  • add theming v2 changes for channel and channel header (#1632) (3f8fddb)
  • add theming v2 classes to MessageActions elements (d62e04a)
  • add theming v2 classes to QuotedMessage (8c5d2ff)
  • add theming v2 classes to ReactionSelector & ReactionList (fbedb42)
  • add v2 classes to send and cancel button of EditMessageForm (#1669) (ab75c2c)
  • adjust Audio widget for theming v2 (f08c6f5)
  • adjust Gallery and Image widget for theming v2 (de29a73)
  • adjust MessageRepliesCountButton to theming v2, add classes (5076fd5)
  • adjust MessageSimple for theming v2 (ebd4bd7)
  • allow card image enlargement in modal (47bf301)
  • apply theme-v2 to channel list and preview (#1603) (cc88f1f)
  • change the close icon for modal and remove Close text (88a5f7c)
  • compute the themeVersion value, remove themeVersion Chat prop (3421087)
  • convert attachment render functions into components, group attachments in order (aeee078)
  • do not sanitize attachment scrape urls (aa1624a)
  • extract CardAudio and render only uploaded audio data in Audio component (8027908)
  • forward flag "disabled" to search input (2ec25a1)
  • include the parent message in virtualized scrollable message list (dd63427)
  • message is considered top if it has reactions and bottom if the next message has reactions (638aead)
  • MessageInput: add drag & drop upload functionality (e731b67)
  • ProgressBar: add "seeking" feature to the progress bar (0320864)
  • ProgressBar: add onClick property (4d9d06c)
  • remove avatar from the thread header (dec0d8d)
  • remove deprecated components: MessageCommerce, MessageLivestream, MessageTeam (9d75fb8)
  • remove translations for deprecated components: MessageCommerce, MessageLivestream, MessageTeam (e524d0a)
  • render cards for each attachment with scraped data (0a59806)
  • show always ScrollToBottomButton on scroll up and show unread message count (e554356)
  • stop using FixedHeightMessage as default VirtualMessage component (fc67915)
  • switch ladle to v2 (ecd1cc6)
  • theming-v2: add channel search for theme v2 (#1685) (b735c30), closes #1669
  • ThemingV2: PopperTooltip component (#1714) (9b6301e)
  • TypingIndicator: add translations (f079e26)
  • update @stream-io/stream-chat-css to v3.0.0 (c5e392c)
  • update message componets with theme v2 designs (e5192d5)
  • use FileIcon with version in UploadsPreview (4d150b1)
  • wrap ThreadHead content in a div to enable styling for class str-chat__parent-message-li (9323edb)

Reverts

  • fix: File attachment UI in theme-v1 (789dd27)

BREAKING CHANGES

  • ThemingV2 - user testing and adjustments
  • useMobilePress and useBreakpoint hooks are removed.

useMobilePress: Historically, this hook programmatically handled the user interaction with Message components by toggling mobile-press class upon user interaction. The goal of this operation was to have the message actions displayed on the screen. Internally, we found a better solution by offloading this behavior to the browser and utilizing :focus and :focus-within CSS pseudo-selectors.

useBreakpoint: This hook did hold the "programmatic" responsive UI breakpoints. We realized they aren't always in line with our stylesheet breakpoints and possibly with our customer's breakpoints. This misalignment was causing some inconsistencies and issues. We are removing this hook because we believe defining UI breakpoints should be responsibility of our customers.

SearchResults: During the refactoring, we stumbled upon one side-effect where popupResults prop wasn't always respected. The fix of it could be a breaking change for a small percentage of our customers, but we believe this fix is the right thing to do.

10.0.0-theming-v2.3 (2022-09-06)

Bug Fixes

Features

  • increase and support overriding jump to message limit (#1718) (8c720f4)
  • ThemingV2: PopperTooltip component (#1714) (9b6301e)

10.0.0-theming-v2.2 (2022-08-22)

Features

  • add svg image class to attachment (3d0237d)

10.0.0-theming-v2.1 (2022-08-18)

Bug Fixes

  • add str-chat__message--other class to MessageDeleted (25f3190)

  • Card: prefer title_link over og_scrape_url (843990e)

  • do not generate class names to contain string 'undefined', do not pass Media prop to Card (40342fe)

  • EditMessageForm: remove circular dependency (6218a65)

  • File attachment UI in theme-v1 (0a80bef)

  • File attachment UI in theme-v1 (9604ca6)

  • FilePreviewItem: add file type for correct file icons (6e6fce5)

  • improve scrollToBottom with image attachments (be8bb7a)

  • include mdast-util-find-and-replace into our CJS bundle (#1702) (61c4eec), closes #1698

  • MessageInput: add container className (a5e7908)

  • MessageInputFlat: send button adjustments (f456704)

  • MessageInput: remove useId, add quotedMessage patch (64e07d3)

  • MessageInput: update dropzone markup (974802b)

  • MessageList: prevent redundant calls to scroll to bottom, don't use ResizeObserver (363676e)

  • MessageStatus: add V2 TooltipContainer component "shim" (dcfbbfb)

  • move card caption to card content and rename to source link (c44bcd7)

  • QuotedMessagePreview: use themingVersion instead of PreviewHeader property (4f79b07)

  • reduce mount/unmount of image attachments (34082a4)

  • replace FileReader with URL.createObjectURL (#1701) (c8a490e)

  • Responsive layout (7551650)

  • SuggestionList: update trigger limits (2e1f025)

  • sync event listener keyDown type btw the image attachment and gallery modal (51e7c14)

  • TypingIndicator: adjust position of the indicator (f5db199)

  • TypingIndicator: use MessageListMainPanel to position the indicator (865cbc8)

  • Merge pull request #1697 from GetStream/theming-v2-user-testing (2c133ad), closes #1697

  • Remove useMobilePress and useBreakpoint hooks (#1648) (430bf24), closes #1648

Features

  • adapt MessageOptions to theming v2 (23c2d93)
  • adapt MessageStatus to theming v2 (a5b0fae)
  • add "str-chat__message--error-message" class to message error div (c4f7520)
  • add Attachment icons for theming v2 (97e8047)
  • add Card component for theming v2 (5f5341f)
  • add class "str-chat__message-sender-avatar" to Avatar root to display it for sender only (ecd0b4b)
  • add class str-chat__message-list-scroll to virtuoso root element (7d2284e)
  • add common IconProps type (3ff89bb)
  • add FileAttachment component for theming v2 (52acd80)
  • add group styles to virtualized message list items (ff2044e)
  • add Message icons for theming v2 - MessageDeliveredIcon, MessageErrorIcon (9ff9034)
  • add ModalGallery to the ComponentContext (27e149a)
  • add realistic giphy attachment generator (e4c2a7b)
  • add str-chat__simple-message--error-failed class to str-chat__message-inner (a5f8f94)
  • add str-chat-react__modal__inner class to str-chat__modal__inner (0234522)
  • add theme v2 class to CustomNotification (037dc89)
  • add theme v2 to Reaction components, extract shared logic ReactionList & SimpleReactionList (f6a12d0)
  • add themeVersion flag to ChatProps & ChatContext (70cbfcb)
  • add ThemeVersion type to ChatContext (695f30a)
  • add theming v2 changes for channel and channel header (#1632) (3f8fddb)
  • add theming v2 classes to MessageActions elements (d62e04a)
  • add theming v2 classes to QuotedMessage (8c5d2ff)
  • add theming v2 classes to ReactionSelector & ReactionList (fbedb42)
  • add v2 classes to send and cancel button of EditMessageForm (#1669) (ab75c2c)
  • adjust Audio widget for theming v2 (f08c6f5)
  • adjust Gallery and Image widget for theming v2 (de29a73)
  • adjust MessageRepliesCountButton to theming v2, add classes (5076fd5)
  • adjust MessageSimple for theming v2 (ebd4bd7)
  • allow card image enlargement in modal (47bf301)
  • apply theme-v2 to channel list and preview (#1603) (cc88f1f)
  • change the close icon for modal and remove Close text (88a5f7c)
  • compute the themeVersion value, remove themeVersion Chat prop (3421087)
  • convert attachment render functions into components, group attachments in order (aeee078)
  • do not sanitize attachment scrape urls (aa1624a)
  • extract CardAudio and render only uploaded audio data in Audio component (8027908)
  • include the parent message in virtualized scrollable message list (dd63427)
  • message is considered top if it has reactions and bottom if the next message has reactions (638aead)
  • MessageInput: add drag & drop upload functionality (e731b67)
  • ProgressBar: add "seeking" feature to the progress bar (0320864)
  • ProgressBar: add onClick property (4d9d06c)
  • remove avatar from the thread header (dec0d8d)
  • remove deprecated components: MessageCommerce, MessageLivestream, MessageTeam (9d75fb8)
  • remove translations for deprecated components: MessageCommerce, MessageLivestream, MessageTeam (e524d0a)
  • render cards for each attachment with scraped data (0a59806)
  • show always ScrollToBottomButton on scroll up and show unread message count (e554356)
  • stop using FixedHeightMessage as default VirtualMessage component (fc67915)
  • switch ladle to v2 (ecd1cc6)
  • theming-v2: add channel search for theme v2 (#1685) (b735c30), closes #1669
  • TypingIndicator: add translations (f079e26)
  • update message componets with theme v2 designs (e5192d5)
  • use FileIcon with version in UploadsPreview (4d150b1)
  • wrap ThreadHead content in a div to enable styling for class str-chat__parent-message-li (9323edb)

Reverts

  • fix: File attachment UI in theme-v1 (789dd27)

BREAKING CHANGES

  • ThemingV2 - user testing and adjustments
  • useMobilePress and useBreakpoint hooks are removed.

useMobilePress: Historically, this hook programmatically handled the user interaction with Message components by toggling mobile-press class upon user interaction. The goal of this operation was to have the message actions displayed on the screen. Internally, we found a better solution by offloading this behavior to the browser and utilizing :focus and :focus-within CSS pseudo-selectors.

useBreakpoint: This hook did hold the "programmatic" responsive UI breakpoints. We realized they aren't always in line with our stylesheet breakpoints and possibly with our customer's breakpoints. This misalignment was causing some inconsistencies and issues. We are removing this hook because we believe defining UI breakpoints should be responsibility of our customers.

SearchResults: During the refactoring, we stumbled upon one side-effect where popupResults prop wasn't always respected. The fix of it could be a breaking change for a small percentage of our customers, but we believe this fix is the right thing to do.

9.5.1 (2022-09-08)

Bug Fixes

  • avoid race condition crash in jumping (488a1b1)

9.5.0 (2022-08-29)

Bug Fixes

  • include mdast-util-find-and-replace into our CJS bundle (#1702) (61c4eec), closes #1698
  • prevent double submissions in korean (#1720) (5d781d8)
  • replace FileReader with URL.createObjectURL (#1701) (c8a490e)
  • Vite: add emoji-mart (emoji, picker) re-export (#1724) (c90cf4b)

Features

  • increase and support overriding jump to message limit (#1718) (8c720f4)

9.4.1 (2022-08-04)

Bug Fixes

9.4.0 (2022-08-03)

Bug Fixes

  • detect mentions of users who have email as their name (#1698) (367b7c4)

Features

  • allow to send custom message data when editing a message (#1696) (05eae28)

9.3.0 (2022-07-29)

Bug Fixes

  • scroll to bottom on new message notification click after message list pagination (#1689) (d8f4bc5)
  • update types for suggestions (#1691) (bb7442c), closes #1659

Features

  • message-status: extendable user information in read-by tooltip (#1670) (902029a)

9.2.0 (2022-07-26)

Features

  • add autoscrollToBottom to message context (#1681) (a616184)

9.1.5 (2022-07-15)

Bug Fixes

9.1.4 (2022-06-22)

Bug Fixes

  • respect updates to messageActions prop, support messageActions overrides in Thread (#1634) (aed8e01), closes #1627

9.1.3 (2022-06-19)

Bug Fixes

  • correct calculation of scrollback with date separators (#1628) (88a4d64)
  • upgrade react-player to its latest version (#1629) (8848700)

9.1.2 (2022-06-13)

Bug Fixes

  • add check if window is defined before using ResizeObserve (f04e23e)

9.1.1 (2022-06-10)

Bug Fixes

  • calculate jumped-to-message position correctly by keeping the loading indicator mounted (671375a)

9.1.0 (2022-06-03)

Bug Fixes

  • filter out OG scraped images from attachments (#1598) (9d9c8b9)

Features

  • add optional renderChannels prop to ChannelList (#1572) (8edca9e)
  • lift channels query state to chat context (#1606) (ed4febc)
  • use ResizeObserver to keep Channel scrolled to bottom on page load (#1608) (c33e155)

9.0.0 (2022-05-17)

Bug Fixes

  • display textarea defaultValue in MessageInput (#1570) (516a56b)

Features

  • MessageInput: add shouldSubmit, remove keycodeSubmitKeys (8e2cddd), closes #1530
  • add support for React 18 (#1534) (39cedcb)

BREAKING CHANGES

  • MessageInput: property has been fully removed and replaced by the property which should handle custom submit "trigger" functionality. Both listener.js and usage of key codes were outdated and caused unnecessary issues.

8.2.0 (2022-05-17)

Bug Fixes

  • display textarea defaultValue in MessageInput (#1570) (516a56b)

Features

8.1.3 (2022-05-15)

Bug Fixes

  • do not scroll thread message list when a new message is received (#1568) (b17c48a)
  • propagate user update data to UI (#1566) (3376e4c)

8.1.2 (2022-04-27)

Bug Fixes

  • display overlay "X more" on Gallery only if more images uploaded than displayed (#1526) (ed47cd1)

8.1.1 (2022-04-18)

Bug Fixes

  • prevent duplicate message id generation in message list (#1516) (b381402)
  • update stream-chat-js to version 6.5.0 containing the markRead fix, add E2E tests (#1514) (b8e1084)

8.1.0 (2022-04-08)

Bug Fixes

  • adjust links to stories used by add-message e2e tests (c6dc53a)
  • autocomplete items clicking works on webkit (#1494) (4f73f14)
  • correct german calendar translation strings (#1468) (2471d4b), closes #1467
  • fixed connection handling, updated configuration (0face10)
  • improve portuguese translations (5e67a86)
  • improved German translations (c4d71b6)
  • improved German translations (a6fe4fb)
  • Slow mode role check and limitations (a447ed5)
  • Update channel preview on connection recovery (92f81d9)
  • Update quoted message preview on message update (#1503) (f9a0081)
  • update unread counts for each ChannelPreview on WS connection recovery (b267a65)
  • Upload preview overflow in thread (#1495) (518d622)

Features

8.0.0 2022-03-17

Bug Fixes

  • improve performance of VirtualizedMessageList (d2f28af)
  • maintain correct reference to values inside doMarkReadRequest (#1442) (30b79d6), closes #1324
  • make scrollToLatestMessageOnFocus smarter (f37b193), closes #1415
  • move UploadsPreview outside textarea wrapper (#1454) (8ebbf29)
  • name from StreamChatType to StreamChatGenerics (653aef3)
  • remove obsolete polyfill (2b13594), closes #1375
  • remove translation warning (3d951f2)

Features

  • onBlur prop for ChatAutoComplete (c9897f4), closes #1345
  • support choosing a giphy version (0d97fc6)

⚠️ BREAKING CHANGES ⚠️

7.0.0 2022-02-10

⚠️ BREAKING CHANGES ⚠️

  • Replace stale react-images dependency with react-image-gallery, removed ModalImage #1318
  • Add support for accessibility through the use of semantic HTML, ARIA attributes. Updates include changing HTML elements to different types as necessary #1314 and #1294

Feature

  • Add support for QuotedMessages in a Thread #1356
  • Add wordReplace prop to ChatAutoComplete to override default behavior #1347

Chore

  • Fix small documentation typo #1312
  • Improve compatibility with NextJS #1315
  • Use the Avatar from the ComponentContext in QuotedMessagePreview #1311
  • Set ImagePreviewer to disabled if multiple uploads is not allowed #1330
  • Export QuotedMessagePreview component #1339
  • Add guide on how to build a custom list with channel members and have real time updates of their online status #1350
  • Support URLs with encoded components #1353
  • Remove UNSAFE warning from AutoCompleteTextarea #1354
  • Add current text to openMentionsList method #1360
  • Update to Window's hideOnThread prop to handle via CSS #1363
  • Upgrade stream-chat-css dependency to v2.2.1 #1365

Bug

  • Fix the logic for the VirtualizedMessageList's firstOfGroup prop #1338
  • Fix bug where on channel.updated event own_capabilities and hidden values are lost #1346
  • Add a fix so quotes (aka replies) are not still available in message options when quotes are disabled in configuration #1364

6.12.2 2021-12-09

Feature

  • Add closeEmojiPickerOnClick and added focus to input after Emoji or attachment selection #1292

Chore

  • Update Japanese and Korean translations #1296
  • Fix broken documentation links #1300
  • Add updated scoped CSS dependency stream-chat-css NPM package #1301
  • Upgrade stream-chat-css dependency to v1.1.3 #1306
  • Upgrade react-virtuoso to improve stability #1304
  • Upgrade stream-chat dependency to v4.0.0

6.12.0 2021-11-22

Feature

  • Add ability to manually open/close mentions list #1261
  • Support custom message group CSS classes #1287
  • Ability to drag and drop files to the entire window #1283
  • Add semantic release #1293

Chore

  • Render reaction list for frozen channels #1262

  • Remove unsafe props from Textarea component #1263

  • Use context Avatar in QuotedMessage and TypingIndicator #1264

  • Pass setChannels state hook to list UI component #1265

  • Update user info in messages when subscribed to presence events #1267

  • File and image attachments are now filtered according to the application settings #1291

  • Check for already encoded URLs in a message #1288

  • Set reset state to false in usePaginatedChannels #1289

  • File and Image attachments are now filtered according to the application settings #1291

  • Check for already encoded URLs in a message #1288

  • Set reset state to false in usePaginatedChannels #1289

6.11.0 2021-10-28

Feature

  • Support custom notifications in the VirtualizedMessageList component #1245

Chore

  • Update type definitions for emoji-mart and moment dependencies #1254
  • Add Vite app to examples directory #1255
  • Upgrade react-virtuoso to fix Safari v15 edge case #1257
  • Deprecate the theme prop on the Chat component #1258
  • Upgrade mml-react dependency #1260

6.10.0 2021-10-13

Feature

  • Export markdown utils functions used within renderText #1228
  • Use own_capabilities field on channel to determine connected user permissions #1232
  • Pass component names to custom context hooks for error tracing #1238

Chore

  • Update German i18n translations #1224
  • Upgrade react-virtuoso for zoom fix #1233
  • Use optional activeUnreadHandler in Channel component's markRead function when provided #1237
  • Replace custom context hook error throws with console warnings #1242

Bug

  • Fix UI header bug for Levenshtein autocomplete mention search #1235
  • Ensure channelConfig is updated when Channel mounts an unwatched channel #1239

6.9.1 2021-10-01

Feature

  • Add chatContainer custom CSS class name override #1216

Chore

  • Add descriptive error messages to custom context consumer hooks #1207
  • Pass value prop to SuggestionItem component #1207
  • Update docs for custom ChannelList event handler example #1209
  • Add cooldownInterval to MessageInput context value memoization #1209
  • Reduce packaged CSS bundle size #1219

Bug

  • Prevent user start/stop watching events from resetting the channel state #1206

6.9.0 2021-09-24

Feature

  • Add new virtual event example app #1189
  • Memoize object values injected into context providers #1194
  • Support emojis as the first character in a user name for the Avatar component's fallback #1201
  • Provide the option to pass additional props to the Virtuoso component in the VirtualizedMessageList #1202

Chore

  • Improve documentation around approved attachment types #1190
  • Upgrade react-virtuoso dependency #1194
  • Refactor ChannelList pagination offset logic to handle channels being added/removed from the list #1200

6.8.0 2021-09-17

Feature

  • Improve user mention experience by ignoring diacritics, adding a useMentionsTransliteration prop to install an optional transliteration dependency, and using Levenshtein distance to match similar names #1176
  • Add event listener to ChannelPreview to handle markAllRead function calls on the client #1178
  • Add setText function to MessageInputContext, which overrides and sets the value of the MessageInput component's textarea element #1184
  • Add activeUnreadHandler prop to Channel, which runs when the active channel has unread messages #1185

Chore

  • Remove all SCSS files and import library styles from stream-chat-css dependency. This is non-breaking as the build process injects the external styles into the exact distributed directory as before. #1168
  • Upgrade stream-chat and react-file-utils dependencies #1178

6.7.2 2021-09-15

Feature

  • Add optional allowNewMessagesFromUnfilteredChannels argument to useNotificationMessageNewListener and useNotificationAddedToChannelListener hooks to prevent channel from incrementing the list #1175

Bug

  • Fix issue with autocomplete mentions displaying muted users #1171
  • Prevent user mention edge case crash #1172
  • Fix reaction handler edge case on mobile web use case #1173
  • Add missing default value for publishTypingEvent MessageInput prop #1174

6.7.1 2021-09-14

Bug

  • Prevent custom message data from being deleted on edit message request #1169
  • Fix issue with autocomplete mentions displaying muted users #1170

6.7.0 2021-09-10

Feature

  • Add ability to override high-level, CSS container classes via the customClasses prop on Chat #1159. See the docs for more information.
  • Allow custom message actions in the VirtualizedMessageList #1166
  • While using the MessageSimple UI component, allow message grouping in the VirtualizedMessageList via the shouldGroupByUser prop #1166
  • Add ability to customize the svg icons in the MessageOptions component #1159
  • Create a Capacitor sample app to test run the library natively #1158

Bug

  • Fix edge case around custom message actions not showing up when default actions are disabled #1161

6.6.0 2021-08-30

Feature

  • Add optimistic response to pin message request #1149
  • Add option to close ReactionSelector component on reaction pick #1150

Chore

  • Improve ChannelSearch types for channel and user filters #1141
  • Remove unnecessary useMessageInputState props #1145
  • Upgrade react-virtuoso dependency #1148
  • Add Rollup image plugin and upgrade react-file-utils #1151

Bug

  • Hide URL link overflow in MessageSimple #1147

6.5.1 2021-08-13

Feature

  • Add option to pass customMessageData to the ChannelActionContext sendMessage function #1123

Chore

  • Add support to quote a message with an attachment #1118
  • Upgrade stream-chat to major version 4 #1120

Bug

  • Skip MessageInput slow mode cooldown for admin and moderator user roles #1116

6.5.0 2021-08-11

Feature

  • Add defaultItemHeight prop to VirtualizedMessageList to smooth rendering of long and differently sized lists. Also, prevent new message notification icon from flashing when switching channels. #1112

Chore

  • Improve EmojiContext types and documentation #1107
  • Adjust Attachment component rendering in Message UI components for cases with no attachment array length #1115

6.4.11 2021-08-06

Chore

  • Upgrade react-virtuoso for tall last message edge case #1102
  • Upgrade stream-chat and example app dependencies #1103

6.4.10 2021-08-05

Feature

  • Clear message input text prior to successful message response and revert to original text if request fails #1097

Chore

  • Update Japanese and Korean translations #1091 and #1099
  • Prevent Avatar component from being able to render its name as a number #1097

Bug

  • Fix logic to show input send button on breakpoint change to mobile/tablet views #1095

6.4.9 2021-08-02

Feature

  • Add defaultLanguage prop to Chat component to specify fallback language for translation of UI components #1086

Chore

  • Optimize VirtualizedMessageList message grouping and rendering logic #1088

6.4.8 2021-07-30

Feature

  • Add SearchInput UI prop to ChannelSearch component to override/extend default HTML input element #1079
  • Detect connected user's preferred language for translation when language not set by Streami18n instance #1082
  • Add Japanese and Korean to list of supported languages for auto translation #1085

6.4.7 2021-07-27

Feature

  • Add the ability to open/close list of available commands on click #1072
  • Add the ability to set custom active channel on mount even if it's not returned in the initial queryChannels response #1078

Chore

  • Replace replaceAll method with replace and add global flag for older browser support #1074
  • Adjust VirtualizedMessageList CSS to support MessageSimple #1075

6.4.6 2021-07-23

Chore

  • Add error handling to MessageInput submit handler functions #1068
  • Upgrade react-images dependency for React 17 support #1069

6.4.5 2021-07-21

Feature

  • Provide option to use VirtualizedMessageList in Thread component via the virtualized boolean prop #1065

Chore

  • Pass message object override prop to MessageText component #1063
  • Add fallback name for specific rendered Avatar components #1066

6.4.4 2021-07-20

Bug

  • Fix bundle issues with dependency CSS imports #1061

6.4.3 2021-07-20

Feature

  • Reload ChannelList component when sort prop changes #1054

Chore

  • Add repo info to NPM page #1051
  • Export MML component #1053
  • Upgrade react-virtuoso dependency #1057
  • Revert removal of EmptyStateIndicator component for threads #1058
  • Move mml-react (optional dependency) CSS import to MML component #1059

6.4.2 2021-07-14

Feature

  • In the VirtualizedMessageList, add option to view the Giphy preview above the MessageInput (not as a message in the list) using the separateGiphyPreview prop #1045
  • Add optimistic response for sending reactions #1048

Chore

  • Upgrade typescript and stream-chat dependencies #1049

6.4.1 2021-07-09

Chore

  • Upgrade react-file-utils to fix NextJS support #1043

Bug

  • Fix offset increment issue for unwatched channels #1038

6.4.0 2021-07-07

⚠️ BREAKING CHANGES ⚠️ - The following values have been moved to the newly created EmojiContext:

  • Emoji - moved from ComponentContext
  • emojiConfig - moved from ChannelStateContext
  • EmojiIndex - moved from ComponentContext
  • EmojiPicker - moved from ComponentContext

Feature

  • Lazy load the emoji-mart dependency #1037

Chore

  • Remove unused CSS #1035

6.3.0 2021-07-02

⚠️ BREAKING CHANGES ⚠️ - We've removed the following deprecated UI components #1031:

  • ChannelListTeam
  • ChannelPreviewCompact
  • ChannelPreviewCountOnly
  • ChannelPreviewLastMessage
  • MessageInputLarge
  • MessageInputSimple

Feature

  • Added option to view read states on all messages #1014
  • Added markdown rendering support for ChannelPreview component #1021
  • Added sendChannelsToList prop to ChannelList to pass loadedChannels to the List UI component #1028
  • Pass entire user object to Avatar component for custom component usage #1030
  • Send error notification to channel via addNotification method when file/image upload fails #1032
  • Conditionally render SendButton when attachments have been uploaded but no input text exists #1033

Chore

  • Update MessageInput emoji icons #1020 and #1029
  • Upgrade react-file-utils dependency #1027

6.2.0 2021-06-24

πŸŽ‰ CSS VARIABLES THEMING! πŸŽ‰

  • We've replaced much of the library's hardcoded CSS with customizable variables #927
  • Variable support has been added for fonts, colors, border radius, padding, and margin
  • The Chat component now accepts a customStyles prop, an object type of CSS variables and value overrides
  • See the CSS and Theming section of our docs for an example of how to implement

Feature

  • Added error notification handling for failed deleted messages #1002
  • Added UI component override prop for MessageListNotifications #996

Chore

  • Refactor typing of Attachment components #995

6.1.2 2021-06-21

Feature

  • Refactor message permissions so they respect channel config #986
  • Add limit option to default user mention behavior #988
  • Add additional customization for ChannelSearch component #989
  • Add formatDate prop override potential DateSeparator component #992

Chore

  • Refactor typing of Attachment component #991

6.1.1 2021-06-16

Chore

  • Upgrade TypeScript dependencies #982

Bug

  • Add missing onlySenderCanEdit prop to Message component #982

6.1.0 2021-06-15

πŸŽ‰ UPDATED DOCS! πŸŽ‰

  • We have completely re-written our SDK docs
  • Component/props/context references are all complete
  • We'll continually add to the Custom Code Examples section for easier customization
  • The new docs are found on the website

Feature

  • Refine edit message privileges and add onlySenderCanEdit prop to MessageList #975

Chore

  • Change attachment type for video messages #976
  • Adjust mouse event listener options #980

Bug

  • Prevent EmptyStateIndicator from showing up in Thread #977

6.0.7 2021-06-14

Feature

  • Add support for custom reactions #968

Chore

  • Upgrade stream-chat dependency

Bug

  • Fix UI component conditional rendering in Attachment #972
  • Add needed params to ChannelSearch search function prop #973

6.0.6 2021-06-02

Chore

  • Throttle send/remove message reaction functions #953 and #955

Bug

  • Restore override props on ChatAutoComplete component #952

6.0.5 2021-05-28

Feature

  • Add optional prop to override default loadMore function in VirtualizedMessageList #950

Bug

  • Prevent unnecessary members query when disableMentions is enabled on MessageInput #949

6.0.4 2021-05-25

Bug

  • Add missing Input prop to ComponentContext value #942

6.0.3 2021-05-25

Chore

  • Export browser bundle as StreamChatReact namespace #940
  • Use asset path scss variable #939

6.0.2 2021-05-21

Feature

  • Add German auto translation support #935

Chore

  • Upgrade react-file-utils dependency for reduced bundle size #933

Bug

  • Prevent tree shaking from removing distributed CSS #936

6.0.1 2021-05-19

Feature

  • Expose the MessageContext to the VirtualizedMessageList's Message UI component #924

Chore

  • Reorganize component documentation for v6 #926

Bug

  • Prevent crash when navigate away from, and then back to, an empty channel #931

6.0.0 2021-05-17

⚠️ BREAKING CHANGES ⚠️ - Please review our v6 implementation guide prior to upgrading.

With this release, we've completely refactored how we share data in the component library. We've segmented our former ChannelContext into the following four sub-contexts:

  • ChannelActionContext - provides the functions needed to operate a Channel
  • ChannelStateContext - provides the stateful data needed to operate a Channel
  • ComponentContext - provides the UI component overrides for all child components of a Channel
  • TypingContext - provides an object of users currently typing in the Channel

NOTE: The ChannelContext no longer exists, so all old references to useChannelContext() or useContext(ChannelContext) need to be replaced with the relevant context above. A list of all data found within each new context can be found here.

Feature

  • We've added a handful of new features in this release, check out this wiki for more details. New features include:
    • custom message actions
    • custom triggers
    • channel search
    • quoted messages
    • cooldown timer / slow mode UI
    • submit key override
  • The Message component now provides the MessageContext to its children. Reference this guide for instructions on creating a custom message UI component.
  • The MessageInput component now provides the MessageInputContext to its children. Reference this guide for instructions on creating a custom input UI component.

5.4.0 2021-05-13

Feature

  • Scroll to bottom of MessageList when the last message receives a reaction or reply #916

Chore

  • Preserve modules during build to optimize tree shaking potential #919
  • Support 'next-images' dependency in NextJS sample app #920

5.3.2 2021-05-03

Feature

  • Add scrollToLatestMessageOnFocus prop to VirtualizedMessageList to handle focus changes on browser tab switching #892
  • Add MessageNotification prop to MessageList components to allow customization of the new messages notification popup #894

Bug

  • Adjust URL parsing for duplicate entries #893

5.3.1 2021-04-30

Bug

  • Add message memoization case for read states #888
  • Fix regex trigger for multiple mentions #889
  • Add message memoization case for muted user array #891

5.3.0 2021-04-29

Feature

  • Added support for user.deleted and user.updated event handling #884
    • Requires stream-chat >= 3.8.0
    • In case of user.deleted event, messages from corresponding user will be marked as deleted
    • In case of user.updated event, user property on messages from corresponding user will be updated.

5.2.1 2021-04-28

Chore

  • Adjust processed messages logic #876
  • Make mml-react an optional dependency and lazy load #881

Bug

  • Copy missing translations from built types #879

5.2.0 2021-04-26

Feature

  • Add Spanish and Portuguese auto translation support #874

Chore

  • Adjust processed messages conditional logic for VirtualizedMessageList #875

5.1.8 2021-04-21

Chore

  • Update message group styling defaults in message UI components #860
  • Refine pin message permission checking #866

Bug

  • Update MessageActions event listener types #855
  • Fix suggestion list command conditional check #865

5.1.7 2021-04-13

Feature

  • Remove channel creator's ability to edit/delete other users' messages #853

Chore

  • Generalize event types to allow for greater action handler flexibility #850

5.1.6 2021-04-10

Feature

  • Adjust message memoization for custom UI components #849

Bug

  • Fix CSS display issue for messages with reactions #849

5.1.5 2021-04-09

Chore

  • Adjust submit handler types #847

Bug

  • Remove old CSS leading to Gatsby error #846

5.1.4 2021-04-07

Bug

  • Filter falsey emoji search results #843

Chore

  • Adjust submit handler types #844

5.1.3 2021-04-06

Feature

  • Optimize message list components by limiting excess loadMore calls #841

Bug

  • Fix AutoCompleteTextarea trigger highlighting bug #839

5.1.2 2021-04-05

Feature

  • Provide option to hide DateSeparator component for new messages with the hideNewMessageSeparator prop on MessageList and VirtualizedMessageList components #837

Bug

  • Fix bad conditional in useMentionsHandlers custom hook #836

5.1.1 2021-04-02

Feature

  • Show formatted date separator for new messages #818
  • Provide option to display flag emojis as images on Windows via useImageFlagEmojisOnWindows prop #821
  • Hide reaction icon when a message has reactions #826

Chore

  • Update types on Chat component #825
  • Update Prettier settings #831

Bug

  • Escape characters that break emoji regex #823
  • Fix autocomplete textarea text replace algorithm #827
  • Force close suggestions list on submit #828

5.1.0 2021-03-30

Feature

  • Add type support for Moment.js date objects #809
  • Add i18n translation support for ChannelPreview #810
  • Allow addNotification function to be called anywhere within Channel #811
  • Hide MessageActions if no actions exist #816

Chore

  • Refactor failed message UI component #811
  • Remove extra watchers query #817
  • Prevent queryUsers from searching a null value #817

5.0.3 2021-03-24

Feature

  • Add customization options for renderText function #807

5.0.2 2021-03-23

Bug

  • Fix optimistic UI for mentions #800

5.0.1 2021-03-23

Chore

  • Upgrade react-file-utils to v1.0.2

5.0.0 2021-03-22

πŸŽ‰ TYPESCRIPT πŸŽ‰

  • The entire component library has been converted to TypeScript
  • Despite the major tag, this release is non-breaking
  • Read our TypeScript Support wiki for guidance on instantiating a StreamChat client with your custom types via generics

Feature

  • Conversion to TypeScript #797

4.1.3 2021-03-12

Chore

  • Remove legacy example apps #766
  • Handle soft deleted messages in VirtualizedMessageList #773

Bug

  • Add missing ChannelPreview helpers to exports #775

4.1.2 2021-03-09

Feature

  • Export ChannelPreview utility functions #750
  • Memoize ChannelList filters to prevent extra channel queries #752

Chore

  • Update Customizing Styles section of README #756
  • Change emoji-mart imports to support server-side rendering #764

Bug

  • Close emoji picker on emoji icon click #751
  • Hide reaction tooltip on click #753

4.1.1 2021-02-26

Chore

  • Upgrade stream-chat dependency to fix reaction caching issue #742

Bug

  • Fix markdown link rendering issues #742

4.1.0 2021-02-25

Chore

  • Upgrade react-virtuoso dependency #694
    • Improved support for loading unevenly sized messages when scrolling back
    • Support smooth scrolling to bottom when new messages are posted (controlled through stickToBottomScrollBehavior property)
    • Adding reactions no longer cancels the automatic scrolling when new messages appear
  • Generate minified CSS output #707
  • Upgrade stream-chat dependency #727
  • Upgrade mml-react dependency #728
  • Upgrade emoji-mart dependency #731

Feature

  • Add tabIndex to emoji picker #710
  • Add dispatch function from channelReducer to ChannelContext #717
  • Improve mobile support for display of the MessageOptions component #723
  • Add key down a11y support for emoji picker #726
  • Add scrolledUpThreshold prop to MessageList #734

Bug

  • Fix reaction list click propagation issue #722
  • Fix reaction list non-breaking space issue #725
  • Fix URL markdown in code blocks #733

4.0.1 2021-02-11

Chore

  • Add usePinHandler example to docs #705
  • Remove legacy APIs in mock data used for generating the docs #704

4.0.0 2021-02-10

⚠️ BREAKING CHANGES ⚠️

  • Removed the seamless-immutable dependency and its corresponding methods and types #687

    • We also removed this dependency at the stream-chat JS client level, therefore immutable methods, such as setIn, no longer need to be run on the returned data #602
    • Responses from the Stream API will now return standard JS data structures, without the immutable wrapping
    • When you upgrade to v4.0.0 of stream-chat-react, make sure you also upgrade to v3.0.0 of stream-chat

Feature

  • Performance optimize and allow customization of the emoji-mart dependency #530
  • Add custom image prop to ChannelHeader component #697

Chore

  • Removed the SonarJS linting rules #693

Bug

  • Fix permissions bug with custom channel types #695
  • Fix ChannelHeader CSS alignment issue #699

3.6.0 2021-02-02

Feature

  • Added support for pinned messages #682

    • Save pinnedMessages to ChannelContext
    • Create usePinHandler custom hook for returning canPin value and handlePin function
    • Add Pin/Unpin as optional actions in MessageActions
    • Add PinIndicator UI component to MessageLivestream and MessageTeam
    • Add optional "pinned-message" CSS class to message UI components
    • Add getPinMessageErrorNotification and pinPermissions as MessageList props
  • Hide DateSeparator component when all messages for a day are deleted #689

Chore

  • Refactor example apps to use getInstance and connectUser #688

Bug

  • Display auto-translated message text when it exists #683
  • Add missing export for VirtualizedMessageList type #691

3.5.3 2021-01-26

Feature

  • ChannelList accepts an optional prop to filter/sort channels prior to render #678

3.5.2 2021-01-21

Fix

  • Handle emoji picker event listener race condition #675
  • Adjust style for only emoji messages #676

3.5.1 2021-01-19

Fix

  • Upload PSD attachments as file #673

Chore

  • Bump MML-React #674

3.5.0 2021-01-15

Feature

  • Support typing indicator in Thread component #662
  • Add parent ID to typing events #665
  • Allow MessageInput emoji and file upload icon customization #666
  • Add optional disableMentions prop to MessageInput and update mentions UI #669

Fix

  • Fix maxLength paste text bug #670

3.4.6 2021-01-08

Feature

  • Add SuggestionList as MessageInput prop to override default List and Item component to display trigger suggestions #655
  • Add allowNewMessagesFromUnfilteredChannels prop to ChannelList #663

Fix

  • Fix type for mentions handler #660

Chore

  • Convert Thread to functional component #650
  • Convert messaging sample app to functional component #661

3.4.5 2021-01-07

Feature

  • Message components accept custom EditMessageInput component #656

Fix

  • Message actions default options doc #654
  • MessageList unread TypeError #654
  • ChannelHeader button css padding #648

Chore

3.4.4 2020-12-23

Addition

  • Export the UploadsPreview component. #647

3.4.3 2020-12-16

Fix

  • Browser bundle undefined variable

3.4.2 2020-12-16

Adjustment

  • Changes default smiley face icon for reaction selector. #645

3.4.1 2020-12-15

Feature

  • Adds custom UI component prop ThreadHeader to Thread to override the default header. #642

3.4.0 2020-12-14

Feature

  • MML is supported by default in all Message components except MessageLiveStream. #562

    For more detail about how to use MML please refer to mml-react docs.

3.3.2 2020-12-11

Fix

  • Add error handling for loadMoreThread API request #627

3.3.1 2020-12-9

Fix

  • Add additional user role check for isModerator boolean #625

3.3.0 2020-12-3

Feature

  • Allow all instances of Avatar to be overridden with a custom component via props #610

3.2.4 2020-11-19

Fix

  • Prevent firing LoadMore requests when browser is offline #614
  • Support muted channels in ChannelPreview #608
  • ChannelContext.sendMessage type accepts missing text #613

3.2.3 2020-11-13

Fix

  • Email links are clickable #607
  • message.own_reactions passed into Reaction components #604

3.2.2 2020-11-05

Fix

  • VirtualizedMessageList breaking the list for falsy messages #602
  • FixedHeightMessage action box not opening in React@17 #602
  • Missing custom hooks type #601

3.2.1 2020-11-04

Fix

  • VirtualizedMessageList stick to bottom #597

3.2.0 2020-11-04

Chore

  • Support React v17 #588

3.1.7 2020-10-29

Fix

  • Improved errorHandling on failed uploads. #596
  • Escape special characters in mentioned_users names #591
  • Improve handling max files(10) in MessageInput #593

3.1.6 2020-10-21

Fix

  • displayActions prop is respected in MessageOptions component #587

Chore

  • stream-chat-js required version bumped to 2.7.x #582

3.1.5 2020-10-19

Feature

  • Disable upload dropzone and input button in Input components based on channel config #585

Fix

  • Disable the upload dropzone and input button when the maximum number of allowed attachments is reached #577

3.1.4 2020-10-19

Fix

  • Fixed a bug with ChannelList pagination with low limits or high thresholds #583

Added

  • Disable reactions based on channel config #581
  • Disable Thread based on channel config #580
  • Disable TypingIndicator based on channel config #579

3.1.3 2020-10-15

Fix

  • Better handling of offsets during loadMore #578

3.1.2 2020-10-14

Fix

Event handler for message.new by default moves the channel to top of the list. But it didn't handle the case where channel was not already present in list. useMessageNewHandler has been updated to handle this case. c563252

3.1.1 2020-10-14

Fix

  • FixedHeightMessage text overflow #573
  • Prevent state updates on unmounted Channel component #566

3.1.0 2020-10-14

Feature

  • VirtualizedMessageList supports message grouping #571
<VirtualizedMessageList shouldGroupByUser />

Fix

  • VirtualizedMessageList TypingIndicator is disabled by default #571

3.0.3 2020-10-13

Fix

  • Security issue due to missing rel="noopener noreferrer" in rendered links #570

3.0.2 2020-10-12

  • Bump stream-chat to v2.6.0 #568

3.0.1 2020-10-05

  • Bumped dependencies #558

Fix

  • Fixed issues on docs #556
  • Fix type issues #557
  • Keep channel.members in sync #561

Added

  • Export EmojiPicker #560

3.0.0 2020-09-30

BREAKING CHANGES

  • Image component renamed to ImageComponent #554

2.6.2 2020-09-29

Fix

  • Fixed several type issues #552

2.6.1 2020-09-29

Fix

  • Fixed an issue with MessageLivestream where mutes and flags were not happening #551

2.6.0 2020-09-29

Feature

  • New messages date indicator in MessageList and VritualizedMessageList #548
  • Reply/Reactions are available in messageActions #547

Fix

  • Fix opacity on emoji in EditMessageForm #540
  • Sanitize URL image sources in Image component #543
  • Add first letter of display name to avatar #545

2.5.0 2020-09-24

Feature

  • TypingIndicator component is added by default to both MessageList and VirtualizedMessageList components. This component can also be used by its own. #535

2.4.0 2020-09-17

Feature

  • VirtualizedMessageList is a new component that can handle thousands of messages in a channel. It uses a virtualized list under the hood. #487

Fix

  • Typescript generics of stream chat js are ABC adjusted #521

2.3.3 2020-09-15

  • Refactored Attachment component to now also accept a Gallery prop that will handle when the attachments array contains multiple images.
  • Upgraded react-file-utils which fixes image previews not displaying on the EditMessageForm
  • Fix PropType errors
  • Fix an issue with the infinite scroll on the MessageList when the client is offline

2.3.2 2020-09-10

  • Upgrading stream-chat to 2.2.2

2.3.1 2020-09-10

  • Upgrading stream-chat to 2.2.1

2.3.0 2020-09-10

  • Upgraded stream-chat package to v2.2.0

2.2.2 2020-08-21

  • Separated ConnectionStatus component from MessageList 82c8927
  • Bug fix: When Channel component is standalone used (without ChannelList), mentions feature wouldn't work 4f64abc

2.2.1 2020-07-31

  • Added listener for channel.hidden event and prop to override the default behaviour onChannelHidden 643af50
  • Added listener for channel.visible event and prop to override the default behaviour onChannelVisible 56e1208

2.2.0 2020-07-31

  • Added doMarkReadRequest prop to Channel component, to override markRead api calls 49a058b8

2.1.3 2020-07-27

  • Fix empty reaction showing bubble #473

2.1.2 2020-07-27

  • Add formatDate to docs #469
  • Allow reaction override in Message components #470
  • Fix runtime require in browser bundle #472

2.1.1 2020-07-22

  • Bumped react-file-utils to 0.3.15 which includes an upgraded version of blueimp-load-image which makes it easier to use this library in SSR apps.

2.1.0 2020-07-22

  • Rename exported component File to FileAttachment to avoid overriding window.File in bundled release

2.0.4 2020-07-21

  • Fixed type issues
  • Fixed an issue with the mobile navigation
  • Added the ability to customize the datetime stamp on Message components using the formatDate prop

2.0.3 2020-07-20

  • All components using mutes get them using the useContext hook.
  • Performance updates
  • Fix for document.title when read_events are disabled
  • Added docs on using included hooks

2.0.2 2020-07-16

  • Fixed some issues with editing messages
  • Fixed some issues with muting/unmuting messages

2.0.1 2020-07-15

We’re bumping stream-chat-react to version 2.0.1 because over the past three months we’ve been doing a major refactor of our codebase. The foundational work includes:

  • Major refactor and code cleanup
  • Components have been rewritten to use React Hooks
  • Added tests for all components
  • Performance improvements on MessageList
  • Upgraded dependencies

Breaking changes

  • Drop node 11, 13
  • Deprecating context HOC’s Since we moved our library to rely on React Hooks moved the following HOC’s to use useContext :
    • withChannelContext
    • withChatContext
    • withTranslationContext This means we now directly use the context values from the context and they’re not passed down from the props anymore.
  • The updateMessage on the channel context does not support extraState anymore.
  • There no longer is a ref inside a ref in ReactionsList. Instead, the ref of the container div is directly forwarded by the component.

Addidtions

  • Triggers on MessageInput can now be overwritten using the autocompleteTriggers prop on MessageInput

Fixes

  • Fixed styling on autocomplete suggestions
  • Fixed YouTube video rendering in messages
  • Fixed an issue that allowed you to send empty messages
  • Bugfix in groupStyles calculations

1.2.5 2020-06-30

  • Added LoadingIndicator prop to MessageList
  • Fixed some minor styling issues with SafeAnchor

1.2.4 2020-06-30

  • Refactor and improvements to the Gallery Modal component

1.2.3 2020-06-30

  • Fixing types

1.2.2 2020-06-22

  • Fixing types

1.2.1 2020-06-17

  • Fixed an issue with our type definitions introduced in 1.2.0

1.2.0 2020-06-16

  • @mentions now use the queryMembers endpoint enabling mentions in channels of more that 100 members
  • Fix for .mov videos
  • Refactors and a lot of new tests
  • Some small bug fixes

1.1.2 2020-06-11

  • Fixes issue with File uploads on MessageInputLarge
  • Make sure to only render videos if the browser supports it

1.1.1 2020-06-09

  • Fixes links when written as markdown
  • Allows app:// protocol in markdown links

1.1.0 2020-06-08

Breaking Change

  • Migrated ChannelList component to functional component.

    ChannelList component comes with some default handlers for following events.

    1. notification.message_new
    2. notification.added_to_channel
    3. notification.removed_from_channel
    4. channel.updated
    5. channel.deleted
    6. channel.truncated

    But these default event handlers can be overriden by providing corresponding prop functions for handling the event. For example, to override notification.message_new event, you can provide prop function - onMessageNew, to ChannelList component.

    Until now, ChannelList component was class based, so function prop (e.g., onMessageNew) used to accept following 2 parameters:

    1. thisArg - this reference of component. You could use this to update the state of the component as well. e.g., thisArg.setState({ ... })
    2. event - Event object

    In this release, we have migrated ChannelList component to functional component and thus thisArg is no longer accessible. Instead we provide the setter (from useState hook) for channels. So updated params to these custom event handlers (prop functions) is as follow:

    1. setChannels {function} Setter for channels.
    2. event {object} Event object

    And same applies to all the rest of the custom event handlers:

    • onMessageNew
    • onAddedToChannel
    • onRemovedFromChannel
    • onChannelUpdated
    • onChannelTruncated
    • onChannelDeleted

Fixes:

  • Correctly set attachment type based on mime type
  • Fixes to audio component
  • Mentions: filter out no-longer-mentioned users on submit

Other:

  • Type fixes
  • Tests
  • Refactors

1.0.0 2020-05-15

We've already been on a v1 release for a while but never updated our versioning. Right now we're in the process of rewriting our components to be more future proof and we started using hooks, hence the v1.0.0 today.

Breaking change: stream-chat-react now relies on hooks and will need at least v16.8.x of react to work.

  • Fixed some issues with mutes
  • Fixed issues with attachments
  • Added tests

0.12.1 2020-05-12

  • Render video uploads as videos, not files
  • Added tooltip to emoji and attachment buttons
  • Fix file/image upload preview layout
  • Added tests

0.12.0 2020-05-08

  • Refactor
  • First message in thread doesn't have a fixed position anymore
  • Upon if the active channel get's deleted, we now set the active channel to be empty
  • Removed some unused css
  • Fix for read indicators

0.11.18 2020-05-06

  • Better fallback avatar in ReactionSelector
  • Better scrolling after assets finish loading
  • Disabled truncation of email links
  • New props onUserClick and onUserHover on Message components

0.11.17 2020-05-04

  • Added prop MessageDeleted on Message components to override the default component displayed for deleted messages.

0.11.16 2020-05-01

  • Fixed an where read state indicators dissapeared

0.11.15 2020-04-30

  • Fixed an issue where the read by tooltip said: "x, x, and 0 more"
  • Fixed an issue where app might crash due to faulty read state
  • Fixed an issue where file attachments didn't get uploaded when also uploading images

0.11.14 2020-04-29

  • Adding direct messaging support for channel preview b394079
  • Fixed typescript for ChannelList component 576f5c8
  • Fixed french translation file 308fcab
  • Adding extra check for channel connection to avoid failing markRead call 317fb1f

0.11.13 2020-04-20

  • Add check to fix optional activeChannel in ChannelPreview.

0.11.12 2020-04-17

  • Fixing typescript issue with MessageInput component prop - additionalTextAreaProps 92f2ae2

0.11.11 2020-04-15

  • Adding missing translation key {{ imageCount }} more in Gallery component 5cea938

0.11.10 2020-04-09

  • Fix crashing app when there's no active channel

0.11.9 2020-04-09

  • Fix issue with DateSeparator
  • added type definition for setActiveChannelOnMount

0.11.8 2020-04-08

  • Fix bug in ChannelHeader caused in version 0.11.4

0.11.6 2020-04-04

NOTE Please make sure to use stream-chat@^1.7.0

  • Fixing moderator, owner, admin checks for message actions 71b3309

0.11.5 2020-04-03

  • Open url attachments in new tab e6436fe

0.11.4 2020-04-02

  • Reworked the mobile nav behaviour to be more flexible

0.11.3 2020-04-02

  • Have the mute action respect channel settings
  • Add supported markdown to docs

0.11.1 2020-03-27

  • Reverting optimistic reaction UI related changes

    Reverted commits:

    Reason: Please check the changelog for v1.6.1 stream-chat-js

0.11.0 2020-03-27

  • Improvements to reaction UX: Updating UI optimistically instead of waiting for reaction api call to succeed
  • Fix for a bug: Flagging a message results in "t is not a function" error in console
  • Adding support for additionalTextareaProps prop in MessageInput component
  • Filter out buggy emojis and updating emoji-mart 333ed77
  • Displaying DateSeperator before deleted messages. So far we didn't show it 8ed3ca5
  • Updating stream-chat version to 1.6.0 d4b7c14

0.10.2 2020-03-26

0.10.1 2020-03-25

  • Added missing i18next dependency to dependency list c7cf11f

0.10.0 2020-03-24

0.9.0 2020-03-21

  • 20% bundle size reduction (use day.js instead of moment.js)

0.8.8 2020-03-20

  • Changing mute success notification to show name of user instead of id - e5bab26
  • Bug fix: Cancel button on giphy command in thread failed to remove message - e592a4e
  • Fixing typing indicator to now show up when current user is typing - c24dc7a
  • Fixing moderator role check function in Message.js - 311fab9

0.8.7 2020-03-19

  • Fixed a bug where attachments got duplicated upon submitting an edited message cb93b92

0.8.6 2020-03-17

  • Allow ~~test~~ double tilde for strikethrough in messages - 6870194
  • Fix issue where attachments got duplicated when editing messages - eea7f61

0.8.4 2020-02-11

  • Fixing EmptyStateIndicator prop for ChannelList component - 20d1672

0.8.3 2020-02-11

  • Fixing LoadingIndicator prop for InfiniteScrollPaginator component - fb81d68

0.8.2 2020-02-10

  • Fixing LoadingIndicator prop for ChannelList component - e6e2e9f
  • Adding LoadingErrorIndicator prop for ChannelList component - e6e2e9f

0.8.1 2020-02-07

  • Fixing broken typescript file cc86f6f

0.8.0 2020-02-07

  • Updated dependencies dfe466d
  • Exported all the components and updated typescript types - 41e478f

0.7.20 2020-01-14

  • When you change the filters prop on the ChannelList component this now we will refresh the channels with the new query

0.7.17 2020-01-02

  • Added maxRows props to MessageInput component

0.7.16 2020-01-02

  • Removed inline styles from multiple locations
  • Exporting new component ChatAutoComplete (Advanced usage only)

0.7.15 2019-12-30

  • Added the following props on the Thread component so the underlying MessageList, MessageInput and Message components can be customized using props:
    • additionalParentMessageProps
    • additionalMessageListProps
    • additionalMessageInputProps
  • Added the following props to the Channel component:
    • doUpdateMessageRequest to override the update(edit) message request (Advanced usage only)
    • doSendMessageRequest to override the send message request (Advanced usage only)

0.7.13 2019-12-03

  • Handling and updating channel list on channel.truncated and channel.deleted event.

0.7.12 2019-11-22

  • Adding prop MessageSystem to customize system messages

0.7.11 2019-11-05

0.7.10 2019-10-16

  • Added customActiveChannel prop on ChannelList to specify a custom channel to be moved to the top and set to active upon mounting.

0.7.9 2019-10-16

  • Changing prop name for MessageSimple from openThread to handleOpenThread.
  • Fixing scroll issue on messagelist. Related to issue #67

0.7.8 2019-10-11

  • Bug fix with dateseperator in messagelist

0.7.7 2019-10-11

  • Adding intro message to messagelist

0.7.6 2019-10-08

  • Fixed unbinding of visibility listener

0.7.5 2019-10-07

  • Updated js-client with fix for failing fileuploads

0.7.4 2019-10-07

  • Fixed styling issues for SendButton

0.7.3 2019-10-02

  • Added SendButton prop to MessageInput. This only shows on mobile to make sure you're able to submit the form without having a return button.

0.7.2 2019-09-30

  • Updating js-client version

0.7.1 2019-09-30

  • Fix - Adding typescript declaration files in production build

0.7.0 2019-09-27

  • Adding typescript declaration file

0.6.27 2019-09-20

0.6.26 2019-09-10

  • Add IE 11 support for MessageInput
  • Fixing pagination issue when oldest message is not received yet
  • Fixing issue that didn't display unread count correctly on initial load

0.6.25 2019-09-05

  • The built in MessageInput components now use native emoji to create consistent rendering between the picker and the message

0.6.22 2019-08-15

  • Adding support for loading error indicator
  • Adding fallback as thumb_url for image attachments

0.6.21 2019-08-05

  • Syncing and improvements in styleguide

0.6.19 2019-07-31

  • Fix issue raised in 0.6.17

0.6.18 2019-07-31

  • Improve message options UX in messaging theme

0.6.17 2019-07-30

  • Export LoadingChannels component
  • Fix connectivity issue with threads
  • Better check for user roles

0.6.16 2019-07-29

  • Adding visual response (notification) for flag message and mute user functionality
  • Fixing broken mute user functionality

0.6.15 2019-07-23

  • Fixing Message actions for livestream and team chat.
  • Fixing flag/mute functionality. Earlier only admins were allowed to flag or mute the message. This was wrong. Every user should be able to flag or mute any message (other than his own message)

0.6.14 2019-07-20

  • Adding prop messageActions to MessageList

0.6.13 2019-07-18

  • Adding prop function onChannelUpdated as callback for event channel.updated
  • Bug fix - Channel list component doesn't update when custom data on channel is updated.

0.6.0 2019-05-13

  • Added Pagination to ChannelList
    • Standard pagination with Load More button (LoadMorePaginator)
    • Also includes a infinte scroll paginator (InfiniteScrollPaginator)
    • Important Because of this change we moved the channelquery logic to ChannelList this means you need to pass your filters, sort, and options.

0.3.11 - 2019-04-23

Added

  • MessageInput and Channel now accept the following props
    • multipleUploads={false}
    • acceptedFiles={['image/*']}
    • maxNumberOfFiles={1}

0.3.10 - 2019-04-19

Added

  • Support for @mentions for @mention interactions Channel now accepts the following props
    • onMentionsHover={(event, user) => console.log(event, user)}
    • onMentionsClick={(event, user) => console.log(event, user)}