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

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 (866) hide show
  1. package/lib/commonjs/components/Attachment/Attachment.js +2 -2
  2. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
  4. package/lib/commonjs/components/Attachment/Card.js +15 -15
  5. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  6. package/lib/commonjs/components/Attachment/FileAttachment.js +8 -8
  7. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  8. package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
  9. package/lib/commonjs/components/Attachment/Gallery.js +97 -106
  10. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  11. package/lib/commonjs/components/Attachment/Giphy.js +112 -148
  12. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  13. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js +46 -0
  14. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -0
  15. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +88 -0
  16. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -0
  17. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +75 -0
  18. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -0
  19. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +43 -0
  20. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -0
  21. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +30 -0
  22. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -0
  23. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +49 -0
  24. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -0
  25. package/lib/commonjs/components/Attachment/utils/buildGallery/types.js +4 -0
  26. package/lib/commonjs/components/Attachment/utils/buildGallery/types.js.map +1 -0
  27. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js +14 -0
  28. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -0
  29. package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js +36 -0
  30. package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -0
  31. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +9 -8
  32. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  33. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  34. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  35. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  36. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  37. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +16 -16
  38. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  39. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +11 -11
  40. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  41. package/lib/commonjs/components/Avatar/Avatar.js +13 -7
  42. package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
  43. package/lib/commonjs/components/Avatar/GroupAvatar.js +10 -4
  44. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  45. package/lib/commonjs/components/Channel/Channel.js +64 -64
  46. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  47. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  48. package/lib/commonjs/components/ChannelList/ChannelList.js +6 -6
  49. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  50. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +4 -4
  51. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  52. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js +6 -7
  53. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  54. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +2 -2
  55. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  56. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +17 -17
  57. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  58. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +2 -2
  59. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  60. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  61. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  62. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  63. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  64. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js +2 -2
  65. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  66. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js +2 -2
  67. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  68. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +3 -3
  69. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  70. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  71. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  72. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
  73. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  74. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +83 -70
  75. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  76. package/lib/commonjs/components/ChannelList/utils.js +1 -1
  77. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +2 -2
  78. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  79. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -2
  80. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  81. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  82. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +48 -20
  83. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  84. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +51 -0
  85. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -0
  86. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  87. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  88. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  89. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  90. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  91. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  92. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  93. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  94. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  95. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  96. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  97. package/lib/commonjs/components/ImageGallery/ImageGallery.js +89 -56
  98. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  99. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +2 -2
  100. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  101. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +12 -12
  102. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  103. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +28 -11
  104. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  105. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +7 -7
  106. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  107. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js +5 -5
  108. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  109. package/lib/commonjs/components/Indicators/LoadingIndicator.js +9 -9
  110. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  111. package/lib/commonjs/components/Message/Message.js +13 -9
  112. package/lib/commonjs/components/Message/Message.js.map +1 -1
  113. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +6 -6
  114. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  115. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +19 -19
  116. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  117. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +5 -5
  118. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  119. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +20 -16
  120. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  121. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +2 -2
  122. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  123. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +5 -5
  124. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  125. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +9 -7
  126. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  127. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +46 -46
  128. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  129. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js +89 -0
  130. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -0
  131. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js +46 -0
  132. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -0
  133. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +151 -72
  134. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  135. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js +240 -0
  136. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -0
  137. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  138. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +16 -3
  139. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  140. package/lib/commonjs/components/Message/hooks/useMessageActions.js +18 -14
  141. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  142. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  143. package/lib/commonjs/components/Message/utils/removeReservedFields.js.map +1 -1
  144. package/lib/commonjs/components/MessageInput/AttachButton.js +3 -3
  145. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  146. package/lib/commonjs/components/MessageInput/CommandsButton.js +3 -3
  147. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  148. package/lib/commonjs/components/MessageInput/CooldownTimer.js +2 -2
  149. package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -1
  150. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +2 -2
  151. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  152. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +7 -7
  153. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  154. package/lib/commonjs/components/MessageInput/InputButtons.js +3 -3
  155. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  156. package/lib/commonjs/components/MessageInput/MessageInput.js +40 -40
  157. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  158. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +3 -3
  159. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  160. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +2 -2
  161. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  162. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +3 -3
  163. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  164. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
  165. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -1
  166. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +1 -1
  167. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +1 -1
  168. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +1 -1
  169. package/lib/commonjs/components/MessageList/MessageList.js +2 -2
  170. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  171. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  172. package/lib/commonjs/components/MessageList/TypingIndicator.js +5 -5
  173. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  174. package/lib/commonjs/components/MessageList/hooks/useMessageList.js +7 -7
  175. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  176. package/lib/commonjs/components/MessageList/hooks/useTypingString.js +2 -2
  177. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  178. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  179. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +3 -1
  180. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  181. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +2 -2
  182. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  183. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +7 -7
  184. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  185. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +38 -32
  186. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  187. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +1 -1
  188. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  189. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +11 -11
  190. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  191. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +31 -34
  192. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  193. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js +41 -0
  194. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
  195. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  196. package/lib/commonjs/components/Reply/Reply.js +25 -19
  197. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  198. package/lib/commonjs/components/Thread/Thread.js +6 -6
  199. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  200. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +12 -12
  201. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  202. package/lib/commonjs/components/docs/data.js +1 -1
  203. package/lib/commonjs/components/index.js +26 -0
  204. package/lib/commonjs/components/index.js.map +1 -1
  205. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +2 -2
  206. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  207. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +2 -2
  208. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  209. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  210. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  211. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +2 -2
  212. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  213. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  214. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  215. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  216. package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
  217. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  218. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  219. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  220. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +2 -2
  221. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  222. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
  223. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  224. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +18 -14
  225. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  226. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  227. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +10 -3
  228. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  229. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +5 -19
  230. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  231. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +36 -0
  232. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
  233. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +105 -0
  234. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
  235. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  236. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
  237. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  238. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +33 -31
  239. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  240. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +1 -1
  241. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  242. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  243. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +3 -3
  244. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  245. package/lib/commonjs/contexts/themeContext/ThemeContext.js +2 -2
  246. package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
  247. package/lib/commonjs/contexts/themeContext/utils/theme.js +20 -11
  248. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  249. package/lib/commonjs/contexts/threadContext/ThreadContext.js +2 -2
  250. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  251. package/lib/commonjs/contexts/translationContext/TranslationContext.js +1 -1
  252. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  253. package/lib/commonjs/contexts/typingContext/TypingContext.js +2 -2
  254. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  255. package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
  256. package/lib/commonjs/emoji-data/index.js +2 -2
  257. package/lib/commonjs/emoji-data/index.js.map +1 -1
  258. package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
  259. package/lib/commonjs/icons/index.js +0 -26
  260. package/lib/commonjs/icons/index.js.map +1 -1
  261. package/lib/commonjs/icons/utils/base.js +1 -1
  262. package/lib/commonjs/index.js +6 -6
  263. package/lib/commonjs/mock-builders/api/error.js +1 -1
  264. package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
  265. package/lib/commonjs/mock-builders/generator/attachment.js +1 -3
  266. package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
  267. package/lib/commonjs/mock-builders/generator/channel.js +101 -51
  268. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  269. package/lib/commonjs/mock-builders/generator/user.js +32 -33
  270. package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
  271. package/lib/commonjs/mock-builders/mock.js +1 -1
  272. package/lib/commonjs/native.js +1 -1
  273. package/lib/commonjs/native.js.map +1 -1
  274. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js +7 -7
  275. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js.map +1 -1
  276. package/lib/commonjs/styleguideComponents/JsDoc.js +4 -4
  277. package/lib/commonjs/styleguideComponents/JsDoc.js.map +1 -1
  278. package/lib/commonjs/styleguideComponents/PathlineRenderer.js +7 -7
  279. package/lib/commonjs/styleguideComponents/PathlineRenderer.js.map +1 -1
  280. package/lib/commonjs/styleguideComponents/PropsRenderer.js +25 -25
  281. package/lib/commonjs/styleguideComponents/PropsRenderer.js.map +1 -1
  282. package/lib/commonjs/styleguideComponents/Wrapper.js +1 -1
  283. package/lib/commonjs/styleguideComponents/Wrapper.js.map +1 -1
  284. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  285. package/lib/commonjs/utils/getResizedImageUrl.js +26 -0
  286. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -0
  287. package/lib/commonjs/utils/getUrlOfImageAttachment.js +9 -0
  288. package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -0
  289. package/lib/commonjs/utils/utils.js +9 -3
  290. package/lib/commonjs/utils/utils.js.map +1 -1
  291. package/lib/commonjs/version.json +1 -1
  292. package/lib/module/components/Attachment/Attachment.js +2 -2
  293. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  294. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  295. package/lib/module/components/Attachment/Card.js +15 -15
  296. package/lib/module/components/Attachment/Card.js.map +1 -1
  297. package/lib/module/components/Attachment/FileAttachment.js +8 -8
  298. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  299. package/lib/module/components/Attachment/FileIcon.js.map +1 -1
  300. package/lib/module/components/Attachment/Gallery.js +97 -106
  301. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  302. package/lib/module/components/Attachment/Giphy.js +112 -148
  303. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  304. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js +46 -0
  305. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -0
  306. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +88 -0
  307. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -0
  308. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +75 -0
  309. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -0
  310. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +43 -0
  311. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -0
  312. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +30 -0
  313. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -0
  314. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +49 -0
  315. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -0
  316. package/lib/module/components/Attachment/utils/buildGallery/types.js +4 -0
  317. package/lib/module/components/Attachment/utils/buildGallery/types.js.map +1 -0
  318. package/lib/module/components/Attachment/utils/getAspectRatio.js +14 -0
  319. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -0
  320. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js +36 -0
  321. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -0
  322. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +9 -8
  323. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  324. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  325. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  326. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  327. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  328. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +16 -16
  329. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  330. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +11 -11
  331. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  332. package/lib/module/components/Avatar/Avatar.js +13 -7
  333. package/lib/module/components/Avatar/Avatar.js.map +1 -1
  334. package/lib/module/components/Avatar/GroupAvatar.js +10 -4
  335. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  336. package/lib/module/components/Channel/Channel.js +64 -64
  337. package/lib/module/components/Channel/Channel.js.map +1 -1
  338. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  339. package/lib/module/components/ChannelList/ChannelList.js +6 -6
  340. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  341. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +4 -4
  342. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  343. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js +6 -7
  344. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  345. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +2 -2
  346. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  347. package/lib/module/components/ChannelList/ChannelListMessenger.js +17 -17
  348. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  349. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +2 -2
  350. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  351. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  352. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  353. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  354. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  355. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js +2 -2
  356. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  357. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js +2 -2
  358. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  359. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +3 -3
  360. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  361. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  362. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  363. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
  364. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  365. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +83 -70
  366. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  367. package/lib/module/components/ChannelList/utils.js +1 -1
  368. package/lib/module/components/ChannelPreview/ChannelAvatar.js +2 -2
  369. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  370. package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -2
  371. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  372. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  373. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +48 -20
  374. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  375. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +51 -0
  376. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -0
  377. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  378. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  379. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  380. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  381. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  382. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  383. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  384. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  385. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  386. package/lib/module/components/Chat/Chat.js.map +1 -1
  387. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  388. package/lib/module/components/ImageGallery/ImageGallery.js +89 -56
  389. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  390. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +2 -2
  391. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  392. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +12 -12
  393. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  394. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +28 -11
  395. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  396. package/lib/module/components/ImageGallery/components/ImageGrid.js +7 -7
  397. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  398. package/lib/module/components/ImageGallery/components/ImageGridHandle.js +5 -5
  399. package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  400. package/lib/module/components/Indicators/LoadingIndicator.js +9 -9
  401. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  402. package/lib/module/components/Message/Message.js +13 -9
  403. package/lib/module/components/Message/Message.js.map +1 -1
  404. package/lib/module/components/Message/MessageSimple/MessageAvatar.js +6 -6
  405. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  406. package/lib/module/components/Message/MessageSimple/MessageContent.js +19 -19
  407. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  408. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +5 -5
  409. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  410. package/lib/module/components/Message/MessageSimple/MessageFooter.js +20 -16
  411. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  412. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +2 -2
  413. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  414. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +5 -5
  415. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  416. package/lib/module/components/Message/MessageSimple/MessageStatus.js +9 -7
  417. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  418. package/lib/module/components/Message/MessageSimple/ReactionList.js +46 -46
  419. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  420. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js +89 -0
  421. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -0
  422. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js +46 -0
  423. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -0
  424. package/lib/module/components/Message/MessageSimple/utils/renderText.js +151 -72
  425. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  426. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js +240 -0
  427. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -0
  428. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  429. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +16 -3
  430. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  431. package/lib/module/components/Message/hooks/useMessageActions.js +18 -14
  432. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  433. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  434. package/lib/module/components/Message/utils/removeReservedFields.js.map +1 -1
  435. package/lib/module/components/MessageInput/AttachButton.js +3 -3
  436. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  437. package/lib/module/components/MessageInput/CommandsButton.js +3 -3
  438. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  439. package/lib/module/components/MessageInput/CooldownTimer.js +2 -2
  440. package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -1
  441. package/lib/module/components/MessageInput/FileUploadPreview.js +2 -2
  442. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  443. package/lib/module/components/MessageInput/ImageUploadPreview.js +7 -7
  444. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  445. package/lib/module/components/MessageInput/InputButtons.js +3 -3
  446. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  447. package/lib/module/components/MessageInput/MessageInput.js +40 -40
  448. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  449. package/lib/module/components/MessageInput/MoreOptionsButton.js +3 -3
  450. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  451. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +2 -2
  452. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  453. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +3 -3
  454. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  455. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
  456. package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -1
  457. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +1 -1
  458. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +1 -1
  459. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +1 -1
  460. package/lib/module/components/MessageList/MessageList.js +2 -2
  461. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  462. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  463. package/lib/module/components/MessageList/TypingIndicator.js +5 -5
  464. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  465. package/lib/module/components/MessageList/hooks/useMessageList.js +7 -7
  466. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  467. package/lib/module/components/MessageList/hooks/useTypingString.js +2 -2
  468. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  469. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  470. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +3 -1
  471. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  472. package/lib/module/components/MessageOverlay/MessageActionList.js +2 -2
  473. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  474. package/lib/module/components/MessageOverlay/MessageActionListItem.js +7 -7
  475. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  476. package/lib/module/components/MessageOverlay/MessageOverlay.js +38 -32
  477. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  478. package/lib/module/components/MessageOverlay/OverlayBackdrop.js +1 -1
  479. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  480. package/lib/module/components/MessageOverlay/OverlayReactionList.js +11 -11
  481. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  482. package/lib/module/components/MessageOverlay/OverlayReactions.js +31 -34
  483. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  484. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js +41 -0
  485. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
  486. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  487. package/lib/module/components/Reply/Reply.js +25 -19
  488. package/lib/module/components/Reply/Reply.js.map +1 -1
  489. package/lib/module/components/Thread/Thread.js +6 -6
  490. package/lib/module/components/Thread/Thread.js.map +1 -1
  491. package/lib/module/components/Thread/components/ThreadFooterComponent.js +12 -12
  492. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  493. package/lib/module/components/docs/data.js +1 -1
  494. package/lib/module/components/index.js +26 -0
  495. package/lib/module/components/index.js.map +1 -1
  496. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +2 -2
  497. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  498. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +2 -2
  499. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  500. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  501. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  502. package/lib/module/contexts/channelsContext/ChannelsContext.js +2 -2
  503. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  504. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  505. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  506. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  507. package/lib/module/contexts/chatContext/ChatContext.js +2 -2
  508. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  509. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  510. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  511. package/lib/module/contexts/keyboardContext/KeyboardContext.js +2 -2
  512. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  513. package/lib/module/contexts/messageContext/MessageContext.js +2 -2
  514. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  515. package/lib/module/contexts/messageInputContext/MessageInputContext.js +18 -14
  516. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  517. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  518. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +10 -3
  519. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  520. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +5 -19
  521. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  522. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +36 -0
  523. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
  524. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +105 -0
  525. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
  526. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  527. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
  528. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  529. package/lib/module/contexts/overlayContext/OverlayProvider.js +33 -31
  530. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  531. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +1 -1
  532. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  533. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  534. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +3 -3
  535. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  536. package/lib/module/contexts/themeContext/ThemeContext.js +2 -2
  537. package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
  538. package/lib/module/contexts/themeContext/utils/theme.js +20 -11
  539. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  540. package/lib/module/contexts/threadContext/ThreadContext.js +2 -2
  541. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  542. package/lib/module/contexts/translationContext/TranslationContext.js +1 -1
  543. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  544. package/lib/module/contexts/typingContext/TypingContext.js +2 -2
  545. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  546. package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
  547. package/lib/module/emoji-data/index.js +2 -2
  548. package/lib/module/emoji-data/index.js.map +1 -1
  549. package/lib/module/hooks/useStreami18n.js.map +1 -1
  550. package/lib/module/icons/index.js +0 -26
  551. package/lib/module/icons/index.js.map +1 -1
  552. package/lib/module/icons/utils/base.js +1 -1
  553. package/lib/module/index.js +6 -6
  554. package/lib/module/mock-builders/api/error.js +1 -1
  555. package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
  556. package/lib/module/mock-builders/generator/attachment.js +1 -3
  557. package/lib/module/mock-builders/generator/attachment.js.map +1 -1
  558. package/lib/module/mock-builders/generator/channel.js +101 -51
  559. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  560. package/lib/module/mock-builders/generator/user.js +32 -33
  561. package/lib/module/mock-builders/generator/user.js.map +1 -1
  562. package/lib/module/mock-builders/mock.js +1 -1
  563. package/lib/module/native.js +1 -1
  564. package/lib/module/native.js.map +1 -1
  565. package/lib/module/styleguideComponents/ArgumentsRenderer.js +7 -7
  566. package/lib/module/styleguideComponents/ArgumentsRenderer.js.map +1 -1
  567. package/lib/module/styleguideComponents/JsDoc.js +4 -4
  568. package/lib/module/styleguideComponents/JsDoc.js.map +1 -1
  569. package/lib/module/styleguideComponents/PathlineRenderer.js +7 -7
  570. package/lib/module/styleguideComponents/PathlineRenderer.js.map +1 -1
  571. package/lib/module/styleguideComponents/PropsRenderer.js +25 -25
  572. package/lib/module/styleguideComponents/PropsRenderer.js.map +1 -1
  573. package/lib/module/styleguideComponents/Wrapper.js +1 -1
  574. package/lib/module/styleguideComponents/Wrapper.js.map +1 -1
  575. package/lib/module/utils/Streami18n.js.map +1 -1
  576. package/lib/module/utils/getResizedImageUrl.js +26 -0
  577. package/lib/module/utils/getResizedImageUrl.js.map +1 -0
  578. package/lib/module/utils/getUrlOfImageAttachment.js +9 -0
  579. package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -0
  580. package/lib/module/utils/utils.js +9 -3
  581. package/lib/module/utils/utils.js.map +1 -1
  582. package/lib/module/version.json +1 -1
  583. package/lib/typescript/components/Attachment/Attachment.d.ts +1 -1
  584. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +1 -1
  585. package/lib/typescript/components/Attachment/Card.d.ts +1 -1
  586. package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
  587. package/lib/typescript/components/Attachment/Gallery.d.ts +1 -4
  588. package/lib/typescript/components/Attachment/Giphy.d.ts +1 -1
  589. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +23 -0
  590. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +7 -0
  591. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +7 -0
  592. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +7 -0
  593. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +10 -0
  594. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +137 -0
  595. package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts +23 -0
  596. package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +9 -0
  597. package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts +22 -0
  598. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +1 -1
  599. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +1 -1
  600. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +2 -3
  601. package/lib/typescript/components/Avatar/Avatar.d.ts +1 -1
  602. package/lib/typescript/components/Channel/Channel.d.ts +4 -4
  603. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +1 -1
  604. package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -1
  605. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +4 -2
  606. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +2 -2
  607. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -2
  608. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +9 -0
  609. package/lib/typescript/components/Chat/Chat.d.ts +1 -1
  610. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +3 -1
  611. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +1 -1
  612. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +1 -1
  613. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +1 -1
  614. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +1 -1
  615. package/lib/typescript/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.d.ts +1 -0
  616. package/lib/typescript/components/Message/Message.d.ts +1 -1
  617. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +1 -1
  618. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +2 -2
  619. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -2
  620. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.d.ts +7 -0
  621. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.test.d.ts +1 -0
  622. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +17 -3
  623. package/lib/typescript/components/Message/MessageSimple/utils/renderText.test.d.ts +1 -0
  624. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -1
  625. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +3 -3
  626. package/lib/typescript/components/Message/utils/messageActions.d.ts +2 -2
  627. package/lib/typescript/components/Message/utils/removeReservedFields.d.ts +1 -1
  628. package/lib/typescript/components/MessageInput/AttachButton.d.ts +1 -1
  629. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +1 -1
  630. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +1 -1
  631. package/lib/typescript/components/MessageList/MessageSystem.d.ts +1 -1
  632. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +1 -1
  633. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +1 -1
  634. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +3 -1
  635. package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +7 -0
  636. package/lib/typescript/components/Reply/Reply.d.ts +1 -1
  637. package/lib/typescript/components/Thread/Thread.d.ts +2 -2
  638. package/lib/typescript/components/index.d.ts +2 -0
  639. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +13 -5
  640. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +1 -1
  641. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +1 -1
  642. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -4
  643. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +2 -2
  644. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -1
  645. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +6 -4
  646. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +12 -0
  647. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +1 -0
  648. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +10 -10
  649. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +5 -5
  650. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +2 -2
  651. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +17 -8
  652. package/lib/typescript/hooks/useStreami18n.d.ts +1 -1
  653. package/lib/typescript/icons/index.d.ts +0 -2
  654. package/lib/typescript/utils/Streami18n.d.ts +2 -2
  655. package/lib/typescript/utils/getResizedImageUrl.d.ts +19 -0
  656. package/lib/typescript/utils/getUrlOfImageAttachment.d.ts +7 -0
  657. package/lib/typescript/utils/utils.d.ts +6 -1
  658. package/package.json +9 -13
  659. package/src/components/Attachment/Attachment.tsx +3 -3
  660. package/src/components/Attachment/AttachmentActions.tsx +2 -2
  661. package/src/components/Attachment/Card.tsx +3 -4
  662. package/src/components/Attachment/FileAttachment.tsx +3 -4
  663. package/src/components/Attachment/FileIcon.tsx +2 -2
  664. package/src/components/Attachment/Gallery.tsx +160 -184
  665. package/src/components/Attachment/Giphy.tsx +67 -70
  666. package/src/components/Attachment/__tests__/Attachment.test.js +11 -10
  667. package/src/components/Attachment/__tests__/Gallery.test.js +233 -0
  668. package/src/components/Attachment/__tests__/buildGallery.test.js +131 -0
  669. package/src/components/Attachment/utils/buildGallery/buildGallery.ts +75 -0
  670. package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +95 -0
  671. package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +99 -0
  672. package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +64 -0
  673. package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +46 -0
  674. package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +186 -0
  675. package/src/components/Attachment/utils/buildGallery/types.ts +27 -0
  676. package/src/components/Attachment/utils/getAspectRatio.ts +21 -0
  677. package/src/components/Attachment/utils/getGalleryImageBorderRadius.ts +71 -0
  678. package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -2
  679. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +4 -3
  680. package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +1 -1
  681. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +2 -2
  682. package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +7 -5
  683. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +5 -6
  684. package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.js +6 -8
  685. package/src/components/Avatar/Avatar.tsx +8 -11
  686. package/src/components/Avatar/GroupAvatar.tsx +7 -2
  687. package/src/components/Avatar/__tests__/Avatar.test.js +2 -2
  688. package/src/components/Channel/Channel.tsx +75 -68
  689. package/src/components/Channel/__tests__/Channel.test.js +10 -10
  690. package/src/components/Channel/__tests__/ownCapabilities.test.js +8 -8
  691. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +2 -1
  692. package/src/components/ChannelList/ChannelList.tsx +8 -9
  693. package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -2
  694. package/src/components/ChannelList/ChannelListHeaderErrorIndicator.tsx +3 -7
  695. package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +2 -2
  696. package/src/components/ChannelList/ChannelListMessenger.tsx +3 -4
  697. package/src/components/ChannelList/__tests__/ChannelList.test.js +73 -13
  698. package/src/components/ChannelList/__tests__/ChannelListMessenger.test.js +11 -12
  699. package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +3 -3
  700. package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +2 -2
  701. package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +2 -2
  702. package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +2 -2
  703. package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +2 -2
  704. package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +3 -3
  705. package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +2 -3
  706. package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +4 -4
  707. package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +2 -2
  708. package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +2 -2
  709. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +1 -2
  710. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +78 -48
  711. package/src/components/ChannelPreview/ChannelAvatar.tsx +3 -5
  712. package/src/components/ChannelPreview/ChannelPreview.tsx +3 -3
  713. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +2 -2
  714. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +23 -10
  715. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +71 -0
  716. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +4 -3
  717. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +2 -2
  718. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +2 -1
  719. package/src/components/ChannelPreview/__tests__/ChannelPreview.test.js +8 -9
  720. package/src/components/ChannelPreview/__tests__/ChannelPreviewMessenger.test.js +8 -9
  721. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +2 -2
  722. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +3 -4
  723. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +2 -2
  724. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +2 -2
  725. package/src/components/Chat/Chat.tsx +6 -6
  726. package/src/components/Chat/__tests__/Chat.test.js +5 -5
  727. package/src/components/Chat/hooks/useIsOnline.ts +4 -3
  728. package/src/components/ImageGallery/ImageGallery.tsx +82 -49
  729. package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +1 -2
  730. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +2 -5
  731. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +24 -11
  732. package/src/components/ImageGallery/components/ImageGrid.tsx +4 -5
  733. package/src/components/ImageGallery/components/ImageGridHandle.tsx +1 -0
  734. package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +31 -0
  735. package/src/components/Indicators/LoadingIndicator.tsx +1 -2
  736. package/src/components/Message/Message.tsx +20 -20
  737. package/src/components/Message/MessageSimple/MessageAvatar.tsx +1 -2
  738. package/src/components/Message/MessageSimple/MessageContent.tsx +2 -3
  739. package/src/components/Message/MessageSimple/MessageDeleted.tsx +3 -4
  740. package/src/components/Message/MessageSimple/MessageFooter.tsx +11 -12
  741. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +2 -2
  742. package/src/components/Message/MessageSimple/MessageRepliesAvatars.tsx +2 -3
  743. package/src/components/Message/MessageSimple/MessageStatus.tsx +9 -5
  744. package/src/components/Message/MessageSimple/ReactionList.tsx +31 -31
  745. package/src/components/Message/MessageSimple/__tests__/Message.test.js +9 -9
  746. package/src/components/Message/MessageSimple/__tests__/MessageAvatar.test.js +2 -2
  747. package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +9 -26
  748. package/src/components/Message/MessageSimple/__tests__/MessagePinnedHeader.test.js +2 -2
  749. package/src/components/Message/MessageSimple/__tests__/MessageReplies.test.js +2 -2
  750. package/src/components/Message/MessageSimple/__tests__/MessageStatus.test.js +4 -5
  751. package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.js +2 -2
  752. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageAvatar.test.js.snap +1 -1
  753. package/src/components/Message/MessageSimple/utils/parseLinks.test.ts +100 -0
  754. package/src/components/Message/MessageSimple/utils/parseLinks.ts +95 -0
  755. package/src/components/Message/MessageSimple/utils/renderText.test.tsx +70 -0
  756. package/src/components/Message/MessageSimple/utils/renderText.tsx +93 -58
  757. package/src/components/Message/hooks/useCreateMessageContext.ts +1 -2
  758. package/src/components/Message/hooks/useMessageActionHandlers.ts +13 -4
  759. package/src/components/Message/hooks/useMessageActions.tsx +14 -9
  760. package/src/components/Message/utils/messageActions.ts +2 -2
  761. package/src/components/Message/utils/removeReservedFields.ts +1 -1
  762. package/src/components/MessageInput/AttachButton.tsx +1 -2
  763. package/src/components/MessageInput/CommandsButton.tsx +1 -2
  764. package/src/components/MessageInput/CooldownTimer.tsx +1 -0
  765. package/src/components/MessageInput/FileUploadPreview.tsx +3 -3
  766. package/src/components/MessageInput/ImageUploadPreview.tsx +1 -2
  767. package/src/components/MessageInput/InputButtons.tsx +1 -1
  768. package/src/components/MessageInput/MessageInput.tsx +5 -6
  769. package/src/components/MessageInput/MoreOptionsButton.tsx +1 -2
  770. package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +1 -1
  771. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +1 -1
  772. package/src/components/MessageInput/__tests__/AttachButton.test.js +2 -2
  773. package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +15 -17
  774. package/src/components/MessageInput/__tests__/ImageUploadPreview.test.js +3 -3
  775. package/src/components/MessageInput/__tests__/MessageInput.test.js +8 -8
  776. package/src/components/MessageInput/__tests__/SendButton.test.js +2 -2
  777. package/src/components/MessageInput/__tests__/UploadProgressIndicator.test.js +2 -2
  778. package/src/components/MessageInput/__tests__/__snapshots__/FileUploadPreview.test.js.snap +1604 -4172
  779. package/src/components/MessageInput/__tests__/__snapshots__/MessageInput.test.js.snap +1 -643
  780. package/src/components/MessageInput/hooks/useCooldown.ts +2 -0
  781. package/src/components/MessageInput/hooks/useCountdown.ts +1 -0
  782. package/src/components/MessageList/MessageList.tsx +3 -3
  783. package/src/components/MessageList/MessageSystem.tsx +2 -2
  784. package/src/components/MessageList/TypingIndicator.tsx +1 -2
  785. package/src/components/MessageList/__tests__/MessageList.test.js +17 -17
  786. package/src/components/MessageList/__tests__/MessageSystem.test.js +3 -3
  787. package/src/components/MessageList/__tests__/ScrollToBottomButton.test.js +3 -3
  788. package/src/components/MessageList/__tests__/TypingIndicator.test.js +5 -6
  789. package/src/components/MessageList/__tests__/__snapshots__/TypingIndicator.test.js.snap +1 -1
  790. package/src/components/MessageList/hooks/useMessageList.ts +5 -7
  791. package/src/components/MessageList/hooks/useTypingString.ts +1 -2
  792. package/src/components/MessageList/utils/getGroupStyles.ts +1 -2
  793. package/src/components/MessageList/utils/getLastReceivedMessage.ts +6 -1
  794. package/src/components/MessageOverlay/MessageActionList.tsx +3 -3
  795. package/src/components/MessageOverlay/MessageActionListItem.tsx +3 -1
  796. package/src/components/MessageOverlay/MessageOverlay.tsx +20 -16
  797. package/src/components/MessageOverlay/OverlayBackdrop.tsx +1 -0
  798. package/src/components/MessageOverlay/OverlayReactionList.tsx +2 -4
  799. package/src/components/MessageOverlay/OverlayReactions.tsx +27 -8
  800. package/src/components/MessageOverlay/OverlayReactionsAvatar.tsx +27 -0
  801. package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +1 -0
  802. package/src/components/Reply/Reply.tsx +25 -15
  803. package/src/components/Thread/Thread.tsx +5 -6
  804. package/src/components/Thread/__tests__/Thread.test.js +12 -14
  805. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +13 -13
  806. package/src/components/Thread/components/ThreadFooterComponent.tsx +1 -2
  807. package/src/components/index.ts +2 -0
  808. package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +1 -2
  809. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +1 -2
  810. package/src/contexts/channelContext/ChannelContext.tsx +1 -2
  811. package/src/contexts/channelsContext/ChannelsContext.tsx +18 -7
  812. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +7 -8
  813. package/src/contexts/channelsStateContext/useChannelState.ts +1 -0
  814. package/src/contexts/chatContext/ChatContext.tsx +1 -2
  815. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +1 -2
  816. package/src/contexts/keyboardContext/KeyboardContext.tsx +1 -2
  817. package/src/contexts/messageContext/MessageContext.tsx +1 -2
  818. package/src/contexts/messageInputContext/MessageInputContext.tsx +27 -24
  819. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -4
  820. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +15 -10
  821. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +10 -19
  822. package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +46 -0
  823. package/src/contexts/messageOverlayContext/hooks/useResettableState.ts +22 -0
  824. package/src/contexts/messagesContext/MessagesContext.tsx +13 -13
  825. package/src/contexts/overlayContext/OverlayContext.tsx +10 -8
  826. package/src/contexts/overlayContext/OverlayProvider.tsx +30 -25
  827. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +1 -2
  828. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +4 -3
  829. package/src/contexts/suggestionsContext/__tests__/Suggestions.test.js +1 -0
  830. package/src/contexts/themeContext/ThemeContext.tsx +1 -0
  831. package/src/contexts/themeContext/utils/theme.ts +36 -19
  832. package/src/contexts/threadContext/ThreadContext.tsx +1 -2
  833. package/src/contexts/translationContext/TranslationContext.tsx +2 -2
  834. package/src/contexts/typingContext/TypingContext.tsx +1 -2
  835. package/src/contexts/utils/getDisplayName.ts +1 -0
  836. package/src/emoji-data/index.js +1 -1
  837. package/src/hooks/useStreami18n.ts +1 -1
  838. package/src/icons/index.ts +0 -2
  839. package/src/mock-builders/api/sendMessage.js +1 -0
  840. package/src/mock-builders/generator/attachment.js +0 -2
  841. package/src/mock-builders/generator/channel.js +101 -64
  842. package/src/mock-builders/generator/user.js +33 -26
  843. package/src/native.ts +1 -0
  844. package/src/styleguideComponents/ArgumentsRenderer.tsx +2 -1
  845. package/src/styleguideComponents/JsDoc.tsx +3 -1
  846. package/src/styleguideComponents/PathlineRenderer.tsx +2 -1
  847. package/src/styleguideComponents/PropsRenderer.tsx +7 -4
  848. package/src/styleguideComponents/Wrapper.tsx +1 -0
  849. package/src/utils/Streami18n.ts +3 -3
  850. package/src/utils/__tests__/Streami18n.test.js +1 -2
  851. package/src/utils/getResizedImageUrl.ts +43 -0
  852. package/src/utils/getUrlOfImageAttachment.ts +10 -0
  853. package/src/utils/utils.ts +9 -4
  854. package/src/version.json +1 -1
  855. package/lib/commonjs/icons/Left.js +0 -38
  856. package/lib/commonjs/icons/Left.js.map +0 -1
  857. package/lib/commonjs/icons/Right.js +0 -38
  858. package/lib/commonjs/icons/Right.js.map +0 -1
  859. package/lib/module/icons/Left.js +0 -38
  860. package/lib/module/icons/Left.js.map +0 -1
  861. package/lib/module/icons/Right.js +0 -38
  862. package/lib/module/icons/Right.js.map +0 -1
  863. package/lib/typescript/icons/Left.d.ts +0 -3
  864. package/lib/typescript/icons/Right.d.ts +0 -3
  865. package/src/icons/Left.tsx +0 -12
  866. package/src/icons/Right.tsx +0 -12
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import { Button, Text } from 'react-native';
3
+
4
+ import { fireEvent, render, waitFor } from '@testing-library/react-native';
5
+
6
+ import { useResettableState } from './useResettableState';
7
+
8
+ const TestComponent = () => {
9
+ const { data, reset, setData } = useResettableState(0);
10
+
11
+ return (
12
+ <>
13
+ <Text testID='value'>{`${data}`}</Text>
14
+ <Button
15
+ onPress={() => {
16
+ setData(data + 1);
17
+ }}
18
+ testID='increment'
19
+ title='Super useful incrementer'
20
+ />
21
+ <Button
22
+ onPress={() => {
23
+ reset();
24
+ }}
25
+ testID='reset'
26
+ title='Oh no, go back!'
27
+ />
28
+ </>
29
+ );
30
+ };
31
+
32
+ const waitForOptions = {
33
+ timeout: 1000,
34
+ };
35
+
36
+ test('useResettableState can be reset to its initial state', async () => {
37
+ const { getByTestId } = render(<TestComponent />);
38
+
39
+ await waitFor(() => expect(getByTestId('value').children[0]).toBe('0'), waitForOptions);
40
+
41
+ fireEvent.press(getByTestId('increment'));
42
+ await waitFor(() => expect(getByTestId('value').children[0]).toBe('1'), waitForOptions);
43
+
44
+ fireEvent.press(getByTestId('reset'));
45
+ await waitFor(() => expect(getByTestId('value').children[0]).toBe('0'), waitForOptions);
46
+ });
@@ -0,0 +1,22 @@
1
+ import { useState } from 'react';
2
+
3
+ import { useIsMountedRef } from '../../../hooks/useIsMountedRef';
4
+
5
+ /**
6
+ * Wrapper around useState that provides a `reset`
7
+ * function to reset the state to its initial value.
8
+ *
9
+ * Will not set state after being unmounted.
10
+ * */
11
+ export const useResettableState = <T>(values: T) => {
12
+ const [data, setData] = useState(values);
13
+ const isMounted = useIsMountedRef();
14
+
15
+ const reset = () => {
16
+ if (isMounted.current) {
17
+ setData(values);
18
+ }
19
+ };
20
+
21
+ return { data, reset, setData };
22
+ };
@@ -1,17 +1,10 @@
1
1
  import React, { PropsWithChildren, useContext } from 'react';
