stream-chat-react-native-core 4.0.0-beta.5 → 4.0.0-beta.8

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 (795) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/Attachment/Attachment.js +10 -10
  3. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  4. package/lib/commonjs/components/Attachment/AttachmentActions.js +4 -4
  5. package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
  6. package/lib/commonjs/components/Attachment/Card.js +15 -15
  7. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  8. package/lib/commonjs/components/Attachment/FileAttachment.js +8 -8
  9. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  10. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +4 -4
  11. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  12. package/lib/commonjs/components/Attachment/Gallery.js +8 -8
  13. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  14. package/lib/commonjs/components/Attachment/Giphy.js +23 -23
  15. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  16. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  17. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  18. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  19. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  20. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  21. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  22. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
  23. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  24. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  25. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
  26. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  27. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
  28. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  29. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
  30. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  31. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
  32. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  33. package/lib/commonjs/components/Channel/Channel.js +13 -13
  34. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  35. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  36. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  37. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  38. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  39. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  40. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  41. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  42. package/lib/commonjs/components/ChannelList/ChannelList.js +2 -2
  43. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  44. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +14 -14
  45. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  46. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  47. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  48. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  49. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  50. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  51. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  52. package/lib/commonjs/components/ChannelList/hooks/listeners/useConnectionRecovered.js.map +1 -1
  53. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  54. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  55. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  56. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  57. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  58. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  59. package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
  60. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +2 -2
  61. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  62. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -2
  63. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  64. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
  65. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  66. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
  67. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  68. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
  69. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  70. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  71. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  72. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  73. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  74. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  75. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  76. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  77. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  78. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  79. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  80. package/lib/commonjs/components/Chat/Chat.js +8 -4
  81. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  82. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  83. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  84. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
  85. package/lib/commonjs/components/ImageGallery/ImageGallery.js +19 -19
  86. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  87. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
  88. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  89. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +10 -10
  90. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  91. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +5 -5
  92. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  93. package/lib/commonjs/components/Message/Message.js +6 -6
  94. package/lib/commonjs/components/Message/Message.js.map +1 -1
  95. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +4 -4
  96. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  97. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +18 -18
  98. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  99. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +5 -5
  100. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  101. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +11 -11
  102. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  103. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
  104. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  105. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +10 -10
  106. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  107. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
  108. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  109. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +6 -6
  110. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  111. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +9 -9
  112. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  113. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +3 -3
  114. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  115. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +18 -18
  116. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  117. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +14 -14
  118. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  119. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  120. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  121. package/lib/commonjs/components/Message/hooks/useMessageActions.js +11 -11
  122. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  123. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  124. package/lib/commonjs/components/Message/utils/removeReservedFields.js.map +1 -1
  125. package/lib/commonjs/components/MessageInput/AttachButton.js +3 -3
  126. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  127. package/lib/commonjs/components/MessageInput/CommandsButton.js +3 -3
  128. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  129. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +11 -11
  130. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  131. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +7 -7
  132. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  133. package/lib/commonjs/components/MessageInput/InputButtons.js +6 -6
  134. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  135. package/lib/commonjs/components/MessageInput/MessageInput.js +34 -34
  136. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  137. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +3 -3
  138. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  139. package/lib/commonjs/components/MessageInput/SendButton.js +5 -5
  140. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  141. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
  142. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  143. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
  144. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
  145. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  146. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
  147. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  148. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
  149. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  150. package/lib/commonjs/components/MessageList/MessageList.js +26 -26
  151. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  152. package/lib/commonjs/components/MessageList/MessageSystem.js +6 -6
  153. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  154. package/lib/commonjs/components/MessageList/TypingIndicator.js +3 -3
  155. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  156. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +2 -2
  157. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  158. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  159. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  160. package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  161. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  162. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  163. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  164. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  165. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +3 -3
  166. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  167. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +6 -6
  168. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  169. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +26 -25
  170. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  171. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +13 -13
  172. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  173. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +19 -19
  174. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  175. package/lib/commonjs/components/Reply/Reply.js +8 -8
  176. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  177. package/lib/commonjs/components/Thread/Thread.js +4 -4
  178. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  179. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +12 -12
  180. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  181. package/lib/commonjs/components/docs/data.js +44 -44
  182. package/lib/commonjs/components/docs/data.js.map +1 -1
  183. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
  184. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  185. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  186. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  187. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +2 -2
  188. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  189. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  190. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  191. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  192. package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
  193. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  194. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  195. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  196. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +1 -1
  197. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  198. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
  199. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  200. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +2 -4
  201. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  202. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  203. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  204. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +2 -2
  205. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  206. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  207. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  208. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
  209. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  210. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +12 -12
  211. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  212. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  213. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  214. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +2 -2
  215. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  216. package/lib/commonjs/contexts/threadContext/ThreadContext.js +2 -2
  217. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  218. package/lib/commonjs/contexts/translationContext/TranslationContext.js +2 -2
  219. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  220. package/lib/commonjs/contexts/typingContext/TypingContext.js +2 -2
  221. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  222. package/lib/commonjs/icons/UserAdmin.js +62 -0
  223. package/lib/commonjs/icons/UserAdmin.js.map +1 -0
  224. package/lib/commonjs/init.js +13 -0
  225. package/lib/commonjs/init.js.map +1 -0
  226. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  227. package/lib/commonjs/utils/getResizedImageUrl.js +21 -10
  228. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
  229. package/lib/commonjs/utils/utils.js.map +1 -1
  230. package/lib/commonjs/version.json +1 -1
  231. package/lib/module/components/Attachment/Attachment.js +10 -10
  232. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  233. package/lib/module/components/Attachment/AttachmentActions.js +4 -4
  234. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  235. package/lib/module/components/Attachment/Card.js +15 -15
  236. package/lib/module/components/Attachment/Card.js.map +1 -1
  237. package/lib/module/components/Attachment/FileAttachment.js +8 -8
  238. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  239. package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -4
  240. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  241. package/lib/module/components/Attachment/Gallery.js +8 -8
  242. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  243. package/lib/module/components/Attachment/Giphy.js +23 -23
  244. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  245. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  246. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  247. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  248. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  249. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  250. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  251. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
  252. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  253. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  254. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
  255. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  256. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
  257. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  258. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
  259. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  260. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
  261. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  262. package/lib/module/components/Channel/Channel.js +13 -13
  263. package/lib/module/components/Channel/Channel.js.map +1 -1
  264. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  265. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  266. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  267. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  268. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  269. package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  270. package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  271. package/lib/module/components/ChannelList/ChannelList.js +2 -2
  272. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  273. package/lib/module/components/ChannelList/ChannelListMessenger.js +14 -14
  274. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  275. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  276. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  277. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  278. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  279. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  280. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  281. package/lib/module/components/ChannelList/hooks/listeners/useConnectionRecovered.js.map +1 -1
  282. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  283. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  284. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  285. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  286. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  287. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  288. package/lib/module/components/ChannelList/utils.js.map +1 -1
  289. package/lib/module/components/ChannelPreview/ChannelAvatar.js +2 -2
  290. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  291. package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -2
  292. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  293. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
  294. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  295. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
  296. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  297. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
  298. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  299. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  300. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  301. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  302. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  303. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  304. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  305. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  306. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  307. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  308. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  309. package/lib/module/components/Chat/Chat.js +8 -4
  310. package/lib/module/components/Chat/Chat.js.map +1 -1
  311. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  312. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  313. package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
  314. package/lib/module/components/ImageGallery/ImageGallery.js +19 -19
  315. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  316. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
  317. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  318. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +10 -10
  319. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  320. package/lib/module/components/ImageGallery/components/ImageGrid.js +5 -5
  321. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  322. package/lib/module/components/Message/Message.js +6 -6
  323. package/lib/module/components/Message/Message.js.map +1 -1
  324. package/lib/module/components/Message/MessageSimple/MessageAvatar.js +4 -4
  325. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  326. package/lib/module/components/Message/MessageSimple/MessageContent.js +18 -18
  327. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  328. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +5 -5
  329. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  330. package/lib/module/components/Message/MessageSimple/MessageFooter.js +11 -11
  331. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  332. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
  333. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  334. package/lib/module/components/Message/MessageSimple/MessageReplies.js +10 -10
  335. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  336. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
  337. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  338. package/lib/module/components/Message/MessageSimple/MessageSimple.js +6 -6
  339. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  340. package/lib/module/components/Message/MessageSimple/MessageStatus.js +9 -9
  341. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  342. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +3 -3
  343. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  344. package/lib/module/components/Message/MessageSimple/ReactionList.js +18 -18
  345. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  346. package/lib/module/components/Message/MessageSimple/utils/renderText.js +14 -14
  347. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  348. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  349. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  350. package/lib/module/components/Message/hooks/useMessageActions.js +11 -11
  351. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  352. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  353. package/lib/module/components/Message/utils/removeReservedFields.js.map +1 -1
  354. package/lib/module/components/MessageInput/AttachButton.js +3 -3
  355. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  356. package/lib/module/components/MessageInput/CommandsButton.js +3 -3
  357. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  358. package/lib/module/components/MessageInput/FileUploadPreview.js +11 -11
  359. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  360. package/lib/module/components/MessageInput/ImageUploadPreview.js +7 -7
  361. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  362. package/lib/module/components/MessageInput/InputButtons.js +6 -6
  363. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  364. package/lib/module/components/MessageInput/MessageInput.js +34 -34
  365. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  366. package/lib/module/components/MessageInput/MoreOptionsButton.js +3 -3
  367. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  368. package/lib/module/components/MessageInput/SendButton.js +5 -5
  369. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  370. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
  371. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  372. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
  373. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
  374. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  375. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
  376. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  377. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
  378. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  379. package/lib/module/components/MessageList/MessageList.js +26 -26
  380. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  381. package/lib/module/components/MessageList/MessageSystem.js +6 -6
  382. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  383. package/lib/module/components/MessageList/TypingIndicator.js +3 -3
  384. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  385. package/lib/module/components/MessageList/TypingIndicatorContainer.js +2 -2
  386. package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  387. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  388. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  389. package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  390. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  391. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  392. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  393. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  394. package/lib/module/components/MessageOverlay/MessageActionList.js +3 -3
  395. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  396. package/lib/module/components/MessageOverlay/MessageActionListItem.js +6 -6
  397. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  398. package/lib/module/components/MessageOverlay/MessageOverlay.js +26 -25
  399. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  400. package/lib/module/components/MessageOverlay/OverlayReactionList.js +13 -13
  401. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  402. package/lib/module/components/MessageOverlay/OverlayReactions.js +19 -19
  403. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  404. package/lib/module/components/Reply/Reply.js +8 -8
  405. package/lib/module/components/Reply/Reply.js.map +1 -1
  406. package/lib/module/components/Thread/Thread.js +4 -4
  407. package/lib/module/components/Thread/Thread.js.map +1 -1
  408. package/lib/module/components/Thread/components/ThreadFooterComponent.js +12 -12
  409. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  410. package/lib/module/components/docs/data.js +44 -44
  411. package/lib/module/components/docs/data.js.map +1 -1
  412. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
  413. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  414. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  415. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  416. package/lib/module/contexts/channelsContext/ChannelsContext.js +2 -2
  417. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  418. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  419. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  420. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  421. package/lib/module/contexts/chatContext/ChatContext.js +2 -2
  422. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  423. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  424. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  425. package/lib/module/contexts/keyboardContext/KeyboardContext.js +1 -1
  426. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  427. package/lib/module/contexts/messageContext/MessageContext.js +2 -2
  428. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  429. package/lib/module/contexts/messageInputContext/MessageInputContext.js +2 -4
  430. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  431. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  432. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  433. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +2 -2
  434. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  435. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  436. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  437. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
  438. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  439. package/lib/module/contexts/overlayContext/OverlayProvider.js +12 -12
  440. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  441. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  442. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  443. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +2 -2
  444. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  445. package/lib/module/contexts/threadContext/ThreadContext.js +2 -2
  446. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  447. package/lib/module/contexts/translationContext/TranslationContext.js +2 -2
  448. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  449. package/lib/module/contexts/typingContext/TypingContext.js +2 -2
  450. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  451. package/lib/module/icons/UserAdmin.js +62 -0
  452. package/lib/module/icons/UserAdmin.js.map +1 -0
  453. package/lib/module/init.js +13 -0
  454. package/lib/module/init.js.map +1 -0
  455. package/lib/module/utils/Streami18n.js.map +1 -1
  456. package/lib/module/utils/getResizedImageUrl.js +21 -10
  457. package/lib/module/utils/getResizedImageUrl.js.map +1 -1
  458. package/lib/module/utils/utils.js.map +1 -1
  459. package/lib/module/version.json +1 -1
  460. package/lib/typescript/components/Attachment/Attachment.d.ts +5 -5
  461. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +4 -4
  462. package/lib/typescript/components/Attachment/Card.d.ts +4 -4
  463. package/lib/typescript/components/Attachment/FileAttachment.d.ts +5 -5
  464. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +4 -4
  465. package/lib/typescript/components/Attachment/Gallery.d.ts +5 -5
  466. package/lib/typescript/components/Attachment/Giphy.d.ts +6 -6
  467. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +3 -3
  468. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +3 -3
  469. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +3 -3
  470. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +3 -3
  471. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +3 -3
  472. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +3 -3
  473. package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +2 -2
  474. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +4 -4
  475. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +3 -2
  476. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +4 -4
  477. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +5 -5
  478. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +9 -9
  479. package/lib/typescript/components/Channel/Channel.d.ts +7 -7
  480. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +2 -2
  481. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +3 -3
  482. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +3 -3
  483. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +3 -3
  484. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +3 -3
  485. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +2 -2
  486. package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +2 -2
  487. package/lib/typescript/components/ChannelList/ChannelList.d.ts +14 -14
  488. package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +4 -4
  489. package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +5 -5
  490. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +5 -5
  491. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +5 -5
  492. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +5 -5
  493. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +5 -5
  494. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +5 -5
  495. package/lib/typescript/components/ChannelList/hooks/listeners/useConnectionRecovered.d.ts +2 -2
  496. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +4 -4
  497. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +5 -5
  498. package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +5 -5
  499. package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +4 -4
  500. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +2 -2
  501. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +7 -7
  502. package/lib/typescript/components/ChannelList/utils.d.ts +7 -7
  503. package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +3 -3
  504. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +5 -5
  505. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +4 -5
  506. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +5 -5
  507. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +3 -3
  508. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +3 -3
  509. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +3 -3
  510. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +3 -3
  511. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +3 -3
  512. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +4 -4
  513. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +2 -2
  514. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -5
  515. package/lib/typescript/components/Chat/Chat.d.ts +3 -3
  516. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +2 -2
  517. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +2 -2
  518. package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts +2 -2
  519. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +9 -9
  520. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +10 -10
  521. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +10 -10
  522. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +10 -10
  523. package/lib/typescript/components/Message/Message.d.ts +11 -11
  524. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +4 -4
  525. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +4 -4
  526. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +5 -5
  527. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +6 -6
  528. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +4 -4
  529. package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +4 -4
  530. package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +3 -3
  531. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +4 -4
  532. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +4 -4
  533. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +6 -6
  534. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +4 -4
  535. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +4 -4
  536. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +2 -2
  537. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +2 -2
  538. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +3 -3
  539. package/lib/typescript/components/Message/utils/messageActions.d.ts +5 -5
  540. package/lib/typescript/components/Message/utils/removeReservedFields.d.ts +2 -2
  541. package/lib/typescript/components/MessageInput/AttachButton.d.ts +4 -4
  542. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +4 -4
  543. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +4 -4
  544. package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +4 -4
  545. package/lib/typescript/components/MessageInput/InputButtons.d.ts +5 -5
  546. package/lib/typescript/components/MessageInput/MessageInput.d.ts +4 -4
  547. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +4 -4
  548. package/lib/typescript/components/MessageInput/SendButton.d.ts +4 -4
  549. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +2 -2
  550. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +2 -2
  551. package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +2 -2
  552. package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +2 -2
  553. package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +2 -2
  554. package/lib/typescript/components/MessageList/MessageList.d.ts +7 -7
  555. package/lib/typescript/components/MessageList/MessageSystem.d.ts +4 -4
  556. package/lib/typescript/components/MessageList/TypingIndicator.d.ts +2 -2
  557. package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +4 -4
  558. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +5 -5
  559. package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts +2 -2
  560. package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +3 -3
  561. package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +4 -4
  562. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +4 -4
  563. package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +2 -2
  564. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +8 -5
  565. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +4 -4
  566. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +4 -3
  567. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +4 -4
  568. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +6 -6
  569. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +2 -2
  570. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +1 -1
  571. package/lib/typescript/components/Reply/Reply.d.ts +4 -4
  572. package/lib/typescript/components/Thread/Thread.d.ts +7 -7
  573. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +2 -2
  574. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +2 -2
  575. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +12 -12
  576. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +18 -18
  577. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +19 -19
  578. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +17 -17
  579. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +11 -11
  580. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +8 -8
  581. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +2 -2
  582. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +12 -12
  583. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +33 -33
  584. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +2 -2
  585. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +3 -3
  586. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +21 -21
  587. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +57 -57
  588. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +4 -4
  589. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts +2 -2
  590. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +8 -8
  591. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +20 -20
  592. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +10 -10
  593. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +2 -2
  594. package/lib/typescript/contexts/typingContext/TypingContext.d.ts +8 -8
  595. package/lib/typescript/icons/UserAdmin.d.ts +3 -0
  596. package/lib/typescript/init.d.ts +2 -0
  597. package/lib/typescript/types/types.d.ts +16 -13
  598. package/lib/typescript/utils/Streami18n.d.ts +4 -4
  599. package/lib/typescript/utils/getResizedImageUrl.d.ts +2 -1
  600. package/lib/typescript/utils/utils.d.ts +21 -21
  601. package/package.json +3 -5
  602. package/src/components/Attachment/Attachment.tsx +15 -56
  603. package/src/components/Attachment/AttachmentActions.tsx +15 -55
  604. package/src/components/Attachment/Card.tsx +15 -48
  605. package/src/components/Attachment/FileAttachment.tsx +14 -48
  606. package/src/components/Attachment/FileAttachmentGroup.tsx +16 -57
  607. package/src/components/Attachment/Gallery.tsx +18 -59
  608. package/src/components/Attachment/Giphy.tsx +18 -59
  609. package/src/components/Attachment/__tests__/buildGallery.test.js +4 -4
  610. package/src/components/Attachment/utils/buildGallery/buildGallery.ts +5 -3
  611. package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +6 -10
  612. package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +5 -5
  613. package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +5 -3
  614. package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +5 -3
  615. package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +5 -3
  616. package/src/components/Attachment/utils/getAspectRatio.ts +4 -4
  617. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +21 -61
  618. package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +5 -3
  619. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +12 -19
  620. package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +14 -21
  621. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +21 -24
  622. package/src/components/Channel/Channel.tsx +174 -257
  623. package/src/components/Channel/hooks/useCreateChannelContext.ts +4 -19
  624. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +52 -68
  625. package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -19
  626. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +3 -18
  627. package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +16 -32
  628. package/src/components/Channel/hooks/useCreateThreadContext.ts +4 -19
  629. package/src/components/Channel/hooks/useCreateTypingContext.ts +4 -19
  630. package/src/components/ChannelList/ChannelList.tsx +28 -49
  631. package/src/components/ChannelList/ChannelListMessenger.tsx +19 -70
  632. package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +14 -36
  633. package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +13 -35
  634. package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +13 -35
  635. package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +15 -37
  636. package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +13 -35
  637. package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +14 -36
  638. package/src/components/ChannelList/hooks/listeners/useConnectionRecovered.ts +3 -18
  639. package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +11 -33
  640. package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +13 -35
  641. package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +13 -35
  642. package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +9 -31
  643. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +4 -19
  644. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +11 -29
  645. package/src/components/ChannelList/utils.ts +9 -42
  646. package/src/components/ChannelPreview/ChannelAvatar.tsx +5 -26
  647. package/src/components/ChannelPreview/ChannelPreview.tsx +18 -51
  648. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +11 -21
  649. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +13 -46
  650. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +5 -26
  651. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +6 -27
  652. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +5 -26
  653. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +5 -26
  654. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +7 -28
  655. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +6 -27
  656. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +7 -28
  657. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +27 -78
  658. package/src/components/Chat/Chat.tsx +15 -40
  659. package/src/components/Chat/hooks/useCreateChatContext.ts +4 -19
  660. package/src/components/Chat/hooks/useIsOnline.ts +4 -19
  661. package/src/components/Chat/hooks/useMutedUsers.ts +5 -20
  662. package/src/components/ImageGallery/ImageGallery.tsx +30 -40
  663. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +19 -11
  664. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +19 -11
  665. package/src/components/ImageGallery/components/ImageGrid.tsx +45 -30
  666. package/src/components/Message/Message.tsx +40 -93
  667. package/src/components/Message/MessageSimple/MessageAvatar.tsx +13 -54
  668. package/src/components/Message/MessageSimple/MessageContent.tsx +18 -61
  669. package/src/components/Message/MessageSimple/MessageDeleted.tsx +17 -58
  670. package/src/components/Message/MessageSimple/MessageFooter.tsx +18 -60
  671. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +13 -54
  672. package/src/components/Message/MessageSimple/MessageReplies.tsx +15 -56
  673. package/src/components/Message/MessageSimple/MessageRepliesAvatars.tsx +5 -26
  674. package/src/components/Message/MessageSimple/MessageSimple.tsx +16 -57
  675. package/src/components/Message/MessageSimple/MessageStatus.tsx +13 -54
  676. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +19 -66
  677. package/src/components/Message/MessageSimple/ReactionList.tsx +16 -57
  678. package/src/components/Message/MessageSimple/utils/renderText.tsx +6 -27
  679. package/src/components/Message/hooks/useCreateMessageContext.ts +4 -19
  680. package/src/components/Message/hooks/useMessageActionHandlers.ts +8 -23
  681. package/src/components/Message/hooks/useMessageActions.tsx +8 -23
  682. package/src/components/Message/utils/messageActions.ts +7 -34
  683. package/src/components/Message/utils/removeReservedFields.ts +3 -18
  684. package/src/components/MessageInput/AttachButton.tsx +13 -54
  685. package/src/components/MessageInput/CommandsButton.tsx +15 -56
  686. package/src/components/MessageInput/FileUploadPreview.tsx +15 -57
  687. package/src/components/MessageInput/ImageUploadPreview.tsx +13 -55
  688. package/src/components/MessageInput/InputButtons.tsx +13 -54
  689. package/src/components/MessageInput/MessageInput.tsx +25 -66
  690. package/src/components/MessageInput/MoreOptionsButton.tsx +13 -54
  691. package/src/components/MessageInput/SendButton.tsx +13 -54
  692. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +4 -19
  693. package/src/components/MessageInput/hooks/useCooldown.ts +5 -19
  694. package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +3 -18
  695. package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +3 -18
  696. package/src/components/MessageList/InlineLoadingMoreThreadIndicator.tsx +3 -18
  697. package/src/components/MessageList/MessageList.tsx +34 -76
  698. package/src/components/MessageList/MessageSystem.tsx +5 -26
  699. package/src/components/MessageList/TypingIndicator.tsx +3 -18
  700. package/src/components/MessageList/TypingIndicatorContainer.tsx +14 -47
  701. package/src/components/MessageList/hooks/useMessageList.ts +19 -52
  702. package/src/components/MessageList/hooks/useTypingString.ts +5 -20
  703. package/src/components/MessageList/utils/filterTypingUsers.ts +7 -28
  704. package/src/components/MessageList/utils/getDateSeparators.ts +6 -27
  705. package/src/components/MessageList/utils/getGroupStyles.ts +6 -27
  706. package/src/components/MessageList/utils/getLastReceivedMessage.ts +3 -18
  707. package/src/components/MessageList/utils/getReadStates.ts +5 -20
  708. package/src/components/MessageOverlay/MessageActionList.tsx +15 -56
  709. package/src/components/MessageOverlay/MessageActionListItem.tsx +20 -9
  710. package/src/components/MessageOverlay/MessageOverlay.tsx +38 -81
  711. package/src/components/MessageOverlay/OverlayReactionList.tsx +21 -74
  712. package/src/components/MessageOverlay/OverlayReactions.tsx +3 -18
  713. package/src/components/Reply/Reply.tsx +22 -69
  714. package/src/components/Thread/Thread.tsx +20 -53
  715. package/src/components/Thread/components/ThreadFooterComponent.tsx +12 -47
  716. package/src/components/docs/data.js +38 -37
  717. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +9 -7
  718. package/src/contexts/channelContext/ChannelContext.tsx +15 -48
  719. package/src/contexts/channelsContext/ChannelsContext.tsx +22 -59
  720. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +38 -115
  721. package/src/contexts/channelsStateContext/useChannelState.ts +27 -60
  722. package/src/contexts/chatContext/ChatContext.tsx +14 -49
  723. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +12 -54
  724. package/src/contexts/keyboardContext/KeyboardContext.tsx +13 -7
  725. package/src/contexts/messageContext/MessageContext.tsx +15 -48
  726. package/src/contexts/messageInputContext/MessageInputContext.tsx +61 -112
  727. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +5 -20
  728. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +7 -31
  729. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +24 -71
  730. package/src/contexts/messagesContext/MessagesContext.tsx +60 -99
  731. package/src/contexts/overlayContext/OverlayContext.tsx +18 -26
  732. package/src/contexts/overlayContext/OverlayProvider.tsx +7 -22
  733. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +13 -53
  734. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +39 -40
  735. package/src/contexts/threadContext/ThreadContext.tsx +13 -46
  736. package/src/contexts/translationContext/TranslationContext.tsx +12 -7
  737. package/src/contexts/typingContext/TypingContext.tsx +11 -44
  738. package/src/icons/UserAdmin.tsx +23 -0
  739. package/src/init.ts +5 -0
  740. package/src/types/types.ts +16 -18
  741. package/src/utils/Streami18n.ts +3 -3
  742. package/src/utils/__tests__/getResizedImageUrl.test.js +57 -0
  743. package/src/utils/getResizedImageUrl.ts +33 -17
  744. package/src/utils/utils.ts +63 -128
  745. package/src/version.json +1 -1
  746. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js +0 -100
  747. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js.map +0 -1
  748. package/lib/commonjs/styleguideComponents/BottomSheet.js +0 -25
  749. package/lib/commonjs/styleguideComponents/BottomSheet.js.map +0 -1
  750. package/lib/commonjs/styleguideComponents/JsDoc.js +0 -87
  751. package/lib/commonjs/styleguideComponents/JsDoc.js.map +0 -1
  752. package/lib/commonjs/styleguideComponents/Markdown.js +0 -12
  753. package/lib/commonjs/styleguideComponents/Markdown.js.map +0 -1
  754. package/lib/commonjs/styleguideComponents/PathlineRenderer.js +0 -92
  755. package/lib/commonjs/styleguideComponents/PathlineRenderer.js.map +0 -1
  756. package/lib/commonjs/styleguideComponents/PropsRenderer.js +0 -267
  757. package/lib/commonjs/styleguideComponents/PropsRenderer.js.map +0 -1
  758. package/lib/commonjs/styleguideComponents/Reanimated.js +0 -2
  759. package/lib/commonjs/styleguideComponents/Reanimated.js.map +0 -1
  760. package/lib/commonjs/styleguideComponents/Wrapper.js +0 -29
  761. package/lib/commonjs/styleguideComponents/Wrapper.js.map +0 -1
  762. package/lib/commonjs/styleguideComponents/register-react-native-web.js +0 -44
  763. package/lib/commonjs/styleguideComponents/register-react-native-web.js.map +0 -1
  764. package/lib/commonjs/styleguideComponents/resolveAssetSource.js +0 -11
  765. package/lib/commonjs/styleguideComponents/resolveAssetSource.js.map +0 -1
  766. package/lib/module/styleguideComponents/ArgumentsRenderer.js +0 -100
  767. package/lib/module/styleguideComponents/ArgumentsRenderer.js.map +0 -1
  768. package/lib/module/styleguideComponents/BottomSheet.js +0 -25
  769. package/lib/module/styleguideComponents/BottomSheet.js.map +0 -1
  770. package/lib/module/styleguideComponents/JsDoc.js +0 -87
  771. package/lib/module/styleguideComponents/JsDoc.js.map +0 -1
  772. package/lib/module/styleguideComponents/Markdown.js +0 -12
  773. package/lib/module/styleguideComponents/Markdown.js.map +0 -1
  774. package/lib/module/styleguideComponents/PathlineRenderer.js +0 -92
  775. package/lib/module/styleguideComponents/PathlineRenderer.js.map +0 -1
  776. package/lib/module/styleguideComponents/PropsRenderer.js +0 -267
  777. package/lib/module/styleguideComponents/PropsRenderer.js.map +0 -1
  778. package/lib/module/styleguideComponents/Reanimated.js +0 -2
  779. package/lib/module/styleguideComponents/Reanimated.js.map +0 -1
  780. package/lib/module/styleguideComponents/Wrapper.js +0 -29
  781. package/lib/module/styleguideComponents/Wrapper.js.map +0 -1
  782. package/lib/module/styleguideComponents/register-react-native-web.js +0 -44
  783. package/lib/module/styleguideComponents/register-react-native-web.js.map +0 -1
  784. package/lib/module/styleguideComponents/resolveAssetSource.js +0 -11
  785. package/lib/module/styleguideComponents/resolveAssetSource.js.map +0 -1
  786. package/src/styleguideComponents/ArgumentsRenderer.tsx +0 -60
  787. package/src/styleguideComponents/BottomSheet.tsx +0 -3
  788. package/src/styleguideComponents/JsDoc.tsx +0 -45
  789. package/src/styleguideComponents/Markdown.tsx +0 -1
  790. package/src/styleguideComponents/PathlineRenderer.tsx +0 -45
  791. package/src/styleguideComponents/PropsRenderer.tsx +0 -141
  792. package/src/styleguideComponents/Reanimated.tsx +0 -0
  793. package/src/styleguideComponents/Wrapper.tsx +0 -7
  794. package/src/styleguideComponents/register-react-native-web.js +0 -13
  795. package/src/styleguideComponents/resolveAssetSource.js +0 -2
