stream-chat-react 6.6.0 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.full-bundle.js +2810 -336
  3. package/dist/browser.full-bundle.js.map +1 -1
  4. package/dist/browser.full-bundle.min.js +10 -3
  5. package/dist/browser.full-bundle.min.js.map +1 -1
  6. package/dist/components/AutoCompleteTextarea/Textarea.js +1 -1
  7. package/dist/components/Channel/Channel.d.ts +2 -0
  8. package/dist/components/Channel/Channel.d.ts.map +1 -1
  9. package/dist/components/Channel/Channel.js +17 -9
  10. package/dist/components/ChannelList/ChannelList.d.ts +3 -3
  11. package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
  12. package/dist/components/ChannelList/ChannelList.js +10 -6
  13. package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts +1 -1
  14. package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts.map +1 -1
  15. package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.js +3 -2
  16. package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts +1 -1
  17. package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts.map +1 -1
  18. package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.js +3 -3
  19. package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  20. package/dist/components/ChannelPreview/ChannelPreview.js +10 -0
  21. package/dist/components/Chat/Chat.d.ts +3 -0
  22. package/dist/components/Chat/Chat.d.ts.map +1 -1
  23. package/dist/components/Chat/Chat.js +2 -1
  24. package/dist/components/Message/Message.d.ts.map +1 -1
  25. package/dist/components/Message/Message.js +1 -1
  26. package/dist/components/Message/MessageOptions.d.ts +3 -0
  27. package/dist/components/Message/MessageOptions.d.ts.map +1 -1
  28. package/dist/components/Message/MessageOptions.js +6 -6
  29. package/dist/components/Message/MessageSimple.d.ts.map +1 -1
  30. package/dist/components/Message/MessageSimple.js +4 -4
  31. package/dist/components/Message/MessageStatus.d.ts.map +1 -1
  32. package/dist/components/Message/MessageStatus.js +1 -1
  33. package/dist/components/Message/hooks/useReactionHandler.d.ts +1 -1
  34. package/dist/components/Message/hooks/useReactionHandler.d.ts.map +1 -1
  35. package/dist/components/Message/hooks/useReactionHandler.js +1 -5
  36. package/dist/components/Message/icons.d.ts +1 -0
  37. package/dist/components/Message/icons.d.ts.map +1 -1
  38. package/dist/components/Message/icons.js +2 -0
  39. package/dist/components/Message/types.d.ts +4 -0
  40. package/dist/components/Message/types.d.ts.map +1 -1
  41. package/dist/components/Message/utils.d.ts.map +1 -1
  42. package/dist/components/Message/utils.js +4 -0
  43. package/dist/components/MessageActions/MessageActions.d.ts +1 -0
  44. package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
  45. package/dist/components/MessageActions/MessageActions.js +6 -6
  46. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
  47. package/dist/components/MessageInput/DefaultTriggerProvider.js +1 -0
  48. package/dist/components/MessageInput/MessageInput.d.ts +2 -0
  49. package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
  50. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +1 -0
  51. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
  52. package/dist/components/MessageInput/hooks/useMessageInputState.js +6 -1
  53. package/dist/components/MessageInput/hooks/useMessageInputText.js +1 -1
  54. package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts.map +1 -1
  55. package/dist/components/MessageInput/hooks/useSubmitHandler.js +2 -1
  56. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +1 -0
  57. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
  58. package/dist/components/MessageInput/hooks/useUserTrigger.js +19 -13
  59. package/dist/components/MessageInput/hooks/utils.d.ts +15 -0
  60. package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -0
  61. package/dist/components/MessageInput/hooks/utils.js +114 -0
  62. package/dist/components/MessageList/MessageList.d.ts.map +1 -1
  63. package/dist/components/MessageList/MessageList.js +5 -1
  64. package/dist/components/MessageList/VirtualizedMessageList.d.ts +2 -2
  65. package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
  66. package/dist/components/MessageList/VirtualizedMessageList.js +20 -12
  67. package/dist/components/MessageList/hooks/useMessageListElements.d.ts.map +1 -1
  68. package/dist/components/MessageList/hooks/useMessageListElements.js +4 -3
  69. package/dist/components/Thread/Thread.d.ts.map +1 -1
  70. package/dist/components/Thread/Thread.js +4 -1
  71. package/dist/components/UserItem/UserItem.js +1 -1
  72. package/dist/context/ChatContext.d.ts +4 -0
  73. package/dist/context/ChatContext.d.ts.map +1 -1
  74. package/dist/context/MessageContext.d.ts +4 -0
  75. package/dist/context/MessageContext.d.ts.map +1 -1
  76. package/dist/css/index.css +1 -7261
  77. package/dist/index.cjs.js +214 -83
  78. package/dist/index.cjs.js.map +1 -1
  79. package/dist/scss/ActionsBox.scss +2 -0
  80. package/dist/scss/Attachment.scss +4 -0
  81. package/dist/scss/AttachmentActions.scss +1 -0
  82. package/dist/scss/Audio.scss +2 -0
  83. package/dist/scss/Avatar.scss +2 -0
  84. package/dist/scss/Card.scss +6 -2
  85. package/dist/scss/ChannelHeader.scss +22 -3
  86. package/dist/scss/ChannelList.scss +5 -6
  87. package/dist/scss/ChannelSearch.scss +2 -4
  88. package/dist/scss/ChatDown.scss +1 -0
  89. package/dist/scss/DateSeparator.scss +3 -0
  90. package/dist/scss/EditMessageForm.scss +4 -0
  91. package/dist/scss/EventComponent.scss +4 -0
  92. package/dist/scss/Gallery.scss +7 -1
  93. package/dist/scss/LoadMoreButton.scss +1 -0
  94. package/dist/scss/Message.scss +82 -6
  95. package/dist/scss/MessageInput.scss +3 -0
  96. package/dist/scss/MessageInputFlat.scss +8 -1
  97. package/dist/scss/MessageList.scss +10 -0
  98. package/dist/scss/MessageRepliesCountButton.scss +1 -0
  99. package/dist/scss/MessageTeam.scss +3 -7
  100. package/dist/scss/Modal.scss +3 -0
  101. package/dist/scss/ReactionList.scss +18 -18
  102. package/dist/scss/ReactionSelector.scss +4 -0
  103. package/dist/scss/SimpleReactionsList.scss +2 -1
  104. package/dist/scss/Thread.scss +19 -0
  105. package/dist/scss/TypingIndicator.scss +7 -0
  106. package/dist/scss/VirtualMessage.scss +121 -6
  107. package/dist/scss/_base.scss +17 -2
  108. package/dist/version.d.ts +1 -1
  109. package/dist/version.js +1 -1
  110. package/package.json +9 -28
  111. package/CHANGELOG.md +0 -1520
  112. package/dist/css/index.js +0 -1
  113. package/dist/css/index.min.css +0 -1
