stream-chat-react-native-core 3.10.2-next.1 → 4.0.0-beta.3

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 (1083) 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 +18 -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 -113
  10. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  11. package/lib/commonjs/components/Attachment/Giphy.js +30 -30
  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 +21 -45
  34. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  35. package/lib/commonjs/components/AutoCompleteInput/{CommandsItem.js → AutoCompleteSuggestionCommandIcon.js} +21 -94
  36. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -0
  37. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +145 -0
  38. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -0
  39. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +248 -0
  40. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -0
  41. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +223 -0
  42. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -0
  43. package/lib/commonjs/components/Avatar/Avatar.js +13 -7
  44. package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
  45. package/lib/commonjs/components/Avatar/GroupAvatar.js +10 -10
  46. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  47. package/lib/commonjs/components/Channel/Channel.js +332 -247
  48. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  49. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +5 -5
  50. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  51. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -5
  52. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  53. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +9 -31
  54. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  55. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +35 -0
  56. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -0
  57. package/lib/commonjs/components/ChannelList/ChannelList.js +6 -6
  58. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  59. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +5 -4
  60. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  61. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js +6 -7
  62. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  63. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +4 -3
  64. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  65. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +17 -17
  66. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  67. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +2 -2
  68. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  69. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  70. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  71. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  72. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  73. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js +2 -2
  74. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  75. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js +2 -2
  76. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  77. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +3 -3
  78. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  79. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  80. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  81. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
  82. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  83. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +89 -64
  84. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  85. package/lib/commonjs/components/ChannelList/utils.js +1 -1
  86. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +2 -2
  87. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  88. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -2
  89. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  90. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  91. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +49 -20
  92. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  93. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +51 -0
  94. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -0
  95. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  96. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  97. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  98. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  99. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  100. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +16 -7
  101. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  102. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  103. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  104. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +2 -1
  105. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  106. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  107. package/lib/commonjs/components/Chat/hooks/useIsOnline.js +12 -5
  108. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  109. package/lib/commonjs/components/ImageGallery/ImageGallery.js +90 -58
  110. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  111. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +2 -2
  112. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  113. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +12 -12
  114. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  115. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +14 -16
  116. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  117. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +7 -7
  118. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  119. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js +5 -5
  120. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  121. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  122. package/lib/commonjs/components/Indicators/LoadingIndicator.js +9 -9
  123. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  124. package/lib/commonjs/components/Message/Message.js +151 -860
  125. package/lib/commonjs/components/Message/Message.js.map +1 -1
  126. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +6 -6
  127. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  128. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +39 -38
  129. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  130. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +8 -6
  131. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  132. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +24 -16
  133. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  134. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +122 -0
  135. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -0
  136. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +5 -1
  137. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  138. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +5 -5
  139. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  140. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +27 -13
  141. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  142. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +25 -24
  143. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  144. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +7 -3
  145. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  146. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +52 -80
  147. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  148. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js +89 -0
  149. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -0
  150. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js +46 -0
  151. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -0
  152. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +36 -19
  153. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  154. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +1 -5
  155. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  156. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +307 -0
  157. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -0
  158. package/lib/commonjs/components/Message/hooks/useMessageActions.js +563 -0
  159. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -0
  160. package/lib/commonjs/components/Message/utils/messageActions.js +17 -15
  161. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  162. package/lib/commonjs/components/Message/utils/removeReservedFields.js.map +1 -1
  163. package/lib/commonjs/components/MessageInput/AttachButton.js +3 -3
  164. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  165. package/lib/commonjs/components/MessageInput/CommandsButton.js +3 -3
  166. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  167. package/lib/commonjs/components/MessageInput/CooldownTimer.js +78 -0
  168. package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -0
  169. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +4 -4
  170. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  171. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +9 -9
  172. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  173. package/lib/commonjs/components/MessageInput/InputButtons.js +17 -22
  174. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  175. package/lib/commonjs/components/MessageInput/MessageInput.js +93 -65
  176. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  177. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +3 -3
  178. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  179. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +71 -0
  180. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -0
  181. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -3
  182. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  183. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js +63 -0
  184. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -0
  185. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js +57 -0
  186. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -0
  187. package/lib/commonjs/components/MessageList/DateHeader.js +2 -2
  188. package/lib/commonjs/components/MessageList/DateHeader.js.map +1 -1
  189. package/lib/commonjs/components/MessageList/InlineDateSeparator.js +2 -2
  190. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  191. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +1 -1
  192. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +1 -1
  193. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +1 -1
  194. package/lib/commonjs/components/MessageList/MessageList.js +77 -44
  195. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  196. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  197. package/lib/commonjs/components/MessageList/TypingIndicator.js +5 -5
  198. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  199. package/lib/commonjs/components/MessageList/hooks/useMessageList.js +23 -10
  200. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  201. package/lib/commonjs/components/MessageList/hooks/useTypingString.js +2 -2
  202. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  203. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js +2 -1
  204. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  205. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +10 -5
  206. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  207. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +3 -1
  208. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  209. package/lib/{module/components/MessageOverlay/MessageActions.js → commonjs/components/MessageOverlay/MessageActionList.js} +33 -85
  210. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -0
  211. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +131 -0
  212. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -0
  213. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +97 -78
  214. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  215. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +38 -0
  216. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
  217. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +12 -11
  218. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  219. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +31 -34
  220. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  221. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js +41 -0
  222. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
  223. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +37 -0
  224. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
  225. package/lib/commonjs/components/Reply/Reply.js +25 -19
  226. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  227. package/lib/commonjs/components/Thread/Thread.js +11 -2
  228. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  229. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +20 -12
  230. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  231. package/lib/commonjs/components/docs/ListProps.md +1 -1
  232. package/lib/commonjs/components/docs/data.js +1 -1
  233. package/lib/commonjs/components/index.js +133 -55
  234. package/lib/commonjs/components/index.js.map +1 -1
  235. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +68 -0
  236. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -0
  237. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +2 -2
  238. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  239. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  240. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  241. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +2 -2
  242. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  243. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +155 -0
  244. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -0
  245. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +144 -0
  246. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -0
  247. package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
  248. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  249. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  250. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  251. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +2 -2
  252. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  253. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
  254. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  255. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +122 -84
  256. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  257. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -5
  258. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  259. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +10 -3
  260. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  261. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +5 -19
  262. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  263. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +36 -0
  264. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
  265. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +105 -0
  266. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
  267. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  268. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  269. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
  270. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  271. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +55 -46
  272. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  273. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +61 -0
  274. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -0
  275. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  276. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  277. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +20 -33
  278. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  279. package/lib/commonjs/contexts/themeContext/ThemeContext.js +2 -2
  280. package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
  281. package/lib/commonjs/contexts/themeContext/utils/theme.js +38 -14
  282. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  283. package/lib/commonjs/contexts/threadContext/ThreadContext.js +2 -2
  284. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  285. package/lib/commonjs/contexts/translationContext/TranslationContext.js +1 -1
  286. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  287. package/lib/commonjs/contexts/typingContext/TypingContext.js +2 -2
  288. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  289. package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
  290. package/lib/commonjs/emoji-data/compiled.js +0 -315
  291. package/lib/commonjs/emoji-data/compiled.js.map +1 -1
  292. package/lib/commonjs/emoji-data/emojiNames.js +0 -105
  293. package/lib/commonjs/emoji-data/emojiNames.js.map +1 -1
  294. package/lib/commonjs/emoji-data/emojis.js +0 -175
  295. package/lib/commonjs/emoji-data/emojis.js.map +1 -1
  296. package/lib/commonjs/emoji-data/index.js +2 -2
  297. package/lib/commonjs/emoji-data/index.js.map +1 -1
  298. package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
  299. package/lib/commonjs/i18n/en.json +9 -3
  300. package/lib/commonjs/i18n/fr.json +9 -3
  301. package/lib/commonjs/i18n/hi.json +9 -3
  302. package/lib/commonjs/i18n/it.json +9 -3
  303. package/lib/commonjs/i18n/ja.json +9 -0
  304. package/lib/commonjs/i18n/ko.json +9 -0
  305. package/lib/commonjs/i18n/nl.json +9 -3
  306. package/lib/commonjs/i18n/ru.json +9 -3
  307. package/lib/commonjs/i18n/tr.json +10 -4
  308. package/lib/commonjs/icons/Pin.js +42 -0
  309. package/lib/commonjs/icons/Pin.js.map +1 -0
  310. package/lib/commonjs/icons/PinHeader.js +38 -0
  311. package/lib/commonjs/icons/PinHeader.js.map +1 -0
  312. package/lib/commonjs/icons/Unpin.js +38 -0
  313. package/lib/commonjs/icons/Unpin.js.map +1 -0
  314. package/lib/commonjs/icons/index.js +39 -0
  315. package/lib/commonjs/icons/index.js.map +1 -1
  316. package/lib/commonjs/icons/utils/base.js +1 -1
  317. package/lib/commonjs/index.js +6 -6
  318. package/lib/commonjs/mock-builders/api/error.js +1 -1
  319. package/lib/commonjs/mock-builders/api/sendMessage.js +4 -1
  320. package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
  321. package/lib/commonjs/mock-builders/generator/attachment.js +1 -3
  322. package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
  323. package/lib/commonjs/mock-builders/generator/channel.js +101 -50
  324. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  325. package/lib/commonjs/mock-builders/generator/user.js +32 -33
  326. package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
  327. package/lib/commonjs/mock-builders/mock.js +3 -3
  328. package/lib/commonjs/mock-builders/mock.js.map +1 -1
  329. package/lib/commonjs/native.js +1 -7
  330. package/lib/commonjs/native.js.map +1 -1
  331. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js +7 -7
  332. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js.map +1 -1
  333. package/lib/commonjs/styleguideComponents/JsDoc.js +4 -4
  334. package/lib/commonjs/styleguideComponents/JsDoc.js.map +1 -1
  335. package/lib/commonjs/styleguideComponents/PathlineRenderer.js +7 -7
  336. package/lib/commonjs/styleguideComponents/PathlineRenderer.js.map +1 -1
  337. package/lib/commonjs/styleguideComponents/PropsRenderer.js +25 -25
  338. package/lib/commonjs/styleguideComponents/PropsRenderer.js.map +1 -1
  339. package/lib/commonjs/styleguideComponents/Wrapper.js +1 -1
  340. package/lib/commonjs/styleguideComponents/Wrapper.js.map +1 -1
  341. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  342. package/lib/commonjs/utils/date.js +13 -0
  343. package/lib/commonjs/utils/date.js.map +1 -0
  344. package/lib/commonjs/utils/getResizedImageUrl.js +26 -0
  345. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -0
  346. package/lib/commonjs/utils/getUrlOfImageAttachment.js +9 -0
  347. package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -0
  348. package/lib/commonjs/utils/utils.js +17 -9
  349. package/lib/commonjs/utils/utils.js.map +1 -1
  350. package/lib/commonjs/version.json +1 -1
  351. package/lib/module/components/Attachment/Attachment.js +2 -2
  352. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  353. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  354. package/lib/module/components/Attachment/Card.js +18 -15
  355. package/lib/module/components/Attachment/Card.js.map +1 -1
  356. package/lib/module/components/Attachment/FileAttachment.js +8 -8
  357. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  358. package/lib/module/components/Attachment/FileIcon.js.map +1 -1
  359. package/lib/module/components/Attachment/Gallery.js +97 -113
  360. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  361. package/lib/module/components/Attachment/Giphy.js +30 -30
  362. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  363. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js +46 -0
  364. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -0
  365. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +88 -0
  366. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -0
  367. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +75 -0
  368. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -0
  369. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +43 -0
  370. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -0
  371. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +30 -0
  372. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -0
  373. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +49 -0
  374. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -0
  375. package/lib/module/components/Attachment/utils/buildGallery/types.js +4 -0
  376. package/lib/module/components/Attachment/utils/buildGallery/types.js.map +1 -0
  377. package/lib/module/components/Attachment/utils/getAspectRatio.js +14 -0
  378. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -0
  379. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js +36 -0
  380. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -0
  381. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +9 -8
  382. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  383. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +21 -45
  384. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  385. package/lib/module/components/AutoCompleteInput/{CommandsItem.js → AutoCompleteSuggestionCommandIcon.js} +21 -94
  386. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -0
  387. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +145 -0
  388. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -0
  389. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +248 -0
  390. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -0
  391. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +223 -0
  392. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -0
  393. package/lib/module/components/Avatar/Avatar.js +13 -7
  394. package/lib/module/components/Avatar/Avatar.js.map +1 -1
  395. package/lib/module/components/Avatar/GroupAvatar.js +10 -10
  396. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  397. package/lib/module/components/Channel/Channel.js +332 -247
  398. package/lib/module/components/Channel/Channel.js.map +1 -1
  399. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +5 -5
  400. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  401. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -5
  402. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  403. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +9 -31
  404. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  405. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +35 -0
  406. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -0
  407. package/lib/module/components/ChannelList/ChannelList.js +6 -6
  408. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  409. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +5 -4
  410. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  411. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js +6 -7
  412. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  413. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +4 -3
  414. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  415. package/lib/module/components/ChannelList/ChannelListMessenger.js +17 -17
  416. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  417. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +2 -2
  418. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  419. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  420. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  421. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  422. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  423. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js +2 -2
  424. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  425. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js +2 -2
  426. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  427. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +3 -3
  428. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  429. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  430. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  431. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
  432. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  433. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +89 -64
  434. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  435. package/lib/module/components/ChannelList/utils.js +1 -1
  436. package/lib/module/components/ChannelPreview/ChannelAvatar.js +2 -2
  437. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  438. package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -2
  439. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  440. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  441. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +49 -20
  442. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  443. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +51 -0
  444. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -0
  445. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  446. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  447. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  448. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  449. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  450. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +16 -7
  451. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  452. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  453. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  454. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +2 -1
  455. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  456. package/lib/module/components/Chat/Chat.js.map +1 -1
  457. package/lib/module/components/Chat/hooks/useIsOnline.js +12 -5
  458. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  459. package/lib/module/components/ImageGallery/ImageGallery.js +90 -58
  460. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  461. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +2 -2
  462. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  463. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +12 -12
  464. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  465. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +14 -16
  466. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  467. package/lib/module/components/ImageGallery/components/ImageGrid.js +7 -7
  468. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  469. package/lib/module/components/ImageGallery/components/ImageGridHandle.js +5 -5
  470. package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  471. package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  472. package/lib/module/components/Indicators/LoadingIndicator.js +9 -9
  473. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  474. package/lib/module/components/Message/Message.js +151 -860
  475. package/lib/module/components/Message/Message.js.map +1 -1
  476. package/lib/module/components/Message/MessageSimple/MessageAvatar.js +6 -6
  477. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  478. package/lib/module/components/Message/MessageSimple/MessageContent.js +39 -38
  479. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  480. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +8 -6
  481. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  482. package/lib/module/components/Message/MessageSimple/MessageFooter.js +24 -16
  483. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  484. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +122 -0
  485. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -0
  486. package/lib/module/components/Message/MessageSimple/MessageReplies.js +5 -1
  487. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  488. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +5 -5
  489. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  490. package/lib/module/components/Message/MessageSimple/MessageSimple.js +27 -13
  491. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  492. package/lib/module/components/Message/MessageSimple/MessageStatus.js +25 -24
  493. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  494. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +7 -3
  495. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  496. package/lib/module/components/Message/MessageSimple/ReactionList.js +52 -80
  497. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  498. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js +89 -0
  499. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -0
  500. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js +46 -0
  501. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -0
  502. package/lib/module/components/Message/MessageSimple/utils/renderText.js +36 -19
  503. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  504. package/lib/module/components/Message/hooks/useCreateMessageContext.js +1 -5
  505. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  506. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +307 -0
  507. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -0
  508. package/lib/module/components/Message/hooks/useMessageActions.js +563 -0
  509. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -0
  510. package/lib/module/components/Message/utils/messageActions.js +17 -15
  511. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  512. package/lib/module/components/Message/utils/removeReservedFields.js.map +1 -1
  513. package/lib/module/components/MessageInput/AttachButton.js +3 -3
  514. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  515. package/lib/module/components/MessageInput/CommandsButton.js +3 -3
  516. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  517. package/lib/module/components/MessageInput/CooldownTimer.js +78 -0
  518. package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -0
  519. package/lib/module/components/MessageInput/FileUploadPreview.js +4 -4
  520. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  521. package/lib/module/components/MessageInput/ImageUploadPreview.js +9 -9
  522. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  523. package/lib/module/components/MessageInput/InputButtons.js +17 -22
  524. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  525. package/lib/module/components/MessageInput/MessageInput.js +93 -65
  526. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  527. package/lib/module/components/MessageInput/MoreOptionsButton.js +3 -3
  528. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  529. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +71 -0
  530. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -0
  531. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +4 -3
  532. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  533. package/lib/module/components/MessageInput/hooks/useCooldown.js +63 -0
  534. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -0
  535. package/lib/module/components/MessageInput/hooks/useCountdown.js +57 -0
  536. package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -0
  537. package/lib/module/components/MessageList/DateHeader.js +2 -2
  538. package/lib/module/components/MessageList/DateHeader.js.map +1 -1
  539. package/lib/module/components/MessageList/InlineDateSeparator.js +2 -2
  540. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  541. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +1 -1
  542. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +1 -1
  543. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +1 -1
  544. package/lib/module/components/MessageList/MessageList.js +77 -44
  545. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  546. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  547. package/lib/module/components/MessageList/TypingIndicator.js +5 -5
  548. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  549. package/lib/module/components/MessageList/hooks/useMessageList.js +23 -10
  550. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  551. package/lib/module/components/MessageList/hooks/useTypingString.js +2 -2
  552. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  553. package/lib/module/components/MessageList/utils/getDateSeparators.js +2 -1
  554. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  555. package/lib/module/components/MessageList/utils/getGroupStyles.js +10 -5
  556. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  557. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +3 -1
  558. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  559. package/lib/{commonjs/components/MessageOverlay/MessageActions.js → module/components/MessageOverlay/MessageActionList.js} +33 -85
  560. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -0
  561. package/lib/module/components/MessageOverlay/MessageActionListItem.js +131 -0
  562. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -0
  563. package/lib/module/components/MessageOverlay/MessageOverlay.js +97 -78
  564. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  565. package/lib/module/components/MessageOverlay/OverlayBackdrop.js +38 -0
  566. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
  567. package/lib/module/components/MessageOverlay/OverlayReactionList.js +12 -11
  568. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  569. package/lib/module/components/MessageOverlay/OverlayReactions.js +31 -34
  570. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  571. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js +41 -0
  572. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -0
  573. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +37 -0
  574. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
  575. package/lib/module/components/Reply/Reply.js +25 -19
  576. package/lib/module/components/Reply/Reply.js.map +1 -1
  577. package/lib/module/components/Thread/Thread.js +11 -2
  578. package/lib/module/components/Thread/Thread.js.map +1 -1
  579. package/lib/module/components/Thread/components/ThreadFooterComponent.js +20 -12
  580. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  581. package/lib/module/components/docs/ListProps.md +1 -1
  582. package/lib/module/components/docs/data.js +1 -1
  583. package/lib/module/components/index.js +133 -55
  584. package/lib/module/components/index.js.map +1 -1
  585. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +68 -0
  586. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -0
  587. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +2 -2
  588. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  589. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  590. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  591. package/lib/module/contexts/channelsContext/ChannelsContext.js +2 -2
  592. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  593. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +155 -0
  594. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -0
  595. package/lib/module/contexts/channelsStateContext/useChannelState.js +144 -0
  596. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -0
  597. package/lib/module/contexts/chatContext/ChatContext.js +2 -2
  598. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  599. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  600. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  601. package/lib/module/contexts/keyboardContext/KeyboardContext.js +2 -2
  602. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  603. package/lib/module/contexts/messageContext/MessageContext.js +2 -2
  604. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  605. package/lib/module/contexts/messageInputContext/MessageInputContext.js +122 -84
  606. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  607. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -5
  608. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  609. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +10 -3
  610. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  611. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +5 -19
  612. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  613. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +36 -0
  614. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -0
  615. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +105 -0
  616. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -0
  617. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  618. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  619. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
  620. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  621. package/lib/module/contexts/overlayContext/OverlayProvider.js +55 -46
  622. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  623. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +61 -0
  624. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -0
  625. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  626. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  627. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +20 -33
  628. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  629. package/lib/module/contexts/themeContext/ThemeContext.js +2 -2
  630. package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
  631. package/lib/module/contexts/themeContext/utils/theme.js +38 -14
  632. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  633. package/lib/module/contexts/threadContext/ThreadContext.js +2 -2
  634. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  635. package/lib/module/contexts/translationContext/TranslationContext.js +1 -1
  636. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  637. package/lib/module/contexts/typingContext/TypingContext.js +2 -2
  638. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  639. package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
  640. package/lib/module/emoji-data/compiled.js +0 -315
  641. package/lib/module/emoji-data/compiled.js.map +1 -1
  642. package/lib/module/emoji-data/emojiNames.js +0 -105
  643. package/lib/module/emoji-data/emojiNames.js.map +1 -1
  644. package/lib/module/emoji-data/emojis.js +0 -175
  645. package/lib/module/emoji-data/emojis.js.map +1 -1
  646. package/lib/module/emoji-data/index.js +2 -2
  647. package/lib/module/emoji-data/index.js.map +1 -1
  648. package/lib/module/hooks/useStreami18n.js.map +1 -1
  649. package/lib/module/i18n/en.json +9 -3
  650. package/lib/module/i18n/fr.json +9 -3
  651. package/lib/module/i18n/hi.json +9 -3
  652. package/lib/module/i18n/it.json +9 -3
  653. package/lib/module/i18n/ja.json +9 -0
  654. package/lib/module/i18n/ko.json +9 -0
  655. package/lib/module/i18n/nl.json +9 -3
  656. package/lib/module/i18n/ru.json +9 -3
  657. package/lib/module/i18n/tr.json +10 -4
  658. package/lib/module/icons/Pin.js +42 -0
  659. package/lib/module/icons/Pin.js.map +1 -0
  660. package/lib/module/icons/PinHeader.js +38 -0
  661. package/lib/module/icons/PinHeader.js.map +1 -0
  662. package/lib/module/icons/Unpin.js +38 -0
  663. package/lib/module/icons/Unpin.js.map +1 -0
  664. package/lib/module/icons/index.js +39 -0
  665. package/lib/module/icons/index.js.map +1 -1
  666. package/lib/module/icons/utils/base.js +1 -1
  667. package/lib/module/index.js +6 -6
  668. package/lib/module/mock-builders/api/error.js +1 -1
  669. package/lib/module/mock-builders/api/sendMessage.js +4 -1
  670. package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
  671. package/lib/module/mock-builders/generator/attachment.js +1 -3
  672. package/lib/module/mock-builders/generator/attachment.js.map +1 -1
  673. package/lib/module/mock-builders/generator/channel.js +101 -50
  674. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  675. package/lib/module/mock-builders/generator/user.js +32 -33
  676. package/lib/module/mock-builders/generator/user.js.map +1 -1
  677. package/lib/module/mock-builders/mock.js +3 -3
  678. package/lib/module/mock-builders/mock.js.map +1 -1
  679. package/lib/module/native.js +1 -7
  680. package/lib/module/native.js.map +1 -1
  681. package/lib/module/styleguideComponents/ArgumentsRenderer.js +7 -7
  682. package/lib/module/styleguideComponents/ArgumentsRenderer.js.map +1 -1
  683. package/lib/module/styleguideComponents/JsDoc.js +4 -4
  684. package/lib/module/styleguideComponents/JsDoc.js.map +1 -1
  685. package/lib/module/styleguideComponents/PathlineRenderer.js +7 -7
  686. package/lib/module/styleguideComponents/PathlineRenderer.js.map +1 -1
  687. package/lib/module/styleguideComponents/PropsRenderer.js +25 -25
  688. package/lib/module/styleguideComponents/PropsRenderer.js.map +1 -1
  689. package/lib/module/styleguideComponents/Wrapper.js +1 -1
  690. package/lib/module/styleguideComponents/Wrapper.js.map +1 -1
  691. package/lib/module/utils/Streami18n.js.map +1 -1
  692. package/lib/module/utils/date.js +13 -0
  693. package/lib/module/utils/date.js.map +1 -0
  694. package/lib/module/utils/getResizedImageUrl.js +26 -0
  695. package/lib/module/utils/getResizedImageUrl.js.map +1 -0
  696. package/lib/module/utils/getUrlOfImageAttachment.js +9 -0
  697. package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -0
  698. package/lib/module/utils/utils.js +17 -9
  699. package/lib/module/utils/utils.js.map +1 -1
  700. package/lib/module/version.json +1 -1
  701. package/lib/typescript/components/Attachment/Attachment.d.ts +1 -1
  702. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +1 -1
  703. package/lib/typescript/components/Attachment/Card.d.ts +3 -1
  704. package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
  705. package/lib/typescript/components/Attachment/Gallery.d.ts +4 -6
  706. package/lib/typescript/components/Attachment/Giphy.d.ts +1 -1
  707. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +23 -0
  708. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +7 -0
  709. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +7 -0
  710. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +7 -0
  711. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +10 -0
  712. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +137 -0
  713. package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts +23 -0
  714. package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +9 -0
  715. package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts +22 -0
  716. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +7 -1
  717. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +4 -0
  718. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +8 -0
  719. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +10 -0
  720. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +21 -0
  721. package/lib/typescript/components/Channel/Channel.d.ts +13 -12
  722. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  723. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -68
  724. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -126
  725. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +7 -0
  726. package/lib/typescript/components/ChannelList/ChannelList.d.ts +1 -1
  727. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +4 -2
  728. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +2 -2
  729. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -2
  730. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +9 -0
  731. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +12 -0
  732. package/lib/typescript/components/Chat/Chat.d.ts +1 -1
  733. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +4 -1
  734. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +1 -1
  735. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +1 -1
  736. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +1 -1
  737. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +1 -1
  738. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
  739. package/lib/typescript/components/Message/Message.d.ts +4 -3
  740. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +1 -1
  741. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
  742. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +2 -2
  743. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -2
  744. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +8 -0
  745. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
  746. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +1 -1
  747. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +1 -0
  748. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +2 -1
  749. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.d.ts +7 -0
  750. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.test.d.ts +1 -0
  751. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +3 -2
  752. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  753. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +15 -0
  754. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +26 -0
  755. package/lib/typescript/components/Message/utils/messageActions.d.ts +22 -21
  756. package/lib/typescript/components/Message/utils/removeReservedFields.d.ts +1 -1
  757. package/lib/typescript/components/MessageInput/AttachButton.d.ts +1 -1
  758. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +1 -1
  759. package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +10 -0
  760. package/lib/typescript/components/MessageInput/InputButtons.d.ts +1 -1
  761. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
  762. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +1 -1
  763. package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts +1 -0
  764. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +9 -0
  765. package/lib/typescript/components/MessageInput/hooks/useCountdown.d.ts +8 -0
  766. package/lib/typescript/components/MessageList/MessageList.d.ts +2 -1
  767. package/lib/typescript/components/MessageList/MessageSystem.d.ts +1 -1
  768. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +1 -0
  769. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +1 -1
  770. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +12 -0
  771. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +20 -0
  772. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +4 -4
  773. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +6 -0
  774. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +3 -1
  775. package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +7 -0
  776. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +12 -0
  777. package/lib/typescript/components/Reply/Reply.d.ts +1 -1
  778. package/lib/typescript/components/Thread/Thread.d.ts +2 -2
  779. package/lib/typescript/components/index.d.ts +13 -7
  780. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +9 -0
  781. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +28 -30
  782. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +13 -5
  783. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +41 -0
  784. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +20 -0
  785. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +2 -6
  786. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +21 -10
  787. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +3 -3
  788. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -1
  789. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +12 -13
  790. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +12 -0
  791. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +1 -0
  792. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +23 -114
  793. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +14 -7
  794. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +25 -0
  795. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +14 -13
  796. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +35 -11
  797. package/lib/typescript/contexts/utils/getDisplayName.d.ts +2 -2
  798. package/lib/typescript/hooks/useStreami18n.d.ts +1 -1
  799. package/lib/typescript/i18n/en.json +9 -3
  800. package/lib/typescript/i18n/fr.json +9 -3
  801. package/lib/typescript/i18n/hi.json +9 -3
  802. package/lib/typescript/i18n/it.json +9 -3
  803. package/lib/typescript/i18n/ja.json +9 -0
  804. package/lib/typescript/i18n/ko.json +9 -0
  805. package/lib/typescript/i18n/nl.json +9 -3
  806. package/lib/typescript/i18n/ru.json +9 -3
  807. package/lib/typescript/i18n/tr.json +10 -4
  808. package/lib/typescript/icons/Pin.d.ts +3 -0
  809. package/lib/typescript/icons/PinHeader.d.ts +3 -0
  810. package/lib/typescript/icons/Unpin.d.ts +3 -0
  811. package/lib/typescript/icons/index.d.ts +3 -0
  812. package/lib/typescript/native.d.ts +1 -9
  813. package/lib/typescript/utils/Streami18n.d.ts +11 -8
  814. package/lib/typescript/utils/date.d.ts +2 -0
  815. package/lib/typescript/utils/getResizedImageUrl.d.ts +19 -0
  816. package/lib/typescript/utils/getUrlOfImageAttachment.d.ts +7 -0
  817. package/lib/typescript/utils/utils.d.ts +14 -11
  818. package/package.json +12 -14
  819. package/src/components/Attachment/Attachment.tsx +3 -3
  820. package/src/components/Attachment/AttachmentActions.tsx +2 -2
  821. package/src/components/Attachment/Card.tsx +8 -5
  822. package/src/components/Attachment/FileAttachment.tsx +3 -4
  823. package/src/components/Attachment/FileIcon.tsx +2 -2
  824. package/src/components/Attachment/Gallery.tsx +164 -193
  825. package/src/components/Attachment/Giphy.tsx +6 -7
  826. package/src/components/Attachment/__tests__/Attachment.test.js +22 -14
  827. package/src/components/Attachment/__tests__/Gallery.test.js +233 -0
  828. package/src/components/Attachment/__tests__/buildGallery.test.js +131 -0
  829. package/src/components/Attachment/utils/buildGallery/buildGallery.ts +75 -0
  830. package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +95 -0
  831. package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +99 -0
  832. package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +64 -0
  833. package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +46 -0
  834. package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +186 -0
  835. package/src/components/Attachment/utils/buildGallery/types.ts +27 -0
  836. package/src/components/Attachment/utils/getAspectRatio.ts +21 -0
  837. package/src/components/Attachment/utils/getGalleryImageBorderRadius.ts +71 -0
  838. package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -2
  839. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +43 -28
  840. package/src/components/AutoCompleteInput/{CommandsItem.tsx → AutoCompleteSuggestionCommandIcon.tsx} +3 -57
  841. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +109 -0
  842. package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +156 -0
  843. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +212 -0
  844. package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.js +6 -12
  845. package/src/components/Avatar/Avatar.tsx +7 -10
  846. package/src/components/Avatar/GroupAvatar.tsx +7 -21
  847. package/src/components/Avatar/__tests__/Avatar.test.js +2 -30
  848. package/src/components/Channel/Channel.tsx +288 -232
  849. package/src/components/Channel/__tests__/Channel.test.js +34 -29
  850. package/src/components/Channel/__tests__/ownCapabilities.test.js +376 -0
  851. package/src/components/Channel/hooks/useCreateChannelContext.ts +6 -6
  852. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +4 -3
  853. package/src/components/Channel/hooks/useCreateMessagesContext.ts +9 -30
  854. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +54 -0
  855. package/src/components/ChannelList/ChannelList.tsx +8 -9
  856. package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +2 -3
  857. package/src/components/ChannelList/ChannelListHeaderErrorIndicator.tsx +3 -7
  858. package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +5 -2
  859. package/src/components/ChannelList/ChannelListMessenger.tsx +3 -4
  860. package/src/components/ChannelList/__tests__/ChannelList.test.js +73 -13
  861. package/src/components/ChannelList/__tests__/ChannelListMessenger.test.js +11 -12
  862. package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +3 -3
  863. package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +2 -2
  864. package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +2 -2
  865. package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +2 -2
  866. package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +2 -2
  867. package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +3 -3
  868. package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +2 -3
  869. package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +4 -4
  870. package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +2 -2
  871. package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +2 -2
  872. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +1 -2
  873. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +86 -44
  874. package/src/components/ChannelPreview/ChannelAvatar.tsx +3 -5
  875. package/src/components/ChannelPreview/ChannelPreview.tsx +3 -3
  876. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +2 -2
  877. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +27 -11
  878. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +71 -0
  879. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +4 -3
  880. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +2 -2
  881. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +2 -1
  882. package/src/components/ChannelPreview/__tests__/ChannelPreview.test.js +8 -9
  883. package/src/components/ChannelPreview/__tests__/ChannelPreviewMessenger.test.js +8 -9
  884. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +8 -2
  885. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +3 -4
  886. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +2 -2
  887. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +4 -3
  888. package/src/components/Chat/Chat.tsx +6 -6
  889. package/src/components/Chat/__tests__/Chat.test.js +10 -6
  890. package/src/components/Chat/hooks/useIsOnline.ts +12 -8
  891. package/src/components/ImageGallery/ImageGallery.tsx +83 -49
  892. package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +1 -2
  893. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +2 -5
  894. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +5 -7
  895. package/src/components/ImageGallery/components/ImageGrid.tsx +4 -5
  896. package/src/components/ImageGallery/components/ImageGridHandle.tsx +1 -0
  897. package/src/components/Indicators/LoadingErrorIndicator.tsx +1 -1
  898. package/src/components/Indicators/LoadingIndicator.tsx +1 -2
  899. package/src/components/Message/Message.tsx +155 -594
  900. package/src/components/Message/MessageSimple/MessageAvatar.tsx +1 -2
  901. package/src/components/Message/MessageSimple/MessageContent.tsx +23 -25
  902. package/src/components/Message/MessageSimple/MessageDeleted.tsx +8 -6
  903. package/src/components/Message/MessageSimple/MessageFooter.tsx +42 -24
  904. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +150 -0
  905. package/src/components/Message/MessageSimple/MessageReplies.tsx +5 -0
  906. package/src/components/Message/MessageSimple/MessageRepliesAvatars.tsx +2 -3
  907. package/src/components/Message/MessageSimple/MessageSimple.tsx +47 -26
  908. package/src/components/Message/MessageSimple/MessageStatus.tsx +19 -34
  909. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +5 -0
  910. package/src/components/Message/MessageSimple/ReactionList.tsx +64 -77
  911. package/src/components/Message/MessageSimple/__tests__/Message.test.js +9 -10
  912. package/src/components/Message/MessageSimple/__tests__/MessageAvatar.test.js +2 -2
  913. package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +40 -47
  914. package/src/components/Message/MessageSimple/__tests__/MessagePinnedHeader.test.js +53 -0
  915. package/src/components/Message/MessageSimple/__tests__/MessageReplies.test.js +2 -2
  916. package/src/components/Message/MessageSimple/__tests__/MessageStatus.test.js +4 -5
  917. package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.js +2 -2
  918. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageAvatar.test.js.snap +1 -1
  919. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +80 -0
  920. package/src/components/Message/MessageSimple/utils/parseLinks.test.ts +100 -0
  921. package/src/components/Message/MessageSimple/utils/parseLinks.ts +95 -0
  922. package/src/components/Message/MessageSimple/utils/renderText.tsx +22 -12
  923. package/src/components/Message/hooks/useCreateMessageContext.ts +1 -7
  924. package/src/components/Message/hooks/useMessageActionHandlers.ts +172 -0
  925. package/src/components/Message/hooks/useMessageActions.tsx +386 -0
  926. package/src/components/Message/utils/messageActions.ts +64 -38
  927. package/src/components/Message/utils/removeReservedFields.ts +1 -1
  928. package/src/components/MessageInput/AttachButton.tsx +1 -2
  929. package/src/components/MessageInput/CommandsButton.tsx +1 -2
  930. package/src/components/MessageInput/CooldownTimer.tsx +67 -0
  931. package/src/components/MessageInput/FileUploadPreview.tsx +5 -5
  932. package/src/components/MessageInput/ImageUploadPreview.tsx +3 -4
  933. package/src/components/MessageInput/InputButtons.tsx +4 -10
  934. package/src/components/MessageInput/MessageInput.tsx +62 -35
  935. package/src/components/MessageInput/MoreOptionsButton.tsx +1 -2
  936. package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +47 -0
  937. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +2 -2
  938. package/src/components/MessageInput/__tests__/AttachButton.test.js +2 -2
  939. package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +43 -45
  940. package/src/components/MessageInput/__tests__/ImageUploadPreview.test.js +15 -15
  941. package/src/components/MessageInput/__tests__/MessageInput.test.js +15 -23
  942. package/src/components/MessageInput/__tests__/SendButton.test.js +2 -2
  943. package/src/components/MessageInput/__tests__/UploadProgressIndicator.test.js +2 -2
  944. package/src/components/MessageInput/__tests__/__snapshots__/FileUploadPreview.test.js.snap +3593 -2889
  945. package/src/components/MessageInput/__tests__/__snapshots__/ImageUploadPreview.test.js.snap +1912 -1572
  946. package/src/components/MessageInput/__tests__/__snapshots__/MessageInput.test.js.snap +539 -296
  947. package/src/components/MessageInput/__tests__/__snapshots__/UploadProgressIndicator.test.js.snap +4 -4
  948. package/src/components/MessageInput/hooks/useCooldown.ts +62 -0
  949. package/src/components/MessageInput/hooks/useCountdown.ts +48 -0
  950. package/src/components/MessageList/DateHeader.tsx +2 -2
  951. package/src/components/MessageList/InlineDateSeparator.tsx +2 -2
  952. package/src/components/MessageList/MessageList.tsx +63 -39
  953. package/src/components/MessageList/MessageSystem.tsx +2 -2
  954. package/src/components/MessageList/TypingIndicator.tsx +1 -2
  955. package/src/components/MessageList/__tests__/MessageList.test.js +241 -116
  956. package/src/components/MessageList/__tests__/MessageSystem.test.js +3 -3
  957. package/src/components/MessageList/__tests__/ScrollToBottomButton.test.js +3 -3
  958. package/src/components/MessageList/__tests__/TypingIndicator.test.js +5 -6
  959. package/src/components/MessageList/__tests__/__snapshots__/TypingIndicator.test.js.snap +1 -1
  960. package/src/components/MessageList/hooks/useMessageList.ts +19 -9
  961. package/src/components/MessageList/hooks/useTypingString.ts +1 -2
  962. package/src/components/MessageList/utils/getDateSeparators.ts +4 -3
  963. package/src/components/MessageList/utils/getGroupStyles.ts +14 -9
  964. package/src/components/MessageList/utils/getLastReceivedMessage.ts +6 -1
  965. package/src/components/MessageOverlay/{MessageActions.tsx → MessageActionList.tsx} +59 -91
  966. package/src/components/MessageOverlay/MessageActionListItem.tsx +113 -0
  967. package/src/components/MessageOverlay/MessageOverlay.tsx +258 -217
  968. package/src/components/MessageOverlay/OverlayBackdrop.tsx +18 -0
  969. package/src/components/MessageOverlay/OverlayReactionList.tsx +3 -5
  970. package/src/components/MessageOverlay/OverlayReactions.tsx +27 -8
  971. package/src/components/MessageOverlay/OverlayReactionsAvatar.tsx +27 -0
  972. package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +44 -0
  973. package/src/components/Reply/Reply.tsx +25 -15
  974. package/src/components/Thread/Thread.tsx +13 -6
  975. package/src/components/Thread/__tests__/Thread.test.js +38 -113
  976. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +1085 -1018
  977. package/src/components/Thread/components/ThreadFooterComponent.tsx +14 -3
  978. package/src/components/docs/ListProps.md +1 -1
  979. package/src/components/index.ts +13 -7
  980. package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +32 -0
  981. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +1 -2
  982. package/src/contexts/channelContext/ChannelContext.tsx +28 -32
  983. package/src/contexts/channelsContext/ChannelsContext.tsx +18 -7
  984. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +286 -0
  985. package/src/contexts/channelsStateContext/useChannelState.ts +207 -0
  986. package/src/contexts/chatContext/ChatContext.tsx +1 -2
  987. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +1 -2
  988. package/src/contexts/keyboardContext/KeyboardContext.tsx +1 -2
  989. package/src/contexts/messageContext/MessageContext.tsx +2 -10
  990. package/src/contexts/messageInputContext/MessageInputContext.tsx +77 -36
  991. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +9 -7
  992. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +15 -10
  993. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +19 -28
  994. package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +46 -0
  995. package/src/contexts/messageOverlayContext/hooks/useResettableState.ts +22 -0
  996. package/src/contexts/messagesContext/MessagesContext.tsx +39 -140
  997. package/src/contexts/overlayContext/OverlayContext.tsx +19 -11
  998. package/src/contexts/overlayContext/OverlayProvider.tsx +48 -42
  999. package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +38 -0
  1000. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +1 -2
  1001. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +26 -46
  1002. package/src/contexts/suggestionsContext/__tests__/Suggestions.test.js +1 -1
  1003. package/src/contexts/themeContext/ThemeContext.tsx +1 -0
  1004. package/src/contexts/themeContext/utils/theme.ts +71 -24
  1005. package/src/contexts/threadContext/ThreadContext.tsx +1 -2
  1006. package/src/contexts/translationContext/TranslationContext.tsx +3 -3
  1007. package/src/contexts/typingContext/TypingContext.tsx +1 -2
  1008. package/src/contexts/utils/getDisplayName.ts +3 -1
  1009. package/src/emoji-data/compiled.ts +1830 -9609
  1010. package/src/emoji-data/emojiNames.ts +0 -140
  1011. package/src/emoji-data/emojis.ts +0 -210
  1012. package/src/emoji-data/index.js +1 -1
  1013. package/src/hooks/useStreami18n.ts +1 -1
  1014. package/src/i18n/en.json +9 -3
  1015. package/src/i18n/fr.json +9 -3
  1016. package/src/i18n/hi.json +9 -3
  1017. package/src/i18n/it.json +9 -3
  1018. package/src/i18n/ja.json +9 -0
  1019. package/src/i18n/ko.json +9 -0
  1020. package/src/i18n/nl.json +9 -3
  1021. package/src/i18n/ru.json +9 -3
  1022. package/src/i18n/tr.json +10 -4
  1023. package/src/icons/Pin.tsx +17 -0
  1024. package/src/icons/PinHeader.tsx +12 -0
  1025. package/src/icons/Unpin.tsx +12 -0
  1026. package/src/icons/index.ts +3 -0
  1027. package/src/mock-builders/api/sendMessage.js +3 -1
  1028. package/src/mock-builders/generator/attachment.js +0 -2
  1029. package/src/mock-builders/generator/channel.js +101 -46
  1030. package/src/mock-builders/generator/user.js +33 -26
  1031. package/src/mock-builders/mock.js +2 -2
  1032. package/src/native.ts +2 -13
  1033. package/src/styleguideComponents/ArgumentsRenderer.tsx +2 -1
  1034. package/src/styleguideComponents/JsDoc.tsx +3 -1
  1035. package/src/styleguideComponents/PathlineRenderer.tsx +2 -1
  1036. package/src/styleguideComponents/PropsRenderer.tsx +7 -4
  1037. package/src/styleguideComponents/Wrapper.tsx +1 -0
  1038. package/src/utils/Streami18n.ts +3 -3
  1039. package/src/utils/__tests__/Streami18n.test.js +1 -2
  1040. package/src/utils/date.ts +4 -0
  1041. package/src/utils/getResizedImageUrl.ts +43 -0
  1042. package/src/utils/getUrlOfImageAttachment.ts +10 -0
  1043. package/src/utils/utils.ts +23 -16
  1044. package/src/version.json +1 -1
  1045. package/lib/commonjs/components/AutoCompleteInput/CommandsHeader.js +0 -78
  1046. package/lib/commonjs/components/AutoCompleteInput/CommandsHeader.js.map +0 -1
  1047. package/lib/commonjs/components/AutoCompleteInput/CommandsItem.js.map +0 -1
  1048. package/lib/commonjs/components/AutoCompleteInput/EmojisHeader.js +0 -81
  1049. package/lib/commonjs/components/AutoCompleteInput/EmojisHeader.js.map +0 -1
  1050. package/lib/commonjs/components/AutoCompleteInput/EmojisItem.js +0 -75
  1051. package/lib/commonjs/components/AutoCompleteInput/EmojisItem.js.map +0 -1
  1052. package/lib/commonjs/components/AutoCompleteInput/MentionsItem.js +0 -125
  1053. package/lib/commonjs/components/AutoCompleteInput/MentionsItem.js.map +0 -1
  1054. package/lib/commonjs/components/AutoCompleteInput/SuggestionsList.js +0 -199
  1055. package/lib/commonjs/components/AutoCompleteInput/SuggestionsList.js.map +0 -1
  1056. package/lib/commonjs/components/MessageOverlay/MessageActions.js.map +0 -1
  1057. package/lib/module/components/AutoCompleteInput/CommandsHeader.js +0 -78
  1058. package/lib/module/components/AutoCompleteInput/CommandsHeader.js.map +0 -1
  1059. package/lib/module/components/AutoCompleteInput/CommandsItem.js.map +0 -1
  1060. package/lib/module/components/AutoCompleteInput/EmojisHeader.js +0 -81
  1061. package/lib/module/components/AutoCompleteInput/EmojisHeader.js.map +0 -1
  1062. package/lib/module/components/AutoCompleteInput/EmojisItem.js +0 -75
  1063. package/lib/module/components/AutoCompleteInput/EmojisItem.js.map +0 -1
  1064. package/lib/module/components/AutoCompleteInput/MentionsItem.js +0 -125
  1065. package/lib/module/components/AutoCompleteInput/MentionsItem.js.map +0 -1
  1066. package/lib/module/components/AutoCompleteInput/SuggestionsList.js +0 -199
  1067. package/lib/module/components/AutoCompleteInput/SuggestionsList.js.map +0 -1
  1068. package/lib/module/components/MessageOverlay/MessageActions.js.map +0 -1
  1069. package/lib/typescript/components/AutoCompleteInput/CommandsHeader.d.ts +0 -2
  1070. package/lib/typescript/components/AutoCompleteInput/CommandsItem.d.ts +0 -15
  1071. package/lib/typescript/components/AutoCompleteInput/EmojisHeader.d.ts +0 -5
  1072. package/lib/typescript/components/AutoCompleteInput/EmojisItem.d.ts +0 -12
  1073. package/lib/typescript/components/AutoCompleteInput/MentionsItem.d.ts +0 -16
  1074. package/lib/typescript/components/AutoCompleteInput/SuggestionsList.d.ts +0 -13
  1075. package/lib/typescript/components/MessageOverlay/MessageActions.d.ts +0 -11
  1076. package/src/components/AutoCompleteInput/CommandsHeader.tsx +0 -43
  1077. package/src/components/AutoCompleteInput/EmojisHeader.tsx +0 -45
  1078. package/src/components/AutoCompleteInput/EmojisItem.tsx +0 -52
  1079. package/src/components/AutoCompleteInput/MentionsItem.tsx +0 -74
  1080. package/src/components/AutoCompleteInput/SuggestionsList.tsx +0 -138
  1081. package/src/components/AutoCompleteInput/__tests__/CommandsItem.test.js +0 -26
  1082. package/src/components/AutoCompleteInput/__tests__/MentionsItem.test.js +0 -62
  1083. package/src/components/MessageList/__tests__/__snapshots__/MessageList.test.js.snap +0 -936
