stream-chat-react-native-core 5.39.5 → 5.40.0-rc.2

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 (1019) hide show
  1. package/README.md +0 -1
  2. package/lib/commonjs/components/Attachment/Attachment.js +1 -1
  3. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  4. package/lib/commonjs/components/Attachment/Card.js +6 -6
  5. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  6. package/lib/commonjs/components/Attachment/FileAttachment.js +5 -5
  7. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  8. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +1 -1
  9. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  10. package/lib/commonjs/components/Attachment/Gallery.js +29 -22
  11. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  12. package/lib/commonjs/components/Attachment/Giphy.js +8 -8
  13. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  14. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js +7 -0
  15. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  16. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +3 -1
  17. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  18. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +3 -0
  19. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  20. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +4 -0
  21. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  22. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -0
  23. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  24. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +2 -0
  25. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  26. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
  27. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  28. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -2
  29. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  30. package/lib/commonjs/components/Avatar/Avatar.js +4 -0
  31. package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
  32. package/lib/commonjs/components/Avatar/GroupAvatar.js +4 -0
  33. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  34. package/lib/commonjs/components/Channel/Channel.js +298 -429
  35. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  36. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +0 -2
  37. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  38. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
  39. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  40. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +26 -10
  41. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  42. package/lib/commonjs/components/ChannelList/ChannelList.js +0 -2
  43. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  44. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
  45. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  46. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +8 -18
  47. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  48. package/lib/commonjs/components/Chat/Chat.js +2 -9
  49. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  50. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +3 -3
  51. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  52. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +0 -2
  53. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  54. package/lib/commonjs/components/Chat/hooks/useIsOnline.js +16 -13
  55. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  56. package/lib/commonjs/components/ImageGallery/ImageGallery.js +58 -96
  57. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  58. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
  59. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  60. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +92 -90
  61. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  62. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
  63. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  64. package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  65. package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
  66. package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  67. package/lib/commonjs/components/Indicators/LoadingIndicator.js +1 -1
  68. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  69. package/lib/commonjs/components/Message/Message.js +123 -173
  70. package/lib/commonjs/components/Message/Message.js.map +1 -1
  71. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  72. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +40 -144
  73. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  74. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +1 -1
  75. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  76. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +0 -1
  77. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  78. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +20 -34
  79. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  80. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +180 -44
  81. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  82. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +1 -1
  83. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  84. package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +234 -0
  85. package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -0
  86. package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js +195 -0
  87. package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +1 -0
  88. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +4 -16
  89. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  90. package/lib/commonjs/components/Message/hooks/useMessageActions.js +36 -72
  91. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  92. package/lib/commonjs/components/Message/hooks/useMessageData.js +38 -0
  93. package/lib/commonjs/components/Message/hooks/useMessageData.js.map +1 -0
  94. package/lib/commonjs/components/Message/hooks/useProcessReactions.js +3 -3
  95. package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
  96. package/lib/commonjs/components/Message/utils/messageActions.js +4 -6
  97. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  98. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +1 -1
  99. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  100. package/lib/commonjs/components/MessageInput/MessageInput.js +1 -2
  101. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  102. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +1 -0
  103. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  104. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +1 -2
  105. package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
  106. package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +42 -60
  107. package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
  108. package/lib/commonjs/components/MessageList/MessageList.js +1 -3
  109. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  110. package/lib/commonjs/components/MessageMenu/MessageActionList.js +35 -0
  111. package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -0
  112. package/lib/commonjs/components/MessageMenu/MessageActionListItem.js +60 -0
  113. package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +1 -0
  114. package/lib/commonjs/components/MessageMenu/MessageMenu.js +70 -0
  115. package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +1 -0
  116. package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +81 -0
  117. package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -0
  118. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +171 -0
  119. package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -0
  120. package/lib/commonjs/components/{MessageOverlay/OverlayReactionsAvatar.js → MessageMenu/MessageUserReactionsAvatar.js} +5 -6
  121. package/lib/commonjs/components/MessageMenu/MessageUserReactionsAvatar.js.map +1 -0
  122. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +110 -0
  123. package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -0
  124. package/lib/commonjs/components/MessageMenu/ReactionButton.js +59 -0
  125. package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +1 -0
  126. package/lib/commonjs/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.js +2 -0
  127. package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -0
  128. package/lib/commonjs/components/ProgressControl/ProgressControl.js +21 -28
  129. package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
  130. package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +22 -27
  131. package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
  132. package/lib/commonjs/components/Reply/Reply.js +6 -2
  133. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  134. package/lib/commonjs/components/UIComponents/BottomSheetModal.js +152 -0
  135. package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -0
  136. package/lib/commonjs/components/{ImageBackground.js → UIComponents/ImageBackground.js} +1 -1
  137. package/lib/commonjs/components/UIComponents/ImageBackground.js.map +1 -0
  138. package/lib/{module/components/Spinner → commonjs/components/UIComponents}/Spinner.js +1 -1
  139. package/lib/commonjs/components/UIComponents/Spinner.js.map +1 -0
  140. package/lib/commonjs/components/UIComponents/index.js +37 -0
  141. package/lib/commonjs/components/UIComponents/index.js.map +1 -0
  142. package/lib/commonjs/components/docs/data.js.map +1 -1
  143. package/lib/commonjs/components/index.js +56 -45
  144. package/lib/commonjs/components/index.js.map +1 -1
  145. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +1 -13
  146. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  147. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -11
  148. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  149. package/lib/commonjs/contexts/channelContext/ChannelContext.js +1 -11
  150. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  151. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +1 -11
  152. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  153. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +1 -11
  154. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  155. package/lib/commonjs/contexts/chatConfigContext/ChatConfigContext.js +33 -0
  156. package/lib/commonjs/contexts/chatConfigContext/ChatConfigContext.js.map +1 -0
  157. package/lib/commonjs/contexts/chatContext/ChatContext.js +1 -11
  158. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  159. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +1 -11
  160. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  161. package/lib/commonjs/contexts/index.js +11 -11
  162. package/lib/commonjs/contexts/index.js.map +1 -1
  163. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +1 -11
  164. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  165. package/lib/commonjs/contexts/messageContext/MessageContext.js +1 -11
  166. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  167. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +4 -14
  168. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  169. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +1 -1
  170. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  171. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +1 -11
  172. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  173. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -14
  174. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  175. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +18 -54
  176. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  177. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +1 -11
  178. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  179. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +1 -11
  180. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  181. package/lib/commonjs/contexts/themeContext/utils/theme.js +68 -50
  182. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  183. package/lib/commonjs/contexts/threadContext/ThreadContext.js +1 -11
  184. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  185. package/lib/commonjs/contexts/translationContext/TranslationContext.js +1 -11
  186. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  187. package/lib/commonjs/contexts/typingContext/TypingContext.js +1 -11
  188. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  189. package/lib/commonjs/hooks/useTranslatedMessage.js +1 -4
  190. package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
  191. package/lib/commonjs/icons/PinHeader.js +17 -6
  192. package/lib/commonjs/icons/PinHeader.js.map +1 -1
  193. package/lib/commonjs/index.js +4 -23
  194. package/lib/commonjs/index.js.map +1 -1
  195. package/lib/commonjs/mock-builders/DB/mock.js +79 -82
  196. package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
  197. package/lib/commonjs/native.js +36 -25
  198. package/lib/commonjs/native.js.map +1 -1
  199. package/lib/commonjs/store/SqliteClient.js +179 -0
  200. package/lib/commonjs/store/SqliteClient.js.map +1 -0
  201. package/lib/commonjs/store/apis/addPendingTask.js +5 -5
  202. package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
  203. package/lib/commonjs/store/apis/deleteChannel.js +3 -3
  204. package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
  205. package/lib/commonjs/store/apis/deleteMember.js +3 -3
  206. package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
  207. package/lib/commonjs/store/apis/deleteMessage.js +3 -3
  208. package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
  209. package/lib/commonjs/store/apis/deleteMessagesForChannel.js +3 -3
  210. package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
  211. package/lib/commonjs/store/apis/deletePendingTask.js +3 -3
  212. package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
  213. package/lib/commonjs/store/apis/deleteReaction.js +3 -3
  214. package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
  215. package/lib/commonjs/store/apis/deleteReactions.js +2 -2
  216. package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
  217. package/lib/commonjs/store/apis/getAllChannelIds.js +2 -2
  218. package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
  219. package/lib/commonjs/store/apis/getAppSettings.js +3 -3
  220. package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
  221. package/lib/commonjs/store/apis/getChannelMessages.js +2 -2
  222. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  223. package/lib/commonjs/store/apis/getChannels.js +2 -2
  224. package/lib/commonjs/store/apis/getChannels.js.map +1 -1
  225. package/lib/commonjs/store/apis/getChannelsForFilterSort.js +2 -2
  226. package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
  227. package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -3
  228. package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
  229. package/lib/commonjs/store/apis/getMembers.js +2 -2
  230. package/lib/commonjs/store/apis/getMembers.js.map +1 -1
  231. package/lib/commonjs/store/apis/getPendingTasks.js +3 -3
  232. package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
  233. package/lib/commonjs/store/apis/getReactions.js +2 -2
  234. package/lib/commonjs/store/apis/getReactions.js.map +1 -1
  235. package/lib/commonjs/store/apis/getReactionsforFilterSort.js +6 -3
  236. package/lib/commonjs/store/apis/getReactionsforFilterSort.js.map +1 -1
  237. package/lib/commonjs/store/apis/getReads.js +2 -2
  238. package/lib/commonjs/store/apis/getReads.js.map +1 -1
  239. package/lib/commonjs/store/apis/insertReaction.js +3 -3
  240. package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
  241. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
  242. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  243. package/lib/commonjs/store/apis/queries/selectChannels.js +3 -3
  244. package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
  245. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -3
  246. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
  247. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -3
  248. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  249. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -3
  250. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  251. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -3
  252. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
  253. package/lib/commonjs/store/apis/updateMessage.js +4 -4
  254. package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
  255. package/lib/commonjs/store/apis/updateReaction.js +3 -3
  256. package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
  257. package/lib/commonjs/store/apis/upsertAppSettings.js +3 -3
  258. package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
  259. package/lib/commonjs/store/apis/upsertChannelData.js +3 -3
  260. package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
  261. package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +2 -2
  262. package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -1
  263. package/lib/commonjs/store/apis/upsertChannels.js +3 -3
  264. package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
  265. package/lib/commonjs/store/apis/upsertCidsForQuery.js +3 -3
  266. package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
  267. package/lib/commonjs/store/apis/upsertMembers.js +3 -3
  268. package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
  269. package/lib/commonjs/store/apis/upsertMessages.js +3 -3
  270. package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
  271. package/lib/commonjs/store/apis/upsertReads.js +3 -3
  272. package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
  273. package/lib/commonjs/store/apis/upsertUserSyncStatus.js +3 -3
  274. package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
  275. package/lib/commonjs/utils/DBSyncManager.js +4 -4
  276. package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
  277. package/lib/commonjs/utils/getResizedImageUrl.js +5 -3
  278. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
  279. package/lib/commonjs/version.json +1 -1
  280. package/lib/module/components/Attachment/Attachment.js +1 -1
  281. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  282. package/lib/module/components/Attachment/Card.js +6 -6
  283. package/lib/module/components/Attachment/Card.js.map +1 -1
  284. package/lib/module/components/Attachment/FileAttachment.js +5 -5
  285. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  286. package/lib/module/components/Attachment/FileAttachmentGroup.js +1 -1
  287. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  288. package/lib/module/components/Attachment/Gallery.js +29 -22
  289. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  290. package/lib/module/components/Attachment/Giphy.js +8 -8
  291. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  292. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js +7 -0
  293. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  294. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +3 -1
  295. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  296. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +3 -0
  297. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  298. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +4 -0
  299. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  300. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -0
  301. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  302. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +2 -0
  303. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  304. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +3 -3
  305. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  306. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -2
  307. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  308. package/lib/module/components/Avatar/Avatar.js +4 -0
  309. package/lib/module/components/Avatar/Avatar.js.map +1 -1
  310. package/lib/module/components/Avatar/GroupAvatar.js +4 -0
  311. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  312. package/lib/module/components/Channel/Channel.js +298 -429
  313. package/lib/module/components/Channel/Channel.js.map +1 -1
  314. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +0 -2
  315. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  316. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -2
  317. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  318. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +26 -10
  319. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  320. package/lib/module/components/ChannelList/ChannelList.js +0 -2
  321. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  322. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -1
  323. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  324. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +8 -18
  325. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  326. package/lib/module/components/Chat/Chat.js +2 -9
  327. package/lib/module/components/Chat/Chat.js.map +1 -1
  328. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +3 -3
  329. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  330. package/lib/module/components/Chat/hooks/useCreateChatContext.js +0 -2
  331. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  332. package/lib/module/components/Chat/hooks/useIsOnline.js +16 -13
  333. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  334. package/lib/module/components/ImageGallery/ImageGallery.js +58 -96
  335. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  336. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +3 -3
  337. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  338. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +92 -90
  339. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  340. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +39 -39
  341. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  342. package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  343. package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js +221 -221
  344. package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  345. package/lib/module/components/Indicators/LoadingIndicator.js +1 -1
  346. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  347. package/lib/module/components/Message/Message.js +123 -173
  348. package/lib/module/components/Message/Message.js.map +1 -1
  349. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  350. package/lib/module/components/Message/MessageSimple/MessageContent.js +40 -144
  351. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  352. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +1 -1
  353. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  354. package/lib/module/components/Message/MessageSimple/MessageFooter.js +0 -1
  355. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  356. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +20 -34
  357. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  358. package/lib/module/components/Message/MessageSimple/MessageSimple.js +180 -44
  359. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  360. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +1 -1
  361. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  362. package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js +234 -0
  363. package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -0
  364. package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js +195 -0
  365. package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +1 -0
  366. package/lib/module/components/Message/hooks/useCreateMessageContext.js +4 -16
  367. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  368. package/lib/module/components/Message/hooks/useMessageActions.js +36 -72
  369. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  370. package/lib/module/components/Message/hooks/useMessageData.js +38 -0
  371. package/lib/module/components/Message/hooks/useMessageData.js.map +1 -0
  372. package/lib/module/components/Message/hooks/useProcessReactions.js +3 -3
  373. package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
  374. package/lib/module/components/Message/utils/messageActions.js +4 -6
  375. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  376. package/lib/module/components/MessageInput/FileUploadPreview.js +1 -1
  377. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  378. package/lib/module/components/MessageInput/MessageInput.js +1 -2
  379. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  380. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +1 -0
  381. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
  382. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js +1 -2
  383. package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.js.map +1 -1
  384. package/lib/module/components/MessageInput/hooks/useAudioController.js +42 -60
  385. package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
  386. package/lib/module/components/MessageList/MessageList.js +1 -3
  387. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  388. package/lib/module/components/MessageMenu/MessageActionList.js +35 -0
  389. package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -0
  390. package/lib/module/components/MessageMenu/MessageActionListItem.js +60 -0
  391. package/lib/module/components/MessageMenu/MessageActionListItem.js.map +1 -0
  392. package/lib/module/components/MessageMenu/MessageMenu.js +70 -0
  393. package/lib/module/components/MessageMenu/MessageMenu.js.map +1 -0
  394. package/lib/module/components/MessageMenu/MessageReactionPicker.js +81 -0
  395. package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -0
  396. package/lib/module/components/MessageMenu/MessageUserReactions.js +171 -0
  397. package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -0
  398. package/lib/module/components/{MessageOverlay/OverlayReactionsAvatar.js → MessageMenu/MessageUserReactionsAvatar.js} +5 -6
  399. package/lib/module/components/MessageMenu/MessageUserReactionsAvatar.js.map +1 -0
  400. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +110 -0
  401. package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -0
  402. package/lib/module/components/MessageMenu/ReactionButton.js +59 -0
  403. package/lib/module/components/MessageMenu/ReactionButton.js.map +1 -0
  404. package/lib/module/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.js +2 -0
  405. package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -0
  406. package/lib/module/components/ProgressControl/ProgressControl.js +21 -28
  407. package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
  408. package/lib/module/components/ProgressControl/WaveProgressBar.js +22 -27
  409. package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
  410. package/lib/module/components/Reply/Reply.js +6 -2
  411. package/lib/module/components/Reply/Reply.js.map +1 -1
  412. package/lib/module/components/UIComponents/BottomSheetModal.js +152 -0
  413. package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -0
  414. package/lib/module/components/{ImageBackground.js → UIComponents/ImageBackground.js} +1 -1
  415. package/lib/module/components/UIComponents/ImageBackground.js.map +1 -0
  416. package/lib/{commonjs/components/Spinner → module/components/UIComponents}/Spinner.js +1 -1
  417. package/lib/module/components/UIComponents/Spinner.js.map +1 -0
  418. package/lib/module/components/UIComponents/index.js +37 -0
  419. package/lib/module/components/UIComponents/index.js.map +1 -0
  420. package/lib/module/components/docs/data.js.map +1 -1
  421. package/lib/module/components/index.js +56 -45
  422. package/lib/module/components/index.js.map +1 -1
  423. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +1 -13
  424. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  425. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -11
  426. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  427. package/lib/module/contexts/channelContext/ChannelContext.js +1 -11
  428. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  429. package/lib/module/contexts/channelsContext/ChannelsContext.js +1 -11
  430. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  431. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +1 -11
  432. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  433. package/lib/module/contexts/chatConfigContext/ChatConfigContext.js +33 -0
  434. package/lib/module/contexts/chatConfigContext/ChatConfigContext.js.map +1 -0
  435. package/lib/module/contexts/chatContext/ChatContext.js +1 -11
  436. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  437. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +1 -11
  438. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  439. package/lib/module/contexts/index.js +11 -11
  440. package/lib/module/contexts/index.js.map +1 -1
  441. package/lib/module/contexts/keyboardContext/KeyboardContext.js +1 -11
  442. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  443. package/lib/module/contexts/messageContext/MessageContext.js +1 -11
  444. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  445. package/lib/module/contexts/messageInputContext/MessageInputContext.js +4 -14
  446. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  447. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +1 -1
  448. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  449. package/lib/module/contexts/messagesContext/MessagesContext.js +1 -11
  450. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  451. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -14
  452. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  453. package/lib/module/contexts/overlayContext/OverlayProvider.js +18 -54
  454. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  455. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +1 -11
  456. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  457. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +1 -11
  458. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  459. package/lib/module/contexts/themeContext/utils/theme.js +68 -50
  460. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  461. package/lib/module/contexts/threadContext/ThreadContext.js +1 -11
  462. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  463. package/lib/module/contexts/translationContext/TranslationContext.js +1 -11
  464. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  465. package/lib/module/contexts/typingContext/TypingContext.js +1 -11
  466. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  467. package/lib/module/hooks/useTranslatedMessage.js +1 -4
  468. package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
  469. package/lib/module/icons/PinHeader.js +17 -6
  470. package/lib/module/icons/PinHeader.js.map +1 -1
  471. package/lib/module/index.js +4 -23
  472. package/lib/module/index.js.map +1 -1
  473. package/lib/module/mock-builders/DB/mock.js +79 -82
  474. package/lib/module/mock-builders/DB/mock.js.map +1 -1
  475. package/lib/module/native.js +36 -25
  476. package/lib/module/native.js.map +1 -1
  477. package/lib/module/store/SqliteClient.js +179 -0
  478. package/lib/module/store/SqliteClient.js.map +1 -0
  479. package/lib/module/store/apis/addPendingTask.js +5 -5
  480. package/lib/module/store/apis/addPendingTask.js.map +1 -1
  481. package/lib/module/store/apis/deleteChannel.js +3 -3
  482. package/lib/module/store/apis/deleteChannel.js.map +1 -1
  483. package/lib/module/store/apis/deleteMember.js +3 -3
  484. package/lib/module/store/apis/deleteMember.js.map +1 -1
  485. package/lib/module/store/apis/deleteMessage.js +3 -3
  486. package/lib/module/store/apis/deleteMessage.js.map +1 -1
  487. package/lib/module/store/apis/deleteMessagesForChannel.js +3 -3
  488. package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
  489. package/lib/module/store/apis/deletePendingTask.js +3 -3
  490. package/lib/module/store/apis/deletePendingTask.js.map +1 -1
  491. package/lib/module/store/apis/deleteReaction.js +3 -3
  492. package/lib/module/store/apis/deleteReaction.js.map +1 -1
  493. package/lib/module/store/apis/deleteReactions.js +2 -2
  494. package/lib/module/store/apis/deleteReactions.js.map +1 -1
  495. package/lib/module/store/apis/getAllChannelIds.js +2 -2
  496. package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
  497. package/lib/module/store/apis/getAppSettings.js +3 -3
  498. package/lib/module/store/apis/getAppSettings.js.map +1 -1
  499. package/lib/module/store/apis/getChannelMessages.js +2 -2
  500. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  501. package/lib/module/store/apis/getChannels.js +2 -2
  502. package/lib/module/store/apis/getChannels.js.map +1 -1
  503. package/lib/module/store/apis/getChannelsForFilterSort.js +2 -2
  504. package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
  505. package/lib/module/store/apis/getLastSyncedAt.js +3 -3
  506. package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
  507. package/lib/module/store/apis/getMembers.js +2 -2
  508. package/lib/module/store/apis/getMembers.js.map +1 -1
  509. package/lib/module/store/apis/getPendingTasks.js +3 -3
  510. package/lib/module/store/apis/getPendingTasks.js.map +1 -1
  511. package/lib/module/store/apis/getReactions.js +2 -2
  512. package/lib/module/store/apis/getReactions.js.map +1 -1
  513. package/lib/module/store/apis/getReactionsforFilterSort.js +6 -3
  514. package/lib/module/store/apis/getReactionsforFilterSort.js.map +1 -1
  515. package/lib/module/store/apis/getReads.js +2 -2
  516. package/lib/module/store/apis/getReads.js.map +1 -1
  517. package/lib/module/store/apis/insertReaction.js +3 -3
  518. package/lib/module/store/apis/insertReaction.js.map +1 -1
  519. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -3
  520. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  521. package/lib/module/store/apis/queries/selectChannels.js +3 -3
  522. package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
  523. package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -3
  524. package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
  525. package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -3
  526. package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  527. package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -3
  528. package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  529. package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -3
  530. package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
  531. package/lib/module/store/apis/updateMessage.js +4 -4
  532. package/lib/module/store/apis/updateMessage.js.map +1 -1
  533. package/lib/module/store/apis/updateReaction.js +3 -3
  534. package/lib/module/store/apis/updateReaction.js.map +1 -1
  535. package/lib/module/store/apis/upsertAppSettings.js +3 -3
  536. package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
  537. package/lib/module/store/apis/upsertChannelData.js +3 -3
  538. package/lib/module/store/apis/upsertChannelData.js.map +1 -1
  539. package/lib/module/store/apis/upsertChannelDataFromChannel.js +2 -2
  540. package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -1
  541. package/lib/module/store/apis/upsertChannels.js +3 -3
  542. package/lib/module/store/apis/upsertChannels.js.map +1 -1
  543. package/lib/module/store/apis/upsertCidsForQuery.js +3 -3
  544. package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
  545. package/lib/module/store/apis/upsertMembers.js +3 -3
  546. package/lib/module/store/apis/upsertMembers.js.map +1 -1
  547. package/lib/module/store/apis/upsertMessages.js +3 -3
  548. package/lib/module/store/apis/upsertMessages.js.map +1 -1
  549. package/lib/module/store/apis/upsertReads.js +3 -3
  550. package/lib/module/store/apis/upsertReads.js.map +1 -1
  551. package/lib/module/store/apis/upsertUserSyncStatus.js +3 -3
  552. package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
  553. package/lib/module/utils/DBSyncManager.js +4 -4
  554. package/lib/module/utils/DBSyncManager.js.map +1 -1
  555. package/lib/module/utils/getResizedImageUrl.js +5 -3
  556. package/lib/module/utils/getResizedImageUrl.js.map +1 -1
  557. package/lib/module/version.json +1 -1
  558. package/lib/typescript/components/Attachment/Card.d.ts +2 -2
  559. package/lib/typescript/components/Attachment/Card.d.ts.map +1 -1
  560. package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
  561. package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
  562. package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
  563. package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
  564. package/lib/typescript/components/Attachment/Giphy.d.ts +1 -1
  565. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +2 -1
  566. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -1
  567. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +2 -1
  568. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -1
  569. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +2 -1
  570. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -1
  571. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +2 -1
  572. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -1
  573. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +4 -2
  574. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
  575. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +2 -1
  576. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts.map +1 -1
  577. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts +2 -2
  578. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts.map +1 -1
  579. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
  580. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
  581. package/lib/typescript/components/Avatar/Avatar.d.ts.map +1 -1
  582. package/lib/typescript/components/Avatar/GroupAvatar.d.ts.map +1 -1
  583. package/lib/typescript/components/Channel/Channel.d.ts +1 -1
  584. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  585. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  586. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
  587. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
  588. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  589. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  590. package/lib/typescript/components/ChannelList/ChannelList.d.ts +0 -12
  591. package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
  592. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +1 -2
  593. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -1
  594. package/lib/typescript/components/Chat/Chat.d.ts +1 -1
  595. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
  596. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
  597. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  598. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
  599. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +2 -2
  600. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
  601. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +5 -5
  602. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts.map +1 -1
  603. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +5 -5
  604. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -1
  605. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +3 -3
  606. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
  607. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +3 -3
  608. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
  609. package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +2 -2
  610. package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -1
  611. package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts +4 -5
  612. package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -1
  613. package/lib/typescript/components/Message/Message.d.ts +4 -40
  614. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  615. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts.map +1 -1
  616. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +11 -5
  617. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
  618. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +2 -6
  619. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts.map +1 -1
  620. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
  621. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
  622. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +1 -2
  623. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
  624. package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts +12 -0
  625. package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts.map +1 -0
  626. package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts +20 -0
  627. package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts.map +1 -0
  628. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  629. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
  630. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +5 -6
  631. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
  632. package/lib/typescript/components/Message/hooks/useMessageData.d.ts +12 -0
  633. package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +1 -0
  634. package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts +11 -3
  635. package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
  636. package/lib/typescript/components/Message/utils/messageActions.d.ts +6 -14
  637. package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
  638. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
  639. package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
  640. package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
  641. package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +16 -0
  642. package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +1 -0
  643. package/lib/typescript/components/{MessageOverlay → MessageMenu}/MessageActionListItem.d.ts +2 -8
  644. package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +1 -0
  645. package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +32 -0
  646. package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +1 -0
  647. package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts +30 -0
  648. package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -0
  649. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +21 -0
  650. package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -0
  651. package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts +11 -0
  652. package/lib/typescript/components/MessageMenu/MessageUserReactionsAvatar.d.ts.map +1 -0
  653. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +16 -0
  654. package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -0
  655. package/lib/typescript/components/MessageMenu/ReactionButton.d.ts +25 -0
  656. package/lib/typescript/components/MessageMenu/ReactionButton.d.ts.map +1 -0
  657. package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -0
  658. package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
  659. package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -1
  660. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  661. package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts +21 -0
  662. package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -0
  663. package/lib/typescript/components/UIComponents/ImageBackground.d.ts.map +1 -0
  664. package/lib/typescript/components/UIComponents/Spinner.d.ts.map +1 -0
  665. package/lib/typescript/components/UIComponents/index.d.ts +4 -0
  666. package/lib/typescript/components/UIComponents/index.d.ts.map +1 -0
  667. package/lib/typescript/components/index.d.ts +11 -10
  668. package/lib/typescript/components/index.d.ts.map +1 -1
  669. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +0 -11
  670. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +1 -1
  671. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +1 -11
  672. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
  673. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -25
  674. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
  675. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -11
  676. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
  677. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +1 -11
  678. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
  679. package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts +16 -0
  680. package/lib/typescript/contexts/chatConfigContext/ChatConfigContext.d.ts.map +1 -0
  681. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +1 -15
  682. package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
  683. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +0 -10
  684. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
  685. package/lib/typescript/contexts/index.d.ts +1 -1
  686. package/lib/typescript/contexts/index.d.ts.map +1 -1
  687. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +0 -11
  688. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts.map +1 -1
  689. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +21 -56
  690. package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
  691. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +2 -12
  692. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  693. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  694. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +77 -37
  695. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  696. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +2 -27
  697. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
  698. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
  699. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +1 -11
  700. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
  701. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +1 -11
  702. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
  703. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +61 -44
  704. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  705. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +1 -11
  706. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
  707. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +0 -11
  708. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
  709. package/lib/typescript/contexts/typingContext/TypingContext.d.ts +1 -11
  710. package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -1
  711. package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
  712. package/lib/typescript/icons/PinHeader.d.ts +5 -1
  713. package/lib/typescript/icons/PinHeader.d.ts.map +1 -1
  714. package/lib/typescript/index.d.ts +2 -3
  715. package/lib/typescript/index.d.ts.map +1 -1
  716. package/lib/typescript/native.d.ts +9 -11
  717. package/lib/typescript/native.d.ts.map +1 -1
  718. package/lib/typescript/store/{QuickSqliteClient.d.ts → SqliteClient.d.ts} +6 -5
  719. package/lib/typescript/store/SqliteClient.d.ts.map +1 -0
  720. package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
  721. package/lib/typescript/types/types.d.ts +6 -0
  722. package/lib/typescript/types/types.d.ts.map +1 -1
  723. package/lib/typescript/utils/getResizedImageUrl.d.ts +3 -2
  724. package/lib/typescript/utils/getResizedImageUrl.d.ts.map +1 -1
  725. package/package.json +11 -11
  726. package/src/__tests__/offline-support/offline-feature.js +5 -5
  727. package/src/__tests__/offline-support/optimistic-update.js +4 -4
  728. package/src/components/Attachment/Attachment.tsx +2 -2
  729. package/src/components/Attachment/Card.tsx +10 -10
  730. package/src/components/Attachment/FileAttachment.tsx +8 -16
  731. package/src/components/Attachment/FileAttachmentGroup.tsx +2 -2
  732. package/src/components/Attachment/Gallery.tsx +20 -17
  733. package/src/components/Attachment/Giphy.tsx +14 -14
  734. package/src/components/Attachment/__tests__/Attachment.test.js +4 -2
  735. package/src/components/Attachment/__tests__/Gallery.test.js +0 -2
  736. package/src/components/Attachment/utils/buildGallery/buildGallery.ts +10 -1
  737. package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +4 -1
  738. package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +5 -1
  739. package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +6 -1
  740. package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +13 -6
  741. package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +5 -1
  742. package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx +2 -2
  743. package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +1 -1
  744. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
  745. package/src/components/Avatar/Avatar.tsx +3 -0
  746. package/src/components/Avatar/GroupAvatar.tsx +4 -0
  747. package/src/components/Channel/Channel.tsx +56 -132
  748. package/src/components/Channel/__tests__/ownCapabilities.test.js +57 -57
  749. package/src/components/Channel/hooks/useCreateChannelContext.ts +0 -2
  750. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -6
  751. package/src/components/Channel/hooks/useCreateMessagesContext.ts +26 -10
  752. package/src/components/ChannelList/ChannelList.tsx +0 -17
  753. package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
  754. package/src/components/ChannelList/__tests__/ChannelList.test.js +5 -5
  755. package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +2 -11
  756. package/src/components/Chat/Chat.tsx +3 -9
  757. package/src/components/Chat/__tests__/Chat.test.js +184 -179
  758. package/src/components/Chat/hooks/handleEventToSyncDB.ts +3 -3
  759. package/src/components/Chat/hooks/useCreateChatContext.ts +0 -2
  760. package/src/components/Chat/hooks/useIsOnline.ts +13 -10
  761. package/src/components/ImageGallery/ImageGallery.tsx +71 -121
  762. package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +0 -11
  763. package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +3 -4
  764. package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +3 -5
  765. package/src/components/ImageGallery/__tests__/ImageGalleryGrid.test.tsx +1 -1
  766. package/src/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.tsx +1 -1
  767. package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +3 -5
  768. package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +0 -3
  769. package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +5 -5
  770. package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +9 -9
  771. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +97 -86
  772. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +46 -44
  773. package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +2 -1
  774. package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +3 -4
  775. package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx +481 -466
  776. package/src/components/Indicators/LoadingIndicator.tsx +1 -1
  777. package/src/components/Message/Message.tsx +112 -202
  778. package/src/components/Message/MessageSimple/MessageAvatar.tsx +1 -0
  779. package/src/components/Message/MessageSimple/MessageContent.tsx +28 -155
  780. package/src/components/Message/MessageSimple/MessageDeleted.tsx +1 -1
  781. package/src/components/Message/MessageSimple/MessageFooter.tsx +1 -1
  782. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +21 -66
  783. package/src/components/Message/MessageSimple/MessageSimple.tsx +247 -55
  784. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +3 -4
  785. package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx +295 -0
  786. package/src/components/Message/MessageSimple/ReactionList/ReactionListTop.tsx +271 -0
  787. package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +1 -2
  788. package/src/components/Message/MessageSimple/__tests__/MessageSimple.test.js +208 -0
  789. package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +3 -3
  790. package/src/components/Message/MessageSimple/__tests__/ReactionListBottom.test.js +166 -0
  791. package/src/components/Message/MessageSimple/__tests__/ReactionListTop.test.js +92 -0
  792. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +23 -19
  793. package/src/components/Message/hooks/useCreateMessageContext.ts +4 -16
  794. package/src/components/Message/hooks/useMessageActions.tsx +48 -68
  795. package/src/components/Message/hooks/useMessageData.ts +59 -0
  796. package/src/components/Message/hooks/useProcessReactions.ts +17 -10
  797. package/src/components/Message/utils/messageActions.ts +10 -20
  798. package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
  799. package/src/components/MessageInput/MessageInput.tsx +0 -1
  800. package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +1 -4
  801. package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +1 -4
  802. package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +3 -5
  803. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +7 -1
  804. package/src/components/MessageInput/components/AudioRecorder/AudioRecordingLockIndicator.tsx +0 -1
  805. package/src/components/MessageInput/hooks/useAudioController.tsx +0 -3
  806. package/src/components/MessageList/MessageList.tsx +1 -1
  807. package/src/components/MessageList/__tests__/MessageList.test.js +0 -21
  808. package/src/components/MessageMenu/MessageActionList.tsx +49 -0
  809. package/src/components/MessageMenu/MessageActionListItem.tsx +86 -0
  810. package/src/components/MessageMenu/MessageMenu.tsx +123 -0
  811. package/src/components/MessageMenu/MessageReactionPicker.tsx +122 -0
  812. package/src/components/MessageMenu/MessageUserReactions.tsx +209 -0
  813. package/src/components/{MessageOverlay/OverlayReactionsAvatar.tsx → MessageMenu/MessageUserReactionsAvatar.tsx} +6 -6
  814. package/src/components/MessageMenu/MessageUserReactionsItem.tsx +130 -0
  815. package/src/components/MessageMenu/ReactionButton.tsx +72 -0
  816. package/src/components/MessageMenu/__tests__/MessageActionList.test.tsx +48 -0
  817. package/src/components/MessageMenu/__tests__/MessageActionListItem.test.tsx +48 -0
  818. package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +101 -0
  819. package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +186 -0
  820. package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +35 -0
  821. package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +81 -0
  822. package/src/components/MessageMenu/__tests__/ReactionButton.test.tsx +77 -0
  823. package/src/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.ts +2 -0
  824. package/src/components/ProgressControl/ProgressControl.tsx +28 -38
  825. package/src/components/ProgressControl/WaveProgressBar.tsx +29 -37
  826. package/src/components/Reply/Reply.tsx +5 -2
  827. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +908 -801
  828. package/src/components/UIComponents/BottomSheetModal.tsx +170 -0
  829. package/src/components/UIComponents/index.ts +3 -0
  830. package/src/components/docs/data.js +13 -27
  831. package/src/components/index.ts +11 -10
  832. package/src/contexts/__tests__/index.test.tsx +0 -5
  833. package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +0 -27
  834. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +1 -29
  835. package/src/contexts/channelContext/ChannelContext.tsx +2 -46
  836. package/src/contexts/channelsContext/ChannelsContext.tsx +1 -28
  837. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +1 -30
  838. package/src/contexts/chatConfigContext/ChatConfigContext.tsx +33 -0
  839. package/src/contexts/chatContext/ChatContext.tsx +1 -30
  840. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +0 -29
  841. package/src/contexts/index.ts +1 -1
  842. package/src/contexts/keyboardContext/KeyboardContext.tsx +0 -30
  843. package/src/contexts/messageContext/MessageContext.tsx +22 -75
  844. package/src/contexts/messageInputContext/MessageInputContext.tsx +11 -37
  845. package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +2 -3
  846. package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +1 -2
  847. package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +1 -2
  848. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +1 -5
  849. package/src/contexts/messagesContext/MessagesContext.tsx +83 -56
  850. package/src/contexts/overlayContext/OverlayContext.tsx +2 -55
  851. package/src/contexts/overlayContext/OverlayProvider.tsx +23 -64
  852. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +1 -30
  853. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +1 -30
  854. package/src/contexts/themeContext/utils/theme.ts +126 -93
  855. package/src/contexts/threadContext/ThreadContext.tsx +1 -28
  856. package/src/contexts/translationContext/TranslationContext.tsx +0 -29
  857. package/src/contexts/typingContext/TypingContext.tsx +1 -28
  858. package/src/hooks/__tests__/useTranslatedMessage.test.tsx +3 -9
  859. package/src/hooks/useTranslatedMessage.ts +1 -4
  860. package/src/icons/PinHeader.tsx +13 -7
  861. package/src/index.ts +2 -3
  862. package/src/mock-builders/DB/mock.ts +82 -84
  863. package/src/native.ts +15 -26
  864. package/src/store/{QuickSqliteClient.ts → SqliteClient.ts} +74 -54
  865. package/src/store/apis/addPendingTask.ts +5 -5
  866. package/src/store/apis/deleteChannel.ts +3 -3
  867. package/src/store/apis/deleteMember.ts +3 -3
  868. package/src/store/apis/deleteMessage.ts +3 -3
  869. package/src/store/apis/deleteMessagesForChannel.ts +3 -3
  870. package/src/store/apis/deletePendingTask.ts +3 -3
  871. package/src/store/apis/deleteReaction.ts +3 -3
  872. package/src/store/apis/deleteReactions.ts +2 -2
  873. package/src/store/apis/getAllChannelIds.ts +2 -2
  874. package/src/store/apis/getAppSettings.ts +3 -3
  875. package/src/store/apis/getChannelMessages.ts +2 -2
  876. package/src/store/apis/getChannels.ts +2 -2
  877. package/src/store/apis/getChannelsForFilterSort.ts +2 -2
  878. package/src/store/apis/getLastSyncedAt.ts +3 -3
  879. package/src/store/apis/getMembers.ts +2 -2
  880. package/src/store/apis/getPendingTasks.ts +3 -3
  881. package/src/store/apis/getReactions.ts +2 -2
  882. package/src/store/apis/getReactionsforFilterSort.ts +5 -3
  883. package/src/store/apis/getReads.ts +2 -2
  884. package/src/store/apis/insertReaction.ts +3 -3
  885. package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +3 -3
  886. package/src/store/apis/queries/selectChannels.ts +3 -3
  887. package/src/store/apis/queries/selectMembersForChannels.ts +3 -3
  888. package/src/store/apis/queries/selectMessagesForChannels.ts +4 -4
  889. package/src/store/apis/queries/selectReactionsForMessages.ts +3 -3
  890. package/src/store/apis/queries/selectReadsForChannels.ts +4 -4
  891. package/src/store/apis/updateMessage.ts +4 -4
  892. package/src/store/apis/updateReaction.ts +3 -3
  893. package/src/store/apis/upsertAppSettings.ts +3 -3
  894. package/src/store/apis/upsertChannelData.ts +3 -3
  895. package/src/store/apis/upsertChannelDataFromChannel.ts +2 -2
  896. package/src/store/apis/upsertChannels.ts +3 -3
  897. package/src/store/apis/upsertCidsForQuery.ts +3 -3
  898. package/src/store/apis/upsertMembers.ts +3 -3
  899. package/src/store/apis/upsertMessages.ts +3 -3
  900. package/src/store/apis/upsertReads.ts +3 -3
  901. package/src/store/apis/upsertUserSyncStatus.ts +3 -3
  902. package/src/types/types.ts +7 -0
  903. package/src/utils/DBSyncManager.ts +4 -4
  904. package/src/utils/__tests__/getResizedImageUrl.test.ts +1 -2
  905. package/src/utils/getResizedImageUrl.ts +7 -5
  906. package/src/version.json +1 -1
  907. package/lib/commonjs/components/ImageBackground.js.map +0 -1
  908. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +0 -305
  909. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +0 -1
  910. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +0 -112
  911. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +0 -1
  912. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +0 -87
  913. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +0 -1
  914. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +0 -442
  915. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +0 -1
  916. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +0 -24
  917. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +0 -1
  918. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +0 -305
  919. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +0 -1
  920. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +0 -188
  921. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +0 -1
  922. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +0 -1
  923. package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js +0 -166
  924. package/lib/commonjs/components/MessageOverlay/OverlayReactionsItem.js.map +0 -1
  925. package/lib/commonjs/components/MessageOverlay/hooks/useFetchReactions.js.map +0 -1
  926. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +0 -34
  927. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +0 -1
  928. package/lib/commonjs/components/Spinner/Spinner.js.map +0 -1
  929. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +0 -45
  930. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +0 -1
  931. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +0 -27
  932. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +0 -1
  933. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +0 -67
  934. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +0 -1
  935. package/lib/commonjs/store/QuickSqliteClient.js +0 -158
  936. package/lib/commonjs/store/QuickSqliteClient.js.map +0 -1
  937. package/lib/commonjs/utils/StreamChatRN.js +0 -25
  938. package/lib/commonjs/utils/StreamChatRN.js.map +0 -1
  939. package/lib/module/components/ImageBackground.js.map +0 -1
  940. package/lib/module/components/Message/MessageSimple/ReactionList.js +0 -305
  941. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +0 -1
  942. package/lib/module/components/MessageOverlay/MessageActionList.js +0 -112
  943. package/lib/module/components/MessageOverlay/MessageActionList.js.map +0 -1
  944. package/lib/module/components/MessageOverlay/MessageActionListItem.js +0 -87
  945. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +0 -1
  946. package/lib/module/components/MessageOverlay/MessageOverlay.js +0 -442
  947. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +0 -1
  948. package/lib/module/components/MessageOverlay/OverlayBackdrop.js +0 -24
  949. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +0 -1
  950. package/lib/module/components/MessageOverlay/OverlayReactionList.js +0 -305
  951. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +0 -1
  952. package/lib/module/components/MessageOverlay/OverlayReactions.js +0 -188
  953. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +0 -1
  954. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +0 -1
  955. package/lib/module/components/MessageOverlay/OverlayReactionsItem.js +0 -166
  956. package/lib/module/components/MessageOverlay/OverlayReactionsItem.js.map +0 -1
  957. package/lib/module/components/MessageOverlay/hooks/useFetchReactions.js.map +0 -1
  958. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +0 -34
  959. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +0 -1
  960. package/lib/module/components/Spinner/Spinner.js.map +0 -1
  961. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +0 -45
  962. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +0 -1
  963. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +0 -27
  964. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +0 -1
  965. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +0 -67
  966. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +0 -1
  967. package/lib/module/store/QuickSqliteClient.js +0 -158
  968. package/lib/module/store/QuickSqliteClient.js.map +0 -1
  969. package/lib/module/utils/StreamChatRN.js +0 -25
  970. package/lib/module/utils/StreamChatRN.js.map +0 -1
  971. package/lib/typescript/components/ImageBackground.d.ts.map +0 -1
  972. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +0 -32
  973. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts.map +0 -1
  974. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +0 -14
  975. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts.map +0 -1
  976. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts.map +0 -1
  977. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +0 -15
  978. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +0 -1
  979. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +0 -8
  980. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts.map +0 -1
  981. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +0 -36
  982. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts.map +0 -1
  983. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +0 -29
  984. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts.map +0 -1
  985. package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +0 -11
  986. package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts.map +0 -1
  987. package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts +0 -11
  988. package/lib/typescript/components/MessageOverlay/OverlayReactionsItem.d.ts.map +0 -1
  989. package/lib/typescript/components/MessageOverlay/hooks/useFetchReactions.d.ts.map +0 -1
  990. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +0 -11
  991. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts.map +0 -1
  992. package/lib/typescript/components/Spinner/Spinner.d.ts.map +0 -1
  993. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +0 -79
  994. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +0 -1
  995. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +0 -13
  996. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts.map +0 -1
  997. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +0 -2
  998. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts.map +0 -1
  999. package/lib/typescript/store/QuickSqliteClient.d.ts.map +0 -1
  1000. package/lib/typescript/utils/StreamChatRN.d.ts +0 -23
  1001. package/lib/typescript/utils/StreamChatRN.d.ts.map +0 -1
  1002. package/src/components/Message/MessageSimple/ReactionList.tsx +0 -398
  1003. package/src/components/MessageOverlay/MessageActionList.tsx +0 -171
  1004. package/src/components/MessageOverlay/MessageActionListItem.tsx +0 -144
  1005. package/src/components/MessageOverlay/MessageOverlay.tsx +0 -627
  1006. package/src/components/MessageOverlay/OverlayBackdrop.tsx +0 -18
  1007. package/src/components/MessageOverlay/OverlayReactionList.tsx +0 -447
  1008. package/src/components/MessageOverlay/OverlayReactions.tsx +0 -250
  1009. package/src/components/MessageOverlay/OverlayReactionsItem.tsx +0 -188
  1010. package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +0 -44
  1011. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +0 -147
  1012. package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +0 -48
  1013. package/src/contexts/messageOverlayContext/hooks/useResettableState.ts +0 -22
  1014. package/src/utils/StreamChatRN.ts +0 -27
  1015. /package/lib/typescript/components/{MessageOverlay → MessageMenu}/hooks/useFetchReactions.d.ts +0 -0
  1016. /package/lib/typescript/components/{ImageBackground.d.ts → UIComponents/ImageBackground.d.ts} +0 -0
  1017. /package/lib/typescript/components/{Spinner → UIComponents}/Spinner.d.ts +0 -0
  1018. /package/src/components/{ImageBackground.tsx → UIComponents/ImageBackground.tsx} +0 -0
  1019. /package/src/components/{Spinner → UIComponents}/Spinner.tsx +0 -0
