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,27 +1,27 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import type { ChannelState } from 'stream-chat';
3
3
  import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
4
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
5
- export declare type ThreadContextValue<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> = {
4
+ import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
5
+ export declare type ThreadContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
6
6
  allowThreadMessagesInChannel: boolean;
7
7
  closeThread: () => void;
8
8
  loadMoreThread: () => Promise<void>;
9
- openThread: (message: MessageType<At, Ch, Co, Ev, Me, Re, Us>) => void;
9
+ openThread: (message: MessageType<StreamChatGenerics>) => void;
10
10
  reloadThread: () => void;
11
11
  setThreadLoadingMore: React.Dispatch<React.SetStateAction<boolean>>;
12
- thread: MessageType<At, Ch, Co, Ev, Me, Re, Us> | null;
12
+ thread: MessageType<StreamChatGenerics> | null;
13
13
  threadHasMore: boolean;
14
14
  threadLoadingMore: boolean;
15
- threadMessages: ChannelState<At, Ch, Co, Ev, Me, Re, Us>['threads'][string];
15
+ threadMessages: ChannelState<StreamChatGenerics>['threads'][string];
16
16
  };
17
- export declare const ThreadContext: React.Context<ThreadContextValue<DefaultAttachmentType, DefaultChannelType, import("stream-chat").LiteralStringForUnion, UnknownType, UnknownType, UnknownType, DefaultUserType>>;
18
- export declare const ThreadProvider: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>({ children, value, }: React.PropsWithChildren<{
19
- value: ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>;
17
+ export declare const ThreadContext: React.Context<ThreadContextValue<DefaultStreamChatGenerics>>;
18
+ export declare const ThreadProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
19
+ value: ThreadContextValue<StreamChatGenerics>;
20
20
  }>) => JSX.Element;
21
- export declare const useThreadContext: <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>() => ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>;
21
+ export declare const useThreadContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => ThreadContextValue<StreamChatGenerics>;
22
22
  /**
23
23
  * Typescript currently does not support partial inference so if ThreadContext
24
24
  * typing is desired while using the HOC withThreadContextContext the Props for the
25
25
  * wrapped component must be provided as the first generic.
26
26
  */
27
- export declare const withThreadContext: <P extends UnknownType, At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ThreadContextValue<At, Ch, Co, Ev, Me, Re, Us>>>;
27
+ export declare const withThreadContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof ThreadContextValue<StreamChatGenerics>>>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Dayjs from 'dayjs';
3
3
  import type { TFunction } from 'i18next';
4
4
  import type { Moment } from 'moment';
5
- import type { UnknownType } from '../../types/types';
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
6
  export declare const isDayOrMoment: (output: TDateTimeParserOutput) => output is Dayjs.Dayjs | Moment;
7
7
  export declare type TDateTimeParserInput = string | number | Date;
8
8
  export declare type TDateTimeParserOutput = string | number | Date | Dayjs.Dayjs | Moment;
@@ -16,4 +16,4 @@ export declare const TranslationProvider: React.FC<{
16
16
  value: TranslationContextValue;
17
17
  }>;
18
18
  export declare const useTranslationContext: () => TranslationContextValue;
19
- export declare const withTranslationContext: <P extends UnknownType>(Component: React.ComponentType<P>) => React.FC<Omit<P, keyof TranslationContextValue>>;
19
+ export declare const withTranslationContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<StreamChatGenerics>) => React.FC<Omit<StreamChatGenerics, keyof TranslationContextValue>>;
@@ -1,17 +1,17 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import type { ChannelState } from 'stream-chat';
3
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../../types/types';
4
- export declare type TypingContextValue<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = {
5
- typing: ChannelState<At, Ch, Co, Ev, Me, Re, Us>['typing'];
3
+ import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
4
+ export declare type TypingContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
5
+ typing: ChannelState<StreamChatGenerics>['typing'];
6
6
  };