@@ -6,10 +6,10 @@
6
6
  "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
7
7
  "Block User": "Заблокировать пользователя",
8
8
  "Cancel": "Отмена",
9
+ "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
9
10
  "Copy Message": "Копировать сообщение",
10
11
  "Delete": "удалять",
11
12
  "Delete Message": "Удалить сообщение",
12
- "Dismiss": "Отклонить",
13
13
  "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
14
14
  "Edit Message": "Редактировать сообщение",
15
15
  "Editing Message": "Редактирование сообщения",
@@ -21,7 +21,9 @@
21
21
  "Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
22
22
  "Flag": "Пометить",
23
23
  "Flag Message": "Пометить сообщение",
24
+ "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
24
25
  "Instant Commands": "Мгновенные Команды",
26
+ "Links are disabled": "Ссылки отключены",
25
27
  "Loading channels...": "Загружаю каналы...",
26
28
  "Loading messages...": "Загружаю сообщения...",
27
29
  "Loading...": "Загружаю...",
@@ -30,9 +32,11 @@
30
32
  "Message flagged": "Сообщение отмечено",
31
33
  "Mute User": "Отключить пользователя",
32
34
  "Nothing yet...": "Пока ничего нет...",
35
+ "Ok": "Oк",
33
36
  "Only visible to you": "Видно только вам",