@@ -3,10 +3,9 @@ import type { ImageProps } from 'react-native';
3
3
 
4
4
  import type { AppSettingsAPIResponse, Channel, Mute, StreamChat } from 'stream-chat';
5
5
 
6
- import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
6
+ import type { DefaultStreamChatGenerics } from '../../types/types';
7
7
  import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
8
8
 
9
- import { getDisplayName } from '../utils/getDisplayName';
10
9
  import { isTestEnvironment } from '../utils/isTestEnvironment';
11
10
 
12
11
  export type ChatContextValue<
@@ -65,10 +64,6 @@ export type ChatContextValue<
65
64
  * @overrideType Channel
66
65
  */
67
66
  channel?: Channel<StreamChatGenerics>;
68
- /**
69
- * This option allows you to specify a list of CDNs that offer image resizing.
70
- */
71
- resizableCDNHosts?: string[];
72
67
  };
73
68
 
74
69
  export const ChatContext = React.createContext(DEFAULT_BASE_CONTEXT_VALUE as ChatContextValue);
@@ -99,27 +94,3 @@ export const useChatContext = <
99
94
 
100
95
  return contextValue;
101
96
  };
102
-
103
- /**
104
- * @deprecated
105
- *
106
- * This will be removed in the next major version.
107
- *
108
- * Typescript currently does not support partial inference so if ChatContext
109
- * typing is desired while using the HOC withChatContext the Props for the
110
- * wrapped component must be provided as the first generic.
111
- */
112
- export const withChatContext = <
113
- P extends UnknownType,
114
- StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
115
- >(
116
- Component: React.ComponentType<P>,
117
- ): React.ComponentType<Omit<P, keyof ChatContextValue<StreamChatGenerics>>> => {
118
- const WithChatContextComponent = (props: Omit<P, keyof ChatContextValue<StreamChatGenerics>>) => {
119
- const chatContext = useChatContext<StreamChatGenerics>();
120
-
121
- return <Component {...(props as P)} {...chatContext} />;
122
- };
123
- WithChatContextComponent.displayName = `WithChatContext${getDisplayName(Component)}`;
124
- return WithChatContextComponent;
125
- };
@@ -4,7 +4,6 @@ import type { MessageType } from '../../components/MessageList/hooks/useMessageL
4
4
  import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
