stream-chat-react 11.0.0 → 11.1.1

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 (348) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.full-bundle.js +1106 -1937
  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 +1 -1
  9. package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
  10. package/dist/components/Attachment/Audio.d.ts +3 -3
  11. package/dist/components/Attachment/Audio.d.ts.map +1 -1
  12. package/dist/components/Attachment/Audio.js +1 -1
  13. package/dist/components/Attachment/Card.d.ts +1 -1
  14. package/dist/components/Attachment/Card.d.ts.map +1 -1
  15. package/dist/components/Attachment/DownloadButton.d.ts +1 -1
  16. package/dist/components/Attachment/DownloadButton.d.ts.map +1 -1
  17. package/dist/components/Attachment/FileAttachment.d.ts +1 -1
  18. package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
  19. package/dist/components/Attachment/FileSizeIndicator.d.ts +1 -1
  20. package/dist/components/Attachment/FileSizeIndicator.d.ts.map +1 -1
  21. package/dist/components/Attachment/UnsupportedAttachment.d.ts +1 -1
  22. package/dist/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
  23. package/dist/components/Attachment/utils.d.ts +6 -6
  24. package/dist/components/Attachment/utils.d.ts.map +1 -1
  25. package/dist/components/AutoCompleteTextarea/Header.d.ts +2 -2
  26. package/dist/components/AutoCompleteTextarea/Header.d.ts.map +1 -1
  27. package/dist/components/Avatar/Avatar.d.ts +1 -1
  28. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  29. package/dist/components/Channel/Channel.d.ts +5 -3
  30. package/dist/components/Channel/Channel.d.ts.map +1 -1
  31. package/dist/components/Channel/Channel.js +1 -0
  32. package/dist/components/Channel/channelState.d.ts +2 -2
  33. package/dist/components/Channel/channelState.d.ts.map +1 -1
  34. package/dist/components/Channel/hooks/useEditMessageHandler.d.ts +1 -1
  35. package/dist/components/Channel/hooks/useEditMessageHandler.d.ts.map +1 -1
  36. package/dist/components/Channel/hooks/useMentionsHandlers.d.ts +1 -1
  37. package/dist/components/Channel/hooks/useMentionsHandlers.d.ts.map +1 -1
  38. package/dist/components/ChannelHeader/ChannelHeader.d.ts +1 -1
  39. package/dist/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
  40. package/dist/components/ChannelList/ChannelList.d.ts +1 -1
  41. package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
  42. package/dist/components/ChannelList/ChannelList.js +2 -1
  43. package/dist/components/ChannelList/ChannelListMessenger.d.ts +1 -1
  44. package/dist/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
  45. package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
  46. package/dist/components/ChannelList/hooks/usePaginatedChannels.js +2 -2
  47. package/dist/components/ChannelList/utils.d.ts +1 -1
  48. package/dist/components/ChannelList/utils.d.ts.map +1 -1
  49. package/dist/components/ChannelPreview/ChannelPreview.d.ts +2 -2
  50. package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  51. package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts +1 -1
  52. package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts.map +1 -1
  53. package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.d.ts +1 -1
  54. package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.d.ts.map +1 -1
  55. package/dist/components/ChannelSearch/ChannelSearch.d.ts +2 -2
  56. package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
  57. package/dist/components/ChannelSearch/SearchBar.d.ts +4 -4
  58. package/dist/components/ChannelSearch/SearchBar.d.ts.map +1 -1
  59. package/dist/components/ChannelSearch/SearchInput.d.ts +3 -3
  60. package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
  61. package/dist/components/ChannelSearch/SearchResults.d.ts +6 -6
  62. package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
  63. package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts +5 -5
  64. package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts.map +1 -1
  65. package/dist/components/ChannelSearch/utils.d.ts +1 -1
  66. package/dist/components/ChannelSearch/utils.d.ts.map +1 -1
  67. package/dist/components/Chat/Chat.d.ts +2 -2
  68. package/dist/components/Chat/Chat.d.ts.map +1 -1
  69. package/dist/components/Chat/Chat.js +1 -3
  70. package/dist/components/Chat/hooks/useChannelsQueryState.d.ts +1 -1
  71. package/dist/components/Chat/hooks/useChannelsQueryState.d.ts.map +1 -1
  72. package/dist/components/Chat/hooks/useChat.d.ts +1 -3
  73. package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
  74. package/dist/components/Chat/hooks/useChat.js +4 -7
  75. package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  76. package/dist/components/Chat/hooks/useCreateChatContext.js +1 -5
  77. package/dist/components/Chat/hooks/useCustomStyles.d.ts +2 -2
  78. package/dist/components/Chat/hooks/useCustomStyles.d.ts.map +1 -1
  79. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +6 -6
  80. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts.map +1 -1
  81. package/dist/components/ChatDown/ChatDown.d.ts +1 -1
  82. package/dist/components/ChatDown/ChatDown.d.ts.map +1 -1
  83. package/dist/components/CommandItem/CommandItem.d.ts +1 -1
  84. package/dist/components/CommandItem/CommandItem.d.ts.map +1 -1
  85. package/dist/components/DateSeparator/DateSeparator.d.ts +1 -1
  86. package/dist/components/DateSeparator/DateSeparator.d.ts.map +1 -1
  87. package/dist/components/Emojis/EmojiPicker.d.ts +1 -1
  88. package/dist/components/Emojis/EmojiPicker.d.ts.map +1 -1
  89. package/dist/components/Emojis/index.cjs.js +1 -1
  90. package/dist/components/EmoticonItem/EmoticonItem.d.ts +1 -1
  91. package/dist/components/EmoticonItem/EmoticonItem.d.ts.map +1 -1
  92. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +1 -1
  93. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts.map +1 -1
  94. package/dist/components/EventComponent/EventComponent.d.ts +1 -1
  95. package/dist/components/EventComponent/EventComponent.d.ts.map +1 -1
  96. package/dist/components/Gallery/BaseImage.d.ts +6 -0
  97. package/dist/components/Gallery/BaseImage.d.ts.map +1 -0
  98. package/dist/components/Gallery/BaseImage.js +20 -0
  99. package/dist/components/Gallery/Gallery.d.ts +1 -1
  100. package/dist/components/Gallery/Gallery.d.ts.map +1 -1
  101. package/dist/components/Gallery/Gallery.js +4 -2
  102. package/dist/components/Gallery/Image.d.ts +1 -1
  103. package/dist/components/Gallery/Image.d.ts.map +1 -1
  104. package/dist/components/Gallery/Image.js +3 -2
  105. package/dist/components/Gallery/ModalGallery.d.ts +1 -1
  106. package/dist/components/Gallery/ModalGallery.d.ts.map +1 -1
  107. package/dist/components/Gallery/ModalGallery.js +3 -1
  108. package/dist/components/Gallery/index.d.ts +1 -0
  109. package/dist/components/Gallery/index.d.ts.map +1 -1
  110. package/dist/components/Gallery/index.js +1 -0
  111. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +1 -1
  112. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
  113. package/dist/components/LoadMore/LoadMoreButton.d.ts +1 -1
  114. package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
  115. package/dist/components/LoadMore/LoadMorePaginator.d.ts +1 -1
  116. package/dist/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
  117. package/dist/components/Loading/LoadingErrorIndicator.d.ts +1 -1
  118. package/dist/components/Loading/LoadingErrorIndicator.d.ts.map +1 -1
  119. package/dist/components/Loading/LoadingIndicator.d.ts +1 -1
  120. package/dist/components/Loading/LoadingIndicator.d.ts.map +1 -1
  121. package/dist/components/MML/MML.d.ts +1 -1
  122. package/dist/components/MML/MML.d.ts.map +1 -1
  123. package/dist/components/Message/FixedHeightMessage.d.ts +1 -1
  124. package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
  125. package/dist/components/Message/MessageDeleted.d.ts +1 -1
  126. package/dist/components/Message/MessageDeleted.d.ts.map +1 -1
  127. package/dist/components/Message/MessageOptions.d.ts +1 -1
  128. package/dist/components/Message/MessageOptions.d.ts.map +1 -1
  129. package/dist/components/Message/MessageRepliesCountButton.d.ts +1 -1
  130. package/dist/components/Message/MessageRepliesCountButton.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 +1 -1
  134. package/dist/components/Message/MessageText.d.ts.map +1 -1
  135. package/dist/components/Message/MessageTimestamp.d.ts +1 -1
  136. package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
  137. package/dist/components/Message/hooks/useActionHandler.d.ts +2 -2
  138. package/dist/components/Message/hooks/useActionHandler.d.ts.map +1 -1
  139. package/dist/components/Message/hooks/useDeleteHandler.d.ts +1 -1
  140. package/dist/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
  141. package/dist/components/Message/hooks/useEditHandler.d.ts +1 -1
  142. package/dist/components/Message/hooks/useEditHandler.d.ts.map +1 -1
  143. package/dist/components/Message/hooks/useFlagHandler.d.ts +1 -1
  144. package/dist/components/Message/hooks/useFlagHandler.d.ts.map +1 -1
  145. package/dist/components/Message/hooks/useMentionsHandler.d.ts +2 -2
  146. package/dist/components/Message/hooks/useMentionsHandler.d.ts.map +1 -1
  147. package/dist/components/Message/hooks/useMuteHandler.d.ts +1 -1
  148. package/dist/components/Message/hooks/useMuteHandler.d.ts.map +1 -1
  149. package/dist/components/Message/hooks/usePinHandler.d.ts +3 -3
  150. package/dist/components/Message/hooks/usePinHandler.d.ts.map +1 -1
  151. package/dist/components/Message/hooks/useUserHandler.d.ts +1 -1
  152. package/dist/components/Message/hooks/useUserHandler.d.ts.map +1 -1
  153. package/dist/components/Message/renderText/componentRenderers/Mention.d.ts +1 -1
  154. package/dist/components/Message/renderText/componentRenderers/Mention.d.ts.map +1 -1
  155. package/dist/components/Message/renderText/regex.d.ts +1 -1
  156. package/dist/components/Message/renderText/regex.d.ts.map +1 -1
  157. package/dist/components/Message/renderText/renderText.d.ts +2 -2
  158. package/dist/components/Message/renderText/renderText.d.ts.map +1 -1
  159. package/dist/components/Message/renderText/types.d.ts +1 -1
  160. package/dist/components/Message/renderText/types.d.ts.map +1 -1
  161. package/dist/components/Message/types.d.ts +4 -4
  162. package/dist/components/Message/types.d.ts.map +1 -1
  163. package/dist/components/Message/utils.d.ts +2 -2
  164. package/dist/components/Message/utils.d.ts.map +1 -1
  165. package/dist/components/MessageActions/MessageActions.d.ts +3 -3
  166. package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
  167. package/dist/components/MessageActions/MessageActionsBox.d.ts +3 -3
  168. package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
  169. package/dist/components/MessageInput/AttachmentPreviewList.d.ts +5 -0
  170. package/dist/components/MessageInput/AttachmentPreviewList.d.ts.map +1 -1
  171. package/dist/components/MessageInput/AttachmentPreviewList.js +16 -10
  172. package/dist/components/MessageInput/CooldownTimer.d.ts +1 -1
  173. package/dist/components/MessageInput/CooldownTimer.d.ts.map +1 -1
  174. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts +6 -6
  175. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
  176. package/dist/components/MessageInput/LinkPreviewList.d.ts +1 -1
  177. package/dist/components/MessageInput/LinkPreviewList.d.ts.map +1 -1
  178. package/dist/components/MessageInput/MessageInput.d.ts +2 -2
  179. package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
  180. package/dist/components/MessageInput/QuotedMessagePreview.d.ts +1 -1
  181. package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
  182. package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts +1 -1
  183. package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
  184. package/dist/components/MessageInput/hooks/useLinkPreviews.d.ts +3 -3
  185. package/dist/components/MessageInput/hooks/useLinkPreviews.d.ts.map +1 -1
  186. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +13 -13
  187. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
  188. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +1 -1
  189. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
  190. package/dist/components/MessageInput/hooks/utils.d.ts +2 -2
  191. package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -1
  192. package/dist/components/MessageInput/icons.d.ts +1 -1
  193. package/dist/components/MessageInput/icons.d.ts.map +1 -1
  194. package/dist/components/MessageInput/index.d.ts +1 -1
  195. package/dist/components/MessageInput/index.d.ts.map +1 -1
  196. package/dist/components/MessageInput/index.js +1 -1
  197. package/dist/components/MessageInput/types.d.ts +6 -6
  198. package/dist/components/MessageInput/types.d.ts.map +1 -1
  199. package/dist/components/MessageList/CustomNotification.d.ts +1 -1
  200. package/dist/components/MessageList/CustomNotification.d.ts.map +1 -1
  201. package/dist/components/MessageList/GiphyPreviewMessage.d.ts +1 -1
  202. package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
  203. package/dist/components/MessageList/MessageList.d.ts +2 -2
  204. package/dist/components/MessageList/MessageList.d.ts.map +1 -1
  205. package/dist/components/MessageList/MessageListNotifications.d.ts +1 -1
  206. package/dist/components/MessageList/MessageListNotifications.d.ts.map +1 -1
  207. package/dist/components/MessageList/MessageNotification.d.ts +1 -1
  208. package/dist/components/MessageList/MessageNotification.d.ts.map +1 -1
  209. package/dist/components/MessageList/VirtualizedMessageList.d.ts +4 -4
  210. package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
  211. package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +1 -1
  212. package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
  213. package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts +2 -2
  214. package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts.map +1 -1
  215. package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.d.ts +2 -2
  216. package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.d.ts.map +1 -1
  217. package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +1 -1
  218. package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
  219. package/dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.d.ts +1 -1
  220. package/dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.d.ts.map +1 -1
  221. package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.d.ts.map +1 -1
  222. package/dist/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.js +31 -32
  223. package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.d.ts +1 -1
  224. package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.d.ts.map +1 -1
  225. package/dist/components/MessageList/hooks/useLastReadData.d.ts +1 -1
  226. package/dist/components/MessageList/hooks/useLastReadData.d.ts.map +1 -1
  227. package/dist/components/MessageList/utils.d.ts +2 -2
  228. package/dist/components/MessageList/utils.d.ts.map +1 -1
  229. package/dist/components/Modal/Modal.d.ts +1 -1
  230. package/dist/components/Modal/Modal.d.ts.map +1 -1
  231. package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts +1 -1
  232. package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts.map +1 -1
  233. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts +1 -1
  234. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts.map +1 -1
  235. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts +2 -2
  236. package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts.map +1 -1
  237. package/dist/components/ReactFileUtilities/FileIcon/iconMap.d.ts +4 -4
  238. package/dist/components/ReactFileUtilities/FileIcon/iconMap.d.ts.map +1 -1
  239. package/dist/components/ReactFileUtilities/FileIcon/mimeTypes.d.ts +2 -2
  240. package/dist/components/ReactFileUtilities/FileIcon/mimeTypes.d.ts.map +1 -1
  241. package/dist/components/ReactFileUtilities/FilePreviewer.d.ts +1 -1
  242. package/dist/components/ReactFileUtilities/FilePreviewer.d.ts.map +1 -1
  243. package/dist/components/ReactFileUtilities/FileUploadButton.d.ts +1 -1
  244. package/dist/components/ReactFileUtilities/FileUploadButton.d.ts.map +1 -1
  245. package/dist/components/ReactFileUtilities/IconButton.d.ts +1 -1
  246. package/dist/components/ReactFileUtilities/IconButton.d.ts.map +1 -1
  247. package/dist/components/ReactFileUtilities/ImageDropzone.d.ts +1 -1
  248. package/dist/components/ReactFileUtilities/ImageDropzone.d.ts.map +1 -1
  249. package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts +2 -2
  250. package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts.map +1 -1
  251. package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts +1 -1
  252. package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts.map +1 -1
  253. package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts +1 -1
  254. package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts.map +1 -1
  255. package/dist/components/ReactFileUtilities/Thumbnail.d.ts +1 -1
  256. package/dist/components/ReactFileUtilities/Thumbnail.d.ts.map +1 -1
  257. package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts +1 -1
  258. package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts.map +1 -1
  259. package/dist/components/ReactFileUtilities/UploadButton.d.ts +1 -1
  260. package/dist/components/ReactFileUtilities/UploadButton.d.ts.map +1 -1
  261. package/dist/components/ReactFileUtilities/types.d.ts +5 -5
  262. package/dist/components/ReactFileUtilities/types.d.ts.map +1 -1
  263. package/dist/components/Reactions/ReactionSelector.d.ts +1 -1
  264. package/dist/components/Reactions/ReactionSelector.d.ts.map +1 -1
  265. package/dist/components/Reactions/ReactionsList.d.ts +1 -1
  266. package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
  267. package/dist/components/Reactions/SimpleReactionsList.d.ts +1 -1
  268. package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
  269. package/dist/components/Reactions/SpriteImage.d.ts +1 -1
  270. package/dist/components/Reactions/SpriteImage.d.ts.map +1 -1
  271. package/dist/components/Reactions/StreamEmoji.d.ts +1 -1
  272. package/dist/components/Reactions/StreamEmoji.d.ts.map +1 -1
  273. package/dist/components/Reactions/hooks/useProcessReactions.d.ts +2 -2
  274. package/dist/components/Reactions/hooks/useProcessReactions.d.ts.map +1 -1
  275. package/dist/components/Reactions/reactionOptions.d.ts +1 -1
  276. package/dist/components/Reactions/reactionOptions.d.ts.map +1 -1
  277. package/dist/components/SafeAnchor/SafeAnchor.d.ts +1 -1
  278. package/dist/components/SafeAnchor/SafeAnchor.d.ts.map +1 -1
  279. package/dist/components/Thread/Thread.d.ts +1 -1
  280. package/dist/components/Thread/Thread.d.ts.map +1 -1
  281. package/dist/components/Thread/ThreadHeader.d.ts +1 -1
  282. package/dist/components/Thread/ThreadHeader.d.ts.map +1 -1
  283. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  284. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  285. package/dist/components/TypingIndicator/TypingIndicator.d.ts +1 -1
  286. package/dist/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
  287. package/dist/components/UserItem/UserItem.d.ts +1 -1
  288. package/dist/components/UserItem/UserItem.d.ts.map +1 -1
  289. package/dist/components/Window/Window.d.ts +1 -1
  290. package/dist/components/Window/Window.d.ts.map +1 -1
  291. package/dist/context/ChannelActionContext.d.ts +4 -4
  292. package/dist/context/ChannelActionContext.d.ts.map +1 -1
  293. package/dist/context/ChannelListContext.d.ts +23 -0
  294. package/dist/context/ChannelListContext.d.ts.map +1 -0
  295. package/dist/context/ChannelListContext.js +17 -0
  296. package/dist/context/ChannelStateContext.d.ts +5 -5
  297. package/dist/context/ChannelStateContext.d.ts.map +1 -1
  298. package/dist/context/ChatContext.d.ts +7 -16
  299. package/dist/context/ChatContext.d.ts.map +1 -1
  300. package/dist/context/ComponentContext.d.ts +3 -2
  301. package/dist/context/ComponentContext.d.ts.map +1 -1
  302. package/dist/context/MessageContext.d.ts +2 -2
  303. package/dist/context/MessageContext.d.ts.map +1 -1
  304. package/dist/context/MessageInputContext.d.ts +1 -1
  305. package/dist/context/MessageInputContext.d.ts.map +1 -1
  306. package/dist/context/MessageListContext.d.ts +1 -1
  307. package/dist/context/MessageListContext.d.ts.map +1 -1
  308. package/dist/context/TranslationContext.d.ts +5 -5
  309. package/dist/context/TranslationContext.d.ts.map +1 -1
  310. package/dist/context/TypingContext.d.ts +1 -1
  311. package/dist/context/TypingContext.d.ts.map +1 -1
  312. package/dist/context/index.d.ts +1 -0
  313. package/dist/context/index.d.ts.map +1 -1
  314. package/dist/context/index.js +1 -0
  315. package/dist/css/v2/index.css +1 -1
  316. package/dist/css/v2/index.layout.css +1 -1
  317. package/dist/i18n/Streami18n.d.ts +4 -3
  318. package/dist/i18n/Streami18n.d.ts.map +1 -1
  319. package/dist/i18n/de.json +1 -0
  320. package/dist/i18n/en.json +1 -0
  321. package/dist/i18n/es.json +1 -0
  322. package/dist/i18n/fr.json +1 -0
  323. package/dist/i18n/hi.json +1 -0
  324. package/dist/i18n/it.json +1 -0
  325. package/dist/i18n/ja.json +1 -0
  326. package/dist/i18n/ko.json +1 -0
  327. package/dist/i18n/nl.json +1 -0
  328. package/dist/i18n/pt.json +1 -0
  329. package/dist/i18n/ru.json +1 -0
  330. package/dist/i18n/tr.json +1 -0
  331. package/dist/{icons-427fd8d5.js → icons-a35a8ee7.js} +32 -12
  332. package/dist/index.cjs.js +602 -617
  333. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +3 -3
  334. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +4 -0
  335. package/dist/scss/v2/BaseImage/BaseImage-layout.scss +21 -0
  336. package/dist/scss/v2/BaseImage/BaseImage-theme.scss +35 -0
  337. package/dist/scss/v2/BaseImage/index.scss +2 -0
  338. package/dist/scss/v2/_icons.scss +3 -0
  339. package/dist/scss/v2/_utils.scss +12 -0
  340. package/dist/scss/v2/index.layout.scss +2 -0
  341. package/dist/scss/v2/index.scss +1 -0
  342. package/dist/types/types.d.ts +20 -20
  343. package/dist/types/types.d.ts.map +1 -1
  344. package/dist/utils/getChannel.d.ts +1 -1
  345. package/dist/utils/getChannel.d.ts.map +1 -1
  346. package/dist/version.d.ts +1 -1
  347. package/dist/version.js +1 -1
  348. package/package.json +7 -13
