stream-chat-react 11.8.0 → 11.9.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 (354) hide show
  1. package/dist/{Window-7c2f264c.js → Window-5e0717c0.js} +1275 -132
  2. package/dist/browser.full-bundle.js +1402 -164
  3. package/dist/browser.full-bundle.js.map +1 -1
  4. package/dist/browser.full-bundle.min.js +4 -4
  5. package/dist/browser.full-bundle.min.js.map +1 -1
  6. package/dist/components/Attachment/Attachment.d.ts +1 -1
  7. package/dist/components/Attachment/Attachment.d.ts.map +1 -1
  8. package/dist/components/Attachment/AttachmentActions.d.ts +2 -1
  9. package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
  10. package/dist/components/Attachment/AttachmentContainer.d.ts +9 -9
  11. package/dist/components/Attachment/AttachmentContainer.d.ts.map +1 -1
  12. package/dist/components/Attachment/Audio.d.ts +3 -3
  13. package/dist/components/Attachment/Audio.d.ts.map +1 -1
  14. package/dist/components/Attachment/Card.d.ts +3 -2
  15. package/dist/components/Attachment/Card.d.ts.map +1 -1
  16. package/dist/components/Attachment/DownloadButton.d.ts +2 -1
  17. package/dist/components/Attachment/DownloadButton.d.ts.map +1 -1
  18. package/dist/components/Attachment/FileAttachment.d.ts +2 -1
  19. package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
  20. package/dist/components/Attachment/FileSizeIndicator.d.ts +2 -1
  21. package/dist/components/Attachment/FileSizeIndicator.d.ts.map +1 -1
  22. package/dist/components/Attachment/UnsupportedAttachment.d.ts +2 -1
  23. package/dist/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
  24. package/dist/components/Attachment/icons.d.ts +4 -3
  25. package/dist/components/Attachment/icons.d.ts.map +1 -1
  26. package/dist/components/Attachment/utils.d.ts +8 -8
  27. package/dist/components/Attachment/utils.d.ts.map +1 -1
  28. package/dist/components/AutoCompleteTextarea/Header.d.ts +2 -1
  29. package/dist/components/AutoCompleteTextarea/Header.d.ts.map +1 -1
  30. package/dist/components/AutoCompleteTextarea/List.d.ts +2 -1
  31. package/dist/components/AutoCompleteTextarea/List.d.ts.map +1 -1
  32. package/dist/components/AutoCompleteTextarea/Textarea.d.ts +2 -2
  33. package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
  34. package/dist/components/Avatar/Avatar.d.ts +1 -1
  35. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  36. package/dist/components/Channel/Channel.d.ts +2 -2
  37. package/dist/components/Channel/Channel.d.ts.map +1 -1
  38. package/dist/components/Channel/Channel.js +58 -52
  39. package/dist/components/Channel/LoadingChannel.d.ts +2 -1
  40. package/dist/components/Channel/LoadingChannel.d.ts.map +1 -1
  41. package/dist/components/ChannelHeader/ChannelHeader.d.ts +1 -1
  42. package/dist/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
  43. package/dist/components/ChannelHeader/ChannelHeader.js +1 -1
  44. package/dist/components/ChannelHeader/icons.d.ts +2 -1
  45. package/dist/components/ChannelHeader/icons.d.ts.map +1 -1
  46. package/dist/components/ChannelList/ChannelList.d.ts +1 -1
  47. package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
  48. package/dist/components/ChannelList/ChannelListMessenger.d.ts +1 -1
  49. package/dist/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
  50. package/dist/components/ChannelList/ChannelListMessenger.js +3 -1
  51. package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
  52. package/dist/components/ChannelList/hooks/usePaginatedChannels.js +1 -3
  53. package/dist/components/ChannelPreview/ChannelPreview.d.ts +1 -1
  54. package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  55. package/dist/components/ChannelPreview/ChannelPreview.js +11 -8
  56. package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -1
  57. package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
  58. package/dist/components/ChannelPreview/utils.d.ts +2 -1
  59. package/dist/components/ChannelPreview/utils.d.ts.map +1 -1
  60. package/dist/components/ChannelSearch/ChannelSearch.d.ts +1 -1
  61. package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
  62. package/dist/components/ChannelSearch/SearchBar.d.ts +1 -1
  63. package/dist/components/ChannelSearch/SearchBar.d.ts.map +1 -1
  64. package/dist/components/ChannelSearch/SearchInput.d.ts +1 -1
  65. package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
  66. package/dist/components/ChannelSearch/SearchResults.d.ts +1 -1
  67. package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
  68. package/dist/components/ChannelSearch/SearchResults.js +2 -1
  69. package/dist/components/ChannelSearch/icons.d.ts +5 -4
  70. package/dist/components/ChannelSearch/icons.d.ts.map +1 -1
  71. package/dist/components/Chat/Chat.d.ts +1 -1
  72. package/dist/components/Chat/Chat.d.ts.map +1 -1
  73. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +1 -1
  74. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts.map +1 -1
  75. package/dist/components/ChatDown/ChatDown.d.ts +1 -1
  76. package/dist/components/ChatDown/ChatDown.d.ts.map +1 -1
  77. package/dist/components/ChatDown/icons.d.ts +2 -1
  78. package/dist/components/ChatDown/icons.d.ts.map +1 -1
  79. package/dist/components/CommandItem/CommandItem.d.ts +2 -2
  80. package/dist/components/CommandItem/CommandItem.d.ts.map +1 -1
  81. package/dist/components/DateSeparator/DateSeparator.d.ts +2 -1
  82. package/dist/components/DateSeparator/DateSeparator.d.ts.map +1 -1
  83. package/dist/components/Emojis/EmojiPicker.d.ts +1 -1
  84. package/dist/components/Emojis/EmojiPicker.d.ts.map +1 -1
  85. package/dist/components/Emojis/EmojiPicker.js +1 -1
  86. package/dist/components/Emojis/index.cjs.js +4 -4
  87. package/dist/components/EmoticonItem/EmoticonItem.d.ts +2 -1
  88. package/dist/components/EmoticonItem/EmoticonItem.d.ts.map +1 -1
  89. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +2 -1
  90. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts.map +1 -1
  91. package/dist/components/EmptyStateIndicator/icons.d.ts +2 -1
  92. package/dist/components/EmptyStateIndicator/icons.d.ts.map +1 -1
  93. package/dist/components/EventComponent/EventComponent.d.ts +1 -1
  94. package/dist/components/EventComponent/EventComponent.d.ts.map +1 -1
  95. package/dist/components/Gallery/BaseImage.d.ts +2 -2
  96. package/dist/components/Gallery/BaseImage.d.ts.map +1 -1
  97. package/dist/components/Gallery/Gallery.d.ts +2 -2
  98. package/dist/components/Gallery/Gallery.d.ts.map +1 -1
  99. package/dist/components/Gallery/Image.d.ts +2 -2
  100. package/dist/components/Gallery/Image.d.ts.map +1 -1
  101. package/dist/components/Gallery/ModalGallery.d.ts +2 -1
  102. package/dist/components/Gallery/ModalGallery.d.ts.map +1 -1
  103. package/dist/components/LoadMore/LoadMoreButton.d.ts +1 -1
  104. package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
  105. package/dist/components/LoadMore/LoadMoreButton.js +1 -1
  106. package/dist/components/LoadMore/LoadMorePaginator.d.ts +2 -2
  107. package/dist/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
  108. package/dist/components/Loading/LoadingChannels.d.ts +1 -1
  109. package/dist/components/Loading/LoadingChannels.d.ts.map +1 -1
  110. package/dist/components/Loading/LoadingErrorIndicator.d.ts +2 -1
  111. package/dist/components/Loading/LoadingErrorIndicator.d.ts.map +1 -1
  112. package/dist/components/Loading/LoadingIndicator.d.ts +2 -1
  113. package/dist/components/Loading/LoadingIndicator.d.ts.map +1 -1
  114. package/dist/components/MML/MML.d.ts +2 -1
  115. package/dist/components/MML/MML.d.ts.map +1 -1
  116. package/dist/components/Message/FixedHeightMessage.d.ts +2 -1
  117. package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
  118. package/dist/components/Message/Message.d.ts +2 -1
  119. package/dist/components/Message/Message.d.ts.map +1 -1
  120. package/dist/components/Message/MessageDeleted.d.ts +2 -1
  121. package/dist/components/Message/MessageDeleted.d.ts.map +1 -1
  122. package/dist/components/Message/MessageErrorText.d.ts +2 -2
  123. package/dist/components/Message/MessageErrorText.d.ts.map +1 -1
  124. package/dist/components/Message/MessageOptions.d.ts +1 -1
  125. package/dist/components/Message/MessageOptions.d.ts.map +1 -1
  126. package/dist/components/Message/MessageOptions.js +5 -3
  127. package/dist/components/Message/MessageRepliesCountButton.d.ts +2 -2
  128. package/dist/components/Message/MessageRepliesCountButton.d.ts.map +1 -1
  129. package/dist/components/Message/MessageSimple.d.ts +2 -1
  130. package/dist/components/Message/MessageSimple.d.ts.map +1 -1
  131. package/dist/components/Message/MessageStatus.d.ts +1 -1
  132. package/dist/components/Message/MessageStatus.d.ts.map +1 -1
  133. package/dist/components/Message/MessageText.d.ts +2 -1
  134. package/dist/components/Message/MessageText.d.ts.map +1 -1
  135. package/dist/components/Message/MessageTimestamp.d.ts +2 -1
  136. package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
  137. package/dist/components/Message/QuotedMessage.d.ts +2 -1
  138. package/dist/components/Message/QuotedMessage.d.ts.map +1 -1
  139. package/dist/components/Message/icons.d.ts +11 -10
  140. package/dist/components/Message/icons.d.ts.map +1 -1
  141. package/dist/components/Message/renderText/componentRenderers/Anchor.d.ts +2 -2
  142. package/dist/components/Message/renderText/componentRenderers/Anchor.d.ts.map +1 -1
  143. package/dist/components/Message/renderText/componentRenderers/Emoji.d.ts +2 -1
  144. package/dist/components/Message/renderText/componentRenderers/Emoji.d.ts.map +1 -1
  145. package/dist/components/Message/renderText/componentRenderers/Mention.d.ts +2 -2
  146. package/dist/components/Message/renderText/componentRenderers/Mention.d.ts.map +1 -1
  147. package/dist/components/Message/renderText/renderText.d.ts +2 -2
  148. package/dist/components/Message/renderText/renderText.d.ts.map +1 -1
  149. package/dist/components/MessageActions/CustomMessageActionsList.d.ts +2 -1
  150. package/dist/components/MessageActions/CustomMessageActionsList.d.ts.map +1 -1
  151. package/dist/components/MessageActions/MessageActions.d.ts +1 -1
  152. package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
  153. package/dist/components/MessageActions/MessageActions.js +3 -1
  154. package/dist/components/MessageActions/MessageActionsBox.d.ts +1 -1
  155. package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
  156. package/dist/components/MessageActions/MessageActionsBox.js +1 -1
  157. package/dist/components/MessageBounce/MessageBounceModal.d.ts +2 -2
  158. package/dist/components/MessageBounce/MessageBounceModal.d.ts.map +1 -1
  159. package/dist/components/MessageBounce/MessageBouncePrompt.d.ts +2 -1
  160. package/dist/components/MessageBounce/MessageBouncePrompt.d.ts.map +1 -1
  161. package/dist/components/MessageInput/AttachmentPreviewList.d.ts +3 -2
  162. package/dist/components/MessageInput/AttachmentPreviewList.d.ts.map +1 -1
  163. package/dist/components/MessageInput/CooldownTimer.d.ts +1 -1
  164. package/dist/components/MessageInput/CooldownTimer.d.ts.map +1 -1
  165. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts +1 -1
  166. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
  167. package/dist/components/MessageInput/DropzoneProvider.d.ts +1 -1
  168. package/dist/components/MessageInput/DropzoneProvider.d.ts.map +1 -1
  169. package/dist/components/MessageInput/EditMessageForm.d.ts +2 -1
  170. package/dist/components/MessageInput/EditMessageForm.d.ts.map +1 -1
  171. package/dist/components/MessageInput/LinkPreviewList.d.ts +2 -1
  172. package/dist/components/MessageInput/LinkPreviewList.d.ts.map +1 -1
  173. package/dist/components/MessageInput/MessageInput.d.ts +1 -1
  174. package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
  175. package/dist/components/MessageInput/MessageInputFlat.d.ts +2 -1
  176. package/dist/components/MessageInput/MessageInputFlat.d.ts.map +1 -1
  177. package/dist/components/MessageInput/MessageInputFlat.js +1 -1
  178. package/dist/components/MessageInput/MessageInputSmall.d.ts +2 -1
  179. package/dist/components/MessageInput/MessageInputSmall.d.ts.map +1 -1
  180. package/dist/components/MessageInput/QuotedMessagePreview.d.ts +3 -2
  181. package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
  182. package/dist/components/MessageInput/QuotedMessagePreview.js +1 -1
  183. package/dist/components/MessageInput/UploadsPreview.d.ts +2 -1
  184. package/dist/components/MessageInput/UploadsPreview.d.ts.map +1 -1
  185. package/dist/components/MessageInput/icons.d.ts +14 -14
  186. package/dist/components/MessageInput/icons.d.ts.map +1 -1
  187. package/dist/components/MessageInput/icons.js +2 -1
  188. package/dist/components/MessageList/ConnectionStatus.d.ts +1 -1
  189. package/dist/components/MessageList/ConnectionStatus.d.ts.map +1 -1
  190. package/dist/components/MessageList/CustomNotification.d.ts +2 -2
  191. package/dist/components/MessageList/CustomNotification.d.ts.map +1 -1
  192. package/dist/components/MessageList/GiphyPreviewMessage.d.ts +2 -1
  193. package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
  194. package/dist/components/MessageList/MessageList.d.ts +7 -3
  195. package/dist/components/MessageList/MessageList.d.ts.map +1 -1
  196. package/dist/components/MessageList/MessageList.js +3 -2
  197. package/dist/components/MessageList/MessageListMainPanel.d.ts +2 -1
  198. package/dist/components/MessageList/MessageListMainPanel.d.ts.map +1 -1
  199. package/dist/components/MessageList/MessageListNotifications.d.ts +1 -1
  200. package/dist/components/MessageList/MessageListNotifications.d.ts.map +1 -1
  201. package/dist/components/MessageList/MessageNotification.d.ts +1 -1
  202. package/dist/components/MessageList/MessageNotification.d.ts.map +1 -1
  203. package/dist/components/MessageList/ScrollToBottomButton.d.ts +2 -1
  204. package/dist/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
  205. package/dist/components/MessageList/ScrollToBottomButton.js +44 -3
  206. package/dist/components/MessageList/UnreadMessagesNotification.d.ts +12 -1
  207. package/dist/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
  208. package/dist/components/MessageList/UnreadMessagesNotification.js +4 -2
  209. package/dist/components/MessageList/UnreadMessagesSeparator.d.ts +9 -1
  210. package/dist/components/MessageList/UnreadMessagesSeparator.d.ts.map +1 -1
  211. package/dist/components/MessageList/UnreadMessagesSeparator.js +2 -2
  212. package/dist/components/MessageList/VirtualizedMessageList.d.ts +7 -3
  213. package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
  214. package/dist/components/MessageList/VirtualizedMessageList.js +4 -3
  215. package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +6 -6
  216. package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
  217. package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.d.ts +2 -1
  218. package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.d.ts.map +1 -1
  219. package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.js +27 -13
  220. package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.d.ts +3 -1
  221. package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.d.ts.map +1 -1
  222. package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.js +13 -7
  223. package/dist/components/MessageList/hooks/useMarkRead.d.ts +3 -2
  224. package/dist/components/MessageList/hooks/useMarkRead.d.ts.map +1 -1
  225. package/dist/components/MessageList/hooks/useMarkRead.js +65 -11
  226. package/dist/components/MessageList/icons.d.ts +4 -3
  227. package/dist/components/MessageList/icons.d.ts.map +1 -1
  228. package/dist/components/MessageList/renderMessages.d.ts +2 -2
  229. package/dist/components/MessageList/renderMessages.d.ts.map +1 -1
  230. package/dist/components/Modal/Modal.d.ts +1 -1
  231. package/dist/components/Modal/Modal.d.ts.map +1 -1
  232. package/dist/components/Modal/Modal.js +9 -7
  233. package/dist/components/Modal/icons.d.ts +2 -1
  234. package/dist/components/Modal/icons.d.ts.map +1 -1
  235. package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts +1 -1
  236. package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts.map +1 -1
  237. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts +12 -12
  238. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts.map +1 -1
  239. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts +18 -18
  240. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts.map +1 -1
  241. package/dist/components/ReactFileUtilities/FilePreviewer.d.ts +2 -1
  242. package/dist/components/ReactFileUtilities/FilePreviewer.d.ts.map +1 -1
  243. package/dist/components/ReactFileUtilities/FileUploadButton.d.ts +2 -2
  244. package/dist/components/ReactFileUtilities/FileUploadButton.d.ts.map +1 -1
  245. package/dist/components/ReactFileUtilities/FileUploadButton.js +3 -1
  246. package/dist/components/ReactFileUtilities/IconButton.d.ts +2 -2
  247. package/dist/components/ReactFileUtilities/IconButton.d.ts.map +1 -1
  248. package/dist/components/ReactFileUtilities/IconButton.js +3 -1
  249. package/dist/components/ReactFileUtilities/ImageDropzone.d.ts +2 -2
  250. package/dist/components/ReactFileUtilities/ImageDropzone.d.ts.map +1 -1
  251. package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts +2 -2
  252. package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts.map +1 -1
  253. package/dist/components/ReactFileUtilities/ImagePreviewer.js +3 -1
  254. package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts +2 -2
  255. package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts.map +1 -1
  256. package/dist/components/ReactFileUtilities/ImageUploadButton.js +3 -1
  257. package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts +2 -1
  258. package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts.map +1 -1
  259. package/dist/components/ReactFileUtilities/Thumbnail.d.ts +2 -2
  260. package/dist/components/ReactFileUtilities/Thumbnail.d.ts.map +1 -1
  261. package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts +2 -1
  262. package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts.map +1 -1
  263. package/dist/components/ReactFileUtilities/UploadButton.d.ts +2 -2
  264. package/dist/components/ReactFileUtilities/UploadButton.d.ts.map +1 -1
  265. package/dist/components/ReactFileUtilities/icons/AttachmentIcon.d.ts +2 -1
  266. package/dist/components/ReactFileUtilities/icons/AttachmentIcon.d.ts.map +1 -1
  267. package/dist/components/ReactFileUtilities/icons/CloseIcon.d.ts +2 -1
  268. package/dist/components/ReactFileUtilities/icons/CloseIcon.d.ts.map +1 -1
  269. package/dist/components/ReactFileUtilities/icons/FilePlaceholderIcon.d.ts +2 -2
  270. package/dist/components/ReactFileUtilities/icons/FilePlaceholderIcon.d.ts.map +1 -1
  271. package/dist/components/ReactFileUtilities/icons/PictureIcon.d.ts +2 -1
  272. package/dist/components/ReactFileUtilities/icons/PictureIcon.d.ts.map +1 -1
  273. package/dist/components/ReactFileUtilities/icons/RetryIcon.d.ts +2 -1
  274. package/dist/components/ReactFileUtilities/icons/RetryIcon.d.ts.map +1 -1
  275. package/dist/components/Reactions/ReactionsList.d.ts +2 -1
  276. package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
  277. package/dist/components/Reactions/ReactionsList.js +3 -1
  278. package/dist/components/Reactions/ReactionsListModal.d.ts +2 -2
  279. package/dist/components/Reactions/ReactionsListModal.d.ts.map +1 -1
  280. package/dist/components/Reactions/ReactionsListModal.js +2 -2
  281. package/dist/components/Reactions/SimpleReactionsList.d.ts +2 -1
  282. package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
  283. package/dist/components/Reactions/SpriteImage.d.ts +2 -1
  284. package/dist/components/Reactions/SpriteImage.d.ts.map +1 -1
  285. package/dist/components/Reactions/SpriteImage.js +3 -17
  286. package/dist/components/Reactions/StreamEmoji.d.ts +1 -1
  287. package/dist/components/Reactions/StreamEmoji.d.ts.map +1 -1
  288. package/dist/components/Reactions/StreamEmoji.js +3 -1
  289. package/dist/components/Reactions/hooks/useFetchReactions.js +2 -2
  290. package/dist/components/SafeAnchor/SafeAnchor.d.ts +2 -2
  291. package/dist/components/SafeAnchor/SafeAnchor.d.ts.map +1 -1
  292. package/dist/components/SafeAnchor/SafeAnchor.js +3 -1
  293. package/dist/components/Thread/Thread.d.ts +1 -1
  294. package/dist/components/Thread/Thread.d.ts.map +1 -1
  295. package/dist/components/Thread/ThreadHead.d.ts +2 -1
  296. package/dist/components/Thread/ThreadHead.d.ts.map +1 -1
  297. package/dist/components/Thread/ThreadHeader.d.ts +1 -1
  298. package/dist/components/Thread/ThreadHeader.d.ts.map +1 -1
  299. package/dist/components/Thread/ThreadHeader.js +1 -1
  300. package/dist/components/Thread/ThreadStart.d.ts +2 -1
  301. package/dist/components/Thread/ThreadStart.d.ts.map +1 -1
  302. package/dist/components/Thread/icons.d.ts +2 -1
  303. package/dist/components/Thread/icons.d.ts.map +1 -1
  304. package/dist/components/Tooltip/Tooltip.d.ts +2 -2
  305. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  306. package/dist/components/TypingIndicator/TypingIndicator.d.ts +1 -1
  307. package/dist/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
  308. package/dist/components/UserItem/UserItem.d.ts +1 -1
  309. package/dist/components/UserItem/UserItem.d.ts.map +1 -1
  310. package/dist/components/Window/Window.d.ts +1 -1
  311. package/dist/components/Window/Window.d.ts.map +1 -1
  312. package/dist/context/ChannelActionContext.d.ts +4 -3
  313. package/dist/context/ChannelActionContext.d.ts.map +1 -1
  314. package/dist/context/ChannelListContext.d.ts +1 -1
  315. package/dist/context/ChannelListContext.d.ts.map +1 -1
  316. package/dist/context/ChannelStateContext.d.ts +2 -2
  317. package/dist/context/ChannelStateContext.d.ts.map +1 -1
  318. package/dist/context/ChatContext.d.ts +2 -2
  319. package/dist/context/ChatContext.d.ts.map +1 -1
  320. package/dist/context/ComponentContext.d.ts +2 -2
  321. package/dist/context/ComponentContext.d.ts.map +1 -1
  322. package/dist/context/MessageBounceContext.d.ts +2 -2
  323. package/dist/context/MessageBounceContext.d.ts.map +1 -1
  324. package/dist/context/MessageContext.d.ts +2 -2
  325. package/dist/context/MessageContext.d.ts.map +1 -1
  326. package/dist/context/MessageInputContext.d.ts +1 -1
  327. package/dist/context/MessageInputContext.d.ts.map +1 -1
  328. package/dist/context/MessageListContext.d.ts +1 -1
  329. package/dist/context/MessageListContext.d.ts.map +1 -1
  330. package/dist/context/TranslationContext.d.ts +2 -2
  331. package/dist/context/TranslationContext.d.ts.map +1 -1
  332. package/dist/context/TypingContext.d.ts +2 -2
  333. package/dist/context/TypingContext.d.ts.map +1 -1
  334. package/dist/css/v2/index.css +1 -1
  335. package/dist/css/v2/index.layout.css +1 -1
  336. package/dist/i18n/Streami18n.d.ts +19 -0
  337. package/dist/i18n/Streami18n.d.ts.map +1 -1
  338. package/dist/i18n/de.json +19 -0
  339. package/dist/i18n/en.json +19 -0
  340. package/dist/i18n/es.json +19 -0
  341. package/dist/i18n/fr.json +19 -0
  342. package/dist/i18n/hi.json +19 -0
  343. package/dist/i18n/it.json +19 -0
  344. package/dist/i18n/ja.json +19 -0
  345. package/dist/i18n/ko.json +19 -0
  346. package/dist/i18n/nl.json +19 -0
  347. package/dist/i18n/pt.json +19 -0
  348. package/dist/i18n/ru.json +19 -0
  349. package/dist/i18n/tr.json +19 -0
  350. package/dist/index.cjs.js +117 -40
  351. package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +15 -1
  352. package/dist/version.d.ts +1 -1
  353. package/dist/version.js +1 -1
  354. package/package.json +7 -6