5
5
  import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
6
6
 
7
- import { getDisplayName } from '../utils/getDisplayName';
8
7
  import { isTestEnvironment } from '../utils/isTestEnvironment';
9
8
 
10
9
  type SelectedMessage = {
@@ -64,31 +63,3 @@ export const useImageGalleryContext = <
64
63
 
65
64
  return contextValue as ImageGalleryContextValue<StreamChatGenerics>;
66
65
  };
67
-
68
- /**
69
- * @deprecated
70
- *
71
- * This will be removed in the next major version.
72
- *
73
- * Typescript currently does not support partial inference so if ChatContext
74
- * typing is desired while using the HOC withImageGalleryContext the Props for the
75
- * wrapped component must be provided as the first generic.
76
- */
77
- export const withImageGalleryContext = <
78
- P extends UnknownType,
79
- StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
80
- >(
81
- Component: React.ComponentType<P>,
82
- ): React.ComponentType<Omit<P, keyof ImageGalleryContextValue<StreamChatGenerics>>> => {
83
- const WithImageGalleryContextComponent = (
84
- props: Omit<P, keyof ImageGalleryContextValue<StreamChatGenerics>>,
85
- ) => {
86
- const imageGalleryContext = useImageGalleryContext<StreamChatGenerics>();
87
-
88
- return <Component {...(props as P)} {...imageGalleryContext} />;
89
- };
90
- WithImageGalleryContextComponent.displayName = `WithImageGalleryContext${getDisplayName(
91
- Component,
92
- )}`;
93
- return WithImageGalleryContextComponent;
94
- };
@@ -1,6 +1,7 @@
1
1
  export * from './attachmentPickerContext/AttachmentPickerContext';