34
37
  "Photo": "Фото",
35
38
  "Photos": "Фото",
39
+ "Pin to Conversation": "Закрепить к беседе",
36
40
  "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
37
41
  "Please select a channel first": "Пожалуйста, сначала выберите канал",
38
42
  "Reconnecting...": "Переподключение...",
@@ -41,15 +45,17 @@
41
45
  "Resend": "Отправить",
42
46
  "Search GIFs": "Поиск GIF",
43
47
  "Send a message": "Отправить сообщение",
44
- "Something went wrong": "Что-то пошло не так",
48
+ "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
49
+ "Slow mode ON": "Медленный режим включен",
45
50
  "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
46
- "The operation couldn't be completed.": "Операция не может быть завершена.",
47
51
  "Thread Reply": "Тема Ответить",
48
52
  "Unblock User": "Разблокировать пользователя",
49
53
  "Unknown User": "Неизвестный пользователь",
50
54
  "Unmute User": "Включить микрофон",
55
+ "Unpin from Conversation": "Открепить от беседы",
51
56
  "Unread Messages": "Непрочитанные Сообщения",
52
57
  "You": "Вы",
58
+ "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
53
59
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
54
60
  "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
55
61
  "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
@@ -6,10 +6,10 @@
6
6
  "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
7
7
  "Block User": "Kullanıcıyı engelle",