@@ -35,5 +35,5 @@ export type AttachmentProps<StreamChatGenerics extends DefaultStreamChatGenerics
35
35
  /**
36
36
  * A component used for rendering message attachments. By default, the component supports: AttachmentActions, Audio, Card, File, Gallery, Image, and Video
37
37
  */
38
- export declare const Attachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AttachmentProps<StreamChatGenerics>) => JSX.Element;
38
+ export declare const Attachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AttachmentProps<StreamChatGenerics>) => React.JSX.Element;
39
39
  //# sourceMappingURL=Attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAqBlE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAUnE,eAAO,MAAM,uBAAuB,gFAQ1B,CAAC;AAEX,MAAM,MAAM,eAAe,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,oJAAoJ;IACpJ,WAAW,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACpD,wJAAwJ;IACxJ,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,oOAAoO;IACpO,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACpF,kNAAkN;IAClN,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,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from 'react';
1
2
  import type { Action, Attachment } from 'stream-chat';
2
3
  import type { ActionHandlerReturnType } from '../Message/hooks/useActionHandler';
3
4
  import type { DefaultStreamChatGenerics } from '../../types/types';
@@ -14,5 +15,5 @@ export type AttachmentActionsProps<StreamChatGenerics extends DefaultStreamChatG
14
15
  /**
15
16
  * A component for rendering the actions you can take on an attachment.
16
17
  */