2
2
  export * from './channelContext/ChannelContext';
3
3
  export * from './channelsContext/ChannelsContext';
4
+ export * from './chatConfigContext/ChatConfigContext';
4
5
  export * from './chatContext/ChatContext';
5
6
  export * from './debugContext/DebugContext';
6
7
  export * from './imageGalleryContext/ImageGalleryContext';
@@ -9,7 +10,6 @@ export * from './messageContext/MessageContext';
9
10
  export * from './messageInputContext/hooks/useCreateMessageInputContext';
10
11
  export * from './messageInputContext/hooks/useMessageDetailsForState';
11
12
  export * from './messageInputContext/MessageInputContext';
12
- export * from './messageOverlayContext/MessageOverlayContext';
13
13
  export * from './messagesContext/MessagesContext';
14
14
  export * from './paginatedMessageListContext/PaginatedMessageListContext';
15
15
  export * from './overlayContext/OverlayContext';
@@ -2,9 +2,6 @@ import React, { useContext } from 'react';
2
2
 
3
3
  import { Keyboard } from 'react-native';
4
4
 
5
- import type { DefaultStreamChatGenerics } from '../../types/types';
6
- import { getDisplayName } from '../utils/getDisplayName';
7
-
8
5
  export type KeyboardContextValue = {
9
6
  dismissKeyboard: () => void;
10
7
  };