7
- export declare const TypingContext: React.Context<TypingContextValue<DefaultAttachmentType, DefaultChannelType, import("stream-chat").LiteralStringForUnion, UnknownType, UnknownType, UnknownType, DefaultUserType>>;
8
- export declare const TypingProvider: <At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>({ children, value, }: React.PropsWithChildren<{
9
- value: TypingContextValue<At, Ch, Co, Ev, Me, Re, Us>;
7
+ export declare const TypingContext: React.Context<TypingContextValue<DefaultStreamChatGenerics>>;
8
+ export declare const TypingProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
9
+ value: TypingContextValue<StreamChatGenerics>;
10
10
  }>) => JSX.Element;
11
- export declare const useTypingContext: <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>() => TypingContextValue<At, Ch, Co, Ev, Me, Re, Us>;
11
+ export declare const useTypingContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => TypingContextValue<StreamChatGenerics>;
12
12
  /**
13
13
  * Typescript currently does not support partial inference so if TypingContext
14
14
  * typing is desired while using the HOC withTypingContext the Props for the
15
15
  * wrapped component must be provided as the first generic.
16
16
  */
17
- export declare const withTypingContext: <P extends UnknownType, At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(Component: React.ComponentType<P>) => React.FC<Omit<P, "typing">>;
17
+ export declare const withTypingContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => React.FC<Omit<P, "typing">>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './utils/base';
3
+ export declare const UserAdmin: React.FC<IconProps>;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => void;
2
+ export default _default;
@@ -1,16 +1,19 @@
1
- import type { LiteralStringForUnion } from 'stream-chat';
2
- export declare type DefaultAttachmentType = UnknownType & {
3
- file_size?: number | string;
4
- mime_type?: string;
5
- };
6
- export declare type DefaultChannelType = UnknownType & {
1
+ import type { ExtendableGenerics, LiteralStringForUnion } from 'stream-chat';
2
+ interface DefaultUserType extends UnknownType {
7
3
  image?: string;
8
- };
9
- export declare type DefaultCommandType = LiteralStringForUnion;
10
- export declare type DefaultEventType = UnknownType;
11
- export declare type DefaultMessageType = UnknownType;
12
- export declare type DefaultReactionType = UnknownType;
13
- export declare type DefaultUserType = UnknownType & {
4
+ }
5
+ interface DefaultChannelType extends UnknownType {
6
+ [key: string]: unknown;
14
7
  image?: string;
15
- };
8
+ }
9
+ export interface DefaultStreamChatGenerics extends ExtendableGenerics {
10
+ attachmentType: UnknownType;
11
+ channelType: DefaultChannelType;
12
+ commandType: LiteralStringForUnion;
13
+ eventType: UnknownType;
14
+ messageType: UnknownType;
15
+ reactionType: UnknownType;
16
+ userType: DefaultUserType;
17
+ }
16
18
  export declare type UnknownType = Record<string, unknown>;
19
+ export {};
@@ -17,7 +17,7 @@ import 'dayjs/locale/tr';
17
17
  * sure we don't mess up languages in other places in the app.
18
18
  */
19
19
  import 'dayjs/locale/en';