8
8
  "Cancel": "İptal",
9
+ "Cannot Flag Message": "Raporlama Başarısız",
9
10
  "Copy Message": "Mesajı Kopyala",
10
11
  "Delete": "Sil",
11
12
  "Delete Message": "Mesajı Sil",
12
- "Dismiss": "Reddet",
13
13
  "Do you want to send a copy of this message to a moderator for further investigation?": "Daha fazla araştırma için bu mesajın bir kopyasını bir moderatöre göndermek istiyor musunuz?",
14
14
  "Edit Message": "Mesajı Düzenle",
15
15
  "Editing Message": "Mesaj Düzenleniyor",
@@ -19,9 +19,11 @@
19
19
  "Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
20
20
  "Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
21
21
  "Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyin",
22
- "Flag": "Bayrak çekmek",
22
+ "Flag": "Raporla",
23
23
  "Flag Message": "Mesajı İşaretle",
24
+ "Flag action failed either due to a network issue or the message is already flagged": "Raporlama, mesajın raporlanmış olması veya bağlantı hatası sebebiyle başarısız oldu.",
24
25
  "Instant Commands": "Anında Komutlar",
26
+ "Links are disabled": "Bağlantılar devre dışı",
25
27
  "Loading channels...": "Kanallar yükleniyor...",
26
28
  "Loading messages...": "Mesajlar yükleniyor...",