@@ -22,30 +19,3 @@ export const KeyboardProvider = ({ children, value }: Props) => (
22
19
  );
23
20
 
24
21
  export const useKeyboardContext = () => useContext(KeyboardContext);
25
-
26
- /**
27
- * @deprecated
28
- *
29
- * This will be removed in the next major version.
30
- *
31
- * Typescript currently does not support partial inference so if ChatContext
32
- * typing is desired while using the HOC withKeyboardContext the Props for the
33
- * wrapped component must be provided as the first generic.
34
- */
35
- export const withKeyboardContext = <
36
- StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
37
- >(
38
- Component: React.ComponentType<StreamChatGenerics>,
39
- ): React.ComponentType<Omit<StreamChatGenerics, keyof KeyboardContextValue>> => {
40
- const WithKeyboardContextComponent = (
41
- props: Omit<StreamChatGenerics, keyof KeyboardContextValue>,
42
- ) => {
43
- const keyboardContext = useKeyboardContext();
44
-
45
- return <Component {...(props as StreamChatGenerics)} {...keyboardContext} />;
46
- };
47
- WithKeyboardContextComponent.displayName = `WithKeyboardContext${getDisplayName(
48
- Component as React.ComponentType,
49
- )}`;
50
- return WithKeyboardContextComponent;
51
- };
@@ -5,19 +5,17 @@ import type { Attachment } from 'stream-chat';
5
5
  import type { ActionHandler } from '../../components/Attachment/Attachment';
