stream-chat-react 12.8.2 → 12.10.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 (52) hide show
  1. package/dist/components/Attachment/components/WaveProgressBar.js +1 -1
  2. package/dist/components/Attachment/hooks/useAudioController.d.ts +1 -1
  3. package/dist/components/Attachment/hooks/useAudioController.js +1 -1
  4. package/dist/components/AutoCompleteTextarea/Textarea.js +0 -4
  5. package/dist/components/AutoCompleteTextarea/utils.js +1 -5
  6. package/dist/components/Channel/Channel.js +3 -2
  7. package/dist/components/Channel/channelState.d.ts +1 -3
  8. package/dist/components/Channel/channelState.js +1 -1
  9. package/dist/components/Channel/hooks/useIsMounted.d.ts +1 -1
  10. package/dist/components/ChannelList/hooks/useChannelListShape.d.ts +3 -3
  11. package/dist/components/ChannelList/hooks/useChannelListShape.js +54 -47
  12. package/dist/components/ChannelList/hooks/useChannelMembershipState.d.ts +3 -2
  13. package/dist/components/ChannelList/hooks/useChannelMembershipState.js +6 -15
  14. package/dist/components/ChannelList/hooks/useMobileNavigation.d.ts +1 -1
  15. package/dist/components/ChannelList/hooks/usePaginatedChannels.js +1 -1
  16. package/dist/components/ChannelList/hooks/useSelectedChannelState.d.ts +11 -0
  17. package/dist/components/ChannelList/hooks/useSelectedChannelState.js +20 -0
  18. package/dist/components/ChannelList/utils.d.ts +16 -6
  19. package/dist/components/ChannelList/utils.js +44 -18
  20. package/dist/components/ChannelSearch/SearchBar.d.ts +1 -1
  21. package/dist/components/ChannelSearch/SearchInput.d.ts +1 -1
  22. package/dist/components/ChannelSearch/hooks/useChannelSearch.js +1 -1
  23. package/dist/components/Chat/hooks/useChat.js +1 -1
  24. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +2 -0
  25. package/dist/components/ChatAutoComplete/ChatAutoComplete.js +1 -1
  26. package/dist/components/Gallery/BaseImage.d.ts +1 -3
  27. package/dist/components/Gallery/Gallery.js +10 -2
  28. package/dist/components/Gallery/ModalGallery.js +5 -4
  29. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +4 -4
  30. package/dist/components/MessageActions/hooks/useMessageActionsBoxPopper.d.ts +1 -1
  31. package/dist/components/MessageInput/hooks/useMessageInputText.d.ts +1 -1
  32. package/dist/components/MessageInput/hooks/useMessageInputText.js +2 -2
  33. package/dist/components/MessageInput/hooks/useTimeElapsed.js +1 -1
  34. package/dist/components/MessageList/MessageList.js +0 -1
  35. package/dist/components/MessageList/VirtualizedMessageList.d.ts +1 -1
  36. package/dist/components/MessageList/VirtualizedMessageList.js +2 -2
  37. package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.js +1 -1
  38. package/dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.js +1 -1
  39. package/dist/components/MessageList/hooks/VirtualizedMessageList/useNewMessageNotification.d.ts +1 -1
  40. package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.js +2 -2
  41. package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.js +1 -1
  42. package/dist/components/MessageList/hooks/useMarkRead.d.ts +2 -4
  43. package/dist/components/MessageList/hooks/useMarkRead.js +14 -16
  44. package/dist/context/VirtualizedMessageListContext.d.ts +13 -0
  45. package/dist/context/VirtualizedMessageListContext.js +7 -0
  46. package/dist/experimental/index.browser.cjs.map +2 -2
  47. package/dist/experimental/index.node.cjs.map +2 -2
  48. package/dist/index.browser.cjs +721 -267
  49. package/dist/index.browser.cjs.map +4 -4
  50. package/dist/index.node.cjs +986 -286
  51. package/dist/index.node.cjs.map +4 -4
  52. package/package.json +17 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "12.8.2",
3
+ "version": "12.10.0",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -122,7 +122,6 @@
122
122
  "react-dropzone": "^14.2.3",
123
123
  "react-fast-compare": "^3.2.2",
124
124
  "react-image-gallery": "1.2.12",