27
29
  "Loading...": "Yükleniyor...",
@@ -30,9 +32,11 @@
30
32
  "Message flagged": "Mesaj işaretlendi",
31
33
  "Mute User": "Kullanıcının Sesini Kapat",
32
34
  "Nothing yet...": "Şimdilik hiçbir şey...",
35
+ "Ok": "Tamam",
33
36
  "Only visible to you": "Sadece siz görebilirsiniz",
34
37
  "Photo": "Fotoğraf",
35
38
  "Photos": "Fotoğraflar",
39
+ "Pin to Conversation": "Konuşmaya sabitle",
36
40
  "Please enable access to your photos and videos so you can share them.": "Lütfen paylaşabilmek için fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
37
41
  "Please select a channel first": "Lütfen önce bir kanal seçin",
38
42
  "Reconnecting...": "Yeniden Bağlanma...",
@@ -41,15 +45,17 @@
41
45
  "Resend": "Yeniden gönder",
42
46
  "Search GIFs": "GIF ara",
43
47
  "Send a message": "Bir mesaj göndermek",
44
- "Something went wrong": "Bir şeyler yanlış gitti",
48
+ "Sending links is not allowed in this conversation": "Bağlantı göndermek bu konuşmada desteklenmiyor",
49
+ "Slow mode ON": "Yavaş Mod Açık",
45
50
  "The message has been reported to a moderator.": "Mesaj bir moderatöre bildirildi.",