6
6
  import { ReactionSummary } from '../../components/Message/hooks/useProcessReactions';
7
7
  import type {
8
- MessageTouchableHandlerPayload,
9
- TouchableHandlerPayload,
8
+ MessagePressableHandlerPayload,
9
+ PressableHandlerPayload,
10
10
  } from '../../components/Message/Message';
11
11
  import type { GroupType, MessageType } from '../../components/MessageList/hooks/useMessageList';
12
12
  import type { ChannelContextValue } from '../../contexts/channelContext/ChannelContext';
13
13
  import type { MessageContentType } from '../../contexts/messagesContext/MessagesContext';
14
14
  import type { DeepPartial } from '../../contexts/themeContext/ThemeContext';
15
15
  import type { Theme } from '../../contexts/themeContext/utils/theme';
16
- import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
16
+ import type { DefaultStreamChatGenerics } from '../../types/types';
17
17
  import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
18
18
 
19
- import { getDisplayName } from '../utils/getDisplayName';
20
-
21
19
  export type Alignment = 'right' | 'left';
22
20
 
23
21
  export type MessageContextValue<
@@ -27,6 +25,10 @@ export type MessageContextValue<
27
25
  actionsEnabled: boolean;
28
26
  /** Position of the message, either 'right' or 'left' */