17
- export declare const AttachmentActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AttachmentActionsProps<StreamChatGenerics>) => JSX.Element;
18
+ export declare const AttachmentActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AttachmentActionsProps<StreamChatGenerics>) => React.JSX.Element;
18
19
  //# sourceMappingURL=AttachmentActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentActions.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentActions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAItD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,sBAAsB,CAChC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,UAAU,CAAC,kBAAkB,CAAC,GAAG;IACnC,wBAAwB;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+HAA+H;IAC/H,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAoCF;;GAEG;AACH,eAAO,MAAM,iBAAiB,sJAES,CAAC"}
1
+ {"version":3,"file":"AttachmentActions.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAItD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,sBAAsB,CAChC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,UAAU,CAAC,kBAAkB,CAAC,GAAG;IACnC,wBAAwB;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+HAA+H;IAC/H,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAoCF;;GAEG;AACH,eAAO,MAAM,iBAAiB,4JAES,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { AttachmentContainerProps, RenderAttachmentProps, RenderGalleryProps } from './utils';
3
3
  import type { DefaultStreamChatGenerics } from '../../types/types';
4
- export declare const AttachmentWithinContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, children, componentType, }: React.PropsWithChildren<AttachmentContainerProps<StreamChatGenerics>>) => JSX.Element;
5
- export declare const AttachmentActionsContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ actionHandler, attachment, AttachmentActions, }: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element | null;
6
- export declare const GalleryContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, Gallery, }: RenderGalleryProps<StreamChatGenerics>) => JSX.Element;
7
- export declare const ImageContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
8
- export declare const CardContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
9
- export declare const FileContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, File, }: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element | null;
10
- export declare const AudioContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, Audio, }: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
11
- export declare const MediaContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
12
- export declare const UnsupportedAttachmentContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, UnsupportedAttachment, }: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
4
+ export declare const AttachmentWithinContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, children, componentType, }: React.PropsWithChildren<AttachmentContainerProps<StreamChatGenerics>>) => React.JSX.Element;
5
+ export declare const AttachmentActionsContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ actionHandler, attachment, AttachmentActions, }: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element | null;
6
+ export declare const GalleryContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, Gallery, }: RenderGalleryProps<StreamChatGenerics>) => React.JSX.Element;
7
+ export declare const ImageContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
8
+ export declare const CardContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
9
+ export declare const FileContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, File, }: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element | null;
10
+ export declare const AudioContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, Audio, }: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
11
+ export declare const MediaContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
12
+ export declare const UnsupportedAttachmentContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, UnsupportedAttachment, }: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
13
13
  //# sourceMappingURL=AttachmentContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqC,MAAM,OAAO,CAAC;AAYpF,OAAO,EACL,wBAAwB,EAGxB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAIjB,OAAO,KAAK,EACV,yBAAyB,EAG1B,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,yBAAyB,oNA+BrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,wMAkBtC,CAAC;AAqBF,eAAO,MAAM,gBAAgB,qKAwC5B,CAAC;AAEF,eAAO,MAAM,cAAc,qJA0C1B,CAAC;AAEF,eAAO,MAAM,aAAa,qJAwBzB,CAAC;AAEF,eAAO,MAAM,aAAa,4KAazB,CAAC;AACF,eAAO,MAAM,cAAc,sKAW1B,CAAC;AAEF,eAAO,MAAM,cAAc,qJAwD1B,CAAC;AAEF,eAAO,MAAM,8BAA8B,sLAS1C,CAAC"}
