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,20 +1,20 @@
1
1
  import { StyleProp, TextStyle, ViewStyle } from 'react-native';
2
2
  import type { Attachment } from 'stream-chat';
3
3
  import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
- export declare type AttachmentActionsPropsWithContext<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<Attachment<At>, 'actions'> & Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'handleAction'> & {
4
+ import type { DefaultStreamChatGenerics } from '../../types/types';
5
+ export declare type AttachmentActionsPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<Attachment<StreamChatGenerics>, 'actions'> & Pick<MessageContextValue<StreamChatGenerics>, 'handleAction'> & {
6
6
  styles?: Partial<{
7
7
  actionButton: StyleProp<ViewStyle>;
8
8
  buttonText: StyleProp<TextStyle>;
9
9
  container: StyleProp<ViewStyle>;
10
10
  }>;
11
11
  };
12
- export declare type AttachmentActionsProps<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> = Attachment<At> & Partial<Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'handleAction'>>;
12
+ export declare type AttachmentActionsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Attachment<StreamChatGenerics> & Partial<Pick<MessageContextValue<StreamChatGenerics>, 'handleAction'>>;
13
13
  /**
14
14
  * AttachmentActions - The actions you can take on an attachment.
15
15
  * Actions in combination with attachments can be used to build [commands](https://getstream.io/chat/docs/#channel_commands).
16
16
  */
17
17
  export declare const AttachmentActions: {
18
- <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: AttachmentActionsProps<At, Ch, Co, Ev, Me, Re, Us>): JSX.Element;
18
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AttachmentActionsProps<StreamChatGenerics>): JSX.Element;
19
19
  displayName: string;
20
20
  };
@@ -2,8 +2,8 @@ import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
2
2
  import type { Attachment } from 'stream-chat';
3
3
  import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
4
4
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
5
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
6
- export declare type CardPropsWithContext<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> = Attachment<At> & Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps' | 'CardCover' | 'CardFooter' | 'CardHeader'> & {
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
+ export declare type CardPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Attachment<StreamChatGenerics> & Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'CardCover' | 'CardFooter' | 'CardHeader'> & {
7
7
  channelId: string | undefined;
8
8
  messageId: string | undefined;
9
9
  styles?: Partial<{
@@ -19,11 +19,11 @@ export declare type CardPropsWithContext<At extends UnknownType = DefaultAttachm
19
19
  title: StyleProp<TextStyle>;
20
20
  }>;
21
21
  };
22
- export declare type CardProps<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> = Attachment<At> & Partial<Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'onLongPress' | 'onPress' | 'onPressIn'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps' | 'CardCover' | 'CardFooter' | 'CardHeader'>>;
22
+ export declare type CardProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Attachment<StreamChatGenerics> & Partial<Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPress' | 'onPressIn'> & Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'CardCover' | 'CardFooter' | 'CardHeader'>>;
23
23
  /**
24
24
  * UI component for card in attachments.
25
25
  */
26
26
  export declare const Card: {
27
- <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: CardProps<At, Ch, Co, Ev, Me, Re, Us>): JSX.Element;
27
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: CardProps<StreamChatGenerics>): JSX.Element;
28
28
  displayName: string;
29
29
  };
@@ -2,10 +2,10 @@ import { StyleProp, TextStyle, ViewStyle } from 'react-native';
2
2
  import type { Attachment } from 'stream-chat';
3
3
  import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
4
4
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
5
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
6
- export declare type FileAttachmentPropsWithContext<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<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps' | 'AttachmentActions' | 'FileAttachmentIcon'> & {
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
+ export declare type FileAttachmentPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'AttachmentActions' | 'FileAttachmentIcon'> & {
7
7
  /** The attachment to render */
8
- attachment: Attachment<At>;
8
+ attachment: Attachment<StreamChatGenerics>;
9
9
  attachmentSize?: number;
10
10
  styles?: Partial<{
11
11
  container: StyleProp<ViewStyle>;
@@ -14,9 +14,9 @@ export declare type FileAttachmentPropsWithContext<At extends DefaultAttachmentT
14
14
  title: StyleProp<TextStyle>;
15
15
  }>;
16
16
  };
17
- export declare type FileAttachmentProps<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<Omit<FileAttachmentPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'attachment'>> & Pick<FileAttachmentPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'attachment'>;
17
+ export declare type FileAttachmentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<FileAttachmentPropsWithContext<StreamChatGenerics>, 'attachment'>> & Pick<FileAttachmentPropsWithContext<StreamChatGenerics>, 'attachment'>;
18
18
  export declare const FileAttachment: {
19
- <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: FileAttachmentProps<At, Ch, Co, Ev, Me, Re, Us>): JSX.Element;
19
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: FileAttachmentProps<StreamChatGenerics>): JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  export declare const getFileSizeDisplayText: (size?: string | number | undefined) => string | undefined;
@@ -1,8 +1,8 @@
1
1
  import { StyleProp, ViewStyle } from 'react-native';
