6.12.2 2021-12-09
- Add
closeEmojiPickerOnClickand added focus to input after Emoji or attachment selection #1292
- Update Japanese and Korean translations #1296
- Fix broken documentation links #1300
- Add updated scoped CSS dependency
stream-chat-cssNPM package #1301 - Upgrade
stream-chat-cssdependency to v1.1.3 #1306 - Upgrade
react-virtuosoto improve stability #1304 - Upgrade
stream-chatdependency to v4.0.0
6.12.0 2021-11-22
- 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
-
Render reaction list for frozen channels #1262
-
Remove unsafe props from
Textareacomponent #1263 -
Use context
AvatarinQuotedMessageandTypingIndicator#1264 -
Pass
setChannelsstate 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
- Support custom notifications in the
VirtualizedMessageListcomponent #1245
- Update type definitions for
emoji-martandmomentdependencies #1254 - Add Vite app to examples directory #1255
- Upgrade
react-virtuosoto fix Safari v15 edge case #1257 - Deprecate the
themeprop on theChatcomponent #1258 - Upgrade
mml-reactdependency #1260
6.10.0 2021-10-13
- Export markdown utils functions used within
renderText#1228 - Use
own_capabilitiesfield onchannelto determine connected user permissions #1232 - Pass component names to custom context hooks for error tracing #1238
- Update German i18n translations #1224
- Upgrade
react-virtuosofor zoom fix #1233 - Use optional
activeUnreadHandlerinChannelcomponent'smarkReadfunction when provided #1237 - Replace custom context hook error throws with console warnings #1242
- Fix UI header bug for Levenshtein autocomplete mention search #1235
- Ensure
channelConfigis updated whenChannelmounts an unwatched channel #1239
6.9.1 2021-10-01
- Add
chatContainercustom CSS class name override #1216
- Add descriptive error messages to custom context consumer hooks #1207
- Pass
valueprop toSuggestionItemcomponent #1207 - Update docs for custom
ChannelListevent handler example #1209 - Add
cooldownIntervaltoMessageInputcontext value memoization #1209 - Reduce packaged CSS bundle size #1219
- Prevent user start/stop watching events from resetting the channel state #1206
6.9.0 2021-09-24
- 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
Avatarcomponent's fallback #1201 - Provide the option to pass additional props to the
Virtuosocomponent in theVirtualizedMessageList#1202
- Improve documentation around approved attachment types #1190
- Upgrade
react-virtuosodependency #1194 - Refactor
ChannelListpagination offset logic to handle channels being added/removed from the list #1200
6.8.0 2021-09-17
- Improve user mention experience by ignoring diacritics, adding a
useMentionsTransliterationprop to install an optional transliteration dependency, and using Levenshtein distance to match similar names #1176 - Add event listener to
ChannelPreviewto handlemarkAllReadfunction calls on the client #1178 - Add
setTextfunction toMessageInputContext, which overrides and sets the value of theMessageInputcomponent'stextareaelement #1184 - Add
activeUnreadHandlerprop toChannel, which runs when the active channel has unread messages #1185
- Remove all SCSS files and import library styles from
stream-chat-cssdependency. This is non-breaking as the build process injects the external styles into the exact distributed directory as before. #1168 - Upgrade
stream-chatandreact-file-utilsdependencies #1178
6.7.2 2021-09-15
- Add optional
allowNewMessagesFromUnfilteredChannelsargument touseNotificationMessageNewListeneranduseNotificationAddedToChannelListenerhooks to prevent channel from incrementing the list #1175
- 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
publishTypingEventMessageInputprop #1174
6.7.1 2021-09-14
- 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
- Add ability to override high-level, CSS container classes via the
customClassesprop onChat#1159. See the docs for more information. - Allow custom message actions in the
VirtualizedMessageList#1166 - While using the
MessageSimpleUI component, allow message grouping in theVirtualizedMessageListvia theshouldGroupByUserprop #1166 - Add ability to customize the svg icons in the
MessageOptionscomponent #1159 - Create a Capacitor sample app to test run the library natively #1158
- Fix edge case around custom message actions not showing up when default actions are disabled #1161
6.6.0 2021-08-30
- Add optimistic response to pin message request #1149
- Add option to close
ReactionSelectorcomponent on reaction pick #1150
- Improve
ChannelSearchtypes for channel and user filters #1141 - Remove unnecessary
useMessageInputStateprops #1145 - Upgrade
react-virtuosodependency #1148 - Add Rollup image plugin and upgrade
react-file-utils#1151
- Hide URL link overflow in
MessageSimple#1147
6.5.1 2021-08-13
- Add option to pass
customMessageDatato theChannelActionContextsendMessagefunction #1123
- Add support to quote a message with an attachment #1118
- Upgrade
stream-chatto major version 4 #1120
- Skip
MessageInputslow mode cooldown for admin and moderator user roles #1116
6.5.0 2021-08-11
- Add
defaultItemHeightprop toVirtualizedMessageListto smooth rendering of long and differently sized lists. Also, prevent new message notification icon from flashing when switching channels. #1112
- Improve
EmojiContexttypes and documentation #1107 - Adjust
Attachmentcomponent rendering in Message UI components for cases with no attachment array length #1115
6.4.11 2021-08-06
- Upgrade
react-virtuosofor tall last message edge case #1102 - Upgrade
stream-chatand example app dependencies #1103
6.4.10 2021-08-05
- Clear message input text prior to successful message response and revert to original text if request fails #1097
- Update Japanese and Korean translations #1091 and #1099
- Prevent
Avatarcomponent from being able to render its name as a number #1097
- Fix logic to show input send button on breakpoint change to mobile/tablet views #1095
6.4.9 2021-08-02
- Add
defaultLanguageprop toChatcomponent to specify fallback language for translation of UI components #1086
- Optimize
VirtualizedMessageListmessage grouping and rendering logic #1088
6.4.8 2021-07-30
- Add
SearchInputUI prop toChannelSearchcomponent to override/extend default HTMLinputelement #1079 - Detect connected user's preferred language for translation when language not set by
Streami18ninstance #1082 - Add Japanese and Korean to list of supported languages for auto translation #1085
6.4.7 2021-07-27
- 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
queryChannelsresponse #1078
- Replace
replaceAllmethod withreplaceand add global flag for older browser support #1074 - Adjust
VirtualizedMessageListCSS to supportMessageSimple#1075
6.4.6 2021-07-23
- Add error handling to
MessageInputsubmit handler functions #1068 - Upgrade
react-imagesdependency for React 17 support #1069
6.4.5 2021-07-21
- Provide option to use
VirtualizedMessageListinThreadcomponent via thevirtualizedboolean prop #1065
- Pass
messageobject override prop toMessageTextcomponent #1063 - Add fallback
namefor specific renderedAvatarcomponents #1066
6.4.4 2021-07-20
- Fix bundle issues with dependency CSS imports #1061
6.4.3 2021-07-20
- Reload
ChannelListcomponent whensortprop changes #1054
- Add repo info to NPM page #1051
- Export
MMLcomponent #1053 - Upgrade
react-virtuosodependency #1057 - Revert removal of
EmptyStateIndicatorcomponent for threads #1058 - Move
mml-react(optional dependency) CSS import toMMLcomponent #1059
6.4.2 2021-07-14
- In the
VirtualizedMessageList, add option to view the Giphy preview above theMessageInput(not as a message in the list) using theseparateGiphyPreviewprop #1045 - Add optimistic response for sending reactions #1048
- Upgrade
typescriptandstream-chatdependencies #1049
6.4.1 2021-07-09
- Upgrade
react-file-utilsto fix NextJS support #1043
- Fix
offsetincrement 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 fromComponentContextemojiConfig- moved fromChannelStateContextEmojiIndex- moved fromComponentContextEmojiPicker- moved fromComponentContext
- Lazy load the
emoji-martdependency #1037
- Remove unused CSS #1035
6.3.0 2021-07-02
⚠️ BREAKING CHANGES ⚠️ - We've removed the following deprecated UI components #1031:
ChannelListTeamChannelPreviewCompactChannelPreviewCountOnlyChannelPreviewLastMessageMessageInputLargeMessageInputSimple
- Added option to view read states on all messages #1014
- Added markdown rendering support for
ChannelPreviewcomponent #1021 - Added
sendChannelsToListprop toChannelListto passloadedChannelsto theListUI component #1028 - Pass entire user object to
Avatarcomponent for custom component usage #1030 - Send error notification to channel via
addNotificationmethod when file/image upload fails #1032 - Conditionally render
SendButtonwhen attachments have been uploaded but no input text exists #1033
6.2.0 2021-06-24
- 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
Chatcomponent now accepts acustomStylesprop, 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
- Added error notification handling for failed deleted messages #1002
- Added UI component override prop for
MessageListNotifications#996
- Refactor typing of
Attachmentcomponents #995
6.1.2 2021-06-21
- Refactor message permissions so they respect channel config #986
- Add limit option to default user mention behavior #988
- Add additional customization for
ChannelSearchcomponent #989 - Add
formatDateprop override potentialDateSeparatorcomponent #992
- Refactor typing of
Attachmentcomponent #991
6.1.1 2021-06-16
- Upgrade TypeScript dependencies #982
- Add missing
onlySenderCanEditprop toMessagecomponent #982
6.1.0 2021-06-15
- 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
- Refine edit message privileges and add
onlySenderCanEditprop toMessageList#975
- Prevent
EmptyStateIndicatorfrom showing up inThread#977
6.0.7 2021-06-14
- Add support for custom reactions #968
- Upgrade
stream-chatdependency
- Fix UI component conditional rendering in
Attachment#972 - Add needed params to
ChannelSearchsearch function prop #973
6.0.6 2021-06-02
- Restore override props on
ChatAutoCompletecomponent #952
6.0.5 2021-05-28
- Add optional prop to override default
loadMorefunction inVirtualizedMessageList#950
- Prevent unnecessary members query when
disableMentionsis enabled onMessageInput#949
6.0.4 2021-05-25
- Add missing
Inputprop toComponentContextvalue #942
6.0.3 2021-05-25
6.0.2 2021-05-21
- Add German auto translation support #935
- Upgrade
react-file-utilsdependency for reduced bundle size #933
- Prevent tree shaking from removing distributed CSS #936
6.0.1 2021-05-19
- Expose the
MessageContextto theVirtualizedMessageList'sMessageUI component #924
- Reorganize component documentation for v6 #926
- 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 aChannelChannelStateContext- provides the stateful data needed to operate aChannelComponentContext- provides the UI component overrides for all child components of aChannelTypingContext- provides an object of users currently typing in theChannel
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.
- 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
Messagecomponent now provides theMessageContextto its children. Reference this guide for instructions on creating a custom message UI component. - The
MessageInputcomponent now provides theMessageInputContextto its children. Reference this guide for instructions on creating a custom input UI component.
5.4.0 2021-05-13
- Scroll to bottom of
MessageListwhen the last message receives a reaction or reply #916
- 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
- Add
scrollToLatestMessageOnFocusprop toVirtualizedMessageListto handle focus changes on browser tab switching #892 - Add
MessageNotificationprop toMessageListcomponents to allow customization of the new messages notification popup #894
- Adjust URL parsing for duplicate entries #893
5.3.1 2021-04-30
- 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
- Added support for
user.deletedanduser.updatedevent handling #884- Requires
stream-chat >= 3.8.0 - In case of
user.deletedevent, messages from corresponding user will be marked as deleted - In case of
user.updatedevent, user property on messages from corresponding user will be updated.
- Requires
5.2.1 2021-04-28
- Copy missing translations from built types #879
5.2.0 2021-04-26
- Add Spanish and Portuguese auto translation support #874
- Adjust processed messages conditional logic for
VirtualizedMessageList#875
5.1.8 2021-04-21
- Update message group styling defaults in message UI components #860
- Refine pin message permission checking #866
5.1.7 2021-04-13
- Remove channel creator's ability to edit/delete other users' messages #853
- Generalize event types to allow for greater action handler flexibility #850
5.1.6 2021-04-10
- Adjust message memoization for custom UI components #849
- Fix CSS display issue for messages with reactions #849
5.1.5 2021-04-09
- Adjust submit handler types #847
- Remove old CSS leading to Gatsby error #846
5.1.4 2021-04-07
- Filter falsey emoji search results #843
- Adjust submit handler types #844
5.1.3 2021-04-06
- Optimize message list components by limiting excess
loadMorecalls #841
- Fix
AutoCompleteTextareatrigger highlighting bug #839
5.1.2 2021-04-05
- Provide option to hide
DateSeparatorcomponent for new messages with thehideNewMessageSeparatorprop onMessageListandVirtualizedMessageListcomponents #837
- Fix bad conditional in
useMentionsHandlerscustom hook #836
5.1.1 2021-04-02
- Show formatted date separator for new messages #818
- Provide option to display flag emojis as images on Windows via
useImageFlagEmojisOnWindowsprop #821 - Hide reaction icon when a message has reactions #826
- 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
- Add type support for Moment.js date objects #809
- Add i18n translation support for
ChannelPreview#810 - Allow
addNotificationfunction to be called anywhere withinChannel#811 - Hide
MessageActionsif no actions exist #816
- Refactor failed message UI component #811
- Remove extra
watchersquery #817 - Prevent
queryUsersfrom searching a null value #817
5.0.3 2021-03-24
- Add customization options for
renderTextfunction #807
5.0.2 2021-03-23
- Fix optimistic UI for mentions #800
5.0.1 2021-03-23
- Upgrade
react-file-utilsto v1.0.2
5.0.0 2021-03-22
- 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
StreamChatclient with your custom types via generics
- Conversion to TypeScript #797
4.1.3 2021-03-12
- Add missing ChannelPreview helpers to exports #775
4.1.2 2021-03-09
- Export
ChannelPreviewutility functions #750 - Memoize
ChannelListfiltersto prevent extra channel queries #752
- Update Customizing Styles section of README #756
- Change
emoji-martimports to support server-side rendering #764
4.1.1 2021-02-26
- Upgrade
stream-chatdependency to fix reaction caching issue #742
- Fix markdown link rendering issues #742
4.1.0 2021-02-25
- Upgrade
react-virtuosodependency #694- Improved support for loading unevenly sized messages when scrolling back
- Support smooth scrolling to bottom when new messages are posted (controlled through
stickToBottomScrollBehaviorproperty) - Adding reactions no longer cancels the automatic scrolling when new messages appear
- Generate minified CSS output #707
- Upgrade
stream-chatdependency #727 - Upgrade
mml-reactdependency #728 - Upgrade
emoji-martdependency #731
- Add
tabIndexto emoji picker #710 - Add
dispatchfunction fromchannelReducertoChannelContext#717 - Improve mobile support for display of the
MessageOptionscomponent #723 - Add key down a11y support for emoji picker #726
- Add
scrolledUpThresholdprop toMessageList#734
- 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
- Add
usePinHandlerexample to docs #705 - Remove legacy APIs in mock data used for generating the docs #704
4.0.0 2021-02-10
-
Removed the
seamless-immutabledependency and its corresponding methods and types #687- We also removed this dependency at the
stream-chatJS client level, therefore immutable methods, such assetIn, 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 ofstream-chat
- We also removed this dependency at the
- Performance optimize and allow customization of the
emoji-martdependency #530 - Add custom
imageprop toChannelHeadercomponent #697
- Removed the SonarJS linting rules #693
3.6.0 2021-02-02
-
Added support for pinned messages #682
- Save
pinnedMessagesto ChannelContext - Create
usePinHandlercustom hook for returningcanPinvalue andhandlePinfunction - Add Pin/Unpin as optional actions in
MessageActions - Add
PinIndicatorUI component toMessageLivestreamandMessageTeam - Add optional
"pinned-message"CSS class to message UI components - Add
getPinMessageErrorNotificationandpinPermissionsasMessageListprops
- Save
-
Hide
DateSeparatorcomponent when all messages for a day are deleted #689
- Refactor example apps to use
getInstanceandconnectUser#688
- Display auto-translated message text when it exists #683
- Add missing export for
VirtualizedMessageListtype #691
3.5.3 2021-01-26
ChannelListaccepts an optional prop to filter/sort channels prior to render #678
3.5.2 2021-01-21
3.5.1 2021-01-19
- Upload PSD attachments as file #673
- Bump MML-React #674
3.5.0 2021-01-15
- 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
disableMentionsprop to MessageInput and update mentions UI #669
- Fix maxLength paste text bug #670
3.4.6 2021-01-08
- Add SuggestionList as MessageInput prop to override default List and Item component to display trigger suggestions #655
- Add allowNewMessagesFromUnfilteredChannels prop to ChannelList #663
- Fix type for mentions handler #660
- Convert Thread to functional component #650
- Convert messaging sample app to functional component #661
3.4.5 2021-01-07
- Message components accept custom EditMessageInput component #656
- Message actions default options doc #654
- MessageList unread TypeError #654
- ChannelHeader button css padding #648
3.4.4 2020-12-23
- Export the UploadsPreview component. #647
3.4.3 2020-12-16
- Browser bundle undefined variable
3.4.2 2020-12-16
- Changes default smiley face icon for reaction selector. #645
3.4.1 2020-12-15
- Adds custom UI component prop
ThreadHeadertoThreadto override the default header. #642
3.4.0 2020-12-14
-
MML is supported by default in all Message components except
MessageLiveStream. #562For more detail about how to use MML please refer to mml-react docs.
3.3.2 2020-12-11
- Add error handling for
loadMoreThreadAPI request #627
3.3.1 2020-12-9
- Add additional user role check for
isModeratorboolean #625
3.3.0 2020-12-3
- Allow all instances of Avatar to be overridden with a custom component via props #610
3.2.4 2020-11-19
- Prevent firing LoadMore requests when browser is offline #614
- Support muted channels in ChannelPreview #608
ChannelContext.sendMessagetype accepts missing text #613
3.2.3 2020-11-13
3.2.2 2020-11-05
VirtualizedMessageListbreaking the list for falsy messages #602FixedHeightMessageaction box not opening in React@17 #602- Missing custom hooks type #601
3.2.1 2020-11-04
VirtualizedMessageListstick to bottom #597
3.2.0 2020-11-04
- Support React v17 #588
3.1.7 2020-10-29
- 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
displayActionsprop is respected inMessageOptionscomponent #587
stream-chat-jsrequired version bumped to2.7.x#582
3.1.5 2020-10-19
- Disable upload dropzone and input button in Input components based on channel config #585
- Disable the upload dropzone and input button when the maximum number of allowed attachments is reached #577
3.1.4 2020-10-19
- Fixed a bug with ChannelList pagination with low limits or high thresholds #583
- 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
- Better handling of offsets during loadMore #578
3.1.2 2020-10-14
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
3.1.0 2020-10-14
- VirtualizedMessageList supports message grouping #571
<VirtualizedMessageList shouldGroupByUser />- VirtualizedMessageList TypingIndicator is disabled by default #571
3.0.3 2020-10-13
3.0.2 2020-10-12
- Bump stream-chat to v2.6.0 #568
3.0.1 2020-10-05
- Bumped dependencies #558
- Export EmojiPicker #560
3.0.0 2020-09-30
- Image component renamed to ImageComponent #554
2.6.2 2020-09-29
- Fixed several type issues #552
2.6.1 2020-09-29
- Fixed an issue with MessageLivestream where mutes and flags were not happening #551
2.6.0 2020-09-29
- New messages date indicator in MessageList and VritualizedMessageList #548
- Reply/Reactions are available in messageActions #547
- 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
- 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
- VirtualizedMessageList is a new component that can handle thousands of messages in a channel. It uses a virtualized list under the hood. #487
- 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-chatpackage tov2.2.0stream-chatpackage has been migrated to complete typescript in 2.x.x. There were no breaking change with underlying javascript api and also typescript except for Event type. We recommend you to check the changelog for stream-chat-js repository as well for more details if you are planning to upgrade fromstream-chat-react@2.2.xtostream-chat-react@2.3.x- This PR which contains typescript related changes in stream-chat-react for given upgrade - https://github.com/GetStream/stream-chat-react/pull/499/files
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-utilsto0.3.15which includes an upgraded version ofblueimp-load-imagewhich makes it easier to use this library in SSR apps.
2.1.0 2020-07-22
- Rename exported component
FiletoFileAttachmentto avoid overridingwindow.Filein 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
formatDateprop
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
- 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:withChannelContextwithChatContextwithTranslationContextThis means we now directly use the context values from the context and they’re not passed down from the props anymore.
- The
updateMessageon 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.
- Triggers on MessageInput can now be overwritten using the autocompleteTriggers prop on
MessageInput
- 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
LoadingIndicatorprop 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.
ChannelListcomponent comes with some default handlers for following events.- notification.message_new
- notification.added_to_channel
- notification.removed_from_channel
- channel.updated
- channel.deleted
- 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_newevent, 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:- thisArg -
thisreference of component. You could use this to update the state of the component as well. e.g.,thisArg.setState({ ... }) - event - Event object
In this release, we have migrated ChannelList component to functional component and thus
thisArgis no longer accessible. Instead we provide the setter (fromuseStatehook) for channels. So updated params to these custom event handlers (prop functions) is as follow:- setChannels {function} Setter for channels.
- 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
onUserClickandonUserHoveronMessagecomponents
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
MessageInputcomponent prop -additionalTextAreaProps92f2ae2
0.11.11 2020-04-15
- Adding missing translation key
{{ imageCount }} morein 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
additionalTextareaPropsprop 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-chatversion to 1.6.0 d4b7c14
0.10.2 2020-03-26
- Bug fix - making sure translators are ready before rendering Chat component 1b0c07a65b88075d14b038977d42138ec7fdaa21 Fixes #181
- Fixing small styling issues with MessageInput
0.10.1 2020-03-25
- Added missing i18next dependency to dependency list c7cf11f
0.10.0 2020-03-24
- i18n support for library. Documentatio - https://getstream.github.io/stream-chat-react/#section-streami18n
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
EmptyStateIndicatorprop for ChannelList component - 20d1672
0.8.3 2020-02-11
- Fixing
LoadingIndicatorprop for InfiniteScrollPaginator component - fb81d68
0.8.2 2020-02-10
- Fixing
LoadingIndicatorprop for ChannelList component - e6e2e9f - Adding
LoadingErrorIndicatorprop for ChannelList component - e6e2e9f
0.8.1 2020-02-07
- Fixing broken typescript file cc86f6f
0.8.0 2020-02-07
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
maxRowsprops 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
Threadcomponent so the underlying MessageList, MessageInput and Message components can be customized using props:additionalParentMessagePropsadditionalMessageListPropsadditionalMessageInputProps
- Added the following props to the
Channelcomponent:doUpdateMessageRequestto override the update(edit) message request (Advanced usage only)doSendMessageRequestto override the send message request (Advanced usage only)
0.7.13 2019-12-03
- Handling and updating channel list on
channel.truncatedandchannel.deletedevent.
0.7.12 2019-11-22
- Adding prop
MessageSystemto customize system messages
0.7.11 2019-11-05
- Fixed z-index issue on MessageInputLarge component https://github.com/GetStream/stream-chat-react/commit/f78b0bf6566fe587da62a8162ab5f1b3d799a10e
0.7.10 2019-10-16
- Added
customActiveChannelprop onChannelListto 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
- Added
EmptyStateIndicatorprop to ChannelList and MessageList - Added
watchersprop to ChannelList to specify watchers pagination query onsetActiveChannel, including this makes one extra query on selecting a channel from the ChannelList - Updated react-images to version
1.0.0
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
messageActionsto MessageList
0.6.13 2019-07-18
- Adding prop function
onChannelUpdatedas callback for eventchannel.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
ChannelListthis means you need to pass yourfilters,sort, andoptions.
- Standard pagination with Load More button (
0.3.11 - 2019-04-23
MessageInputandChannelnow accept the following propsmultipleUploads={false}acceptedFiles={['image/*']}maxNumberOfFiles={1}
0.3.10 - 2019-04-19
- Support for @mentions for @mention interactions
Channelnow accepts the following propsonMentionsHover={(event, user) => console.log(event, user)}onMentionsClick={(event, user) => console.log(event, user)}