1
+ {"version":3,"file":"AttachmentContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqC,MAAM,OAAO,CAAC;AAYpF,OAAO,EACL,wBAAwB,EAGxB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAIjB,OAAO,KAAK,EACV,yBAAyB,EAG1B,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,yBAAyB,0NA+BrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,8MAkBtC,CAAC;AAqBF,eAAO,MAAM,gBAAgB,2KAwC5B,CAAC;AAEF,eAAO,MAAM,cAAc,2JA0C1B,CAAC;AAEF,eAAO,MAAM,aAAa,2JAwBzB,CAAC;AAEF,eAAO,MAAM,aAAa,kLAazB,CAAC;AACF,eAAO,MAAM,cAAc,4KAW1B,CAAC;AAEF,eAAO,MAAM,cAAc,2JAwD1B,CAAC;AAEF,eAAO,MAAM,8BAA8B,4LAS1C,CAAC"}
@@ -8,14 +8,14 @@ type PlayButtonProps = {
8
8
  isPlaying: boolean;
9
9
  onClick: () => void;
10
10
  };
11
- export declare const PlayButton: ({ isPlaying, onClick }: PlayButtonProps) => JSX.Element;
11
+ export declare const PlayButton: ({ isPlaying, onClick }: PlayButtonProps) => React.JSX.Element;
12
12
  type ProgressBarProps = {
13
13
  progress: number;
14
14
  } & Pick<React.ComponentProps<'div'>, 'onClick'>;