2
2
  import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
3
3
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
- export declare type FileAttachmentGroupPropsWithContext<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<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'files'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'Attachment'> & {
4
+ import type { DefaultStreamChatGenerics } from '../../types/types';
5
+ export declare type FileAttachmentGroupPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'files'> & Pick<MessagesContextValue<StreamChatGenerics>, 'Attachment'> & {
6
6
  /**
7
7
  * The unique id for the message with file attachments
8
8
  */
@@ -12,8 +12,8 @@ export declare type FileAttachmentGroupPropsWithContext<At extends UnknownType =
12
12
  container: StyleProp<ViewStyle>;
13
13
  }>;
14
14
  };
15
- export declare type FileAttachmentGroupProps<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<FileAttachmentGroupPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'messageId'>> & Pick<FileAttachmentGroupPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'messageId'>;
15
+ export declare type FileAttachmentGroupProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<FileAttachmentGroupPropsWithContext<StreamChatGenerics>, 'messageId'>> & Pick<FileAttachmentGroupPropsWithContext<StreamChatGenerics>, 'messageId'>;
16
16
  export declare const FileAttachmentGroup: {
17
- <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: FileAttachmentGroupProps<At, Ch, Co, Ev, Me, Re, Us>): JSX.Element | null;
17
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: FileAttachmentGroupProps<StreamChatGenerics>): JSX.Element | null;
18
18
  displayName: string;
19
19
  };
@@ -3,8 +3,8 @@ import { ImageGalleryContextValue } from '../../contexts/imageGalleryContext/Ima
3
3
  import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
4
4
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
5
5
  import { OverlayContextValue } from '../../contexts/overlayContext/OverlayContext';
6
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
7
- export declare type GalleryPropsWithContext<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<ImageGalleryContextValue, 'setImage' | 'setImages'> & Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'alignment' | 'groupStyles' | 'images' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress' | 'threadList'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps' | 'legacyImageViewerSwipeBehaviour'> & Pick<OverlayContextValue, 'setOverlay'> & {
6
+ import type { DefaultStreamChatGenerics } from '../../types/types';
7
+ export declare type GalleryPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ImageGalleryContextValue<StreamChatGenerics>, 'setImage' | 'setImages'> & Pick<MessageContextValue<StreamChatGenerics>, 'alignment' | 'groupStyles' | 'images' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress' | 'threadList'> & Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'legacyImageViewerSwipeBehaviour'> & Pick<OverlayContextValue, 'setOverlay'> & {
8
8
  channelId: string | undefined;
9
9
  hasThreadReplies?: boolean;
10
10
  /**
@@ -19,13 +19,13 @@ export declare type GalleryPropsWithContext<At extends UnknownType = DefaultAtta
19
19
  *
20
20
  * TODO: Fix circular dependencies of imports
21
21
  */
22
- message?: MessageType<At, Ch, Co, Ev, Me, Re, Us>;
22
+ message?: MessageType<StreamChatGenerics>;
23
23
  };
24
- export declare type GalleryProps<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<GalleryPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>;
24
+ export declare type GalleryProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<GalleryPropsWithContext<StreamChatGenerics>>;
25
25
  /**
26
26
  * UI component for card in attachments.
27
27
  */
28
28
  export declare const Gallery: {
29
- <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<GalleryPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>): JSX.Element | null;
29
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<GalleryPropsWithContext<StreamChatGenerics>>): JSX.Element | null;
30
30
  displayName: string;
31
31
  };
@@ -1,17 +1,17 @@
1
1
  import type { Attachment } from 'stream-chat';
2
2
  import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
3
3
  import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
- export declare type GiphyPropsWithContext<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<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'handleAction' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps'> & {
6
- attachment: Attachment<At>;
4
+ import type { DefaultStreamChatGenerics } from '../../types/types';
5
+ export declare type GiphyPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<MessageContextValue<StreamChatGenerics>, 'handleAction' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps'> & {
6
+ attachment: Attachment<StreamChatGenerics>;
7
7
  };
8
- export declare type GiphyProps<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<Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'onLongPress' | 'onPressIn'> & Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps'>> & {
9
- attachment: Attachment<At>;
8
+ export declare type GiphyProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPressIn'> & Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps'>> & {
9
+ attachment: Attachment<StreamChatGenerics>;
10
10
  };
11
11
  /**
12
12
  * UI component for card in attachments.
13
13
  */
14
14
  export declare const Giphy: {
15
- <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: GiphyProps<At, Ch, Co, Ev, Me, Re, Us>): JSX.Element;
15
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: GiphyProps<StreamChatGenerics>): JSX.Element;
16
16
  displayName: string;
17
17
  };
@@ -1,6 +1,6 @@
1
1
  import type { Attachment } from 'stream-chat';