@@ -1,5 +1,5 @@
1
1
  import type { ChannelState, MessageResponse } from 'stream-chat';
2
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../../types/types';
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
3
  export declare type UseMessageListParams = {
4
4
  deletedMessagesVisibilityType?: 'always' | 'never' | 'receiver' | 'sender';
5
5
  inverted?: boolean;
@@ -7,11 +7,11 @@ export declare type UseMessageListParams = {
7
7
  threadList?: boolean;
8
8
  };
9
9
  export declare type GroupType = 'bottom' | 'middle' | 'single' | 'top';
10
- export declare type MessagesWithStylesReadByAndDateSeparator<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = MessageResponse<At, Ch, Co, Me, Re, Us> & {
10
+ export declare type MessagesWithStylesReadByAndDateSeparator<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageResponse<StreamChatGenerics> & {
11
11
  groupStyles: GroupType[];
12
12
  readBy: boolean | number;
13
13
  dateSeparator?: Date;
14
14
  };
15
- export declare type MessageType<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = ReturnType<ChannelState<At, Ch, Co, Ev, Me, Re, Us>['formatMessage']> | MessagesWithStylesReadByAndDateSeparator<At, Ch, Co, Me, Re, Us>;
16
- export declare const isMessageWithStylesReadByAndDateSeparator: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(message: MessageType<At, Ch, Co, Ev, Me, Re, Us>) => message is MessagesWithStylesReadByAndDateSeparator<At, Ch, Co, Me, Re, Us>;
17
- export declare const useMessageList: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(params: UseMessageListParams) => MessageType<At, Ch, Co, Ev, Me, Re, Us>[];
15
+ export declare type MessageType<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ReturnType<ChannelState<StreamChatGenerics>['formatMessage']> | MessagesWithStylesReadByAndDateSeparator<StreamChatGenerics>;
16
+ export declare const isMessageWithStylesReadByAndDateSeparator: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: MessageType<StreamChatGenerics>) => message is MessagesWithStylesReadByAndDateSeparator<StreamChatGenerics>;
17
+ export declare const useMessageList: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(params: UseMessageListParams) => MessageType<StreamChatGenerics>[];
@@ -1,2 +1,2 @@
1
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
2
- export declare const useTypingString: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>() => string;
1
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
2
+ export declare const useTypingString: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => string;
@@ -1,7 +1,7 @@
1
1
  import type { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
2
2
  import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
3
3
  import type { TypingContextValue } from '../../../contexts/typingContext/TypingContext';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../../types/types';
5
- declare type FilterTypingUsersParams<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = Pick<TypingContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'typing'> & Pick<ChatContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'client'> & Pick<ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'thread'>;
6
- export declare const filterTypingUsers: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>({ client, thread, typing, }: FilterTypingUsersParams<At, Ch, Co, Ev, Me, Re, Us>) => string[];
4
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
5
+ declare type FilterTypingUsersParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<TypingContextValue<StreamChatGenerics>, 'typing'> & Pick<ChatContextValue<StreamChatGenerics>, 'client'> & Pick<ThreadContextValue<StreamChatGenerics>, 'thread'>;
6
+ export declare const filterTypingUsers: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ client, thread, typing, }: FilterTypingUsersParams<StreamChatGenerics>) => string[];
7
7
  export {};