15
- export declare const ProgressBar: ({ onClick, progress }: ProgressBarProps) => JSX.Element;
15
+ export declare const ProgressBar: ({ onClick, progress }: ProgressBarProps) => React.JSX.Element;
16
16
  /**
17
17
  * Audio attachment with play/pause button and progress bar
18
18
  */
19
- export declare const Audio: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AudioProps<StreamChatGenerics>) => JSX.Element;
19
+ export declare const Audio: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AudioProps<StreamChatGenerics>) => React.JSX.Element;
20
20
  export {};
21
21
  //# sourceMappingURL=Audio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Audio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAU9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,UAAU,CACpB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,EAAE,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACpC,CAAC;AA+DF,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,2BAA4B,eAAe,gBAQjE,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AAEjD,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,gBAsBlE,CAAC;AA2CF;;GAEG;AACH,eAAO,MAAM,KAAK,0IAAwD,CAAC"}
1
+ {"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Audio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAU9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,UAAU,CACpB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,EAAE,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACpC,CAAC;AA+DF,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,UAAU,2BAA4B,eAAe,sBAQjE,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AAEjD,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,sBAsBlE,CAAC;AA2CF;;GAEG;AACH,eAAO,MAAM,KAAK,gJAAwD,CAAC"}
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import { AudioProps } from './Audio';
2
3
  import type { RenderAttachmentProps } from './utils';
3
- export declare const CardAudio: ({ og: { asset_url, author_name, og_scrape_url, text, title, title_link }, }: AudioProps) => JSX.Element;
4
+ export declare const CardAudio: ({ og: { asset_url, author_name, og_scrape_url, text, title, title_link }, }: AudioProps) => React.JSX.Element;
4
5
  export type CardProps = RenderAttachmentProps['attachment'];
5
6
  /**
6
7
  * Simple Card Layout for displaying links
7
8
  */
8
- export declare const Card: (props: CardProps) => JSX.Element;
9
+ export declare const Card: (props: CardProps) => React.JSX.Element;
9
10
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Card.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAA2B,MAAM,SAAS,CAAC;AAU9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA2MrD,eAAO,MAAM,SAAS,gFAEnB,UAAU,gBA8BZ,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;AAQ5D;;GAEG;AACH,eAAO,MAAM,IAAI,UATc,SAAS,gBAS+B,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAA2B,MAAM,SAAS,CAAC;AAU9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA2MrD,eAAO,MAAM,SAAS,gFAEnB,UAAU,sBA8BZ,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;AAQ5D;;GAEG;AACH,eAAO,MAAM,IAAI,UATc,SAAS,sBAS+B,CAAC"}
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  type DownloadButtonProps = {
2
3
  assetUrl?: string;
3
4
  };
4
- export declare const DownloadButton: ({ assetUrl }: DownloadButtonProps) => JSX.Element;
5
+ export declare const DownloadButton: ({ assetUrl }: DownloadButtonProps) => React.JSX.Element;
5
6
  export {};
6
7
  //# sourceMappingURL=DownloadButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DownloadButton.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/DownloadButton.tsx"],"names":[],"mappings":"AAKA,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,iBAAkB,mBAAmB,gBAS/D,CAAC"}
1
+ {"version":3,"file":"DownloadButton.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/DownloadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,iBAAkB,mBAAmB,sBAS/D,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { Attachment } from 'stream-chat';
2
3
  import type { DefaultStreamChatGenerics } from '../../types/types';
3
4
  export type FileAttachmentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
5
  attachment: Attachment<StreamChatGenerics>;
5
6
  };
6
- export declare const FileAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, }: FileAttachmentProps<StreamChatGenerics>) => JSX.Element;
7
+ export declare const FileAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, }: FileAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
7
8
  //# sourceMappingURL=FileAttachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileAttachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/FileAttachment.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAmDF,eAAO,MAAM,cAAc,6JAES,CAAC"}
1
+ {"version":3,"file":"FileAttachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/FileAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAmDF,eAAO,MAAM,cAAc,mKAES,CAAC"}
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  type FileSizeIndicatorProps = {
2
3
  fileSize?: number;
3
4
  };
4
- export declare const FileSizeIndicator: ({ fileSize }: FileSizeIndicatorProps) => JSX.Element | null;
5
+ export declare const FileSizeIndicator: ({ fileSize }: FileSizeIndicatorProps) => React.JSX.Element | null;
5
6
  export {};
6
7
  //# sourceMappingURL=FileSizeIndicator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileSizeIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/FileSizeIndicator.tsx"],"names":[],"mappings":"AAGA,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBAAkB,sBAAsB,uBAMrE,CAAC"}
1
+ {"version":3,"file":"FileSizeIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/FileSizeIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBAAkB,sBAAsB,6BAMrE,CAAC"}
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import type { Attachment } from 'stream-chat';
2
3
  import type { DefaultStreamChatGenerics } from '../../types/types';
3
4
  export type UnsupportedAttachmentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
5
  attachment: Attachment<StreamChatGenerics>;
5
6
  };
6
- export declare const UnsupportedAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, }: UnsupportedAttachmentProps<StreamChatGenerics>) => JSX.Element;
7
+ export declare const UnsupportedAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ attachment, }: UnsupportedAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
7
8
  export declare const NullComponent: () => null;
8
9
  //# sourceMappingURL=UnsupportedAttachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnsupportedAttachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/UnsupportedAttachment.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,0BAA0B,CACpC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,oKAWjC,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,CAAC"}