2
2
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
3
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
3
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
4
4
  /**
5
5
  * Builds and returns a gallery of optimized images to be rendered on UI.
6
6
  * This function take a object parameter with following properties:
@@ -17,7 +17,7 @@ import type { DefaultAttachmentType, UnknownType } from '../../../../types/types
17
17
  *
18
18
  * @return {GallerySizeAndThumbnailGrid}
19
19
  */
20
- export declare function buildGallery<At extends UnknownType = DefaultAttachmentType>({ images, sizeConfig, }: {
21
- images: Attachment<At>[];
20
+ export declare function buildGallery<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ images, sizeConfig, }: {
21
+ images: Attachment<StreamChatGenerics>[];
22
22
  sizeConfig: GallerySizeConfig;
23
23
  }): GallerySizeAndThumbnailGrid;
@@ -1,7 +1,7 @@
1
1
  import type { Attachment } from 'stream-chat';
2
2
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
3
- import type { DefaultAttachmentType } from '../../../../types/types';
4
- export declare function buildGalleryOfSingleImage<At extends DefaultAttachmentType = DefaultAttachmentType>({ image, sizeConfig, }: {
5
- image: Attachment<At>;
3
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
4
+ export declare function buildGalleryOfSingleImage<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ image, sizeConfig, }: {
5
+ image: Attachment<StreamChatGenerics>;
6
6
  sizeConfig: GallerySizeConfig;
7
7
  }): GallerySizeAndThumbnailGrid;
@@ -1,7 +1,7 @@
1
1
  import type { Attachment } from 'stream-chat';
2
2
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
3
- import type { DefaultAttachmentType } from '../../../../types/types';
4
- export declare function buildGalleryOfThreeImages<At extends DefaultAttachmentType = DefaultAttachmentType>({ images, sizeConfig, }: {
5
- images: Attachment<At>[];
3
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
4
+ export declare function buildGalleryOfThreeImages<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ images, sizeConfig, }: {
5
+ images: Attachment<StreamChatGenerics>[];
6
6
  sizeConfig: GallerySizeConfig;
7
7
  }): GallerySizeAndThumbnailGrid;
@@ -1,7 +1,7 @@
1
1
  import type { Attachment } from 'stream-chat';
2
2
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
3
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
4
- export declare function buildGalleryOfTwoImages<At extends UnknownType = DefaultAttachmentType>({ images, sizeConfig, }: {
5
- images: Attachment<At>[];
3
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
4
+ export declare function buildGalleryOfTwoImages<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ images, sizeConfig, }: {
5
+ images: Attachment<StreamChatGenerics>[];
6
6
  sizeConfig: GallerySizeConfig;
7
7
  }): GallerySizeAndThumbnailGrid;
@@ -1,10 +1,10 @@
1
1
  import type { ImageResizeMode } from 'react-native';
2
2
  import type { Attachment } from 'stream-chat';
3
3
  import type { Thumbnail } from './types';
4
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
5
- export declare function buildThumbnail<At extends UnknownType = DefaultAttachmentType>({ height, image, resizeMode, width, }: {
4
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
5
+ export declare function buildThumbnail<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ height, image, resizeMode, width, }: {
6
6
  height: number;
7
- image: Attachment<At>;
7
+ image: Attachment<StreamChatGenerics>;
8
8
  width: number;
9
9
  resizeMode?: ImageResizeMode;
10
10
  }): Thumbnail;
@@ -1,6 +1,6 @@
1
1
  import type { Attachment } from 'stream-chat';
2
2
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
3
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
3
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
4
4
  /**
5
5
  * Builds a grid of thumbnail images from image attachments.
6
6
  * This function take a object parameter with following properties:
@@ -129,9 +129,9 @@ import type { DefaultAttachmentType, UnknownType } from '../../../../types/types
129
129
  *
130
130
  * @return {GallerySizeAndThumbnailGrid}
131
131
  */
132
- export declare function buildThumbnailGrid<At extends UnknownType = DefaultAttachmentType>({ grid, images, invertedDirections, sizeConfig, }: {
132
+ export declare function buildThumbnailGrid<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ grid, images, invertedDirections, sizeConfig, }: {
133
133
  grid: number[][];
134
- images: Attachment<At>[];
134
+ images: Attachment<StreamChatGenerics>[];
135
135
  invertedDirections: boolean;
136
136
  sizeConfig: GallerySizeConfig;
137
137
  }): GallerySizeAndThumbnailGrid;
@@ -1,9 +1,9 @@
1
1
  import type { Attachment } from 'stream-chat';
2
- import type { DefaultAttachmentType, UnknownType } from '../../../types/types';
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
3
  /**
4
4
  * Returns the aspect ratio of an image attachment.
5
5
  *
6
6
  * @param image Image attachment.
7
7
  * @returns {number}
8
8
  */