46
- "The operation couldn't be completed.": "İşlem tamamlanamadı.",
47
51
  "Thread Reply": "Konu Yanıtı",
48
52
  "Unblock User": "Kullanıcının engelini kaldır",
49
53
  "Unknown User": "Bilinmeyen kullanıcı",
50
54
  "Unmute User": "Kullanıcının sesini aç",
55
+ "Unpin from Conversation": "Sabitlenmeyi kaldır",
51
56
  "Unread Messages": "Okunmamış Mesajlar",
52
57
  "You": "Sen",
58
+ "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
53
59
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
54
60
  "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
55
61
  "{{ replyCount }} Replies": "{{ replyCount }} Cevaplar",
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './utils/base';
3
+ export declare const Pin: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './utils/base';
3
+ export declare const PinHeader: React.FC<IconProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './utils/base';
3
+ export declare const Unpin: React.FC<IconProps>;
@@ -47,6 +47,8 @@ export * from './Notification';
47
47
  export * from './ODT';
48
48
  export * from './PDF';
49
49
  export * from './Picture';
50
+ export * from './Pin';
51
+ export * from './PinHeader';
50
52
  export * from './PPT';
51
53
  export * from './PPTX';
52
54
  export * from './RAR';
@@ -68,6 +70,7 @@ export * from './ThumbsUpReaction';
68
70
  export * from './Time';
69
71
  export * from './TXT';
70
72
  export * from './Unknown';
73
+ export * from './Unpin';
71
74
  export * from './User';
72
75
  export * from './UserAdd';
73
76
  export * from './UserDelete';
@@ -1,12 +1,5 @@
1
- /// <reference types="react" />
2
- import { FlatList as DefaultFlatList, StyleProp, ViewStyle } from 'react-native';
1
+ import { FlatList as DefaultFlatList } from 'react-native';
3
2
  import type { NetInfoSubscription } from '@react-native-community/netinfo';