2
2
 
3
- import { getDisplayName } from '../utils/getDisplayName';
4
-
5
3
  import type { TouchableOpacityProps } from 'react-native';
6
4
 
7
- import type { ChannelState, MessageResponse } from 'stream-chat';
5
+ import type { MessagePinnedHeaderProps } from 'src/components/Message/MessageSimple/MessagePinnedHeader';
8
6
 
9
- import type { Alignment } from '../messageContext/MessageContext';
10
- import type { MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';
11
- import type { SuggestionCommand } from '../suggestionsContext/SuggestionsContext';
12
- import type { DeepPartial } from '../themeContext/ThemeContext';
13
- import type { Theme } from '../themeContext/utils/theme';
14
- import type { TDateTimeParserInput } from '../translationContext/TranslationContext';
7
+ import type { ChannelState, MessageResponse } from 'stream-chat';
15
8
 
16
9
  import type { AttachmentProps } from '../../components/Attachment/Attachment';
17
10
  import type { AttachmentActionsProps } from '../../components/Attachment/AttachmentActions';
@@ -29,22 +22,23 @@ import type { MessageAvatarProps } from '../../components/Message/MessageSimple/
29
22
  import type { MessageContentProps } from '../../components/Message/MessageSimple/MessageContent';
30
23
  import type { MessageDeletedProps } from '../../components/Message/MessageSimple/MessageDeleted';
31
24
  import type { MessageFooterProps } from '../../components/Message/MessageSimple/MessageFooter';
32
- import type { MessagePinnedHeaderProps } from 'src/components/Message/MessageSimple/MessagePinnedHeader';
25
+
33
26
  import type { MessageRepliesProps } from '../../components/Message/MessageSimple/MessageReplies';
34
27
  import type { MessageRepliesAvatarsProps } from '../../components/Message/MessageSimple/MessageRepliesAvatars';
35
- import type { MessageStatusProps } from '../../components/Message/MessageSimple/MessageStatus';
36
28
  import type { MessageSimpleProps } from '../../components/Message/MessageSimple/MessageSimple';
29
+ import type { MessageStatusProps } from '../../components/Message/MessageSimple/MessageStatus';
37
30
  import type { MessageTextProps } from '../../components/Message/MessageSimple/MessageTextContainer';
31
+ import type { ReactionListProps } from '../../components/Message/MessageSimple/ReactionList';
38
32
  import type { MarkdownRules } from '../../components/Message/MessageSimple/utils/renderText';
39
33
  import type { MessageActionsParams } from '../../components/Message/utils/messageActions';
40
34
  import type { DateHeaderProps } from '../../components/MessageList/DateHeader';
41
35
  import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
42
36
  import type { InlineDateSeparatorProps } from '../../components/MessageList/InlineDateSeparator';
43
37
  import type { MessageListProps } from '../../components/MessageList/MessageList';
44
- import type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';
45
38
  import type { MessageSystemProps } from '../../components/MessageList/MessageSystem';
39
+ import type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';
40
+ import type { MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';
46
41
  import type { OverlayReactionListProps } from '../../components/MessageOverlay/OverlayReactionList';
47
- import type { ReactionListProps } from '../../components/Message/MessageSimple/ReactionList';
48
42
  import type { ReplyProps } from '../../components/Reply/Reply';
49
43
  import type { FlatList } from '../../native';
50
44
  import type {
@@ -58,6 +52,12 @@ import type {
58
52
  UnknownType,
59
53
  } from '../../types/types';
60
54
  import type { ReactionData } from '../../utils/utils';
55
+ import type { Alignment } from '../messageContext/MessageContext';
56
+ import type { SuggestionCommand } from '../suggestionsContext/SuggestionsContext';
57
+ import type { DeepPartial } from '../themeContext/ThemeContext';
58
+ import type { Theme } from '../themeContext/utils/theme';
59
+ import type { TDateTimeParserInput } from '../translationContext/TranslationContext';
60
+ import { getDisplayName } from '../utils/getDisplayName';
61
61
 
62
62
  export type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'text';
63
63
 
@@ -1,15 +1,8 @@
1
1
  import React, { useContext } from 'react';
2
2
  import type Animated from 'react-native-reanimated';
3
3
 
4
- import { getDisplayName } from '../utils/getDisplayName';
5
-
6
4
  import type { BottomSheetMethods } from '@gorhom/bottom-sheet/lib/typescript/types';
7
5
 
8
- import type { AttachmentPickerContextValue } from '../attachmentPickerContext/AttachmentPickerContext';
9
- import type { MessageOverlayContextValue } from '../messageOverlayContext/MessageOverlayContext';
10
- import type { DeepPartial } from '../themeContext/ThemeContext';
11
- import type { Theme } from '../themeContext/utils/theme';
12
-
13
6
  import type { AttachmentPickerProps } from '../../components/AttachmentPicker/AttachmentPicker';
14
7
  import type { ImageGalleryCustomComponents } from '../../components/ImageGallery/ImageGallery';
15
8
  import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
@@ -24,6 +17,11 @@ import type {
24
17
  UnknownType,
25
18
  } from '../../types/types';
26
19
  import type { Streami18n } from '../../utils/Streami18n';
20
+ import type { AttachmentPickerContextValue } from '../attachmentPickerContext/AttachmentPickerContext';
21
+ import type { MessageOverlayContextValue } from '../messageOverlayContext/MessageOverlayContext';
22
+ import type { DeepPartial } from '../themeContext/ThemeContext';
23
+ import type { Theme } from '../themeContext/utils/theme';
24
+ import { getDisplayName } from '../utils/getDisplayName';
27
25
 
28
26
  export type Overlay = 'alert' | 'gallery' | 'message' | 'none';
29
27
 
@@ -61,7 +59,11 @@ export type OverlayProviderProps<
61
59
  Partial<
62
60
  Pick<
63
61
  MessageOverlayContextValue<At, Ch, Co, Ev, Me, Re, Us>,
64
- 'MessageActionList' | 'MessageActionListItem' | 'OverlayReactionList' | 'OverlayReactions'
62
+ | 'MessageActionList'
63
+ | 'MessageActionListItem'
64
+ | 'OverlayReactionList'
65
+ | 'OverlayReactions'
66
+ | 'OverlayReactionsAvatar'
65
67
  >
66
68
  > &
67
69
  Pick<OverlayContextValue, 'translucentStatusBar'> & {
@@ -1,6 +1,6 @@
1
1
  import React, { PropsWithChildren, useEffect, useRef, useState } from 'react';
2
2
  import { BackHandler, Dimensions, StyleSheet, ViewStyle } from 'react-native';
3
- import Dayjs from 'dayjs';
3
+
4
4
  import Animated, {
5
5
  cancelAnimation,
6
6
  useAnimatedStyle,
@@ -8,33 +8,26 @@ import Animated, {
8
8
  withTiming,
9
9
  } from 'react-native-reanimated';
10
10
 
11
- import { AttachmentPickerProvider } from '../attachmentPickerContext/AttachmentPickerContext';
12
- import { ImageGalleryProvider } from '../imageGalleryContext/ImageGalleryContext';
13
- import { MessageOverlayProvider } from '../messageOverlayContext/MessageOverlayContext';
14
- import { ThemeProvider } from '../themeContext/ThemeContext';
15
- import {
16
- TranslationContextValue,
17
- TranslationProvider,
18
- } from '../translationContext/TranslationContext';
11
+ import type BottomSheet from '@gorhom/bottom-sheet';
12
+ import Dayjs from 'dayjs';
13
+
14
+ import { OverlayContext, OverlayProviderProps } from './OverlayContext';
19
15
 
20
16
  import { AttachmentPicker } from '../../components/AttachmentPicker/AttachmentPicker';
21
- import { AttachmentPickerError as DefaultAttachmentPickerError } from '../../components/AttachmentPicker/components/AttachmentPickerError';
17
+
22
18
  import { AttachmentPickerBottomSheetHandle as DefaultAttachmentPickerBottomSheetHandle } from '../../components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle';
19
+ import { AttachmentPickerError as DefaultAttachmentPickerError } from '../../components/AttachmentPicker/components/AttachmentPickerError';
23
20
  import { AttachmentPickerErrorImage as DefaultAttachmentPickerErrorImage } from '../../components/AttachmentPicker/components/AttachmentPickerErrorImage';
24
21
  import { CameraSelectorIcon as DefaultCameraSelectorIcon } from '../../components/AttachmentPicker/components/CameraSelectorIcon';
25
- import { ChannelsStateProvider } from '../../contexts/channelsStateContext/ChannelsStateContext';
26
22
  import { FileSelectorIcon as DefaultFileSelectorIcon } from '../../components/AttachmentPicker/components/FileSelectorIcon';
27
23
  import { ImageOverlaySelectedComponent as DefaultImageOverlaySelectedComponent } from '../../components/AttachmentPicker/components/ImageOverlaySelectedComponent';
28
24
  import { ImageSelectorIcon as DefaultImageSelectorIcon } from '../../components/AttachmentPicker/components/ImageSelectorIcon';
29
25
  import { ImageGallery } from '../../components/ImageGallery/ImageGallery';
30
26
  import { MessageOverlay } from '../../components/MessageOverlay/MessageOverlay';
31
27
  import { OverlayBackdrop } from '../../components/MessageOverlay/OverlayBackdrop';
28
+ import { ChannelsStateProvider } from '../../contexts/channelsStateContext/ChannelsStateContext';
32
29
  import { useStreami18n } from '../../hooks/useStreami18n';
33
30
 
34
- import type BottomSheet from '@gorhom/bottom-sheet';
35
-
36
- import { OverlayContext, OverlayProviderProps } from './OverlayContext';
37
-
38
31
  import type {
39
32
  DefaultAttachmentType,
40
33
  DefaultChannelType,
@@ -45,6 +38,14 @@ import type {
45
38
  DefaultUserType,
46
39
  UnknownType,
47
40
  } from '../../types/types';
41
+ import { AttachmentPickerProvider } from '../attachmentPickerContext/AttachmentPickerContext';
42
+ import { ImageGalleryProvider } from '../imageGalleryContext/ImageGalleryContext';
43
+ import { MessageOverlayProvider } from '../messageOverlayContext/MessageOverlayContext';
44
+ import { ThemeProvider } from '../themeContext/ThemeContext';
45
+ import {
46
+ TranslationContextValue,
47
+ TranslationProvider,
48
+ } from '../translationContext/TranslationContext';
48
49
 
49
50
  /**
50
51
  * - The highest level of these components is the `OverlayProvider`. The `OverlayProvider` allows users to interact with messages on long press above the underlying views, use the full screen image viewer, and use the `AttachmentPicker` as a keyboard-esk view.
@@ -108,8 +109,8 @@ export const OverlayProvider = <
108
109
  numberOfAttachmentPickerImageColumns,
109
110
  numberOfImageGalleryGridColumns,
110
111
  openPicker = (ref) => {
111
- if (ref.current?.snapTo) {
112
- ref.current.snapTo(0);
112
+ if (ref.current?.snapToIndex) {
113
+ ref.current.snapToIndex(0);
113
114
  } else {
114
115
  console.warn('bottom and top insets must be set for the image picker to work correctly');
115
116
  }
@@ -118,6 +119,7 @@ export const OverlayProvider = <
118
119
  translucentStatusBar,
119
120
  OverlayReactionList,
120
121
  OverlayReactions,
122
+ OverlayReactionsAvatar,
121
123
  value,
122
124
  } = props;
123
125
 
@@ -230,17 +232,20 @@ export const OverlayProvider = <
230
232
  overlayOpacity={overlayOpacity}
231
233
  OverlayReactionList={OverlayReactionList}
232
234
  OverlayReactions={OverlayReactions}
235
+ OverlayReactionsAvatar={OverlayReactionsAvatar}
233
236
  visible={overlay === 'message'}
234
237
  />
235
238
  )}
236
- <ImageGallery<At, Ch, Co, Ev, Me, Re, Us>
237
- imageGalleryCustomComponents={imageGalleryCustomComponents}
238
- imageGalleryGridHandleHeight={imageGalleryGridHandleHeight}
239
- imageGalleryGridSnapPoints={imageGalleryGridSnapPoints}
240
- numberOfImageGalleryGridColumns={numberOfImageGalleryGridColumns}
241
- overlayOpacity={overlayOpacity}
242
- visible={overlay === 'gallery'}
243
- />
239
+ {overlay === 'gallery' && (
240
+ <ImageGallery<At, Ch, Co, Ev, Me, Re, Us>
241
+ imageGalleryCustomComponents={imageGalleryCustomComponents}
242
+ imageGalleryGridHandleHeight={imageGalleryGridHandleHeight}
243
+ imageGalleryGridSnapPoints={imageGalleryGridSnapPoints}
244
+ numberOfImageGalleryGridColumns={numberOfImageGalleryGridColumns}
245
+ overlayOpacity={overlayOpacity}
246
+ visible={overlay === 'gallery'}
247
+ />
248
+ )}
244
249
  <AttachmentPicker ref={bottomSheetRef} {...attachmentPickerProps} />
245
250
  </ThemeProvider>
246
251
  </ImageGalleryProvider>
@@ -1,7 +1,5 @@
1
1
  import React, { PropsWithChildren, useContext } from 'react';
2
2
 
3
- import { getDisplayName } from '../utils/getDisplayName';
4
-
5
3
  import type { ChannelState } from 'stream-chat';
6
4
 
7
5
  import type {
@@ -14,6 +12,7 @@ import type {
14
12
  DefaultUserType,
15
13
  UnknownType,
16
14
  } from '../../types/types';
15
+ import { getDisplayName } from '../utils/getDisplayName';
17
16
 
18
17
  export type PaginatedMessageListContextValue<
19
18
  At extends UnknownType = DefaultAttachmentType,
@@ -1,12 +1,13 @@
1
1
  import React, { PropsWithChildren, useContext, useState } from 'react';
2
+
2
3
  import type { CommandResponse, UserResponse } from 'stream-chat';
3
4
 
4
- import { getDisplayName } from '../utils/getDisplayName';
5
5
  import type { AutoCompleteSuggestionHeaderProps } from '../../components/AutoCompleteInput/AutoCompleteSuggestionHeader';
6
- import type { AutoCompleteSuggestionListProps } from '../../components/AutoCompleteInput/AutoCompleteSuggestionList';
7
6
  import type { AutoCompleteSuggestionItemProps } from '../../components/AutoCompleteInput/AutoCompleteSuggestionItem';
8
- import type { DefaultCommandType, DefaultUserType, UnknownType } from '../../types/types';
7
+ import type { AutoCompleteSuggestionListProps } from '../../components/AutoCompleteInput/AutoCompleteSuggestionList';
9
8
  import type { Emoji } from '../../emoji-data/compiled';
9
+ import type { DefaultCommandType, DefaultUserType, UnknownType } from '../../types/types';
10
+ import { getDisplayName } from '../utils/getDisplayName';
10
11
 
11
12
  export type SuggestionComponentType = 'command' | 'emoji' | 'mention';
12
13
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
+
3
4
  import { cleanup, render, waitFor } from '@testing-library/react-native';
4
5
 
5
6
  import { SuggestionsProvider, useSuggestionsContext } from '../SuggestionsContext';
@@ -1,4 +1,5 @@
1
1
  import React, { useContext, useMemo } from 'react';
2
+
2
3
  import merge from 'lodash/merge';
3
4
 
4
5
  import { defaultTheme, Theme } from './utils/theme';
@@ -1,9 +1,8 @@
1
- import { vh } from '../../../utils/utils';
2
-
3
1
  import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
4
2
  import type { CircleProps, Color, StopProps } from 'react-native-svg';
5
3
 
6
4
  import type { IconProps } from '../../../icons/utils/base';
5
+ import { vh } from '../../../utils/utils';
7
6
 
8
7
  export const DEFAULT_STATUS_ICON_SIZE = 16;
9
8
 
@@ -135,6 +134,11 @@ export type Theme = {
135
134
  message: TextStyle & {
136
135
  fontWeight: TextStyle['fontWeight'];
137
136
  };
137
+ mutedStatus: {
138
+ height: number;
139
+ iconStyle: ViewStyle;
140
+ width: number;
141
+ };
138
142
  row: ViewStyle;
139
143
  title: TextStyle;
140
144
  unreadContainer: ViewStyle;
@@ -401,27 +405,31 @@ export type Theme = {
401
405
  gallery: {
402
406
  galleryContainer: ViewStyle;
403
407
  galleryItemColumn: ViewStyle;
404
- halfSize: ViewStyle['height'];
408
+ gridHeight: number;
409
+ gridWidth: number;
405
410
  image: ImageStyle;
406
411
  imageContainer: ViewStyle;
412
+ maxHeight: number;
413
+ maxWidth: number;
414
+ minHeight: number;
415
+ minWidth: number;
407
416
  moreImagesContainer: ViewStyle;
408
417
  moreImagesText: TextStyle;
409
- size: ViewStyle['height'];
410
- width: ViewStyle['width'];
411
418
  };
412
419
  giphy: {
420
+ buttonContainer: ViewStyle;
413
421
  cancel: TextStyle;
414
- cancelContainer: ViewStyle;
415
422
  container: ViewStyle;
416
423
  giphy: ImageStyle;
417
424
  giphyContainer: ViewStyle;
425
+ giphyHeaderText: TextStyle;
426
+ giphyHeaderTitle: TextStyle;
418
427
  giphyMask: ViewStyle;
419
- giphyText: TextStyle;
428
+ giphyMaskText: TextStyle;
429
+ header: ViewStyle;
420
430
  selectionContainer: ViewStyle;
421
- selector: ViewStyle;
422
431
  send: TextStyle;
423
- sendContainer: ViewStyle;
424
- shuffleButton: ViewStyle;
432
+ shuffle: TextStyle;
425
433
  title: TextStyle;
426
434
  };
427
435
  pinnedHeader: {
@@ -585,6 +593,11 @@ export const defaultTheme: Theme = {
585
593
  message: {
586
594
  fontWeight: '400',
587
595
  },
596
+ mutedStatus: {
597
+ height: 20,
598
+ iconStyle: {},
599
+ width: 20,
600
+ },
588
601
  row: {},
589
602
  title: {},
590
603
  unreadContainer: {},
@@ -825,7 +838,7 @@ export const defaultTheme: Theme = {
825
838
  deletedContainer: {},
826
839
  deletedContainerInner: {},
827
840
  deletedMetaText: {
828
- paddingHorizontal: 10,
841
+ paddingHorizontal: 5,
829
842
  },
830
843
  deletedText: {
831
844
  em: {
@@ -884,27 +897,31 @@ export const defaultTheme: Theme = {
884
897
  gallery: {
885
898
  galleryContainer: {},
886
899
  galleryItemColumn: {},
887
- halfSize: 100,
900
+ gridHeight: 195,
901
+ gridWidth: 256,
888
902
  image: {},
889
903
  imageContainer: {},
904
+ maxHeight: 300,
905
+ maxWidth: 256,
906
+ minHeight: 100,
907
+ minWidth: 170,
890
908
  moreImagesContainer: {},
891
909
  moreImagesText: {},
892
- size: 200,
893
- width: 250,
894
910
  },
895
911
  giphy: {
912
+ buttonContainer: {},
896
913
  cancel: {},
897
- cancelContainer: {},
898
914
  container: {},
899
915
  giphy: {},
900
916
  giphyContainer: {},
917
+ giphyHeaderText: {},
918
+ giphyHeaderTitle: {},
901
919
  giphyMask: {},
902
- giphyText: {},
920
+ giphyMaskText: {},
921
+ header: {},
903
922
  selectionContainer: {},
904
- selector: {},
905
923
  send: {},
906
- sendContainer: {},
907
- shuffleButton: {},
924
+ shuffle: {},
908
925
  title: {},
909
926
  },
910
927
  pinnedHeader: {
@@ -1,7 +1,5 @@
1
1
  import React, { PropsWithChildren, useContext } from 'react';
2
2
 
3
- import { getDisplayName } from '../utils/getDisplayName';
4
-
5
3
  import type { ChannelState } from 'stream-chat';
6
4
 
7
5
  import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
@@ -15,6 +13,7 @@ import type {
15
13
  DefaultUserType,
16
14
  UnknownType,
17
15
  } from '../../types/types';
16
+ import { getDisplayName } from '../utils/getDisplayName';
18
17
 
19
18
  export type ThreadContextValue<
20
19
  At extends UnknownType = DefaultAttachmentType,
@@ -1,12 +1,12 @@
1
1
  import React, { useContext } from 'react';
2
- import Dayjs from 'dayjs';
3
2
 
4
- import { getDisplayName } from '../utils/getDisplayName';
3
+ import Dayjs from 'dayjs';
5
4
 
6
5
  import type { TFunction } from 'i18next';
7
6
  import type { Moment } from 'moment';
8
7
 
9
8
  import type { UnknownType } from '../../types/types';
9
+ import { getDisplayName } from '../utils/getDisplayName';
10
10
 
11
11
  export const isDayOrMoment = (output: TDateTimeParserOutput): output is Dayjs.Dayjs | Moment =>
12
12
  (output as Dayjs.Dayjs | Moment).isSame != null;
@@ -1,7 +1,5 @@
1
1
  import React, { PropsWithChildren, useContext } from 'react';
2
2
 
3
- import { getDisplayName } from '../utils/getDisplayName';
4
-
5
3
  import type { ChannelState } from 'stream-chat';
6
4
 
7
5
  import type {
@@ -14,6 +12,7 @@ import type {
14
12
  DefaultUserType,
15
13
  UnknownType,
16
14
  } from '../../types/types';
15
+ import { getDisplayName } from '../utils/getDisplayName';
17
16
 
18
17
  export type TypingContextValue<
19
18
  At extends UnknownType = DefaultAttachmentType,
@@ -1,4 +1,5 @@
1
1
  import type { ComponentType } from 'react';
2
+
2
3
  import type { UnknownType } from '../../types/types';
3
4
 
4
5
  export const getDisplayName = <P extends UnknownType>(Component: ComponentType<P>) =>
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-undef */
2
- const emojis = require('./emojis.ts');
3
2
  const emojiNames = require('./emojiNames.ts');
3
+ const emojis = require('./emojis.ts');
4
4
 
5
5
  const emojiLib = emojis.reduce((acc, cur) => {
6
6
  acc[cur.name] = {
@@ -1,9 +1,9 @@
1
1
  import { useEffect, useState } from 'react';
2
2
 
3
3
  import { useIsMountedRef } from './useIsMountedRef';
4
- import { Streami18n } from '../utils/Streami18n';
5
4
 
6
5
  import type { TranslationContextValue } from '../contexts/translationContext/TranslationContext';
6
+ import { Streami18n } from '../utils/Streami18n';
7
7
 
8
8
  export const useStreami18n = ({
9
9
  i18nInstance,
@@ -30,7 +30,6 @@ export * from './Grid';
30
30
  export * from './Group';
31
31
  export * from './HTML';
32
32
  export * from './Imgur';
33
- export * from './Left';
34
33
  export * from './Lightning';
35
34
  export * from './Link';
36
35
  export * from './Loading';
@@ -54,7 +53,6 @@ export * from './PPT';
54
53
  export * from './PPTX';
55
54
  export * from './RAR';
56
55
  export * from './Refresh';
57
- export * from './Right';
58
56
  export * from './RTF';
59
57
  export * from './Search';
60
58
  export * from './SendRight';
@@ -1,4 +1,5 @@
1
1
  import { mockedApiResponse } from './utils';
2
+
2
3
  import { generateMessage } from '../generator/message';
3
4
  /**
4
5
  * Returns the api response for sendMessage api.
@@ -19,10 +19,8 @@ export const generateVideoAttachment = (a) => ({
19
19
 
20
20
  export const generateImageAttachment = (a) => ({
21
21
  image_url: uuidv4(),
22
- text: uuidv4(),
23
22
  thumb_url: uuidv4(),
24
23
  title: uuidv4(),
25
- title_link: 'https://getstream.io',
26
24
  type: 'image',
27
25
  ...a,
28
26
  });