9
- export declare function getAspectRatio<At extends UnknownType = DefaultAttachmentType>(image: Attachment<At>): number;
9
+ export declare function getAspectRatio<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(image: Attachment<StreamChatGenerics>): number;
@@ -2,17 +2,17 @@ import { ChannelContextValue } from '../../contexts/channelContext/ChannelContex
2
2
  import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
3
3
  import { SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
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 AutoCompleteInputPropsWithContext<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<ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'giphyEnabled'> & Pick<MessageInputContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTextInputProps' | 'autoCompleteSuggestionsLimit' | 'giphyActive' | 'maxMessageLength' | 'mentionAllAppUsersEnabled' | 'mentionAllAppUsersQuery' | 'numberOfLines' | 'onChange' | 'setGiphyActive' | 'setInputBoxRef' | 'setShowMoreOptions' | 'text' | 'triggerSettings'> & Pick<SuggestionsContextValue<Co, Us>, 'closeSuggestions' | 'openSuggestions' | 'updateSuggestions'> & Pick<TranslationContextValue, 't'> & {
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
+ declare type AutoCompleteInputPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'giphyEnabled'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'additionalTextInputProps' | 'autoCompleteSuggestionsLimit' | 'giphyActive' | 'maxMessageLength' | 'mentionAllAppUsersEnabled' | 'mentionAllAppUsersQuery' | 'numberOfLines' | 'onChange' | 'setGiphyActive' | 'setInputBoxRef' | 'setShowMoreOptions' | 'text' | 'triggerSettings'> & Pick<SuggestionsContextValue<StreamChatGenerics>, 'closeSuggestions' | 'openSuggestions' | 'updateSuggestions'> & Pick<TranslationContextValue, 't'> & {
7
7
  /**
8
8
  * This is currently passed in from MessageInput to avoid rerenders
9
9
  * that would happen if we put this in the MessageInputContext
10
10
  */
11
11
  cooldownActive?: boolean;
12
12
  };
13
- export declare type AutoCompleteInputProps<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<AutoCompleteInputPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>;
13
+ export declare type AutoCompleteInputProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<AutoCompleteInputPropsWithContext<StreamChatGenerics>>;
14
14
  export declare const AutoCompleteInput: {
15
- <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<AutoCompleteInputPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>): JSX.Element;
15
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: Partial<AutoCompleteInputPropsWithContext<StreamChatGenerics>>): JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { SuggestionCommand } from '../../contexts/suggestionsContext/SuggestionsContext';
2
- export declare const AutoCompleteSuggestionCommandIcon: <Co extends string = import("stream-chat").LiteralStringForUnion>({ name, }: {
3
- name: import("stream-chat").CommandVariants<Co> | undefined;
2
+ import type { DefaultStreamChatGenerics } from '../../types/types';
3
+ export declare const AutoCompleteSuggestionCommandIcon: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ name, }: {
4
+ name: import("stream-chat").CommandVariants<StreamChatGenerics> | undefined;
4
5
  }) => JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import type { SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
2
- import type { DefaultCommandType, DefaultUserType, UnknownType } from '../../types/types';
3
- export declare type AutoCompleteSuggestionHeaderPropsWithContext<Co extends string = DefaultCommandType, Us extends UnknownType = DefaultUserType> = Pick<SuggestionsContextValue<Co, Us>, 'triggerType' | 'queryText'>;
4
- export declare type AutoCompleteSuggestionHeaderProps<Co extends string = DefaultCommandType, Us extends DefaultUserType = DefaultUserType> = AutoCompleteSuggestionHeaderPropsWithContext<Co, Us>;
2
+ import type { DefaultStreamChatGenerics } from '../../types/types';
3
+ export declare type AutoCompleteSuggestionHeaderPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<SuggestionsContextValue<StreamChatGenerics>, 'triggerType' | 'queryText'>;
4
+ export declare type AutoCompleteSuggestionHeaderProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = AutoCompleteSuggestionHeaderPropsWithContext<StreamChatGenerics>;
5
5
  export declare const AutoCompleteSuggestionHeader: {
6
- <Co extends string = import("stream-chat").LiteralStringForUnion, Us extends DefaultUserType = DefaultUserType>(props: AutoCompleteSuggestionHeaderProps<Co, Us>): JSX.Element;
6
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AutoCompleteSuggestionHeaderProps<StreamChatGenerics>): JSX.Element;
7
7
  displayName: string;
8
8
  };