@@ -1,7 +1,7 @@
1
1
  import type { Attachment, OGAttachment } from 'stream-chat';
2
2
  import type { DefaultStreamChatGenerics } from '../../types/types';
3
- declare type AttachmentLoadingState = 'uploading' | 'finished' | 'failed';
4
- export declare type FileUpload = {
3
+ type AttachmentLoadingState = 'uploading' | 'finished' | 'failed';
4
+ export type FileUpload = {
5
5
  file: {
6
6
  name: string;
7
7
  lastModified?: number;
@@ -15,7 +15,7 @@ export declare type FileUpload = {
15
15
  thumb_url?: string;
16
16
  url?: string;
17
17
  };
18
- export declare type ImageUpload<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
18
+ export type ImageUpload<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
19
19
  file: {
20
20
  name: string;
21
21
  height?: number;
@@ -43,8 +43,8 @@ export declare enum LinkPreviewState {
43
43
  /** The link is scheduled for enrichment. **/
44
44
  QUEUED = "queued"
45
45
  }
46
- export declare type LinkURL = string;
47
- export declare type LinkPreview = OGAttachment & {
46
+ export type LinkURL = string;
47
+ export type LinkPreview = OGAttachment & {
48
48
  state: LinkPreviewState;
49
49
  };
50
50
  export declare enum SetLinkPreviewMode {
@@ -52,6 +52,6 @@ export declare enum SetLinkPreviewMode {
52
52
  SET = 1,
53
53
  REMOVE = 2
54
54
  }
55
- export declare type LinkPreviewMap = Map<LinkURL, LinkPreview>;
55
+ export type LinkPreviewMap = Map<LinkURL, LinkPreview>;
56
56
  export {};
57
57
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,aAAK,sBAAsB,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;AAElE,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,IAAI,CAAC;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,sBAAsB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AACF,oBAAY,WAAW,CACrB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY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OAAO,GAAG,MAAM,CAAC;AAE7B,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG;IACvC,KAAK,EAAE,gBAAgB,CAAC;CACzB,CAAC;AAEF,oBAAY,kBAAkB;IAC5B,MAAM,IAAA;IACN,GAAG,IAAA;IACH,MAAM,IAAA;CACP;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare type CustomNotificationProps = {
2
+ export type CustomNotificationProps = {
3
3
  type: string;
4
4
  active?: boolean;
5
5
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/CustomNotification.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,oBAAY,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAuBF,eAAO,MAAM,kBAAkB,UArBc,kBAAkB,uBAAuB,CAAC,uBAuB/C,CAAC"}
1
+ {"version":3,"file":"CustomNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/CustomNotification.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAuBF,eAAO,MAAM,kBAAkB,UArBc,kBAAkB,uBAAuB,CAAC,uBAuB/C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { StreamMessage } from '../../context/ChannelStateContext';
2
2
  import type { DefaultStreamChatGenerics } from '../../types/types';
3
- export declare type GiphyPreviewMessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
3
+ export type GiphyPreviewMessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
4
  message: StreamMessage<StreamChatGenerics>;
5
5
  };
6
6
  export declare const GiphyPreviewMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: GiphyPreviewMessageProps<StreamChatGenerics>) => JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"GiphyPreviewMessage.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/GiphyPreviewMessage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,oBAAY,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,OAAO,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,mBAAmB,wJAY/B,CAAC"}
1
+ {"version":3,"file":"GiphyPreviewMessage.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/GiphyPreviewMessage.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,OAAO,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,mBAAmB,wJAY/B,CAAC"}
@@ -5,8 +5,8 @@ import type { GroupStyle } from './utils';
5
5
  import type { MessageProps } from '../Message/types';
6
6
  import type { StreamMessage } from '../../context/ChannelStateContext';
7
7
  import type { DefaultStreamChatGenerics } from '../../types/types';
8
- declare type PropsDrilledToMessage = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'disableQuotedMessages' | 'formatDate' | 'getDeleteMessageErrorNotification' | 'getFlagMessageErrorNotification' | 'getFlagMessageSuccessNotification' | 'getMuteUserErrorNotification' | 'getMuteUserSuccessNotification' | 'getPinMessageErrorNotification' | 'Message' | 'messageActions' | 'onlySenderCanEdit' | 'onMentionsClick' | 'onMentionsHover' | 'onUserClick' | 'onUserHover' | 'openThread' | 'pinPermissions' | 'renderText' | 'retrySendMessage' | 'unsafeHTML';
9
- export declare type MessageListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageProps<StreamChatGenerics>, PropsDrilledToMessage>> & {
8
+ type PropsDrilledToMessage = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'disableQuotedMessages' | 'formatDate' | 'getDeleteMessageErrorNotification' | 'getFlagMessageErrorNotification' | 'getFlagMessageSuccessNotification' | 'getMuteUserErrorNotification' | 'getMuteUserSuccessNotification' | 'getPinMessageErrorNotification' | 'Message' | 'messageActions' | 'onlySenderCanEdit' | 'onMentionsClick' | 'onMentionsHover' | 'onUserClick' | 'onUserHover' | 'openThread' | 'pinPermissions' | 'renderText' | 'retrySendMessage' | 'unsafeHTML';
9
+ export type MessageListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageProps<StreamChatGenerics>, PropsDrilledToMessage>> & {
10
10
  /** Disables the injection of date separator components in MessageList, defaults to `false` */
11
11
  disableDateSeparator?: boolean;
12
12
  /** Callback function to set group styles for each message */
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EACL,yBAAyB,EAE1B,MAAM,oCAAoC,CAAC;AA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IAAqI;IACrI,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,mLAAmL;IACnL,2BAA2B,CAAC,EAAE,mBAAmB,CAAC;IAClD,iHAAiH;IACjH,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4LAA4L;IAC5L,QAAQ,CAAC,EAAE,yBAAyB,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,6LAA6L;IAC7L,aAAa,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACnF,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yKAAyK;IACzK,QAAQ,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC/C,qDAAqD;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qHAAqH;IACrH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,gJA2BvB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { MessageNotificationProps } from './MessageNotification';
3
3
  import type { ChannelNotifications } from '../../context/ChannelStateContext';
4
- export declare type MessageListNotificationsProps = {
4
+ export type MessageListNotificationsProps = {
5
5
  hasNewMessages: boolean;
6
6
  isMessageListScrolledToBottom: boolean;
7
7
  isNotAtLatestMessageSet: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"MessageListNotifications.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageListNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,oBAAY,6BAA6B,GAAG;IAC1C,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACnE,aAAa,EAAE,oBAAoB,CAAC;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,6BAA6B,gBA+B5E,CAAC"}
1
+ {"version":3,"file":"MessageListNotifications.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageListNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACnE,aAAa,EAAE,oBAAoB,CAAC;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,6BAA6B,gBA+B5E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
- export declare type MessageNotificationProps = PropsWithChildren<{
2
+ export type MessageNotificationProps = PropsWithChildren<{
3
3
  /** button click event handler */
4
4
  onClick: React.MouseEventHandler;
5
5
  /** signals whether the message list is considered (below a threshold) to be scrolled to the bottom. Prop used only by [ScrollToBottomButton](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageList/ScrollToBottomButton.tsx) */
@@ -1 +1 @@
1
- {"version":3,"file":"MessageNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,oBAAY,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,iCAAiC;IACjC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,gQAAgQ;IAChQ,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,mMAAmM;IACnM,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;AAmBH,eAAO,MAAM,mBAAmB,UAjBc,wBAAwB,uBAmB7B,CAAC"}
1
+ {"version":3,"file":"MessageNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,iCAAiC;IACjC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,gQAAgQ;IAChQ,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,mMAAmM;IACnM,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;AAmBH,eAAO,MAAM,mBAAmB,UAjBc,wBAAwB,uBAmB7B,CAAC"}
@@ -8,11 +8,11 @@ import { ChatContextValue } from '../../context/ChatContext';
8
8
  import { ComponentContextValue } from '../../context/ComponentContext';
9
9
  import type { UserResponse } from 'stream-chat';
10
10
  import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
11
- declare type VirtualizedMessageListPropsForContext = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'customMessageRenderer' | 'head' | 'loadingMore' | 'Message' | 'messageActions' | 'shouldGroupByUser' | 'threadList';
11
+ type VirtualizedMessageListPropsForContext = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'customMessageRenderer' | 'head' | 'loadingMore' | 'Message' | 'messageActions' | 'shouldGroupByUser' | 'threadList';
12
12
  /**
13
13
  * Context object provided to some Virtuoso props that are functions (components rendered by Virtuoso and other functions)
14
14
  */
15
- export declare type VirtuosoContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Required<Pick<ComponentContextValue<StreamChatGenerics>, 'DateSeparator' | 'MessageSystem'>> & Pick<VirtualizedMessageListProps<StreamChatGenerics>, VirtualizedMessageListPropsForContext> & Pick<ChatContextValue<StreamChatGenerics>, 'customClasses'> & {
15
+ export type VirtuosoContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Required<Pick<ComponentContextValue<StreamChatGenerics>, 'DateSeparator' | 'MessageSystem'>> & Pick<VirtualizedMessageListProps<StreamChatGenerics>, VirtualizedMessageListPropsForContext> & Pick<ChatContextValue<StreamChatGenerics>, 'customClasses'> & {
16
16
  /** Latest received message id in the current channel */
17
17
  lastReceivedMessageId: string | null | undefined;
18
18
  /** Object mapping between the message ID and a string representing the position in the group of a sequence of messages posted by the same user. */
@@ -26,8 +26,8 @@ export declare type VirtuosoContext<StreamChatGenerics extends DefaultStreamChat
26
26
  /** Instance of VirtuosoHandle object providing the API to navigate in the virtualized list by various scroll actions. */
27
27
  virtuosoRef: RefObject<VirtuosoHandle>;
28
28
  };
29
- declare type PropsDrilledToMessage = 'additionalMessageInputProps' | 'customMessageActions' | 'messageActions';
30
- export declare type VirtualizedMessageListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageProps<StreamChatGenerics>, PropsDrilledToMessage>> & {
29
+ type PropsDrilledToMessage = 'additionalMessageInputProps' | 'customMessageActions' | 'messageActions';
30
+ export type VirtualizedMessageListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageProps<StreamChatGenerics>, PropsDrilledToMessage>> & {
31
31
  /** Additional props to be passed the underlying [`react-virtuoso` virtualized list dependency](https://virtuoso.dev/virtuoso-api-reference/) */
32
32
  additionalVirtuosoProps?: VirtuosoProps<UnknownType, VirtuosoContext<StreamChatGenerics>>;
33
33
  /** If true, picking a reaction from the `ReactionSelector` component will close the selector */
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedMessageList.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/VirtualizedMessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA2C,MAAM,OAAO,CAAC;AAClF,OAAO,EAEL,uBAAuB,EACvB,0BAA0B,EAE1B,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AAexB,OAAO,EAAmC,UAAU,EAAmB,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,YAAY,EAAiB,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAalF,OAAO,EACL,yBAAyB,EAE1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,aAAa,EAEd,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAkB,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAuB,MAAM,gCAAgC,CAAC;AAE5F,OAAO,KAAK,EAA+C,YAAY,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,KAA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IAChD,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAChF,KAAK,EAAE,2BAA2B,CAAC,kBAAkB,CAAC,eAuCvD"}
@@ -4,7 +4,7 @@ import { ItemProps } from 'react-virtuoso';
4
4
  import { VirtuosoContext } from './VirtualizedMessageList';
5
5
  export declare function calculateItemIndex(virtuosoIndex: number, numItemsPrepended: number): number;
6
6
  export declare function calculateFirstItemIndex(numItemsPrepended: number): number;
7
- declare type CommonVirtuosoComponentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
7
+ type CommonVirtuosoComponentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
8
8
  context?: VirtuosoContext<StreamChatGenerics>;
9
9
  };
10
10
  export declare const Item: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ context, ...props }: Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedMessageListComponents.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/VirtualizedMessageListComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAI3D,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,UAElF;AAED,wBAAgB,uBAAuB,CAAC,iBAAiB,EAAE,MAAM,UAEhE;AAED,aAAK,4BAA4B,CAC/B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,OAAO,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;CAC/C,CAAC;AAGF,eAAO,MAAM,IAAI;;;;;;;oEAyBhB,CAAC;AACF,eAAO,MAAM,MAAM,0KAgBlB,CAAC;AACF,eAAO,MAAM,gBAAgB,mKAe5B,CAAC;AACF,eAAO,MAAM,MAAM,4GAKlB,CAAC;AACF,eAAO,MAAM,eAAe,oGAGX,MAAM,SACd,WAAW,6EAgEnB,CAAC"}
1
+ {"version":3,"file":"VirtualizedMessageListComponents.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/VirtualizedMessageListComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAG3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAI3D,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,UAElF;AAED,wBAAgB,uBAAuB,CAAC,iBAAiB,EAAE,MAAM,UAEhE;AAED,KAAK,4BAA4B,CAC/B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,OAAO,CAAC,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;CAC/C,CAAC;AAGF,eAAO,MAAM,IAAI;;;;;;;oEAyBhB,CAAC;AACF,eAAO,MAAM,MAAM,0KAgBlB,CAAC;AACF,eAAO,MAAM,gBAAgB,mKAe5B,CAAC;AACF,eAAO,MAAM,MAAM,4GAKlB,CAAC;AACF,eAAO,MAAM,eAAe,oGAGX,MAAM,SACd,WAAW,6EAgEnB,CAAC"}
@@ -4,8 +4,8 @@ import type { UserResponse } from 'stream-chat';
4
4
  import type { MessageProps } from '../../../Message/types';
5
5
  import type { StreamMessage } from '../../../../context/ChannelStateContext';
6
6
  import type { DefaultStreamChatGenerics } from '../../../../types/types';
7
- declare type MessagePropsToOmit = 'channel' | 'groupStyles' | 'initialMessage' | 'lastReceivedId' | 'message' | 'readBy' | 'threadList';
8
- declare type UseMessageListElementsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
7
+ type MessagePropsToOmit = 'channel' | 'groupStyles' | 'initialMessage' | 'lastReceivedId' | 'message' | 'readBy' | 'threadList';
8
+ type UseMessageListElementsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
9
9
  enrichedMessages: StreamMessage<StreamChatGenerics>[];
10
10
  internalMessageProps: Omit<MessageProps<StreamChatGenerics>, MessagePropsToOmit>;
11
11
  messageGroupStyles: Record<string, GroupStyle>;
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageListElements.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/MessageList/useMessageListElements.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAmB,UAAU,EAAE,MAAM,aAAa,CAAC;AAW1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,aAAK,kBAAkB,GACnB,SAAS,GACT,aAAa,GACb,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,YAAY,CAAC;AAEjB,aAAK,2BAA2B,CAC9B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACtD,oBAAoB,EAAE,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,CAAC;IACjF,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC/C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAA;KAAE,CAAC,CAAC;CACpF,CAAC;AAEF,eAAO,MAAM,sBAAsB,iKAkGlC,CAAC"}
1
+ {"version":3,"file":"useMessageListElements.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/MessageList/useMessageListElements.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAmB,UAAU,EAAE,MAAM,aAAa,CAAC;AAW1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,KAAK,kBAAkB,GACnB,SAAS,GACT,aAAa,GACb,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,YAAY,CAAC;AAEjB,KAAK,2BAA2B,CAC9B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACtD,oBAAoB,EAAE,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,CAAC;IACjF,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC/C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAA;KAAE,CAAC,CAAC;CACpF,CAAC;AAEF,eAAO,MAAM,sBAAsB,iKAkGlC,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import type { StreamMessage } from '../../../../context/ChannelStateContext';
2
2
  import type { DefaultStreamChatGenerics } from '../../../../types/types';
3
- export declare type ContainerMeasures = {
3
+ export type ContainerMeasures = {
4
4
  offsetHeight: number;
5
5
  scrollHeight: number;
6
6
  };
7
- export declare type UseMessageListScrollManagerParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
7
+ export type UseMessageListScrollManagerParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
8
8
  loadMoreScrollThreshold: number;
9
9
  messages: StreamMessage<StreamChatGenerics>[];
10
10
  onScrollBy: (scrollBy: number) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageListScrollManager.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/MessageList/useMessageListScrollManager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,oBAAY,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,oBAAY,iCAAiC,CAC3C,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,uBAAuB,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAGF,wBAAgB,2BAA2B,CACzC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAChF,MAAM,EAAE,iCAAiC,CAAC,kBAAkB,CAAC,oBAmErC,MAAM,UAG/B"}
1
+ {"version":3,"file":"useMessageListScrollManager.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/MessageList/useMessageListScrollManager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iCAAiC,CAC3C,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,uBAAuB,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;IACjD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAGF,wBAAgB,2BAA2B,CACzC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAChF,MAAM,EAAE,iCAAiC,CAAC,kBAAkB,CAAC,oBAmErC,MAAM,UAG/B"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { StreamMessage } from '../../../../context/ChannelStateContext';
3
3
  import type { DefaultStreamChatGenerics } from '../../../../types/types';
4
- export declare type UseScrollLocationLogicParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
+ export type UseScrollLocationLogicParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
5
5
  hasMoreNewer: boolean;
6
6
  listElement: HTMLDivElement | null;
7
7
  loadMoreScrollThreshold: number;
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollLocationLogic.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/MessageList/useScrollLocationLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAI9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,oBAAY,4BAA4B,CACtC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;sBA0DvB,aAAa,CAAC,cAAc,CAAC;;;CAgCxC,CAAC"}
1
+ {"version":3,"file":"useScrollLocationLogic.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/MessageList/useScrollLocationLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAI9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,MAAM,4BAA4B,CACtC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;sBA0DvB,aAAa,CAAC,cAAc,CAAC;;;CAgCxC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { StreamMessage } from '../../../../context';
2
2
  import { DefaultStreamChatGenerics } from '../../../../types/types';
3
- declare type UseMessageSetKeyParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
3
+ type UseMessageSetKeyParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
4
  messages?: StreamMessage<StreamChatGenerics>[];
5
5
  };
6
6
  export declare const useMessageSetKey: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ messages, }: UseMessageSetKeyParams<StreamChatGenerics>) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageSetKey.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,aAAK,sBAAsB,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,QAAQ,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAsB5B,CAAC"}
1
+ {"version":3,"file":"useMessageSetKey.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,KAAK,sBAAsB,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,QAAQ,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;CAsB5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePrependMessagesCount.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAIzE,wBAAgB,yBAAyB,CACvC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAChF,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,EAAE,gBAAgB,EAAE,OAAO,UA2DzE"}
1
+ {"version":3,"file":"usePrependMessagesCount.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/VirtualizedMessageList/usePrependMessagesCount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAE7E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAOzE,wBAAgB,yBAAyB,CACvC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAChF,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,EAAE,gBAAgB,EAAE,OAAO,UAgEzE"}
@@ -1,9 +1,12 @@
1
1
  import { useMemo, useRef } from 'react';
2
- var STATUSES_EXCLUDED_FROM_PREPEND = ['sending', 'failed'];
2
+ var STATUSES_EXCLUDED_FROM_PREPEND = {
3
+ failed: true,
4
+ sending: true,
5
+ };
3
6
  export function usePrependedMessagesCount(messages, hasDateSeparator) {
4
7
  var firstRealMessageIndex = hasDateSeparator ? 1 : 0;
5
- var firstMessageId = useRef();
6
- var earliestMessageId = useRef();
8
+ var firstMessageOnFirstLoadedPage = useRef();
9
+ var previousFirstMessageOnFirstLoadedPage = useRef();
7
10
  var previousNumItemsPrepended = useRef(0);
8
11
  var numItemsPrepended = useMemo(function () {
9
12
  var _a, _b;
@@ -11,46 +14,42 @@ export function usePrependedMessagesCount(messages, hasDateSeparator) {
11
14
  previousNumItemsPrepended.current = 0;
12
15
  return 0;
13
16
  }
14
- var currentFirstMessageId = (_a = messages === null || messages === void 0 ? void 0 : messages[firstRealMessageIndex]) === null || _a === void 0 ? void 0 : _a.id;
15
- // if no new messages were prepended, return early (same amount as before)
16
- if (currentFirstMessageId === earliestMessageId.current) {
17
+ var currentFirstMessage = messages === null || messages === void 0 ? void 0 : messages[firstRealMessageIndex];
18
+ var noNewMessages = (currentFirstMessage === null || currentFirstMessage === void 0 ? void 0 : currentFirstMessage.id) === ((_a = previousFirstMessageOnFirstLoadedPage.current) === null || _a === void 0 ? void 0 : _a.id);
19
+ // This is possible only, when sending messages very quickly (basically single char messages submitted like a crazy) in empty channel (first page)
20
+ // Optimistic UI update, when sending messages, can lead to a situation, when
21
+ // the order of the messages changes for a moment. This can happen, when a user
22
+ // sends multiple messages withing few milliseconds. E.g. we send a message A
23
+ // then message B. At first we have message array with both messages of status "sending"
24
+ // then response for message A is received with a new - later - created_at timestamp
25
+ // this leads to rearrangement of 1.B ("sending"), 2.A ("received"). Still firstMessageOnFirstLoadedPage.current
26
+ // points to message A, but now this message has index 1 => previousNumItemsPrepended.current === 1
27
+ // That in turn leads to incorrect index calculation in VirtualizedMessageList trying to access a message
28
+ // at non-existent index. Therefore, we ignore messages of status "sending" / "failed" in order they are
29
+ // not considered as prepended messages.
30
+ var firstMsgMovedAfterMessagesInExcludedStatus = (currentFirstMessage === null || currentFirstMessage === void 0 ? void 0 : currentFirstMessage.status) && STATUSES_EXCLUDED_FROM_PREPEND[currentFirstMessage.status];
31
+ if (noNewMessages || firstMsgMovedAfterMessagesInExcludedStatus) {
17
32
  return previousNumItemsPrepended.current;
18
33
  }
19
- if (!firstMessageId.current) {
20
- firstMessageId.current = currentFirstMessageId;
34
+ if (!firstMessageOnFirstLoadedPage.current) {
35
+ firstMessageOnFirstLoadedPage.current = currentFirstMessage;
21
36
  }
22
- earliestMessageId.current = currentFirstMessageId;
37
+ previousFirstMessageOnFirstLoadedPage.current = currentFirstMessage;
23
38
  // if new messages were prepended, find out how many
24
39
  // start with this number because there cannot be fewer prepended items than before
25
- var adjustPrependedMessageCount = 0;
26
- for (var i = previousNumItemsPrepended.current; i < messages.length; i += 1) {
27
- // Optimistic UI update, when sending messages, can lead to a situation, when
28
- // the order of the messages changes for a moment. This can happen, when a user
29
- // sends multiple messages withing few milliseconds. E.g. we send a message A
30
- // then message B. At first we have message array with both messages of status "sending"
31
- // then response for message A is received with a new - later - created_at timestamp
32
- // this leads to rearrangement of 1.B ("sending"), 2.A ("received"). Still firstMessageId.current
33
- // points to message A, but now this message has index 1 => previousNumItemsPrepended.current === 1
34
- // That in turn leads to incorrect index calculation in VirtualizedMessageList trying to access a message
35
- // at non-existent index. Therefore, we ignore messages of status "sending" / "failed" in order they are
36
- // not considered as prepended messages.
37
- if (((_b = messages[i]) === null || _b === void 0 ? void 0 : _b.status) &&
38
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
39
- STATUSES_EXCLUDED_FROM_PREPEND.includes(messages[i].status) &&
40
- messages[i].id !== firstMessageId.current) {
41
- adjustPrependedMessageCount++;
42
- }
43
- if (messages[i].id === firstMessageId.current) {
44
- previousNumItemsPrepended.current = i - adjustPrependedMessageCount;
45
- return previousNumItemsPrepended.current;
40
+ for (var prependedMessageCount = previousNumItemsPrepended.current; prependedMessageCount < messages.length; prependedMessageCount += 1) {
41
+ var messageIsFirstOnFirstLoadedPage = messages[prependedMessageCount].id === ((_b = firstMessageOnFirstLoadedPage.current) === null || _b === void 0 ? void 0 : _b.id);
42
+ if (messageIsFirstOnFirstLoadedPage) {
43
+ previousNumItemsPrepended.current = prependedMessageCount;
44
+ return prependedMessageCount;
46
45
  }
47
46
  }
48
47
  // if no match has found, we have jumped - reset the prepended item count.
49
- firstMessageId.current = currentFirstMessageId;
48
+ firstMessageOnFirstLoadedPage.current = currentFirstMessage;
50
49
  previousNumItemsPrepended.current = 0;
51
50
  return 0;
52
51
  // TODO: there's a bug here, the messages prop is the same array instance (something mutates it)
53
52
  // that's why the second dependency is necessary
54
- }, [messages, messages === null || messages === void 0 ? void 0 : messages.length]);
53
+ }, [firstRealMessageIndex, messages, messages === null || messages === void 0 ? void 0 : messages.length]);
55
54
  return numItemsPrepended;
56
55
  }
@@ -1,6 +1,6 @@
1
1
  import { StreamMessage } from '../../../../context';
2
2
  import { DefaultStreamChatGenerics } from '../../../../types/types';
3
- declare type UseScrollToBottomOnNewMessageParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
3
+ type UseScrollToBottomOnNewMessageParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
4
  /** */
5
5
  scrollToBottom: () => void;
6
6
  messages?: StreamMessage<StreamChatGenerics>[];
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollToBottomOnNewMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,aAAK,mCAAmC,CACtC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM;IACN,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC/C,4FAA4F;IAC5F,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,6BAA6B,kNA2CzC,CAAC"}
1
+ {"version":3,"file":"useScrollToBottomOnNewMessage.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,KAAK,mCAAmC,CACtC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM;IACN,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAC/C,4FAA4F;IAC5F,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,6BAA6B,kNA2CzC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { UserResponse } from 'stream-chat';
2
2
  import type { StreamMessage } from '../../../context/ChannelStateContext';
3
3
  import type { DefaultStreamChatGenerics } from '../../../types/types';
4
- declare type UseLastReadDataParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
+ type UseLastReadDataParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
5
5
  messages: StreamMessage<StreamChatGenerics>[];
6
6
  returnAllReadData: boolean;
7
7
  userID: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useLastReadData.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageList/hooks/useLastReadData.ts"],"names":[],"mappings":"AAIA,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AgB3B,CAAC"}
@@ -2,7 +2,7 @@
2
2
  import type { UserResponse } from 'stream-chat';
3
3
  import type { DefaultStreamChatGenerics } from '../../types/types';
4
4
  import type { StreamMessage } from '../../context/ChannelStateContext';
5
- declare type ProcessMessagesParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
5
+ type ProcessMessagesParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
6
6
  messages: StreamMessage<StreamChatGenerics>[];
7
7
  userId: string;
8
8
  /** Enable date separator */
@@ -40,7 +40,7 @@ export declare const getReadStates: <StreamChatGenerics extends DefaultStreamCha
40
40
  user: UserResponse<StreamChatGenerics>;
41
41
  }> | undefined, returnAllReadData: boolean) => Record<string, UserResponse<StreamChatGenerics>[]>;
42
42
  export declare const insertIntro: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(messages: StreamMessage<StreamChatGenerics>[], headerPosition?: number) => StreamMessage<StreamChatGenerics>[];
43
- export declare type GroupStyle = '' | 'middle' | 'top' | 'bottom' | 'single';
43
+ export type GroupStyle = '' | 'middle' | 'top' | 'bottom' | 'single';
44
44
  export declare const getGroupStyles: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: StreamMessage<StreamChatGenerics>, previousMessage: StreamMessage<StreamChatGenerics>, nextMessage: StreamMessage<StreamChatGenerics>, noGroupByUser: boolean) => GroupStyle;
45
45
  export declare const hasMoreMessagesProbably: (returnedCountMessages: number, limit: number) => boolean;
46
46
  export declare const hasNotMoreMessages: (returnedCountMessages: number, limit: number) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/utils.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,KAAK,EAAE,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M,kBAAkB,0BAA2B,MAAM,SAAS,MAAM,YAChD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
- export declare type ModalProps = {
2
+ export type ModalProps = {
3
3
  /** If true, modal is opened or visible. */
4
4
  open: boolean;
5
5
  /** Callback handler for closing of modal. */
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AAMpE,oBAAY,UAAU,GAAG;IACvB,2CAA2C;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,6CAA6C;IAC7C,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,GAAG,cAAc,CAAC,KAC9E,IAAI,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,KAAK,gCAAiC,kBAAkB,UAAU,CAAC,uBAiD/E,CAAC"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AAMpE,MAAM,MAAM,UAAU,GAAG;IACvB,2CAA2C;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,6CAA6C;IAC7C,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,GAAG,cAAc,CAAC,KAC9E,IAAI,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,KAAK,gCAAiC,kBAAkB,UAAU,CAAC,uBAiD/E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconType, IconVersion } from './iconMap';
3
- export declare type FileIconProps = {
3
+ export type FileIconProps = {
4
4
  big?: boolean;
5
5
  className?: string;
6
6
  filename?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/ReactFileUtilities/FileIcon/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAW,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE3D,oBAAY,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,wBAAgB,cAAc,CAC5B,IAAI,GAAE,QAAqB,EAC3B,OAAO,GAAE,WAAiB,EAC1B,QAAQ,CAAC,EAAE,MAAM,6HAelB;AAED,eAAO,MAAM,QAAQ,UAAW,aAAa,gBAc5C,CAAC"}
1
+ {"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/ReactFileUtilities/FileIcon/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAW,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,wBAAgB,cAAc,CAC5B,IAAI,GAAE,QAAqB,EAC3B,OAAO,GAAE,WAAiB,EAC1B,QAAQ,CAAC,EAAE,MAAM,6HAelB;AAED,eAAO,MAAM,QAAQ,UAAW,aAAa,gBAc5C,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  */
5
5
  import { ComponentPropsWithoutRef } from 'react';
6
- export declare type IconPropsV1 = {
6
+ export type IconPropsV1 = {
7
7
  size?: number;
8
8
  } & ComponentPropsWithoutRef<'svg'>;
9
9
  export declare const FilePdfIcon: ({ size, ...props }: IconPropsV1) => JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../../../src/components/ReactFileUtilities/FileIcon/FileIconSet/v1.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAc,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAExD,oBAAY,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAI9E,eAAO,MAAM,WAAW,uBAAuC,WAAW,gBAczE,CAAC;AAEF,eAAO,MAAM,YAAY,uBAAuC,WAAW,gBAc1E,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;iBAc9B,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,eAAe,uBAAuC,WAAW,gBAc7E,CAAC;AAEF,eAAO,MAAM,YAAY,uBAAuC,WAAW,gBAc1E,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,WAAW,uBAAuC,WAAW,gBAczE,CAAC;AAEF,eAAO,MAAM,gBAAgB,uBAAuC,WAAW,gBAc9E,CAAC"}
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../../../src/components/ReactFileUtilities/FileIcon/FileIconSet/v1.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAc,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAI9E,eAAO,MAAM,WAAW,uBAAuC,WAAW,gBAczE,CAAC;AAEF,eAAO,MAAM,YAAY,uBAAuC,WAAW,gBAc1E,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;iBAc9B,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,eAAe,uBAAuC,WAAW,gBAc7E,CAAC;AAEF,eAAO,MAAM,YAAY,uBAAuC,WAAW,gBAc1E,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAuC,WAAW,gBAc3E,CAAC;AAEF,eAAO,MAAM,WAAW,uBAAuC,WAAW,gBAczE,CAAC;AAEF,eAAO,MAAM,gBAAgB,uBAAuC,WAAW,gBAc9E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- export declare type IconTypeV2 = 'standard' | 'alt';
3
- export declare type IconPropsV2 = {
2
+ export type IconTypeV2 = 'standard' | 'alt';
3
+ export type IconPropsV2 = {
4
4
  mimeType?: string;
5
5
  size?: number;
6
6
  type?: IconTypeV2;
@@ -1 +1 @@
1
- {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../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WAAW,gBAiCb,CAAC;AAEF,eAAO,MAAM,gBAAgB,kCAI1B,WAAW,gBAgCb,CAAC;AAGF,eAAO,MAAM,aAAa,kCAAuD,WAAW,gBAc3F,CAAC"}
@@ -2,13 +2,13 @@ import type { ComponentType } from 'react';
2
2
  import type { IconPropsV1 } from './FileIconSet/v1';
3
3
  import type { IconPropsV2 } from './FileIconSet/v2';
4
4
  import { GeneralType, SupportedMimeType } from './mimeTypes';
5
- export declare type IconType = 'standard' | 'alt';
6
- export declare type IconVersion = '1' | '2';
7
- declare type IconProps = {
5
+ export type IconType = 'standard' | 'alt';
6
+ export type IconVersion = '1' | '2';
7
+ type IconProps = {
8
8
  '1': IconPropsV1;
9
9
  '2': IconPropsV2;
10
10
  };
11
- declare type IconMap = {
11
+ type IconMap = {
12
12
  [v in IconVersion]: {
13
13
  standard: Record<SupportedMimeType | GeneralType | 'fallback', ComponentType<IconProps[v]>>;
14
14
  alt?: Record<SupportedMimeType | GeneralType | 'fallback', ComponentType<IconProps[v]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"iconMap.d.ts","sourceRoot":"","sources":["../../../../src/components/ReactFileUtilities/FileIcon/iconMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAIL,WAAW,EAEX,iBAAiB,EAElB,MAAM,aAAa,CAAC;AAkFrB,oBAAY,QAAQ,GAAG,UAAU,GAAG,KAAK,CAAC;AAC1C,oBAAY,WAAW,GAAG,GAAG,GAAG,GAAG,CAAC;AAEpC,aAAK,SAAS,GAAG;IACf,GAAG,EAAE,WAAW,CAAC;IACjB,GAAG,EAAE,WAAW,CAAC;CAClB,CAAC;AAEF,aAAK,OAAO,GAAG;KACZ,CAAC,IAAI,WAAW,GAAG;QACl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5 +1,5 @@
1
- export declare type GeneralType = 'audio/' | 'video/' | 'image/' | 'text/';
2
- export declare type SupportedMimeType = typeof wordMimeTypes[number] | typeof excelMimeTypes[number] | typeof powerpointMimeTypes[number] | typeof archiveFileTypes[number] | typeof codeFileTypes[number];
1
+ export type GeneralType = 'audio/' | 'video/' | 'image/' | 'text/';
2
+ export type SupportedMimeType = typeof wordMimeTypes[number] | typeof excelMimeTypes[number] | typeof powerpointMimeTypes[number] | typeof archiveFileTypes[number] | typeof codeFileTypes[number];
3
3
  export declare const wordMimeTypes: string[];
4
4
  export declare const excelMimeTypes: string[];
5
5
  export declare const powerpointMimeTypes: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"mimeTypes.d.ts","sourceRoot":"","sources":["../../../../src/components/ReactFileUtilities/FileIcon/mimeTypes.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnE,oBAAY,iBAAiB,GACzB,OAAO,aAAa,CAAC,MAAM,CAAC,GAC5B,OAAO,cAAc,CAAC,MAAM,CAAC,GAC7B,OAAO,mBAAmB,CAAC,MAAM,CAAC,GAClC,OAAO,gBAAgB,CAAC,MAAM,CAAC,GAC/B,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAEjC,eAAO,MAAM,aAAa,UAwBzB,CAAC;AAEF,eAAO,MAAM,cAAc,UA8B1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,UA4B/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,UA6B5B,CAAC;AAEF,eAAO,MAAM,aAAa,UAkCzB,CAAC"}
1
+ {"version":3,"file":"mimeTypes.d.ts","sourceRoot":"","sources":["../../../../src/components/ReactFileUtilities/FileIcon/mimeTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GACzB,OAAO,aAAa,CAAC,MAAM,CAAC,GAC5B,OAAO,cAAc,CAAC,MAAM,CAAC,GAC7B,OAAO,mBAAmB,CAAC,MAAM,CAAC,GAClC,OAAO,gBAAgB,CAAC,MAAM,CAAC,GAC/B,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAEjC,eAAO,MAAM,aAAa,UAwBzB,CAAC;AAEF,eAAO,MAAM,cAAc,UA8B1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,UA4B/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,UA6B5B,CAAC;AAEF,eAAO,MAAM,aAAa,UAkCzB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { FileUpload } from './types';
2
2
  import type { FileIconProps } from './FileIcon/FileIcon';
3
- export declare type FilePreviewerProps = {
3
+ export type FilePreviewerProps = {
4
4
  fileIconProps?: FileIconProps;
5
5
  handleFiles?: (files: FileList) => void;
6
6
  handleRemove?: (id: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"FilePreviewer.d.ts","sourceRoot":"","sources":["../../../src/components/ReactFileUtilities/FilePreviewer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,oBAAY,kBAAkB,GAAG;IAC/B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,2DAKvB,kBAAkB,gBA2CpB,CAAC"}
1
+ {"version":3,"file":"FilePreviewer.d.ts","sourceRoot":"","sources":["../../../src/components/ReactFileUtilities/FilePreviewer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,2DAKvB,kBAAkB,gBA2CpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare type FileUploadButtonProps = {
2
+ export type FileUploadButtonProps = {
3
3
  handleFiles: (files: FileList | File[]) => void;
4
4
  accepts?: string | string[];
5
5
  disabled?: boolean;