4
- declare type BlurView = React.ComponentType<{
5
- blurAmount?: number;
6
- blurType?: string;
7
- style?: StyleProp<ViewStyle>;
8
- }>;
9
- export declare let BlurView: BlurView;
10
3
  declare type CompressImage = ({ compressImageQuality, height, uri, width, }: {
11
4
  compressImageQuality: number;
12
5
  height: number;
@@ -83,7 +76,6 @@ declare type TriggerHaptic = (method: HapticFeedbackMethod) => void | never;
83
76
  export declare let triggerHaptic: TriggerHaptic;
84
77
  export declare let SDK: string;
85
78
  declare type Handlers = {
86
- BlurView?: BlurView;
87
79
  compressImage?: CompressImage;
88
80
  deleteFile?: DeleteFile;
89
81
  FlatList?: typeof DefaultFlatList;
@@ -1,5 +1,7 @@
1
1
  import Dayjs from 'dayjs';
2
2
  import { FallbackLng, TFunction } from 'i18next';
3
+ import type moment from 'moment';
4
+ import type { TDateTimeParser } from '../contexts/translationContext/TranslationContext';
3
5
  import enTranslations from '../i18n/en.json';
4
6
  import 'dayjs/locale/fr';
5
7
  import 'dayjs/locale/hi';
@@ -15,8 +17,6 @@ import 'dayjs/locale/tr';
15
17
  * sure we don't mess up languages in other places in the app.
16
18
  */
17
19
  import 'dayjs/locale/en';
18
- import type moment from 'moment';
19
- import type { TDateTimeParser } from '../contexts/translationContext/TranslationContext';
20
20
  import type { UnknownType } from '../types/types';
21
21
  declare type Options = {
22
22
  DateTimeParser?: typeof Dayjs | typeof moment;
@@ -118,10 +118,10 @@ export declare class Streami18n {
118
118
  "Are you sure you want to permanently delete this message?": string;
119
119
  "Block User": string;
120
120
  Cancel: string;
121
+ "Cannot Flag Message": string;
121
122
  "Copy Message": string;
122
123
  Delete: string;
123
124
  "Delete Message": string;
124
- Dismiss: string;
125
125
  "Do you want to send a copy of this message to a moderator for further investigation?": string;
126
126
  "Edit Message": string;
127
127
  "Editing Message": string;
@@ -133,7 +133,9 @@ export declare class Streami18n {
133
133
  "Error while loading, please reload/refresh": string;
134
134
  Flag: string;
135
135
  "Flag Message": string;
136
+ "Flag action failed either due to a network issue or the message is already flagged": string;
136
137
  "Instant Commands": string;
138
+ "Links are disabled": string;
137
139
  "Loading channels...": string;
138
140
  "Loading messages...": string;
139
141
  "Loading...": string;
@@ -142,9 +144,11 @@ export declare class Streami18n {
142
144
  "Message flagged": string;
143
145
  "Mute User": string;
144
146
  "Nothing yet...": string;
147
+ Ok: string;
145
148
  "Only visible to you": string;
146
149
  Photo: string;
147
150
  Photos: string;
151
+ "Pin to Conversation": string;
148
152
  "Please enable access to your photos and videos so you can share them.": string;
149
153
  "Please select a channel first": string;
150
154
  "Reconnecting...": string;
@@ -153,18 +157,17 @@ export declare class Streami18n {
153
157
  Resend: string;
154
158
  "Search GIFs": string;
155
159
  "Send a message": string;
156
- "Something went wrong": string;
160
+ "Sending links is not allowed in this conversation": string;
161
+ "Slow mode ON": string;
157
162
  "The message has been reported to a moderator.": string;
158
- "The operation couldn't be completed.": string; /**
159
- * Hindi notation for meridiems are quite fuzzy in practice. While there exists
160
- * a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
161
- */
162
163
  "Thread Reply": string;
163
164
  "Unblock User": string;
164
165
  "Unknown User": string;
165
166
  "Unmute User": string;
167
+ "Unpin from Conversation": string;
166
168
  "Unread Messages": string;
167
169
  You: string;
170
+ "You can't send messages in this channel": string;
168
171
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": string;
169
172
  "{{ index }} of {{ photoLength }}": string;
170
173
  "{{ replyCount }} Replies": string;
@@ -0,0 +1,2 @@
1
+ export declare const ONE_SECOND_IN_MS = 1000;
2
+ export declare const secondsUntil: (date: Date) => number;
@@ -0,0 +1,19 @@
1
+ declare type GetResizedImageUrlParams = {
2
+ url: string;
3
+ height?: string | number;
4
+ width?: string | number;
5
+ };
6
+ /**
7
+ * Any file or image upload done through stream's chat SDK or components get uploaded
8
+ * to CloudFront CDN. Following function returns a url of resized image (to given width and height).
9
+ * It can be used to avoid rendering heavy images on UI, for the sake of performance.
10
+ *
11
+ * This function accepts an object with following properties:
12
+ * - height: height of the resized image.
13
+ * - url: url of the image.
14
+ * - width: width of the resized image.
15
+ *
16
+ * @returns {string} Url of the image with given height and width.
17
+ */
18
+ export declare function getResizedImageUrl({ height, url, width }: GetResizedImageUrlParams): string;
19
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { Attachment } from 'stream-chat';
2
+ /**
3
+ * Extract url of image from image attachment.
4
+ * @param image Image attachment
5
+ * @returns {string}
6
+ */
7
+ export declare function getUrlOfImageAttachment(image: Attachment): string | undefined;
@@ -1,12 +1,9 @@
1
- import { Emoji } from '../emoji-data/compiled';
2
1
  import type React from 'react';
3
2
  import type { DebouncedFunc } from 'lodash';
4
- import type { Channel, StreamChat } from 'stream-chat';
5
- import type { CommandsItemProps } from '../components/AutoCompleteInput/CommandsItem';
6
- import type { EmojisItemProps } from '../components/AutoCompleteInput/EmojisItem';
7
- import type { MentionsItemProps } from '../components/AutoCompleteInput/MentionsItem';
3
+ import type { Channel, CommandResponse, StreamChat } from 'stream-chat';
8
4
  import type { MentionAllAppUsersQuery } from '../contexts/messageInputContext/MessageInputContext';
9
- import type { SuggestionCommand, SuggestionUser } from '../contexts/suggestionsContext/SuggestionsContext';
5
+ import type { SuggestionCommand, SuggestionComponentType, SuggestionUser } from '../contexts/suggestionsContext/SuggestionsContext';
6
+ import { Emoji } from '../emoji-data/compiled';
10
7
  import type { IconProps } from '../icons/utils/base';
11
8
  import type { DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType, UnknownType } from '../types/types';
12
9
  export declare type ReactionData = {
@@ -24,6 +21,11 @@ export declare const ProgressIndicatorTypes: {
24
21
  IN_PROGRESS: 'in_progress';
25
22
  RETRY: 'retry';
26
23
  };
24
+ export declare const MessageStatusTypes: {
25
+ FAILED: string;
26
+ RECEIVED: string;
27
+ SENDING: string;
28
+ };
27
29
  export declare const queryMembersDebounced: DebouncedFunc<(<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = import("stream-chat").LiteralStringForUnion, Ev extends UnknownType = UnknownType, Me extends UnknownType = UnknownType, Re extends UnknownType = UnknownType, Us extends UnknownType = DefaultUserType>(channel: Channel<At, Ch, Co, Ev, Me, Re, Us>, query: SuggestionUser<Us>["name"], onReady?: ((users: SuggestionUser<Us>[]) => void) | undefined, options?: {
28
30
  limit?: number;
29
31
  }) => Promise<void>)>;
@@ -37,28 +39,27 @@ export declare const isMentionTrigger: (trigger: Trigger) => trigger is "@";
37
39
  export declare type Trigger = '/' | '@' | ':';
38
40
  export declare type TriggerSettings<Co extends string = DefaultCommandType, Us extends UnknownType = DefaultUserType> = {
39
41
  '/'?: {
40
- component: string | React.ComponentType<Partial<CommandsItemProps<Co>>>;
41
- dataProvider: (query: SuggestionCommand<Co>['name'], text: string, onReady?: (data: SuggestionCommand<Co>[], q: SuggestionCommand<Co>['name']) => void, options?: {
42
+ dataProvider: (query: CommandResponse<Co>['name'], text: string, onReady?: (data: CommandResponse<Co>[], q: CommandResponse<Co>['name']) => void, options?: {
42
43
  limit?: number;
43
44
  }) => SuggestionCommand<Co>[];
44
- output: (entity: SuggestionCommand<Co>) => {
45
+ output: (entity: CommandResponse<Co>) => {
45
46
  caretPosition: string;
46
47
  key: string;
47
48
  text: string;
48
49
  };
50
+ type: SuggestionComponentType;
49
51
  };
50
52
  ':'?: {
51
- component: string | React.ComponentType<Partial<EmojisItemProps>>;
52
53
  dataProvider: (query: Emoji['name'], _: string, onReady?: (data: Emoji[], q: Emoji['name']) => void) => Emoji[];
53
54
  output: (entity: Emoji) => {
54
55
  caretPosition: string;
55
56
  key: string;
56
57
  text: string;
57
58
  };
59
+ type: SuggestionComponentType;
58
60
  };
59
61
  '@'?: {
60
62
  callback: (item: SuggestionUser<Us>) => void;
61
- component: string | React.ComponentType<Partial<MentionsItemProps<Us>>>;
62
63
  dataProvider: (query: SuggestionUser<Us>['name'], _: string, onReady?: (data: SuggestionUser<Us>[], q: SuggestionUser<Us>['name']) => void, options?: {
63
64
  limit?: number;
64
65
  mentionAllAppUsersEnabled?: boolean;
@@ -69,6 +70,7 @@ export declare type TriggerSettings<Co extends string = DefaultCommandType, Us e
69
70
  key: string;
70
71
  text: string;
71
72
  };
73
+ type: SuggestionComponentType;
72
74
  };
73
75
  };
74
76
  export declare type ACITriggerSettingsParams<At extends UnknownType = DefaultAttachmentType, Ch extends UnknownType = DefaultChannelType, Co extends string = DefaultCommandType, Ev extends UnknownType = DefaultEventType, Me extends UnknownType = DefaultMessageType, Re extends UnknownType = DefaultReactionType, Us extends UnknownType = DefaultUserType> = {
@@ -101,3 +103,4 @@ export declare const vw: (percentageWidth: number, rounded?: boolean) => number;
101
103
  export declare const vh: (percentageHeight: number, rounded?: boolean) => number;
102
104
  export declare const generateRandomId: (a?: string) => string;
103
105
  export declare const emojiRegex: RegExp;
106
+ export declare const urlRegex: RegExp;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "3.10.2-next.1",
4
+ "version": "4.0.0-beta.3",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -29,7 +29,7 @@
29
29
  "copy-translations": "echo '\u001b[34mℹ\u001b[0m Copying translation files to \u001b[34mlib/typescript/i18n\u001b[0m' && cp -R -f ./src/i18n ./lib/typescript/i18n && echo '\u001b[32m✓\u001b[0m Done Copying Translations'",
30
30
  "docs": "styleguidist build",
31
31
  "docs-server": "styleguidist server",
32
- "eslint": "eslint '**/*.{js,md,ts,jsx,tsx}' --max-warnings 0",
32
+ "eslint": "eslint 'src/**/*.{js,md,ts,jsx,tsx}' --max-warnings 0",
33
33
  "lint": "prettier --ignore-path ../.prettierignore --list-different 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json ../.prettierrc .babelrc && eslint 'src/**/*.{js,ts,tsx,md}' --max-warnings 0 && yarn run validate-translations",
34
34
  "lint-fix": "prettier --ignore-path ../.prettierignore --write 'src/**/*.{js,ts,tsx,md,json}' .eslintrc.json ../.prettierrc .babelrc && eslint --fix 'src/**/*.{js,ts,tsx,md}' --max-warnings 0",
35
35
  "prepare": "yarn run build",
@@ -70,24 +70,19 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@babel/runtime": "7.13.10",
73
- "@gorhom/bottom-sheet": "3.6.4",
74
- "anchorme": "^1.1.2",
73
+ "@gorhom/bottom-sheet": "4.1.5",
75
74
  "dayjs": "1.10.5",
76
75
  "file-loader": "6.2.0",
77
76
  "i18next": "20.2.4",
78
77
  "lodash-es": "4.17.21",
79
78
  "metro-react-native-babel-preset": "0.66.0",
79
+ "mime-types": "^2.1.34",
80
80
  "path": "0.12.7",
81
81
  "react-art": "^17.0.2",
82
82
  "react-native-markdown-package": "1.8.1",
83
- "stream-chat": "~3.13.1"
83
+ "stream-chat": "^5.1.2"
84
84
  },
85
85
  "peerDependencies": {
86
- "react": "*",
87
- "react-dom": "*",
88
- "react-native": "*",
89
- "react-native-gesture-handler": "^1.8.0",
90
- "react-native-reanimated": "^2.0.0",
91
86
  "react-native-svg": "^12.1.0"
92
87
  },
93
88
  "devDependencies": {
@@ -110,17 +105,19 @@
110
105
  "@types/react": "17.0.5",
111
106
  "@types/react-native": "0.65.1",
112
107
  "@types/react-test-renderer": "17.0.1",
113
- "@typescript-eslint/eslint-plugin": "4.24.0",
114
- "@typescript-eslint/parser": "4.24.0",
108
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
109
+ "@typescript-eslint/parser": "^5.7.0",
115
110
  "babel-eslint": "10.1.0",
116
111
  "babel-jest": "26.6.3",
117
112
  "babel-loader": "8.2.2",
118
113
  "babel-plugin-i18next-extract": "0.8.3",
119
114
  "babel-plugin-module-resolver": "4.1.0",
120
115
  "babel-plugin-react-native-web": "0.16.3",
121
- "eslint": "7.26.0",
116
+ "eslint": "7.32.0",
122
117
  "eslint-config-prettier": "8.3.0",
118
+ "eslint-import-resolver-babel-module": "^5.3.1",
123
119
  "eslint-plugin-babel": "5.3.1",
120
+ "eslint-plugin-import": "^2.25.3",
124
121
  "eslint-plugin-jest": "24.3.6",
125
122
  "eslint-plugin-markdown": "2.1.0",
126
123
  "eslint-plugin-prettier": "3.4.0",
@@ -135,6 +132,7 @@
135
132
  "react-dom": "17.0.2",
136
133
  "react-native": "0.64.1",
137
134
  "react-native-builder-bob": "0.18.1",
135
+ "react-native-fs": "2.18.0",
138
136
  "react-native-gesture-handler": "1.10.3",
139
137
  "react-native-reanimated": "2.1.0",
140
138
  "react-native-svg": "12.1.1",
@@ -142,7 +140,7 @@
142
140
  "react-native-web": "0.15.0",
143
141
  "react-styleguidist": "11.1.6",
144
142
  "react-test-renderer": "17.0.2",
145
- "typescript": "4.2.4",
143
+ "typescript": "4.4.3",
146
144
  "uuid": "8.3.2",
147
145
  "webpack": "4.44.2"
148
146
  }
@@ -1,17 +1,17 @@
1
1
  import React from 'react';
2
2
 
3
+ import type { Attachment as AttachmentType } from 'stream-chat';
4
+
3
5
  import { AttachmentActions as AttachmentActionsDefault } from '../../components/Attachment/AttachmentActions';
4
6
  import { Card as CardDefault } from '../../components/Attachment/Card';
7
+ import { FileAttachment as FileAttachmentDefault } from '../../components/Attachment/FileAttachment';
5
8
  import { Gallery as GalleryDefault } from '../../components/Attachment/Gallery';
6
9
  import { Giphy as GiphyDefault } from '../../components/Attachment/Giphy';
7
- import { FileAttachment as FileAttachmentDefault } from '../../components/Attachment/FileAttachment';
8
10
  import {
9
11
  MessagesContextValue,
10
12
  useMessagesContext,
11
13
  } from '../../contexts/messagesContext/MessagesContext';
12
14
 
13
- import type { Attachment as AttachmentType } from 'stream-chat';
14
-
15
15
  import type {
16
16
  DefaultAttachmentType,
17
17
  DefaultChannelType,
@@ -9,14 +9,14 @@ import {
9
9
  ViewStyle,
10
10
  } from 'react-native';
11
11
 
12
+ import type { Attachment } from 'stream-chat';
13
+
12
14
  import {
13
15
  MessageContextValue,
14
16
  useMessageContext,
15
17
  } from '../../contexts/messageContext/MessageContext';
16
18
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
17
19
 
18
- import type { Attachment } from 'stream-chat';
19
-
20
20
  import type {
21
21
  DefaultAttachmentType,
22
22
  DefaultChannelType,
@@ -12,6 +12,8 @@ import {
12
12
  ViewStyle,
13
13
  } from 'react-native';
14
14
 
15
+ import type { Attachment } from 'stream-chat';
16
+
15
17
  import {
16
18
  MessageContextValue,
17
19
  useMessageContext,
@@ -21,10 +23,6 @@ import {
21
23
  useMessagesContext,
22
24
  } from '../../contexts/messagesContext/MessagesContext';
23
25
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
24
- import { makeImageCompatibleUrl } from '../../utils/utils';
25
-
26
- import type { Attachment } from 'stream-chat';
27
-
28
26
  import type {
29
27
  DefaultAttachmentType,
30
28
  DefaultChannelType,
@@ -35,6 +33,7 @@ import type {
35
33
  DefaultUserType,
36
34
  UnknownType,
37
35
  } from '../../types/types';
36
+ import { makeImageCompatibleUrl } from '../../utils/utils';
38
37
 
39
38
  const styles = StyleSheet.create({
40
39
  authorName: { fontSize: 14.5, fontWeight: '600' },
@@ -105,6 +104,8 @@ export type CardPropsWithContext<
105
104
  MessagesContextValue<At, Ch, Co, Ev, Me, Re, Us>,
106
105
  'additionalTouchableProps' | 'CardCover' | 'CardFooter' | 'CardHeader'
107
106
  > & {
107
+ channelId: string | undefined;
108
+ messageId: string | undefined;
108
109
  styles?: Partial<{
109
110
  authorName: StyleProp<TextStyle>;
110
111
  authorNameContainer: StyleProp<ViewStyle>;
@@ -318,7 +319,7 @@ export const Card = <
318
319
  >(
319
320
  props: CardProps<At, Ch, Co, Ev, Me, Re, Us>,
320
321
  ) => {
321
- const { onLongPress, onPress, onPressIn, preventPress } =
322
+ const { message, onLongPress, onPress, onPressIn, preventPress } =
322
323
  useMessageContext<At, Ch, Co, Ev, Me, Re, Us>();
323
324
  const { additionalTouchableProps, CardCover, CardFooter, CardHeader } =
324
325
  useMessagesContext<At, Ch, Co, Ev, Me, Re, Us>();
@@ -330,6 +331,8 @@ export const Card = <
330
331
  CardCover,
331
332
  CardFooter,
332
333
  CardHeader,
334
+ channelId: message.cid,
335
+ messageId: message.id,
333
336
  onLongPress,
334
337
  onPress,
335
338
  onPressIn,
@@ -10,6 +10,8 @@ import {
10
10
  ViewStyle,
11
11
  } from 'react-native';
12
12
 
13
+ import type { Attachment } from 'stream-chat';
14
+
13
15
  import { AttachmentActions as AttachmentActionsDefault } from '../../components/Attachment/AttachmentActions';
14
16
  import { FileIcon as FileIconDefault } from '../../components/Attachment/FileIcon';
15
17
  import {
@@ -21,10 +23,6 @@ import {
21
23
  useMessagesContext,
22
24
  } from '../../contexts/messagesContext/MessagesContext';
23
25
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
24
- import { vw } from '../../utils/utils';
25
-
26
- import type { Attachment } from 'stream-chat';
27
-
28
26
  import type {
29
27
  DefaultAttachmentType,
30
28
  DefaultChannelType,
@@ -35,6 +33,7 @@ import type {
35
33
  DefaultUserType,
36
34
  UnknownType,
37
35
  } from '../../types/types';
36
+ import { vw } from '../../utils/utils';
38
37
 
39
38
  const styles = StyleSheet.create({
40
39
  container: {
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+
2
3
  import { useTheme } from '../../contexts/themeContext/ThemeContext';
3
4
 
4
5
  import { Audio } from '../../icons/Audio';
@@ -17,12 +18,11 @@ import { RTF } from '../../icons/RTF';
17
18
  import { SEVEN_Z } from '../../icons/SEVEN_Z';
18
19
  import { TAR } from '../../icons/TAR';
19
20
  import { TXT } from '../../icons/TXT';
21
+ import type { IconProps } from '../../icons/utils/base';
20
22
  import { XLS } from '../../icons/XLS';
21
23
  import { XLSX } from '../../icons/XLSX';
22
24
  import { ZIP } from '../../icons/ZIP';
23
25
 
24
- import type { IconProps } from '../../icons/utils/base';
25
-
26
26
  // https://www.iana.org/assignments/media-types/media-types.xhtml#audio
27
27
  const audioFileTypes = [
28
28
  'audio/1d-interleaved-parityfec',