@@ -1,10 +1,10 @@
1
1
  import type { Suggestion, SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
2
- import type { DefaultCommandType, DefaultUserType } from '../../types/types';
3
- export declare type AutoCompleteSuggestionItemPropsWithContext<Co extends string = DefaultCommandType, Us extends DefaultUserType = DefaultUserType> = Pick<SuggestionsContextValue, 'triggerType'> & {
4
- itemProps: Suggestion<Co, Us>;
2
+ import type { DefaultStreamChatGenerics } from '../../types/types';
3
+ export declare type AutoCompleteSuggestionItemPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<SuggestionsContextValue, 'triggerType'> & {
4
+ itemProps: Suggestion<StreamChatGenerics>;
5
5
  };
6
- export declare type AutoCompleteSuggestionItemProps<Co extends string = DefaultCommandType, Us extends DefaultUserType = DefaultUserType> = AutoCompleteSuggestionItemPropsWithContext<Co, Us>;
6
+ export declare type AutoCompleteSuggestionItemProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = AutoCompleteSuggestionItemPropsWithContext<StreamChatGenerics>;
7
7
  export declare const AutoCompleteSuggestionItem: {
8
- <Co extends string = import("stream-chat").LiteralStringForUnion, Us extends DefaultUserType = DefaultUserType>(props: AutoCompleteSuggestionItemProps<Co, Us>): JSX.Element;
8
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AutoCompleteSuggestionItemProps<StreamChatGenerics>): JSX.Element;
9
9
  displayName: string;
10
10
  };
@@ -2,20 +2,20 @@ import React from 'react';
2
2
  import type { AutoCompleteSuggestionHeaderProps } from './AutoCompleteSuggestionHeader';
3
3
  import type { AutoCompleteSuggestionItemProps } from './AutoCompleteSuggestionItem';
4
4
  import { Suggestion, SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
5
- import type { DefaultCommandType, DefaultUserType, UnknownType } from '../../types/types';
6
- declare type AutoCompleteSuggestionListComponentProps<Co extends string = DefaultCommandType, Us extends UnknownType = DefaultUserType> = Pick<SuggestionsContextValue, 'queryText' | 'triggerType'> & {
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
+ declare type AutoCompleteSuggestionListComponentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<SuggestionsContextValue, 'queryText' | 'triggerType'> & {
7
7
  active: boolean;
8
- data: Suggestion<Co, Us>[];
9
- onSelect: (item: Suggestion<Co, Us>) => void;
8
+ data: Suggestion<StreamChatGenerics>[];
9
+ onSelect: (item: Suggestion<StreamChatGenerics>) => void;
10
10
  };
11
- export declare type AutoCompleteSuggestionListPropsWithContext<Co extends string = DefaultCommandType, Us extends UnknownType = DefaultUserType> = Pick<SuggestionsContextValue<Co, Us>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem'> & AutoCompleteSuggestionListComponentProps<Co, Us>;
12
- export declare const AutoCompleteSuggestionListWithContext: <Co extends string = import("stream-chat").LiteralStringForUnion, Us extends UnknownType = DefaultUserType>(props: AutoCompleteSuggestionListPropsWithContext<Co, Us>) => JSX.Element | null;
13
- export declare type AutoCompleteSuggestionListProps<Co extends string = DefaultCommandType, Us extends UnknownType = DefaultUserType> = AutoCompleteSuggestionListComponentProps<Co, Us> & {
11
+ export declare type AutoCompleteSuggestionListPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem'> & AutoCompleteSuggestionListComponentProps<StreamChatGenerics>;
12
+ export declare const AutoCompleteSuggestionListWithContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AutoCompleteSuggestionListPropsWithContext<StreamChatGenerics>) => JSX.Element | null;
13
+ export declare type AutoCompleteSuggestionListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = AutoCompleteSuggestionListComponentProps<StreamChatGenerics> & {
14
14
  AutoCompleteSuggestionHeader?: React.ComponentType<AutoCompleteSuggestionHeaderProps>;
15
- AutoCompleteSuggestionItem?: React.ComponentType<AutoCompleteSuggestionItemProps<Co, Us>>;
15
+ AutoCompleteSuggestionItem?: React.ComponentType<AutoCompleteSuggestionItemProps<StreamChatGenerics>>;
16
16
  };
17
17
  export declare const AutoCompleteSuggestionList: {
18
- <Co extends string = import("stream-chat").LiteralStringForUnion, Us extends UnknownType = DefaultUserType>(props: AutoCompleteSuggestionListProps<Co, Us>): JSX.Element;
18
+ <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AutoCompleteSuggestionListProps<StreamChatGenerics>): JSX.Element;
19
19
  displayName: string;
20
20
  };
21
21
  export {};
@@ -11,11 +11,11 @@ import { PaginatedMessageListContextValue } from '../../contexts/paginatedMessag
11
11
  import { SuggestionsContextValue } from '../../contexts/suggestionsContext/SuggestionsContext';
12
12
  import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
13
13
  import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
14
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
14
+ import type { DefaultStreamChatGenerics } from '../../types/types';
15
15
  import { ReactionData } from '../../utils/utils';
16
16
  import { LoadingErrorProps } from '../Indicators/LoadingErrorIndicator';
17
17
  export declare const reactionData: ReactionData[];
18
- export declare type ChannelPropsWithContext<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<ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'channel'> & Partial<Pick<ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'EmptyStateIndicator' | 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'giphyEnabled' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'LoadingIndicator' | 'maxTimeBetweenGroupedMessages' | 'NetworkDownIndicator' | 'StickyHeader'>> & Pick<ChatContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'client'> & Partial<Omit<InputMessageInputContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'quotedMessage' | 'editing' | 'clearEditingState' | 'clearQuotedMessageState' | 'sendMessage'>> & Partial<Pick<SuggestionsContextValue<Co, Us>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & UseChannelStateValue<At, Ch, Co, Ev, Me, Re, Us> & Partial<Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps' | 'Attachment' | 'AttachmentActions' | 'Card' | 'CardCover' | 'CardFooter' | 'CardHeader' | 'DateHeader' | 'deletedMessagesVisibilityType' | 'disableTypingIndicator' | 'dismissKeyboardOnMessageTouch' | 'FileAttachment' | 'FileAttachmentIcon' | 'FileAttachmentGroup' | 'FlatList' | 'forceAlignMessages' | 'formatDate' | 'Gallery' | 'Giphy' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleReaction' | 'handleQuotedReply' | 'handleRetry' | 'handleThreadReply' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'legacyImageViewerSwipeBehaviour' | 'markdownRules' | 'Message' | 'messageActions' | 'MessageAvatar' | 'MessageContent' | 'messageContentOrder' | 'MessageDeleted' | 'MessageFooter' | 'MessageHeader' | 'MessageList' | 'MessagePinnedHeader' | 'MessageReplies' | 'MessageRepliesAvatars' | 'MessageSimple' | 'MessageStatus' | 'MessageSystem' | 'MessageText' | 'myMessageTheme' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'ReactionList' | 'Reply' | 'ScrollToBottomButton' | 'selectReaction' | 'supportedReactions' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UrlPreview'>> & Partial<Pick<ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'allowThreadMessagesInChannel' | 'thread'>> & {
18
+ export declare type ChannelPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel'> & Partial<Pick<ChannelContextValue<StreamChatGenerics>, 'EmptyStateIndicator' | 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'giphyEnabled' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'LoadingIndicator' | 'maxTimeBetweenGroupedMessages' | 'NetworkDownIndicator' | 'StickyHeader'>> & Pick<ChatContextValue<StreamChatGenerics>, 'client'> & Partial<Omit<InputMessageInputContextValue<StreamChatGenerics>, 'quotedMessage' | 'editing' | 'clearEditingState' | 'clearQuotedMessageState' | 'sendMessage'>> & Partial<Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue<StreamChatGenerics>, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & UseChannelStateValue<StreamChatGenerics> & Partial<Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'Attachment' | 'AttachmentActions' | 'Card' | 'CardCover' | 'CardFooter' | 'CardHeader' | 'DateHeader' | 'deletedMessagesVisibilityType' | 'disableTypingIndicator' | 'dismissKeyboardOnMessageTouch' | 'FileAttachment' | 'FileAttachmentIcon' | 'FileAttachmentGroup' | 'FlatList' | 'forceAlignMessages' | 'formatDate' | 'Gallery' | 'Giphy' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleReaction' | 'handleQuotedReply' | 'handleRetry' | 'handleThreadReply' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'legacyImageViewerSwipeBehaviour' | 'markdownRules' | 'Message' | 'messageActions' | 'MessageAvatar' | 'MessageContent' | 'messageContentOrder' | 'MessageDeleted' | 'MessageFooter' | 'MessageHeader' | 'MessageList' | 'MessagePinnedHeader' | 'MessageReplies' | 'MessageRepliesAvatars' | 'MessageSimple' | 'MessageStatus' | 'MessageSystem' | 'MessageText' | 'myMessageTheme' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'ReactionList' | 'Reply' | 'ScrollToBottomButton' | 'selectReaction' | 'supportedReactions' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UrlPreview'>> & Partial<Pick<ThreadContextValue<StreamChatGenerics>, 'allowThreadMessagesInChannel' | 'thread'>> & {
19
19
  shouldSyncChannel: boolean;
20
20
  /**
21
21
  * Additional props passed to keyboard avoiding view
@@ -38,19 +38,19 @@ export declare type ChannelPropsWithContext<At extends UnknownType = DefaultAtta
38
38
  * Overrides the Stream default mark channel read request (Advanced usage only)
39
39
  * @param channel Channel object
40
40
  */
41
- doMarkReadRequest?: (channel: ChannelType<At, Ch, Co, Ev, Me, Re, Us>) => void;
41
+ doMarkReadRequest?: (channel: ChannelType<StreamChatGenerics>) => void;
42
42
  /**
43
43
  * Overrides the Stream default send message request (Advanced usage only)
44
44
  * @param channelId
45
45
  * @param messageData Message object
46
46
  */
47
- doSendMessageRequest?: (channelId: string, messageData: StreamMessage<At, Me, Us>) => Promise<SendMessageAPIResponse<At, Ch, Co, Me, Re, Us>>;
47
+ doSendMessageRequest?: (channelId: string, messageData: StreamMessage<StreamChatGenerics>) => Promise<SendMessageAPIResponse<StreamChatGenerics>>;
48
48
  /**
49
49
  * Overrides the Stream default update message request (Advanced usage only)
50
50
  * @param channelId
51
51
  * @param updatedMessage UpdatedMessage object
52
52
  */
53
- doUpdateMessageRequest?: (channelId: string, updatedMessage: Parameters<StreamChat<At, Ch, Co, Ev, Me, Re, Us>['updateMessage']>[0]) => ReturnType<StreamChat<At, Ch, Co, Ev, Me, Re, Us>['updateMessage']>;
53
+ doUpdateMessageRequest?: (channelId: string, updatedMessage: Parameters<StreamChat<StreamChatGenerics>['updateMessage']>[0]) => ReturnType<StreamChat<StreamChatGenerics>['updateMessage']>;
54
54
  /**
55
55
  * E.g. Once unread count exceeds 255, display unread count as 255+ instead of actual count.
56
56
  * Also 255 is the limit per Stream chat channel for unread count.
@@ -96,7 +96,7 @@ export declare type ChannelPropsWithContext<At extends UnknownType = DefaultAtta
96
96
  */
97
97
  threadList?: boolean;
98
98
  };
99
- export declare type ChannelProps<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<ChannelPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'channel'>> & Pick<ChannelPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'channel'>;
99
+ export declare type ChannelProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>> & Pick<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>;
100
100
  /**
101
101
  *
102
102
  * The wrapper component for a chat channel. Channel needs to be placed inside a Chat component
@@ -105,4 +105,4 @@ export declare type ChannelProps<At extends UnknownType = DefaultAttachmentType,
105
105
  *
106
106
  * @example ./Channel.md
107
107
  */
108
- export declare const Channel: <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: React.PropsWithChildren<ChannelProps<At, Ch, Co, Ev, Me, Re, Us>>) => JSX.Element;
108
+ export declare const Channel: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: React.PropsWithChildren<ChannelProps<StreamChatGenerics>>) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
2
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
3
- export declare const useCreateChannelContext: <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>({ channel, disabled, EmptyStateIndicator, enableMessageGroupingByUser, enforceUniqueReaction, error, giphyEnabled, hideDateSeparators, hideStickyDateHeader, isAdmin, isChannelActive, isModerator, isOwner, lastRead, loadChannelAtMessage, loading, LoadingIndicator, markRead, maxTimeBetweenGroupedMessages, members, NetworkDownIndicator, read, reloadChannel, scrollToFirstUnreadThreshold, setLastRead, setTargetedMessage, StickyHeader, targetedMessage, threadList, watcherCount, watchers, }: ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>) => ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>;
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
+ export declare const useCreateChannelContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, disabled, EmptyStateIndicator, enableMessageGroupingByUser, enforceUniqueReaction, error, giphyEnabled, hideDateSeparators, hideStickyDateHeader, isAdmin, isChannelActive, isModerator, isOwner, lastRead, loadChannelAtMessage, loading, LoadingIndicator, markRead, maxTimeBetweenGroupedMessages, members, NetworkDownIndicator, read, reloadChannel, scrollToFirstUnreadThreshold, setLastRead, setTargetedMessage, StickyHeader, targetedMessage, threadList, watcherCount, watchers, }: ChannelContextValue<StreamChatGenerics>) => ChannelContextValue<StreamChatGenerics>;
@@ -1,8 +1,8 @@
1
1
  import type { InputMessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
2
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
3
- export declare const useCreateInputMessageInputContext: <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>({ additionalTextInputProps, AttachButton, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, doDocUploadRequest, doImageUploadRequest, editing, editMessage, FileUploadPreview, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, UploadProgressIndicator, }: InputMessageInputContextValue<At, Ch, Co, Ev, Me, Re, Us> & {
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
+ export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, AttachButton, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, doDocUploadRequest, doImageUploadRequest, editing, editMessage, FileUploadPreview, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, UploadProgressIndicator, }: InputMessageInputContextValue<StreamChatGenerics> & {
4
4
  /**
5
5
  * To ensure we allow re-render, when channel is changed
6
6
  */
7
7
  channelId?: string | undefined;
8
- }) => InputMessageInputContextValue<At, Ch, Co, Ev, Me, Re, Us>;
8
+ }) => InputMessageInputContextValue<StreamChatGenerics>;
@@ -1,8 +1,8 @@
1
1
  import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
