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

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 (730) hide show
  1. package/lib/commonjs/components/Attachment/Attachment.js +10 -10
  2. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/AttachmentActions.js +4 -4
  4. package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/Card.js +15 -15
  6. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  7. package/lib/commonjs/components/Attachment/FileAttachment.js +8 -8
  8. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  9. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +4 -4
  10. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  11. package/lib/commonjs/components/Attachment/Gallery.js +8 -8
  12. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  13. package/lib/commonjs/components/Attachment/Giphy.js +23 -23
  14. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  15. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  16. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  17. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  18. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  19. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  20. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  21. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
  22. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  23. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  24. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
  25. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  26. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
  27. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  28. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
  29. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  30. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
  31. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  32. package/lib/commonjs/components/Channel/Channel.js +13 -13
  33. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  34. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  35. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  36. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  37. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  38. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  39. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  40. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  41. package/lib/commonjs/components/ChannelList/ChannelList.js +2 -2
  42. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  43. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +14 -14
  44. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  45. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  46. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  47. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  48. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  49. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  50. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  51. package/lib/commonjs/components/ChannelList/hooks/listeners/useConnectionRecovered.js.map +1 -1
  52. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  53. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  54. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  55. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  56. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  57. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  58. package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
  59. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +2 -2
  60. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  61. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -2
  62. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  63. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
  64. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  65. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
  66. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  67. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
  68. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  69. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  70. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  71. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  72. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  73. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  74. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  75. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  76. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  77. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  78. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  79. package/lib/commonjs/components/Chat/Chat.js +4 -4
  80. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  81. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  82. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  83. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
  84. package/lib/commonjs/components/ImageGallery/ImageGallery.js +19 -19
  85. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  86. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
  87. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  88. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +10 -10
  89. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  90. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +5 -5
  91. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  92. package/lib/commonjs/components/Message/Message.js +6 -6
  93. package/lib/commonjs/components/Message/Message.js.map +1 -1
  94. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +4 -4
  95. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  96. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +18 -18
  97. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  98. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +5 -5
  99. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  100. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +11 -11
  101. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  102. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
  103. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  104. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +10 -10
  105. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  106. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
  107. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  108. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +6 -6
  109. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  110. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +9 -9
  111. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  112. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +3 -3
  113. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  114. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +18 -18
  115. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  116. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +14 -14
  117. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  118. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  119. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  120. package/lib/commonjs/components/Message/hooks/useMessageActions.js +11 -11
  121. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  122. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  123. package/lib/commonjs/components/Message/utils/removeReservedFields.js.map +1 -1
  124. package/lib/commonjs/components/MessageInput/AttachButton.js +3 -3
  125. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  126. package/lib/commonjs/components/MessageInput/CommandsButton.js +3 -3
  127. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  128. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +11 -11
  129. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  130. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +7 -7
  131. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  132. package/lib/commonjs/components/MessageInput/InputButtons.js +6 -6
  133. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  134. package/lib/commonjs/components/MessageInput/MessageInput.js +34 -34
  135. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  136. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +3 -3
  137. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  138. package/lib/commonjs/components/MessageInput/SendButton.js +5 -5
  139. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  140. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
  141. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  142. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
  143. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
  144. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  145. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
  146. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  147. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
  148. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  149. package/lib/commonjs/components/MessageList/MessageList.js +26 -26
  150. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  151. package/lib/commonjs/components/MessageList/MessageSystem.js +6 -6
  152. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  153. package/lib/commonjs/components/MessageList/TypingIndicator.js +3 -3
  154. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  155. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +2 -2
  156. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  157. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  158. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  159. package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  160. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  161. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  162. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  163. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  164. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +3 -3
  165. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  166. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +6 -6
  167. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  168. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +26 -25
  169. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  170. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +13 -13
  171. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  172. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +19 -19
  173. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  174. package/lib/commonjs/components/Reply/Reply.js +8 -8
  175. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  176. package/lib/commonjs/components/Thread/Thread.js +4 -4
  177. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  178. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +12 -12
  179. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  180. package/lib/commonjs/components/docs/data.js +44 -44
  181. package/lib/commonjs/components/docs/data.js.map +1 -1
  182. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
  183. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  184. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  185. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  186. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +2 -2
  187. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  188. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  189. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  190. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  191. package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
  192. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  193. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  194. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  195. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +1 -1
  196. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  197. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
  198. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  199. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +2 -2
  200. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  201. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  202. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  203. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +2 -2
  204. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  205. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  206. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  207. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
  208. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  209. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +12 -12
  210. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  211. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  212. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  213. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +2 -2
  214. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  215. package/lib/commonjs/contexts/threadContext/ThreadContext.js +2 -2
  216. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  217. package/lib/commonjs/contexts/translationContext/TranslationContext.js +2 -2
  218. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  219. package/lib/commonjs/contexts/typingContext/TypingContext.js +2 -2
  220. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  221. package/lib/commonjs/icons/UserAdmin.js +62 -0
  222. package/lib/commonjs/icons/UserAdmin.js.map +1 -0
  223. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  224. package/lib/commonjs/utils/utils.js.map +1 -1
  225. package/lib/commonjs/version.json +1 -1
  226. package/lib/module/components/Attachment/Attachment.js +10 -10
  227. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  228. package/lib/module/components/Attachment/AttachmentActions.js +4 -4
  229. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  230. package/lib/module/components/Attachment/Card.js +15 -15
  231. package/lib/module/components/Attachment/Card.js.map +1 -1
  232. package/lib/module/components/Attachment/FileAttachment.js +8 -8
  233. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  234. package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -4
  235. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  236. package/lib/module/components/Attachment/Gallery.js +8 -8
  237. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  238. package/lib/module/components/Attachment/Giphy.js +23 -23
  239. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  240. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  241. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  242. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  243. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  244. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  245. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  246. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
  247. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  248. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  249. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
  250. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  251. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
  252. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  253. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
  254. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  255. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
  256. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  257. package/lib/module/components/Channel/Channel.js +13 -13
  258. package/lib/module/components/Channel/Channel.js.map +1 -1
  259. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  260. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  261. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  262. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  263. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  264. package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  265. package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  266. package/lib/module/components/ChannelList/ChannelList.js +2 -2
  267. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  268. package/lib/module/components/ChannelList/ChannelListMessenger.js +14 -14
  269. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  270. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  271. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  272. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  273. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  274. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  275. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  276. package/lib/module/components/ChannelList/hooks/listeners/useConnectionRecovered.js.map +1 -1
  277. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  278. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  279. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  280. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  281. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  282. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  283. package/lib/module/components/ChannelList/utils.js.map +1 -1
  284. package/lib/module/components/ChannelPreview/ChannelAvatar.js +2 -2
  285. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  286. package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -2
  287. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  288. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
  289. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  290. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
  291. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  292. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
  293. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  294. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  295. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  296. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  297. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  298. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  299. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  300. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  301. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  302. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  303. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  304. package/lib/module/components/Chat/Chat.js +4 -4
  305. package/lib/module/components/Chat/Chat.js.map +1 -1
  306. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  307. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  308. package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
  309. package/lib/module/components/ImageGallery/ImageGallery.js +19 -19
  310. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  311. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
  312. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  313. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +10 -10
  314. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  315. package/lib/module/components/ImageGallery/components/ImageGrid.js +5 -5
  316. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  317. package/lib/module/components/Message/Message.js +6 -6
  318. package/lib/module/components/Message/Message.js.map +1 -1
  319. package/lib/module/components/Message/MessageSimple/MessageAvatar.js +4 -4
  320. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  321. package/lib/module/components/Message/MessageSimple/MessageContent.js +18 -18
  322. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  323. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +5 -5
  324. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  325. package/lib/module/components/Message/MessageSimple/MessageFooter.js +11 -11
  326. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  327. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
  328. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  329. package/lib/module/components/Message/MessageSimple/MessageReplies.js +10 -10
  330. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  331. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
  332. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  333. package/lib/module/components/Message/MessageSimple/MessageSimple.js +6 -6
  334. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  335. package/lib/module/components/Message/MessageSimple/MessageStatus.js +9 -9
  336. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  337. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +3 -3
  338. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  339. package/lib/module/components/Message/MessageSimple/ReactionList.js +18 -18
  340. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  341. package/lib/module/components/Message/MessageSimple/utils/renderText.js +14 -14
  342. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  343. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  344. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  345. package/lib/module/components/Message/hooks/useMessageActions.js +11 -11
  346. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  347. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  348. package/lib/module/components/Message/utils/removeReservedFields.js.map +1 -1
  349. package/lib/module/components/MessageInput/AttachButton.js +3 -3
  350. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  351. package/lib/module/components/MessageInput/CommandsButton.js +3 -3
  352. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  353. package/lib/module/components/MessageInput/FileUploadPreview.js +11 -11
  354. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  355. package/lib/module/components/MessageInput/ImageUploadPreview.js +7 -7
  356. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  357. package/lib/module/components/MessageInput/InputButtons.js +6 -6
  358. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  359. package/lib/module/components/MessageInput/MessageInput.js +34 -34
  360. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  361. package/lib/module/components/MessageInput/MoreOptionsButton.js +3 -3
  362. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  363. package/lib/module/components/MessageInput/SendButton.js +5 -5
  364. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  365. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
  366. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  367. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
  368. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
  369. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  370. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
  371. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  372. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
  373. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  374. package/lib/module/components/MessageList/MessageList.js +26 -26
  375. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  376. package/lib/module/components/MessageList/MessageSystem.js +6 -6
  377. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  378. package/lib/module/components/MessageList/TypingIndicator.js +3 -3
  379. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  380. package/lib/module/components/MessageList/TypingIndicatorContainer.js +2 -2
  381. package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  382. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  383. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  384. package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  385. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  386. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  387. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  388. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  389. package/lib/module/components/MessageOverlay/MessageActionList.js +3 -3
  390. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  391. package/lib/module/components/MessageOverlay/MessageActionListItem.js +6 -6
  392. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  393. package/lib/module/components/MessageOverlay/MessageOverlay.js +26 -25
  394. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  395. package/lib/module/components/MessageOverlay/OverlayReactionList.js +13 -13
  396. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  397. package/lib/module/components/MessageOverlay/OverlayReactions.js +19 -19
  398. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  399. package/lib/module/components/Reply/Reply.js +8 -8
  400. package/lib/module/components/Reply/Reply.js.map +1 -1
  401. package/lib/module/components/Thread/Thread.js +4 -4
  402. package/lib/module/components/Thread/Thread.js.map +1 -1
  403. package/lib/module/components/Thread/components/ThreadFooterComponent.js +12 -12
  404. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  405. package/lib/module/components/docs/data.js +44 -44
  406. package/lib/module/components/docs/data.js.map +1 -1
  407. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
  408. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  409. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  410. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  411. package/lib/module/contexts/channelsContext/ChannelsContext.js +2 -2
  412. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  413. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  414. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  415. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  416. package/lib/module/contexts/chatContext/ChatContext.js +2 -2
  417. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  418. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  419. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  420. package/lib/module/contexts/keyboardContext/KeyboardContext.js +1 -1
  421. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  422. package/lib/module/contexts/messageContext/MessageContext.js +2 -2
  423. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  424. package/lib/module/contexts/messageInputContext/MessageInputContext.js +2 -2
  425. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  426. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  427. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  428. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +2 -2
  429. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  430. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  431. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  432. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
  433. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  434. package/lib/module/contexts/overlayContext/OverlayProvider.js +12 -12
  435. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  436. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  437. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  438. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +2 -2
  439. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  440. package/lib/module/contexts/threadContext/ThreadContext.js +2 -2
  441. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  442. package/lib/module/contexts/translationContext/TranslationContext.js +2 -2
  443. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  444. package/lib/module/contexts/typingContext/TypingContext.js +2 -2
  445. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  446. package/lib/module/icons/UserAdmin.js +62 -0
  447. package/lib/module/icons/UserAdmin.js.map +1 -0
  448. package/lib/module/utils/Streami18n.js.map +1 -1
  449. package/lib/module/utils/utils.js.map +1 -1
  450. package/lib/module/version.json +1 -1
  451. package/lib/typescript/components/Attachment/Attachment.d.ts +5 -5
  452. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +4 -4
  453. package/lib/typescript/components/Attachment/Card.d.ts +4 -4
  454. package/lib/typescript/components/Attachment/FileAttachment.d.ts +5 -5
  455. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +4 -4
  456. package/lib/typescript/components/Attachment/Gallery.d.ts +5 -5
  457. package/lib/typescript/components/Attachment/Giphy.d.ts +6 -6
  458. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +3 -3
  459. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +3 -3
  460. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +3 -3
  461. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +3 -3
  462. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +3 -3
  463. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +3 -3
  464. package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +2 -2
  465. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +4 -4
  466. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +3 -2
  467. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +4 -4
  468. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +5 -5
  469. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +9 -9
  470. package/lib/typescript/components/Channel/Channel.d.ts +7 -7
  471. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +2 -2
  472. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +3 -3
  473. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +3 -3
  474. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +3 -3
  475. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +3 -3
  476. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +2 -2
  477. package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +2 -2
  478. package/lib/typescript/components/ChannelList/ChannelList.d.ts +14 -14
  479. package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +4 -4
  480. package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +5 -5
  481. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +5 -5
  482. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +5 -5
  483. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +5 -5
  484. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +5 -5
  485. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +5 -5
  486. package/lib/typescript/components/ChannelList/hooks/listeners/useConnectionRecovered.d.ts +2 -2
  487. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +4 -4
  488. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +5 -5
  489. package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +5 -5
  490. package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +4 -4
  491. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +2 -2
  492. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +7 -7
  493. package/lib/typescript/components/ChannelList/utils.d.ts +7 -7
  494. package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +3 -3
  495. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +5 -5
  496. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +4 -5
  497. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +5 -5
  498. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +3 -3
  499. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +3 -3
  500. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +3 -3
  501. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +3 -3
  502. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +3 -3
  503. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +4 -4
  504. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +2 -2
  505. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -5
  506. package/lib/typescript/components/Chat/Chat.d.ts +3 -3
  507. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +2 -2
  508. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +2 -2
  509. package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts +2 -2
  510. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +9 -9
  511. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +10 -10
  512. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +10 -10
  513. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +10 -10
  514. package/lib/typescript/components/Message/Message.d.ts +11 -11
  515. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +4 -4
  516. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +4 -4
  517. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +5 -5
  518. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +6 -6
  519. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +4 -4
  520. package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +4 -4
  521. package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +3 -3
  522. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +4 -4
  523. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +4 -4
  524. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +6 -6
  525. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +4 -4
  526. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +4 -4
  527. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +2 -2
  528. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +2 -2
  529. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +3 -3
  530. package/lib/typescript/components/Message/utils/messageActions.d.ts +5 -5
  531. package/lib/typescript/components/Message/utils/removeReservedFields.d.ts +2 -2
  532. package/lib/typescript/components/MessageInput/AttachButton.d.ts +4 -4
  533. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +4 -4
  534. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +4 -4
  535. package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +4 -4
  536. package/lib/typescript/components/MessageInput/InputButtons.d.ts +5 -5
  537. package/lib/typescript/components/MessageInput/MessageInput.d.ts +4 -4
  538. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +4 -4
  539. package/lib/typescript/components/MessageInput/SendButton.d.ts +4 -4
  540. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +2 -2
  541. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +2 -2
  542. package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +2 -2
  543. package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +2 -2
  544. package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +2 -2
  545. package/lib/typescript/components/MessageList/MessageList.d.ts +7 -7
  546. package/lib/typescript/components/MessageList/MessageSystem.d.ts +4 -4
  547. package/lib/typescript/components/MessageList/TypingIndicator.d.ts +2 -2
  548. package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +4 -4
  549. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +5 -5
  550. package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts +2 -2
  551. package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +3 -3
  552. package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +4 -4
  553. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +4 -4
  554. package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +2 -2
  555. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +8 -5
  556. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +4 -4
  557. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +4 -3
  558. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +4 -4
  559. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +6 -6
  560. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +2 -2
  561. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +1 -1
  562. package/lib/typescript/components/Reply/Reply.d.ts +4 -4
  563. package/lib/typescript/components/Thread/Thread.d.ts +7 -7
  564. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +2 -2
  565. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +2 -2
  566. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +12 -12
  567. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +18 -18
  568. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +19 -19
  569. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +17 -17
  570. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +11 -11
  571. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +8 -8
  572. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +2 -2
  573. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +12 -12
  574. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +33 -33
  575. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +2 -2
  576. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +3 -3
  577. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +21 -21
  578. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +57 -57
  579. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +4 -4
  580. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts +2 -2
  581. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +8 -8
  582. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +20 -20
  583. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +10 -10
  584. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +2 -2
  585. package/lib/typescript/contexts/typingContext/TypingContext.d.ts +8 -8
  586. package/lib/typescript/icons/UserAdmin.d.ts +3 -0
  587. package/lib/typescript/types/types.d.ts +16 -13
  588. package/lib/typescript/utils/Streami18n.d.ts +4 -4
  589. package/lib/typescript/utils/utils.d.ts +21 -21
  590. package/package.json +2 -2
  591. package/src/components/Attachment/Attachment.tsx +15 -56
  592. package/src/components/Attachment/AttachmentActions.tsx +15 -55
  593. package/src/components/Attachment/Card.tsx +15 -48
  594. package/src/components/Attachment/FileAttachment.tsx +14 -48
  595. package/src/components/Attachment/FileAttachmentGroup.tsx +16 -57
  596. package/src/components/Attachment/Gallery.tsx +18 -59
  597. package/src/components/Attachment/Giphy.tsx +18 -59
  598. package/src/components/Attachment/utils/buildGallery/buildGallery.ts +5 -3
  599. package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +6 -10
  600. package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +5 -5
  601. package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +5 -3
  602. package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +5 -3
  603. package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +5 -3
  604. package/src/components/Attachment/utils/getAspectRatio.ts +4 -4
  605. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +21 -61
  606. package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +5 -3
  607. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +12 -19
  608. package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +14 -21
  609. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +21 -24
  610. package/src/components/Channel/Channel.tsx +174 -257
  611. package/src/components/Channel/hooks/useCreateChannelContext.ts +4 -19
  612. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +52 -68
  613. package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -19
  614. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +3 -18
  615. package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +16 -32
  616. package/src/components/Channel/hooks/useCreateThreadContext.ts +4 -19
  617. package/src/components/Channel/hooks/useCreateTypingContext.ts +4 -19
  618. package/src/components/ChannelList/ChannelList.tsx +28 -49
  619. package/src/components/ChannelList/ChannelListMessenger.tsx +19 -70
  620. package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +14 -36
  621. package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +13 -35
  622. package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +13 -35
  623. package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +15 -37
  624. package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +13 -35
  625. package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +14 -36
  626. package/src/components/ChannelList/hooks/listeners/useConnectionRecovered.ts +3 -18
  627. package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +11 -33
  628. package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +13 -35
  629. package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +13 -35
  630. package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +9 -31
  631. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +4 -19
  632. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +11 -29
  633. package/src/components/ChannelList/utils.ts +9 -42
  634. package/src/components/ChannelPreview/ChannelAvatar.tsx +5 -26
  635. package/src/components/ChannelPreview/ChannelPreview.tsx +18 -51
  636. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +11 -21
  637. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +13 -46
  638. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +5 -26
  639. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +6 -27
  640. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +5 -26
  641. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +5 -26
  642. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +7 -28
  643. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +6 -27
  644. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +7 -28
  645. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +27 -78
  646. package/src/components/Chat/Chat.tsx +12 -40
  647. package/src/components/Chat/hooks/useCreateChatContext.ts +4 -19
  648. package/src/components/Chat/hooks/useIsOnline.ts +4 -19
  649. package/src/components/Chat/hooks/useMutedUsers.ts +5 -20
  650. package/src/components/ImageGallery/ImageGallery.tsx +30 -40
  651. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +19 -11
  652. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +19 -11
  653. package/src/components/ImageGallery/components/ImageGrid.tsx +45 -30
  654. package/src/components/Message/Message.tsx +40 -93
  655. package/src/components/Message/MessageSimple/MessageAvatar.tsx +13 -54
  656. package/src/components/Message/MessageSimple/MessageContent.tsx +18 -61
  657. package/src/components/Message/MessageSimple/MessageDeleted.tsx +17 -58
  658. package/src/components/Message/MessageSimple/MessageFooter.tsx +18 -60
  659. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +13 -54
  660. package/src/components/Message/MessageSimple/MessageReplies.tsx +15 -56
  661. package/src/components/Message/MessageSimple/MessageRepliesAvatars.tsx +5 -26
  662. package/src/components/Message/MessageSimple/MessageSimple.tsx +16 -57
  663. package/src/components/Message/MessageSimple/MessageStatus.tsx +13 -54
  664. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +19 -66
  665. package/src/components/Message/MessageSimple/ReactionList.tsx +16 -57
  666. package/src/components/Message/MessageSimple/utils/renderText.tsx +6 -27
  667. package/src/components/Message/hooks/useCreateMessageContext.ts +4 -19
  668. package/src/components/Message/hooks/useMessageActionHandlers.ts +8 -23
  669. package/src/components/Message/hooks/useMessageActions.tsx +8 -23
  670. package/src/components/Message/utils/messageActions.ts +7 -34
  671. package/src/components/Message/utils/removeReservedFields.ts +3 -18
  672. package/src/components/MessageInput/AttachButton.tsx +13 -54
  673. package/src/components/MessageInput/CommandsButton.tsx +15 -56
  674. package/src/components/MessageInput/FileUploadPreview.tsx +15 -57
  675. package/src/components/MessageInput/ImageUploadPreview.tsx +13 -55
  676. package/src/components/MessageInput/InputButtons.tsx +13 -54
  677. package/src/components/MessageInput/MessageInput.tsx +25 -66
  678. package/src/components/MessageInput/MoreOptionsButton.tsx +13 -54
  679. package/src/components/MessageInput/SendButton.tsx +13 -54
  680. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +4 -19
  681. package/src/components/MessageInput/hooks/useCooldown.ts +5 -19
  682. package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +3 -18
  683. package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +3 -18
  684. package/src/components/MessageList/InlineLoadingMoreThreadIndicator.tsx +3 -18
  685. package/src/components/MessageList/MessageList.tsx +34 -76
  686. package/src/components/MessageList/MessageSystem.tsx +5 -26
  687. package/src/components/MessageList/TypingIndicator.tsx +3 -18
  688. package/src/components/MessageList/TypingIndicatorContainer.tsx +14 -47
  689. package/src/components/MessageList/hooks/useMessageList.ts +19 -52
  690. package/src/components/MessageList/hooks/useTypingString.ts +5 -20
  691. package/src/components/MessageList/utils/filterTypingUsers.ts +7 -28
  692. package/src/components/MessageList/utils/getDateSeparators.ts +6 -27
  693. package/src/components/MessageList/utils/getGroupStyles.ts +6 -27
  694. package/src/components/MessageList/utils/getLastReceivedMessage.ts +3 -18
  695. package/src/components/MessageList/utils/getReadStates.ts +5 -20
  696. package/src/components/MessageOverlay/MessageActionList.tsx +15 -56
  697. package/src/components/MessageOverlay/MessageActionListItem.tsx +20 -9
  698. package/src/components/MessageOverlay/MessageOverlay.tsx +38 -81
  699. package/src/components/MessageOverlay/OverlayReactionList.tsx +21 -74
  700. package/src/components/MessageOverlay/OverlayReactions.tsx +3 -18
  701. package/src/components/Reply/Reply.tsx +22 -69
  702. package/src/components/Thread/Thread.tsx +20 -53
  703. package/src/components/Thread/components/ThreadFooterComponent.tsx +12 -47
  704. package/src/components/docs/data.js +38 -37
  705. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +9 -7
  706. package/src/contexts/channelContext/ChannelContext.tsx +15 -48
  707. package/src/contexts/channelsContext/ChannelsContext.tsx +22 -59
  708. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +38 -115
  709. package/src/contexts/channelsStateContext/useChannelState.ts +27 -60
  710. package/src/contexts/chatContext/ChatContext.tsx +14 -49
  711. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +12 -54
  712. package/src/contexts/keyboardContext/KeyboardContext.tsx +13 -7
  713. package/src/contexts/messageContext/MessageContext.tsx +15 -48
  714. package/src/contexts/messageInputContext/MessageInputContext.tsx +61 -110
  715. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +5 -20
  716. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +7 -31
  717. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +24 -71
  718. package/src/contexts/messagesContext/MessagesContext.tsx +60 -99
  719. package/src/contexts/overlayContext/OverlayContext.tsx +18 -26
  720. package/src/contexts/overlayContext/OverlayProvider.tsx +7 -22
  721. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +13 -53
  722. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +39 -40
  723. package/src/contexts/threadContext/ThreadContext.tsx +13 -46
  724. package/src/contexts/translationContext/TranslationContext.tsx +12 -7
  725. package/src/contexts/typingContext/TypingContext.tsx +11 -44
  726. package/src/icons/UserAdmin.tsx +23 -0
  727. package/src/types/types.ts +16 -18
  728. package/src/utils/Streami18n.ts +3 -3
  729. package/src/utils/utils.ts +63 -128
  730. package/src/version.json +1 -1