29
27
  alignment: Alignment;
28
+ /**
29
+ * Function to dismiss the overlay
30
+ */
31
+ dismissOverlay: () => void;
30
32
  /** The files attached to a message */
31
33
  files: Attachment<StreamChatGenerics>[];
32
34
  /**
@@ -38,46 +40,6 @@ export type MessageContextValue<
38
40
  groupStyles: GroupType[];
39
41
  /** Handler for actions. Actions in combination with attachments can be used to build [commands](https://getstream.io/chat/docs/#channel_commands). */
40
42
  handleAction: ActionHandler;
41
- /**
42
- * @deprecated
43
- * @returns Promise<void>
44
- */
45
- handleCopyMessage: () => void;
46
- /**
47
- * @deprecated
48
- * @returns Promise<void>
49
- */
50
- handleDeleteMessage: () => void;
51
- /**
52
- * @deprecated
53
- * @returns Promise<void>
54
- */
55
- handleEditMessage: () => void;
56
- /**
57
- * @deprecated
58
- * @returns Promise<void>
59
- */
60
- handleFlagMessage: () => void;
61
- /**
62
- * @deprecated
63
- * @returns Promise<void>
64
- */
65
- handleQuotedReplyMessage: () => void;
66
- /**
67
- * @deprecated
68
- * @returns Promise<void>
69
- */
70
- handleResendMessage: () => Promise<void>;
71
- /**
72
- * @deprecated
73
- * @returns Promise<void>
74
- */
75
- handleToggleBanUser: () => Promise<void>;
76
- /**
77
- * @deprecated
78
- * @returns Promise<void>
79
- */
80
- handleToggleMuteUser: () => Promise<void>;
81
43
  handleToggleReaction: (reactionType: string) => Promise<void>;
82
44
  /** Whether or not message has reactions */
83
45
  hasReactions: boolean;
@@ -103,7 +65,7 @@ export type MessageContextValue<
103
65
  *
104
66
  * @param payload Payload object for onLongPress event
105
67
  */
106
- onLongPress: (payload: TouchableHandlerPayload) => void;
68
+ onLongPress: (payload: PressableHandlerPayload) => void;
107
69
  /** Whether the message is only text and the text is only emojis */
108
70
  onlyEmojis: boolean;
109
71
  /** Handler to open a thread on a message */
@@ -118,20 +80,31 @@ export type MessageContextValue<
118
80
  *
119
81
  * @param payload Payload object for onPress event
120
82
  */
121
- onPress: (payload: MessageTouchableHandlerPayload) => void;
122
- onPressIn: ((payload: TouchableHandlerPayload) => void) | null;
83
+ onPress: (payload: MessagePressableHandlerPayload) => void;
84
+ onPressIn: ((payload: PressableHandlerPayload) => void) | null;
123
85
  /** The images attached to a message */
124
86
  otherAttachments: Attachment<StreamChatGenerics>[];
125
87
  reactions: ReactionSummary[];
126
88
  /** React set state function to set the state of `isEditedMessageOpen` */
127
89
  setIsEditedMessageOpen: React.Dispatch<React.SetStateAction<boolean>>;
128
- showMessageOverlay: (isMessageActionsVisible?: boolean, error?: boolean) => void;
90
+ /**
91
+ * Function to show the menu with all the message actions.
92
+ * @param showMessageReactions
93
+ * @returns void
94
+ */
95
+ showMessageOverlay: (showMessageReactions?: boolean) => void;
129
96
  showMessageStatus: boolean;
130
97
  /** Whether or not the Message is part of a Thread */
131
98
  threadList: boolean;
132
99
  /** The videos attached to a message */
133
100
  videos: Attachment<StreamChatGenerics>[];
134
101
  goToMessage?: (messageId: string) => void;
102
+ /**
103
+ * Function to handle reaction on message
104
+ * @param reactionType
105
+ * @returns
106
+ */
107
+ handleReaction?: (reactionType: string) => Promise<void>;
135
108
  /** Latest message id on current channel */
136
109
  lastReceivedId?: string;
137
110
  /**
@@ -170,29 +143,3 @@ export const useMessageContext = <
170
143
 
171
144
  return contextValue;
172
145
  };
173
-
174
- /**
175
- * @deprecated
176
- *
177
- * This will be removed in the next major version.
178
- *
179
- * Typescript currently does not support partial inference so if ChatContext
180
- * typing is desired while using the HOC withMessageContext the Props for the
181
- * wrapped component must be provided as the first generic.
182
- */
183
- export const withMessageContext = <
184
- P extends UnknownType,
185
- StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
186
- >(
187
- Component: React.ComponentType<P>,
188
- ): React.ComponentType<Omit<P, keyof MessageContextValue<StreamChatGenerics>>> => {
189
- const WithMessageContextComponent = (
190
- props: Omit<P, keyof MessageContextValue<StreamChatGenerics>>,
191
- ) => {
192
- const messageContext = useMessageContext<StreamChatGenerics>();
193
-
194
- return <Component {...(props as P)} {...messageContext} />;
195
- };
196
- WithMessageContextComponent.displayName = `WithMessageContext${getDisplayName(Component)}`;
197
- return WithMessageContextComponent;
198
- };
@@ -53,7 +53,13 @@ import type { SendButtonProps } from '../../components/MessageInput/SendButton';
53
53
  import type { UploadProgressIndicatorProps } from '../../components/MessageInput/UploadProgressIndicator';