package/CHANGELOG.md DELETED
@@ -1,1520 +0,0 @@
1
- # Changelog
2
-
3
- ## [6.6.0](https://github.com/GetStream/stream-chat-react/releases/tag/v6.6.0) 2021-08-30
4
-
5
- ### Feature
6
-
7
- - Add optimistic response to pin message request [#1149](https://github.com/GetStream/stream-chat-react/pull/1149)
8
- - Add option to close `ReactionSelector` component on reaction pick [#1150](https://github.com/GetStream/stream-chat-react/pull/1150)
9
-
10
- ### Chore
11
-
12
- - Improve `ChannelSearch` types for channel and user filters [#1141](https://github.com/GetStream/stream-chat-react/pull/1141)
13
- - Remove unnecessary `useMessageInputState` props [#1145](https://github.com/GetStream/stream-chat-react/pull/1145)
14
- - Upgrade `react-virtuoso` dependency [#1148](https://github.com/GetStream/stream-chat-react/pull/1148)
15
- - Add Rollup image plugin and upgrade `react-file-utils` [#1151](https://github.com/GetStream/stream-chat-react/pull/1151)
16
-
17
- ### Bug
18
-
19
- - Hide URL link overflow in `MessageSimple` [#1147](https://github.com/GetStream/stream-chat-react/pull/1147)
20
-
21
- ## [6.5.1](https://github.com/GetStream/stream-chat-react/releases/tag/v6.5.1) 2021-08-13
22
-
23
- ### Feature
24
-
25
- - Add option to pass `customMessageData` to the `ChannelActionContext` `sendMessage` function [#1123](https://github.com/GetStream/stream-chat-react/pull/1123)
26
-
27
- ### Chore
28
-
29
- - Add support to quote a message with an attachment [#1118](https://github.com/GetStream/stream-chat-react/pull/1118)
30
- - Upgrade `stream-chat` to major version 4 [#1120](https://github.com/GetStream/stream-chat-react/pull/1120)
31
-
32
- ### Bug
33
-
34
- - Skip `MessageInput` slow mode cooldown for admin and moderator user roles [#1116](https://github.com/GetStream/stream-chat-react/pull/1116)
35
-
36
- ## [6.5.0](https://github.com/GetStream/stream-chat-react/releases/tag/v6.5.0) 2021-08-11
37
-
38
- ### Feature
39
-
40
- - 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](https://github.com/GetStream/stream-chat-react/pull/1112)
41
-
42
- ### Chore
43
-
44
- - Improve `EmojiContext` types and documentation [#1107](https://github.com/GetStream/stream-chat-react/pull/1107)
45
- - Adjust `Attachment` component rendering in Message UI components for cases with no attachment array length [#1115](https://github.com/GetStream/stream-chat-react/pull/1115)
46
-
47
- ## [6.4.11](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.11) 2021-08-06
48
-
49
- ### Chore
50
-
51
- - Upgrade `react-virtuoso` for tall last message edge case [#1102](https://github.com/GetStream/stream-chat-react/pull/1102)
52
- - Upgrade `stream-chat` and example app dependencies [#1103](https://github.com/GetStream/stream-chat-react/pull/1103)
53
-
54
- ## [6.4.10](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.10) 2021-08-05
55
-
56
- ### Feature
57
-
58
- - Clear message input text prior to successful message response and revert to original text if request fails [#1097](https://github.com/GetStream/stream-chat-react/pull/1097)
59
-
60
- ### Chore
61
-
62
- - Update Japanese and Korean translations [#1091](https://github.com/GetStream/stream-chat-react/pull/1091) and [#1099](https://github.com/GetStream/stream-chat-react/pull/1099)
63
- - Prevent `Avatar` component from being able to render its name as a number [#1097](https://github.com/GetStream/stream-chat-react/pull/1097)
64
-
65
- ### Bug
66
-
67
- - Fix logic to show input send button on breakpoint change to mobile/tablet views [#1095](https://github.com/GetStream/stream-chat-react/pull/1095)
68
-
69
- ## [6.4.9](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.9) 2021-08-02
70
-
71
- ### Feature
72
-
73
- - Add `defaultLanguage` prop to `Chat` component to specify fallback language for translation of UI components [#1086](https://github.com/GetStream/stream-chat-react/pull/1086)
74
-
75
- ### Chore
76
- - Optimize `VirtualizedMessageList` message grouping and rendering logic [#1088](https://github.com/GetStream/stream-chat-react/pull/1088)
77
-
78
- ## [6.4.8](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.8) 2021-07-30
79
-
80
- ### Feature
81
-
82
- - Add `SearchInput` UI prop to `ChannelSearch` component to override/extend default HTML `input` element [#1079](https://github.com/GetStream/stream-chat-react/pull/1079)
83
- - Detect connected user's preferred language for translation when language not set by `Streami18n` instance [#1082](https://github.com/GetStream/stream-chat-react/pull/1082)
84
- - Add Japanese and Korean to list of supported languages for auto translation [#1085](https://github.com/GetStream/stream-chat-react/pull/1085)
85
-
86
- ## [6.4.7](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.7) 2021-07-27
87
-
88
- ### Feature
89
-
90
- - Add the ability to open/close list of available commands on click [#1072](https://github.com/GetStream/stream-chat-react/pull/1072)
91
- - Add the ability to set custom active channel on mount even if it's not returned in the initial `queryChannels` response [#1078](https://github.com/GetStream/stream-chat-react/pull/1078)
92
-
93
- ### Chore
94
-
95
- - Replace `replaceAll` method with `replace` and add global flag for older browser support [#1074](https://github.com/GetStream/stream-chat-react/pull/1074)
96
- - Adjust `VirtualizedMessageList` CSS to support `MessageSimple` [#1075](https://github.com/GetStream/stream-chat-react/pull/1075)
97
-
98
- ## [6.4.6](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.6) 2021-07-23
99
-
100
- ### Chore
101
-
102
- - Add error handling to `MessageInput` submit handler functions [#1068](https://github.com/GetStream/stream-chat-react/pull/1068)
103
- - Upgrade `react-images` dependency for React 17 support [#1069](https://github.com/GetStream/stream-chat-react/pull/1069)
104
-
105
- ## [6.4.5](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.5) 2021-07-21
106
-
107
- ### Feature
108
-
109
- - Provide option to use `VirtualizedMessageList` in `Thread` component via the `virtualized` boolean prop [#1065](https://github.com/GetStream/stream-chat-react/pull/1065)
110
-
111
- ### Chore
112
-
113
- - Pass `message` object override prop to `MessageText` component [#1063](https://github.com/GetStream/stream-chat-react/pull/1063)
114
- - Add fallback `name` for specific rendered `Avatar` components [#1066](https://github.com/GetStream/stream-chat-react/pull/1066)
115
-
116
- ## [6.4.4](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.4) 2021-07-20
117
-
118
- ### Bug
119
-
120
- - Fix bundle issues with dependency CSS imports [#1061](https://github.com/GetStream/stream-chat-react/pull/1061)
121
-
122
- ## [6.4.3](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.3) 2021-07-20
123
-
124
- ### Feature
125
-
126
- - Reload `ChannelList` component when `sort` prop changes [#1054](https://github.com/GetStream/stream-chat-react/pull/1054)
127
-
128
- ### Chore
129
-
130
- - Add repo info to NPM page [#1051](https://github.com/GetStream/stream-chat-react/pull/1051)
131
- - Export `MML` component [#1053](https://github.com/GetStream/stream-chat-react/pull/1053)
132
- - Upgrade `react-virtuoso` dependency [#1057](https://github.com/GetStream/stream-chat-react/pull/1057)
133
- - Revert removal of `EmptyStateIndicator` component for threads [#1058](https://github.com/GetStream/stream-chat-react/pull/1058)
134
- - Move `mml-react` (optional dependency) CSS import to `MML` component [#1059](https://github.com/GetStream/stream-chat-react/pull/1059)
135
-
136
- ## [6.4.2](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.2) 2021-07-14
137
-
138
- ### Feature
139
-
140
- - 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](https://github.com/GetStream/stream-chat-react/pull/1045)
141
- - Add optimistic response for sending reactions [#1048](https://github.com/GetStream/stream-chat-react/pull/1048)
142
-
143
- ### Chore
144
-
145
- - Upgrade `typescript` and `stream-chat` dependencies [#1049](https://github.com/GetStream/stream-chat-react/pull/1049)
146
-
147
- ## [6.4.1](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.1) 2021-07-09
148
-
149
- ### Chore
150
-
151
- - Upgrade `react-file-utils` to fix NextJS support [#1043](https://github.com/GetStream/stream-chat-react/pull/1043)
152
-
153
- ### Bug
154
-
155
- - Fix `offset` increment issue for unwatched channels [#1038](https://github.com/GetStream/stream-chat-react/pull/1038)
156
-
157
- ## [6.4.0](https://github.com/GetStream/stream-chat-react/releases/tag/v6.4.0) 2021-07-07
158
-
159
- ### ⚠️ BREAKING CHANGES ⚠️ - The following values have been moved to the newly created [`EmojiContext`](https://getstream.io/chat/docs/sdk/react/contexts/emoji_context/):
160
-
161
- - `Emoji` - moved from `ComponentContext`
162
- - `emojiConfig` - moved from `ChannelStateContext`
163
- - `EmojiIndex` - moved from `ComponentContext`
164
- - `EmojiPicker` - moved from `ComponentContext`
165
-
166
- ### Feature
167
-
168
- - Lazy load the `emoji-mart` dependency [#1037](https://github.com/GetStream/stream-chat-react/pull/1037)
169
-
170
- ### Chore
171
-
172
- - Remove unused CSS [#1035](https://github.com/GetStream/stream-chat-react/pull/1035)
173
-
174
- ## [6.3.0](https://github.com/GetStream/stream-chat-react/releases/tag/v6.3.0) 2021-07-02
175
-
176
- ### ⚠️ BREAKING CHANGES ⚠️ - We've removed the following deprecated UI components [#1031](https://github.com/GetStream/stream-chat-react/pull/1031):
177
-
178
- - `ChannelListTeam`
179
- - `ChannelPreviewCompact`
180
- - `ChannelPreviewCountOnly`
181
- - `ChannelPreviewLastMessage`
182
- - `MessageInputLarge`
183
- - `MessageInputSimple`
184
-
185
- ### Feature
186
-
187
- - Added option to view read states on all messages [#1014](https://github.com/GetStream/stream-chat-react/pull/1014)
188
- - Added markdown rendering support for `ChannelPreview` component [#1021](https://github.com/GetStream/stream-chat-react/pull/1021)
189
- - Added `sendChannelsToList` prop to `ChannelList` to pass `loadedChannels` to the `List` UI component [#1028](https://github.com/GetStream/stream-chat-react/pull/1028)
190
- - Pass entire user object to `Avatar` component for custom component usage [#1030](https://github.com/GetStream/stream-chat-react/pull/1030)
191
- - Send error notification to channel via `addNotification` method when file/image upload fails [#1032](https://github.com/GetStream/stream-chat-react/pull/1032)
192
- - Conditionally render `SendButton` when attachments have been uploaded but no input text exists [#1033](https://github.com/GetStream/stream-chat-react/pull/1033)
193
-
194
- ### Chore
195
-
196
- - Update `MessageInput` emoji icons [#1020](https://github.com/GetStream/stream-chat-react/pull/1020) and [#1029](https://github.com/GetStream/stream-chat-react/pull/1029)
197
- - Upgrade `react-file-utils` dependency [#1027](https://github.com/GetStream/stream-chat-react/pull/1027)
198
-
199
- ## [6.2.0](https://github.com/GetStream/stream-chat-react/releases/tag/v6.2.0) 2021-06-24
200
-
201
- ### 🎉 CSS VARIABLES THEMING! 🎉
202
-
203
- - We've replaced much of the library's hardcoded CSS with customizable variables [#927](https://github.com/GetStream/stream-chat-react/pull/927)
204
- - Variable support has been added for fonts, colors, border radius, padding, and margin
205
- - The `Chat` component now accepts a `customStyles` prop, an object type of CSS variables and value overrides
206
- - See the [CSS and Theming](https://getstream.io/chat/docs/sdk/react/customization/css_and_theming/) section of our docs
207
- for an example of how to implement
208
-
209
- ### Feature
210
-
211
- - Added error notification handling for failed deleted messages [#1002](https://github.com/GetStream/stream-chat-react/pull/1002)
212
- - Added UI component override prop for `MessageListNotifications` [#996](https://github.com/GetStream/stream-chat-react/pull/996)
213
-
214
- ### Chore
215
-
216
- - Refactor typing of `Attachment` components [#995](https://github.com/GetStream/stream-chat-react/pull/995)
217
-
218
- ## [6.1.2](https://github.com/GetStream/stream-chat-react/releases/tag/v6.1.2) 2021-06-21
219
-
220
- ### Feature
221
-
222
- - Refactor message permissions so they respect channel config [#986](https://github.com/GetStream/stream-chat-react/pull/986)
223
- - Add limit option to default user mention behavior [#988](https://github.com/GetStream/stream-chat-react/pull/988)
224
- - Add additional customization for `ChannelSearch` component [#989](https://github.com/GetStream/stream-chat-react/pull/989)
225
- - Add `formatDate` prop override potential `DateSeparator` component [#992](https://github.com/GetStream/stream-chat-react/pull/992)
226
-
227
- ### Chore
228
-
229
- - Refactor typing of `Attachment` component [#991](https://github.com/GetStream/stream-chat-react/pull/991)
230
-
231
- ## [6.1.1](https://github.com/GetStream/stream-chat-react/releases/tag/v6.1.1) 2021-06-16
232
-
233
- ### Chore
234
-
235
- - Upgrade TypeScript dependencies [#982](https://github.com/GetStream/stream-chat-react/pull/982)
236
-
237
- ### Bug
238
-
239
- - Add missing `onlySenderCanEdit` prop to `Message` component [#982](https://github.com/GetStream/stream-chat-react/pull/982)
240
-
241
- ## [6.1.0](https://github.com/GetStream/stream-chat-react/releases/tag/v6.1.0) 2021-06-15
242
-
243
- ### 🎉 UPDATED DOCS! 🎉
244
-
245
- - We have completely re-written our [SDK docs](https://getstream.io/chat/docs/sdk/react/)
246
- - Component/props/context references are all complete
247
- - We'll continually add to the Custom Code Examples section for easier customization
248
- - The new docs are found on the [website](https://getstream.io/chat/docs/sdk/react/)
249
-
250
- ### Feature
251
-
252
- - Refine edit message privileges and add `onlySenderCanEdit` prop to `MessageList` [#975](https://github.com/GetStream/stream-chat-react/pull/975)
253
-
254
- ### Chore
255
-
256
- - Change attachment type for video messages [#976](https://github.com/GetStream/stream-chat-react/pull/976)
257
- - Adjust mouse event listener options [#980](https://github.com/GetStream/stream-chat-react/pull/980)
258
-
259
- ### Bug
260
-
261
- - Prevent `EmptyStateIndicator` from showing up in `Thread` [#977](https://github.com/GetStream/stream-chat-react/pull/977)
262
-
263
- ## [6.0.7](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.7) 2021-06-14
264
-
265
- ### Feature
266
-
267
- - Add support for custom reactions [#968](https://github.com/GetStream/stream-chat-react/pull/968)
268
-
269
- ### Chore
270
-
271
- - Upgrade `stream-chat` dependency
272
-
273
- ### Bug
274
-
275
- - Fix UI component conditional rendering in `Attachment` [#972](https://github.com/GetStream/stream-chat-react/pull/972)
276
- - Add needed params to `ChannelSearch` search function prop [#973](https://github.com/GetStream/stream-chat-react/pull/973)
277
-
278
- ## [6.0.6](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.6) 2021-06-02
279
-
280
- ### Chore
281
-
282
- - Throttle send/remove message reaction functions [#953](https://github.com/GetStream/stream-chat-react/pull/953)
283
- and [#955](https://github.com/GetStream/stream-chat-react/pull/955)
284
-
285
- ### Bug
286
-
287
- - Restore override props on `ChatAutoComplete` component [#952](https://github.com/GetStream/stream-chat-react/pull/952)
288
-
289
- ## [6.0.5](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.5) 2021-05-28
290
-
291
- ### Feature
292
-
293
- - Add optional prop to override default `loadMore` function in `VirtualizedMessageList` [#950](https://github.com/GetStream/stream-chat-react/pull/950)
294
-
295
- ### Bug
296
-
297
- - Prevent unnecessary members query when `disableMentions` is enabled on `MessageInput` [#949](https://github.com/GetStream/stream-chat-react/pull/949)
298
-
299
- ## [6.0.4](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.4) 2021-05-25
300
-
301
- ### Bug
302
-
303
- - Add missing `Input` prop to `ComponentContext` value [#942](https://github.com/GetStream/stream-chat-react/pull/942)
304
-
305
- ## [6.0.3](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.3) 2021-05-25
306
-
307
- ### Chore
308
-
309
- - Export browser bundle as `StreamChatReact` namespace [#940](https://github.com/GetStream/stream-chat-react/pull/940)
310
- - Use asset path scss variable [#939](https://github.com/GetStream/stream-chat-react/pull/939)
311
-
312
- ## [6.0.2](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.2) 2021-05-21
313
-
314
- ### Feature
315
-
316
- - Add German auto translation support [#935](https://github.com/GetStream/stream-chat-react/pull/935)
317
-
318
- ### Chore
319
-
320
- - Upgrade `react-file-utils` dependency for reduced bundle size [#933](https://github.com/GetStream/stream-chat-react/pull/933)
321
-
322
- ### Bug
323
-
324
- - Prevent tree shaking from removing distributed CSS [#936](https://github.com/GetStream/stream-chat-react/pull/936)
325
-
326
- ## [6.0.1](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.1) 2021-05-19
327
-
328
- ### Feature
329
-
330
- - Expose the `MessageContext` to the `VirtualizedMessageList`'s `Message` UI component [#924](https://github.com/GetStream/stream-chat-react/pull/924)
331
-
332
- ### Chore
333
-
334
- - Reorganize component documentation for v6 [#926](https://github.com/GetStream/stream-chat-react/pull/926)
335
-
336
- ### Bug
337
-
338
- - Prevent crash when navigate away from, and then back to, an empty channel [#931](https://github.com/GetStream/stream-chat-react/pull/931)
339
-
340
- ## [6.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v6.0.0) 2021-05-17
341
-
342
- ### ⚠️ BREAKING CHANGES ⚠️ - Please review our v6 [implementation guide](https://github.com/GetStream/stream-chat-react/wiki) prior to upgrading.
343
-
344
- 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:
345
-
346
- - `ChannelActionContext` - provides the functions needed to operate a `Channel`
347
- - `ChannelStateContext` - provides the stateful data needed to operate a `Channel`
348
- - `ComponentContext` - provides the UI component overrides for all child components of a `Channel`
349
- - `TypingContext` - provides an object of users currently typing in the `Channel`
350
-
351
- **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](https://github.com/GetStream/stream-chat-react/wiki/Context-Overview-(v6.0.0)).
352
-
353
- ### Feature
354
-
355
- - We've added a handful of new features in this release, check out this [wiki](https://github.com/GetStream/stream-chat-react/wiki/New-Features-(v.6.0.0)) for more details. New features include:
356
- - custom message actions
357
- - custom triggers
358
- - channel search
359
- - quoted messages
360
- - cooldown timer / slow mode UI
361
- - submit key override
362
- - The `Message` component now provides the `MessageContext` to its children. Reference this [guide](https://github.com/GetStream/stream-chat-react/wiki/How-to-Guide-for-Building-a-Custom-Message-(v.6.0.0)) for instructions on creating a custom message UI component.
363
- - The `MessageInput` component now provides the `MessageInputContext` to its children. Reference this [guide](https://github.com/GetStream/stream-chat-react/wiki/How-to-Guide-for-Building-a-Custom-MessageInput-and-Customizing-the-Default-MessageInput-(v.6.0.0)) for instructions on creating a custom input UI component.
364
-
365
- ## [5.4.0](https://github.com/GetStream/stream-chat-react/releases/tag/v5.4.0) 2021-05-13
366
-
367
- ### Feature
368
-
369
- - Scroll to bottom of `MessageList` when the last message receives a reaction or reply [#916](https://github.com/GetStream/stream-chat-react/pull/916)
370
-
371
- ### Chore
372
-
373
- - Preserve modules during build to optimize tree shaking potential [#919](https://github.com/GetStream/stream-chat-react/pull/919)
374
- - Support `'next-images'` dependency in NextJS sample app [#920](https://github.com/GetStream/stream-chat-react/pull/920)
375
-
376
- ## [5.3.2](https://github.com/GetStream/stream-chat-react/releases/tag/v5.3.2) 2021-05-03
377
-
378
- ### Feature
379
-
380
- - Add `scrollToLatestMessageOnFocus` prop to `VirtualizedMessageList` to handle focus changes on browser tab switching [#892](https://github.com/GetStream/stream-chat-react/pull/892)
381
- - Add `MessageNotification` prop to `MessageList` components to allow customization of the new messages notification popup [#894](https://github.com/GetStream/stream-chat-react/pull/894)
382
-
383
- ### Bug
384
-
385
- - Adjust URL parsing for duplicate entries [#893](https://github.com/GetStream/stream-chat-react/pull/893)
386
-
387
- ## [5.3.1](https://github.com/GetStream/stream-chat-react/releases/tag/v5.3.1) 2021-04-30
388
-
389
- ### Bug
390
-
391
- - Add message memoization case for read states [#888](https://github.com/GetStream/stream-chat-react/pull/888)
392
- - Fix regex trigger for multiple mentions [#889](https://github.com/GetStream/stream-chat-react/pull/889)
393
- - Add message memoization case for muted user array [#891](https://github.com/GetStream/stream-chat-react/pull/891)
394
-
395
- ## [5.3.0](https://github.com/GetStream/stream-chat-react/releases/tag/v5.3.0) 2021-04-29
396
-
397
- ### Feature
398
-
399
- - Added support for `user.deleted` and `user.updated` event handling [#884](https://github.com/GetStream/stream-chat-react/pull/884)
400
- - Requires `stream-chat >= 3.8.0`
401
- - In case of `user.deleted` event, messages from corresponding user will be marked as deleted
402
- - In case of `user.updated` event, user property on messages from corresponding user will be updated.
403
-
404
- ## [5.2.1](https://github.com/GetStream/stream-chat-react/releases/tag/v5.2.1) 2021-04-28
405
-
406
- ### Chore
407
-
408
- - Adjust processed messages logic [#876](https://github.com/GetStream/stream-chat-react/pull/876)
409
- - Make `mml-react` an optional dependency and lazy load [#881](https://github.com/GetStream/stream-chat-react/pull/881)
410
-
411
- ### Bug
412
-
413
- - Copy missing translations from built types [#879](https://github.com/GetStream/stream-chat-react/pull/879)
414
-
415
- ## [5.2.0](https://github.com/GetStream/stream-chat-react/releases/tag/v5.2.0) 2021-04-26
416
-
417
- ### Feature
418
-
419
- - Add Spanish and Portuguese auto translation support [#874](https://github.com/GetStream/stream-chat-react/pull/874)
420
-
421
- ### Chore
422
-
423
- - Adjust processed messages conditional logic for `VirtualizedMessageList` [#875](https://github.com/GetStream/stream-chat-react/pull/875)
424
-
425
- ## [5.1.8](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.8) 2021-04-21
426
-
427
- ### Chore
428
-
429
- - Update message group styling defaults in message UI components [#860](https://github.com/GetStream/stream-chat-react/pull/860)
430
- - Refine pin message permission checking [#866](https://github.com/GetStream/stream-chat-react/pull/866)
431
-
432
- ### Bug
433
-
434
- - Update `MessageActions` event listener types [#855](https://github.com/GetStream/stream-chat-react/pull/855)
435
- - Fix suggestion list command conditional check [#865](https://github.com/GetStream/stream-chat-react/pull/865)
436
-
437
- ## [5.1.7](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.7) 2021-04-13
438
-
439
- ### Feature
440
-
441
- - Remove channel creator's ability to edit/delete other users' messages [#853](https://github.com/GetStream/stream-chat-react/pull/853)
442
-
443
- ### Chore
444
-
445
- - Generalize event types to allow for greater action handler flexibility [#850](https://github.com/GetStream/stream-chat-react/pull/850)
446
-
447
- ## [5.1.6](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.6) 2021-04-10
448
-
449
- ### Feature
450
-
451
- - Adjust message memoization for custom UI components [#849](https://github.com/GetStream/stream-chat-react/pull/849)
452
-
453
- ### Bug
454
-
455
- - Fix CSS display issue for messages with reactions [#849](https://github.com/GetStream/stream-chat-react/pull/849)
456
-
457
- ## [5.1.5](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.5) 2021-04-09
458
-
459
- ### Chore
460
-
461
- - Adjust submit handler types [#847](https://github.com/GetStream/stream-chat-react/pull/847)
462
-
463
- ### Bug
464
-
465
- - Remove old CSS leading to Gatsby error [#846](https://github.com/GetStream/stream-chat-react/pull/846)
466
-
467
- ## [5.1.4](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.4) 2021-04-07
468
-
469
- ### Bug
470
-
471
- - Filter falsey emoji search results [#843](https://github.com/GetStream/stream-chat-react/pull/843)
472
-
473
- ### Chore
474
-
475
- - Adjust submit handler types [#844](https://github.com/GetStream/stream-chat-react/pull/844)
476
-
477
- ## [5.1.3](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.3) 2021-04-06
478
-
479
- ### Feature
480
-
481
- - Optimize message list components by limiting excess `loadMore` calls [#841](https://github.com/GetStream/stream-chat-react/pull/841)
482
-
483
- ### Bug
484
-
485
- - Fix `AutoCompleteTextarea` trigger highlighting bug [#839](https://github.com/GetStream/stream-chat-react/pull/839)
486
-
487
- ## [5.1.2](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.2) 2021-04-05
488
-
489
- ### Feature
490
-
491
- - Provide option to hide `DateSeparator` component for new messages with the `hideNewMessageSeparator` prop on `MessageList` and `VirtualizedMessageList` components [#837](https://github.com/GetStream/stream-chat-react/pull/837)
492
-
493
- ### Bug
494
-
495
- - Fix bad conditional in `useMentionsHandlers` custom hook [#836](https://github.com/GetStream/stream-chat-react/pull/836)
496
-
497
- ## [5.1.1](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.1) 2021-04-02
498
-
499
- ### Feature
500
-
501
- - Show formatted date separator for new messages [#818](https://github.com/GetStream/stream-chat-react/pull/818)
502
- - Provide option to display flag emojis as images on Windows via `useImageFlagEmojisOnWindows` prop [#821](https://github.com/GetStream/stream-chat-react/pull/821)
503
- - Hide reaction icon when a message has reactions [#826](https://github.com/GetStream/stream-chat-react/pull/826)
504
-
505
- ### Chore
506
-
507
- - Update types on `Chat` component [#825](https://github.com/GetStream/stream-chat-react/pull/825)
508
- - Update Prettier settings [#831](https://github.com/GetStream/stream-chat-react/pull/831)
509
-
510
- ### Bug
511
-
512
- - Escape characters that break emoji regex [#823](https://github.com/GetStream/stream-chat-react/pull/823)
513
- - Fix autocomplete textarea text replace algorithm [#827](https://github.com/GetStream/stream-chat-react/pull/827)
514
- - Force close suggestions list on submit [#828](https://github.com/GetStream/stream-chat-react/pull/828)
515
-
516
- ## [5.1.0](https://github.com/GetStream/stream-chat-react/releases/tag/v5.1.0) 2021-03-30
517
-
518
- ### Feature
519
-
520
- - Add type support for Moment.js date objects [#809](https://github.com/GetStream/stream-chat-react/pull/809)
521
- - Add i18n translation support for `ChannelPreview` [#810](https://github.com/GetStream/stream-chat-react/pull/810)
522
- - Allow `addNotification` function to be called anywhere within `Channel` [#811](https://github.com/GetStream/stream-chat-react/pull/811)
523
- - Hide `MessageActions` if no actions exist [#816](https://github.com/GetStream/stream-chat-react/pull/816)
524
-
525
- ### Chore
526
-
527
- - Refactor failed message UI component [#811](https://github.com/GetStream/stream-chat-react/pull/811)
528
- - Remove extra `watchers` query [#817](https://github.com/GetStream/stream-chat-react/pull/817)
529
- - Prevent `queryUsers` from searching a null value [#817](https://github.com/GetStream/stream-chat-react/pull/817)
530
-
531
- ## [5.0.3](https://github.com/GetStream/stream-chat-react/releases/tag/v5.0.3) 2021-03-24
532
-
533
- ### Feature
534
-
535
- - Add customization options for `renderText` function [#807](https://github.com/GetStream/stream-chat-react/pull/807)
536
-
537
- ## [5.0.2](https://github.com/GetStream/stream-chat-react/releases/tag/v5.0.2) 2021-03-23
538
-
539
- ### Bug
540
-
541
- - Fix optimistic UI for mentions [#800](https://github.com/GetStream/stream-chat-react/pull/800)
542
-
543
- ## [5.0.1](https://github.com/GetStream/stream-chat-react/releases/tag/v5.0.1) 2021-03-23
544
-
545
- ### Chore
546
-
547
- - Upgrade `react-file-utils` to v1.0.2
548
-
549
- ## [5.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v5.0.0) 2021-03-22
550
-
551
- ### 🎉 TYPESCRIPT 🎉
552
-
553
- - The entire component library has been converted to TypeScript
554
- - Despite the major tag, this release is non-breaking
555
- - Read our [TypeScript Support](https://github.com/GetStream/stream-chat-react/wiki/Typescript-Support) wiki for guidance on instantiating a `StreamChat` client with your custom types via generics
556
-
557
- ### Feature
558
-
559
- - Conversion to TypeScript [#797](https://github.com/GetStream/stream-chat-react/pull/797)
560
-
561
- ## [4.1.3](https://github.com/GetStream/stream-chat-react/releases/tag/v4.1.3) 2021-03-12
562
-
563
- ### Chore
564
-
565
- - Remove legacy example apps [#766](https://github.com/GetStream/stream-chat-react/pull/766)
566
- - Handle soft deleted messages in `VirtualizedMessageList` [#773](https://github.com/GetStream/stream-chat-react/pull/773)
567
-
568
- ### Bug
569
-
570
- - Add missing ChannelPreview helpers to exports [#775](https://github.com/GetStream/stream-chat-react/pull/775)
571
-
572
- ## [4.1.2](https://github.com/GetStream/stream-chat-react/releases/tag/v4.1.2) 2021-03-09
573
-
574
- ### Feature
575
-
576
- - Export `ChannelPreview` utility functions [#750](https://github.com/GetStream/stream-chat-react/pull/750)
577
- - Memoize `ChannelList` `filters` to prevent extra channel queries [#752](https://github.com/GetStream/stream-chat-react/pull/752)
578
-
579
- ### Chore
580
-
581
- - Update Customizing Styles section of README [#756](https://github.com/GetStream/stream-chat-react/pull/756)
582
- - Change `emoji-mart` imports to support server-side rendering [#764](https://github.com/GetStream/stream-chat-react/pull/764)
583
-
584
- ### Bug
585
-
586
- - Close emoji picker on emoji icon click [#751](https://github.com/GetStream/stream-chat-react/pull/751)
587
- - Hide reaction tooltip on click [#753](https://github.com/GetStream/stream-chat-react/pull/753)
588
-
589
- ## [4.1.1](https://github.com/GetStream/stream-chat-react/releases/tag/v4.1.1) 2021-02-26
590
-
591
- ### Chore
592
-
593
- - Upgrade `stream-chat` dependency to fix reaction caching issue [#742](https://github.com/GetStream/stream-chat-react/pull/742)
594
-
595
- ### Bug
596
-
597
- - Fix markdown link rendering issues [#742](https://github.com/GetStream/stream-chat-react/pull/742)
598
-
599
- ## [4.1.0](https://github.com/GetStream/stream-chat-react/releases/tag/v4.1.0) 2021-02-25
600
-
601
- ### Chore
602
-
603
- - Upgrade `react-virtuoso` dependency [#694](https://github.com/GetStream/stream-chat-react/pull/694)
604
- - Improved support for loading unevenly sized messages when scrolling back
605
- - Support smooth scrolling to bottom when new messages are posted (controlled through `stickToBottomScrollBehavior` property)
606
- - Adding reactions no longer cancels the automatic scrolling when new messages appear
607
- - Generate minified CSS output [#707](https://github.com/GetStream/stream-chat-react/pull/707)
608
- - Upgrade `stream-chat` dependency [#727](https://github.com/GetStream/stream-chat-react/pull/727)
609
- - Upgrade `mml-react` dependency [#728](https://github.com/GetStream/stream-chat-react/pull/728)
610
- - Upgrade `emoji-mart` dependency [#731](https://github.com/GetStream/stream-chat-react/pull/731)
611
-
612
- ### Feature
613
-
614
- - Add `tabIndex` to emoji picker [#710](https://github.com/GetStream/stream-chat-react/pull/710)
615
- - Add `dispatch` function from `channelReducer` to `ChannelContext` [#717](https://github.com/GetStream/stream-chat-react/pull/717)
616
- - Improve mobile support for display of the `MessageOptions` component [#723](https://github.com/GetStream/stream-chat-react/pull/723)
617
- - Add key down a11y support for emoji picker [#726](https://github.com/GetStream/stream-chat-react/pull/726)
618
- - Add `scrolledUpThreshold` prop to `MessageList` [#734](https://github.com/GetStream/stream-chat-react/pull/734)
619
-
620
- ### Bug
621
-
622
- - Fix reaction list click propagation issue [#722](https://github.com/GetStream/stream-chat-react/pull/722)
623
- - Fix reaction list non-breaking space issue [#725](https://github.com/GetStream/stream-chat-react/pull/725)
624
- - Fix URL markdown in code blocks [#733](https://github.com/GetStream/stream-chat-react/pull/733)
625
-
626
- ## [4.0.1](https://github.com/GetStream/stream-chat-react/releases/tag/v4.0.1) 2021-02-11
627
-
628
- ### Chore
629
-
630
- - Add `usePinHandler` example to docs [#705](https://github.com/GetStream/stream-chat-react/pull/705)
631
- - Remove legacy APIs in mock data used for generating the docs [#704](https://github.com/GetStream/stream-chat-react/pull/704)
632
-
633
- ## [4.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v4.0.0) 2021-02-10
634
-
635
- ### ⚠️ BREAKING CHANGES ⚠️
636
-
637
- - Removed the `seamless-immutable` dependency and its corresponding methods and types [#687](https://github.com/GetStream/stream-chat-react/pull/687)
638
-
639
- - We also removed this dependency at the `stream-chat` JS client level, therefore immutable methods, such as `setIn`, no longer need to be run
640
- on the returned data [#602](https://github.com/GetStream/stream-chat-js/pull/602)
641
- - Responses from the Stream API will now return standard JS data structures, without the immutable wrapping
642
- - **When you upgrade to v4.0.0 of `stream-chat-react`, make sure you also upgrade to v3.0.0 of `stream-chat`**
643
-
644
- ### Feature
645
-
646
- - Performance optimize and allow customization of the `emoji-mart` dependency [#530](https://github.com/GetStream/stream-chat-react/pull/530)
647
- - Add custom `image` prop to `ChannelHeader` component [#697](https://github.com/GetStream/stream-chat-react/pull/697)
648
-
649
- ### Chore
650
-
651
- - Removed the SonarJS linting rules [#693](https://github.com/GetStream/stream-chat-react/pull/693)
652
-
653
- ### Bug
654
-
655
- - Fix permissions bug with custom channel types [#695](https://github.com/GetStream/stream-chat-react/pull/695)
656
- - Fix `ChannelHeader` CSS alignment issue [#699](https://github.com/GetStream/stream-chat-react/pull/699)
657
-
658
- ## [3.6.0](https://github.com/GetStream/stream-chat-react/releases/tag/v3.6.0) 2021-02-02
659
-
660
- ### Feature
661
-
662
- - Added support for pinned messages [#682](https://github.com/GetStream/stream-chat-react/pull/682)
663
-
664
- - Save `pinnedMessages` to ChannelContext
665
- - Create `usePinHandler` custom hook for returning `canPin` value and `handlePin` function
666
- - Add Pin/Unpin as optional actions in `MessageActions`
667
- - Add `PinIndicator` UI component to `MessageLivestream` and `MessageTeam`
668
- - Add optional `"pinned-message"` CSS class to message UI components
669
- - Add `getPinMessageErrorNotification` and `pinPermissions` as `MessageList` props
670
-
671
- - Hide `DateSeparator` component when all messages for a day are deleted [#689](https://github.com/GetStream/stream-chat-react/pull/689)
672
-
673
- ### Chore
674
-
675
- - Refactor example apps to use `getInstance` and `connectUser` [#688](https://github.com/GetStream/stream-chat-react/pull/688)
676
-
677
- ### Bug
678
-
679
- - Display auto-translated message text when it exists [#683](https://github.com/GetStream/stream-chat-react/pull/683)
680
- - Add missing export for `VirtualizedMessageList` type [#691](https://github.com/GetStream/stream-chat-react/pull/691)
681
-
682
- ## [3.5.3](https://github.com/GetStream/stream-chat-react/releases/tag/v3.5.3) 2021-01-26
683
-
684
- ### Feature
685
-
686
- - `ChannelList` accepts an optional prop to filter/sort channels prior to render [#678](https://github.com/GetStream/stream-chat-react/pull/678)
687
-
688
- ## [3.5.2](https://github.com/GetStream/stream-chat-react/releases/tag/v3.5.2) 2021-01-21
689
-
690
- ### Fix
691
-
692
- - Handle emoji picker event listener race condition [#675](https://github.com/GetStream/stream-chat-react/pull/675)
693
- - Adjust style for only emoji messages [#676](https://github.com/GetStream/stream-chat-react/pull/676)
694
-
695
- ## [3.5.1](https://github.com/GetStream/stream-chat-react/releases/tag/v3.5.1) 2021-01-19
696
-
697
- ### Fix
698
-
699
- - Upload PSD attachments as file [#673](https://github.com/GetStream/stream-chat-react/pull/673)
700
-
701
- ### Chore
702
-
703
- - Bump MML-React [#674](https://github.com/GetStream/stream-chat-react/pull/674)
704
-
705
- ## [3.5.0](https://github.com/GetStream/stream-chat-react/releases/tag/v3.5.0) 2021-01-15
706
-
707
- ## Feature
708
-
709
- - Support typing indicator in Thread component [#662](https://github.com/GetStream/stream-chat-react/pull/662)
710
- - Add parent ID to typing events [#665](https://github.com/GetStream/stream-chat-react/pull/665)
711
- - Allow MessageInput emoji and file upload icon customization [#666](https://github.com/GetStream/stream-chat-react/pull/666)
712
- - Add optional `disableMentions` prop to MessageInput and update mentions UI [#669](https://github.com/GetStream/stream-chat-react/pull/669)
713
-
714
- ## Fix
715
-
716
- - Fix maxLength paste text bug [#670](https://github.com/GetStream/stream-chat-react/pull/670)
717
-
718
- ## [3.4.6](https://github.com/GetStream/stream-chat-react/releases/tag/v3.4.6) 2021-01-08
719
-
720
- ## Feature
721
-
722
- - Add SuggestionList as MessageInput prop to override default List and Item component to display trigger suggestions [#655](https://github.com/GetStream/stream-chat-react/pull/655)
723
- - Add allowNewMessagesFromUnfilteredChannels prop to ChannelList [#663](https://github.com/GetStream/stream-chat-react/pull/663)
724
-
725
- ## Fix
726
-
727
- - Fix type for mentions handler [#660](https://github.com/GetStream/stream-chat-react/pull/660)
728
-
729
- ## Chore
730
-
731
- - Convert Thread to functional component [#650](https://github.com/GetStream/stream-chat-react/pull/650)
732
- - Convert messaging sample app to functional component [#661](https://github.com/GetStream/stream-chat-react/pull/661)
733
-
734
- ## [3.4.5](https://github.com/GetStream/stream-chat-react/releases/tag/v3.4.5) 2021-01-07
735
-
736
- ## Feature
737
-
738
- - Message components accept custom EditMessageInput component [#656](https://github.com/GetStream/stream-chat-react/pull/656)
739
-
740
- ## Fix
741
-
742
- - Message actions default options doc [#654](https://github.com/GetStream/stream-chat-react/pull/654)
743
- - MessageList unread TypeError [#654](https://github.com/GetStream/stream-chat-react/pull/654)
744
- - ChannelHeader button css padding [#648](https://github.com/GetStream/stream-chat-react/pull/648)
745
-
746
- ## Chore
747
-
748
- - Bump dependencies [#657](https://github.com/GetStream/stream-chat-react/pull/657) [#659](https://github.com/GetStream/stream-chat-react/pull/659)
749
-
750
- ## [3.4.4](https://github.com/GetStream/stream-chat-react/releases/tag/v3.4.4) 2020-12-23
751
-
752
- ## Addition
753
-
754
- - Export the UploadsPreview component. [#647](https://github.com/GetStream/stream-chat-react/pull/647)
755
-
756
- ## [3.4.3](https://github.com/GetStream/stream-chat-react/releases/tag/v3.4.3) 2020-12-16
757
-
758
- ## Fix
759
-
760
- - Browser bundle undefined variable
761
-
762
- ## [3.4.2](https://github.com/GetStream/stream-chat-react/releases/tag/v3.4.2) 2020-12-16
763
-
764
- ## Adjustment
765
-
766
- - Changes default smiley face icon for reaction selector. [#645](https://github.com/GetStream/stream-chat-react/pull/645)
767
-
768
- ## [3.4.1](https://github.com/GetStream/stream-chat-react/releases/tag/v3.4.1) 2020-12-15
769
-
770
- ## Feature
771
-
772
- - Adds custom UI component prop `ThreadHeader` to `Thread` to override the default header. [#642](https://github.com/GetStream/stream-chat-react/pull/642)
773
-
774
- ## [3.4.0](https://github.com/GetStream/stream-chat-react/releases/tag/v3.4.0) 2020-12-14
775
-
776
- ## Feature
777
-
778
- - MML is supported by default in all Message components except `MessageLiveStream`. [#562](https://github.com/GetStream/stream-chat-react/pull/562)
779
-
780
- For more detail about how to use MML please refer to [mml-react](https://getstream.github.io/mml-react/) docs.
781
-
782
- ## [3.3.2](https://github.com/GetStream/stream-chat-react/releases/tag/v3.3.2) 2020-12-11
783
-
784
- ## Fix
785
-
786
- - Add error handling for `loadMoreThread` API request [#627](https://github.com/GetStream/stream-chat-react/pull/627)
787
-
788
- ## [3.3.1](https://github.com/GetStream/stream-chat-react/releases/tag/v3.3.1) 2020-12-9
789
-
790
- ## Fix
791
-
792
- - Add additional user role check for `isModerator` boolean [#625](https://github.com/GetStream/stream-chat-react/pull/625)
793
-
794
- ## [3.3.0](https://github.com/GetStream/stream-chat-react/releases/tag/v3.3.0) 2020-12-3
795
-
796
- ## Feature
797
-
798
- - Allow all instances of Avatar to be overridden with a custom component via props [#610](https://github.com/GetStream/stream-chat-react/pull/610)
799
-
800
- ## [3.2.4](https://github.com/GetStream/stream-chat-react/releases/tag/v3.2.4) 2020-11-19
801
-
802
- ## Fix
803
-
804
- - Prevent firing LoadMore requests when browser is offline [#614](https://github.com/GetStream/stream-chat-react/pull/614)
805
- - Support muted channels in ChannelPreview [#608](https://github.com/GetStream/stream-chat-react/pull/608)
806
- - `ChannelContext.sendMessage` type accepts missing text [#613](https://github.com/GetStream/stream-chat-react/pull/613)
807
-
808
- ## [3.2.3](https://github.com/GetStream/stream-chat-react/releases/tag/v3.2.3) 2020-11-13
809
-
810
- ## Fix
811
-
812
- - Email links are clickable [#607](https://github.com/GetStream/stream-chat-react/pull/607)
813
- - `message.own_reactions` passed into Reaction components [#604](https://github.com/GetStream/stream-chat-react/pull/604)
814
-
815
- ## [3.2.2](https://github.com/GetStream/stream-chat-react/releases/tag/v3.2.2) 2020-11-05
816
-
817
- ## Fix
818
-
819
- - `VirtualizedMessageList` breaking the list for falsy messages [#602](https://github.com/GetStream/stream-chat-react/pull/602)
820
- - `FixedHeightMessage` action box not opening in React@17 [#602](https://github.com/GetStream/stream-chat-react/pull/602)
821
- - Missing custom hooks type [#601](https://github.com/GetStream/stream-chat-react/pull/601)
822
-
823
- ## [3.2.1](https://github.com/GetStream/stream-chat-react/releases/tag/v3.2.1) 2020-11-04
824
-
825
- ## Fix
826
-
827
- - `VirtualizedMessageList` stick to bottom [#597](https://github.com/GetStream/stream-chat-react/pull/597)
828
-
829
- ## [3.2.0](https://github.com/GetStream/stream-chat-react/releases/tag/v3.2.0) 2020-11-04
830
-
831
- ## Chore
832
-
833
- - Support React v17 [#588](https://github.com/GetStream/stream-chat-react/pull/588)
834
-
835
- ## [3.1.7](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.7) 2020-10-29
836
-
837
- ## Fix
838
-
839
- - Improved errorHandling on failed uploads. [#596](https://github.com/GetStream/stream-chat-react/pull/596)
840
- - Escape special characters in mentioned_users names [#591](https://github.com/GetStream/stream-chat-react/pull/591)
841
- - Improve handling max files(10) in MessageInput [#593](https://github.com/GetStream/stream-chat-react/pull/593)
842
-
843
- ## [3.1.6](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.6) 2020-10-21
844
-
845
- ## Fix
846
-
847
- - `displayActions` prop is respected in `MessageOptions` component [#587](https://github.com/GetStream/stream-chat-react/pull/587)
848
-
849
- ## Chore
850
-
851
- - `stream-chat-js` required version bumped to `2.7.x` [#582](https://github.com/GetStream/stream-chat-react/pull/582)
852
-
853
- ## [3.1.5](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.5) 2020-10-19
854
-
855
- ## Feature
856
-
857
- - Disable upload dropzone and input button in Input components based on channel config [#585](https://github.com/GetStream/stream-chat-react/pull/585)
858
-
859
- ## Fix
860
-
861
- - Disable the upload dropzone and input button when the maximum number of allowed attachments is reached [#577](https://github.com/GetStream/stream-chat-react/pull/577)
862
-
863
- ## [3.1.4](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.4) 2020-10-19
864
-
865
- ## Fix
866
-
867
- - Fixed a bug with ChannelList pagination with low limits or high thresholds [#583](https://github.com/GetStream/stream-chat-react/pull/583)
868
-
869
- ## Added
870
-
871
- - Disable reactions based on channel config [#581](https://github.com/GetStream/stream-chat-react/pull/581)
872
- - Disable Thread based on channel config [#580](https://github.com/GetStream/stream-chat-react/pull/580)
873
- - Disable TypingIndicator based on channel config [#579](https://github.com/GetStream/stream-chat-react/pull/579)
874
-
875
- ## [3.1.3](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.3) 2020-10-15
876
-
877
- ## Fix
878
-
879
- - Better handling of offsets during loadMore [#578](https://github.com/GetStream/stream-chat-react/pull/578)
880
-
881
- ## [3.1.2](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.2) 2020-10-14
882
-
883
- # Fix
884
-
885
- 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](https://github.com/GetStream/stream-chat-react/commit/c5632521566fe8ad8c3a05a6648b4cdc3c4daafe)
886
-
887
- ## [3.1.1](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.1) 2020-10-14
888
-
889
- ## Fix
890
-
891
- - FixedHeightMessage text overflow [#573](https://github.com/GetStream/stream-chat-react/pull/573)
892
- - Prevent state updates on unmounted Channel component [#566](https://github.com/GetStream/stream-chat-react/pull/566)
893
-
894
- ## [3.1.0](https://github.com/GetStream/stream-chat-react/releases/tag/v3.1.0) 2020-10-14
895
-
896
- ## Feature
897
-
898
- - VirtualizedMessageList supports message grouping [#571](https://github.com/GetStream/stream-chat-react/pull/571)
899
-
900
- ```js
901
- <VirtualizedMessageList shouldGroupByUser />
902
- ```
903
-
904
- ## Fix
905
-
906
- - VirtualizedMessageList TypingIndicator is disabled by default [#571](https://github.com/GetStream/stream-chat-react/pull/571)
907
-
908
- ## [3.0.3](https://github.com/GetStream/stream-chat-react/releases/tag/v3.0.3) 2020-10-13
909
-
910
- ## Fix
911
-
912
- - Security [issue](https://github.com/GetStream/stream-chat-react/issues/569) due to missing `rel="noopener noreferrer"` in rendered links [#570](https://github.com/GetStream/stream-chat-react/pull/570)
913
-
914
- ## [3.0.2](https://github.com/GetStream/stream-chat-react/releases/tag/v3.0.2) 2020-10-12
915
-
916
- - Bump stream-chat to v2.6.0 [#568](https://github.com/GetStream/stream-chat-react/pull/568)
917
-
918
- ## [3.0.1](https://github.com/GetStream/stream-chat-react/releases/tag/v3.0.1) 2020-10-05
919
-
920
- - Bumped dependencies [#558](https://github.com/GetStream/stream-chat-react/pull/558)
921
-
922
- ## Fix
923
-
924
- - Fixed issues on docs [#556](https://github.com/GetStream/stream-chat-react/pull/556)
925
- - Fix type issues [#557](https://github.com/GetStream/stream-chat-react/pull/557)
926
- - Keep channel.members in sync [#561](https://github.com/GetStream/stream-chat-react/pull/561)
927
-
928
- ## Added
929
-
930
- - Export EmojiPicker [#560](https://github.com/GetStream/stream-chat-react/pull/560)
931
-
932
- ## [3.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v3.0.0) 2020-09-30
933
-
934
- ### BREAKING CHANGES
935
-
936
- - Image component renamed to ImageComponent [#554](https://github.com/GetStream/stream-chat-react/pull/554)
937
-
938
- ## [2.6.2](https://github.com/GetStream/stream-chat-react/releases/tag/v2.6.2) 2020-09-29
939
-
940
- ### Fix
941
-
942
- - Fixed several type issues [#552](https://github.com/GetStream/stream-chat-react/pull/552)
943
-
944
- ## [2.6.1](https://github.com/GetStream/stream-chat-react/releases/tag/v2.6.1) 2020-09-29
945
-
946
- ### Fix
947
-
948
- - Fixed an issue with MessageLivestream where mutes and flags were not happening [#551](https://github.com/GetStream/stream-chat-react/pull/551)
949
-
950
- ## [2.6.0](https://github.com/GetStream/stream-chat-react/releases/tag/v2.6.0) 2020-09-29
951
-
952
- ### Feature
953
-
954
- - New messages date indicator in MessageList and VritualizedMessageList [#548](https://github.com/GetStream/stream-chat-react/pull/548)
955
- - Reply/Reactions are available in messageActions [#547](https://github.com/GetStream/stream-chat-react/pull/547)
956
-
957
- ### Fix
958
-
959
- - Fix opacity on emoji in EditMessageForm [#540](https://github.com/GetStream/stream-chat-react/pull/540)
960
- - Sanitize URL image sources in Image component [#543](https://github.com/GetStream/stream-chat-react/pull/543)
961
- - Add first letter of display name to avatar [#545](https://github.com/GetStream/stream-chat-react/pull/545)
962
-
963
- ## [2.5.0](https://github.com/GetStream/stream-chat-react/releases/tag/v2.5.0) 2020-09-24
964
-
965
- ### Feature
966
-
967
- - TypingIndicator component is added by default to both MessageList and VirtualizedMessageList components. This component can also be used by its own. [#535](https://github.com/GetStream/stream-chat-react/pull/535)
968
-
969
- ## [2.4.0](https://github.com/GetStream/stream-chat-react/releases/tag/v2.4.0) 2020-09-17
970
-
971
- ### Feature
972
-
973
- - [VirtualizedMessageList](https://github.com/GetStream/stream-chat-react/blob/master/src/docs/VirtualizedMessageList.md) is a new component that can handle thousands of messages in a channel. It uses a virtualized list under the hood. #487
974
-
975
- ### Fix
976
-
977
- - Typescript generics of stream chat js are ABC adjusted #521
978
-
979
- ## [2.3.3](https://github.com/GetStream/stream-chat-react/releases/tag/v2.3.3) 2020-09-15
980
-
981
- - Refactored Attachment component to now also accept a Gallery prop that will handle when the attachments array contains multiple images.
982
- - Upgraded react-file-utils which fixes image previews not displaying on the EditMessageForm
983
- - Fix PropType errors
984
- - Fix an issue with the infinite scroll on the MessageList when the client is offline
985
-
986
- ## [2.3.2](https://github.com/GetStream/stream-chat-react/releases/tag/v2.3.2) 2020-09-10
987
-
988
- - Upgrading stream-chat to 2.2.2
989
-
990
- ## [2.3.1](https://github.com/GetStream/stream-chat-react/releases/tag/v2.3.1) 2020-09-10
991
-
992
- - Upgrading stream-chat to 2.2.1
993
-
994
- ## [2.3.0](https://github.com/GetStream/stream-chat-react/releases/tag/v2.3.0) 2020-09-10
995
-
996
- - Upgraded `stream-chat` package to `v2.2.0`
997
-
998
- - `stream-chat` package has been migrated to complete typescript in 2.x.x. There were no breaking change with underlying
999
- javascript api and also typescript except for [Event type](https://github.com/GetStream/stream-chat-js/blob/master/CHANGELOG.md#august-26-2020---200). We recommend you to check the changelog for stream-chat-js repository as well for more details
1000
- if you are planning to upgrade from `stream-chat-react@2.2.x` to `stream-chat-react@2.3.x`
1001
- - This PR which contains typescript related changes in stream-chat-react for given upgrade - https://github.com/GetStream/stream-chat-react/pull/499/files
1002
-
1003
- ## [2.2.2](https://github.com/GetStream/stream-chat-react/releases/tag/v2.2.2) 2020-08-21
1004
-
1005
- - Separated ConnectionStatus component from MessageList [82c8927](https://github.com/GetStream/stream-chat-react/commit/82c892773cd4aebed275259c93829ba6cb34b0be)
1006
- - Bug fix: When Channel component is standalone used (without ChannelList), mentions feature wouldn't work [4f64abc](https://github.com/GetStream/stream-chat-react/commit/4f64abcda95c77344a973b2972965a70b0cd8295)
1007
-
1008
- ## [2.2.1](https://github.com/GetStream/stream-chat-react/releases/tag/v2.2.1) 2020-07-31
1009
-
1010
- - Added listener for channel.hidden event and prop to override the default behaviour onChannelHidden [643af50](https://github.com/GetStream/stream-chat-react/commit/33739bd730f61da62e6fbe305a2807575643af50)
1011
- - Added listener for channel.visible event and prop to override the default behaviour onChannelVisible [56e1208](https://github.com/GetStream/stream-chat-react/commit/5066052d0948310582c74476d3981965b56e1208)
1012
-
1013
- ## [2.2.0](https://github.com/GetStream/stream-chat-react/releases/tag/v2.2.0) 2020-07-31
1014
-
1015
- - Added doMarkReadRequest prop to Channel component, to override markRead api calls [49a058b8](https://github.com/GetStream/stream-chat-react/commit/49a058b8489699fb3de4fc5f7041a4d09d9acd39)
1016
-
1017
- ## [2.1.3](https://github.com/GetStream/stream-chat-react/releases/tag/v2.1.3) 2020-07-27
1018
-
1019
- - Fix empty reaction showing bubble [#473](https://github.com/GetStream/stream-chat-react/pull/473)
1020
-
1021
- ## [2.1.2](https://github.com/GetStream/stream-chat-react/releases/tag/v2.1.2) 2020-07-27
1022
-
1023
- - Add formatDate to docs [#469](https://github.com/GetStream/stream-chat-react/pull/469)
1024
- - Allow reaction override in Message components [#470](https://github.com/GetStream/stream-chat-react/pull/470)
1025
- - Fix runtime require in browser bundle [#472](https://github.com/GetStream/stream-chat-react/pull/472)
1026
-
1027
- ## [2.1.1](https://github.com/GetStream/stream-chat-react/releases/tag/v2.1.1) 2020-07-22
1028
-
1029
- - 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.
1030
-
1031
- ## [2.1.0](https://github.com/GetStream/stream-chat-react/releases/tag/v2.1.0) 2020-07-22
1032
-
1033
- - Rename exported component `File` to `FileAttachment` to avoid overriding `window.File` in bundled release
1034
-
1035
- ## [2.0.4](https://github.com/GetStream/stream-chat-react/releases/tag/v2.0.4) 2020-07-21
1036
-
1037
- - Fixed type issues
1038
- - Fixed an issue with the mobile navigation
1039
- - Added the ability to customize the datetime stamp on Message components using the `formatDate` prop
1040
-
1041
- ## [2.0.3](https://github.com/GetStream/stream-chat-react/releases/tag/v2.0.3) 2020-07-20
1042
-
1043
- - All components using mutes get them using the useContext hook.
1044
- - Performance updates
1045
- - Fix for document.title when read_events are disabled
1046
- - Added docs on using included hooks
1047
-
1048
- ## [2.0.2](https://github.com/GetStream/stream-chat-react/releases/tag/v2.0.2) 2020-07-16
1049
-
1050
- - Fixed some issues with editing messages
1051
- - Fixed some issues with muting/unmuting messages
1052
-
1053
- ## [2.0.1](https://github.com/GetStream/stream-chat-react/releases/tag/v2.0.1) 2020-07-15
1054
-
1055
- 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:
1056
-
1057
- - Major refactor and code cleanup
1058
- - Components have been rewritten to use React Hooks
1059
- - Added tests for all components
1060
- - Performance improvements on MessageList
1061
- - Upgraded dependencies
1062
-
1063
- ### Breaking changes
1064
-
1065
- - Drop node 11, 13
1066
- - Deprecating context HOC’s
1067
- Since we moved our library to rely on React Hooks moved the following HOC’s to use `useContext` :
1068
- - `withChannelContext`
1069
- - `withChatContext`
1070
- - `withTranslationContext`
1071
- This means we now directly use the context values from the context and they’re not passed down from the props anymore.
1072
- - The `updateMessage` on the channel context does not support extraState anymore.
1073
- - There no longer is a ref inside a ref in ReactionsList. Instead, the ref of the container div is directly forwarded by the component.
1074
-
1075
- ### Addidtions
1076
-
1077
- - Triggers on MessageInput can now be overwritten using the autocompleteTriggers prop on `MessageInput`
1078
-
1079
- ### Fixes
1080
-
1081
- - Fixed styling on autocomplete suggestions
1082
- - Fixed YouTube video rendering in messages
1083
- - Fixed an issue that allowed you to send empty messages
1084
- - Bugfix in groupStyles calculations
1085
-
1086
- ## [1.2.5](https://github.com/GetStream/stream-chat-react/releases/tag/v1.2.5) 2020-06-30
1087
-
1088
- - Added `LoadingIndicator` prop to MessageList
1089
- - Fixed some minor styling issues with SafeAnchor
1090
-
1091
- ## [1.2.4](https://github.com/GetStream/stream-chat-react/releases/tag/v1.2.4) 2020-06-30
1092
-
1093
- - Refactor and improvements to the Gallery Modal component
1094
-
1095
- ## [1.2.3](https://github.com/GetStream/stream-chat-react/releases/tag/v1.2.3) 2020-06-30
1096
-
1097
- - Fixing types
1098
-
1099
- ## [1.2.2](https://github.com/GetStream/stream-chat-react/releases/tag/v1.2.2) 2020-06-22
1100
-
1101
- - Fixing types
1102
-
1103
- ## [1.2.1](https://github.com/GetStream/stream-chat-react/releases/tag/v1.2.1) 2020-06-17
1104
-
1105
- - Fixed an issue with our type definitions introduced in `1.2.0`
1106
-
1107
- ## [1.2.0](https://github.com/GetStream/stream-chat-react/releases/tag/v1.2.0) 2020-06-16
1108
-
1109
- - @mentions now use the queryMembers endpoint enabling mentions in channels of more that 100 members
1110
- - Fix for .mov videos
1111
- - Refactors and a lot of new tests
1112
- - Some small bug fixes
1113
-
1114
- ## [1.1.2](https://github.com/GetStream/stream-chat-react/releases/tag/v1.1.2) 2020-06-11
1115
-
1116
- - Fixes issue with File uploads on MessageInputLarge
1117
- - Make sure to only render videos if the browser supports it
1118
-
1119
- ## [1.1.1](https://github.com/GetStream/stream-chat-react/releases/tag/v1.1.1) 2020-06-09
1120
-
1121
- - Fixes links when written as markdown
1122
- - Allows app:// protocol in markdown links
1123
-
1124
- ## [1.1.0](https://github.com/GetStream/stream-chat-react/releases/tag/v1.1.0) 2020-06-08
1125
-
1126
- **Breaking Change**
1127
-
1128
- - Migrated ChannelList component to functional component.
1129
-
1130
- `ChannelList` component comes with some default handlers for following events.
1131
-
1132
- 1. notification.message_new
1133
- 2. notification.added_to_channel
1134
- 3. notification.removed_from_channel
1135
- 4. channel.updated
1136
- 5. channel.deleted
1137
- 6. channel.truncated
1138
-
1139
- But these default event handlers can be overriden by providing corresponding
1140
- prop functions for handling the event. For example, to override `notification.message_new` event,
1141
- you can provide prop function - `onMessageNew`, to ChannelList component.
1142
-
1143
- Until now, ChannelList component was class based, so function prop (e.g., `onMessageNew`) used to accept
1144
- following 2 parameters:
1145
-
1146
- 1. thisArg - `this` reference of component. You could use this to update the state of the
1147
- component as well. e.g., `thisArg.setState({ ... })`
1148
- 2. event - Event object
1149
-
1150
- In this release, we have migrated ChannelList component to functional component and thus
1151
- `thisArg` is no longer accessible. Instead we provide the setter (from `useState` hook) for channels.
1152
- So updated params to these custom event handlers (prop functions) is as follow:
1153
-
1154
- 1. setChannels {function} Setter for channels.
1155
- 2. event {object} Event object
1156
-
1157
- And same applies to all the rest of the custom event handlers:
1158
-
1159
- - onMessageNew
1160
- - onAddedToChannel
1161
- - onRemovedFromChannel
1162
- - onChannelUpdated
1163
- - onChannelTruncated
1164
- - onChannelDeleted
1165
-
1166
- **Fixes:**
1167
-
1168
- - Correctly set attachment type based on mime type
1169
- - Fixes to audio component
1170
- - Mentions: filter out no-longer-mentioned users on submit
1171
-
1172
- **Other:**
1173
-
1174
- - Type fixes
1175
- - Tests
1176
- - Refactors
1177
-
1178
- ## [1.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v1.0.0) 2020-05-15
1179
-
1180
- 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.
1181
-
1182
- **Breaking change:** `stream-chat-react` now relies on hooks and will need at least `v16.8.x` of `react` to work.
1183
-
1184
- - Fixed some issues with mutes
1185
- - Fixed issues with attachments
1186
- - Added tests
1187
-
1188
- ## [0.12.1](https://github.com/GetStream/stream-chat-react/releases/tag/v0.12.1) 2020-05-12
1189
-
1190
- - Render video uploads as videos, not files
1191
- - Added tooltip to emoji and attachment buttons
1192
- - Fix file/image upload preview layout
1193
- - Added tests
1194
-
1195
- ## [0.12.0](https://github.com/GetStream/stream-chat-react/releases/tag/v0.12.0) 2020-05-08
1196
-
1197
- - Refactor
1198
- - First message in thread doesn't have a fixed position anymore
1199
- - Upon if the active channel get's deleted, we now set the active channel to be empty
1200
- - Removed some unused css
1201
- - Fix for read indicators
1202
-
1203
- ## [0.11.18](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.18) 2020-05-06
1204
-
1205
- - Better fallback avatar in ReactionSelector
1206
- - Better scrolling after assets finish loading
1207
- - Disabled truncation of email links
1208
- - New props `onUserClick` and `onUserHover` on `Message` components
1209
-
1210
- ## [0.11.17](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.17) 2020-05-04
1211
-
1212
- - Added prop MessageDeleted on Message components to override the default component displayed for deleted messages.
1213
-
1214
- ## [0.11.16](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.16) 2020-05-01
1215
-
1216
- - Fixed an where read state indicators dissapeared
1217
-
1218
- ## [0.11.15](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.15) 2020-04-30
1219
-
1220
- - Fixed an issue where the read by tooltip said: "x, x, and 0 more"
1221
- - Fixed an issue where app might crash due to faulty read state
1222
- - Fixed an issue where file attachments didn't get uploaded when also uploading images
1223
-
1224
- ## [0.11.14](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.14) 2020-04-29
1225
-
1226
- - Adding direct messaging support for channel preview [b394079](https://github.com/GetStream/stream-chat-react/commit/b39407960fa908dc55b8ea48625f3c7095c37b56)
1227
- - Fixed typescript for ChannelList component [576f5c8](https://github.com/GetStream/stream-chat-react/commit/576f5c85919bccf21fc803e917581e373dd241d5)
1228
- - Fixed french translation file [308fcab](https://github.com/GetStream/stream-chat-react/commit/308fcab5fa891aad527cf94aeed8353a99d7dcb8)
1229
- - Adding extra check for channel connection to avoid failing markRead call [317fb1f](https://github.com/GetStream/stream-chat-react/commit/317fb1fe31e21e253cdce95bfb5d19932f098e2b)
1230
-
1231
- ## [0.11.13](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.13) 2020-04-20
1232
-
1233
- - Add check to fix optional activeChannel in ChannelPreview.
1234
-
1235
- ## [0.11.12](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.12) 2020-04-17
1236
-
1237
- - Fixing typescript issue with `MessageInput` component prop - `additionalTextAreaProps` [92f2ae2](https://github.com/GetStream/stream-chat-react/commit/92f2ae29a3c66a683ea2b1ebd1c85854cfa41446)
1238
-
1239
- ## [0.11.11](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.11) 2020-04-15
1240
-
1241
- - Adding missing translation key `{{ imageCount }} more` in Gallery component [5cea938](https://github.com/GetStream/stream-chat-react/commit/5cea938c5e80e781ae815f461e833f0b61b1a110)
1242
-
1243
- ## [0.11.10](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.10) 2020-04-09
1244
-
1245
- - Fix crashing app when there's no active channel
1246
-
1247
- ## [0.11.9](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.9) 2020-04-09
1248
-
1249
- - Fix issue with DateSeparator
1250
- - added type definition for setActiveChannelOnMount
1251
-
1252
- ## [0.11.8](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.8) 2020-04-08
1253
-
1254
- - Fix bug in ChannelHeader caused in version `0.11.4`
1255
-
1256
- ## [0.11.6](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.6) 2020-04-04
1257
-
1258
- **NOTE** Please make sure to use `stream-chat@^1.7.0`
1259
-
1260
- - Fixing moderator, owner, admin checks for message actions [71b3309](https://github.com/GetStream/stream-chat-react/commit/71b3309f53edd03a9eded293b3d77093be6359d5)
1261
-
1262
- ## [0.11.5](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.5) 2020-04-03
1263
-
1264
- - Open url attachments in new tab [e6436fe](https://github.com/GetStream/stream-chat-react/commit/e6436fe2c8c09bba42ec3677771191e5acbf5d93)
1265
-
1266
- ## [0.11.4](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.4) 2020-04-02
1267
-
1268
- - Reworked the mobile nav behaviour to be more flexible
1269
-
1270
- ## [0.11.3](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.3) 2020-04-02
1271
-
1272
- - Have the mute action respect channel settings
1273
- - Add supported markdown to docs
1274
-
1275
- ## [0.11.1](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.1) 2020-03-27
1276
-
1277
- - Reverting optimistic reaction UI related changes
1278
-
1279
- Reverted commits:
1280
-
1281
- - [36f8fd0](https://github.com/GetStream/stream-chat-react/commit/36f8fd025f1f8f5bf8c825ba86c141893d69b662)
1282
- - [393c3a5](https://github.com/GetStream/stream-chat-react/commit/393c3a5fb6d31bd5abf24af69b522a85f573e77f)
1283
-
1284
- Reason: Please check the changelog for [v1.6.1](https://github.com/GetStream/stream-chat-js/blob/master/CHANGELOG.md#march-27-2020---161) stream-chat-js
1285
-
1286
- ## [0.11.0](https://github.com/GetStream/stream-chat-react/releases/tag/v0.11.0) 2020-03-27
1287
-
1288
- - Improvements to reaction UX: Updating UI optimistically instead of waiting for reaction api
1289
- call to succeed
1290
- - [36f8fd0](https://github.com/GetStream/stream-chat-react/commit/36f8fd025f1f8f5bf8c825ba86c141893d69b662)
1291
- - [393c3a5](https://github.com/GetStream/stream-chat-react/commit/393c3a5fb6d31bd5abf24af69b522a85f573e77f)
1292
- - Fix for a bug: Flagging a message results in "`t is not a function`" error in console
1293
- - commit [d537e78](https://github.com/GetStream/stream-chat-react/commit/d537e787b624b11f8f97f90075afe6f824be025e)
1294
- - fixes issue [#181](https://github.com/GetStream/stream-chat-react/issues/181#issuecomment-604283175)
1295
- - Adding support for `additionalTextareaProps` prop in MessageInput component
1296
- - [5346f54](https://github.com/GetStream/stream-chat-react/commit/5346f548f9080d2b178b7ad215425361d433f95f)
1297
- - [a6719bb](https://github.com/GetStream/stream-chat-react/commit/a6719bb8dc0b9209c45653c5b6fe6fe0e5e8bf32)
1298
- - Filter out buggy emojis and updating emoji-mart [333ed77](https://github.com/GetStream/stream-chat-react/commit/333ed77ad7d4ebe5dbb2a80052ac3292eeb5e3ee)
1299
- - Displaying DateSeperator before deleted messages. So far we didn't show it [8ed3ca5](https://github.com/GetStream/stream-chat-react/commit/8ed3ca508cdb3561d645455c7529d9ea7dceea9f)
1300
- - Updating `stream-chat` version to 1.6.0 [d4b7c14](https://github.com/GetStream/stream-chat-react/commit/d4b7c143ae7e4d36fe8e76d1cf9fde78c1a1dc39)
1301
-
1302
- ## [0.10.2](https://github.com/GetStream/stream-chat-react/releases/tag/v0.10.2) 2020-03-26
1303
-
1304
- - Bug fix - making sure translators are ready before rendering Chat component [1b0c07a65b88075d14b038977d42138ec7fdaa21](https://github.com/GetStream/stream-chat-react/commit/1b0c07a65b88075d14b038977d42138ec7fdaa21) Fixes [#181](https://github.com/GetStream/stream-chat-react/issues/181)
1305
- - Fixing small styling issues with MessageInput
1306
- - [a17300e](https://github.com/GetStream/stream-chat-react/commit/a17300e5a9b8cdcf6ba03c6260679dda3269c812)
1307
- - [0f0bf0a](https://github.com/GetStream/stream-chat-react/commit/0f0bf0a304fdcea498878c9ab501dc18e63340d4)
1308
-
1309
- ## [0.10.1](https://github.com/GetStream/stream-chat-react/releases/tag/v0.10.1) 2020-03-25
1310
-
1311
- - Added missing i18next dependency to dependency list [c7cf11f](https://github.com/GetStream/stream-chat-react/commit/c7cf11f32b5a0346889534387adcb99e06f5d90d)
1312
-
1313
- ## [0.10.0](https://github.com/GetStream/stream-chat-react/releases/tag/v0.10.0) 2020-03-24
1314
-
1315
- - i18n support for library. Documentatio - https://getstream.github.io/stream-chat-react/#section-streami18n
1316
-
1317
- ## [0.9.0](https://github.com/GetStream/stream-chat-react/releases/tag/v0.9.0) 2020-03-21
1318
-
1319
- - 20% bundle size reduction (use day.js instead of moment.js)
1320
-
1321
- ## [0.8.8](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.8) 2020-03-20
1322
-
1323
- - Changing mute success notification to show name of user instead of id - [e5bab26](https://github.com/GetStream/stream-chat-react/commit/e5bab26958e9d3ff5ad53491ed5d964d02f95dab)
1324
- - Bug fix: Cancel button on giphy command in thread failed to remove message - [e592a4e](https://github.com/GetStream/stream-chat-react/commit/e592a4e8c8738cd61549b14a40dc317934777ce5)
1325
- - Fixing typing indicator to now show up when current user is typing - [c24dc7a](https://github.com/GetStream/stream-chat-react/commit/c24dc7a1ed0ec2b1dada780b32f899b00d59165a)
1326
- - Fixing moderator role check function in Message.js - [311fab9](https://github.com/GetStream/stream-chat-react/commit/311fab9efb5bd8ebd90b86c8ed1c2a86db62d6f7)
1327
-
1328
- ## [0.8.7](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.7) 2020-03-19
1329
-
1330
- - Fixed a bug where attachments got duplicated upon submitting an edited message [cb93b92](https://github.com/GetStream/stream-chat-react/commit/cb93b9274c94b1d813c2d061869251cc04f5f610)
1331
-
1332
- ## [0.8.6](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.6) 2020-03-17
1333
-
1334
- - Allow `~~test~~` double tilde for strikethrough in messages - [6870194](https://github.com/GetStream/stream-chat-react/commit/6870194a778f95b3c896d76fa4d4b39e3114c692)
1335
- - Fix issue where attachments got duplicated when editing messages - [eea7f61](https://github.com/GetStream/stream-chat-react/commit/eea7f61763359ca8b4dfb13feff294668455643d)
1336
-
1337
- ## [0.8.4](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.4) 2020-02-11
1338
-
1339
- - Fixing `EmptyStateIndicator` prop for ChannelList component - [20d1672](https://github.com/GetStream/stream-chat-react/commit/20d1672969f030bc8f948aea5955706c6dcf757a)
1340
-
1341
- ## [0.8.3](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.3) 2020-02-11
1342
-
1343
- - Fixing `LoadingIndicator` prop for InfiniteScrollPaginator component - [fb81d68](https://github.com/GetStream/stream-chat-react/commit/fb81d68deb2822b9cf2f0414a3d430b86277f024)
1344
-
1345
- ## [0.8.2](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.2) 2020-02-10
1346
-
1347
- - Fixing `LoadingIndicator` prop for ChannelList component - [e6e2e9f](https://github.com/GetStream/stream-chat-react/commit/e6e2e9fdd280d183b4378996c926e4540e467c17)
1348
- - Adding `LoadingErrorIndicator` prop for ChannelList component - [e6e2e9f](https://github.com/GetStream/stream-chat-react/commit/e6e2e9fdd280d183b4378996c926e4540e467c17)
1349
-
1350
- ## [0.8.1](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.1) 2020-02-07
1351
-
1352
- - Fixing broken typescript file [cc86f6f](https://github.com/GetStream/stream-chat-react/commit/cc86f6fea998e8581121c7da42870b0c5d316d8c)
1353
-
1354
- ## [0.8.0](https://github.com/GetStream/stream-chat-react/releases/tag/v0.8.0) 2020-02-07
1355
-
1356
- - Updated dependencies [dfe466d](https://github.com/GetStream/stream-chat-react/commit/dfe466d43e75b7213857fdf9a6e007ecfc3d4614)
1357
- - Exported all the components and updated typescript types - [41e478f](https://github.com/GetStream/stream-chat-react/commit/41e478fc1d37aad8994b9b1075ce9a576a1497f0)
1358
-
1359
- ## [0.7.20](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.20) 2020-01-14
1360
-
1361
- - When you change the filters prop on the ChannelList component this now we will refresh the channels with the new query
1362
-
1363
- ## [0.7.17](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.17) 2020-01-02
1364
-
1365
- - Added `maxRows` props to MessageInput component
1366
-
1367
- ## [0.7.16](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.16) 2020-01-02
1368
-
1369
- - Removed inline styles from multiple locations
1370
- - Exporting new component `ChatAutoComplete` (Advanced usage only)
1371
-
1372
- ## [0.7.15](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.15) 2019-12-30
1373
-
1374
- - Added the following props on the `Thread` component so the underlying MessageList, MessageInput and Message components can be customized using props:
1375
- - `additionalParentMessageProps`
1376
- - `additionalMessageListProps`
1377
- - `additionalMessageInputProps`
1378
- - Added the following props to the `Channel` component:
1379
- - `doUpdateMessageRequest` to override the update(edit) message request (Advanced usage only)
1380
- - `doSendMessageRequest` to override the send message request (Advanced usage only)
1381
-
1382
- ## [0.7.13](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.13) 2019-12-03
1383
-
1384
- - Handling and updating channel list on `channel.truncated` and `channel.deleted` event.
1385
-
1386
- ## [0.7.12](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.12) 2019-11-22
1387
-
1388
- - Adding prop `MessageSystem` to customize system messages
1389
-
1390
- ## [0.7.11](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.11) 2019-11-05
1391
-
1392
- - Fixed z-index issue on MessageInputLarge component https://github.com/GetStream/stream-chat-react/commit/f78b0bf6566fe587da62a8162ab5f1b3d799a10e
1393
-
1394
- ## [0.7.10](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.10) 2019-10-16
1395
-
1396
- - Added `customActiveChannel` prop on `ChannelList` to specify a custom channel to be moved to the top and set to active upon mounting.
1397
-
1398
- ## [0.7.9](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.9) 2019-10-16
1399
-
1400
- - Changing prop name for MessageSimple from openThread to handleOpenThread.
1401
- - Fixing scroll issue on messagelist. Related to issue [#67](https://github.com/GetStream/stream-chat-react/issues/67)
1402
-
1403
- ## [0.7.8](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.8) 2019-10-11
1404
-
1405
- - Bug fix with dateseperator in messagelist
1406
-
1407
- ## [0.7.7](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.7) 2019-10-11
1408
-
1409
- - Adding intro message to messagelist
1410
-
1411
- ## [0.7.6](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.6) 2019-10-08
1412
-
1413
- - Fixed unbinding of visibility listener
1414
-
1415
- ## [0.7.5](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.5) 2019-10-07
1416
-
1417
- - Updated js-client with fix for failing fileuploads
1418
-
1419
- ## [0.7.4](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.4) 2019-10-07
1420
-
1421
- - Fixed styling issues for SendButton
1422
-
1423
- ## [0.7.3](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.3) 2019-10-02
1424
-
1425
- - 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.
1426
-
1427
- ## [0.7.2](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.2) 2019-09-30
1428
-
1429
- - Updating js-client version
1430
-
1431
- ## [0.7.1](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.1) 2019-09-30
1432
-
1433
- - Fix - Adding typescript declaration files in production build
1434
-
1435
- ## [0.7.0](https://github.com/GetStream/stream-chat-react/releases/tag/v0.7.0) 2019-09-27
1436
-
1437
- - Adding typescript declaration file
1438
-
1439
- ## [0.6.27](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.27) 2019-09-20
1440
-
1441
- - Added `EmptyStateIndicator` prop to [ChannelList](https://getstream.github.io/stream-chat-react/#!/ChannelList) and [MessageList](https://getstream.github.io/stream-chat-react/#!/MessageList)
1442
- - Added `watchers` prop to [ChannelList](https://getstream.github.io/stream-chat-react/#!/ChannelList) to specify [watchers pagination query](https://getstream.io/chat/docs/#channel_pagination) on `setActiveChannel`, including this makes one extra query on selecting a channel from the ChannelList
1443
- - Updated react-images to version `1.0.0`
1444
-
1445
- ## [0.6.26](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.26) 2019-09-10
1446
-
1447
- - Add IE 11 support for MessageInput
1448
- - Fixing pagination issue when oldest message is not received yet
1449
- - Fixing issue that didn't display unread count correctly on initial load
1450
-
1451
- ## [0.6.25](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.25) 2019-09-05
1452
-
1453
- - The built in MessageInput components now use native emoji to create consistent rendering between the picker and the message
1454
-
1455
- ## [0.6.22](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.22) 2019-08-15
1456
-
1457
- - Adding support for loading error indicator
1458
- - Adding fallback as thumb_url for image attachments
1459
-
1460
- ## [0.6.21](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.21) 2019-08-05
1461
-
1462
- - Syncing and improvements in styleguide
1463
-
1464
- ## [0.6.19](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.19) 2019-07-31
1465
-
1466
- - Fix issue raised in 0.6.17
1467
-
1468
- ## [0.6.18](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.18) 2019-07-31
1469
-
1470
- - Improve message options UX in messaging theme
1471
-
1472
- ## [0.6.17](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.17) 2019-07-30
1473
-
1474
- - Export LoadingChannels component
1475
- - Fix connectivity issue with threads
1476
- - Better check for user roles
1477
-
1478
- ## [0.6.16](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.16) 2019-07-29
1479
-
1480
- - Adding visual response (notification) for flag message and mute user functionality
1481
- - Fixing broken mute user functionality
1482
-
1483
- ## [0.6.15](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.15) 2019-07-23
1484
-
1485
- - Fixing Message actions for livestream and team chat.
1486
- - Fixing flag/mute functionality. Earlier only admins were allowed to flag or mute the message. This was wrong. Every user should be able to
1487
- flag or mute any message (other than his own message)
1488
-
1489
- ## [0.6.14](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.14) 2019-07-20
1490
-
1491
- - Adding prop `messageActions` to MessageList
1492
-
1493
- ## [0.6.13](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.13) 2019-07-18
1494
-
1495
- - Adding prop function `onChannelUpdated` as callback for event `channel.updated`
1496
- - Bug fix - Channel list component doesn't update when custom data on channel is updated.
1497
-
1498
- ## [0.6.0](https://github.com/GetStream/stream-chat-react/releases/tag/v0.6.0) 2019-05-13
1499
-
1500
- - Added Pagination to ChannelList
1501
- - Standard pagination with Load More button (`LoadMorePaginator`)
1502
- - Also includes a infinte scroll paginator (`InfiniteScrollPaginator`)
1503
- - **Important** Because of this change we moved the channelquery logic to `ChannelList` this means you need to pass your `filters`, `sort`, and `options`.
1504
-
1505
- ## [0.3.11](https://github.com/GetStream/stream-chat-react/releases/tag/v0.3.11) - 2019-04-23
1506
-
1507
- ### Added
1508
-
1509
- - `MessageInput` and `Channel` now accept the following props
1510
- - `multipleUploads={false}`
1511
- - `acceptedFiles={['image/*']}`
1512
- - `maxNumberOfFiles={1}`
1513
-
1514
- ## [0.3.10](https://github.com/GetStream/stream-chat-react/releases/tag/v0.3.10) - 2019-04-19
1515
-
1516
- ### Added
1517
-
1518
- - Support for @mentions for @mention interactions `Channel` now accepts the following props
1519
- - `onMentionsHover={(event, user) => console.log(event, user)}`
1520
- - `onMentionsClick={(event, user) => console.log(event, user)}`