2
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
3
- export declare const useCreateMessagesContext: <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>({ additionalTouchableProps, Attachment, AttachmentActions, Card, CardCover, CardFooter, CardHeader, channelId, DateHeader, deletedMessagesVisibilityType, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, formatDate, Gallery, Giphy, handleBlock, handleCopy, handleDelete, handleEdit, handleFlag, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, legacyImageViewerSwipeBehaviour, markdownRules, Message, messageActions, MessageAvatar, MessageContent, messageContentOrder, MessageDeleted, MessageFooter, MessageHeader, MessageList, MessagePinnedHeader, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSystem, MessageText, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, OverlayReactionList, ReactionList, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, setEditingState, setQuotedMessageState, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, updateMessage, UrlPreview, }: MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us> & {
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
+ export declare const useCreateMessagesContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTouchableProps, Attachment, AttachmentActions, Card, CardCover, CardFooter, CardHeader, channelId, DateHeader, deletedMessagesVisibilityType, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, formatDate, Gallery, Giphy, handleBlock, handleCopy, handleDelete, handleEdit, handleFlag, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, legacyImageViewerSwipeBehaviour, markdownRules, Message, messageActions, MessageAvatar, MessageContent, messageContentOrder, MessageDeleted, MessageFooter, MessageHeader, MessageList, MessagePinnedHeader, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSystem, MessageText, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, OverlayReactionList, ReactionList, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, setEditingState, setQuotedMessageState, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, updateMessage, UrlPreview, }: MessagesContextValue<StreamChatGenerics> & {
4
4
  /**
5
5
  * To ensure we allow re-render, when channel is changed
6
6
  */
7
7
  channelId?: string | undefined;
8
- }) => MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>;
8
+ }) => MessagesContextValue<StreamChatGenerics>;
@@ -1,7 +1,7 @@
1
1
  import type { Channel } from 'stream-chat';