20
- import type { UnknownType } from '../types/types';
20
+ import type { DefaultStreamChatGenerics } from '../types/types';
21
21
  declare type Options = {
22
22
  DateTimeParser?: typeof Dayjs | typeof moment;
23
23
  dayjsLocaleConfigForLanguage?: Partial<ILocale>;
@@ -47,7 +47,7 @@ export declare class Streami18n {
47
47
  tDateTimeParser: TDateTimeParser;
48
48
  translations: {
49
49
  [key: string]: {
50
- [key: string]: Partial<typeof enTranslations> | UnknownType;
50
+ [key: string]: Partial<typeof enTranslations> | DefaultStreamChatGenerics;
51
51
  };
52
52
  };
53
53
  /**
@@ -110,7 +110,7 @@ export declare class Streami18n {
110
110
  /** Returns all the translation dictionary for all inbuilt-languages */
111
111
  getTranslations: () => {
112
112
  [key: string]: {
113
- [key: string]: UnknownType | Partial<{
113
+ [key: string]: DefaultStreamChatGenerics | Partial<{
114
114
  "1 Reply": string;
115
115
  "1 Thread Reply": string;
116
116
  "Allow access to your Gallery": string;
@@ -187,7 +187,7 @@ export declare class Streami18n {
187
187
  /**
188
188
  * Register translation
189
189
  */
190
- registerTranslation(language: string, translation: Partial<typeof enTranslations> | UnknownType, customDayjsLocale?: Partial<ILocale>): void;
190
+ registerTranslation(language: string, translation: Partial<typeof enTranslations> | DefaultStreamChatGenerics, customDayjsLocale?: Partial<ILocale>): void;
191
191
  addOrUpdateLocale(key: string, config: Partial<ILocale>): void;
192
192
  /**
193
193
  * Changes the language.
@@ -1,6 +1,7 @@
1
1
  declare type GetResizedImageUrlParams = {
2
2
  url: string;
3
3
  height?: string | number;
4
+ resize?: 'clip' | 'crop' | 'fill' | 'scale';
4
5
  width?: string | number;
5
6
  };
6
7
  /**
@@ -15,5 +16,5 @@ declare type GetResizedImageUrlParams = {
15
16
  *
16
17
  * @returns {string} Url of the image with given height and width.
17
18
  */
18
- export declare function getResizedImageUrl({ height, url, width }: GetResizedImageUrlParams): string;
19
+ export declare function getResizedImageUrl({ height, resize, url, width, }: GetResizedImageUrlParams): string;
19
20
  export {};
@@ -5,7 +5,7 @@ import type { MentionAllAppUsersQuery } from '../contexts/messageInputContext/Me
5
5
  import type { SuggestionCommand, SuggestionComponentType, SuggestionUser } from '../contexts/suggestionsContext/SuggestionsContext';
6
6
  import { Emoji } from '../emoji-data/compiled';
7
7
  import type { IconProps } from '../icons/utils/base';
8
- import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../types/types';
8
+ import type { DefaultStreamChatGenerics } from '../types/types';
9
9
  export declare type ReactionData = {
10
10
  Icon: React.FC<IconProps>;
11
11
  type: string;
@@ -26,23 +26,23 @@ export declare const MessageStatusTypes: {
26
26
  RECEIVED: string;
27
27
  SENDING: string;
28
28
  };
29
- export declare const queryMembersDebounced: DebouncedFunc<(<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: Channel<At, Ch, Co, Ev, Me, Re, Us>, query: SuggestionUser<Us>["name"], onReady?: ((users: SuggestionUser<Us>[]) => void) | undefined, options?: {
29
+ export declare const queryMembersDebounced: DebouncedFunc<(<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(channel: Channel<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>["name"], onReady?: ((users: SuggestionUser<StreamChatGenerics>[]) => void) | undefined, options?: {
30
30
  limit?: number;
31
31
  }) => Promise<void>)>;
32
- export declare const queryUsersDebounced: DebouncedFunc<(<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(client: StreamChat<At, Ch, Co, Ev, Me, Re, Us>, query: SuggestionUser<Us>["name"], onReady?: ((users: SuggestionUser<Us>[]) => void) | undefined, options?: {
32
+ export declare const queryUsersDebounced: DebouncedFunc<(<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(client: StreamChat<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>["name"], onReady?: ((users: SuggestionUser<StreamChatGenerics>[]) => void) | undefined, options?: {
33
33
  limit?: number | undefined;
34
- mentionAllAppUsersQuery?: MentionAllAppUsersQuery<Us> | undefined;
34
+ mentionAllAppUsersQuery?: MentionAllAppUsersQuery<StreamChatGenerics> | undefined;
35
35
  }) => Promise<void>)>;
36
36
  export declare const isCommandTrigger: (trigger: Trigger) => trigger is "/";
37
37
  export declare const isEmojiTrigger: (trigger: Trigger) => trigger is ":";
38
38
  export declare const isMentionTrigger: (trigger: Trigger) => trigger is "@";
39
39
  export declare type Trigger = '/' | '@' | ':';
40
- export declare type TriggerSettings<Co extends string = DefaultCommandType, Us extends UnknownType = DefaultUserType> = {
40
+ export declare type TriggerSettings<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
41
41
  '/'?: {
42
- dataProvider: (query: CommandResponse<Co>['name'], text: string, onReady?: (data: CommandResponse<Co>[], q: CommandResponse<Co>['name']) => void, options?: {
42
+ dataProvider: (query: CommandResponse<StreamChatGenerics>['name'], text: string, onReady?: (data: CommandResponse<StreamChatGenerics>[], q: CommandResponse<StreamChatGenerics>['name']) => void, options?: {
43
43
  limit?: number;
44
- }) => SuggestionCommand<Co>[];
45
- output: (entity: CommandResponse<Co>) => {
44
+ }) => SuggestionCommand<StreamChatGenerics>[];
45
+ output: (entity: CommandResponse<StreamChatGenerics>) => {
46
46
  caretPosition: string;
47
47
  key: string;
48
48
  text: string;
@@ -59,13 +59,13 @@ export declare type TriggerSettings<Co extends string = DefaultCommandType, Us e
59
59
  type: SuggestionComponentType;
60
60
  };
61
61
  '@'?: {
62
- callback: (item: SuggestionUser<Us>) => void;
63
- dataProvider: (query: SuggestionUser<Us>['name'], _: string, onReady?: (data: SuggestionUser<Us>[], q: SuggestionUser<Us>['name']) => void, options?: {
62
+ callback: (item: SuggestionUser<StreamChatGenerics>) => void;
63
+ dataProvider: (query: SuggestionUser<StreamChatGenerics>['name'], _: string, onReady?: (data: SuggestionUser<StreamChatGenerics>[], q: SuggestionUser<StreamChatGenerics>['name']) => void, options?: {
64
64
  limit?: number;
65
65
  mentionAllAppUsersEnabled?: boolean;
66
- mentionAllAppUsersQuery?: MentionAllAppUsersQuery<Us>;
67
- }) => SuggestionUser<Us>[] | Promise<void> | void;
68
- output: (entity: SuggestionUser<Us>) => {
66
+ mentionAllAppUsersQuery?: MentionAllAppUsersQuery<StreamChatGenerics>;
67
+ }) => SuggestionUser<StreamChatGenerics>[] | Promise<void> | void;
68
+ output: (entity: SuggestionUser<StreamChatGenerics>) => {
69
69
  caretPosition: string;
70
70
  key: string;
71
71
  text: string;
@@ -73,16 +73,16 @@ export declare type TriggerSettings<Co extends string = DefaultCommandType, Us e
73
73
  type: SuggestionComponentType;
74
74
  };
75
75
  };
76
- export declare type ACITriggerSettingsParams<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> = {
77
- channel: Channel<At, Ch, Co, Ev, Me, Re, Us>;
78
- client: StreamChat<At, Ch, Co, Ev, Me, Re, Us>;
79
- onMentionSelectItem: (item: SuggestionUser<Us>) => void;
76
+ export declare type ACITriggerSettingsParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
77
+ channel: Channel<StreamChatGenerics>;
78
+ client: StreamChat<StreamChatGenerics>;
79
+ onMentionSelectItem: (item: SuggestionUser<StreamChatGenerics>) => void;
80
80
  };
81
- export declare type QueryUsersFunction<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> = (client: StreamChat<At, Ch, Co, Ev, Me, Re, Us>, query: SuggestionUser<Us>['name'], onReady?: (users: SuggestionUser<Us>[]) => void, options?: {
81
+ export declare type QueryUsersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (client: StreamChat<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
82
82
  limit?: number;
83
- mentionAllAppUsersQuery?: MentionAllAppUsersQuery<Us>;
83
+ mentionAllAppUsersQuery?: MentionAllAppUsersQuery<StreamChatGenerics>;
84
84
  }) => Promise<void>;
85
- export declare type QueryMembersFunction<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> = (channel: Channel<At, Ch, Co, Ev, Me, Re, Us>, query: SuggestionUser<Us>['name'], onReady?: (users: SuggestionUser<Us>[]) => void, options?: {
85
+ export declare type QueryMembersFunction<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (channel: Channel<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>['name'], onReady?: (users: SuggestionUser<StreamChatGenerics>[]) => void, options?: {
86
86
  limit?: number;
87
87
  }) => Promise<void>;
88
88
  /**
@@ -96,7 +96,7 @@ export declare type QueryMembersFunction<At extends UnknownType = DefaultAttachm
96
96
  * previous call without waiting for a1. So in this case, we want to execute onReady, when trailing
97
97
  * end of debounce executes.
98
98
  */
99
- export declare const ACITriggerSettings: <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, client, onMentionSelectItem, }: ACITriggerSettingsParams<At, Ch, Co, Ev, Me, Re, Us>) => TriggerSettings<Co, Us>;
99
+ export declare const ACITriggerSettings: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ channel, client, onMentionSelectItem, }: ACITriggerSettingsParams<StreamChatGenerics>) => TriggerSettings<StreamChatGenerics>;
100
100
  export declare const makeImageCompatibleUrl: (url: string) => string;
101
101
  export declare const getUrlWithoutParams: (url?: string | undefined) => string | undefined;
102
102
  export declare const vw: (percentageWidth: number, rounded?: boolean) => number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "4.0.0-beta.5",
4
+ "version": "4.0.0-beta.8",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -27,8 +27,6 @@
27
27
  "lint-fix-translations": "prettier --check 'src/i18n/*.json' --write 'src/i18n/*.json' .eslintrc.json ../.prettierrc .babelrc",
28
28
  "build-translations": "rm -rf .tmpi18ncache || true && mkdir .tmpi18ncache && yarn run babel --config-file ./babel.i18next-extract.json 'src/**/*.{js,jsx,ts,tsx}' --out-dir '.tmpi18ncache/' && rm -rf .tmpi18ncache && prettier --write 'src/i18n/*.{js,ts,tsx,md,json}' .eslintrc.json ../.prettierrc .babelrc",
29
29
  "copy-translations": "echo '\u001b[34mℹ\u001b[0m Copying translation files to \u001b[34mlib/typescript/i18n\u001b[0m' && cp -R -f ./src/i18n ./lib/typescript/i18n && echo '\u001b[32m✓\u001b[0m Done Copying Translations'",
30
- "docs": "styleguidist build",
31
- "docs-server": "styleguidist server",
32
30
  "eslint": "eslint 'src/**/*.{js,md,ts,jsx,tsx}' --max-warnings 0",
33
31
  "lint": "prettier --ignore-path ../.prettierignore --list-different 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json ../.prettierrc .babelrc && eslint 'src/**/*.{js,ts,tsx,md}' --max-warnings 0 && yarn run validate-translations",
34
32
  "lint-fix": "prettier --ignore-path ../.prettierignore --write 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json ../.prettierrc .babelrc && eslint --fix 'src/**/*.{js,ts,tsx,md}' --max-warnings 0",
@@ -80,7 +78,8 @@
80
78
  "path": "0.12.7",
81
79
  "react-art": "^17.0.2",
82
80
  "react-native-markdown-package": "1.8.1",
83
- "stream-chat": "^5.1.2"
81
+ "react-native-url-polyfill": "^1.3.0",
82
+ "stream-chat": "6.0.0"
84
83
  },
85
84
  "peerDependencies": {
86
85
  "react-native-svg": "^12.1.0"
@@ -138,7 +137,6 @@
138
137
  "react-native-svg": "12.1.1",
139
138
  "react-native-typescript-transformer": "1.2.13",
140
139
  "react-native-web": "0.15.0",
141
- "react-styleguidist": "11.1.6",
142
140
  "react-test-renderer": "17.0.2",
143
141
  "typescript": "4.4.3",
144
142
  "uuid": "8.3.2",
@@ -12,47 +12,26 @@ import {
12
12
  useMessagesContext,
13
13
  } from '../../contexts/messagesContext/MessagesContext';
14
14
 
15
- import type {
16
- DefaultAttachmentType,
17
- DefaultChannelType,
18
- DefaultCommandType,
19
- DefaultEventType,
20
- DefaultMessageType,
21
- DefaultReactionType,
22
- DefaultUserType,
23
- UnknownType,
24
- } from '../../types/types';
15
+ import type { DefaultStreamChatGenerics } from '../../types/types';
25
16
 
26
17
  export type ActionHandler = (name: string, value: string) => void;
27
18
 
28
19
  export type AttachmentPropsWithContext<
29
- At extends UnknownType = DefaultAttachmentType,
30
- Ch extends UnknownType = DefaultChannelType,
31
- Co extends string = DefaultCommandType,
32
- Ev extends UnknownType = DefaultEventType,
33
- Me extends UnknownType = DefaultMessageType,
34
- Re extends UnknownType = DefaultReactionType,
35
- Us extends UnknownType = DefaultUserType,
20
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
36
21
  > = Pick<
37
- MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>,
22
+ MessagesContextValue<StreamChatGenerics>,
38
23
  'AttachmentActions' | 'Card' | 'FileAttachment' | 'Gallery' | 'Giphy' | 'UrlPreview'
39
24
  > & {
40
25
  /**
41
26
  * The attachment to render
42
27
  */
43
- attachment: AttachmentType<At>;
28
+ attachment: AttachmentType<StreamChatGenerics>;
44
29
  };
45
30
 
46
31
  const AttachmentWithContext = <
47
- At extends UnknownType = DefaultAttachmentType,
48
- Ch extends UnknownType = DefaultChannelType,
49
- Co extends string = DefaultCommandType,
50
- Ev extends UnknownType = DefaultEventType,
51
- Me extends UnknownType = DefaultMessageType,
52
- Re extends UnknownType = DefaultReactionType,
53
- Us extends UnknownType = DefaultUserType,
32
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
54
33
  >(
55
- props: AttachmentPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
34
+ props: AttachmentPropsWithContext<StreamChatGenerics>,
56
35
  ) => {
57
36
  const { attachment, AttachmentActions, Card, FileAttachment, Gallery, Giphy, UrlPreview } = props;
58
37
 
@@ -103,17 +82,9 @@ const AttachmentWithContext = <
103
82
  }
104
83
  };
105
84
 
106
- const areEqual = <
107
- At extends UnknownType = DefaultAttachmentType,
108
- Ch extends UnknownType = DefaultChannelType,
109
- Co extends string = DefaultCommandType,
110
- Ev extends UnknownType = DefaultEventType,
111
- Me extends UnknownType = DefaultMessageType,
112
- Re extends UnknownType = DefaultReactionType,
113
- Us extends UnknownType = DefaultUserType,
114
- >(
115
- prevProps: AttachmentPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
116
- nextProps: AttachmentPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
85
+ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(
86
+ prevProps: AttachmentPropsWithContext<StreamChatGenerics>,
87
+ nextProps: AttachmentPropsWithContext<StreamChatGenerics>,
117
88
  ) => {
118
89
  const { attachment: prevAttachment } = prevProps;
119
90
  const { attachment: nextAttachment } = nextProps;
@@ -132,34 +103,22 @@ const MemoizedAttachment = React.memo(
132
103
  ) as typeof AttachmentWithContext;
133
104
 
134
105
  export type AttachmentProps<
135
- At extends UnknownType = DefaultAttachmentType,
136
- Ch extends UnknownType = DefaultChannelType,
137
- Co extends string = DefaultCommandType,
138
- Ev extends UnknownType = DefaultEventType,
139
- Me extends UnknownType = DefaultMessageType,
140
- Re extends UnknownType = DefaultReactionType,
141
- Us extends UnknownType = DefaultUserType,
106
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
142
107
  > = Partial<
143
108
  Pick<
144
- MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>,
109
+ MessagesContextValue<StreamChatGenerics>,
145
110
  'AttachmentActions' | 'Card' | 'FileAttachment' | 'Gallery' | 'Giphy' | 'UrlPreview'
146
111
  >
147
112
  > &
148
- Pick<AttachmentPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'attachment'>;
113
+ Pick<AttachmentPropsWithContext<StreamChatGenerics>, 'attachment'>;
149
114
 
150
115
  /**
151
116
  * Attachment - The message attachment
152
117
  */
153
118
  export const Attachment = <
154
- At extends UnknownType = DefaultAttachmentType,
155
- Ch extends UnknownType = DefaultChannelType,
156
- Co extends string = DefaultCommandType,
157
- Ev extends UnknownType = DefaultEventType,
158
- Me extends UnknownType = DefaultMessageType,
159
- Re extends UnknownType = DefaultReactionType,
160
- Us extends UnknownType = DefaultUserType,
119
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
161
120
  >(
162
- props: AttachmentProps<At, Ch, Co, Ev, Me, Re, Us>,
121
+ props: AttachmentProps<StreamChatGenerics>,
163
122
  ) => {
164
123
  const {
165
124
  attachment,
@@ -178,7 +137,7 @@ export const Attachment = <
178
137
  Gallery: ContextGallery,
179
138
  Giphy: ContextGiphy,
180
139
  UrlPreview: ContextUrlPreview,
181
- } = useMessagesContext<At, Ch, Co, Ev, Me, Re, Us>();
140
+ } = useMessagesContext<StreamChatGenerics>();
182
141
 
183
142
  if (!attachment) {
184
143
  return null;
@@ -17,16 +17,7 @@ import {
17
17
  } from '../../contexts/messageContext/MessageContext';
18
18
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
19
19
 
20
- import type {
21
- DefaultAttachmentType,
22
- DefaultChannelType,
23
- DefaultCommandType,
24
- DefaultEventType,
25
- DefaultMessageType,
26
- DefaultReactionType,
27
- DefaultUserType,
28
- UnknownType,
29
- } from '../../types/types';
20
+ import type { DefaultStreamChatGenerics } from '../../types/types';
30
21
 
31
22
  const styles = StyleSheet.create({
32
23
  actionButton: {
@@ -43,15 +34,9 @@ const styles = StyleSheet.create({
43
34
  });
44
35
 
45
36
  export type AttachmentActionsPropsWithContext<
46
- At extends UnknownType = DefaultAttachmentType,
47
- Ch extends UnknownType = DefaultChannelType,
48
- Co extends string = DefaultCommandType,
49
- Ev extends UnknownType = DefaultEventType,
50
- Me extends UnknownType = DefaultMessageType,
51
- Re extends UnknownType = DefaultReactionType,
52
- Us extends UnknownType = DefaultUserType,
53
- > = Pick<Attachment<At>, 'actions'> &
54
- Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'handleAction'> & {
37
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
38
+ > = Pick<Attachment<StreamChatGenerics>, 'actions'> &
39
+ Pick<MessageContextValue<StreamChatGenerics>, 'handleAction'> & {
55
40
  styles?: Partial<{
56
41
  actionButton: StyleProp<ViewStyle>;
57
42
  buttonText: StyleProp<TextStyle>;
@@ -60,15 +45,9 @@ export type AttachmentActionsPropsWithContext<
60
45
  };
61
46
 
62
47
  const AttachmentActionsWithContext = <
63
- At extends UnknownType = DefaultAttachmentType,
64
- Ch extends UnknownType = DefaultChannelType,
65
- Co extends string = DefaultCommandType,
66
- Ev extends UnknownType = DefaultEventType,
67
- Me extends UnknownType = DefaultMessageType,
68
- Re extends UnknownType = DefaultReactionType,
69
- Us extends UnknownType = DefaultUserType,
48
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
70
49
  >(
71
- props: AttachmentActionsPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
50
+ props: AttachmentActionsPropsWithContext<StreamChatGenerics>,
72
51
  ) => {
73
52
  const { actions, handleAction, styles: stylesProp = {} } = props;
74
53
 
@@ -137,17 +116,9 @@ const AttachmentActionsWithContext = <
137
116
  );
138
117
  };
139
118
 
140
- const areEqual = <
141
- At extends UnknownType = DefaultAttachmentType,
142
- Ch extends UnknownType = DefaultChannelType,
143
- Co extends string = DefaultCommandType,
144
- Ev extends UnknownType = DefaultEventType,
145
- Me extends UnknownType = DefaultMessageType,
146
- Re extends UnknownType = DefaultReactionType,
147
- Us extends UnknownType = DefaultUserType,
148
- >(
149
- prevProps: AttachmentActionsPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
150
- nextProps: AttachmentActionsPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
119
+ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(
120
+ prevProps: AttachmentActionsPropsWithContext<StreamChatGenerics>,
121
+ nextProps: AttachmentActionsPropsWithContext<StreamChatGenerics>,
151
122
  ) => {
152
123
  const { actions: prevActions } = prevProps;
153
124
  const { actions: nextActions } = nextProps;
@@ -163,31 +134,20 @@ const MemoizedAttachmentActions = React.memo(
163
134
  ) as typeof AttachmentActionsWithContext;
164
135
 
165
136
  export type AttachmentActionsProps<
166
- At extends UnknownType = DefaultAttachmentType,
167
- Ch extends UnknownType = DefaultChannelType,
168
- Co extends string = DefaultCommandType,
169
- Ev extends UnknownType = DefaultEventType,
170
- Me extends UnknownType = DefaultMessageType,
171
- Re extends UnknownType = DefaultReactionType,
172
- Us extends UnknownType = DefaultUserType,
173
- > = Attachment<At> & Partial<Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'handleAction'>>;
137
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
138
+ > = Attachment<StreamChatGenerics> &
139
+ Partial<Pick<MessageContextValue<StreamChatGenerics>, 'handleAction'>>;
174
140
 
175
141
  /**
176
142
  * AttachmentActions - The actions you can take on an attachment.
177
143
  * Actions in combination with attachments can be used to build [commands](https://getstream.io/chat/docs/#channel_commands).
178
144
  */
179
145
  export const AttachmentActions = <
180
- At extends UnknownType = DefaultAttachmentType,
181
- Ch extends UnknownType = DefaultChannelType,
182
- Co extends string = DefaultCommandType,
183
- Ev extends UnknownType = DefaultEventType,
184
- Me extends UnknownType = DefaultMessageType,
185
- Re extends UnknownType = DefaultReactionType,
186
- Us extends UnknownType = DefaultUserType,
146
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
187
147
  >(
188
- props: AttachmentActionsProps<At, Ch, Co, Ev, Me, Re, Us>,
148
+ props: AttachmentActionsProps<StreamChatGenerics>,
189
149
  ) => {
190
- const { handleAction } = useMessageContext<At, Ch, Co, Ev, Me, Re, Us>();
150
+ const { handleAction } = useMessageContext<StreamChatGenerics>();
191
151
  return <MemoizedAttachmentActions {...{ handleAction }} {...props} />;
192
152
  };
193
153