54
54
  import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
55
55
  import type { Emoji } from '../../emoji-data';
56
- import { isImageMediaLibraryAvailable, pickDocument, pickImage, takePhoto } from '../../native';
56
+ import {
57
+ isDocumentPickerAvailable,
58
+ isImageMediaLibraryAvailable,
59
+ pickDocument,
60
+ pickImage,
61
+ takePhoto,
62
+ } from '../../native';
57
63
  import {
58
64
  Asset,
59
65
  DefaultStreamChatGenerics,
@@ -61,7 +67,6 @@ import {
61
67
  FileTypes,
62
68
  FileUpload,
63
69
  ImageUpload,
64
- UnknownType,
65
70
  } from '../../types/types';
66
71
  import {
67
72
  ACITriggerSettings,
@@ -86,7 +91,6 @@ import { useThreadContext } from '../threadContext/ThreadContext';
86
91
  import { useTranslationContext } from '../translationContext/TranslationContext';
87
92
  import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
88
93
 
89
- import { getDisplayName } from '../utils/getDisplayName';
90
94
  import { isTestEnvironment } from '../utils/isTestEnvironment';
91
95
 
92
96
  /**
@@ -360,7 +364,6 @@ export type InputMessageInputContextValue<
360
364
  MoreOptionsButton: React.ComponentType<MoreOptionsButtonProps>;
361
365
  /** Limit on the number of lines in the text input before scrolling */
362
366
  numberOfLines: number;
363
- quotedMessage: boolean | MessageType<StreamChatGenerics>;
364
367
  /**
365
368
  * Custom UI component for send button.
366
369
  *
@@ -491,6 +494,7 @@ export type InputMessageInputContextValue<
491
494
  * Callback that is called when the text input's text changes. Changed text is passed as a single string argument to the callback handler.
492
495
  */
493
496
  onChangeText?: (newText: string) => void;
497
+ quotedMessage?: MessageType<StreamChatGenerics>;
494
498
  SendMessageDisallowedIndicator?: React.ComponentType;
495
499
  /**
496
500
  * ref for input setter function
@@ -750,7 +754,7 @@ export const MessageInputProvider = <
750
754
  };
751
755
 
752
756
  const pickFile = async () => {
753
- if (pickDocument === null) {
757
+ if (!isDocumentPickerAvailable()) {
754
758
  console.log(
755
759
  'The file picker is not installed. Check our Getting Started documentation to install it.',
756
760
  );
@@ -1020,8 +1024,7 @@ export const MessageInputProvider = <
1020
1024
  mentioned_users: uniq(mentionedUsers),
1021
1025
  /** Parent message id - in case of thread */
1022
1026
  parent_id: thread?.id,
1023
- quoted_message_id:
1024
- typeof value.quotedMessage === 'boolean' ? undefined : value.quotedMessage.id,
1027
+ quoted_message_id: value.quotedMessage ? value.quotedMessage.id : undefined,
1025
1028
  show_in_channel: sendThreadMessageInChannel || undefined,
1026
1029
  text: prevText,
1027
1030
  ...customMessageData,
@@ -1061,8 +1064,7 @@ export const MessageInputProvider = <
1061
1064
  attachments,
1062
1065
  mentioned_users: [],
1063
1066
  parent_id: thread?.id,
1064
- quoted_message_id:
1065
- typeof value.quotedMessage === 'boolean' ? undefined : value.quotedMessage.id,
1067
+ quoted_message_id: value.quotedMessage ? value.quotedMessage.id : undefined,
1066
1068
  show_in_channel: sendThreadMessageInChannel || undefined,
1067
1069
  text: '',
1068
1070
  } as unknown as Partial<StreamMessage<StreamChatGenerics>>);
@@ -1477,31 +1479,3 @@ export const useMessageInputContext = <
1477
1479
 
1478
1480
  return contextValue;
1479
1481
  };
1480
-
1481
- /**
1482
- * @deprecated
1483
- *
1484
- * This will be removed in the next major version.
1485
- *
1486
- * Typescript currently does not support partial inference so if ChatContext
1487
- * typing is desired while using the HOC withMessageInputContext the Props for the
1488
- * wrapped component must be provided as the first generic.
1489
- */
1490
- export const withMessageInputContext = <
1491
- P extends UnknownType,
1492
- StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
1493
- >(
1494
- Component: React.ComponentType<P>,
1495
- ): React.ComponentType<Omit<P, keyof MessageInputContextValue<StreamChatGenerics>>> => {
1496
- const WithMessageInputContextComponent = (
1497
- props: Omit<P, keyof MessageInputContextValue<StreamChatGenerics>>,
1498
- ) => {
1499
- const messageInputContext = useMessageInputContext<StreamChatGenerics>();
1500
-
1501
- return <Component {...(props as P)} {...messageInputContext} />;
1502
- };
1503
- WithMessageInputContextComponent.displayName = `WithMessageInputContext${getDisplayName(
1504
- Component,
1505
- )}`;
1506
- return WithMessageInputContextComponent;
1507
- };
@@ -13,13 +13,12 @@ import type { DefaultStreamChatGenerics } from '../../../types/types';
13
13
  import { FileState } from '../../../utils/utils';
14
14
  import {
15
15
  InputMessageInputContextValue,
16
- MessageInputContextValue,
17
16
  MessageInputProvider,
18
17
  useMessageInputContext,
19
18
  } from '../MessageInputContext';
20
19
 
21
20
  const user1 = generateUser();
22
- const message = generateMessage({ user: user1 }, 'isValidMessage');
21
+ const message = generateMessage({ user: user1 });
23
22
 
24
23
  type WrapperType<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> =
25
24
  Partial<InputMessageInputContextValue<StreamChatGenerics>>;
@@ -32,7 +31,7 @@ const Wrapper = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultS
32
31
  value={
33
32
  {
34
33
  ...rest,
35
- } as MessageInputContextValue<StreamChatGenerics>
34
+ } as InputMessageInputContextValue<StreamChatGenerics>
36
35
  }
37
36
  >
38
37
  {children}
@@ -9,7 +9,6 @@ import { generateUser } from '../../../mock-builders/generator/user';
9
9
  import type { DefaultStreamChatGenerics } from '../../../types/types';
10
10
  import {
11
11
  InputMessageInputContextValue,
12
- MessageInputContextValue,
13
12
  MessageInputProvider,
14
13
  useMessageInputContext,
15
14
  } from '../MessageInputContext';
@@ -28,7 +27,7 @@ const Wrapper = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultS
28
27
  value={
29
28
  {
30
29
  ...rest,
31
- } as MessageInputContextValue<StreamChatGenerics>
30
+ } as InputMessageInputContextValue<StreamChatGenerics>
32
31
  }
33
32
  >
34
33
  {children}
@@ -8,7 +8,6 @@ import { generateUser } from '../../../mock-builders/generator/user';
8
8
  import type { DefaultStreamChatGenerics } from '../../../types/types';
9
9
  import {
10
10
  InputMessageInputContextValue,
11
- MessageInputContextValue,
12
11
  MessageInputProvider,
13
12
  useMessageInputContext,
14
13
  } from '../MessageInputContext';
@@ -24,7 +23,7 @@ const Wrapper = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultS
24
23
  value={
25
24
  {
26
25
  ...rest,
27
- } as MessageInputContextValue<StreamChatGenerics>
26
+ } as InputMessageInputContextValue<StreamChatGenerics>
28
27
  }
29
28
  >
30
29
  {children}
@@ -119,11 +119,7 @@ export const useCreateMessageInputContext = <
119
119
  const imageUploadsValue = imageUploads.map(({ state }) => state).join();
120
120
  const asyncUploadsValue = Object.keys(asyncUploads).join();
121
121
  const mentionedUsersLength = mentionedUsers.length;
122
- const quotedMessageId = quotedMessage
123
- ? typeof quotedMessage === 'boolean'
124
- ? ''
125
- : quotedMessage.id
126
- : '';
122
+ const quotedMessageId = quotedMessage ? quotedMessage.id : '';
127
123
  const threadId = thread?.id;
128
124
  const asyncIdsLength = asyncIds.length;
129
125