1
+ {"version":3,"file":"UnsupportedAttachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/UnsupportedAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,0BAA0B,CACpC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,0KAWjC,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,CAAC"}
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  import type { IconProps } from '../../types/types';
2
- export declare const DownloadIcon: ({ className }: IconProps) => JSX.Element;
3
- export declare const PlayTriangleIcon: () => JSX.Element;
4
- export declare const PauseIcon: () => JSX.Element;
3
+ export declare const DownloadIcon: ({ className }: IconProps) => React.JSX.Element;
4
+ export declare const PlayTriangleIcon: () => React.JSX.Element;
5
+ export declare const PauseIcon: () => React.JSX.Element;
5
6
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/icons.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,YAAY,kBAAmB,SAAS,gBAepD,CAAC;AAEF,eAAO,MAAM,gBAAgB,mBAI5B,CAAC;AAEF,eAAO,MAAM,SAAS,mBAIrB,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,YAAY,kBAAmB,SAAS,sBAepD,CAAC;AAEF,eAAO,MAAM,gBAAgB,yBAI5B,CAAC;AAEF,eAAO,MAAM,SAAS,yBAIrB,CAAC"}
@@ -31,40 +31,40 @@ export declare const isSvgAttachment: (attachment: Attachment) => boolean;
31
31
  * @deprecated will be removed in the next major release,
32
32
  * replaced with the proper component equivalent `AttachmentContainer/AttachmentWithinContainer`
33
33
  */
34
- export declare const renderAttachmentWithinContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: React.PropsWithChildren<AttachmentContainerProps<StreamChatGenerics>>) => JSX.Element;
34
+ export declare const renderAttachmentWithinContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: React.PropsWithChildren<AttachmentContainerProps<StreamChatGenerics>>) => React.JSX.Element;
35
35
  /**
36
36
  * @deprecated will be removed in the next major release,
37
37
  * replaced with the proper component equivalent `AttachmentContainer/AttachmentActionsContainer`
38
38
  */
39
- export declare const renderAttachmentActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element | null;
39
+ export declare const renderAttachmentActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element | null;
40
40
  /**
41
41
  * @deprecated will be removed in the next major release,
42
42
  * replaced with the proper component equivalent `AttachmentContainer/GalleryContainer`
43
43
  */
44
- export declare const renderGallery: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderGalleryProps<StreamChatGenerics>) => JSX.Element;
44
+ export declare const renderGallery: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderGalleryProps<StreamChatGenerics>) => React.JSX.Element;
45
45
  /**
46
46
  * @deprecated will be removed in the next major release,
47
47
  * replaced with the proper component equivalent `AttachmentContainer/ImageContainer`
48
48
  */
49
- export declare const renderImage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
49
+ export declare const renderImage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
50
50
  /**
51
51
  * @deprecated will be removed in the next major release,
52
52
  * replaced with the proper component equivalent `AttachmentContainer/CardContainer`
53
53
  */
54
- export declare const renderCard: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
54
+ export declare const renderCard: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
55
55
  /**
56
56
  * @deprecated will be removed in the next major release,
57
57
  * replaced with the proper component equivalent `AttachmentContainer/FileContainer`
58
58
  */
59
- export declare const renderFile: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element | null;
59
+ export declare const renderFile: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element | null;
60
60
  /**
61
61
  * @deprecated will be removed in the next major release,
62
62
  * replaced with the proper component equivalent `AttachmentContainer/AudioContainer`
63
63
  */
64
- export declare const renderAudio: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
64
+ export declare const renderAudio: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
65
65
  /**
66
66
  * @deprecated will be removed in the next major release,
67
67
  * replaced with the proper component equivalent `AttachmentContainer/MediaContainer`
68
68
  */
69
- export declare const renderMedia: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
69
+ export declare const renderMedia: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => React.JSX.Element;
70
70
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAO5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,uBAAuB,UAA8D,CAAC;AAEnG,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAE7E,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,uBAAuB,EAAE,SAAS,EAA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| ':' | T;
2
3
  export type SuggestionListHeaderProps = {
3
4
  currentTrigger: CurrentTrigger;
4
5
  value: string;
5
6
  };
6
- export declare const DefaultSuggestionListHeader: (props: SuggestionListHeaderProps) => JSX.Element | null;
7
+ export declare const DefaultSuggestionListHeader: (props: SuggestionListHeaderProps) => React.JSX.Element | null;
7
8
  //# sourceMappingURL=Header.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Header.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;AAE5E,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,EAAE,cAAc,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,2BAA2B,UAAW,yBAAyB,uBAgC3E,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;AAE5E,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,EAAE,cAAc,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,2BAA2B,UAAW,yBAAyB,6BAgC3E,CAAC"}
@@ -14,5 +14,6 @@ export function List({ className, component, currentTrigger, dropdownScroll, get
14
14
  SuggestionItem: any;
15
15
  value: any;
16
16
  values: any;
17
- }): JSX.Element;
17
+ }): React.JSX.Element;
18
+ import React from "react";
18
19
  //# sourceMappingURL=List.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/List.jsx"],"names":[],"mappings":"AAUO;;;;;;;;;;;;;;;;gBA+JN"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/List.jsx"],"names":[],"mappings":"AAUO;;;;;;;;;;;;;;;;sBA+JN"}
@@ -77,8 +77,8 @@ export class ReactTextareaAutocomplete extends React.Component<any, any, any> {
77
77
  };
78
78
  setDropdownRef: (element: any) => void;
79
79
  dropdownRef: any;
80
- renderSuggestionListContainer(): JSX.Element | null;
81
- render(): JSX.Element;
80
+ renderSuggestionListContainer(): React.JSX.Element | null;
81
+ render(): React.JSX.Element;
82
82
  textareaRef: HTMLTextAreaElement | null | undefined;
83
83
  }
84
84
  export namespace ReactTextareaAutocomplete {
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Textarea.jsx"],"names":[],"mappings":"AAmBA;IACE;;;;;;;MAOE;IA8WF;;OAEG;IACH;;;aAMC;IArXD,wBA6BC;IAbC;;;;;;;;;;;;MAYC;IAIH;;;aAOE;IAGF,2BAOE;IAEF,8CAKE;IAEF,+BAIE;IAEF;;;;;;OAMG;IACH,8CAC6E;IAE7E,qCAUE;IAEF,+BAcE;IAEF,qBAQE;IAEF,kCA6BE;IAEF,mCAqEE;IAEF,qEAuBE;IAEF,sEA2DE;IAEF,uDAQE;IAEF,mCA0CE;IAEF,6CAQE;IAYF;;OAEG;IACH,+BAQE;IAEF;;MA6CE;IAEF,mCAME;IAEF,iCA+EE;IAEF,iCASE;IAGF,yCA0BE;IAEF,6BAAmD;IAEnD,qCAiBE;IAEF;;;;;;;;MAoCE;IAEF,uCAEE;IADA,iBAA0B;IAG5B,oDA6CC;IAED,sBA6EC;IATS,oDAAsB;CAUjC"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Textarea.jsx"],"names":[],"mappings":"AAmBA;IACE;;;;;;;MAOE;IA8WF;;OAEG;IACH;;;aAMC;IArXD,wBA6BC;IAbC;;;;;;;;;;;;MAYC;IAIH;;;aAOE;IAGF,2BAOE;IAEF,8CAKE;IAEF,+BAIE;IAEF;;;;;;OAMG;IACH,8CAC6E;IAE7E,qCAUE;IAEF,+BAcE;IAEF,qBAQE;IAEF,kCA6BE;IAEF,mCAqEE;IAEF,qEAuBE;IAEF,sEA2DE;IAEF,uDAQE;IAEF,mCA0CE;IAEF,6CAQE;IAYF;;OAEG;IACH,+BAQE;IAEF;;MA6CE;IAEF,mCAME;IAEF,iCA+EE;IAEF,iCASE;IAGF,yCA0BE;IAEF,6BAAmD;IAEnD,qCAiBE;IAEF;;;;;;;;MAoCE;IAEF,uCAEE;IADA,iBAA0B;IAG5B,0DA6CC;IAED,4BA6EC;IATS,oDAAsB;CAUjC"}
@@ -24,5 +24,5 @@ export type AvatarProps<StreamChatGenerics extends DefaultStreamChatGenerics = D
24
24
  /**
25
25
  * A round avatar image with fallback to username's first letter
26
26
  */