@@ -13,16 +13,7 @@ import {
13
13
  } from '../../contexts/messagesContext/MessagesContext';
14
14
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
15
15
 
16
- import type {
17
- DefaultAttachmentType,
18
- DefaultChannelType,
19
- DefaultCommandType,
20
- DefaultEventType,
21
- DefaultMessageType,
22
- DefaultReactionType,
23
- DefaultUserType,
24
- UnknownType,
25
- } from '../../types/types';
16
+ import type { DefaultStreamChatGenerics } from '../../types/types';
26
17
 
27
18
  const styles = StyleSheet.create({
28
19
  container: {
@@ -31,15 +22,9 @@ const styles = StyleSheet.create({
31
22
  });
32
23
 
33
24
  export type FileAttachmentGroupPropsWithContext<
34
- At extends UnknownType = DefaultAttachmentType,
35
- Ch extends UnknownType = DefaultChannelType,
36
- Co extends string = DefaultCommandType,
37
- Ev extends UnknownType = DefaultEventType,
38
- Me extends UnknownType = DefaultMessageType,
39
- Re extends UnknownType = DefaultReactionType,
40
- Us extends UnknownType = DefaultUserType,
41
- > = Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'files'> &
42
- Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'Attachment'> & {
25
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
26
+ > = Pick<MessageContextValue<StreamChatGenerics>, 'files'> &
27
+ Pick<MessagesContextValue<StreamChatGenerics>, 'Attachment'> & {
43
28
  /**
44
29
  * The unique id for the message with file attachments
45
30
  */
@@ -51,15 +36,9 @@ export type FileAttachmentGroupPropsWithContext<
51
36
  };
52
37
 
53
38
  const FileAttachmentGroupWithContext = <
54
- At extends UnknownType = DefaultAttachmentType,
55
- Ch extends UnknownType = DefaultChannelType,
56
- Co extends string = DefaultCommandType,
57
- Ev extends UnknownType = DefaultEventType,
58
- Me extends UnknownType = DefaultMessageType,
59
- Re extends UnknownType = DefaultReactionType,
60
- Us extends UnknownType = DefaultUserType,
39
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
61
40
  >(
62
- props: FileAttachmentGroupPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
41
+ props: FileAttachmentGroupPropsWithContext<StreamChatGenerics>,
63
42
  ) => {
64
43
  const { Attachment, files, messageId, styles: stylesProp = {} } = props;
65
44
 
@@ -88,17 +67,9 @@ const FileAttachmentGroupWithContext = <
88
67
  );
89
68
  };
90
69
 
91
- const areEqual = <
92
- At extends UnknownType = DefaultAttachmentType,
93
- Ch extends UnknownType = DefaultChannelType,
94
- Co extends string = DefaultCommandType,
95
- Ev extends UnknownType = DefaultEventType,
96
- Me extends UnknownType = DefaultMessageType,
97
- Re extends UnknownType = DefaultReactionType,
98
- Us extends UnknownType = DefaultUserType,
99
- >(
100
- prevProps: FileAttachmentGroupPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
101
- nextProps: FileAttachmentGroupPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
70
+ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(
71
+ prevProps: FileAttachmentGroupPropsWithContext<StreamChatGenerics>,
72
+ nextProps: FileAttachmentGroupPropsWithContext<StreamChatGenerics>,
102
73
  ) => {
103
74
  const { files: prevFiles } = prevProps;
104
75
  const { files: nextFiles } = nextProps;
@@ -114,32 +85,20 @@ const MemoizedFileAttachmentGroup = React.memo(
114
85
  ) as typeof FileAttachmentGroupWithContext;
115
86
 
116
87
  export type FileAttachmentGroupProps<
117
- At extends UnknownType = DefaultAttachmentType,
118
- Ch extends UnknownType = DefaultChannelType,
119
- Co extends string = DefaultCommandType,
120
- Ev extends UnknownType = DefaultEventType,
121
- Me extends UnknownType = DefaultMessageType,
122
- Re extends UnknownType = DefaultReactionType,
123
- Us extends UnknownType = DefaultUserType,
124
- > = Partial<Omit<FileAttachmentGroupPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'messageId'>> &
125
- Pick<FileAttachmentGroupPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'messageId'>;
88
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
89
+ > = Partial<Omit<FileAttachmentGroupPropsWithContext<StreamChatGenerics>, 'messageId'>> &
90
+ Pick<FileAttachmentGroupPropsWithContext<StreamChatGenerics>, 'messageId'>;
126
91
 
127
92
  export const FileAttachmentGroup = <
128
- At extends UnknownType = DefaultAttachmentType,
129
- Ch extends UnknownType = DefaultChannelType,
130
- Co extends string = DefaultCommandType,
131
- Ev extends UnknownType = DefaultEventType,
132
- Me extends UnknownType = DefaultMessageType,
133
- Re extends UnknownType = DefaultReactionType,
134
- Us extends UnknownType = DefaultUserType,
93
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
135
94
  >(
136
- props: FileAttachmentGroupProps<At, Ch, Co, Ev, Me, Re, Us>,
95
+ props: FileAttachmentGroupProps<StreamChatGenerics>,
137
96
  ) => {
138
97
  const { files: propFiles, messageId } = props;
139
98
 
140
- const { files: contextFiles } = useMessageContext<At, Ch, Co, Ev, Me, Re, Us>();
99
+ const { files: contextFiles } = useMessageContext<StreamChatGenerics>();
141
100
 
142
- const { Attachment = AttachmentDefault } = useMessagesContext<At, Ch, Co, Ev, Me, Re, Us>();
101
+ const { Attachment = AttachmentDefault } = useMessagesContext<StreamChatGenerics>();
143
102
 
144
103
  const files = propFiles || contextFiles;
145
104
 
@@ -23,16 +23,7 @@ import {
23
23
  useOverlayContext,
24
24
  } from '../../contexts/overlayContext/OverlayContext';
25
25
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
26
- import type {
27
- DefaultAttachmentType,
28
- DefaultChannelType,
29
- DefaultCommandType,
30
- DefaultEventType,
31
- DefaultMessageType,
32
- DefaultReactionType,
33
- DefaultUserType,
34
- UnknownType,
35
- } from '../../types/types';
26
+ import type { DefaultStreamChatGenerics } from '../../types/types';
36
27
  import { getUrlWithoutParams, makeImageCompatibleUrl } from '../../utils/utils';
37
28
 
38
29
  const GalleryImage: React.FC<
@@ -78,16 +69,10 @@ const styles = StyleSheet.create({
78
69
  });
79
70
 
80
71
  export type GalleryPropsWithContext<
81
- At extends UnknownType = DefaultAttachmentType,
82
- Ch extends UnknownType = DefaultChannelType,
83
- Co extends string = DefaultCommandType,
84
- Ev extends UnknownType = DefaultEventType,
85
- Me extends UnknownType = DefaultMessageType,
86
- Re extends UnknownType = DefaultReactionType,
87
- Us extends UnknownType = DefaultUserType,
88
- > = Pick<ImageGalleryContextValue, 'setImage' | 'setImages'> &
72
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
73
+ > = Pick<ImageGalleryContextValue<StreamChatGenerics>, 'setImage' | 'setImages'> &
89
74
  Pick<
90
- MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>,
75
+ MessageContextValue<StreamChatGenerics>,
91
76
  | 'alignment'
92
77
  | 'groupStyles'
93
78
  | 'images'
@@ -98,7 +83,7 @@ export type GalleryPropsWithContext<
98
83
  | 'threadList'
99
84
  > &
100
85
  Pick<
101
- MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>,
86
+ MessagesContextValue<StreamChatGenerics>,
102
87
  'additionalTouchableProps' | 'legacyImageViewerSwipeBehaviour'
103
88
  > &
104
89
  Pick<OverlayContextValue, 'setOverlay'> & {
@@ -116,19 +101,13 @@ export type GalleryPropsWithContext<
116
101
  *
117
102
  * TODO: Fix circular dependencies of imports
118
103
  */
119
- message?: MessageType<At, Ch, Co, Ev, Me, Re, Us>;
104
+ message?: MessageType<StreamChatGenerics>;
120
105
  };
121
106
 
122
107
  const GalleryWithContext = <
123
- At extends UnknownType = DefaultAttachmentType,
124
- Ch extends UnknownType = DefaultChannelType,
125
- Co extends string = DefaultCommandType,
126
- Ev extends UnknownType = DefaultEventType,
127
- Me extends UnknownType = DefaultMessageType,
128
- Re extends UnknownType = DefaultReactionType,
129
- Us extends UnknownType = DefaultUserType,
108
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
130
109
  >(
131
- props: GalleryPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
110
+ props: GalleryPropsWithContext<StreamChatGenerics>,
132
111
  ) => {
133
112
  const {
134
113
  additionalTouchableProps,
@@ -331,17 +310,9 @@ const GalleryWithContext = <
331
310
  );
332
311
  };
333
312
 
334
- const areEqual = <
335
- At extends UnknownType = DefaultAttachmentType,
336
- Ch extends UnknownType = DefaultChannelType,
337
- Co extends string = DefaultCommandType,
338
- Ev extends UnknownType = DefaultEventType,
339
- Me extends UnknownType = DefaultMessageType,
340
- Re extends UnknownType = DefaultReactionType,
341
- Us extends UnknownType = DefaultUserType,
342
- >(
343
- prevProps: GalleryPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
344
- nextProps: GalleryPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
313
+ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(
314
+ prevProps: GalleryPropsWithContext<StreamChatGenerics>,
315
+ nextProps: GalleryPropsWithContext<StreamChatGenerics>,
345
316
  ) => {
346
317
  const {
347
318
  groupStyles: prevGroupStyles,
@@ -381,28 +352,16 @@ const areEqual = <
381
352
  const MemoizedGallery = React.memo(GalleryWithContext, areEqual) as typeof GalleryWithContext;
382
353
 
383
354
  export type GalleryProps<
384
- At extends UnknownType = DefaultAttachmentType,
385
- Ch extends UnknownType = DefaultChannelType,
386
- Co extends string = DefaultCommandType,
387
- Ev extends UnknownType = DefaultEventType,
388
- Me extends UnknownType = DefaultMessageType,
389
- Re extends UnknownType = DefaultReactionType,
390
- Us extends UnknownType = DefaultUserType,
391
- > = Partial<GalleryPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>;
355
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
356
+ > = Partial<GalleryPropsWithContext<StreamChatGenerics>>;
392
357
 
393
358
  /**
394
359
  * UI component for card in attachments.
395
360
  */
396
361
  export const Gallery = <
397
- At extends UnknownType = DefaultAttachmentType,
398
- Ch extends UnknownType = DefaultChannelType,
399
- Co extends string = DefaultCommandType,
400
- Ev extends UnknownType = DefaultEventType,
401
- Me extends UnknownType = DefaultMessageType,
402
- Re extends UnknownType = DefaultReactionType,
403
- Us extends UnknownType = DefaultUserType,
362
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
404
363
  >(
405
- props: GalleryProps<At, Ch, Co, Ev, Me, Re, Us>,
364
+ props: GalleryProps<StreamChatGenerics>,
406
365
  ) => {
407
366
  const {
408
367
  additionalTouchableProps: propAdditionalTouchableProps,
@@ -419,7 +378,7 @@ export const Gallery = <
419
378
  threadList: propThreadList,
420
379
  } = props;
421
380
 
422
- const { setImage: contextSetImage, setImages } = useImageGalleryContext();
381
+ const { setImage: contextSetImage, setImages } = useImageGalleryContext<StreamChatGenerics>();
423
382
  const {
424
383
  alignment: contextAlignment,
425
384
  groupStyles: contextGroupStyles,
@@ -430,11 +389,11 @@ export const Gallery = <
430
389
  onPressIn: contextOnPressIn,
431
390
  preventPress: contextPreventPress,
432
391
  threadList: contextThreadList,
433
- } = useMessageContext<At, Ch, Co, Ev, Me, Re, Us>();
392
+ } = useMessageContext<StreamChatGenerics>();
434
393
  const {
435
394
  additionalTouchableProps: contextAdditionalTouchableProps,
436
395
  legacyImageViewerSwipeBehaviour,
437
- } = useMessagesContext<At, Ch, Co, Ev, Me, Re, Us>();
396
+ } = useMessagesContext<StreamChatGenerics>();
438
397
  const { setOverlay: contextSetOverlay } = useOverlayContext();
439
398
 
440
399
  const images = propImages || contextImages;
@@ -14,16 +14,7 @@ import {
14
14
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
15
15
  import { GiphyIcon } from '../../icons';
16
16
  import { Lightning } from '../../icons/Lightning';
17
- import type {
18
- DefaultAttachmentType,
19
- DefaultChannelType,
20
- DefaultCommandType,
21
- DefaultEventType,
22
- DefaultMessageType,
23
- DefaultReactionType,
24
- DefaultUserType,
25
- UnknownType,
26
- } from '../../types/types';
17
+ import type { DefaultStreamChatGenerics } from '../../types/types';
27
18
  import { makeImageCompatibleUrl } from '../../utils/utils';
28
19
 
29
20
  const styles = StyleSheet.create({
@@ -102,31 +93,19 @@ const styles = StyleSheet.create({
102
93
  });
103
94
 
104
95
  export type GiphyPropsWithContext<
105
- At extends UnknownType = DefaultAttachmentType,
106
- Ch extends UnknownType = DefaultChannelType,
107
- Co extends string = DefaultCommandType,
108
- Ev extends UnknownType = DefaultEventType,
109
- Me extends UnknownType = DefaultMessageType,
110
- Re extends UnknownType = DefaultReactionType,
111
- Us extends UnknownType = DefaultUserType,
96
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
112
97
  > = Pick<
113
- MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>,
98
+ MessageContextValue<StreamChatGenerics>,
114
99
  'handleAction' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
115
100
  > &
116
- Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps'> & {
117
- attachment: Attachment<At>;
101
+ Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps'> & {
102
+ attachment: Attachment<StreamChatGenerics>;
118
103
  };
119
104
 
120
105
  const GiphyWithContext = <
121
- At extends UnknownType = DefaultAttachmentType,
122
- Ch extends UnknownType = DefaultChannelType,
123
- Co extends string = DefaultCommandType,
124
- Ev extends UnknownType = DefaultEventType,
125
- Me extends UnknownType = DefaultMessageType,
126
- Re extends UnknownType = DefaultReactionType,
127
- Us extends UnknownType = DefaultUserType,
106
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
128
107
  >(
129
- props: GiphyPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
108
+ props: GiphyPropsWithContext<StreamChatGenerics>,
130
109
  ) => {
131
110
  const {
132
111
  additionalTouchableProps,
@@ -282,17 +261,9 @@ const GiphyWithContext = <
282
261
  );
283
262
  };
284
263
 
285
- const areEqual = <
286
- At extends UnknownType = DefaultAttachmentType,
287
- Ch extends UnknownType = DefaultChannelType,
288
- Co extends string = DefaultCommandType,
289
- Ev extends UnknownType = DefaultEventType,
290
- Me extends UnknownType = DefaultMessageType,
291
- Re extends UnknownType = DefaultReactionType,
292
- Us extends UnknownType = DefaultUserType,
293
- >(
294
- prevProps: GiphyPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
295
- nextProps: GiphyPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
264
+ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(
265
+ prevProps: GiphyPropsWithContext<StreamChatGenerics>,
266
+ nextProps: GiphyPropsWithContext<StreamChatGenerics>,
296
267
  ) => {
297
268
  const {
298
269
  attachment: { actions: prevActions, image_url: prevImageUrl, thumb_url: prevThumbUrl },
@@ -321,37 +292,25 @@ const areEqual = <
321
292
  const MemoizedGiphy = React.memo(GiphyWithContext, areEqual) as typeof GiphyWithContext;
322
293
 
323
294
  export type GiphyProps<
324
- At extends UnknownType = DefaultAttachmentType,
325
- Ch extends UnknownType = DefaultChannelType,
326
- Co extends string = DefaultCommandType,
327
- Ev extends UnknownType = DefaultEventType,
328
- Me extends UnknownType = DefaultMessageType,
329
- Re extends UnknownType = DefaultReactionType,
330
- Us extends UnknownType = DefaultUserType,
295
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
331
296
  > = Partial<
332
- Pick<MessageContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'onLongPress' | 'onPressIn'> &
333
- Pick<MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>, 'additionalTouchableProps'>
297
+ Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPressIn'> &
298
+ Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps'>
334
299
  > & {
335
- attachment: Attachment<At>;
300
+ attachment: Attachment<StreamChatGenerics>;
336
301
  };
337
302
 
338
303
  /**
339
304
  * UI component for card in attachments.
340
305
  */
341
306
  export const Giphy = <
342
- At extends UnknownType = DefaultAttachmentType,
343
- Ch extends UnknownType = DefaultChannelType,
344
- Co extends string = DefaultCommandType,
345
- Ev extends UnknownType = DefaultEventType,
346
- Me extends UnknownType = DefaultMessageType,
347
- Re extends UnknownType = DefaultReactionType,
348
- Us extends UnknownType = DefaultUserType,
307
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
349
308
  >(
350
- props: GiphyProps<At, Ch, Co, Ev, Me, Re, Us>,
309
+ props: GiphyProps<StreamChatGenerics>,
351
310
  ) => {
352
311
  const { handleAction, onLongPress, onPress, onPressIn, preventPress } =
353
- useMessageContext<At, Ch, Co, Ev, Me, Re, Us>();
354
- const { additionalTouchableProps } = useMessagesContext<At, Ch, Co, Ev, Me, Re, Us>();
312
+ useMessageContext<StreamChatGenerics>();
313
+ const { additionalTouchableProps } = useMessagesContext<StreamChatGenerics>();
355
314
 
356
315
  return (
357
316
  <MemoizedGiphy
@@ -8,7 +8,7 @@ import { buildThumbnailGrid } from './buildThumbnailGrid';
8
8
 
9
9
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
10
10
 
11
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
11
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
12
12
 
13
13
  /**
14
14
  * Builds and returns a gallery of optimized images to be rendered on UI.
@@ -26,11 +26,13 @@ import type { DefaultAttachmentType, UnknownType } from '../../../../types/types
26
26
  *
27
27
  * @return {GallerySizeAndThumbnailGrid}
28
28
  */
29
- export function buildGallery<At extends UnknownType = DefaultAttachmentType>({
29
+ export function buildGallery<
30
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
31
+ >({
30
32
  images,
31
33
  sizeConfig,
32
34
  }: {
33
- images: Attachment<At>[];
35
+ images: Attachment<StreamChatGenerics>[];
34
36
  sizeConfig: GallerySizeConfig;
35
37
  }): GallerySizeAndThumbnailGrid {
36
38
  if (images.length === 1) {
@@ -4,7 +4,7 @@ import { buildThumbnail } from './buildThumbnail';
4
4
 
5
5
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
6
6
 
7
- import type { DefaultAttachmentType } from '../../../../types/types';
7
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
8
8
  import { getAspectRatio } from '../getAspectRatio';
9
9
 
10
10
  /**
@@ -19,13 +19,9 @@ function clamp(number: number, min: number, max: number) {
19
19
  return Math.min(Math.max(number, min), max);
20
20
  }
21
21
 
22
- function getContainerSize<At extends DefaultAttachmentType = DefaultAttachmentType>({
23
- image,
24
- sizeConfig,
25
- }: {
26
- image: Attachment<At>;
27
- sizeConfig: GallerySizeConfig;
28
- }) {
22
+ function getContainerSize<
23
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
24
+ >({ image, sizeConfig }: { image: Attachment<StreamChatGenerics>; sizeConfig: GallerySizeConfig }) {
29
25
  const { original_height: height, original_width: width } = image;
30
26
  const { gridHeight, gridWidth, maxHeight, maxWidth, minHeight, minWidth } = sizeConfig;
31
27
 
@@ -68,12 +64,12 @@ function getContainerSize<At extends DefaultAttachmentType = DefaultAttachmentTy
68
64
  }
69
65
 
70
66
  export function buildGalleryOfSingleImage<
71
- At extends DefaultAttachmentType = DefaultAttachmentType,
67
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
72
68
  >({
73
69
  image,
74
70
  sizeConfig,
75
71
  }: {
76
- image: Attachment<At>;
72
+ image: Attachment<StreamChatGenerics>;
77
73
  sizeConfig: GallerySizeConfig;
78
74
  }): GallerySizeAndThumbnailGrid {
79
75
  const container = getContainerSize({
@@ -4,7 +4,7 @@ import { buildThumbnailGrid } from './buildThumbnailGrid';
4
4
 
5
5
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
6
6
 
7
- import type { DefaultAttachmentType } from '../../../../types/types';
7
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
8
8
  import { getAspectRatio } from '../getAspectRatio';
9
9
 
10
10
  /** function to move item to the front of the array */
@@ -20,12 +20,12 @@ function moveToFront<T>(array: T[], item: T): T[] {
20
20
  }
21
21
 
22
22
  export function buildGalleryOfThreeImages<
23
- At extends DefaultAttachmentType = DefaultAttachmentType,
23
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
24
24
  >({
25
25
  images,
26
26
  sizeConfig,
27
27
  }: {
28
- images: Attachment<At>[];
28
+ images: Attachment<StreamChatGenerics>[];
29
29
  sizeConfig: GallerySizeConfig;
30
30
  }): GallerySizeAndThumbnailGrid {
31
31
  // Find the most ladscape and most portrait image.
@@ -55,9 +55,9 @@ export function buildGalleryOfThreeImages<
55
55
  landscapeImageAspectRatio: 1,
56
56
  portraitImageAspectRatio: 1,
57
57
  } as {
58
- landscapeImage: Attachment<At>;
58
+ landscapeImage: Attachment<StreamChatGenerics>;
59
59
  landscapeImageAspectRatio: number;
60
- portraitImage: Attachment<At>;
60
+ portraitImage: Attachment<StreamChatGenerics>;
61
61
  portraitImageAspectRatio: number;
62
62
  },
63
63
  );
@@ -4,14 +4,16 @@ import { buildThumbnailGrid } from './buildThumbnailGrid';
4
4
 
5
5
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig } from './types';
6
6
 
7
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
7
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
8
8
  import { getAspectRatio } from '../getAspectRatio';
9
9
 
10
- export function buildGalleryOfTwoImages<At extends UnknownType = DefaultAttachmentType>({
10
+ export function buildGalleryOfTwoImages<
11
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
12
+ >({
11
13
  images,
12
14
  sizeConfig,
13
15
  }: {
14
- images: Attachment<At>[];
16
+ images: Attachment<StreamChatGenerics>[];
15
17
  sizeConfig: GallerySizeConfig;
16
18
  }): GallerySizeAndThumbnailGrid {
17
19
  const aspectRatio1 = getAspectRatio(images[0]);
@@ -4,19 +4,21 @@ import type { Attachment } from 'stream-chat';
4
4
 
5
5
  import type { Thumbnail } from './types';
6
6
 
7
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
7
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
8
8
 
9
9
  import { getResizedImageUrl } from '../../../../utils/getResizedImageUrl';
10
10
  import { getUrlOfImageAttachment } from '../../../../utils/getUrlOfImageAttachment';
11
11
 
12
- export function buildThumbnail<At extends UnknownType = DefaultAttachmentType>({
12
+ export function buildThumbnail<
13
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
14
+ >({
13
15
  height,
14
16
  image,
15
17
  resizeMode,
16
18
  width,
17
19
  }: {
18
20
  height: number;
19
- image: Attachment<At>;
21
+ image: Attachment<StreamChatGenerics>;
20
22
  width: number;
21
23
  resizeMode?: ImageResizeMode;
22
24
  }): Thumbnail {
@@ -3,7 +3,7 @@ import type { Attachment } from 'stream-chat';
3
3
  import { buildThumbnail } from './buildThumbnail';
4
4
  import type { GallerySizeAndThumbnailGrid, GallerySizeConfig, ThumbnailGrid } from './types';
5
5
 
6
- import type { DefaultAttachmentType, UnknownType } from '../../../../types/types';
6
+ import type { DefaultStreamChatGenerics } from '../../../../types/types';
7
7
 
8
8
  /**
9
9
  * Builds a grid of thumbnail images from image attachments.
@@ -133,14 +133,16 @@ import type { DefaultAttachmentType, UnknownType } from '../../../../types/types
133
133
  *
134
134
  * @return {GallerySizeAndThumbnailGrid}
135
135
  */
136
- export function buildThumbnailGrid<At extends UnknownType = DefaultAttachmentType>({
136
+ export function buildThumbnailGrid<
137
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
138
+ >({
137
139
  grid,
138
140
  images,
139
141
  invertedDirections = false,
140
142
  sizeConfig,
141
143
  }: {
142
144
  grid: number[][];
143
- images: Attachment<At>[];
145
+ images: Attachment<StreamChatGenerics>[];
144
146
  invertedDirections: boolean;
145
147
  sizeConfig: GallerySizeConfig;
146
148
  }): GallerySizeAndThumbnailGrid {
@@ -1,6 +1,6 @@
1
1
  import type { Attachment } from 'stream-chat';
2
2
 
3
- import type { DefaultAttachmentType, UnknownType } from '../../../types/types';
3
+ import type { DefaultStreamChatGenerics } from '../../../types/types';
4
4
 
5
5
  /**
6
6
  * Returns the aspect ratio of an image attachment.
@@ -8,9 +8,9 @@ import type { DefaultAttachmentType, UnknownType } from '../../../types/types';
8
8
  * @param image Image attachment.
9
9
  * @returns {number}
10
10
  */
11
- export function getAspectRatio<At extends UnknownType = DefaultAttachmentType>(
12
- image: Attachment<At>,
13
- ) {
11
+ export function getAspectRatio<
12
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
13
+ >(image: Attachment<StreamChatGenerics>) {
14
14
  if (image.type !== 'image') {
15
15
  throw new Error('getAspectRatio() can only be called on an image attachment');
16
16
  }