2
2
  import { OwnCapabilitiesContextValue } from '../../../contexts/ownCapabilitiesContext/OwnCapabilitiesContext';
3
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
4
- export declare const useCreateOwnCapabilitiesContext: <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>({ channel, overrideCapabilities, }: {
5
- channel: Channel<At, Ch, Co, Ev, Me, Re, Us>;
3
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
4
+ export declare const useCreateOwnCapabilitiesContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, overrideCapabilities, }: {
5
+ channel: Channel<StreamChatGenerics>;
6
6
  overrideCapabilities?: Partial<OwnCapabilitiesContextValue> | undefined;
7
7
  }) => OwnCapabilitiesContextValue;
@@ -1,5 +1,5 @@
1
1
  import type { PaginatedMessageListContextValue } from '../../../contexts/paginatedMessageListContext/PaginatedMessageListContext';
2
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
3
- export declare const useCreatePaginatedMessageListContext: <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>({ channelId, hasMore, loadingMore, loadingMoreRecent, loadMore, loadMoreRecent, messages, setLoadingMore, setLoadingMoreRecent, }: PaginatedMessageListContextValue<At, Ch, Co, Ev, Me, Re, Us> & {
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
+ export declare const useCreatePaginatedMessageListContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channelId, hasMore, loadingMore, loadingMoreRecent, loadMore, loadMoreRecent, messages, setLoadingMore, setLoadingMoreRecent, }: PaginatedMessageListContextValue<StreamChatGenerics> & {
4
4
  channelId?: string | undefined;
5
- }) => PaginatedMessageListContextValue<At, Ch, Co, Ev, Me, Re, Us>;
5
+ }) => PaginatedMessageListContextValue<StreamChatGenerics>;
@@ -1,3 +1,3 @@
1
1
  import type { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
2
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
3
- export declare const useCreateThreadContext: <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>({ allowThreadMessagesInChannel, closeThread, loadMoreThread, openThread, reloadThread, setThreadLoadingMore, thread, threadHasMore, threadLoadingMore, threadMessages, }: ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>) => ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>;
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
+ export declare const useCreateThreadContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ allowThreadMessagesInChannel, closeThread, loadMoreThread, openThread, reloadThread, setThreadLoadingMore, thread, threadHasMore, threadLoadingMore, threadMessages, }: ThreadContextValue<StreamChatGenerics>) => ThreadContextValue<StreamChatGenerics>;
@@ -1,3 +1,3 @@
1
1
  import type { TypingContextValue } from '../../../contexts/typingContext/TypingContext';
2
- import type { DefaultAttachmentType, DefaultChannelType, DefaultUserType, UnknownType } from '../../../types/types';
3
- export declare const useCreateTypingContext: <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>({ typing, }: TypingContextValue<At, Ch, Co, Ev, Me, Re, Us>) => TypingContextValue<At, Ch, Co, Ev, Me, Re, Us>;
2
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
3
+ export declare const useCreateTypingContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ typing, }: TypingContextValue<StreamChatGenerics>) => TypingContextValue<StreamChatGenerics>;