27
- export declare const Avatar: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AvatarProps<StreamChatGenerics>) => JSX.Element;
27
+ export declare const Avatar: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AvatarProps<StreamChatGenerics>) => React.JSX.Element;
28
28
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,WAAW,CACrB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,yFAAyF;IACzF,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C;IACxC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,IAAI,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,iJA8DlB,CAAC"}
@@ -109,7 +109,7 @@ type ChannelPropsForwardedToComponentContext<StreamChatGenerics extends DefaultS
109
109
  export type ChannelProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger> = ChannelPropsForwardedToComponentContext<StreamChatGenerics> & {
110
110
  /** List of accepted file types */
111
111
  acceptedFiles?: string[];
112
- /** Custom handler function that runs when the active channel has unread messages (i.e., when chat is running in a separate browser tab) */
112
+ /** Custom handler function that runs when the active channel has unread messages and the app is running on a separate browser tab */
113
113
  activeUnreadHandler?: (unread: number, documentTitle: string) => void;
114
114
  /** The connected and active channel */
115
115
  channel?: StreamChannel<StreamChatGenerics>;
@@ -177,6 +177,6 @@ export type ChannelProps<StreamChatGenerics extends DefaultStreamChatGenerics =
177
177
  * - [ComponentContext](https://getstream.io/chat/docs/sdk/react/contexts/component_context/)
178
178
  * - [TypingContext](https://getstream.io/chat/docs/sdk/react/contexts/typing_context/)
179
179
  */
180
- export declare const Channel: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>(props: React.PropsWithChildren<ChannelProps<StreamChatGenerics, V>>) => JSX.Element;
180
+ export declare const Channel: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>(props: React.PropsWithChildren<ChannelProps<StreamChatGenerics, V>>) => React.JSX.Element;
181
181
  export {};
182
182
  //# sourceMappingURL=Channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAC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,CAAC;IACxD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,yIAAyI;IACzI,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iFAAiF;IACjF,eAAe,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;IACtD,iFAAiF;IACjF,eAAe,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;IACtD,6IAA6I;IAC7I,yBAAyB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;IACrE,qEAAqE;IACrE,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,mJAAmJ;IACnJ,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,4EAA4E;IAC5E,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;CACzD,CAAC;AA87BF;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,uNAA4D,CAAC"}
@@ -61,62 +61,69 @@ var ChannelInner = function (props) {
61
61
  var _l = useState(channel.getConfig()), channelConfig = _l[0], setChannelConfig = _l[1];
62
62
  var _m = useState([]), notifications = _m[0], setNotifications = _m[1];
63
63
  var _o = useState(), quotedMessage = _o[0], setQuotedMessage = _o[1];
64
- var _p = useState(), channelUnreadUiState = _p[0], setChannelUnreadUiState = _p[1];
64
+ var _p = useState(), channelUnreadUiState = _p[0], _setChannelUnreadUiState = _p[1];
65
65
  var notificationTimeouts = [];
66
66
  var _q = useReducer(channelReducer, __assign(__assign({}, initialState), { loading: !channel.initialized })), state = _q[0], dispatch = _q[1];
67
67
  var isMounted = useIsMounted();
68
68
  var originalTitle = useRef('');
69
- var lastRead = useRef(new Date());
69
+ var lastRead = useRef();
70
70
  var online = useRef(true);
71
71
  var channelCapabilitiesArray = (_a = channel.data) === null || _a === void 0 ? void 0 : _a.own_capabilities;
72
72
  var throttledCopyStateFromChannel = throttle(function () { return dispatch({ channel: channel, type: 'copyStateFromChannelOnEvent' }); }, 500, {
73
73
  leading: true,
74
74
  trailing: true,
75
75
  });
76
- // eslint-disable-next-line react-hooks/exhaustive-deps
77
- var markRead = useCallback(throttle(function (options) { return __awaiter(void 0, void 0, void 0, function () {
78
- var _a, updateChannelUiUnreadState, markReadResponse, e_1;
79
- return __generator(this, function (_b) {
80
- switch (_b.label) {
81
- case 0:
82
- _a = (options !== null && options !== void 0 ? options : {}).updateChannelUiUnreadState, updateChannelUiUnreadState = _a === void 0 ? true : _a;
83
- if (channel.disconnected || !(channelConfig === null || channelConfig === void 0 ? void 0 : channelConfig.read_events)) {
84
- return [2 /*return*/];
85
- }
86
- lastRead.current = new Date();
87
- _b.label = 1;
88
- case 1:
89
- _b.trys.push([1, 5, , 6]);
90
- if (!doMarkReadRequest) return [3 /*break*/, 2];
91
- doMarkReadRequest(channel, updateChannelUiUnreadState ? setChannelUnreadUiState : undefined);
92
- return [3 /*break*/, 4];
93
- case 2: return [4 /*yield*/, channel.markRead()];
94
- case 3:
95
- markReadResponse = _b.sent();
96
- if (updateChannelUiUnreadState && markReadResponse) {
97
- setChannelUnreadUiState({
98
- last_read: lastRead.current,
99
- last_read_message_id: markReadResponse.event.last_read_message_id,
100
- unread_messages: 0,
101
- });
102
- }
103
- _b.label = 4;
104
- case 4:
105
- if (activeUnreadHandler) {
106
- activeUnreadHandler(0, originalTitle.current);
107
- }
108
- else if (originalTitle.current) {
109
- document.title = originalTitle.current;
110
- }
111
- return [3 /*break*/, 6];
112
- case 5:
113
- e_1 = _b.sent();
114
- console.error(t('Failed to mark channel as read'));
115
- return [3 /*break*/, 6];
116
- case 6: return [2 /*return*/];
117
- }
76
+ var setChannelUnreadUiState = useMemo(function () {
77
+ return throttle(_setChannelUnreadUiState, 200, {
78
+ leading: true,
79
+ trailing: false,
118
80
  });
119
- }); }, 500, { leading: true, trailing: false }), [activeUnreadHandler, channel, channelConfig, doMarkReadRequest, t]);
81
+ }, []);
82
+ var markRead = useMemo(function () {
83
+ return throttle(function (options) { return __awaiter(void 0, void 0, void 0, function () {
84
+ var _a, updateChannelUiUnreadState, markReadResponse, e_1;
85
+ return __generator(this, function (_b) {
86
+ switch (_b.label) {
87
+ case 0:
88
+ _a = (options !== null && options !== void 0 ? options : {}).updateChannelUiUnreadState, updateChannelUiUnreadState = _a === void 0 ? true : _a;
89
+ if (channel.disconnected || !(channelConfig === null || channelConfig === void 0 ? void 0 : channelConfig.read_events)) {
90
+ return [2 /*return*/];
91
+ }
92
+ lastRead.current = new Date();
93
+ _b.label = 1;
94
+ case 1:
95
+ _b.trys.push([1, 5, , 6]);
96
+ if (!doMarkReadRequest) return [3 /*break*/, 2];
97
+ doMarkReadRequest(channel, updateChannelUiUnreadState ? setChannelUnreadUiState : undefined);
98
+ return [3 /*break*/, 4];
99
+ case 2: return [4 /*yield*/, channel.markRead()];
100
+ case 3:
101
+ markReadResponse = _b.sent();
102
+ if (updateChannelUiUnreadState && markReadResponse) {
103
+ _setChannelUnreadUiState({
104
+ last_read: lastRead.current,
105
+ last_read_message_id: markReadResponse.event.last_read_message_id,
106
+ unread_messages: 0,
107
+ });
108
+ }
109
+ _b.label = 4;
110
+ case 4:
111
+ if (activeUnreadHandler) {
112
+ activeUnreadHandler(0, originalTitle.current);
113
+ }
114
+ else if (originalTitle.current) {
115
+ document.title = originalTitle.current;
116
+ }
117
+ return [3 /*break*/, 6];
118
+ case 5:
119
+ e_1 = _b.sent();
120
+ console.error(t('Failed to mark channel as read'));
121
+ return [3 /*break*/, 6];
122
+ case 6: return [2 /*return*/];
123
+ }
124
+ });
125
+ }); }, 500, { leading: true, trailing: false });
126
+ }, [activeUnreadHandler, channel, channelConfig, doMarkReadRequest, setChannelUnreadUiState, t]);
120
127
  var handleEvent = function (event) { return __awaiter(void 0, void 0, void 0, function () {
121
128
  var mainChannelUpdated, unread, messageDate, cid, oldestID;
122
129
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -139,10 +146,7 @@ var ChannelInner = function (props) {
139
146
  online.current = event.online;
140
147
  }
141
148
  if (event.type === 'message.new') {
142
- mainChannelUpdated = true;
143
- if (((_a = event.message) === null || _a === void 0 ? void 0 : _a.parent_id) && !((_b = event.message) === null || _b === void 0 ? void 0 : _b.show_in_channel)) {
144
- mainChannelUpdated = false;
145
- }
149
+ mainChannelUpdated = !((_a = event.message) === null || _a === void 0 ? void 0 : _a.parent_id) || ((_b = event.message) === null || _b === void 0 ? void 0 : _b.show_in_channel);
146
150
  if (mainChannelUpdated) {
147
151
  if (document.hidden && (channelConfig === null || channelConfig === void 0 ? void 0 : channelConfig.read_events) && !channel.muteStatus().muted) {
148
152
  unread = channel.countUnread(lastRead.current);
@@ -184,7 +188,7 @@ var ChannelInner = function (props) {
184
188
  _k.label = 2;
185
189
  case 2:
186
190
  if (event.type === 'notification.mark_unread')
187
- setChannelUnreadUiState(function (prev) {
191
+ _setChannelUnreadUiState(function (prev) {
188
192
  var _a;
189
193
  if (!(event.last_read_at && event.user))
190
194
  return prev;
@@ -253,7 +257,7 @@ var ChannelInner = function (props) {
253
257
  });
254
258
  if (((_g = client.user) === null || _g === void 0 ? void 0 : _g.id) && channel.state.read[client.user.id]) {
255
259
  _c = channel.state.read[client.user.id], user = _c.user, ownReadState = __rest(_c, ["user"]);
256
- setChannelUnreadUiState(ownReadState);
260
+ _setChannelUnreadUiState(ownReadState);
257
261
  }
258
262
  /**
259
263
  * TODO: maybe pass last_read to the countUnread method to get proper value
@@ -449,7 +453,7 @@ var ChannelInner = function (props) {
449
453
  return __generator(this, function (_b) {
450
454
  switch (_b.label) {
451
455
  case 0:
452
- if (!client.user)
456
+ if (!(client.user && (channelUnreadUiState === null || channelUnreadUiState === void 0 ? void 0 : channelUnreadUiState.unread_messages)))
453
457
  return [2 /*return*/];
454
458
  if (!(channelUnreadUiState === null || channelUnreadUiState === void 0 ? void 0 : channelUnreadUiState.last_read_message_id)) {
455
459
  addNotification(t('Failed to jump to the first unread message'), 'error');
@@ -729,6 +733,7 @@ var ChannelInner = function (props) {
729
733
  removeMessage: removeMessage,
730
734
  retrySendMessage: retrySendMessage,
731
735
  sendMessage: sendMessage,
736
+ setChannelUnreadUiState: setChannelUnreadUiState,
732
737
  setQuotedMessage: setQuotedMessage,
733
738
  skipMessageDataMemoization: skipMessageDataMemoization,
734
739
  updateMessage: updateMessage,
@@ -746,6 +751,7 @@ var ChannelInner = function (props) {
746
751
  jumpToFirstUnreadMessage,
747
752
  jumpToMessage,
748
753
  jumpToLatestMessage,
754
+ setChannelUnreadUiState,
749
755
  ]);
750
756
  var componentContextValue = useMemo(function () {
751
757
  var _a;
@@ -1,2 +1,3 @@
1
- export declare const LoadingChannel: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const LoadingChannel: () => React.JSX.Element;
2
3
  //# sourceMappingURL=LoadingChannel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingChannel.d.ts","sourceRoot":"","sources":["../../../src/components/Channel/LoadingChannel.tsx"],"names":[],"mappings":"AAgCA,eAAO,MAAM,cAAc,mBAU1B,CAAC"}
1
+ {"version":3,"file":"LoadingChannel.d.ts","sourceRoot":"","sources":["../../../src/components/Channel/LoadingChannel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgC1B,eAAO,MAAM,cAAc,yBAU1B,CAAC"}
@@ -16,5 +16,5 @@ export type ChannelHeaderProps = {
16
16
  /**
17
17
  * The ChannelHeader component renders some basic information about a Channel.
18
18
  */
19
- export declare const ChannelHeader: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelHeaderProps) => JSX.Element;
19
+ export declare const ChannelHeader: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ChannelHeaderProps) => React.JSX.Element;
20
20
  //# sourceMappingURL=ChannelHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChannelHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ChannelHeader/ChannelHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAA2B,MAAM,WAAW,CAAC;AAOjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,4LAA4L;IAC5L,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC1C,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0KAA0K;IAC1K,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AA6DF;;GAEG;AACH,eAAO,MAAM,aAAa,4FA3DjB,kBAAkB,gBA2DuE,CAAC"}
1
+ {"version":3,"file":"ChannelHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ChannelHeader/ChannelHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAA2B,MAAM,WAAW,CAAC;AAOjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,4LAA4L;IAC5L,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC1C,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0KAA0K;IAC1K,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAiEF;;GAEG;AACH,eAAO,MAAM,aAAa,4FA/DjB,kBAAkB,sBA+DuE,CAAC"}
@@ -17,7 +17,7 @@ var UnMemoizedChannelHeader = function (props) {
17
17
  }), displayImage = _d.displayImage, displayTitle = _d.displayTitle;
18
18
  var _e = (channel === null || channel === void 0 ? void 0 : channel.data) || {}, member_count = _e.member_count, subtitle = _e.subtitle;
19
19
  return (React.createElement("div", { className: 'str-chat__header-livestream str-chat__channel-header' },
20
- React.createElement("button", { "aria-label": 'Menu', className: 'str-chat__header-hamburger', onClick: openMobileNav },
20
+ React.createElement("button", { "aria-label": t('aria/Menu'), className: 'str-chat__header-hamburger', onClick: openMobileNav },
21
21
  React.createElement(MenuIcon, null)),
22
22
  React.createElement(Avatar, { image: displayImage, name: displayTitle, shape: 'rounded', size: (channel === null || channel === void 0 ? void 0 : channel.type) === 'commerce' ? 60 : 40 }),
23
23
  React.createElement("div", { className: 'str-chat__header-livestream-left str-chat__channel-header-end' },