@@ -1,12 +1,12 @@
1
1
  import type { PaginatedMessageListContextValue } from '../../../contexts/paginatedMessageListContext/PaginatedMessageListContext';
2
2
  import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
3
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../../types/types';
4
- export declare type GetDateSeparatorsParams<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = {
5
- messages: PaginatedMessageListContextValue<At, Ch, Co, Ev, Me, Re, Us>['messages'] | ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>['threadMessages'];
3
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
4
+ export declare type GetDateSeparatorsParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
5
+ messages: PaginatedMessageListContextValue<StreamChatGenerics>['messages'] | ThreadContextValue<StreamChatGenerics>['threadMessages'];
6
6
  hideDateSeparators?: boolean;
7
7
  userId?: string;
8
8
  };
9
9
  export declare type DateSeparators = {
10
10
  [key: string]: Date;
11
11
  };
12
- export declare const getDateSeparators: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(params: GetDateSeparatorsParams<At, Ch, Co, Ev, Me, Re, Us>) => DateSeparators;
12
+ export declare const getDateSeparators: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(params: GetDateSeparatorsParams<StreamChatGenerics>) => DateSeparators;
@@ -1,16 +1,16 @@
1
1
  import type { DateSeparators } from './getDateSeparators';
2
2
  import type { PaginatedMessageListContextValue } from '../../../contexts/paginatedMessageListContext/PaginatedMessageListContext';