125
- "react-is": "^18.1.0",
126
125
  "react-markdown": "^8.0.7",
127
126
  "react-player": "2.10.1",
128
127
  "react-popper": "^2.3.0",
@@ -132,7 +131,8 @@
132
131
  "textarea-caret": "^3.1.0",
133
132
  "tslib": "^2.6.2",
134
133
  "unist-builder": "^3.0.0",
135
- "unist-util-visit": "^5.0.0"
134
+ "unist-util-visit": "^5.0.0",
135
+ "use-sync-external-store": "^1.4.0"
136
136
  },
137
137
  "optionalDependencies": {
138
138
  "@stream-io/transliterate": "^1.5.5",
@@ -143,9 +143,9 @@
143
143
  "@emoji-mart/data": "^1.1.0",
144
144
  "@emoji-mart/react": "^1.1.0",
145
145
  "emoji-mart": "^5.4.0",
146
- "react": "^18.0.0 || ^17.0.0 || ^16.8.0",
147
- "react-dom": "^18.0.0 || ^17.0.0 || ^16.8.0",
148
- "stream-chat": "^8.46.1"
146
+ "react": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.8.0",
147
+ "react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.8.0",
148
+ "stream-chat": "^8.50.0"
149
149
  },
150
150
  "peerDependenciesMeta": {
151
151
  "@breezystack/lamejs": {
@@ -188,12 +188,12 @@
188
188
  "@semantic-release/git": "^10.0.1",
189
189
  "@stream-io/rollup-plugin-node-builtins": "^2.1.5",
190
190
  "@stream-io/stream-chat-css": "^5.6.0",
191
- "@testing-library/jest-dom": "^6.1.4",
192
- "@testing-library/react": "^13.1.1",
193
- "@testing-library/react-hooks": "^8.0.0",
191
+ "@testing-library/jest-dom": "^6.6.3",
192
+ "@testing-library/react": "^16.2.0",
194
193
  "@types/deep-equal": "^1.0.1",
195
194
  "@types/dotenv": "^8.2.0",
196
195
  "@types/hast": "^2.3.4",
196
+ "@types/jest": "^29.5.14",
197
197
  "@types/jsdom": "^21.1.5",
198
198
  "@types/linkifyjs": "^2.1.3",
199
199
  "@types/lodash.debounce": "^4.0.7",
@@ -202,11 +202,11 @@
202
202
  "@types/lodash.throttle": "^4.1.7",
203
203
  "@types/lodash.uniqby": "^4.7.7",
204
204
  "@types/moment": "^2.13.0",
205
- "@types/react": "^18.2.55",
206
- "@types/react-dom": "^18.2.19",
205
+ "@types/react": "^19.0.7",
206
+ "@types/react-dom": "^19.0.3",
207
207
  "@types/react-image-gallery": "^1.2.4",
208
- "@types/react-is": "^18.2.4",
209
208
  "@types/textarea-caret": "3.0.0",
209
+ "@types/use-sync-external-store": "^0.0.6",
210
210
  "@types/uuid": "^8.3.0",
211
211
  "@typescript-eslint/eslint-plugin": "5.62.0",
212
212
  "@typescript-eslint/parser": "5.62.0",
@@ -248,17 +248,16 @@
248
248
  "i18next-parser": "^6.0.0",
249
249
  "jest": "^29.7.0",
250
250
  "jest-axe": "^8.0.0",
251
- "jest-environment-jsdom": "^28.1.3",
251
+ "jest-environment-jsdom": "^29.7.0",
252
252
  "jsdom": "^24.1.1",
253
253
  "lint-staged": "^15.2.1",
254
254
  "moment-timezone": "^0.5.43",
255
255
  "prettier": "^2.2.0",
256
- "react": "^18.1.0",
257
- "react-dom": "^18.1.0",
258
- "react-test-renderer": "^18.1.0",
256
+ "react": "^19.0.0",
257
+ "react-dom": "^19.0.0",
259
258
  "semantic-release": "^19.0.5",
260
- "stream-chat": "^8.47.1",
261
- "ts-jest": "^29.1.4",
259
+ "stream-chat": "^8.50.0",
260
+ "ts-jest": "^29.2.5",
262
261
  "typescript": "^5.4.5"
263
262
  },
264
263
  "scripts": {