3
3
  import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../../types/types';
4
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
5
5
  import type { GroupType } from '../hooks/useMessageList';
6
- export declare type GetGroupStylesParams<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = {
6
+ export declare type GetGroupStylesParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
7
7
  dateSeparators: DateSeparators;
8
- messages: PaginatedMessageListContextValue<At, Ch, Co, Ev, Me, Re, Us>['messages'] | ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>['threadMessages'];
8
+ messages: PaginatedMessageListContextValue<StreamChatGenerics>['messages'] | ThreadContextValue<StreamChatGenerics>['threadMessages'];
9
9
  hideDateSeparators?: boolean;
10
10
  maxTimeBetweenGroupedMessages?: number;
11
11
  noGroupByUser?: boolean;
12
12
  userId?: string;
13
13
  };
14
- export declare const getGroupStyles: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(params: GetGroupStylesParams<At, Ch, Co, Ev, Me, Re, Us>) => {
14
+ export declare const getGroupStyles: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(params: GetGroupStylesParams<StreamChatGenerics>) => {
15
15
  [key: string]: GroupType[];
16
16
  };
@@ -1,3 +1,3 @@
1
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
1
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
2
2
  import type { MessageType } from '../hooks/useMessageList';
3
- export declare const getLastReceivedMessage: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(messages: MessageType<At, Ch, Co, Ev, Me, Re, Us>[]) => MessageType<At, Ch, Co, Ev, Me, Re, Us> | undefined;
3
+ export declare const getLastReceivedMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(messages: MessageType<StreamChatGenerics>[]) => MessageType<StreamChatGenerics> | undefined;
@@ -1,9 +1,12 @@
1
1
  import type { PaginatedMessageListContextValue } from '../../../contexts/paginatedMessageListContext/PaginatedMessageListContext';
2
2
  import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
3
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
4
- export declare const getReadStates: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(clientUserId: string | undefined, messages: import("stream-chat").FormatMessageResponse<At, Ch, Co, Me, Re, Us>[], read?: Record<string, {
5
- last_read: Date;
6
- user: import("stream-chat").UserResponse<Us>;
7
- }> | undefined) => {
3
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
4
+ export declare const getReadStates: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(clientUserId: string | undefined, messages: import("stream-chat").FormatMessageResponse<StreamChatGenerics>[], read?: {
5
+ [x: string]: {
6
+ last_read: Date;
7
+ unread_messages: number;
8
+ user: import("stream-chat").UserResponse<StreamChatGenerics>;
9
+ };
10
+ } | undefined) => {
8
11
  [key: string]: number | boolean;
9
12
  };
@@ -1,12 +1,12 @@
1
1
  import Animated from 'react-native-reanimated';
2
2
  import { MessageOverlayData } from '../../contexts/messageOverlayContext/MessageOverlayContext';
3
3
  import type { OverlayProviderProps } from '../../contexts/overlayContext/OverlayContext';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
- export declare type MessageActionListPropsWithContext<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = Pick<OverlayProviderProps<At, Ch, Co, Ev, Me, Re, Us>, 'MessageActionListItem' | 'error' | 'isMyMessage' | 'isThreadMessage' | 'message' | 'messageReactions'> & Pick<MessageOverlayData<At, Ch, Co, Ev, Me, Re, Us>, 'alignment' | 'messageActions'> & {
4
+ import type { DefaultStreamChatGenerics } from '../../types/types';
5
+ export declare type MessageActionListPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<OverlayProviderProps<StreamChatGenerics>, 'MessageActionListItem' | 'error' | 'isMyMessage' | 'isThreadMessage' | 'message' | 'messageReactions'> & Pick<MessageOverlayData<StreamChatGenerics>, 'alignment' | 'messageActions'> & {
6
6
  showScreen: Animated.SharedValue<number>;
7
7
  };
8
- export declare type MessageActionListProps<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = Partial<Omit<MessageActionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'showScreen'>> & Pick<MessageActionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'showScreen' | 'message' | 'isMyMessage' | 'error' | 'isThreadMessage' | 'messageReactions'>;
8
+ export declare type MessageActionListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<MessageActionListPropsWithContext<StreamChatGenerics>, 'showScreen'>> & Pick<MessageActionListPropsWithContext<StreamChatGenerics>, 'showScreen' | 'message' | 'isMyMessage' | 'error' | 'isThreadMessage' | 'messageReactions'>;
9
9
  /**
10
10
  * MessageActionList - A high level component which implements all the logic required for MessageActions
11
11
  */
12
- export declare const MessageActionList: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(props: MessageActionListProps<At, Ch, Co, Ev, Me, Re, Us>) => JSX.Element;
12
+ export declare const MessageActionList: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageActionListProps<StreamChatGenerics>) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, TextStyle } from 'react-native';
3
+ import type { DefaultStreamChatGenerics } from '../../types/types';
3
4
  import type { MessageOverlayPropsWithContext } from '../MessageOverlay/MessageOverlay';
4
5
  export declare type ActionType = 'blockUser' | 'copyMessage' | 'deleteMessage' | 'editMessage' | 'flagMessage' | 'muteUser' | 'pinMessage' | 'selectReaction' | 'reply' | 'retry' | 'quotedReply' | 'threadReply' | 'unpinMessage';
5
6
  export declare type MessageActionType = {
@@ -9,12 +10,12 @@ export declare type MessageActionType = {
9
10
  icon?: React.ReactElement;
10
11
  titleStyle?: StyleProp<TextStyle>;
11
12
  };
12
- export declare type MessageActionListItemProps = MessageActionType & Pick<MessageOverlayPropsWithContext, 'error' | 'isMyMessage' | 'isThreadMessage' | 'message' | 'messageReactions'> & {
13
+ export declare type MessageActionListItemProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionType & Pick<MessageOverlayPropsWithContext<StreamChatGenerics>, 'error' | 'isMyMessage' | 'isThreadMessage' | 'message' | 'messageReactions'> & {
13
14
  index: number;
14
15
  length: number;
15
16
  };
16
- export declare const MemoizedMessageActionListItem: (props: MessageActionListItemProps) => JSX.Element;
17
+ export declare const MemoizedMessageActionListItem: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageActionListItemProps<StreamChatGenerics>) => JSX.Element;
17
18
  /**
18
19
  * MessageActionListItem - A high-level component that implements all the logic required for a `MessageAction` in a `MessageActionList`
19
20
  */
20
- export declare const MessageActionListItem: (props: MessageActionListItemProps) => JSX.Element;
21
+ export declare const MessageActionListItem: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageActionListItemProps<StreamChatGenerics>) => JSX.Element;
@@ -1,13 +1,13 @@
1
1
  import Animated from 'react-native-reanimated';
2
2
  import { MessageOverlayContextValue, MessageOverlayData } from '../../contexts/messageOverlayContext/MessageOverlayContext';
3
3
  import { OverlayContextValue, OverlayProviderProps } from '../../contexts/overlayContext/OverlayContext';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
- export declare type MessageOverlayPropsWithContext<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends DefaultUserType = DefaultUserType> = Pick<MessageOverlayContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'MessageActionList' | 'MessageActionListItem' | 'OverlayReactionList' | 'OverlayReactions' | 'OverlayReactionsAvatar' | 'reset'> & Omit<MessageOverlayData<At, Ch, Co, Ev, Me, Re, Us>, 'supportedReactions'> & Pick<OverlayContextValue, 'overlay' | 'setOverlay'> & Pick<OverlayProviderProps<At, Ch, Co, Ev, Me, Re, Us>, 'error' | 'isMyMessage' | 'isThreadMessage' | 'message' | 'messageReactions' | 'messageTextNumberOfLines' | 'overlayOpacity'> & {
4
+ import type { DefaultStreamChatGenerics } from '../../types/types';
5
+ export declare type MessageOverlayPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageOverlayContextValue<StreamChatGenerics>, 'MessageActionList' | 'MessageActionListItem' | 'OverlayReactionList' | 'OverlayReactions' | 'OverlayReactionsAvatar' | 'reset'> & Omit<MessageOverlayData<StreamChatGenerics>, 'supportedReactions'> & Pick<OverlayContextValue, 'overlay' | 'setOverlay'> & Pick<OverlayProviderProps<StreamChatGenerics>, 'error' | 'isMyMessage' | 'isThreadMessage' | 'message' | 'messageReactions' | 'messageTextNumberOfLines' | 'overlayOpacity'> & {
6
6
  showScreen?: Animated.SharedValue<number>;
7
7
  visible?: boolean;
8
8
  };
9
- export declare type MessageOverlayProps<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends DefaultUserType = DefaultUserType> = Partial<Omit<MessageOverlayPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'overlayOpacity'>> & Pick<MessageOverlayPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'overlayOpacity'> & Pick<MessageOverlayPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'isMyMessage' | 'error' | 'isThreadMessage' | 'messageReactions'>;
9
+ export declare type MessageOverlayProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<MessageOverlayPropsWithContext<StreamChatGenerics>, 'overlayOpacity'>> & Pick<MessageOverlayPropsWithContext<StreamChatGenerics>, 'overlayOpacity'> & Pick<MessageOverlayPropsWithContext<StreamChatGenerics>, 'isMyMessage' | 'error' | 'isThreadMessage' | 'message' | 'messageReactions'>;
10
10
  /**
11
11
  * MessageOverlay - A high level component which implements all the logic required for a message overlay
12
12
  */
13
- export declare const MessageOverlay: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends DefaultUserType = DefaultUserType>(props: MessageOverlayProps<At, Ch, Co, Ev, Me, Re, Us>) => JSX.Element;
13
+ export declare const MessageOverlay: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageOverlayProps<StreamChatGenerics>) => JSX.Element;
@@ -5,16 +5,16 @@ import { MessageOverlayData } from '../../contexts/messageOverlayContext/Message
5
5
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
6
6
  import { OverlayContextValue } from '../../contexts/overlayContext/OverlayContext';
7
7
  import { IconProps } from '../../icons';
8
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
9
- declare type ReactionButtonProps<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends DefaultUserType = DefaultUserType> = Pick<OverlayReactionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'ownReactionTypes' | 'handleReaction' | 'setOverlay'> & {
8
+ import type { DefaultStreamChatGenerics } from '../../types/types';
9
+ declare type ReactionButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<OverlayReactionListPropsWithContext<StreamChatGenerics>, 'ownReactionTypes' | 'handleReaction' | 'setOverlay'> & {
10
10
  Icon: React.FC<IconProps>;
11
11
  index: number;
12
12
  numberOfReactions: number;
13
13
  showScreen: Animated.SharedValue<number>;
14
14
  type: string;
15
15
  };
16
- export declare const ReactionButton: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends DefaultUserType = DefaultUserType>(props: ReactionButtonProps<At, Ch, Co, Ev, Me, Re, Us>) => JSX.Element;
17
- export declare type OverlayReactionListPropsWithContext<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends DefaultUserType = DefaultUserType> = Pick<MessageOverlayData<At, Ch, Co, Ev, Me, Re, Us>, 'alignment' | 'handleReaction' | 'messagesContext'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'supportedReactions'> & Pick<OverlayContextValue, 'setOverlay'> & {
16
+ export declare const ReactionButton: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: ReactionButtonProps<StreamChatGenerics>) => JSX.Element;
17
+ export declare type OverlayReactionListPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageOverlayData<StreamChatGenerics>, 'alignment' | 'handleReaction' | 'messagesContext'> & Pick<MessagesContextValue<StreamChatGenerics>, 'supportedReactions'> & Pick<OverlayContextValue, 'setOverlay'> & {
18
18
  messageLayout: Animated.SharedValue<{
19
19
  x: number;
20
20
  y: number;
@@ -24,12 +24,12 @@ export declare type OverlayReactionListPropsWithContext<At extends UnknownType =
24
24
  showScreen: Animated.SharedValue<number>;
25
25
  fill?: FillProps['fill'];
26
26
  };
27
- export declare type OverlayReactionListProps<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends DefaultUserType = DefaultUserType> = Omit<OverlayReactionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'setOverlay' | 'supportedReactions'> & Partial<Pick<OverlayReactionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'setOverlay' | 'supportedReactions'>>;
27
+ export declare type OverlayReactionListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Omit<OverlayReactionListPropsWithContext<StreamChatGenerics>, 'setOverlay' | 'supportedReactions'> & Partial<Pick<OverlayReactionListPropsWithContext<StreamChatGenerics>, 'setOverlay' | 'supportedReactions'>>;
28
28
  /**
29
29
  * OverlayReactionList - A high level component which implements all the logic required for a message overlay reaction list
30
30
  */
31
31
  export declare const OverlayReactionList: {
32
- <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends DefaultUserType = DefaultUserType>(props: OverlayReactionListProps<At, Ch, Co, Ev, Me, Re, Us>): JSX.Element;
32
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: OverlayReactionListProps<StreamChatGenerics>): JSX.Element;
33
33
  displayName: string;
34
34
  };
35
35
  export {};
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Animated from 'react-native-reanimated';
3
3
  import type { Alignment } from '../../contexts/messageContext/MessageContext';
4
4
  import type { MessageOverlayContextValue } from '../../contexts/messageOverlayContext/MessageOverlayContext';
5
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
6
  import type { ReactionData } from '../../utils/utils';
7
7
  export declare type Reaction = {
8
8
  alignment: Alignment;
@@ -10,7 +10,7 @@ export declare type Reaction = {
10
10
  type: string;
11
11
  image?: string;
12
12
  };
13
- export declare type OverlayReactionsProps<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends DefaultUserType = DefaultUserType> = Pick<MessageOverlayContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'OverlayReactionsAvatar'> & {
13
+ export declare type OverlayReactionsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageOverlayContextValue<StreamChatGenerics>, 'OverlayReactionsAvatar'> & {
14
14
  reactions: Reaction[];
15
15
  showScreen: Animated.SharedValue<number>;
16
16
  title: string;
@@ -1,7 +1,7 @@
1
1
  import type { ViewStyle } from 'react-native';
2
2
  import type { TapGestureHandlerStateChangeEvent } from 'react-native-gesture-handler';
3
3
  import type { MessageActionListItemProps } from '../MessageActionListItem';
4
- export declare const useMessageActionAnimation: ({ action, activeOpacity, }: Pick<MessageActionListItemProps, "action"> & {
4
+ export declare const useMessageActionAnimation: ({ action, activeOpacity, }: Pick<MessageActionListItemProps<import("../../..").DefaultStreamChatGenerics>, "action"> & {
5
5
  activeOpacity?: number | undefined;
6
6
  }) => {
7
7
  animatedStyle: ViewStyle;
@@ -2,8 +2,8 @@ import { ImageStyle, ViewStyle } from 'react-native';
2
2
  import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
3
3
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
4
4
  import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
5
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
6
- declare type ReplyPropsWithContext<At extends DefaultAttachmentType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = Pick<MessageInputContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'quotedMessage'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'FileAttachmentIcon' | 'MessageAvatar'> & Pick<TranslationContextValue, 't'> & {
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
+ declare type ReplyPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageInputContextValue<StreamChatGenerics>, 'quotedMessage'> & Pick<MessagesContextValue<StreamChatGenerics>, 'FileAttachmentIcon' | 'MessageAvatar'> & Pick<TranslationContextValue, 't'> & {
7
7
  attachmentSize?: number;
8
8
  styles?: Partial<{
9
9
  container: ViewStyle;
@@ -13,12 +13,12 @@ declare type ReplyPropsWithContext<At extends DefaultAttachmentType = DefaultAtt
13
13
  textContainer: ViewStyle;
14
14
  }>;
15
15
  };
16
- export declare type ReplyProps<At extends DefaultAttachmentType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = Partial<ReplyPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>;
16
+ export declare type ReplyProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<ReplyPropsWithContext<StreamChatGenerics>>;
17
17
  /**
18
18
  * UI Component for reply
19
19
  */
20
20
  export declare const Reply: {
21
- <At extends DefaultAttachmentType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(props: Partial<ReplyPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>): JSX.Element;
21
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<ReplyPropsWithContext<StreamChatGenerics>>): JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
  export {};
@@ -2,20 +2,20 @@ import React from 'react';
2
2
  import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
3
3
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
4
4
  import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
5
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
6
  import { MessageInputProps } from '../MessageInput/MessageInput';
7
7
  import type { MessageListProps } from '../MessageList/MessageList';
8
- declare type ThreadPropsWithContext<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = Pick<ChatContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'client'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'MessageList'> & Pick<ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'closeThread' | 'loadMoreThread' | 'reloadThread' | 'thread'> & {
8
+ declare type ThreadPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> & Pick<MessagesContextValue<StreamChatGenerics>, 'MessageList'> & Pick<ThreadContextValue<StreamChatGenerics>, 'closeThread' | 'loadMoreThread' | 'reloadThread' | 'thread'> & {
9
9
  /**
10
10
  * Additional props for underlying MessageInput component.
11
11
  * Available props - https://getstream.github.io/stream-chat-react-native/v3/#messageinput
12
12
  * */
13
- additionalMessageInputProps?: Partial<MessageInputProps<At, Ch, Co, Ev, Me, Re, Us>>;
13
+ additionalMessageInputProps?: Partial<MessageInputProps<StreamChatGenerics>>;
14
14
  /**
15
15
  * Additional props for underlying MessageList component.
16
16
  * Available props - https://getstream.github.io/stream-chat-react-native/v3/#messagelist
17
17
  * */
18
- additionalMessageListProps?: Partial<MessageListProps<At, Ch, Co, Ev, Me, Re, Us>>;
18
+ additionalMessageListProps?: Partial<MessageListProps<StreamChatGenerics>>;
19
19
  /** Make input focus on mounting thread */
20
20
  autoFocus?: boolean;
21
21
  /** Closes thread on dismount, defaults to true */
@@ -26,13 +26,13 @@ declare type ThreadPropsWithContext<At extends UnknownType = DefaultAttachmentTy
26
26
  * **Customized MessageInput component to used within Thread instead of default MessageInput
27
27
  * **Available from [MessageInput](https://getstream.github.io/stream-chat-react-native/v3/#messageinput)**
28
28
  */
29
- MessageInput?: React.ComponentType<MessageInputProps<At, Ch, Co, Ev, Me, Re, Us>>;
29
+ MessageInput?: React.ComponentType<MessageInputProps<StreamChatGenerics>>;
30
30
  /**
31
31
  * Call custom function on closing thread if handling thread state elsewhere
32
32
  */
33
33
  onThreadDismount?: () => void;
34
34
  };
35
- export declare type ThreadProps<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = Partial<ThreadPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>;
35
+ export declare type ThreadProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<ThreadPropsWithContext<StreamChatGenerics>>;
36
36
  /**
37
37
  * Thread - The Thread renders a parent message with a list of replies. Use the standard message list of the main channel's messages.
38
38
  * The thread is only used for the list of replies to a message.
@@ -42,5 +42,5 @@ export declare type ThreadProps<At extends UnknownType = DefaultAttachmentType,
42
42
  * - additionalMessageListProps
43
43
  * - additionalMessageInputProps
44
44
  */
45
- export declare const Thread: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(props: Partial<ThreadPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>) => JSX.Element;
45
+ export declare const Thread: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<ThreadPropsWithContext<StreamChatGenerics>>) => JSX.Element;
46
46
  export {};
@@ -1,2 +1,2 @@
1
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
2
- export declare const ThreadFooterComponent: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>() => JSX.Element;
1
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
2
+ export declare const ThreadFooterComponent: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import type { Asset } from '../../native';
3
- import type { UnknownType } from '../../types/types';
3
+ import type { DefaultStreamChatGenerics } from '../../types/types';
4
4
  export declare type AttachmentPickerIconProps = {
5
5
  numberOfImageUploads: number;
6
6
  selectedPicker?: 'images';
@@ -54,4 +54,4 @@ export declare const AttachmentPickerProvider: ({ children, value, }: React.Prop
54
54
  value?: (Pick<AttachmentPickerContextValue, "attachmentSelectionBarHeight" | "attachmentPickerBottomSheetHeight" | "CameraSelectorIcon" | "closePicker" | "FileSelectorIcon" | "ImageSelectorIcon" | "openPicker"> & Partial<Pick<AttachmentPickerContextValue, "bottomInset" | "topInset">>) | undefined;
55
55
  }>) => JSX.Element;
56
56
  export declare const useAttachmentPickerContext: () => AttachmentPickerContextValue;
57
- export declare const withAttachmentPickerContext: <P extends UnknownType>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof AttachmentPickerContextValue>>;
57
+ export declare const withAttachmentPickerContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<StreamChatGenerics>) => React.FC<Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>>;
@@ -2,8 +2,8 @@ import React, { PropsWithChildren } from 'react';
2
2
  import type { Channel, ChannelState } from 'stream-chat';
3
3
  import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
4
4
  import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
5
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
6
- export declare type ChannelContextValue<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = {
5
+ import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
6
+ export declare type ChannelContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
7
7
  /**
8
8
  * Instance of channel object from stream-chat package.
9
9
  *
@@ -26,7 +26,7 @@ export declare type ChannelContextValue<At extends UnknownType = DefaultAttachme
26
26
  *
27
27
  * @overrideType Channel
28
28
  */
29
- channel: Channel<At, Ch, Co, Ev, Me, Re, Us>;
29
+ channel: Channel<StreamChatGenerics>;
30
30
  /**
31
31
  * Custom UI component to display empty state when channel has no messages.
32
32
  *
@@ -96,12 +96,12 @@ export declare type ChannelContextValue<At extends UnknownType = DefaultAttachme
96
96
  * }
97
97
  * ```
98
98
  */
99
- members: ChannelState<At, Ch, Co, Ev, Me, Re, Us>['members'];
99
+ members: ChannelState<StreamChatGenerics>['members'];
100
100
  /**
101
101
  * Custom network down indicator to override the Stream default
102
102
  */
103
103
  NetworkDownIndicator: React.ComponentType;
104
- read: ChannelState<At, Ch, Co, Ev, Me, Re, Us>['read'];
104
+ read: ChannelState<StreamChatGenerics>['read'];
105
105
  reloadChannel: () => Promise<void>;
106
106
  /**
107
107
  * When true, messagelist will be scrolled to first unread message, when opened.
@@ -132,7 +132,7 @@ export declare type ChannelContextValue<At extends UnknownType = DefaultAttachme
132
132
  * }
133
133
  * ```
134
134
  */
135
- watchers: ChannelState<At, Ch, Co, Ev, Me, Re, Us>['watchers'];
135
+ watchers: ChannelState<StreamChatGenerics>['watchers'];
136
136
  disabled?: boolean;
137
137
  enableMessageGroupingByUser?: boolean;
138
138
  isChannelActive?: boolean;
@@ -156,16 +156,16 @@ export declare type ChannelContextValue<At extends UnknownType = DefaultAttachme
156
156
  */
157
157
  targetedMessage?: string;
158
158
  threadList?: boolean;
159
- watcherCount?: ChannelState<At, Ch, Co, Ev, Me, Re, Us>['watcher_count'];
159
+ watcherCount?: ChannelState<StreamChatGenerics>['watcher_count'];
160
160
  };
161
- export declare const ChannelContext: React.Context<ChannelContextValue<DefaultAttachmentType, DefaultChannelType, import("stream-chat").LiteralStringForUnion, UnknownType, UnknownType, UnknownType, DefaultUserType>>;
162
- export declare const ChannelProvider: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>({ children, value, }: React.PropsWithChildren<{
163
- value: ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>;
161
+ export declare const ChannelContext: React.Context<ChannelContextValue<DefaultStreamChatGenerics>>;
162
+ export declare const ChannelProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
163
+ value: ChannelContextValue<StreamChatGenerics>;
164
164
  }>) => JSX.Element;
165
- export declare const useChannelContext: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>() => ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>;
165
+ export declare const useChannelContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ChannelContextValue<StreamChatGenerics>;
166
166
  /**
167
167
  * Typescript currently does not support partial inference so if ChatContext
168
168
  * typing is desired while using the HOC withChannelContext the Props for the
169
169
  * wrapped component must be provided as the first generic.
170
170
  */
171
- export declare const withChannelContext: <P extends UnknownType, At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>>>;
171
+ export declare const withChannelContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ChannelContextValue<StreamChatGenerics>>>;
@@ -14,8 +14,8 @@ import type { ChannelPreviewUnreadCountProps } from '../../components/ChannelPre
14
14
  import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
15
15
  import type { LoadingErrorProps } from '../../components/Indicators/LoadingErrorIndicator';
16
16
  import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
17
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
18
- export declare type ChannelsContextValue<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = {
17
+ import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
18
+ export declare type ChannelsContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
19
19
  /**
20
20
  * Besides the existing default behavior of the ChannelListMessenger component, you can attach
21
21
  * additional props to the underlying React Native FlatList.
@@ -33,11 +33,11 @@ export declare type ChannelsContextValue<At extends UnknownType = DefaultAttachm
33
33
  *
34
34
  * **Note:** Don't use `additionalFlatListProps` to access the FlatList ref, use `setFlatListRef`
35
35
  */
36
- additionalFlatListProps: Partial<FlatListProps<Channel<At, Ch, Co, Ev, Me, Re, Us>>>;
36
+ additionalFlatListProps: Partial<FlatListProps<Channel<StreamChatGenerics>>>;
37
37
  /**
38
38
  * Channels can be either an array of channels or a promise which resolves to an array of channels
39
39
  */
40
- channels: Channel<At, Ch, Co, Ev, Me, Re, Us>[];
40
+ channels: Channel<StreamChatGenerics>[];
41
41
  /**
42
42
  * Custom indicator to use when channel list is empty
43
43
  *
@@ -111,7 +111,7 @@ export declare type ChannelsContextValue<At extends UnknownType = DefaultAttachm
111
111
  *
112
112
  * Default: [ChannelPreviewMessenger](https://getstream.github.io/stream-chat-react-native/v3/#channelpreviewmessenger)
113
113
  */
114
- Preview: React.ComponentType<ChannelPreviewMessengerProps<At, Ch, Co, Ev, Me, Re, Us>>;
114
+ Preview: React.ComponentType<ChannelPreviewMessengerProps<StreamChatGenerics>>;
115
115
  /**
116
116
  * Triggered when the channel list is refreshing, displays a loading spinner at the top of the list
117
117
  */
@@ -137,7 +137,7 @@ export declare type ChannelsContextValue<At extends UnknownType = DefaultAttachm
137
137
  * }}
138
138
  * ```
139
139
  */
140
- setFlatListRef: (ref: FlatList<Channel<At, Ch, Co, Ev, Me, Re, Us>> | null) => void;
140
+ setFlatListRef: (ref: FlatList<Channel<StreamChatGenerics>> | null) => void;
141
141
  /**
142
142
  * Custom UI component to display loading channel skeletons
143
143
  *
@@ -154,52 +154,52 @@ export declare type ChannelsContextValue<At extends UnknownType = DefaultAttachm
154
154
  *
155
155
  * @param channel A channel object
156
156
  */
157
- onSelect?: (channel: Channel<At, Ch, Co, Ev, Me, Re, Us>) => void;
157
+ onSelect?: (channel: Channel<StreamChatGenerics>) => void;
158
158
  /**
159
159
  * Custom UI component to render preview avatar.
160
160
  *
161
161
  * **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelAvatar.tsx)
162
162
  */
163
- PreviewAvatar?: React.ComponentType<ChannelAvatarProps<At, Ch, Co, Ev, Me, Re, Us>>;
163
+ PreviewAvatar?: React.ComponentType<ChannelAvatarProps<StreamChatGenerics>>;
164
164
  /**
165
165
  * Custom UI component to render preview of latest message on channel.
166
166
  *
167
167
  * **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewMessage.tsx)
168
168
  */
169
- PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps<At, Ch, Co, Ev, Me, Re, Us>>;
169
+ PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps<StreamChatGenerics>>;
170
170
  /**
171
171
  * Custom UI component to render muted status.
172
172
  *
173
173
  * **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)
174
174
  */
175
- PreviewMutedStatus?: React.ComponentType<ChannelPreviewMutedStatusProps<At, Ch, Co, Ev, Me, Re, Us>>;
175
+ PreviewMutedStatus?: React.ComponentType<ChannelPreviewMutedStatusProps<StreamChatGenerics>>;
176
176
  /**
177
177
  * Custom UI component to render preview avatar.
178
178
  *
179
179
  * **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewStatus.tsx)
180
180
  */
181
- PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps<At, Ch, Co, Ev, Me, Re, Us>>;
181
+ PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps<StreamChatGenerics>>;
182
182
  /**
183
183
  * Custom UI component to render preview avatar.
184
184
  *
185
185
  * **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
186
186
  */
187
- PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps<At, Ch, Co, Ev, Me, Re, Us>>;
187
+ PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps<StreamChatGenerics>>;
188
188
  /**
189
189
  * Custom UI component to render preview avatar.
190
190
  *
191
191
  * **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)
192
192
  */
193
- PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps<At, Ch, Co, Ev, Me, Re, Us>>;
193
+ PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps<StreamChatGenerics>>;
194
194
  };
195
- export declare const ChannelsContext: React.Context<ChannelsContextValue<DefaultAttachmentType, DefaultChannelType, import("stream-chat").LiteralStringForUnion, UnknownType, UnknownType, UnknownType, DefaultUserType>>;
196
- export declare const ChannelsProvider: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>({ children, value, }: React.PropsWithChildren<{
197
- value: ChannelsContextValue<At, Ch, Co, Ev, Me, Re, Us>;
195
+ export declare const ChannelsContext: React.Context<ChannelsContextValue<DefaultStreamChatGenerics>>;
196
+ export declare const ChannelsProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
197
+ value: ChannelsContextValue<StreamChatGenerics>;
198
198
  }>) => JSX.Element;
199
- export declare const useChannelsContext: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>() => ChannelsContextValue<At, Ch, Co, Ev, Me, Re, Us>;
199
+ export declare const useChannelsContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ChannelsContextValue<StreamChatGenerics>;
200
200
  /**
201
201
  * Typescript currently does not support partial inference so if ChatContext
202
202
  * typing is desired while using the HOC withChannelContext the Props for the
203
203
  * wrapped component must be provided as the first generic.
204
204
  */
205
- export declare const withChannelsContext: <P extends UnknownType, At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ChannelsContextValue<At, Ch, Co, Ev, Me, Re, Us>>>;
205
+ export declare const withChannelsContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>>;