stream-chat-react-native-core 5.8.0-beta.5 → 5.8.0-beta.7

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 (1776) hide show
  1. package/lib/commonjs/components/Attachment/Attachment.js +45 -56
  2. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/AttachmentActions.js +25 -43
  4. package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/AudioAttachment.js +114 -191
  6. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  7. package/lib/commonjs/components/Attachment/Card.js +53 -80
  8. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  9. package/lib/commonjs/components/Attachment/FileAttachment.js +30 -57
  10. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  11. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +19 -50
  12. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  13. package/lib/commonjs/components/Attachment/FileIcon.js +3 -45
  14. package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
  15. package/lib/commonjs/components/Attachment/Gallery.js +121 -162
  16. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  17. package/lib/commonjs/components/Attachment/GalleryImage.js +5 -23
  18. package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
  19. package/lib/commonjs/components/Attachment/Giphy.js +76 -109
  20. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  21. package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js +7 -23
  22. package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
  23. package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js +3 -15
  24. package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js.map +1 -1
  25. package/lib/commonjs/components/Attachment/VideoThumbnail.js +10 -20
  26. package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
  27. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js +1 -10
  28. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  29. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +8 -24
  30. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  31. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +22 -35
  32. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  33. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +1 -7
  34. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  35. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +4 -7
  36. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  37. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +5 -9
  38. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  39. package/lib/commonjs/components/Attachment/utils/buildGallery/types.js.map +1 -1
  40. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js +0 -2
  41. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
  42. package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js +12 -14
  43. package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
  44. package/lib/commonjs/components/Attachment/utils/getGiphyMimeType.js +0 -2
  45. package/lib/commonjs/components/Attachment/utils/getGiphyMimeType.js.map +1 -1
  46. package/lib/commonjs/components/Attachment/utils/openUrlSafely.js +19 -33
  47. package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
  48. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +74 -123
  49. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  50. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js +4 -18
  51. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
  52. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js +33 -56
  53. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
  54. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js +2 -10
  55. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
  56. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +71 -117
  57. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  58. package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js +33 -59
  59. package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
  60. package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js +2 -10
  61. package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
  62. package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js +2 -10
  63. package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
  64. package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js +4 -14
  65. package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
  66. package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js +4 -13
  67. package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
  68. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +177 -285
  69. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  70. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +6 -24
  71. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  72. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +12 -30
  73. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  74. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +30 -47
  75. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  76. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +21 -49
  77. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  78. package/lib/commonjs/components/Avatar/Avatar.js +22 -42
  79. package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
  80. package/lib/commonjs/components/Avatar/GroupAvatar.js +15 -33
  81. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  82. package/lib/commonjs/components/Channel/Channel.js +1136 -1586
  83. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  84. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +31 -34
  85. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  86. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +40 -43
  87. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  88. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +81 -84
  89. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  90. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +1 -11
  91. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  92. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js +9 -13
  93. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  94. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js +9 -13
  95. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  96. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js +0 -3
  97. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  98. package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js +3 -12
  99. package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  100. package/lib/commonjs/components/ChannelList/ChannelList.js +71 -110
  101. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  102. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +2 -12
  103. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  104. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js +12 -24
  105. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  106. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +9 -20
  107. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  108. package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js +6 -17
  109. package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  110. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +55 -84
  111. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  112. package/lib/commonjs/components/ChannelList/Skeleton.js +16 -33
  113. package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
  114. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +28 -50
  115. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  116. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js +2 -14
  117. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  118. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js +2 -14
  119. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  120. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js +4 -12
  121. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  122. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js +2 -16
  123. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  124. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js +28 -49
  125. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  126. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js +2 -17
  127. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  128. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +28 -50
  129. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  130. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js +2 -12
  131. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  132. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js +1 -12
  133. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  134. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +29 -34
  135. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  136. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +141 -219
  137. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  138. package/lib/commonjs/components/ChannelList/utils.js +13 -26
  139. package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
  140. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +3 -19
  141. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  142. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +14 -44
  143. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  144. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +4 -15
  145. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  146. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +35 -60
  147. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  148. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +7 -18
  149. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  150. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +10 -24
  151. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  152. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +4 -14
  153. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  154. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +7 -17
  155. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  156. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +4 -27
  157. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  158. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +12 -36
  159. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  160. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +4 -21
  161. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  162. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +22 -68
  163. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  164. package/lib/commonjs/components/Chat/Chat.js +26 -69
  165. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  166. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +0 -26
  167. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  168. package/lib/commonjs/components/Chat/hooks/useAppSettings.js +42 -69
  169. package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
  170. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +8 -11
  171. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  172. package/lib/commonjs/components/Chat/hooks/useIsOnline.js +19 -50
  173. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  174. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js +3 -11
  175. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
  176. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js +1 -8
  177. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  178. package/lib/commonjs/components/ImageBackground.js +7 -21
  179. package/lib/commonjs/components/ImageBackground.js.map +1 -1
  180. package/lib/commonjs/components/ImageGallery/ImageGallery.js +53 -131
  181. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  182. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +12 -27
  183. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  184. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +21 -52
  185. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  186. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +79 -125
  187. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  188. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +26 -56
  189. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  190. package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js +12 -32
  191. package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  192. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +14 -27
  193. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  194. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +16 -38
  195. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  196. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js +12 -26
  197. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  198. package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js +15 -52
  199. package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  200. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +10 -25
  201. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
  202. package/lib/commonjs/components/Indicators/LoadingDot.js +10 -21
  203. package/lib/commonjs/components/Indicators/LoadingDot.js.map +1 -1
  204. package/lib/commonjs/components/Indicators/LoadingDots.js +11 -21
  205. package/lib/commonjs/components/Indicators/LoadingDots.js.map +1 -1
  206. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js +16 -33
  207. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  208. package/lib/commonjs/components/Indicators/LoadingIndicator.js +8 -26
  209. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  210. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js +9 -67
  211. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  212. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +22 -68
  213. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  214. package/lib/commonjs/components/Message/Message.js +246 -335
  215. package/lib/commonjs/components/Message/Message.js.map +1 -1
  216. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +20 -40
  217. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  218. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +113 -164
  219. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  220. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +27 -49
  221. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  222. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +55 -68
  223. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  224. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +11 -34
  225. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  226. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +37 -57
  227. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  228. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +13 -30
  229. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  230. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +37 -57
  231. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  232. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +16 -40
  233. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  234. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +30 -51
  235. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  236. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +56 -84
  237. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  238. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js +23 -37
  239. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  240. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js +0 -1
  241. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  242. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +22 -66
  243. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  244. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js +97 -127
  245. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  246. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +37 -42
  247. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  248. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +108 -171
  249. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  250. package/lib/commonjs/components/Message/hooks/useMessageActions.js +141 -225
  251. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  252. package/lib/commonjs/components/Message/utils/messageActions.js +15 -30
  253. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  254. package/lib/commonjs/components/MessageInput/AttachButton.js +15 -33
  255. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  256. package/lib/commonjs/components/MessageInput/CommandsButton.js +13 -31
  257. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  258. package/lib/commonjs/components/MessageInput/CooldownTimer.js +8 -20
  259. package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -1
  260. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +48 -86
  261. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  262. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +25 -57
  263. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  264. package/lib/commonjs/components/MessageInput/InputButtons.js +47 -69
  265. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  266. package/lib/commonjs/components/MessageInput/MessageInput.js +176 -236
  267. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  268. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +9 -25
  269. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  270. package/lib/commonjs/components/MessageInput/SendButton.js +15 -33
  271. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  272. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +9 -20
  273. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  274. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +27 -50
  275. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  276. package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js +9 -28
  277. package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js.map +1 -1
  278. package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js +14 -34
  279. package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
  280. package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js +20 -41
  281. package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js.map +1 -1
  282. package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js +14 -34
  283. package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
  284. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js +6 -24
  285. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
  286. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js +3 -16
  287. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -1
  288. package/lib/commonjs/components/MessageList/DateHeader.js +8 -18
  289. package/lib/commonjs/components/MessageList/DateHeader.js.map +1 -1
  290. package/lib/commonjs/components/MessageList/InlineDateSeparator.js +9 -22
  291. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  292. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +3 -21
  293. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  294. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -21
  295. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  296. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -21
  297. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  298. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +10 -26
  299. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  300. package/lib/commonjs/components/MessageList/MessageList.js +239 -355
  301. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  302. package/lib/commonjs/components/MessageList/MessageSystem.js +14 -27
  303. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  304. package/lib/commonjs/components/MessageList/NetworkDownIndicator.js +9 -26
  305. package/lib/commonjs/components/MessageList/NetworkDownIndicator.js.map +1 -1
  306. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +16 -27
  307. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
  308. package/lib/commonjs/components/MessageList/TypingIndicator.js +8 -19
  309. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  310. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +8 -29
  311. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  312. package/lib/commonjs/components/MessageList/hooks/useMessageList.js +10 -34
  313. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  314. package/lib/commonjs/components/MessageList/hooks/useTypingString.js +4 -18
  315. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  316. package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js +2 -10
  317. package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  318. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js +3 -11
  319. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  320. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +5 -18
  321. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  322. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +1 -9
  323. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  324. package/lib/commonjs/components/MessageList/utils/getReadStates.js +1 -22
  325. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  326. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +16 -39
  327. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  328. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +16 -36
  329. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  330. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +75 -127
  331. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  332. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +3 -12
  333. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  334. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +39 -77
  335. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  336. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +31 -53
  337. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  338. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js +5 -14
  339. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
  340. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +2 -5
  341. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  342. package/lib/commonjs/components/ProgressControl/ProgressControl.js +9 -26
  343. package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
  344. package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js +3 -13
  345. package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
  346. package/lib/commonjs/components/Reply/Reply.js +37 -79
  347. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  348. package/lib/commonjs/components/Spinner/Spinner.js +6 -20
  349. package/lib/commonjs/components/Spinner/Spinner.js.map +1 -1
  350. package/lib/commonjs/components/Thread/Thread.js +28 -57
  351. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  352. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +15 -43
  353. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  354. package/lib/commonjs/components/docs/data.js +0 -7
  355. package/lib/commonjs/components/docs/data.js.map +1 -1
  356. package/lib/commonjs/components/index.js +0 -284
  357. package/lib/commonjs/components/index.js.map +1 -1
  358. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +2 -18
  359. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  360. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +20 -50
  361. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  362. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -23
  363. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  364. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +2 -23
  365. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  366. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +4 -37
  367. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  368. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +63 -81
  369. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  370. package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -23
  371. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  372. package/lib/commonjs/contexts/debugContext/DebugContext.js +3 -17
  373. package/lib/commonjs/contexts/debugContext/DebugContext.js.map +1 -1
  374. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +7 -32
  375. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  376. package/lib/commonjs/contexts/index.js +0 -48
  377. package/lib/commonjs/contexts/index.js.map +1 -1
  378. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +2 -20
  379. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  380. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -20
  381. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  382. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +531 -762
  383. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  384. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +88 -91
  385. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  386. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +19 -44
  387. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  388. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +2 -24
  389. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  390. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js +3 -12
  391. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
  392. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +40 -52
  393. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
  394. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -23
  395. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  396. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -20
  397. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  398. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +76 -124
  399. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  400. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +2 -18
  401. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  402. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -23
  403. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  404. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +11 -46
  405. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  406. package/lib/commonjs/contexts/themeContext/ThemeContext.js +5 -28
  407. package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
  408. package/lib/commonjs/contexts/themeContext/utils/theme.js +0 -4
  409. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  410. package/lib/commonjs/contexts/threadContext/ThreadContext.js +2 -23
  411. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  412. package/lib/commonjs/contexts/translationContext/TranslationContext.js +2 -26
  413. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  414. package/lib/commonjs/contexts/typingContext/TypingContext.js +2 -23
  415. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  416. package/lib/commonjs/contexts/utils/defaultBaseContextValue.js.map +1 -1
  417. package/lib/commonjs/contexts/utils/getDisplayName.js +0 -2
  418. package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
  419. package/lib/commonjs/contexts/utils/isTestEnvironment.js +0 -2
  420. package/lib/commonjs/contexts/utils/isTestEnvironment.js.map +1 -1
  421. package/lib/commonjs/emoji-data/compile.js +2 -4
  422. package/lib/commonjs/emoji-data/compile.js.map +1 -1
  423. package/lib/commonjs/emoji-data/compiled.js.map +1 -1
  424. package/lib/commonjs/emoji-data/emojiNames.js.map +1 -1
  425. package/lib/commonjs/emoji-data/emojis.js.map +1 -1
  426. package/lib/commonjs/emoji-data/index.js +1 -7
  427. package/lib/commonjs/emoji-data/index.js.map +1 -1
  428. package/lib/commonjs/hooks/index.js +0 -4
  429. package/lib/commonjs/hooks/index.js.map +1 -1
  430. package/lib/commonjs/hooks/useAppStateListener.js +0 -7
  431. package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
  432. package/lib/commonjs/hooks/useIsMountedRef.js +0 -3
  433. package/lib/commonjs/hooks/useIsMountedRef.js.map +1 -1
  434. package/lib/commonjs/hooks/useLoadingImage.js +7 -16
  435. package/lib/commonjs/hooks/useLoadingImage.js.map +1 -1
  436. package/lib/commonjs/hooks/useStreami18n.js +4 -16
  437. package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
  438. package/lib/commonjs/hooks/useTranslatedMessage.js +1 -11
  439. package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
  440. package/lib/commonjs/icons/ArrowRight.js +1 -8
  441. package/lib/commonjs/icons/ArrowRight.js.map +1 -1
  442. package/lib/commonjs/icons/AtMentions.js +1 -8
  443. package/lib/commonjs/icons/AtMentions.js.map +1 -1
  444. package/lib/commonjs/icons/Attach.js +1 -8
  445. package/lib/commonjs/icons/Attach.js.map +1 -1
  446. package/lib/commonjs/icons/Audio.js +1 -9
  447. package/lib/commonjs/icons/Audio.js.map +1 -1
  448. package/lib/commonjs/icons/CSV.js +1 -8
  449. package/lib/commonjs/icons/CSV.js.map +1 -1
  450. package/lib/commonjs/icons/Camera.js +1 -8
  451. package/lib/commonjs/icons/Camera.js.map +1 -1
  452. package/lib/commonjs/icons/Check.js +1 -8
  453. package/lib/commonjs/icons/Check.js.map +1 -1
  454. package/lib/commonjs/icons/CheckAll.js +1 -8
  455. package/lib/commonjs/icons/CheckAll.js.map +1 -1
  456. package/lib/commonjs/icons/CheckSend.js +1 -8
  457. package/lib/commonjs/icons/CheckSend.js.map +1 -1
  458. package/lib/commonjs/icons/CircleClose.js +1 -8
  459. package/lib/commonjs/icons/CircleClose.js.map +1 -1
  460. package/lib/commonjs/icons/CirclePlus.js +1 -8
  461. package/lib/commonjs/icons/CirclePlus.js.map +1 -1
  462. package/lib/commonjs/icons/CircleRight.js +1 -8
  463. package/lib/commonjs/icons/CircleRight.js.map +1 -1
  464. package/lib/commonjs/icons/Close.js +1 -8
  465. package/lib/commonjs/icons/Close.js.map +1 -1
  466. package/lib/commonjs/icons/Copy.js +1 -8
  467. package/lib/commonjs/icons/Copy.js.map +1 -1
  468. package/lib/commonjs/icons/CurveLineLeftUp.js +1 -8
  469. package/lib/commonjs/icons/CurveLineLeftUp.js.map +1 -1
  470. package/lib/commonjs/icons/DOC.js +1 -9
  471. package/lib/commonjs/icons/DOC.js.map +1 -1
  472. package/lib/commonjs/icons/DOCX.js +1 -9
  473. package/lib/commonjs/icons/DOCX.js.map +1 -1
  474. package/lib/commonjs/icons/Delete.js +1 -8
  475. package/lib/commonjs/icons/Delete.js.map +1 -1
  476. package/lib/commonjs/icons/Down.js +1 -8
  477. package/lib/commonjs/icons/Down.js.map +1 -1
  478. package/lib/commonjs/icons/DownloadArrow.js +1 -8
  479. package/lib/commonjs/icons/DownloadArrow.js.map +1 -1
  480. package/lib/commonjs/icons/DownloadCloud.js +1 -8
  481. package/lib/commonjs/icons/DownloadCloud.js.map +1 -1
  482. package/lib/commonjs/icons/Edit.js +1 -8
  483. package/lib/commonjs/icons/Edit.js.map +1 -1
  484. package/lib/commonjs/icons/Error.js +1 -8
  485. package/lib/commonjs/icons/Error.js.map +1 -1
  486. package/lib/commonjs/icons/Eye.js +1 -8
  487. package/lib/commonjs/icons/Eye.js.map +1 -1
  488. package/lib/commonjs/icons/Flag.js +1 -8
  489. package/lib/commonjs/icons/Flag.js.map +1 -1
  490. package/lib/commonjs/icons/Folder.js +1 -8
  491. package/lib/commonjs/icons/Folder.js.map +1 -1
  492. package/lib/commonjs/icons/GenericFile.js +1 -9
  493. package/lib/commonjs/icons/GenericFile.js.map +1 -1
  494. package/lib/commonjs/icons/GiphyIcon.js +1 -8
  495. package/lib/commonjs/icons/GiphyIcon.js.map +1 -1
  496. package/lib/commonjs/icons/Grid.js +1 -8
  497. package/lib/commonjs/icons/Grid.js.map +1 -1
  498. package/lib/commonjs/icons/Group.js +1 -8
  499. package/lib/commonjs/icons/Group.js.map +1 -1
  500. package/lib/commonjs/icons/HTML.js +1 -8
  501. package/lib/commonjs/icons/HTML.js.map +1 -1
  502. package/lib/commonjs/icons/Imgur.js +1 -9
  503. package/lib/commonjs/icons/Imgur.js.map +1 -1
  504. package/lib/commonjs/icons/LOLReaction.js +1 -8
  505. package/lib/commonjs/icons/LOLReaction.js.map +1 -1
  506. package/lib/commonjs/icons/Lightning.js +1 -8
  507. package/lib/commonjs/icons/Lightning.js.map +1 -1
  508. package/lib/commonjs/icons/Link.js +1 -8
  509. package/lib/commonjs/icons/Link.js.map +1 -1
  510. package/lib/commonjs/icons/Loading.js +12 -20
  511. package/lib/commonjs/icons/Loading.js.map +1 -1
  512. package/lib/commonjs/icons/Logo.js +1 -8
  513. package/lib/commonjs/icons/Logo.js.map +1 -1
  514. package/lib/commonjs/icons/LoveReaction.js +1 -8
  515. package/lib/commonjs/icons/LoveReaction.js.map +1 -1
  516. package/lib/commonjs/icons/MD.js +1 -8
  517. package/lib/commonjs/icons/MD.js.map +1 -1
  518. package/lib/commonjs/icons/MailOpen.js +1 -8
  519. package/lib/commonjs/icons/MailOpen.js.map +1 -1
  520. package/lib/commonjs/icons/MenuPointHorizontal.js +1 -8
  521. package/lib/commonjs/icons/MenuPointHorizontal.js.map +1 -1
  522. package/lib/commonjs/icons/MenuPointVertical.js +1 -8
  523. package/lib/commonjs/icons/MenuPointVertical.js.map +1 -1
  524. package/lib/commonjs/icons/MessageFlag.js +1 -8
  525. package/lib/commonjs/icons/MessageFlag.js.map +1 -1
  526. package/lib/commonjs/icons/MessageIcon.js +1 -8
  527. package/lib/commonjs/icons/MessageIcon.js.map +1 -1
  528. package/lib/commonjs/icons/Mute.js +1 -8
  529. package/lib/commonjs/icons/Mute.js.map +1 -1
  530. package/lib/commonjs/icons/Notification.js +1 -8
  531. package/lib/commonjs/icons/Notification.js.map +1 -1
  532. package/lib/commonjs/icons/ODT.js +1 -8
  533. package/lib/commonjs/icons/ODT.js.map +1 -1
  534. package/lib/commonjs/icons/PDF.js +1 -8
  535. package/lib/commonjs/icons/PDF.js.map +1 -1
  536. package/lib/commonjs/icons/PPT.js +1 -9
  537. package/lib/commonjs/icons/PPT.js.map +1 -1
  538. package/lib/commonjs/icons/PPTX.js +1 -9
  539. package/lib/commonjs/icons/PPTX.js.map +1 -1
  540. package/lib/commonjs/icons/Pause.js +2 -10
  541. package/lib/commonjs/icons/Pause.js.map +1 -1
  542. package/lib/commonjs/icons/Picture.js +1 -8
  543. package/lib/commonjs/icons/Picture.js.map +1 -1
  544. package/lib/commonjs/icons/Pin.js +1 -8
  545. package/lib/commonjs/icons/Pin.js.map +1 -1
  546. package/lib/commonjs/icons/PinHeader.js +1 -8
  547. package/lib/commonjs/icons/PinHeader.js.map +1 -1
  548. package/lib/commonjs/icons/Play.js +1 -8
  549. package/lib/commonjs/icons/Play.js.map +1 -1
  550. package/lib/commonjs/icons/RAR.js +1 -8
  551. package/lib/commonjs/icons/RAR.js.map +1 -1
  552. package/lib/commonjs/icons/RTF.js +1 -8
  553. package/lib/commonjs/icons/RTF.js.map +1 -1
  554. package/lib/commonjs/icons/Recorder.js +1 -8
  555. package/lib/commonjs/icons/Recorder.js.map +1 -1
  556. package/lib/commonjs/icons/Refresh.js +1 -8
  557. package/lib/commonjs/icons/Refresh.js.map +1 -1
  558. package/lib/commonjs/icons/SEVEN_Z.js +1 -8
  559. package/lib/commonjs/icons/SEVEN_Z.js.map +1 -1
  560. package/lib/commonjs/icons/Search.js +1 -8
  561. package/lib/commonjs/icons/Search.js.map +1 -1
  562. package/lib/commonjs/icons/SendRight.js +1 -8
  563. package/lib/commonjs/icons/SendRight.js.map +1 -1
  564. package/lib/commonjs/icons/SendUp.js +1 -8
  565. package/lib/commonjs/icons/SendUp.js.map +1 -1
  566. package/lib/commonjs/icons/Share.js +1 -9
  567. package/lib/commonjs/icons/Share.js.map +1 -1
  568. package/lib/commonjs/icons/ShareRightArrow.js +1 -8
  569. package/lib/commonjs/icons/ShareRightArrow.js.map +1 -1
  570. package/lib/commonjs/icons/Smile.js +1 -8
  571. package/lib/commonjs/icons/Smile.js.map +1 -1
  572. package/lib/commonjs/icons/Sound.js +1 -8
  573. package/lib/commonjs/icons/Sound.js.map +1 -1
  574. package/lib/commonjs/icons/TAR.js +1 -8
  575. package/lib/commonjs/icons/TAR.js.map +1 -1
  576. package/lib/commonjs/icons/TXT.js +1 -8
  577. package/lib/commonjs/icons/TXT.js.map +1 -1
  578. package/lib/commonjs/icons/ThreadReply.js +1 -8
  579. package/lib/commonjs/icons/ThreadReply.js.map +1 -1
  580. package/lib/commonjs/icons/ThumbsDownReaction.js +1 -8
  581. package/lib/commonjs/icons/ThumbsDownReaction.js.map +1 -1
  582. package/lib/commonjs/icons/ThumbsUpReaction.js +1 -8
  583. package/lib/commonjs/icons/ThumbsUpReaction.js.map +1 -1
  584. package/lib/commonjs/icons/Time.js +1 -8
  585. package/lib/commonjs/icons/Time.js.map +1 -1
  586. package/lib/commonjs/icons/Unknown.js +1 -8
  587. package/lib/commonjs/icons/Unknown.js.map +1 -1
  588. package/lib/commonjs/icons/Unpin.js +1 -8
  589. package/lib/commonjs/icons/Unpin.js.map +1 -1
  590. package/lib/commonjs/icons/User.js +1 -8
  591. package/lib/commonjs/icons/User.js.map +1 -1
  592. package/lib/commonjs/icons/UserAdd.js +1 -8
  593. package/lib/commonjs/icons/UserAdd.js.map +1 -1
  594. package/lib/commonjs/icons/UserAdmin.js +3 -12
  595. package/lib/commonjs/icons/UserAdmin.js.map +1 -1
  596. package/lib/commonjs/icons/UserDelete.js +1 -8
  597. package/lib/commonjs/icons/UserDelete.js.map +1 -1
  598. package/lib/commonjs/icons/UserMinus.js +1 -8
  599. package/lib/commonjs/icons/UserMinus.js.map +1 -1
  600. package/lib/commonjs/icons/Video.js +1 -8
  601. package/lib/commonjs/icons/Video.js.map +1 -1
  602. package/lib/commonjs/icons/Warning.js +1 -8
  603. package/lib/commonjs/icons/Warning.js.map +1 -1
  604. package/lib/commonjs/icons/WutReaction.js +1 -8
  605. package/lib/commonjs/icons/WutReaction.js.map +1 -1
  606. package/lib/commonjs/icons/XLS.js +1 -9
  607. package/lib/commonjs/icons/XLS.js.map +1 -1
  608. package/lib/commonjs/icons/XLSX.js +1 -9
  609. package/lib/commonjs/icons/XLSX.js.map +1 -1
  610. package/lib/commonjs/icons/ZIP.js +1 -8
  611. package/lib/commonjs/icons/ZIP.js.map +1 -1
  612. package/lib/commonjs/icons/index.js +0 -168
  613. package/lib/commonjs/icons/index.js.map +1 -1
  614. package/lib/commonjs/icons/utils/base.js +11 -25
  615. package/lib/commonjs/icons/utils/base.js.map +1 -1
  616. package/lib/commonjs/index.js +0 -35
  617. package/lib/commonjs/index.js.map +1 -1
  618. package/lib/commonjs/init.js +0 -3
  619. package/lib/commonjs/init.js.map +1 -1
  620. package/lib/commonjs/mock-builders/DB/consts.js.map +1 -1
  621. package/lib/commonjs/mock-builders/DB/mock.js +0 -11
  622. package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
  623. package/lib/commonjs/mock-builders/api/channelMocks.js +0 -2
  624. package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
  625. package/lib/commonjs/mock-builders/api/deleteMessage.js +0 -4
  626. package/lib/commonjs/mock-builders/api/deleteMessage.js.map +1 -1
  627. package/lib/commonjs/mock-builders/api/deleteReaction.js +0 -4
  628. package/lib/commonjs/mock-builders/api/deleteReaction.js.map +1 -1
  629. package/lib/commonjs/mock-builders/api/error.js +0 -12
  630. package/lib/commonjs/mock-builders/api/error.js.map +1 -1
  631. package/lib/commonjs/mock-builders/api/getOrCreateChannel.js +0 -3
  632. package/lib/commonjs/mock-builders/api/getOrCreateChannel.js.map +1 -1
  633. package/lib/commonjs/mock-builders/api/queryChannels.js +0 -3
  634. package/lib/commonjs/mock-builders/api/queryChannels.js.map +1 -1
  635. package/lib/commonjs/mock-builders/api/queryMembers.js +0 -3
  636. package/lib/commonjs/mock-builders/api/queryMembers.js.map +1 -1
  637. package/lib/commonjs/mock-builders/api/sendMessage.js +0 -4
  638. package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
  639. package/lib/commonjs/mock-builders/api/sendReaction.js +0 -4
  640. package/lib/commonjs/mock-builders/api/sendReaction.js.map +1 -1
  641. package/lib/commonjs/mock-builders/api/threadReplies.js +0 -3
  642. package/lib/commonjs/mock-builders/api/threadReplies.js.map +1 -1
  643. package/lib/commonjs/mock-builders/api/useMockedApis.js +1 -3
  644. package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
  645. package/lib/commonjs/mock-builders/api/utils.js +0 -2
  646. package/lib/commonjs/mock-builders/api/utils.js.map +1 -1
  647. package/lib/commonjs/mock-builders/event/channelDeleted.js +0 -2
  648. package/lib/commonjs/mock-builders/event/channelDeleted.js.map +1 -1
  649. package/lib/commonjs/mock-builders/event/channelHidden.js +0 -2
  650. package/lib/commonjs/mock-builders/event/channelHidden.js.map +1 -1
  651. package/lib/commonjs/mock-builders/event/channelTruncated.js +0 -2
  652. package/lib/commonjs/mock-builders/event/channelTruncated.js.map +1 -1
  653. package/lib/commonjs/mock-builders/event/channelUpdated.js +0 -2
  654. package/lib/commonjs/mock-builders/event/channelUpdated.js.map +1 -1
  655. package/lib/commonjs/mock-builders/event/connectionChanged.js +0 -2
  656. package/lib/commonjs/mock-builders/event/connectionChanged.js.map +1 -1
  657. package/lib/commonjs/mock-builders/event/connectionRecovered.js +0 -2
  658. package/lib/commonjs/mock-builders/event/connectionRecovered.js.map +1 -1
  659. package/lib/commonjs/mock-builders/event/memberAdded.js +0 -2
  660. package/lib/commonjs/mock-builders/event/memberAdded.js.map +1 -1
  661. package/lib/commonjs/mock-builders/event/memberRemoved.js +0 -2
  662. package/lib/commonjs/mock-builders/event/memberRemoved.js.map +1 -1
  663. package/lib/commonjs/mock-builders/event/memberUpdated.js +0 -2
  664. package/lib/commonjs/mock-builders/event/memberUpdated.js.map +1 -1
  665. package/lib/commonjs/mock-builders/event/messageDeleted.js +0 -2
  666. package/lib/commonjs/mock-builders/event/messageDeleted.js.map +1 -1
  667. package/lib/commonjs/mock-builders/event/messageNew.js +0 -2
  668. package/lib/commonjs/mock-builders/event/messageNew.js.map +1 -1
  669. package/lib/commonjs/mock-builders/event/messageRead.js +0 -2
  670. package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
  671. package/lib/commonjs/mock-builders/event/messageUpdated.js +0 -2
  672. package/lib/commonjs/mock-builders/event/messageUpdated.js.map +1 -1
  673. package/lib/commonjs/mock-builders/event/notificationAddedToChannel.js +0 -2
  674. package/lib/commonjs/mock-builders/event/notificationAddedToChannel.js.map +1 -1
  675. package/lib/commonjs/mock-builders/event/notificationMessageNew.js +0 -2
  676. package/lib/commonjs/mock-builders/event/notificationMessageNew.js.map +1 -1
  677. package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js +0 -4
  678. package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js.map +1 -1
  679. package/lib/commonjs/mock-builders/event/notificationRemovedFromChannel.js +0 -2
  680. package/lib/commonjs/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
  681. package/lib/commonjs/mock-builders/event/reactionDeleted.js +0 -2
  682. package/lib/commonjs/mock-builders/event/reactionDeleted.js.map +1 -1
  683. package/lib/commonjs/mock-builders/event/reactionNew.js +0 -2
  684. package/lib/commonjs/mock-builders/event/reactionNew.js.map +1 -1
  685. package/lib/commonjs/mock-builders/event/reactionUpdated.js +0 -2
  686. package/lib/commonjs/mock-builders/event/reactionUpdated.js.map +1 -1
  687. package/lib/commonjs/mock-builders/event/typing.js +0 -2
  688. package/lib/commonjs/mock-builders/event/typing.js.map +1 -1
  689. package/lib/commonjs/mock-builders/event/userPresence.js +0 -2
  690. package/lib/commonjs/mock-builders/event/userPresence.js.map +1 -1
  691. package/lib/commonjs/mock-builders/event/userUpdated.js +0 -2
  692. package/lib/commonjs/mock-builders/event/userUpdated.js.map +1 -1
  693. package/lib/commonjs/mock-builders/generator/attachment.js +0 -24
  694. package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
  695. package/lib/commonjs/mock-builders/generator/channel.js +13 -28
  696. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  697. package/lib/commonjs/mock-builders/generator/member.js +0 -5
  698. package/lib/commonjs/mock-builders/generator/member.js.map +1 -1
  699. package/lib/commonjs/mock-builders/generator/message.js +0 -8
  700. package/lib/commonjs/mock-builders/generator/message.js.map +1 -1
  701. package/lib/commonjs/mock-builders/generator/reaction.js +0 -5
  702. package/lib/commonjs/mock-builders/generator/reaction.js.map +1 -1
  703. package/lib/commonjs/mock-builders/generator/user.js +0 -10
  704. package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
  705. package/lib/commonjs/mock-builders/mock.js +23 -47
  706. package/lib/commonjs/mock-builders/mock.js.map +1 -1
  707. package/lib/commonjs/mock-builders/native/react-native-mock.js.map +1 -1
  708. package/lib/commonjs/native.js +0 -23
  709. package/lib/commonjs/native.js.map +1 -1
  710. package/lib/commonjs/store/QuickSqliteClient.js +2 -49
  711. package/lib/commonjs/store/QuickSqliteClient.js.map +1 -1
  712. package/lib/commonjs/store/QuickSqliteClient_v4.js +12 -41
  713. package/lib/commonjs/store/QuickSqliteClient_v4.js.map +1 -1
  714. package/lib/commonjs/store/apis/addPendingTask.js +3 -12
  715. package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
  716. package/lib/commonjs/store/apis/deleteChannel.js +2 -8
  717. package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
  718. package/lib/commonjs/store/apis/deleteMember.js +3 -9
  719. package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
  720. package/lib/commonjs/store/apis/deleteMessage.js +2 -8
  721. package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
  722. package/lib/commonjs/store/apis/deleteMessagesForChannel.js +2 -8
  723. package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
  724. package/lib/commonjs/store/apis/deletePendingTask.js +0 -6
  725. package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
  726. package/lib/commonjs/store/apis/deleteReaction.js +4 -10
  727. package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
  728. package/lib/commonjs/store/apis/deleteReactions.js +2 -8
  729. package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
  730. package/lib/commonjs/store/apis/getAllChannelIds.js +0 -3
  731. package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
  732. package/lib/commonjs/store/apis/getAppSettings.js +0 -7
  733. package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
  734. package/lib/commonjs/store/apis/getChannelMessages.js +1 -8
  735. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  736. package/lib/commonjs/store/apis/getChannels.js +1 -10
  737. package/lib/commonjs/store/apis/getChannels.js.map +1 -1
  738. package/lib/commonjs/store/apis/getChannelsForFilterSort.js +2 -10
  739. package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
  740. package/lib/commonjs/store/apis/getLastSyncedAt.js +0 -7
  741. package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
  742. package/lib/commonjs/store/apis/getMembers.js +0 -5
  743. package/lib/commonjs/store/apis/getMembers.js.map +1 -1
  744. package/lib/commonjs/store/apis/getPendingTasks.js +0 -7
  745. package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
  746. package/lib/commonjs/store/apis/getReads.js +0 -5
  747. package/lib/commonjs/store/apis/getReads.js.map +1 -1
  748. package/lib/commonjs/store/apis/index.js +0 -46
  749. package/lib/commonjs/store/apis/index.js.map +1 -1
  750. package/lib/commonjs/store/apis/insertReaction.js +2 -9
  751. package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
  752. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +1 -9
  753. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  754. package/lib/commonjs/store/apis/queries/selectChannels.js +1 -8
  755. package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
  756. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +0 -6
  757. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
  758. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +0 -6
  759. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  760. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +0 -6
  761. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  762. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +0 -6
  763. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
  764. package/lib/commonjs/store/apis/updateMessage.js +2 -22
  765. package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
  766. package/lib/commonjs/store/apis/updateReaction.js +4 -18
  767. package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
  768. package/lib/commonjs/store/apis/upsertAppSettings.js +3 -8
  769. package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
  770. package/lib/commonjs/store/apis/upsertChannelData.js +2 -9
  771. package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
  772. package/lib/commonjs/store/apis/upsertChannels.js +8 -26
  773. package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
  774. package/lib/commonjs/store/apis/upsertCidsForQuery.js +4 -11
  775. package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
  776. package/lib/commonjs/store/apis/upsertLastSyncedAt.js +1 -6
  777. package/lib/commonjs/store/apis/upsertLastSyncedAt.js.map +1 -1
  778. package/lib/commonjs/store/apis/upsertMembers.js +3 -12
  779. package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
  780. package/lib/commonjs/store/apis/upsertMessages.js +2 -16
  781. package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
  782. package/lib/commonjs/store/apis/upsertReads.js +3 -12
  783. package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
  784. package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js +1 -3
  785. package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
  786. package/lib/commonjs/store/constants.js.map +1 -1
  787. package/lib/commonjs/store/mappers/mapChannelDataToStorable.js +23 -29
  788. package/lib/commonjs/store/mappers/mapChannelDataToStorable.js.map +1 -1
  789. package/lib/commonjs/store/mappers/mapDateTimeToStorable.js +0 -2
  790. package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +1 -1
  791. package/lib/commonjs/store/mappers/mapMemberToStorable.js +11 -14
  792. package/lib/commonjs/store/mappers/mapMemberToStorable.js.map +1 -1
  793. package/lib/commonjs/store/mappers/mapMessageToStorable.js +12 -18
  794. package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
  795. package/lib/commonjs/store/mappers/mapReactionToStorable.js +6 -12
  796. package/lib/commonjs/store/mappers/mapReactionToStorable.js.map +1 -1
  797. package/lib/commonjs/store/mappers/mapReadToStorable.js +3 -6
  798. package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
  799. package/lib/commonjs/store/mappers/mapStorableToChannel.js +23 -27
  800. package/lib/commonjs/store/mappers/mapStorableToChannel.js.map +1 -1
  801. package/lib/commonjs/store/mappers/mapStorableToMember.js +11 -14
  802. package/lib/commonjs/store/mappers/mapStorableToMember.js.map +1 -1
  803. package/lib/commonjs/store/mappers/mapStorableToMessage.js +8 -17
  804. package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
  805. package/lib/commonjs/store/mappers/mapStorableToReaction.js +6 -11
  806. package/lib/commonjs/store/mappers/mapStorableToReaction.js.map +1 -1
  807. package/lib/commonjs/store/mappers/mapStorableToRead.js +2 -5
  808. package/lib/commonjs/store/mappers/mapStorableToRead.js.map +1 -1
  809. package/lib/commonjs/store/mappers/mapStorableToTask.js +4 -6
  810. package/lib/commonjs/store/mappers/mapStorableToTask.js.map +1 -1
  811. package/lib/commonjs/store/mappers/mapStorableToUser.js +7 -11
  812. package/lib/commonjs/store/mappers/mapStorableToUser.js.map +1 -1
  813. package/lib/commonjs/store/mappers/mapTaskToStorable.js +0 -4
  814. package/lib/commonjs/store/mappers/mapTaskToStorable.js.map +1 -1
  815. package/lib/commonjs/store/mappers/mapUserToStorable.js +7 -12
  816. package/lib/commonjs/store/mappers/mapUserToStorable.js.map +1 -1
  817. package/lib/commonjs/store/schema.js.map +1 -1
  818. package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js +0 -5
  819. package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js.map +1 -1
  820. package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js +0 -8
  821. package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js.map +1 -1
  822. package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js +2 -10
  823. package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
  824. package/lib/commonjs/store/sqlite-utils/createDeleteQuery.js +0 -3
  825. package/lib/commonjs/store/sqlite-utils/createDeleteQuery.js.map +1 -1
  826. package/lib/commonjs/store/sqlite-utils/createSelectQuery.js +5 -14
  827. package/lib/commonjs/store/sqlite-utils/createSelectQuery.js.map +1 -1
  828. package/lib/commonjs/store/sqlite-utils/createUpdateQuery.js +3 -11
  829. package/lib/commonjs/store/sqlite-utils/createUpdateQuery.js.map +1 -1
  830. package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js +0 -5
  831. package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js.map +1 -1
  832. package/lib/commonjs/store/sqlite-utils/printRow.js +0 -5
  833. package/lib/commonjs/store/sqlite-utils/printRow.js.map +1 -1
  834. package/lib/commonjs/store/types.js.map +1 -1
  835. package/lib/commonjs/test-utils/BetterSqlite.js +0 -11
  836. package/lib/commonjs/test-utils/BetterSqlite.js.map +1 -1
  837. package/lib/commonjs/types/types.js.map +1 -1
  838. package/lib/commonjs/utils/DBSyncManager.js +217 -321
  839. package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
  840. package/lib/commonjs/utils/Streami18n.js +74 -181
  841. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  842. package/lib/commonjs/utils/addReactionToLocalState.js +4 -21
  843. package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
  844. package/lib/commonjs/utils/date.js +0 -2
  845. package/lib/commonjs/utils/date.js.map +1 -1
  846. package/lib/commonjs/utils/getResizedImageUrl.js +4 -10
  847. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
  848. package/lib/commonjs/utils/getUrlOfImageAttachment.js +0 -1
  849. package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -1
  850. package/lib/commonjs/utils/patchMessageTextCommand.js +0 -6
  851. package/lib/commonjs/utils/patchMessageTextCommand.js.map +1 -1
  852. package/lib/commonjs/utils/removeReactionFromLocalState.js +3 -9
  853. package/lib/commonjs/utils/removeReactionFromLocalState.js.map +1 -1
  854. package/lib/commonjs/utils/removeReservedFields.js +0 -4
  855. package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
  856. package/lib/commonjs/utils/utils.js +86 -179
  857. package/lib/commonjs/utils/utils.js.map +1 -1
  858. package/lib/commonjs/version.json +1 -1
  859. package/lib/module/components/Attachment/Attachment.js +45 -56
  860. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  861. package/lib/module/components/Attachment/AttachmentActions.js +25 -43
  862. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  863. package/lib/module/components/Attachment/AudioAttachment.js +114 -191
  864. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  865. package/lib/module/components/Attachment/Card.js +53 -80
  866. package/lib/module/components/Attachment/Card.js.map +1 -1
  867. package/lib/module/components/Attachment/FileAttachment.js +30 -57
  868. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  869. package/lib/module/components/Attachment/FileAttachmentGroup.js +19 -50
  870. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  871. package/lib/module/components/Attachment/FileIcon.js +3 -45
  872. package/lib/module/components/Attachment/FileIcon.js.map +1 -1
  873. package/lib/module/components/Attachment/Gallery.js +121 -162
  874. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  875. package/lib/module/components/Attachment/GalleryImage.js +5 -23
  876. package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
  877. package/lib/module/components/Attachment/Giphy.js +76 -109
  878. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  879. package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js +7 -23
  880. package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
  881. package/lib/module/components/Attachment/ImageLoadingIndicator.js +3 -15
  882. package/lib/module/components/Attachment/ImageLoadingIndicator.js.map +1 -1
  883. package/lib/module/components/Attachment/VideoThumbnail.js +10 -20
  884. package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
  885. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js +1 -10
  886. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  887. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +8 -24
  888. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  889. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +22 -35
  890. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  891. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js +1 -7
  892. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  893. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +4 -7
  894. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  895. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js +5 -9
  896. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  897. package/lib/module/components/Attachment/utils/buildGallery/types.js.map +1 -1
  898. package/lib/module/components/Attachment/utils/getAspectRatio.js +0 -2
  899. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
  900. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js +12 -14
  901. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
  902. package/lib/module/components/Attachment/utils/getGiphyMimeType.js +0 -2
  903. package/lib/module/components/Attachment/utils/getGiphyMimeType.js.map +1 -1
  904. package/lib/module/components/Attachment/utils/openUrlSafely.js +19 -33
  905. package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
  906. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +74 -123
  907. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  908. package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js +4 -18
  909. package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
  910. package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js +33 -56
  911. package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
  912. package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js +2 -10
  913. package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
  914. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +71 -117
  915. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  916. package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js +33 -59
  917. package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
  918. package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js +2 -10
  919. package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
  920. package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js +2 -10
  921. package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
  922. package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js +4 -14
  923. package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
  924. package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js +4 -13
  925. package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
  926. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +177 -285
  927. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  928. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +6 -24
  929. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  930. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +12 -30
  931. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  932. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +30 -47
  933. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  934. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +21 -49
  935. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  936. package/lib/module/components/Avatar/Avatar.js +22 -42
  937. package/lib/module/components/Avatar/Avatar.js.map +1 -1
  938. package/lib/module/components/Avatar/GroupAvatar.js +15 -33
  939. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  940. package/lib/module/components/Channel/Channel.js +1136 -1586
  941. package/lib/module/components/Channel/Channel.js.map +1 -1
  942. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +31 -34
  943. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  944. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +40 -43
  945. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  946. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +81 -84
  947. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  948. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +1 -11
  949. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  950. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js +9 -13
  951. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  952. package/lib/module/components/Channel/hooks/useCreateThreadContext.js +9 -13
  953. package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  954. package/lib/module/components/Channel/hooks/useCreateTypingContext.js +0 -3
  955. package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  956. package/lib/module/components/Channel/hooks/useTargetedMessage.js +3 -12
  957. package/lib/module/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  958. package/lib/module/components/ChannelList/ChannelList.js +71 -110
  959. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  960. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +2 -12
  961. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  962. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js +12 -24
  963. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  964. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +9 -20
  965. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  966. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js +6 -17
  967. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  968. package/lib/module/components/ChannelList/ChannelListMessenger.js +55 -84
  969. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  970. package/lib/module/components/ChannelList/Skeleton.js +16 -33
  971. package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
  972. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +28 -50
  973. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  974. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js +2 -14
  975. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  976. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js +2 -14
  977. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  978. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js +4 -12
  979. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  980. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js +2 -16
  981. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  982. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js +28 -49
  983. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  984. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js +2 -17
  985. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  986. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +28 -50
  987. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  988. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js +2 -12
  989. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  990. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js +1 -12
  991. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  992. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +29 -34
  993. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  994. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +141 -219
  995. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  996. package/lib/module/components/ChannelList/utils.js +13 -26
  997. package/lib/module/components/ChannelList/utils.js.map +1 -1
  998. package/lib/module/components/ChannelPreview/ChannelAvatar.js +3 -19
  999. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  1000. package/lib/module/components/ChannelPreview/ChannelPreview.js +14 -44
  1001. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  1002. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +4 -15
  1003. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  1004. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +35 -60
  1005. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  1006. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +7 -18
  1007. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  1008. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +10 -24
  1009. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  1010. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +4 -14
  1011. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  1012. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +7 -17
  1013. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  1014. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +4 -27
  1015. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  1016. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +12 -36
  1017. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  1018. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +4 -21
  1019. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  1020. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +22 -68
  1021. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  1022. package/lib/module/components/Chat/Chat.js +26 -69
  1023. package/lib/module/components/Chat/Chat.js.map +1 -1
  1024. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +0 -26
  1025. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  1026. package/lib/module/components/Chat/hooks/useAppSettings.js +42 -69
  1027. package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
  1028. package/lib/module/components/Chat/hooks/useCreateChatContext.js +8 -11
  1029. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  1030. package/lib/module/components/Chat/hooks/useIsOnline.js +19 -50
  1031. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  1032. package/lib/module/components/Chat/hooks/useMutedUsers.js +3 -11
  1033. package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
  1034. package/lib/module/components/Chat/hooks/useSyncDatabase.js +1 -8
  1035. package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  1036. package/lib/module/components/ImageBackground.js +7 -21
  1037. package/lib/module/components/ImageBackground.js.map +1 -1
  1038. package/lib/module/components/ImageGallery/ImageGallery.js +53 -131
  1039. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  1040. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +12 -27
  1041. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  1042. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +21 -52
  1043. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  1044. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +79 -125
  1045. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  1046. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +26 -56
  1047. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  1048. package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js +12 -32
  1049. package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  1050. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +14 -27
  1051. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  1052. package/lib/module/components/ImageGallery/components/ImageGrid.js +16 -38
  1053. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  1054. package/lib/module/components/ImageGallery/components/ImageGridHandle.js +12 -26
  1055. package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  1056. package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js +15 -52
  1057. package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  1058. package/lib/module/components/Indicators/EmptyStateIndicator.js +10 -25
  1059. package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
  1060. package/lib/module/components/Indicators/LoadingDot.js +10 -21
  1061. package/lib/module/components/Indicators/LoadingDot.js.map +1 -1
  1062. package/lib/module/components/Indicators/LoadingDots.js +11 -21
  1063. package/lib/module/components/Indicators/LoadingDots.js.map +1 -1
  1064. package/lib/module/components/Indicators/LoadingErrorIndicator.js +16 -33
  1065. package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  1066. package/lib/module/components/Indicators/LoadingIndicator.js +8 -26
  1067. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  1068. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js +9 -67
  1069. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  1070. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +22 -68
  1071. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  1072. package/lib/module/components/Message/Message.js +246 -335
  1073. package/lib/module/components/Message/Message.js.map +1 -1
  1074. package/lib/module/components/Message/MessageSimple/MessageAvatar.js +20 -40
  1075. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  1076. package/lib/module/components/Message/MessageSimple/MessageContent.js +113 -164
  1077. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  1078. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +27 -49
  1079. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  1080. package/lib/module/components/Message/MessageSimple/MessageFooter.js +55 -68
  1081. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  1082. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +11 -34
  1083. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  1084. package/lib/module/components/Message/MessageSimple/MessageReplies.js +37 -57
  1085. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  1086. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +13 -30
  1087. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  1088. package/lib/module/components/Message/MessageSimple/MessageSimple.js +37 -57
  1089. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  1090. package/lib/module/components/Message/MessageSimple/MessageStatus.js +16 -40
  1091. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  1092. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +30 -51
  1093. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  1094. package/lib/module/components/Message/MessageSimple/ReactionList.js +56 -84
  1095. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  1096. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js +23 -37
  1097. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  1098. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js +0 -1
  1099. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  1100. package/lib/module/components/Message/MessageSimple/utils/renderText.js +22 -66
  1101. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  1102. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js +97 -127
  1103. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  1104. package/lib/module/components/Message/hooks/useCreateMessageContext.js +37 -42
  1105. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  1106. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +108 -171
  1107. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  1108. package/lib/module/components/Message/hooks/useMessageActions.js +141 -225
  1109. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  1110. package/lib/module/components/Message/utils/messageActions.js +15 -30
  1111. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  1112. package/lib/module/components/MessageInput/AttachButton.js +15 -33
  1113. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  1114. package/lib/module/components/MessageInput/CommandsButton.js +13 -31
  1115. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  1116. package/lib/module/components/MessageInput/CooldownTimer.js +8 -20
  1117. package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -1
  1118. package/lib/module/components/MessageInput/FileUploadPreview.js +48 -86
  1119. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  1120. package/lib/module/components/MessageInput/ImageUploadPreview.js +25 -57
  1121. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  1122. package/lib/module/components/MessageInput/InputButtons.js +47 -69
  1123. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  1124. package/lib/module/components/MessageInput/MessageInput.js +176 -236
  1125. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  1126. package/lib/module/components/MessageInput/MoreOptionsButton.js +9 -25
  1127. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  1128. package/lib/module/components/MessageInput/SendButton.js +15 -33
  1129. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  1130. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +9 -20
  1131. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  1132. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +27 -50
  1133. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  1134. package/lib/module/components/MessageInput/UploadProgressIndicator.js +9 -28
  1135. package/lib/module/components/MessageInput/UploadProgressIndicator.js.map +1 -1
  1136. package/lib/module/components/MessageInput/components/InputEditingStateHeader.js +14 -34
  1137. package/lib/module/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
  1138. package/lib/module/components/MessageInput/components/InputGiphySearch.js +20 -41
  1139. package/lib/module/components/MessageInput/components/InputGiphySearch.js.map +1 -1
  1140. package/lib/module/components/MessageInput/components/InputReplyStateHeader.js +14 -34
  1141. package/lib/module/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
  1142. package/lib/module/components/MessageInput/hooks/useCooldown.js +6 -24
  1143. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
  1144. package/lib/module/components/MessageInput/hooks/useCountdown.js +3 -16
  1145. package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -1
  1146. package/lib/module/components/MessageList/DateHeader.js +8 -18
  1147. package/lib/module/components/MessageList/DateHeader.js.map +1 -1
  1148. package/lib/module/components/MessageList/InlineDateSeparator.js +9 -22
  1149. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  1150. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +3 -21
  1151. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  1152. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -21
  1153. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  1154. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -21
  1155. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  1156. package/lib/module/components/MessageList/InlineUnreadIndicator.js +10 -26
  1157. package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  1158. package/lib/module/components/MessageList/MessageList.js +239 -355
  1159. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  1160. package/lib/module/components/MessageList/MessageSystem.js +14 -27
  1161. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  1162. package/lib/module/components/MessageList/NetworkDownIndicator.js +9 -26
  1163. package/lib/module/components/MessageList/NetworkDownIndicator.js.map +1 -1
  1164. package/lib/module/components/MessageList/ScrollToBottomButton.js +16 -27
  1165. package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
  1166. package/lib/module/components/MessageList/TypingIndicator.js +8 -19
  1167. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  1168. package/lib/module/components/MessageList/TypingIndicatorContainer.js +8 -29
  1169. package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  1170. package/lib/module/components/MessageList/hooks/useMessageList.js +10 -34
  1171. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  1172. package/lib/module/components/MessageList/hooks/useTypingString.js +4 -18
  1173. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  1174. package/lib/module/components/MessageList/utils/filterTypingUsers.js +2 -10
  1175. package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  1176. package/lib/module/components/MessageList/utils/getDateSeparators.js +3 -11
  1177. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  1178. package/lib/module/components/MessageList/utils/getGroupStyles.js +5 -18
  1179. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  1180. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +1 -9
  1181. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  1182. package/lib/module/components/MessageList/utils/getReadStates.js +1 -22
  1183. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  1184. package/lib/module/components/MessageOverlay/MessageActionList.js +16 -39
  1185. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  1186. package/lib/module/components/MessageOverlay/MessageActionListItem.js +16 -36
  1187. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  1188. package/lib/module/components/MessageOverlay/MessageOverlay.js +75 -127
  1189. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  1190. package/lib/module/components/MessageOverlay/OverlayBackdrop.js +3 -12
  1191. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  1192. package/lib/module/components/MessageOverlay/OverlayReactionList.js +39 -77
  1193. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  1194. package/lib/module/components/MessageOverlay/OverlayReactions.js +31 -53
  1195. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  1196. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js +5 -14
  1197. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
  1198. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +2 -5
  1199. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  1200. package/lib/module/components/ProgressControl/ProgressControl.js +9 -26
  1201. package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
  1202. package/lib/module/components/RTLComponents/WritingDirectionAwareText.js +3 -13
  1203. package/lib/module/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
  1204. package/lib/module/components/Reply/Reply.js +37 -79
  1205. package/lib/module/components/Reply/Reply.js.map +1 -1
  1206. package/lib/module/components/Spinner/Spinner.js +6 -20
  1207. package/lib/module/components/Spinner/Spinner.js.map +1 -1
  1208. package/lib/module/components/Thread/Thread.js +28 -57
  1209. package/lib/module/components/Thread/Thread.js.map +1 -1
  1210. package/lib/module/components/Thread/components/ThreadFooterComponent.js +15 -43
  1211. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  1212. package/lib/module/components/docs/data.js +0 -7
  1213. package/lib/module/components/docs/data.js.map +1 -1
  1214. package/lib/module/components/index.js +0 -284
  1215. package/lib/module/components/index.js.map +1 -1
  1216. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +2 -18
  1217. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  1218. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +20 -50
  1219. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  1220. package/lib/module/contexts/channelContext/ChannelContext.js +2 -23
  1221. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  1222. package/lib/module/contexts/channelsContext/ChannelsContext.js +2 -23
  1223. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  1224. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +4 -37
  1225. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  1226. package/lib/module/contexts/channelsStateContext/useChannelState.js +63 -81
  1227. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  1228. package/lib/module/contexts/chatContext/ChatContext.js +2 -23
  1229. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  1230. package/lib/module/contexts/debugContext/DebugContext.js +3 -17
  1231. package/lib/module/contexts/debugContext/DebugContext.js.map +1 -1
  1232. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +7 -32
  1233. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  1234. package/lib/module/contexts/index.js +0 -48
  1235. package/lib/module/contexts/index.js.map +1 -1
  1236. package/lib/module/contexts/keyboardContext/KeyboardContext.js +2 -20
  1237. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  1238. package/lib/module/contexts/messageContext/MessageContext.js +2 -20
  1239. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  1240. package/lib/module/contexts/messageInputContext/MessageInputContext.js +531 -762
  1241. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  1242. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +88 -91
  1243. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  1244. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +19 -44
  1245. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  1246. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +2 -24
  1247. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  1248. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js +3 -12
  1249. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
  1250. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +40 -52
  1251. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
  1252. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -23
  1253. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  1254. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -20
  1255. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  1256. package/lib/module/contexts/overlayContext/OverlayProvider.js +76 -124
  1257. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  1258. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +2 -18
  1259. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  1260. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -23
  1261. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  1262. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +11 -46
  1263. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  1264. package/lib/module/contexts/themeContext/ThemeContext.js +5 -28
  1265. package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
  1266. package/lib/module/contexts/themeContext/utils/theme.js +0 -4
  1267. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  1268. package/lib/module/contexts/threadContext/ThreadContext.js +2 -23
  1269. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  1270. package/lib/module/contexts/translationContext/TranslationContext.js +2 -26
  1271. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  1272. package/lib/module/contexts/typingContext/TypingContext.js +2 -23
  1273. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  1274. package/lib/module/contexts/utils/defaultBaseContextValue.js.map +1 -1
  1275. package/lib/module/contexts/utils/getDisplayName.js +0 -2
  1276. package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
  1277. package/lib/module/contexts/utils/isTestEnvironment.js +0 -2
  1278. package/lib/module/contexts/utils/isTestEnvironment.js.map +1 -1
  1279. package/lib/module/emoji-data/compile.js +2 -4
  1280. package/lib/module/emoji-data/compile.js.map +1 -1
  1281. package/lib/module/emoji-data/compiled.js.map +1 -1
  1282. package/lib/module/emoji-data/emojiNames.js.map +1 -1
  1283. package/lib/module/emoji-data/emojis.js.map +1 -1
  1284. package/lib/module/emoji-data/index.js +1 -7
  1285. package/lib/module/emoji-data/index.js.map +1 -1
  1286. package/lib/module/hooks/index.js +0 -4
  1287. package/lib/module/hooks/index.js.map +1 -1
  1288. package/lib/module/hooks/useAppStateListener.js +0 -7
  1289. package/lib/module/hooks/useAppStateListener.js.map +1 -1
  1290. package/lib/module/hooks/useIsMountedRef.js +0 -3
  1291. package/lib/module/hooks/useIsMountedRef.js.map +1 -1
  1292. package/lib/module/hooks/useLoadingImage.js +7 -16
  1293. package/lib/module/hooks/useLoadingImage.js.map +1 -1
  1294. package/lib/module/hooks/useStreami18n.js +4 -16
  1295. package/lib/module/hooks/useStreami18n.js.map +1 -1
  1296. package/lib/module/hooks/useTranslatedMessage.js +1 -11
  1297. package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
  1298. package/lib/module/icons/ArrowRight.js +1 -8
  1299. package/lib/module/icons/ArrowRight.js.map +1 -1
  1300. package/lib/module/icons/AtMentions.js +1 -8
  1301. package/lib/module/icons/AtMentions.js.map +1 -1
  1302. package/lib/module/icons/Attach.js +1 -8
  1303. package/lib/module/icons/Attach.js.map +1 -1
  1304. package/lib/module/icons/Audio.js +1 -9
  1305. package/lib/module/icons/Audio.js.map +1 -1
  1306. package/lib/module/icons/CSV.js +1 -8
  1307. package/lib/module/icons/CSV.js.map +1 -1
  1308. package/lib/module/icons/Camera.js +1 -8
  1309. package/lib/module/icons/Camera.js.map +1 -1
  1310. package/lib/module/icons/Check.js +1 -8
  1311. package/lib/module/icons/Check.js.map +1 -1
  1312. package/lib/module/icons/CheckAll.js +1 -8
  1313. package/lib/module/icons/CheckAll.js.map +1 -1
  1314. package/lib/module/icons/CheckSend.js +1 -8
  1315. package/lib/module/icons/CheckSend.js.map +1 -1
  1316. package/lib/module/icons/CircleClose.js +1 -8
  1317. package/lib/module/icons/CircleClose.js.map +1 -1
  1318. package/lib/module/icons/CirclePlus.js +1 -8
  1319. package/lib/module/icons/CirclePlus.js.map +1 -1
  1320. package/lib/module/icons/CircleRight.js +1 -8
  1321. package/lib/module/icons/CircleRight.js.map +1 -1
  1322. package/lib/module/icons/Close.js +1 -8
  1323. package/lib/module/icons/Close.js.map +1 -1
  1324. package/lib/module/icons/Copy.js +1 -8
  1325. package/lib/module/icons/Copy.js.map +1 -1
  1326. package/lib/module/icons/CurveLineLeftUp.js +1 -8
  1327. package/lib/module/icons/CurveLineLeftUp.js.map +1 -1
  1328. package/lib/module/icons/DOC.js +1 -9
  1329. package/lib/module/icons/DOC.js.map +1 -1
  1330. package/lib/module/icons/DOCX.js +1 -9
  1331. package/lib/module/icons/DOCX.js.map +1 -1
  1332. package/lib/module/icons/Delete.js +1 -8
  1333. package/lib/module/icons/Delete.js.map +1 -1
  1334. package/lib/module/icons/Down.js +1 -8
  1335. package/lib/module/icons/Down.js.map +1 -1
  1336. package/lib/module/icons/DownloadArrow.js +1 -8
  1337. package/lib/module/icons/DownloadArrow.js.map +1 -1
  1338. package/lib/module/icons/DownloadCloud.js +1 -8
  1339. package/lib/module/icons/DownloadCloud.js.map +1 -1
  1340. package/lib/module/icons/Edit.js +1 -8
  1341. package/lib/module/icons/Edit.js.map +1 -1
  1342. package/lib/module/icons/Error.js +1 -8
  1343. package/lib/module/icons/Error.js.map +1 -1
  1344. package/lib/module/icons/Eye.js +1 -8
  1345. package/lib/module/icons/Eye.js.map +1 -1
  1346. package/lib/module/icons/Flag.js +1 -8
  1347. package/lib/module/icons/Flag.js.map +1 -1
  1348. package/lib/module/icons/Folder.js +1 -8
  1349. package/lib/module/icons/Folder.js.map +1 -1
  1350. package/lib/module/icons/GenericFile.js +1 -9
  1351. package/lib/module/icons/GenericFile.js.map +1 -1
  1352. package/lib/module/icons/GiphyIcon.js +1 -8
  1353. package/lib/module/icons/GiphyIcon.js.map +1 -1
  1354. package/lib/module/icons/Grid.js +1 -8
  1355. package/lib/module/icons/Grid.js.map +1 -1
  1356. package/lib/module/icons/Group.js +1 -8
  1357. package/lib/module/icons/Group.js.map +1 -1
  1358. package/lib/module/icons/HTML.js +1 -8
  1359. package/lib/module/icons/HTML.js.map +1 -1
  1360. package/lib/module/icons/Imgur.js +1 -9
  1361. package/lib/module/icons/Imgur.js.map +1 -1
  1362. package/lib/module/icons/LOLReaction.js +1 -8
  1363. package/lib/module/icons/LOLReaction.js.map +1 -1
  1364. package/lib/module/icons/Lightning.js +1 -8
  1365. package/lib/module/icons/Lightning.js.map +1 -1
  1366. package/lib/module/icons/Link.js +1 -8
  1367. package/lib/module/icons/Link.js.map +1 -1
  1368. package/lib/module/icons/Loading.js +12 -20
  1369. package/lib/module/icons/Loading.js.map +1 -1
  1370. package/lib/module/icons/Logo.js +1 -8
  1371. package/lib/module/icons/Logo.js.map +1 -1
  1372. package/lib/module/icons/LoveReaction.js +1 -8
  1373. package/lib/module/icons/LoveReaction.js.map +1 -1
  1374. package/lib/module/icons/MD.js +1 -8
  1375. package/lib/module/icons/MD.js.map +1 -1
  1376. package/lib/module/icons/MailOpen.js +1 -8
  1377. package/lib/module/icons/MailOpen.js.map +1 -1
  1378. package/lib/module/icons/MenuPointHorizontal.js +1 -8
  1379. package/lib/module/icons/MenuPointHorizontal.js.map +1 -1
  1380. package/lib/module/icons/MenuPointVertical.js +1 -8
  1381. package/lib/module/icons/MenuPointVertical.js.map +1 -1
  1382. package/lib/module/icons/MessageFlag.js +1 -8
  1383. package/lib/module/icons/MessageFlag.js.map +1 -1
  1384. package/lib/module/icons/MessageIcon.js +1 -8
  1385. package/lib/module/icons/MessageIcon.js.map +1 -1
  1386. package/lib/module/icons/Mute.js +1 -8
  1387. package/lib/module/icons/Mute.js.map +1 -1
  1388. package/lib/module/icons/Notification.js +1 -8
  1389. package/lib/module/icons/Notification.js.map +1 -1
  1390. package/lib/module/icons/ODT.js +1 -8
  1391. package/lib/module/icons/ODT.js.map +1 -1
  1392. package/lib/module/icons/PDF.js +1 -8
  1393. package/lib/module/icons/PDF.js.map +1 -1
  1394. package/lib/module/icons/PPT.js +1 -9
  1395. package/lib/module/icons/PPT.js.map +1 -1
  1396. package/lib/module/icons/PPTX.js +1 -9
  1397. package/lib/module/icons/PPTX.js.map +1 -1
  1398. package/lib/module/icons/Pause.js +2 -10
  1399. package/lib/module/icons/Pause.js.map +1 -1
  1400. package/lib/module/icons/Picture.js +1 -8
  1401. package/lib/module/icons/Picture.js.map +1 -1
  1402. package/lib/module/icons/Pin.js +1 -8
  1403. package/lib/module/icons/Pin.js.map +1 -1
  1404. package/lib/module/icons/PinHeader.js +1 -8
  1405. package/lib/module/icons/PinHeader.js.map +1 -1
  1406. package/lib/module/icons/Play.js +1 -8
  1407. package/lib/module/icons/Play.js.map +1 -1
  1408. package/lib/module/icons/RAR.js +1 -8
  1409. package/lib/module/icons/RAR.js.map +1 -1
  1410. package/lib/module/icons/RTF.js +1 -8
  1411. package/lib/module/icons/RTF.js.map +1 -1
  1412. package/lib/module/icons/Recorder.js +1 -8
  1413. package/lib/module/icons/Recorder.js.map +1 -1
  1414. package/lib/module/icons/Refresh.js +1 -8
  1415. package/lib/module/icons/Refresh.js.map +1 -1
  1416. package/lib/module/icons/SEVEN_Z.js +1 -8
  1417. package/lib/module/icons/SEVEN_Z.js.map +1 -1
  1418. package/lib/module/icons/Search.js +1 -8
  1419. package/lib/module/icons/Search.js.map +1 -1
  1420. package/lib/module/icons/SendRight.js +1 -8
  1421. package/lib/module/icons/SendRight.js.map +1 -1
  1422. package/lib/module/icons/SendUp.js +1 -8
  1423. package/lib/module/icons/SendUp.js.map +1 -1
  1424. package/lib/module/icons/Share.js +1 -9
  1425. package/lib/module/icons/Share.js.map +1 -1
  1426. package/lib/module/icons/ShareRightArrow.js +1 -8
  1427. package/lib/module/icons/ShareRightArrow.js.map +1 -1
  1428. package/lib/module/icons/Smile.js +1 -8
  1429. package/lib/module/icons/Smile.js.map +1 -1
  1430. package/lib/module/icons/Sound.js +1 -8
  1431. package/lib/module/icons/Sound.js.map +1 -1
  1432. package/lib/module/icons/TAR.js +1 -8
  1433. package/lib/module/icons/TAR.js.map +1 -1
  1434. package/lib/module/icons/TXT.js +1 -8
  1435. package/lib/module/icons/TXT.js.map +1 -1
  1436. package/lib/module/icons/ThreadReply.js +1 -8
  1437. package/lib/module/icons/ThreadReply.js.map +1 -1
  1438. package/lib/module/icons/ThumbsDownReaction.js +1 -8
  1439. package/lib/module/icons/ThumbsDownReaction.js.map +1 -1
  1440. package/lib/module/icons/ThumbsUpReaction.js +1 -8
  1441. package/lib/module/icons/ThumbsUpReaction.js.map +1 -1
  1442. package/lib/module/icons/Time.js +1 -8
  1443. package/lib/module/icons/Time.js.map +1 -1
  1444. package/lib/module/icons/Unknown.js +1 -8
  1445. package/lib/module/icons/Unknown.js.map +1 -1
  1446. package/lib/module/icons/Unpin.js +1 -8
  1447. package/lib/module/icons/Unpin.js.map +1 -1
  1448. package/lib/module/icons/User.js +1 -8
  1449. package/lib/module/icons/User.js.map +1 -1
  1450. package/lib/module/icons/UserAdd.js +1 -8
  1451. package/lib/module/icons/UserAdd.js.map +1 -1
  1452. package/lib/module/icons/UserAdmin.js +3 -12
  1453. package/lib/module/icons/UserAdmin.js.map +1 -1
  1454. package/lib/module/icons/UserDelete.js +1 -8
  1455. package/lib/module/icons/UserDelete.js.map +1 -1
  1456. package/lib/module/icons/UserMinus.js +1 -8
  1457. package/lib/module/icons/UserMinus.js.map +1 -1
  1458. package/lib/module/icons/Video.js +1 -8
  1459. package/lib/module/icons/Video.js.map +1 -1
  1460. package/lib/module/icons/Warning.js +1 -8
  1461. package/lib/module/icons/Warning.js.map +1 -1
  1462. package/lib/module/icons/WutReaction.js +1 -8
  1463. package/lib/module/icons/WutReaction.js.map +1 -1
  1464. package/lib/module/icons/XLS.js +1 -9
  1465. package/lib/module/icons/XLS.js.map +1 -1
  1466. package/lib/module/icons/XLSX.js +1 -9
  1467. package/lib/module/icons/XLSX.js.map +1 -1
  1468. package/lib/module/icons/ZIP.js +1 -8
  1469. package/lib/module/icons/ZIP.js.map +1 -1
  1470. package/lib/module/icons/index.js +0 -168
  1471. package/lib/module/icons/index.js.map +1 -1
  1472. package/lib/module/icons/utils/base.js +11 -25
  1473. package/lib/module/icons/utils/base.js.map +1 -1
  1474. package/lib/module/index.js +0 -35
  1475. package/lib/module/index.js.map +1 -1
  1476. package/lib/module/init.js +0 -3
  1477. package/lib/module/init.js.map +1 -1
  1478. package/lib/module/mock-builders/DB/consts.js.map +1 -1
  1479. package/lib/module/mock-builders/DB/mock.js +0 -11
  1480. package/lib/module/mock-builders/DB/mock.js.map +1 -1
  1481. package/lib/module/mock-builders/api/channelMocks.js +0 -2
  1482. package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
  1483. package/lib/module/mock-builders/api/deleteMessage.js +0 -4
  1484. package/lib/module/mock-builders/api/deleteMessage.js.map +1 -1
  1485. package/lib/module/mock-builders/api/deleteReaction.js +0 -4
  1486. package/lib/module/mock-builders/api/deleteReaction.js.map +1 -1
  1487. package/lib/module/mock-builders/api/error.js +0 -12
  1488. package/lib/module/mock-builders/api/error.js.map +1 -1
  1489. package/lib/module/mock-builders/api/getOrCreateChannel.js +0 -3
  1490. package/lib/module/mock-builders/api/getOrCreateChannel.js.map +1 -1
  1491. package/lib/module/mock-builders/api/queryChannels.js +0 -3
  1492. package/lib/module/mock-builders/api/queryChannels.js.map +1 -1
  1493. package/lib/module/mock-builders/api/queryMembers.js +0 -3
  1494. package/lib/module/mock-builders/api/queryMembers.js.map +1 -1
  1495. package/lib/module/mock-builders/api/sendMessage.js +0 -4
  1496. package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
  1497. package/lib/module/mock-builders/api/sendReaction.js +0 -4
  1498. package/lib/module/mock-builders/api/sendReaction.js.map +1 -1
  1499. package/lib/module/mock-builders/api/threadReplies.js +0 -3
  1500. package/lib/module/mock-builders/api/threadReplies.js.map +1 -1
  1501. package/lib/module/mock-builders/api/useMockedApis.js +1 -3
  1502. package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
  1503. package/lib/module/mock-builders/api/utils.js +0 -2
  1504. package/lib/module/mock-builders/api/utils.js.map +1 -1
  1505. package/lib/module/mock-builders/event/channelDeleted.js +0 -2
  1506. package/lib/module/mock-builders/event/channelDeleted.js.map +1 -1
  1507. package/lib/module/mock-builders/event/channelHidden.js +0 -2
  1508. package/lib/module/mock-builders/event/channelHidden.js.map +1 -1
  1509. package/lib/module/mock-builders/event/channelTruncated.js +0 -2
  1510. package/lib/module/mock-builders/event/channelTruncated.js.map +1 -1
  1511. package/lib/module/mock-builders/event/channelUpdated.js +0 -2
  1512. package/lib/module/mock-builders/event/channelUpdated.js.map +1 -1
  1513. package/lib/module/mock-builders/event/connectionChanged.js +0 -2
  1514. package/lib/module/mock-builders/event/connectionChanged.js.map +1 -1
  1515. package/lib/module/mock-builders/event/connectionRecovered.js +0 -2
  1516. package/lib/module/mock-builders/event/connectionRecovered.js.map +1 -1
  1517. package/lib/module/mock-builders/event/memberAdded.js +0 -2
  1518. package/lib/module/mock-builders/event/memberAdded.js.map +1 -1
  1519. package/lib/module/mock-builders/event/memberRemoved.js +0 -2
  1520. package/lib/module/mock-builders/event/memberRemoved.js.map +1 -1
  1521. package/lib/module/mock-builders/event/memberUpdated.js +0 -2
  1522. package/lib/module/mock-builders/event/memberUpdated.js.map +1 -1
  1523. package/lib/module/mock-builders/event/messageDeleted.js +0 -2
  1524. package/lib/module/mock-builders/event/messageDeleted.js.map +1 -1
  1525. package/lib/module/mock-builders/event/messageNew.js +0 -2
  1526. package/lib/module/mock-builders/event/messageNew.js.map +1 -1
  1527. package/lib/module/mock-builders/event/messageRead.js +0 -2
  1528. package/lib/module/mock-builders/event/messageRead.js.map +1 -1
  1529. package/lib/module/mock-builders/event/messageUpdated.js +0 -2
  1530. package/lib/module/mock-builders/event/messageUpdated.js.map +1 -1
  1531. package/lib/module/mock-builders/event/notificationAddedToChannel.js +0 -2
  1532. package/lib/module/mock-builders/event/notificationAddedToChannel.js.map +1 -1
  1533. package/lib/module/mock-builders/event/notificationMessageNew.js +0 -2
  1534. package/lib/module/mock-builders/event/notificationMessageNew.js.map +1 -1
  1535. package/lib/module/mock-builders/event/notificationMutesUpdated.js +0 -4
  1536. package/lib/module/mock-builders/event/notificationMutesUpdated.js.map +1 -1
  1537. package/lib/module/mock-builders/event/notificationRemovedFromChannel.js +0 -2
  1538. package/lib/module/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
  1539. package/lib/module/mock-builders/event/reactionDeleted.js +0 -2
  1540. package/lib/module/mock-builders/event/reactionDeleted.js.map +1 -1
  1541. package/lib/module/mock-builders/event/reactionNew.js +0 -2
  1542. package/lib/module/mock-builders/event/reactionNew.js.map +1 -1
  1543. package/lib/module/mock-builders/event/reactionUpdated.js +0 -2
  1544. package/lib/module/mock-builders/event/reactionUpdated.js.map +1 -1
  1545. package/lib/module/mock-builders/event/typing.js +0 -2
  1546. package/lib/module/mock-builders/event/typing.js.map +1 -1
  1547. package/lib/module/mock-builders/event/userPresence.js +0 -2
  1548. package/lib/module/mock-builders/event/userPresence.js.map +1 -1
  1549. package/lib/module/mock-builders/event/userUpdated.js +0 -2
  1550. package/lib/module/mock-builders/event/userUpdated.js.map +1 -1
  1551. package/lib/module/mock-builders/generator/attachment.js +0 -24
  1552. package/lib/module/mock-builders/generator/attachment.js.map +1 -1
  1553. package/lib/module/mock-builders/generator/channel.js +13 -28
  1554. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  1555. package/lib/module/mock-builders/generator/member.js +0 -5
  1556. package/lib/module/mock-builders/generator/member.js.map +1 -1
  1557. package/lib/module/mock-builders/generator/message.js +0 -8
  1558. package/lib/module/mock-builders/generator/message.js.map +1 -1
  1559. package/lib/module/mock-builders/generator/reaction.js +0 -5
  1560. package/lib/module/mock-builders/generator/reaction.js.map +1 -1
  1561. package/lib/module/mock-builders/generator/user.js +0 -10
  1562. package/lib/module/mock-builders/generator/user.js.map +1 -1
  1563. package/lib/module/mock-builders/mock.js +23 -47
  1564. package/lib/module/mock-builders/mock.js.map +1 -1
  1565. package/lib/module/mock-builders/native/react-native-mock.js.map +1 -1
  1566. package/lib/module/native.js +0 -23
  1567. package/lib/module/native.js.map +1 -1
  1568. package/lib/module/store/QuickSqliteClient.js +2 -49
  1569. package/lib/module/store/QuickSqliteClient.js.map +1 -1
  1570. package/lib/module/store/QuickSqliteClient_v4.js +12 -41
  1571. package/lib/module/store/QuickSqliteClient_v4.js.map +1 -1
  1572. package/lib/module/store/apis/addPendingTask.js +3 -12
  1573. package/lib/module/store/apis/addPendingTask.js.map +1 -1
  1574. package/lib/module/store/apis/deleteChannel.js +2 -8
  1575. package/lib/module/store/apis/deleteChannel.js.map +1 -1
  1576. package/lib/module/store/apis/deleteMember.js +3 -9
  1577. package/lib/module/store/apis/deleteMember.js.map +1 -1
  1578. package/lib/module/store/apis/deleteMessage.js +2 -8
  1579. package/lib/module/store/apis/deleteMessage.js.map +1 -1
  1580. package/lib/module/store/apis/deleteMessagesForChannel.js +2 -8
  1581. package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
  1582. package/lib/module/store/apis/deletePendingTask.js +0 -6
  1583. package/lib/module/store/apis/deletePendingTask.js.map +1 -1
  1584. package/lib/module/store/apis/deleteReaction.js +4 -10
  1585. package/lib/module/store/apis/deleteReaction.js.map +1 -1
  1586. package/lib/module/store/apis/deleteReactions.js +2 -8
  1587. package/lib/module/store/apis/deleteReactions.js.map +1 -1
  1588. package/lib/module/store/apis/getAllChannelIds.js +0 -3
  1589. package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
  1590. package/lib/module/store/apis/getAppSettings.js +0 -7
  1591. package/lib/module/store/apis/getAppSettings.js.map +1 -1
  1592. package/lib/module/store/apis/getChannelMessages.js +1 -8
  1593. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  1594. package/lib/module/store/apis/getChannels.js +1 -10
  1595. package/lib/module/store/apis/getChannels.js.map +1 -1
  1596. package/lib/module/store/apis/getChannelsForFilterSort.js +2 -10
  1597. package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
  1598. package/lib/module/store/apis/getLastSyncedAt.js +0 -7
  1599. package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
  1600. package/lib/module/store/apis/getMembers.js +0 -5
  1601. package/lib/module/store/apis/getMembers.js.map +1 -1
  1602. package/lib/module/store/apis/getPendingTasks.js +0 -7
  1603. package/lib/module/store/apis/getPendingTasks.js.map +1 -1
  1604. package/lib/module/store/apis/getReads.js +0 -5
  1605. package/lib/module/store/apis/getReads.js.map +1 -1
  1606. package/lib/module/store/apis/index.js +0 -46
  1607. package/lib/module/store/apis/index.js.map +1 -1
  1608. package/lib/module/store/apis/insertReaction.js +2 -9
  1609. package/lib/module/store/apis/insertReaction.js.map +1 -1
  1610. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +1 -9
  1611. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  1612. package/lib/module/store/apis/queries/selectChannels.js +1 -8
  1613. package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
  1614. package/lib/module/store/apis/queries/selectMembersForChannels.js +0 -6
  1615. package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
  1616. package/lib/module/store/apis/queries/selectMessagesForChannels.js +0 -6
  1617. package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  1618. package/lib/module/store/apis/queries/selectReactionsForMessages.js +0 -6
  1619. package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  1620. package/lib/module/store/apis/queries/selectReadsForChannels.js +0 -6
  1621. package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
  1622. package/lib/module/store/apis/updateMessage.js +2 -22
  1623. package/lib/module/store/apis/updateMessage.js.map +1 -1
  1624. package/lib/module/store/apis/updateReaction.js +4 -18
  1625. package/lib/module/store/apis/updateReaction.js.map +1 -1
  1626. package/lib/module/store/apis/upsertAppSettings.js +3 -8
  1627. package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
  1628. package/lib/module/store/apis/upsertChannelData.js +2 -9
  1629. package/lib/module/store/apis/upsertChannelData.js.map +1 -1
  1630. package/lib/module/store/apis/upsertChannels.js +8 -26
  1631. package/lib/module/store/apis/upsertChannels.js.map +1 -1
  1632. package/lib/module/store/apis/upsertCidsForQuery.js +4 -11
  1633. package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
  1634. package/lib/module/store/apis/upsertLastSyncedAt.js +1 -6
  1635. package/lib/module/store/apis/upsertLastSyncedAt.js.map +1 -1
  1636. package/lib/module/store/apis/upsertMembers.js +3 -12
  1637. package/lib/module/store/apis/upsertMembers.js.map +1 -1
  1638. package/lib/module/store/apis/upsertMessages.js +2 -16
  1639. package/lib/module/store/apis/upsertMessages.js.map +1 -1
  1640. package/lib/module/store/apis/upsertReads.js +3 -12
  1641. package/lib/module/store/apis/upsertReads.js.map +1 -1
  1642. package/lib/module/store/apis/utils/convertFilterSortToQuery.js +1 -3
  1643. package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
  1644. package/lib/module/store/constants.js.map +1 -1
  1645. package/lib/module/store/mappers/mapChannelDataToStorable.js +23 -29
  1646. package/lib/module/store/mappers/mapChannelDataToStorable.js.map +1 -1
  1647. package/lib/module/store/mappers/mapDateTimeToStorable.js +0 -2
  1648. package/lib/module/store/mappers/mapDateTimeToStorable.js.map +1 -1
  1649. package/lib/module/store/mappers/mapMemberToStorable.js +11 -14
  1650. package/lib/module/store/mappers/mapMemberToStorable.js.map +1 -1
  1651. package/lib/module/store/mappers/mapMessageToStorable.js +12 -18
  1652. package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
  1653. package/lib/module/store/mappers/mapReactionToStorable.js +6 -12
  1654. package/lib/module/store/mappers/mapReactionToStorable.js.map +1 -1
  1655. package/lib/module/store/mappers/mapReadToStorable.js +3 -6
  1656. package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
  1657. package/lib/module/store/mappers/mapStorableToChannel.js +23 -27
  1658. package/lib/module/store/mappers/mapStorableToChannel.js.map +1 -1
  1659. package/lib/module/store/mappers/mapStorableToMember.js +11 -14
  1660. package/lib/module/store/mappers/mapStorableToMember.js.map +1 -1
  1661. package/lib/module/store/mappers/mapStorableToMessage.js +8 -17
  1662. package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
  1663. package/lib/module/store/mappers/mapStorableToReaction.js +6 -11
  1664. package/lib/module/store/mappers/mapStorableToReaction.js.map +1 -1
  1665. package/lib/module/store/mappers/mapStorableToRead.js +2 -5
  1666. package/lib/module/store/mappers/mapStorableToRead.js.map +1 -1
  1667. package/lib/module/store/mappers/mapStorableToTask.js +4 -6
  1668. package/lib/module/store/mappers/mapStorableToTask.js.map +1 -1
  1669. package/lib/module/store/mappers/mapStorableToUser.js +7 -11
  1670. package/lib/module/store/mappers/mapStorableToUser.js.map +1 -1
  1671. package/lib/module/store/mappers/mapTaskToStorable.js +0 -4
  1672. package/lib/module/store/mappers/mapTaskToStorable.js.map +1 -1
  1673. package/lib/module/store/mappers/mapUserToStorable.js +7 -12
  1674. package/lib/module/store/mappers/mapUserToStorable.js.map +1 -1
  1675. package/lib/module/store/schema.js.map +1 -1
  1676. package/lib/module/store/sqlite-utils/appendOrderByClause.js +0 -5
  1677. package/lib/module/store/sqlite-utils/appendOrderByClause.js.map +1 -1
  1678. package/lib/module/store/sqlite-utils/appendWhereCluase.js +0 -8
  1679. package/lib/module/store/sqlite-utils/appendWhereCluase.js.map +1 -1
  1680. package/lib/module/store/sqlite-utils/createCreateTableQuery.js +2 -10
  1681. package/lib/module/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
  1682. package/lib/module/store/sqlite-utils/createDeleteQuery.js +0 -3
  1683. package/lib/module/store/sqlite-utils/createDeleteQuery.js.map +1 -1
  1684. package/lib/module/store/sqlite-utils/createSelectQuery.js +5 -14
  1685. package/lib/module/store/sqlite-utils/createSelectQuery.js.map +1 -1
  1686. package/lib/module/store/sqlite-utils/createUpdateQuery.js +3 -11
  1687. package/lib/module/store/sqlite-utils/createUpdateQuery.js.map +1 -1
  1688. package/lib/module/store/sqlite-utils/createUpsertQuery.js +0 -5
  1689. package/lib/module/store/sqlite-utils/createUpsertQuery.js.map +1 -1
  1690. package/lib/module/store/sqlite-utils/printRow.js +0 -5
  1691. package/lib/module/store/sqlite-utils/printRow.js.map +1 -1
  1692. package/lib/module/store/types.js.map +1 -1
  1693. package/lib/module/test-utils/BetterSqlite.js +0 -11
  1694. package/lib/module/test-utils/BetterSqlite.js.map +1 -1
  1695. package/lib/module/types/types.js.map +1 -1
  1696. package/lib/module/utils/DBSyncManager.js +217 -321
  1697. package/lib/module/utils/DBSyncManager.js.map +1 -1
  1698. package/lib/module/utils/Streami18n.js +74 -181
  1699. package/lib/module/utils/Streami18n.js.map +1 -1
  1700. package/lib/module/utils/addReactionToLocalState.js +4 -21
  1701. package/lib/module/utils/addReactionToLocalState.js.map +1 -1
  1702. package/lib/module/utils/date.js +0 -2
  1703. package/lib/module/utils/date.js.map +1 -1
  1704. package/lib/module/utils/getResizedImageUrl.js +4 -10
  1705. package/lib/module/utils/getResizedImageUrl.js.map +1 -1
  1706. package/lib/module/utils/getUrlOfImageAttachment.js +0 -1
  1707. package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -1
  1708. package/lib/module/utils/patchMessageTextCommand.js +0 -6
  1709. package/lib/module/utils/patchMessageTextCommand.js.map +1 -1
  1710. package/lib/module/utils/removeReactionFromLocalState.js +3 -9
  1711. package/lib/module/utils/removeReactionFromLocalState.js.map +1 -1
  1712. package/lib/module/utils/removeReservedFields.js +0 -4
  1713. package/lib/module/utils/removeReservedFields.js.map +1 -1
  1714. package/lib/module/utils/utils.js +86 -179
  1715. package/lib/module/utils/utils.js.map +1 -1
  1716. package/lib/module/version.json +1 -1
  1717. package/lib/typescript/components/Attachment/Attachment.d.ts +1 -0
  1718. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +1 -0
  1719. package/lib/typescript/components/Attachment/AudioAttachment.d.ts +1 -0
  1720. package/lib/typescript/components/Attachment/Card.d.ts +1 -0
  1721. package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -0
  1722. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +1 -0
  1723. package/lib/typescript/components/Attachment/Gallery.d.ts +1 -0
  1724. package/lib/typescript/components/Attachment/Giphy.d.ts +1 -0
  1725. package/lib/typescript/components/Attachment/ImageLoadingFailedIndicator.d.ts +1 -0
  1726. package/lib/typescript/components/Attachment/ImageLoadingIndicator.d.ts +1 -0
  1727. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +1 -0
  1728. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +1 -0
  1729. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +1 -0
  1730. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +1 -0
  1731. package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +1 -0
  1732. package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +1 -0
  1733. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -0
  1734. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +1 -0
  1735. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +1 -0
  1736. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +1 -0
  1737. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +1 -0
  1738. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +1 -0
  1739. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +1 -0
  1740. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +1 -0
  1741. package/lib/typescript/components/Message/Message.d.ts +1 -0
  1742. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +1 -0
  1743. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +1 -0
  1744. package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +1 -0
  1745. package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +1 -0
  1746. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -0
  1747. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +1 -0
  1748. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +1 -0
  1749. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +1 -0
  1750. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +1 -0
  1751. package/lib/typescript/components/MessageInput/AttachButton.d.ts +1 -0
  1752. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +1 -0
  1753. package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +1 -0
  1754. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +1 -0
  1755. package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +1 -0
  1756. package/lib/typescript/components/MessageInput/InputButtons.d.ts +1 -0
  1757. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -0
  1758. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +1 -0
  1759. package/lib/typescript/components/MessageInput/SendButton.d.ts +1 -0
  1760. package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts +1 -0
  1761. package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts +1 -0
  1762. package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts +1 -0
  1763. package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts +1 -0
  1764. package/lib/typescript/components/MessageList/MessageSystem.d.ts +1 -0
  1765. package/lib/typescript/components/MessageList/NetworkDownIndicator.d.ts +1 -0
  1766. package/lib/typescript/components/MessageList/TypingIndicator.d.ts +1 -0
  1767. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +1 -0
  1768. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +1 -0
  1769. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +1 -0
  1770. package/lib/typescript/components/Reply/Reply.d.ts +1 -0
  1771. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +1 -0
  1772. package/package.json +7 -4
  1773. package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap +6 -0
  1774. package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +12 -0
  1775. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +9 -0
  1776. package/src/version.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["MessagesContext.tsx"],"names":["MessagesContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","MessagesProvider","children","value","useMessagesContext","contextValue","Error","withMessagesContext","Component","WithMessagesContextComponent","props","messagesContext","displayName"],"mappings":";;;;;;;;;;;AAAA;;AAwDA;;AAEA;;AACA;;;;;;;;;AAgbO,IAAMA,eAAe,GAAGC,kBAAMC,aAAN,CAC7BC,mDAD6B,CAAxB;;;;AAIA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB;AAAA,MAG9BC,QAH8B,QAG9BA,QAH8B;AAAA,MAI9BC,KAJ8B,QAI9BA,KAJ8B;AAAA,SAQ9B,gCAAC,eAAD,CAAiB,QAAjB;AAA0B,IAAA,KAAK,EAAEA,KAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGD,QADH,CAR8B;AAAA,CAAzB;;;;AAaA,IAAME,kBAAkB,GAAG,SAArBA,kBAAqB,GAE3B;AACL,MAAMC,YAAY,GAAG,uBACnBR,eADmB,CAArB;;AAIA,MAAIQ,YAAY,KAAKL,mDAAjB,IAA+C,CAAC,2CAApD,EAAyE;AACvE,UAAM,IAAIM,KAAJ,yOAAN;AAGD;;AAED,SAAOD,YAAP;AACD,CAdM;;;;AAqBA,IAAME,mBAAmB,GAAG,SAAtBA,mBAAsB,CAIjCC,SAJiC,EAKqC;AACtE,MAAMC,4BAA4B,GAAG,SAA/BA,4BAA+B,CACnCC,KADmC,EAEhC;AACH,QAAMC,eAAe,GAAGP,kBAAkB,EAA1C;AAEA,WAAO,gCAAC,SAAD,gCAAgBM,KAAhB,EAAiCC,eAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAP;AACD,GAND;;AAOAF,EAAAA,4BAA4B,CAACG,WAA7B,2BAAiE,oCAAeJ,SAAf,CAAjE;AACA,SAAOC,4BAAP;AACD,CAfM","sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { TouchableOpacityProps } from 'react-native';\n\nimport type { ImageLoadingFailedIndicatorProps } from 'src/components/Attachment/ImageLoadingFailedIndicator';\nimport type { ImageLoadingIndicatorProps } from 'src/components/Attachment/ImageLoadingIndicator';\n\nimport type { MessagePinnedHeaderProps } from 'src/components/Message/MessageSimple/MessagePinnedHeader';\n\nimport type { Attachment, ChannelState, MessageResponse } from 'stream-chat';\n\nimport type { AttachmentProps } from '../../components/Attachment/Attachment';\nimport type { AttachmentActionsProps } from '../../components/Attachment/AttachmentActions';\nimport type { AudioAttachmentProps } from '../../components/Attachment/AudioAttachment';\nimport type { CardProps } from '../../components/Attachment/Card';\nimport type { FileAttachmentProps } from '../../components/Attachment/FileAttachment';\nimport type { FileAttachmentGroupProps } from '../../components/Attachment/FileAttachmentGroup';\nimport type { FileIconProps } from '../../components/Attachment/FileIcon';\nimport type { GalleryProps } from '../../components/Attachment/Gallery';\nimport type { GiphyProps } from '../../components/Attachment/Giphy';\nimport type { VideoThumbnailProps } from '../../components/Attachment/VideoThumbnail';\nimport type {\n MessageProps,\n MessageTouchableHandlerPayload,\n} from '../../components/Message/Message';\nimport type { MessageAvatarProps } from '../../components/Message/MessageSimple/MessageAvatar';\nimport type { MessageContentProps } from '../../components/Message/MessageSimple/MessageContent';\nimport type { MessageDeletedProps } from '../../components/Message/MessageSimple/MessageDeleted';\nimport type { MessageFooterProps } from '../../components/Message/MessageSimple/MessageFooter';\n\nimport type { MessageRepliesProps } from '../../components/Message/MessageSimple/MessageReplies';\nimport type { MessageRepliesAvatarsProps } from '../../components/Message/MessageSimple/MessageRepliesAvatars';\nimport type { MessageSimpleProps } from '../../components/Message/MessageSimple/MessageSimple';\nimport type { MessageStatusProps } from '../../components/Message/MessageSimple/MessageStatus';\nimport type { MessageTextProps } from '../../components/Message/MessageSimple/MessageTextContainer';\nimport type { ReactionListProps } from '../../components/Message/MessageSimple/ReactionList';\nimport type { MarkdownRules } from '../../components/Message/MessageSimple/utils/renderText';\nimport type { MessageActionsParams } from '../../components/Message/utils/messageActions';\nimport type { DateHeaderProps } from '../../components/MessageList/DateHeader';\nimport type { MessageType } from '../../components/MessageList/hooks/useMessageList';\nimport type { InlineDateSeparatorProps } from '../../components/MessageList/InlineDateSeparator';\nimport type { MessageListProps } from '../../components/MessageList/MessageList';\nimport type { MessageSystemProps } from '../../components/MessageList/MessageSystem';\nimport type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';\nimport type { getGroupStyles } from '../../components/MessageList/utils/getGroupStyles';\nimport type { MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';\nimport type { OverlayReactionListProps } from '../../components/MessageOverlay/OverlayReactionList';\nimport type { ReplyProps } from '../../components/Reply/Reply';\nimport type { FlatList } from '../../native';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport type { ReactionData } from '../../utils/utils';\nimport type { Alignment } from '../messageContext/MessageContext';\nimport type { SuggestionCommand } from '../suggestionsContext/SuggestionsContext';\nimport type { DeepPartial } from '../themeContext/ThemeContext';\nimport type { Theme } from '../themeContext/utils/theme';\nimport type { TDateTimeParserInput } from '../translationContext/TranslationContext';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'text';\nexport type DeletedMessagesVisibilityType = 'always' | 'never' | 'receiver' | 'sender';\n\nexport type MessagesContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * UI component for Attachment.\n * Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Attachment.tsx)\n */\n Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display AttachmentActions. e.g., send, shuffle, cancel in case of giphy\n * Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/AttachmentActions.tsx)\n */\n AttachmentActions: React.ComponentType<AttachmentActionsProps<StreamChatGenerics>>;\n /** Custom UI component for AudioAttachment. */\n AudioAttachment: React.ComponentType<AudioAttachmentProps>;\n /**\n * UI component to display generic media type e.g. giphy, url preview etc\n * Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx)\n */\n Card: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * UI component for DateHeader\n * Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)\n **/\n DateHeader: React.ComponentType<DateHeaderProps>;\n deleteMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;\n deleteReaction: (type: string, messageId: string) => Promise<void>;\n\n /** Should keyboard be dismissed when messaged is touched */\n dismissKeyboardOnMessageTouch: boolean;\n\n enableMessageGroupingByUser: boolean;\n\n /**\n * UI component to display File type attachment.\n * Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachment.tsx)\n */\n FileAttachment: React.ComponentType<FileAttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display group of File type attachments or multiple file attachments (in single message).\n * Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachmentGroup.tsx)\n */\n FileAttachmentGroup: React.ComponentType<FileAttachmentGroupProps<StreamChatGenerics>>;\n /**\n * UI component for attachment icon for type 'file' attachment.\n * Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileIcon.tsx\n */\n FileAttachmentIcon: React.ComponentType<FileIconProps>;\n FlatList: typeof FlatList;\n /**\n * UI component to display image attachments\n * Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Gallery.tsx)\n */\n Gallery: React.ComponentType<GalleryProps<StreamChatGenerics>>;\n /**\n * UI component for Giphy\n * Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Giphy.tsx)\n */\n Giphy: React.ComponentType<GiphyProps<StreamChatGenerics>>;\n /**\n * The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default\n * */\n giphyVersion: keyof NonNullable<Attachment['giphy']>;\n\n /**\n * The indicator rendered when loading an image fails.\n */\n ImageLoadingFailedIndicator: React.ComponentType<ImageLoadingFailedIndicatorProps>;\n\n /**\n * The indicator rendered when image is loading. By default renders <ActivityIndicator/>\n */\n ImageLoadingIndicator: React.ComponentType<ImageLoadingIndicatorProps>;\n\n /**\n * When true, messageList will be scrolled at first unread message, when opened.\n */\n initialScrollToFirstUnreadMessage: boolean;\n /**\n * UI component for Message Date Separator Component\n * Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/InlineDateSeparator.tsx)\n */\n InlineDateSeparator: React.ComponentType<InlineDateSeparatorProps>;\n /**\n * UI component for InlineUnreadIndicator\n * Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)\n **/\n InlineUnreadIndicator: React.ComponentType;\n\n Message: React.ComponentType<MessageProps<StreamChatGenerics>>;\n /**\n * UI component for MessageAvatar\n * Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageAvatar.tsx)\n **/\n MessageAvatar: React.ComponentType<MessageAvatarProps<StreamChatGenerics>>;\n /**\n * UI component for MessageContent\n * Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageContent.tsx)\n */\n MessageContent: React.ComponentType<MessageContentProps<StreamChatGenerics>>;\n /** Order to render the message content */\n messageContentOrder: MessageContentType[];\n /**\n * UI component for MessageDeleted\n * Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageDeleted.tsx)\n */\n MessageDeleted: React.ComponentType<MessageDeletedProps<StreamChatGenerics>>;\n /**\n * Custom message footer component\n */\n MessageFooter: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n MessageList: React.ComponentType<MessageListProps<StreamChatGenerics>>;\n /**\n * Custom message pinned component\n */\n MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps<StreamChatGenerics>>;\n\n /**\n * UI component for MessageReplies\n * Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageReplies.tsx)\n */\n MessageReplies: React.ComponentType<MessageRepliesProps<StreamChatGenerics>>;\n /**\n * UI Component for MessageRepliesAvatars\n * Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageRepliesAvatars.tsx)\n */\n MessageRepliesAvatars: React.ComponentType<MessageRepliesAvatarsProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSimple\n * Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageSimple.tsx)\n */\n MessageSimple: React.ComponentType<MessageSimpleProps<StreamChatGenerics>>;\n /**\n * UI component for MessageStatus (delivered/read)\n * Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageStatus.tsx)\n */\n MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSystem\n * Defaults to: [MessageSystem](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-system/)\n */\n MessageSystem: React.ComponentType<MessageSystemProps<StreamChatGenerics>>;\n /**\n * UI component for OverlayReactionList\n */\n OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;\n /**\n * UI component for ReactionList\n * Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)\n */\n ReactionList: React.ComponentType<ReactionListProps<StreamChatGenerics>>;\n removeMessage: (message: { id: string; parent_id?: string }) => void;\n /**\n * UI component for Reply\n * Defaults to: [Reply](https://getstream.io/chat/docs/sdk/reactnative/ui-components/reply/)\n */\n Reply: React.ComponentType<ReplyProps<StreamChatGenerics>>;\n /**\n * Override the api request for retry message functionality.\n */\n retrySendMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;\n /**\n * UI component for ScrollToBottomButton\n * Defaults to: [ScrollToBottomButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/scroll-to-bottom-button/)\n */\n ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;\n sendReaction: (type: string, messageId: string) => Promise<void>;\n setEditingState: (message: MessageType<StreamChatGenerics>) => void;\n setQuotedMessageState: (message: MessageType<StreamChatGenerics>) => void;\n supportedReactions: ReactionData[];\n /**\n * UI component for TypingIndicator\n * Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)\n */\n TypingIndicator: React.ComponentType;\n /**\n * UI component for TypingIndicatorContainer\n * Defaults to: [TypingIndicatorContainer](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/#typingindicatorcontainer)\n */\n TypingIndicatorContainer: React.ComponentType;\n updateMessage: (\n updatedMessage: MessageResponse<StreamChatGenerics>,\n extraState?: {\n commands?: SuggestionCommand<StreamChatGenerics>[];\n messageInput?: string;\n threadMessages?: ChannelState<StreamChatGenerics>['threads'][string];\n },\n ) => void;\n /**\n * Custom UI component to display enriched url preview.\n * Defaults to https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx\n */\n UrlPreview: React.ComponentType<CardProps<StreamChatGenerics>>;\n VideoThumbnail: React.ComponentType<VideoThumbnailProps>;\n /**\n * Provide any additional props for `TouchableOpacity` which wraps inner MessageContent component here.\n * Please check docs for TouchableOpacity for supported props - https://reactnative.dev/docs/touchableopacity#props\n *\n * @overrideType Object\n */\n additionalTouchableProps?: Omit<TouchableOpacityProps, 'style'>;\n /**\n * Custom UI component to override default cover (between Header and Footer) of Card component.\n * Accepts the same props as Card component.\n */\n CardCover?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default Footer of Card component.\n * Accepts the same props as Card component.\n */\n CardFooter?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default header of Card component.\n * Accepts the same props as Card component.\n */\n CardHeader?: React.ComponentType<CardProps<StreamChatGenerics>>;\n\n /**\n * Full override of the delete message button in the Message Actions\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n */\n\n /** Control if the deleted message is visible to both the send and reciever, either of them or none */\n deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;\n\n disableTypingIndicator?: boolean;\n\n /**\n * Whether messages should be aligned to right or left part of screen.\n * By default, messages will be received messages will be aligned to left and\n * sent messages will be aligned to right.\n */\n forceAlignMessages?: Alignment | boolean;\n /**\n * Optional function to custom format the message date\n */\n formatDate?: (date: TDateTimeParserInput) => string;\n getMessagesGroupStyles?: typeof getGroupStyles;\n handleBlock?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a copy message action is invoked */\n handleCopy?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a delete message action is invoked */\n handleDelete?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when an edit message action is invoked */\n handleEdit?: (message: MessageType<StreamChatGenerics>) => void;\n /** Handler to access when a flag message action is invoked */\n handleFlag?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a mute user action is invoked */\n handleMute?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a pin/unpin user action is invoked*/\n handlePinMessage?: ((message: MessageType<StreamChatGenerics>) => MessageActionType) | null;\n /** Handler to access when a quoted reply action is invoked */\n handleQuotedReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to process a reaction */\n handleReaction?: (\n message: MessageType<StreamChatGenerics>,\n reactionType: string,\n ) => Promise<void>;\n /** Handler to access when a retry action is invoked */\n handleRetry?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a thread reply action is invoked */\n handleThreadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to deal with custom memoization logic of Attachment */\n isAttachmentEqual?: (\n prevAttachment: Attachment<StreamChatGenerics>,\n nextAttachment: Attachment<StreamChatGenerics>,\n ) => boolean;\n legacyImageViewerSwipeBehaviour?: boolean;\n /** Object specifying rules defined within simple-markdown https://github.com/Khan/simple-markdown#adding-a-simple-extension */\n markdownRules?: MarkdownRules;\n /**\n * Use this prop to override message actions (which pop-up in message overlay).\n *\n * You can either completely override the default messageActions object.\n *\n * ```\n * <Channel\n * messageActions=[\n * {\n * action: () => { someAction() };\n * title: \"Pin Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * },\n * {\n * action: () => { someAction() };\n * title: \"Delete Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * }\n * ]\n * >\n * </Channel>\n * ```\n *\n * Or you can selectly keep certain action and remove some:\n *\n * e.g. Lets say you only want to keep threadReply and copyMessage actions\n *\n * ```\n * <Channel\n * messageActions={({\n * blockUser,\n * copyMessage,\n * deleteMessage,\n * editMessage,\n * flagMessage,\n * muteUser,\n * quotedReply,\n * retry,\n * threadReply,\n * }) => ([\n * threadReply, copyMessage\n * ])}\n * >\n * </Channel>\n * ```\n *\n * @overrideType Function | Array<Objects>\n */\n messageActions?: (param: MessageActionsParams<StreamChatGenerics>) => MessageActionType[];\n /**\n * Custom message header component\n */\n MessageHeader?: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n /** Custom UI component for message text */\n MessageText?: React.ComponentType<MessageTextProps<StreamChatGenerics>>;\n\n /**\n * Theme provided only to messages that are the current users\n */\n myMessageTheme?: DeepPartial<Theme>;\n /**\n * Override default handler for onLongPress on message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onLongPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onLongPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Add onPressIn handler for attachments. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressInMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressInMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Override onPress handler for message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occurred\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n\n /**\n * Full override of the reaction function on Message and Message Overlay\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n * */\n selectReaction?: (\n message: MessageType<StreamChatGenerics>,\n ) => (reactionType: string) => Promise<void>;\n\n targetedMessage?: string;\n};\n\nexport const MessagesContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as MessagesContextValue,\n);\n\nexport const MessagesProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value?: MessagesContextValue<StreamChatGenerics>;\n}>) => (\n <MessagesContext.Provider value={value as unknown as MessagesContextValue}>\n {children}\n </MessagesContext.Provider>\n);\n\nexport const useMessagesContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n MessagesContext,\n ) as unknown as MessagesContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useMessagesContext hook was called outside of the MessagesContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,\n );\n }\n\n return contextValue;\n};\n\n/**\n * Typescript currently does not support partial inference so if MessagesContext\n * typing is desired while using the HOC withMessagesContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withMessagesContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof MessagesContextValue<StreamChatGenerics>>> => {\n const WithMessagesContextComponent = (\n props: Omit<P, keyof MessagesContextValue<StreamChatGenerics>>,\n ) => {\n const messagesContext = useMessagesContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...messagesContext} />;\n };\n WithMessagesContextComponent.displayName = `WithMessagesContext${getDisplayName(Component)}`;\n return WithMessagesContextComponent;\n};\n"]}
1
+ {"version":3,"names":["MessagesContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","MessagesProvider","children","value","useMessagesContext","contextValue","useContext","isTestEnvironment","Error","withMessagesContext","Component","WithMessagesContextComponent","props","messagesContext","displayName","getDisplayName"],"sources":["MessagesContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { TouchableOpacityProps } from 'react-native';\n\nimport type { ImageLoadingFailedIndicatorProps } from 'src/components/Attachment/ImageLoadingFailedIndicator';\nimport type { ImageLoadingIndicatorProps } from 'src/components/Attachment/ImageLoadingIndicator';\n\nimport type { MessagePinnedHeaderProps } from 'src/components/Message/MessageSimple/MessagePinnedHeader';\n\nimport type { Attachment, ChannelState, MessageResponse } from 'stream-chat';\n\nimport type { AttachmentProps } from '../../components/Attachment/Attachment';\nimport type { AttachmentActionsProps } from '../../components/Attachment/AttachmentActions';\nimport type { AudioAttachmentProps } from '../../components/Attachment/AudioAttachment';\nimport type { CardProps } from '../../components/Attachment/Card';\nimport type { FileAttachmentProps } from '../../components/Attachment/FileAttachment';\nimport type { FileAttachmentGroupProps } from '../../components/Attachment/FileAttachmentGroup';\nimport type { FileIconProps } from '../../components/Attachment/FileIcon';\nimport type { GalleryProps } from '../../components/Attachment/Gallery';\nimport type { GiphyProps } from '../../components/Attachment/Giphy';\nimport type { VideoThumbnailProps } from '../../components/Attachment/VideoThumbnail';\nimport type {\n MessageProps,\n MessageTouchableHandlerPayload,\n} from '../../components/Message/Message';\nimport type { MessageAvatarProps } from '../../components/Message/MessageSimple/MessageAvatar';\nimport type { MessageContentProps } from '../../components/Message/MessageSimple/MessageContent';\nimport type { MessageDeletedProps } from '../../components/Message/MessageSimple/MessageDeleted';\nimport type { MessageFooterProps } from '../../components/Message/MessageSimple/MessageFooter';\n\nimport type { MessageRepliesProps } from '../../components/Message/MessageSimple/MessageReplies';\nimport type { MessageRepliesAvatarsProps } from '../../components/Message/MessageSimple/MessageRepliesAvatars';\nimport type { MessageSimpleProps } from '../../components/Message/MessageSimple/MessageSimple';\nimport type { MessageStatusProps } from '../../components/Message/MessageSimple/MessageStatus';\nimport type { MessageTextProps } from '../../components/Message/MessageSimple/MessageTextContainer';\nimport type { ReactionListProps } from '../../components/Message/MessageSimple/ReactionList';\nimport type { MarkdownRules } from '../../components/Message/MessageSimple/utils/renderText';\nimport type { MessageActionsParams } from '../../components/Message/utils/messageActions';\nimport type { DateHeaderProps } from '../../components/MessageList/DateHeader';\nimport type { MessageType } from '../../components/MessageList/hooks/useMessageList';\nimport type { InlineDateSeparatorProps } from '../../components/MessageList/InlineDateSeparator';\nimport type { MessageListProps } from '../../components/MessageList/MessageList';\nimport type { MessageSystemProps } from '../../components/MessageList/MessageSystem';\nimport type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';\nimport type { getGroupStyles } from '../../components/MessageList/utils/getGroupStyles';\nimport type { MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';\nimport type { OverlayReactionListProps } from '../../components/MessageOverlay/OverlayReactionList';\nimport type { ReplyProps } from '../../components/Reply/Reply';\nimport type { FlatList } from '../../native';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport type { ReactionData } from '../../utils/utils';\nimport type { Alignment } from '../messageContext/MessageContext';\nimport type { SuggestionCommand } from '../suggestionsContext/SuggestionsContext';\nimport type { DeepPartial } from '../themeContext/ThemeContext';\nimport type { Theme } from '../themeContext/utils/theme';\nimport type { TDateTimeParserInput } from '../translationContext/TranslationContext';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'text';\nexport type DeletedMessagesVisibilityType = 'always' | 'never' | 'receiver' | 'sender';\n\nexport type MessagesContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * UI component for Attachment.\n * Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Attachment.tsx)\n */\n Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display AttachmentActions. e.g., send, shuffle, cancel in case of giphy\n * Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/AttachmentActions.tsx)\n */\n AttachmentActions: React.ComponentType<AttachmentActionsProps<StreamChatGenerics>>;\n /** Custom UI component for AudioAttachment. */\n AudioAttachment: React.ComponentType<AudioAttachmentProps>;\n /**\n * UI component to display generic media type e.g. giphy, url preview etc\n * Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx)\n */\n Card: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * UI component for DateHeader\n * Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)\n **/\n DateHeader: React.ComponentType<DateHeaderProps>;\n deleteMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;\n deleteReaction: (type: string, messageId: string) => Promise<void>;\n\n /** Should keyboard be dismissed when messaged is touched */\n dismissKeyboardOnMessageTouch: boolean;\n\n enableMessageGroupingByUser: boolean;\n\n /**\n * UI component to display File type attachment.\n * Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachment.tsx)\n */\n FileAttachment: React.ComponentType<FileAttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display group of File type attachments or multiple file attachments (in single message).\n * Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachmentGroup.tsx)\n */\n FileAttachmentGroup: React.ComponentType<FileAttachmentGroupProps<StreamChatGenerics>>;\n /**\n * UI component for attachment icon for type 'file' attachment.\n * Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileIcon.tsx\n */\n FileAttachmentIcon: React.ComponentType<FileIconProps>;\n FlatList: typeof FlatList;\n /**\n * UI component to display image attachments\n * Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Gallery.tsx)\n */\n Gallery: React.ComponentType<GalleryProps<StreamChatGenerics>>;\n /**\n * UI component for Giphy\n * Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Giphy.tsx)\n */\n Giphy: React.ComponentType<GiphyProps<StreamChatGenerics>>;\n /**\n * The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default\n * */\n giphyVersion: keyof NonNullable<Attachment['giphy']>;\n\n /**\n * The indicator rendered when loading an image fails.\n */\n ImageLoadingFailedIndicator: React.ComponentType<ImageLoadingFailedIndicatorProps>;\n\n /**\n * The indicator rendered when image is loading. By default renders <ActivityIndicator/>\n */\n ImageLoadingIndicator: React.ComponentType<ImageLoadingIndicatorProps>;\n\n /**\n * When true, messageList will be scrolled at first unread message, when opened.\n */\n initialScrollToFirstUnreadMessage: boolean;\n /**\n * UI component for Message Date Separator Component\n * Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/InlineDateSeparator.tsx)\n */\n InlineDateSeparator: React.ComponentType<InlineDateSeparatorProps>;\n /**\n * UI component for InlineUnreadIndicator\n * Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)\n **/\n InlineUnreadIndicator: React.ComponentType;\n\n Message: React.ComponentType<MessageProps<StreamChatGenerics>>;\n /**\n * UI component for MessageAvatar\n * Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageAvatar.tsx)\n **/\n MessageAvatar: React.ComponentType<MessageAvatarProps<StreamChatGenerics>>;\n /**\n * UI component for MessageContent\n * Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageContent.tsx)\n */\n MessageContent: React.ComponentType<MessageContentProps<StreamChatGenerics>>;\n /** Order to render the message content */\n messageContentOrder: MessageContentType[];\n /**\n * UI component for MessageDeleted\n * Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageDeleted.tsx)\n */\n MessageDeleted: React.ComponentType<MessageDeletedProps<StreamChatGenerics>>;\n /**\n * Custom message footer component\n */\n MessageFooter: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n MessageList: React.ComponentType<MessageListProps<StreamChatGenerics>>;\n /**\n * Custom message pinned component\n */\n MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps<StreamChatGenerics>>;\n\n /**\n * UI component for MessageReplies\n * Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageReplies.tsx)\n */\n MessageReplies: React.ComponentType<MessageRepliesProps<StreamChatGenerics>>;\n /**\n * UI Component for MessageRepliesAvatars\n * Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageRepliesAvatars.tsx)\n */\n MessageRepliesAvatars: React.ComponentType<MessageRepliesAvatarsProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSimple\n * Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageSimple.tsx)\n */\n MessageSimple: React.ComponentType<MessageSimpleProps<StreamChatGenerics>>;\n /**\n * UI component for MessageStatus (delivered/read)\n * Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageStatus.tsx)\n */\n MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSystem\n * Defaults to: [MessageSystem](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-system/)\n */\n MessageSystem: React.ComponentType<MessageSystemProps<StreamChatGenerics>>;\n /**\n * UI component for OverlayReactionList\n */\n OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;\n /**\n * UI component for ReactionList\n * Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)\n */\n ReactionList: React.ComponentType<ReactionListProps<StreamChatGenerics>>;\n removeMessage: (message: { id: string; parent_id?: string }) => void;\n /**\n * UI component for Reply\n * Defaults to: [Reply](https://getstream.io/chat/docs/sdk/reactnative/ui-components/reply/)\n */\n Reply: React.ComponentType<ReplyProps<StreamChatGenerics>>;\n /**\n * Override the api request for retry message functionality.\n */\n retrySendMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;\n /**\n * UI component for ScrollToBottomButton\n * Defaults to: [ScrollToBottomButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/scroll-to-bottom-button/)\n */\n ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;\n sendReaction: (type: string, messageId: string) => Promise<void>;\n setEditingState: (message: MessageType<StreamChatGenerics>) => void;\n setQuotedMessageState: (message: MessageType<StreamChatGenerics>) => void;\n supportedReactions: ReactionData[];\n /**\n * UI component for TypingIndicator\n * Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)\n */\n TypingIndicator: React.ComponentType;\n /**\n * UI component for TypingIndicatorContainer\n * Defaults to: [TypingIndicatorContainer](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/#typingindicatorcontainer)\n */\n TypingIndicatorContainer: React.ComponentType;\n updateMessage: (\n updatedMessage: MessageResponse<StreamChatGenerics>,\n extraState?: {\n commands?: SuggestionCommand<StreamChatGenerics>[];\n messageInput?: string;\n threadMessages?: ChannelState<StreamChatGenerics>['threads'][string];\n },\n ) => void;\n /**\n * Custom UI component to display enriched url preview.\n * Defaults to https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx\n */\n UrlPreview: React.ComponentType<CardProps<StreamChatGenerics>>;\n VideoThumbnail: React.ComponentType<VideoThumbnailProps>;\n /**\n * Provide any additional props for `TouchableOpacity` which wraps inner MessageContent component here.\n * Please check docs for TouchableOpacity for supported props - https://reactnative.dev/docs/touchableopacity#props\n *\n * @overrideType Object\n */\n additionalTouchableProps?: Omit<TouchableOpacityProps, 'style'>;\n /**\n * Custom UI component to override default cover (between Header and Footer) of Card component.\n * Accepts the same props as Card component.\n */\n CardCover?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default Footer of Card component.\n * Accepts the same props as Card component.\n */\n CardFooter?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default header of Card component.\n * Accepts the same props as Card component.\n */\n CardHeader?: React.ComponentType<CardProps<StreamChatGenerics>>;\n\n /**\n * Full override of the delete message button in the Message Actions\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n */\n\n /** Control if the deleted message is visible to both the send and reciever, either of them or none */\n deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;\n\n disableTypingIndicator?: boolean;\n\n /**\n * Whether messages should be aligned to right or left part of screen.\n * By default, messages will be received messages will be aligned to left and\n * sent messages will be aligned to right.\n */\n forceAlignMessages?: Alignment | boolean;\n /**\n * Optional function to custom format the message date\n */\n formatDate?: (date: TDateTimeParserInput) => string;\n getMessagesGroupStyles?: typeof getGroupStyles;\n handleBlock?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a copy message action is invoked */\n handleCopy?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a delete message action is invoked */\n handleDelete?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when an edit message action is invoked */\n handleEdit?: (message: MessageType<StreamChatGenerics>) => void;\n /** Handler to access when a flag message action is invoked */\n handleFlag?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a mute user action is invoked */\n handleMute?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a pin/unpin user action is invoked*/\n handlePinMessage?: ((message: MessageType<StreamChatGenerics>) => MessageActionType) | null;\n /** Handler to access when a quoted reply action is invoked */\n handleQuotedReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to process a reaction */\n handleReaction?: (\n message: MessageType<StreamChatGenerics>,\n reactionType: string,\n ) => Promise<void>;\n /** Handler to access when a retry action is invoked */\n handleRetry?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a thread reply action is invoked */\n handleThreadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to deal with custom memoization logic of Attachment */\n isAttachmentEqual?: (\n prevAttachment: Attachment<StreamChatGenerics>,\n nextAttachment: Attachment<StreamChatGenerics>,\n ) => boolean;\n legacyImageViewerSwipeBehaviour?: boolean;\n /** Object specifying rules defined within simple-markdown https://github.com/Khan/simple-markdown#adding-a-simple-extension */\n markdownRules?: MarkdownRules;\n /**\n * Use this prop to override message actions (which pop-up in message overlay).\n *\n * You can either completely override the default messageActions object.\n *\n * ```\n * <Channel\n * messageActions=[\n * {\n * action: () => { someAction() };\n * title: \"Pin Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * },\n * {\n * action: () => { someAction() };\n * title: \"Delete Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * }\n * ]\n * >\n * </Channel>\n * ```\n *\n * Or you can selectly keep certain action and remove some:\n *\n * e.g. Lets say you only want to keep threadReply and copyMessage actions\n *\n * ```\n * <Channel\n * messageActions={({\n * blockUser,\n * copyMessage,\n * deleteMessage,\n * editMessage,\n * flagMessage,\n * muteUser,\n * quotedReply,\n * retry,\n * threadReply,\n * }) => ([\n * threadReply, copyMessage\n * ])}\n * >\n * </Channel>\n * ```\n *\n * @overrideType Function | Array<Objects>\n */\n messageActions?: (param: MessageActionsParams<StreamChatGenerics>) => MessageActionType[];\n /**\n * Custom message header component\n */\n MessageHeader?: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n /** Custom UI component for message text */\n MessageText?: React.ComponentType<MessageTextProps<StreamChatGenerics>>;\n\n /**\n * Theme provided only to messages that are the current users\n */\n myMessageTheme?: DeepPartial<Theme>;\n /**\n * Override default handler for onLongPress on message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onLongPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onLongPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Add onPressIn handler for attachments. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressInMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressInMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Override onPress handler for message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occurred\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n\n /**\n * Full override of the reaction function on Message and Message Overlay\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n * */\n selectReaction?: (\n message: MessageType<StreamChatGenerics>,\n ) => (reactionType: string) => Promise<void>;\n\n targetedMessage?: string;\n};\n\nexport const MessagesContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as MessagesContextValue,\n);\n\nexport const MessagesProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value?: MessagesContextValue<StreamChatGenerics>;\n}>) => (\n <MessagesContext.Provider value={value as unknown as MessagesContextValue}>\n {children}\n </MessagesContext.Provider>\n);\n\nexport const useMessagesContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n MessagesContext,\n ) as unknown as MessagesContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useMessagesContext hook was called outside of the MessagesContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,\n );\n }\n\n return contextValue;\n};\n\n/**\n * Typescript currently does not support partial inference so if MessagesContext\n * typing is desired while using the HOC withMessagesContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withMessagesContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof MessagesContextValue<StreamChatGenerics>>> => {\n const WithMessagesContextComponent = (\n props: Omit<P, keyof MessagesContextValue<StreamChatGenerics>>,\n ) => {\n const messagesContext = useMessagesContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...messagesContext} />;\n };\n WithMessagesContextComponent.displayName = `WithMessagesContext${getDisplayName(Component)}`;\n return WithMessagesContextComponent;\n};\n"],"mappings":";;;;;;;AAAA;AAwDA;AAEA;AACA;AAA+D;EAAA;AAAA;AAAA;AAgbxD,IAAMA,eAAe,GAAGC,iBAAK,CAACC,aAAa,CAChDC,mDAA0B,CAC3B;AAAC;AAEK,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgB;EAAA,IAG3BC,QAAQ,QAARA,QAAQ;IACRC,KAAK,QAALA,KAAK;EAAA,OAIL,gCAAC,eAAe,CAAC,QAAQ;IAAC,KAAK,EAAEA,KAAyC;IAAA;IAAA;MAAA;MAAA;MAAA;IAAA;EAAA,GACvED,QAAQ,CACgB;AAAA,CAC5B;AAAC;AAEK,IAAME,kBAAkB,GAAG,SAArBA,kBAAkB,GAExB;EACL,IAAMC,YAAY,GAAG,IAAAC,iBAAU,EAC7BT,eAAe,CACuC;EAExD,IAAIQ,YAAY,KAAKL,mDAA0B,IAAI,CAAC,IAAAO,oCAAiB,GAAE,EAAE;IACvE,MAAM,IAAIC,KAAK,yOAEd;EACH;EAEA,OAAOH,YAAY;AACrB,CAAC;AAAC;AAOK,IAAMI,mBAAmB,GAAG,SAAtBA,mBAAmB,CAI9BC,SAAiC,EACqC;EACtE,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA4B,CAChCC,KAA8D,EAC3D;IACH,IAAMC,eAAe,GAAGT,kBAAkB,EAAsB;IAEhE,OAAO,gCAAC,SAAS,gCAAMQ,KAAK,EAAYC,eAAe;MAAA;MAAA;QAAA;QAAA;QAAA;MAAA;IAAA,GAAI;EAC7D,CAAC;EACDF,4BAA4B,CAACG,WAAW,2BAAyB,IAAAC,8BAAc,EAACL,SAAS,CAAG;EAC5F,OAAOC,4BAA4B;AACrC,CAAC;AAAC"}
@@ -1,45 +1,28 @@
1
1
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
-
3
2
  var _typeof = require("@babel/runtime/helpers/typeof");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.withOverlayContext = exports.useOverlayContext = exports.OverlayContext = void 0;
9
-
10
7
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
8
  var _react = _interopRequireWildcard(require("react"));
13
-
14
9
  var _defaultBaseContextValue = require("../utils/defaultBaseContextValue");
15
-
16
10
  var _getDisplayName = require("../utils/getDisplayName");
17
-
18
11
  var _isTestEnvironment = require("../utils/isTestEnvironment");
19
-
20
12
  var _this = this,
21
- _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/contexts/overlayContext/OverlayContext.tsx";
22
-
13
+ _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/contexts/overlayContext/OverlayContext.tsx";
23
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
24
-
25
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
-
27
16
  var OverlayContext = _react["default"].createContext(_defaultBaseContextValue.DEFAULT_BASE_CONTEXT_VALUE);
28
-
29
17
  exports.OverlayContext = OverlayContext;
30
-
31
18
  var useOverlayContext = function useOverlayContext() {
32
19
  var contextValue = (0, _react.useContext)(OverlayContext);
33
-
34
20
  if (contextValue === _defaultBaseContextValue.DEFAULT_BASE_CONTEXT_VALUE && !(0, _isTestEnvironment.isTestEnvironment)()) {
35
21
  throw new Error("The useOverlayContext hook was called outside the OverlayContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider");
36
22
  }
37
-
38
23
  return contextValue;
39
24
  };
40
-
41
25
  exports.useOverlayContext = useOverlayContext;
42
-
43
26
  var withOverlayContext = function withOverlayContext(Component) {
44
27
  var WithOverlayContextComponent = function WithOverlayContextComponent(props) {
45
28
  var overlayContext = useOverlayContext();
@@ -52,10 +35,8 @@ var withOverlayContext = function withOverlayContext(Component) {
52
35
  }
53
36
  }));
54
37
  };
55
-
56
38
  WithOverlayContextComponent.displayName = "WithOverlayContext" + (0, _getDisplayName.getDisplayName)(Component);
57
39
  return WithOverlayContextComponent;
58
40
  };
59
-
60
41
  exports.withOverlayContext = withOverlayContext;
61
42
  //# sourceMappingURL=OverlayContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["OverlayContext.tsx"],"names":["OverlayContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","useOverlayContext","contextValue","Error","withOverlayContext","Component","WithOverlayContextComponent","props","overlayContext","displayName"],"mappings":";;;;;;;;;;;AAAA;;AAeA;;AAEA;;AACA;;;;;;;;;AAWO,IAAMA,cAAc,GAAGC,kBAAMC,aAAN,CAC5BC,mDAD4B,CAAvB;;;;AAmDA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAoB,GAAM;AACrC,MAAMC,YAAY,GAAG,uBAAWL,cAAX,CAArB;;AAEA,MAAIK,YAAY,KAAKF,mDAAjB,IAA+C,CAAC,2CAApD,EAAyE;AACvE,UAAM,IAAIG,KAAJ,4OAAN;AAGD;;AAED,SAAOD,YAAP;AACD,CAVM;;;;AAYA,IAAME,kBAAkB,GAAG,SAArBA,kBAAqB,CAGhCC,SAHgC,EAIkC;AAClE,MAAMC,2BAA2B,GAAG,SAA9BA,2BAA8B,CAClCC,KADkC,EAE/B;AACH,QAAMC,cAAc,GAAGP,iBAAiB,EAAxC;AAEA,WAAO,gCAAC,SAAD,gCAAgBM,KAAhB,EAAkDC,cAAlD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAP;AACD,GAND;;AAOAF,EAAAA,2BAA2B,CAACG,WAA5B,0BAA+D,oCAC7DJ,SAD6D,CAA/D;AAGA,SAAOC,2BAAP;AACD,CAhBM","sourcesContent":["import React, { useContext } from 'react';\n\nimport type { BottomSheetMethods } from '@gorhom/bottom-sheet/lib/typescript/types';\nimport type { Attachment } from 'stream-chat';\n\nimport type { AttachmentPickerProps } from '../../components/AttachmentPicker/AttachmentPicker';\nimport type { ImageGalleryCustomComponents } from '../../components/ImageGallery/ImageGallery';\n\nimport type { MessageType } from '../../components/MessageList/hooks/useMessageList';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport type { Streami18n } from '../../utils/Streami18n';\nimport type { AttachmentPickerContextValue } from '../attachmentPickerContext/AttachmentPickerContext';\nimport type { MessageOverlayContextValue } from '../messageOverlayContext/MessageOverlayContext';\nimport type { DeepPartial } from '../themeContext/ThemeContext';\nimport type { Theme } from '../themeContext/utils/theme';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type Overlay = 'alert' | 'gallery' | 'message' | 'none';\n\nexport type OverlayContextValue = {\n overlay: Overlay;\n setOverlay: React.Dispatch<React.SetStateAction<Overlay>>;\n style?: DeepPartial<Theme>;\n translucentStatusBar?: boolean;\n};\n\nexport const OverlayContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as OverlayContextValue,\n);\n\nexport type OverlayProviderProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<AttachmentPickerProps> &\n Partial<\n Pick<\n AttachmentPickerContextValue,\n | 'attachmentPickerBottomSheetHeight'\n | 'attachmentSelectionBarHeight'\n | 'bottomInset'\n | 'CameraSelectorIcon'\n | 'FileSelectorIcon'\n | 'ImageSelectorIcon'\n | 'topInset'\n >\n > &\n ImageGalleryCustomComponents<StreamChatGenerics> &\n Partial<\n Pick<\n MessageOverlayContextValue<StreamChatGenerics>,\n | 'MessageActionList'\n | 'MessageActionListItem'\n | 'OverlayReactionList'\n | 'OverlayReactions'\n | 'OverlayReactionsAvatar'\n >\n > &\n Pick<OverlayContextValue, 'translucentStatusBar'> & {\n /**\n * The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default\n * */\n closePicker?: (ref: React.RefObject<BottomSheetMethods>) => void;\n error?: boolean | Error;\n giphyVersion?: keyof NonNullable<Attachment['giphy']>;\n /** https://github.com/GetStream/stream-chat-react-native/wiki/Internationalization-(i18n) */\n i18nInstance?: Streami18n;\n imageGalleryGridHandleHeight?: number;\n imageGalleryGridSnapPoints?: [string | number, string | number];\n isMyMessage?: boolean;\n isThreadMessage?: boolean;\n message?: MessageType<StreamChatGenerics>;\n messageReactions?: boolean;\n messageTextNumberOfLines?: number;\n numberOfImageGalleryGridColumns?: number;\n openPicker?: (ref: React.RefObject<BottomSheetMethods>) => void;\n value?: Partial<OverlayContextValue>;\n };\n\nexport const useOverlayContext = () => {\n const contextValue = useContext(OverlayContext);\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useOverlayContext hook was called outside the OverlayContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,\n );\n }\n\n return contextValue;\n};\n\nexport const withOverlayContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<StreamChatGenerics>,\n): React.FC<Omit<StreamChatGenerics, keyof OverlayContextValue>> => {\n const WithOverlayContextComponent = (\n props: Omit<StreamChatGenerics, keyof OverlayContextValue>,\n ) => {\n const overlayContext = useOverlayContext();\n\n return <Component {...(props as StreamChatGenerics)} {...overlayContext} />;\n };\n WithOverlayContextComponent.displayName = `WithOverlayContext${getDisplayName(\n Component as React.ComponentType,\n )}`;\n return WithOverlayContextComponent;\n};\n"]}
1
+ {"version":3,"names":["OverlayContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","useOverlayContext","contextValue","useContext","isTestEnvironment","Error","withOverlayContext","Component","WithOverlayContextComponent","props","overlayContext","displayName","getDisplayName"],"sources":["OverlayContext.tsx"],"sourcesContent":["import React, { useContext } from 'react';\n\nimport type { BottomSheetMethods } from '@gorhom/bottom-sheet/lib/typescript/types';\nimport type { Attachment } from 'stream-chat';\n\nimport type { AttachmentPickerProps } from '../../components/AttachmentPicker/AttachmentPicker';\nimport type { ImageGalleryCustomComponents } from '../../components/ImageGallery/ImageGallery';\n\nimport type { MessageType } from '../../components/MessageList/hooks/useMessageList';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport type { Streami18n } from '../../utils/Streami18n';\nimport type { AttachmentPickerContextValue } from '../attachmentPickerContext/AttachmentPickerContext';\nimport type { MessageOverlayContextValue } from '../messageOverlayContext/MessageOverlayContext';\nimport type { DeepPartial } from '../themeContext/ThemeContext';\nimport type { Theme } from '../themeContext/utils/theme';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type Overlay = 'alert' | 'gallery' | 'message' | 'none';\n\nexport type OverlayContextValue = {\n overlay: Overlay;\n setOverlay: React.Dispatch<React.SetStateAction<Overlay>>;\n style?: DeepPartial<Theme>;\n translucentStatusBar?: boolean;\n};\n\nexport const OverlayContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as OverlayContextValue,\n);\n\nexport type OverlayProviderProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<AttachmentPickerProps> &\n Partial<\n Pick<\n AttachmentPickerContextValue,\n | 'attachmentPickerBottomSheetHeight'\n | 'attachmentSelectionBarHeight'\n | 'bottomInset'\n | 'CameraSelectorIcon'\n | 'FileSelectorIcon'\n | 'ImageSelectorIcon'\n | 'topInset'\n >\n > &\n ImageGalleryCustomComponents<StreamChatGenerics> &\n Partial<\n Pick<\n MessageOverlayContextValue<StreamChatGenerics>,\n | 'MessageActionList'\n | 'MessageActionListItem'\n | 'OverlayReactionList'\n | 'OverlayReactions'\n | 'OverlayReactionsAvatar'\n >\n > &\n Pick<OverlayContextValue, 'translucentStatusBar'> & {\n /**\n * The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default\n * */\n closePicker?: (ref: React.RefObject<BottomSheetMethods>) => void;\n error?: boolean | Error;\n giphyVersion?: keyof NonNullable<Attachment['giphy']>;\n /** https://github.com/GetStream/stream-chat-react-native/wiki/Internationalization-(i18n) */\n i18nInstance?: Streami18n;\n imageGalleryGridHandleHeight?: number;\n imageGalleryGridSnapPoints?: [string | number, string | number];\n isMyMessage?: boolean;\n isThreadMessage?: boolean;\n message?: MessageType<StreamChatGenerics>;\n messageReactions?: boolean;\n messageTextNumberOfLines?: number;\n numberOfImageGalleryGridColumns?: number;\n openPicker?: (ref: React.RefObject<BottomSheetMethods>) => void;\n value?: Partial<OverlayContextValue>;\n };\n\nexport const useOverlayContext = () => {\n const contextValue = useContext(OverlayContext);\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useOverlayContext hook was called outside the OverlayContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,\n );\n }\n\n return contextValue;\n};\n\nexport const withOverlayContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<StreamChatGenerics>,\n): React.FC<Omit<StreamChatGenerics, keyof OverlayContextValue>> => {\n const WithOverlayContextComponent = (\n props: Omit<StreamChatGenerics, keyof OverlayContextValue>,\n ) => {\n const overlayContext = useOverlayContext();\n\n return <Component {...(props as StreamChatGenerics)} {...overlayContext} />;\n };\n WithOverlayContextComponent.displayName = `WithOverlayContext${getDisplayName(\n Component as React.ComponentType,\n )}`;\n return WithOverlayContextComponent;\n};\n"],"mappings":";;;;;;;AAAA;AAeA;AAEA;AACA;AAA+D;EAAA;AAAA;AAAA;AAWxD,IAAMA,cAAc,GAAGC,iBAAK,CAACC,aAAa,CAC/CC,mDAA0B,CAC3B;AAAC;AAiDK,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiB,GAAS;EACrC,IAAMC,YAAY,GAAG,IAAAC,iBAAU,EAACN,cAAc,CAAC;EAE/C,IAAIK,YAAY,KAAKF,mDAA0B,IAAI,CAAC,IAAAI,oCAAiB,GAAE,EAAE;IACvE,MAAM,IAAIC,KAAK,4OAEd;EACH;EAEA,OAAOH,YAAY;AACrB,CAAC;AAAC;AAEK,IAAMI,kBAAkB,GAAG,SAArBA,kBAAkB,CAG7BC,SAAkD,EACgB;EAClE,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA2B,CAC/BC,KAA0D,EACvD;IACH,IAAMC,cAAc,GAAGT,iBAAiB,EAAE;IAE1C,OAAO,gCAAC,SAAS,gCAAMQ,KAAK,EAA6BC,cAAc;MAAA;MAAA;QAAA;QAAA;QAAA;MAAA;IAAA,GAAI;EAC7E,CAAC;EACDF,2BAA2B,CAACG,WAAW,0BAAwB,IAAAC,8BAAc,EAC3EL,SAAS,CACR;EACH,OAAOC,2BAA2B;AACpC,CAAC;AAAC"}
@@ -1,140 +1,103 @@
1
1
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
2
-
3
2
  var _typeof = require("@babel/runtime/helpers/typeof");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.OverlayProvider = void 0;
9
-
10
7
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
-
14
9
  var _react = _interopRequireWildcard(require("react"));
15
-
16
10
  var _reactNative = require("react-native");
17
-
18
11
  var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
19
-
20
12
  var _dayjs = _interopRequireDefault(require("dayjs"));
21
-
22
13
  var _OverlayContext = require("./OverlayContext");
23
-
24
14
  var _AttachmentPicker = require("../../components/AttachmentPicker/AttachmentPicker");
25
-
26
15
  var _AttachmentPickerBottomSheetHandle = require("../../components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle");
27
-
28
16
  var _AttachmentPickerError = require("../../components/AttachmentPicker/components/AttachmentPickerError");
29
-
30
17
  var _AttachmentPickerErrorImage = require("../../components/AttachmentPicker/components/AttachmentPickerErrorImage");
31
-
32
18
  var _CameraSelectorIcon = require("../../components/AttachmentPicker/components/CameraSelectorIcon");
33
-
34
19
  var _FileSelectorIcon = require("../../components/AttachmentPicker/components/FileSelectorIcon");
35
-
36
20
  var _ImageOverlaySelectedComponent = require("../../components/AttachmentPicker/components/ImageOverlaySelectedComponent");
37
-
38
21
  var _ImageSelectorIcon = require("../../components/AttachmentPicker/components/ImageSelectorIcon");
39
-
40
22
  var _ImageGallery = require("../../components/ImageGallery/ImageGallery");
41
-
42
23
  var _MessageOverlay = require("../../components/MessageOverlay/MessageOverlay");
43
-
44
24
  var _OverlayBackdrop = require("../../components/MessageOverlay/OverlayBackdrop");
45
-
46
25
  var _useStreami18n = require("../../hooks/useStreami18n");
47
-
48
26
  var _AttachmentPickerContext = require("../attachmentPickerContext/AttachmentPickerContext");
49
-
50
27
  var _ImageGalleryContext = require("../imageGalleryContext/ImageGalleryContext");
51
-
52
28
  var _MessageOverlayContext = require("../messageOverlayContext/MessageOverlayContext");
53
-
54
29
  var _ThemeContext = require("../themeContext/ThemeContext");
55
-
56
30
  var _TranslationContext = require("../translationContext/TranslationContext");
57
-
58
31
  var _this = this,
59
- _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/contexts/overlayContext/OverlayProvider.tsx";
60
-
32
+ _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/contexts/overlayContext/OverlayProvider.tsx";
61
33
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
62
-
63
34
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
64
-
65
35
  var OverlayProvider = function OverlayProvider(props) {
66
36
  var bottomSheetCloseTimeoutRef = (0, _react.useRef)();
67
-
68
37
  var _props$AttachmentPick = props.AttachmentPickerBottomSheetHandle,
69
- AttachmentPickerBottomSheetHandle = _props$AttachmentPick === void 0 ? _AttachmentPickerBottomSheetHandle.AttachmentPickerBottomSheetHandle : _props$AttachmentPick,
70
- attachmentPickerBottomSheetHandleHeight = props.attachmentPickerBottomSheetHandleHeight,
71
- attachmentPickerBottomSheetHeight = props.attachmentPickerBottomSheetHeight,
72
- _props$AttachmentPick2 = props.AttachmentPickerError,
73
- AttachmentPickerError = _props$AttachmentPick2 === void 0 ? _AttachmentPickerError.AttachmentPickerError : _props$AttachmentPick2,
74
- attachmentPickerErrorButtonText = props.attachmentPickerErrorButtonText,
75
- _props$AttachmentPick3 = props.AttachmentPickerErrorImage,
76
- AttachmentPickerErrorImage = _props$AttachmentPick3 === void 0 ? _AttachmentPickerErrorImage.AttachmentPickerErrorImage : _props$AttachmentPick3,
77
- attachmentPickerErrorText = props.attachmentPickerErrorText,
78
- attachmentSelectionBarHeight = props.attachmentSelectionBarHeight,
79
- bottomInset = props.bottomInset,
80
- _props$CameraSelector = props.CameraSelectorIcon,
81
- CameraSelectorIcon = _props$CameraSelector === void 0 ? _CameraSelectorIcon.CameraSelectorIcon : _props$CameraSelector,
82
- children = props.children,
83
- _props$closePicker = props.closePicker,
84
- _closePicker = _props$closePicker === void 0 ? function (ref) {
85
- var _ref$current;
86
-
87
- if ((_ref$current = ref.current) != null && _ref$current.close) {
38
+ AttachmentPickerBottomSheetHandle = _props$AttachmentPick === void 0 ? _AttachmentPickerBottomSheetHandle.AttachmentPickerBottomSheetHandle : _props$AttachmentPick,
39
+ attachmentPickerBottomSheetHandleHeight = props.attachmentPickerBottomSheetHandleHeight,
40
+ attachmentPickerBottomSheetHeight = props.attachmentPickerBottomSheetHeight,
41
+ _props$AttachmentPick2 = props.AttachmentPickerError,
42
+ AttachmentPickerError = _props$AttachmentPick2 === void 0 ? _AttachmentPickerError.AttachmentPickerError : _props$AttachmentPick2,
43
+ attachmentPickerErrorButtonText = props.attachmentPickerErrorButtonText,
44
+ _props$AttachmentPick3 = props.AttachmentPickerErrorImage,
45
+ AttachmentPickerErrorImage = _props$AttachmentPick3 === void 0 ? _AttachmentPickerErrorImage.AttachmentPickerErrorImage : _props$AttachmentPick3,
46
+ attachmentPickerErrorText = props.attachmentPickerErrorText,
47
+ attachmentSelectionBarHeight = props.attachmentSelectionBarHeight,
48
+ bottomInset = props.bottomInset,
49
+ _props$CameraSelector = props.CameraSelectorIcon,
50
+ CameraSelectorIcon = _props$CameraSelector === void 0 ? _CameraSelectorIcon.CameraSelectorIcon : _props$CameraSelector,
51
+ children = props.children,
52
+ _props$closePicker = props.closePicker,
53
+ _closePicker = _props$closePicker === void 0 ? function (ref) {
54
+ var _ref$current;
55
+ if ((_ref$current = ref.current) != null && _ref$current.close) {
56
+ if (bottomSheetCloseTimeoutRef.current) {
57
+ clearTimeout(bottomSheetCloseTimeoutRef.current);
58
+ }
59
+ ref.current.close();
60
+ bottomSheetCloseTimeoutRef.current = setTimeout(function () {
61
+ var _ref$current2;
62
+ (_ref$current2 = ref.current) == null ? void 0 : _ref$current2.close();
63
+ }, 600);
64
+ }
65
+ } : _props$closePicker,
66
+ _props$FileSelectorIc = props.FileSelectorIcon,
67
+ FileSelectorIcon = _props$FileSelectorIc === void 0 ? _FileSelectorIcon.FileSelectorIcon : _props$FileSelectorIc,
68
+ giphyVersion = props.giphyVersion,
69
+ i18nInstance = props.i18nInstance,
70
+ imageGalleryCustomComponents = props.imageGalleryCustomComponents,
71
+ imageGalleryGridHandleHeight = props.imageGalleryGridHandleHeight,
72
+ imageGalleryGridSnapPoints = props.imageGalleryGridSnapPoints,
73
+ _props$ImageOverlaySe = props.ImageOverlaySelectedComponent,
74
+ ImageOverlaySelectedComponent = _props$ImageOverlaySe === void 0 ? _ImageOverlaySelectedComponent.ImageOverlaySelectedComponent : _props$ImageOverlaySe,
75
+ _props$ImageSelectorI = props.ImageSelectorIcon,
76
+ ImageSelectorIcon = _props$ImageSelectorI === void 0 ? _ImageSelectorIcon.ImageSelectorIcon : _props$ImageSelectorI,
77
+ MessageActionList = props.MessageActionList,
78
+ MessageActionListItem = props.MessageActionListItem,
79
+ messageTextNumberOfLines = props.messageTextNumberOfLines,
80
+ numberOfAttachmentImagesToLoadPerCall = props.numberOfAttachmentImagesToLoadPerCall,
81
+ numberOfAttachmentPickerImageColumns = props.numberOfAttachmentPickerImageColumns,
82
+ numberOfImageGalleryGridColumns = props.numberOfImageGalleryGridColumns,
83
+ _props$openPicker = props.openPicker,
84
+ _openPicker = _props$openPicker === void 0 ? function (ref) {
85
+ var _ref$current3;
88
86
  if (bottomSheetCloseTimeoutRef.current) {
89
87
  clearTimeout(bottomSheetCloseTimeoutRef.current);
90
88
  }
91
-
92
- ref.current.close();
93
- bottomSheetCloseTimeoutRef.current = setTimeout(function () {
94
- var _ref$current2;
95
-
96
- (_ref$current2 = ref.current) == null ? void 0 : _ref$current2.close();
97
- }, 600);
98
- }
99
- } : _props$closePicker,
100
- _props$FileSelectorIc = props.FileSelectorIcon,
101
- FileSelectorIcon = _props$FileSelectorIc === void 0 ? _FileSelectorIcon.FileSelectorIcon : _props$FileSelectorIc,
102
- giphyVersion = props.giphyVersion,
103
- i18nInstance = props.i18nInstance,
104
- imageGalleryCustomComponents = props.imageGalleryCustomComponents,
105
- imageGalleryGridHandleHeight = props.imageGalleryGridHandleHeight,
106
- imageGalleryGridSnapPoints = props.imageGalleryGridSnapPoints,
107
- _props$ImageOverlaySe = props.ImageOverlaySelectedComponent,
108
- ImageOverlaySelectedComponent = _props$ImageOverlaySe === void 0 ? _ImageOverlaySelectedComponent.ImageOverlaySelectedComponent : _props$ImageOverlaySe,
109
- _props$ImageSelectorI = props.ImageSelectorIcon,
110
- ImageSelectorIcon = _props$ImageSelectorI === void 0 ? _ImageSelectorIcon.ImageSelectorIcon : _props$ImageSelectorI,
111
- MessageActionList = props.MessageActionList,
112
- MessageActionListItem = props.MessageActionListItem,
113
- messageTextNumberOfLines = props.messageTextNumberOfLines,
114
- numberOfAttachmentImagesToLoadPerCall = props.numberOfAttachmentImagesToLoadPerCall,
115
- numberOfAttachmentPickerImageColumns = props.numberOfAttachmentPickerImageColumns,
116
- numberOfImageGalleryGridColumns = props.numberOfImageGalleryGridColumns,
117
- _props$openPicker = props.openPicker,
118
- _openPicker = _props$openPicker === void 0 ? function (ref) {
119
- var _ref$current3;
120
-
121
- if (bottomSheetCloseTimeoutRef.current) {
122
- clearTimeout(bottomSheetCloseTimeoutRef.current);
123
- }
124
-
125
- if ((_ref$current3 = ref.current) != null && _ref$current3.snapToIndex) {
126
- ref.current.snapToIndex(0);
127
- } else {
128
- console.warn('bottom and top insets must be set for the image picker to work correctly');
129
- }
130
- } : _props$openPicker,
131
- topInset = props.topInset,
132
- translucentStatusBar = props.translucentStatusBar,
133
- OverlayReactionList = props.OverlayReactionList,
134
- OverlayReactions = props.OverlayReactions,
135
- OverlayReactionsAvatar = props.OverlayReactionsAvatar,
136
- value = props.value;
137
-
89
+ if ((_ref$current3 = ref.current) != null && _ref$current3.snapToIndex) {
90
+ ref.current.snapToIndex(0);
91
+ } else {
92
+ console.warn('bottom and top insets must be set for the image picker to work correctly');
93
+ }
94
+ } : _props$openPicker,
95
+ topInset = props.topInset,
96
+ translucentStatusBar = props.translucentStatusBar,
97
+ OverlayReactionList = props.OverlayReactionList,
98
+ OverlayReactions = props.OverlayReactions,
99
+ OverlayReactionsAvatar = props.OverlayReactionsAvatar,
100
+ value = props.value;
138
101
  var attachmentPickerProps = {
139
102
  AttachmentPickerBottomSheetHandle: AttachmentPickerBottomSheetHandle,
140
103
  attachmentPickerBottomSheetHandleHeight: attachmentPickerBottomSheetHandleHeight,
@@ -150,30 +113,25 @@ var OverlayProvider = function OverlayProvider(props) {
150
113
  translucentStatusBar: translucentStatusBar
151
114
  };
152
115
  var bottomSheetRef = (0, _react.useRef)(null);
153
-
154
116
  var _useState = (0, _react.useState)({
155
- t: function t(key) {
156
- return key;
157
- },
158
- tDateTimeParser: function tDateTimeParser(input) {
159
- return (0, _dayjs["default"])(input);
160
- }
161
- }),
162
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
163
- translators = _useState2[0],
164
- setTranslators = _useState2[1];
165
-
117
+ t: function t(key) {
118
+ return key;
119
+ },
120
+ tDateTimeParser: function tDateTimeParser(input) {
121
+ return (0, _dayjs["default"])(input);
122
+ }
123
+ }),
124
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
125
+ translators = _useState2[0],
126
+ setTranslators = _useState2[1];
166
127
  var _useState3 = (0, _react.useState)((value == null ? void 0 : value.overlay) || 'none'),
167
- _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
168
- overlay = _useState4[0],
169
- setOverlay = _useState4[1];
170
-
128
+ _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
129
+ overlay = _useState4[0],
130
+ setOverlay = _useState4[1];
171
131
  var overlayOpacity = (0, _reactNativeReanimated.useSharedValue)(0);
172
-
173
132
  var _Dimensions$get = _reactNative.Dimensions.get('screen'),
174
- height = _Dimensions$get.height,
175
- width = _Dimensions$get.width;
176
-
133
+ height = _Dimensions$get.height,
134
+ width = _Dimensions$get.width;
177
135
  var loadingTranslators = (0, _useStreami18n.useStreami18n)({
178
136
  i18nInstance: i18nInstance,
179
137
  setTranslators: setTranslators
@@ -184,12 +142,9 @@ var OverlayProvider = function OverlayProvider(props) {
184
142
  setOverlay('none');
185
143
  return true;
186
144
  }
187
-
188
145
  return false;
189
146
  };
190
-
191
147
  var backHandler = _reactNative.BackHandler.addEventListener('hardwareBackPress', backAction);
192
-
193
148
  return function () {
194
149
  return backHandler.remove();
195
150
  };
@@ -203,9 +158,7 @@ var OverlayProvider = function OverlayProvider(props) {
203
158
  }, []);
204
159
  (0, _react.useEffect)(function () {
205
160
  _closePicker(bottomSheetRef);
206
-
207
161
  (0, _reactNativeReanimated.cancelAnimation)(overlayOpacity);
208
-
209
162
  if (overlay !== 'none') {
210
163
  overlayOpacity.value = (0, _reactNativeReanimated.withTiming)(1);
211
164
  } else {
@@ -345,6 +298,5 @@ var OverlayProvider = function OverlayProvider(props) {
345
298
  }
346
299
  }))))))));
347
300
  };
348
-
349
301
  exports.OverlayProvider = OverlayProvider;
350
302
  //# sourceMappingURL=OverlayProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["OverlayProvider.tsx"],"names":["OverlayProvider","props","bottomSheetCloseTimeoutRef","AttachmentPickerBottomSheetHandle","DefaultAttachmentPickerBottomSheetHandle","attachmentPickerBottomSheetHandleHeight","attachmentPickerBottomSheetHeight","AttachmentPickerError","DefaultAttachmentPickerError","attachmentPickerErrorButtonText","AttachmentPickerErrorImage","DefaultAttachmentPickerErrorImage","attachmentPickerErrorText","attachmentSelectionBarHeight","bottomInset","CameraSelectorIcon","DefaultCameraSelectorIcon","children","closePicker","ref","current","close","clearTimeout","setTimeout","FileSelectorIcon","DefaultFileSelectorIcon","giphyVersion","i18nInstance","imageGalleryCustomComponents","imageGalleryGridHandleHeight","imageGalleryGridSnapPoints","ImageOverlaySelectedComponent","DefaultImageOverlaySelectedComponent","ImageSelectorIcon","DefaultImageSelectorIcon","MessageActionList","MessageActionListItem","messageTextNumberOfLines","numberOfAttachmentImagesToLoadPerCall","numberOfAttachmentPickerImageColumns","numberOfImageGalleryGridColumns","openPicker","snapToIndex","console","warn","topInset","translucentStatusBar","OverlayReactionList","OverlayReactions","OverlayReactionsAvatar","value","attachmentPickerProps","bottomSheetRef","t","key","tDateTimeParser","input","translators","setTranslators","overlay","setOverlay","overlayOpacity","Dimensions","get","height","width","loadingTranslators","backAction","backHandler","BackHandler","addEventListener","remove","attachmentPickerContext","overlayStyle","opacity","overlayContext","style","userLanguage","DEFAULT_USER_LANGUAGE","StyleSheet","absoluteFill"],"mappings":";;;;;;;;;;;;;AAAA;;AAEA;;AAEA;;AAQA;;AAEA;;AAEA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAGA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;AA0BO,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAG7BC,KAH6B,EAI1B;AACH,MAAMC,0BAA0B,GAAG,oBAAnC;;AACA,8BA0DID,KA1DJ,CACEE,iCADF;AAAA,MACEA,iCADF,sCACsCC,oEADtC;AAAA,MAEEC,uCAFF,GA0DIJ,KA1DJ,CAEEI,uCAFF;AAAA,MAGEC,iCAHF,GA0DIL,KA1DJ,CAGEK,iCAHF;AAAA,+BA0DIL,KA1DJ,CAIEM,qBAJF;AAAA,MAIEA,qBAJF,uCAI0BC,4CAJ1B;AAAA,MAKEC,+BALF,GA0DIR,KA1DJ,CAKEQ,+BALF;AAAA,+BA0DIR,KA1DJ,CAMES,0BANF;AAAA,MAMEA,0BANF,uCAM+BC,sDAN/B;AAAA,MAOEC,yBAPF,GA0DIX,KA1DJ,CAOEW,yBAPF;AAAA,MAQEC,4BARF,GA0DIZ,KA1DJ,CAQEY,4BARF;AAAA,MASEC,WATF,GA0DIb,KA1DJ,CASEa,WATF;AAAA,8BA0DIb,KA1DJ,CAUEc,kBAVF;AAAA,MAUEA,kBAVF,sCAUuBC,sCAVvB;AAAA,MAWEC,QAXF,GA0DIhB,KA1DJ,CAWEgB,QAXF;AAAA,2BA0DIhB,KA1DJ,CAYEiB,WAZF;AAAA,MAYEA,YAZF,mCAYgB,UAACC,GAAD,EAAS;AAAA;;AACrB,wBAAIA,GAAG,CAACC,OAAR,aAAI,aAAaC,KAAjB,EAAwB;AACtB,UAAInB,0BAA0B,CAACkB,OAA/B,EAAwC;AACtCE,QAAAA,YAAY,CAACpB,0BAA0B,CAACkB,OAA5B,CAAZ;AACD;;AACDD,MAAAA,GAAG,CAACC,OAAJ,CAAYC,KAAZ;AAMAnB,MAAAA,0BAA0B,CAACkB,OAA3B,GAAqCG,UAAU,CAAC,YAAM;AAAA;;AACpD,yBAAAJ,GAAG,CAACC,OAAJ,mCAAaC,KAAb;AACD,OAF8C,EAE5C,GAF4C,CAA/C;AAGD;AACF,GA3BH;AAAA,8BA0DIpB,KA1DJ,CA4BEuB,gBA5BF;AAAA,MA4BEA,gBA5BF,sCA4BqBC,kCA5BrB;AAAA,MA6BEC,YA7BF,GA0DIzB,KA1DJ,CA6BEyB,YA7BF;AAAA,MA8BEC,YA9BF,GA0DI1B,KA1DJ,CA8BE0B,YA9BF;AAAA,MA+BEC,4BA/BF,GA0DI3B,KA1DJ,CA+BE2B,4BA/BF;AAAA,MAgCEC,4BAhCF,GA0DI5B,KA1DJ,CAgCE4B,4BAhCF;AAAA,MAiCEC,0BAjCF,GA0DI7B,KA1DJ,CAiCE6B,0BAjCF;AAAA,8BA0DI7B,KA1DJ,CAkCE8B,6BAlCF;AAAA,MAkCEA,6BAlCF,sCAkCkCC,4DAlClC;AAAA,8BA0DI/B,KA1DJ,CAmCEgC,iBAnCF;AAAA,MAmCEA,iBAnCF,sCAmCsBC,oCAnCtB;AAAA,MAoCEC,iBApCF,GA0DIlC,KA1DJ,CAoCEkC,iBApCF;AAAA,MAqCEC,qBArCF,GA0DInC,KA1DJ,CAqCEmC,qBArCF;AAAA,MAsCEC,wBAtCF,GA0DIpC,KA1DJ,CAsCEoC,wBAtCF;AAAA,MAuCEC,qCAvCF,GA0DIrC,KA1DJ,CAuCEqC,qCAvCF;AAAA,MAwCEC,oCAxCF,GA0DItC,KA1DJ,CAwCEsC,oCAxCF;AAAA,MAyCEC,+BAzCF,GA0DIvC,KA1DJ,CAyCEuC,+BAzCF;AAAA,0BA0DIvC,KA1DJ,CA0CEwC,UA1CF;AAAA,MA0CEA,WA1CF,kCA0Ce,UAACtB,GAAD,EAAS;AAAA;;AACpB,QAAIjB,0BAA0B,CAACkB,OAA/B,EAAwC;AACtCE,MAAAA,YAAY,CAACpB,0BAA0B,CAACkB,OAA5B,CAAZ;AACD;;AACD,yBAAID,GAAG,CAACC,OAAR,aAAI,cAAasB,WAAjB,EAA8B;AAC5BvB,MAAAA,GAAG,CAACC,OAAJ,CAAYsB,WAAZ,CAAwB,CAAxB;AACD,KAFD,MAEO;AACLC,MAAAA,OAAO,CAACC,IAAR,CAAa,0EAAb;AACD;AACF,GAnDH;AAAA,MAoDEC,QApDF,GA0DI5C,KA1DJ,CAoDE4C,QApDF;AAAA,MAqDEC,oBArDF,GA0DI7C,KA1DJ,CAqDE6C,oBArDF;AAAA,MAsDEC,mBAtDF,GA0DI9C,KA1DJ,CAsDE8C,mBAtDF;AAAA,MAuDEC,gBAvDF,GA0DI/C,KA1DJ,CAuDE+C,gBAvDF;AAAA,MAwDEC,sBAxDF,GA0DIhD,KA1DJ,CAwDEgD,sBAxDF;AAAA,MAyDEC,KAzDF,GA0DIjD,KA1DJ,CAyDEiD,KAzDF;;AA4DA,MAAMC,qBAAqB,GAAG;AAC5BhD,IAAAA,iCAAiC,EAAjCA,iCAD4B;AAE5BE,IAAAA,uCAAuC,EAAvCA,uCAF4B;AAG5BC,IAAAA,iCAAiC,EAAjCA,iCAH4B;AAI5BC,IAAAA,qBAAqB,EAArBA,qBAJ4B;AAK5BE,IAAAA,+BAA+B,EAA/BA,+BAL4B;AAM5BC,IAAAA,0BAA0B,EAA1BA,0BAN4B;AAO5BE,IAAAA,yBAAyB,EAAzBA,yBAP4B;AAQ5BC,IAAAA,4BAA4B,EAA5BA,4BAR4B;AAS5BkB,IAAAA,6BAA6B,EAA7BA,6BAT4B;AAU5BO,IAAAA,qCAAqC,EAArCA,qCAV4B;AAW5BC,IAAAA,oCAAoC,EAApCA,oCAX4B;AAY5BO,IAAAA,oBAAoB,EAApBA;AAZ4B,GAA9B;AAeA,MAAMM,cAAc,GAAG,mBAAoB,IAApB,CAAvB;;AAEA,kBAAsC,qBAA8B;AAClEC,IAAAA,CAAC,EAAE,WAACC,GAAD;AAAA,aAAiBA,GAAjB;AAAA,KAD+D;AAElEC,IAAAA,eAAe,EAAE,yBAACC,KAAD;AAAA,aAAoC,uBAAMA,KAAN,CAApC;AAAA;AAFiD,GAA9B,CAAtC;AAAA;AAAA,MAAOC,WAAP;AAAA,MAAoBC,cAApB;;AAIA,mBAA8B,qBAAS,CAAAR,KAAK,QAAL,YAAAA,KAAK,CAAES,OAAP,KAAkB,MAA3B,CAA9B;AAAA;AAAA,MAAOA,OAAP;AAAA,MAAgBC,UAAhB;;AAEA,MAAMC,cAAc,GAAG,2CAAe,CAAf,CAAvB;;AACA,wBAA0BC,wBAAWC,GAAX,CAAe,QAAf,CAA1B;AAAA,MAAQC,MAAR,mBAAQA,MAAR;AAAA,MAAgBC,KAAhB,mBAAgBA,KAAhB;;AAGA,MAAMC,kBAAkB,GAAG,kCAAc;AAAEvC,IAAAA,YAAY,EAAZA,YAAF;AAAgB+B,IAAAA,cAAc,EAAdA;AAAhB,GAAd,CAA3B;AAEA,wBAAU,YAAM;AACd,QAAMS,UAAU,GAAG,SAAbA,UAAa,GAAM;AACvB,UAAIR,OAAO,KAAK,MAAhB,EAAwB;AACtBC,QAAAA,UAAU,CAAC,MAAD,CAAV;AACA,eAAO,IAAP;AACD;;AAED,aAAO,KAAP;AACD,KAPD;;AASA,QAAMQ,WAAW,GAAGC,yBAAYC,gBAAZ,CAA6B,mBAA7B,EAAkDH,UAAlD,CAApB;;AAEA,WAAO;AAAA,aAAMC,WAAW,CAACG,MAAZ,EAAN;AAAA,KAAP;AACD,GAbD,EAaG,CAACZ,OAAD,CAbH;AAeA,wBACE;AAAA,WAEE,YAAM;AACJ,UAAIzD,0BAA0B,CAACkB,OAA/B,EAAwC;AACtCE,QAAAA,YAAY,CAACpB,0BAA0B,CAACkB,OAA5B,CAAZ;AACD;AACF,KANH;AAAA,GADF,EAQE,EARF;AAWA,wBAAU,YAAM;AACdF,IAAAA,YAAW,CAACkC,cAAD,CAAX;;AACA,gDAAgBS,cAAhB;;AACA,QAAIF,OAAO,KAAK,MAAhB,EAAwB;AACtBE,MAAAA,cAAc,CAACX,KAAf,GAAuB,uCAAW,CAAX,CAAvB;AACD,KAFD,MAEO;AACLW,MAAAA,cAAc,CAACX,KAAf,GAAuB,uCAAW,CAAX,CAAvB;AACD;AACF,GARD,EAQG,CAACS,OAAD,CARH;AAUA,MAAMa,uBAAuB,GAAG;AAC9BlE,IAAAA,iCAAiC,EAAjCA,iCAD8B;AAE9BO,IAAAA,4BAA4B,EAA5BA,4BAF8B;AAG9BC,IAAAA,WAAW,EAAXA,WAH8B;AAI9BC,IAAAA,kBAAkB,EAAlBA,kBAJ8B;AAK9BG,IAAAA,WAAW,EAAE;AAAA,aAAMA,YAAW,CAACkC,cAAD,CAAjB;AAAA,KALiB;AAM9B5B,IAAAA,gBAAgB,EAAhBA,gBAN8B;AAO9BS,IAAAA,iBAAiB,EAAjBA,iBAP8B;AAQ9BQ,IAAAA,UAAU,EAAE;AAAA,aAAMA,WAAU,CAACW,cAAD,CAAhB;AAAA,KARkB;AAS9BP,IAAAA,QAAQ,EAARA;AAT8B,GAAhC;AAYA,MAAM4B,YAAY,GAAG,6CACnB;AAAA,WAAO;AACLC,MAAAA,OAAO,EAAEb,cAAc,CAACX;AADnB,KAAP;AAAA,GADmB,EAInB,EAJmB,CAArB;AAOA,MAAMyB,cAAc,GAAG;AACrBhB,IAAAA,OAAO,EAAPA,OADqB;AAErBC,IAAAA,UAAU,EAAVA,UAFqB;AAGrBgB,IAAAA,KAAK,EAAE1B,KAAF,oBAAEA,KAAK,CAAE0B,KAHO;AAIrB9B,IAAAA,oBAAoB,EAApBA;AAJqB,GAAvB;AAOA,MAAIoB,kBAAJ,EAAwB,OAAO,IAAP;AAExB,SACE,gCAAC,uCAAD;AAAqB,IAAA,KAAK,gCAAOT,WAAP;AAAoBoB,MAAAA,YAAY,EAAEC;AAAlC,MAA1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,gCAAC,8BAAD,CAAgB,QAAhB;AAAyB,IAAA,KAAK,EAAEH,cAAhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,gCAAC,6CAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,gCAAC,iDAAD;AAA0B,IAAA,KAAK,EAAEH,uBAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,gCAAC,yCAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGvD,QADH,EAEE,gCAAC,2BAAD;AAAe,IAAA,KAAK,EAAE0D,cAAc,CAACC,KAArC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,gCAAC,iCAAD,CAAU,IAAV;AACE,IAAA,aAAa,EAAEjB,OAAO,KAAK,MAAZ,GAAqB,MAArB,GAA8B,MAD/C;AAEE,IAAA,KAAK,EAAE,CAACoB,wBAAWC,YAAZ,EAA0BP,YAA1B,CAFT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAIE,gCAAC,gCAAD;AAAiB,IAAA,KAAK,EAAE,CAACM,wBAAWC,YAAZ,EAA0B;AAAEhB,MAAAA,MAAM,EAANA,MAAF;AAAUC,MAAAA,KAAK,EAALA;AAAV,KAA1B,CAAxB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAJF,CADF,EAOGN,OAAO,KAAK,SAAZ,IACC,gCAAC,8BAAD;AACE,IAAA,iBAAiB,EAAExB,iBADrB;AAEE,IAAA,qBAAqB,EAAEC,qBAFzB;AAGE,IAAA,wBAAwB,EAAEC,wBAH5B;AAIE,IAAA,cAAc,EAAEwB,cAJlB;AAKE,IAAA,mBAAmB,EAAEd,mBALvB;AAME,IAAA,gBAAgB,EAAEC,gBANpB;AAOE,IAAA,sBAAsB,EAAEC,sBAP1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IARJ,EAkBGU,OAAO,KAAK,SAAZ,IACC,gCAAC,0BAAD;AACE,IAAA,YAAY,EAAEjC,YADhB;AAEE,IAAA,4BAA4B,EAAEE,4BAFhC;AAGE,IAAA,4BAA4B,EAAEC,4BAHhC;AAIE,IAAA,0BAA0B,EAAEC,0BAJ9B;AAKE,IAAA,+BAA+B,EAAEU,+BALnC;AAME,IAAA,cAAc,EAAEqB,cANlB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAnBJ,EA4BE,gCAAC,kCAAD;AAAkB,IAAA,GAAG,EAAET;AAAvB,KAA2CD,qBAA3C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KA5BF,CAFF,CADF,CADF,CADF,CADF,CADF;AA2CD,CA1MM","sourcesContent":["import React, { PropsWithChildren, useEffect, useRef, useState } from 'react';\n\nimport { BackHandler, Dimensions, StyleSheet, ViewStyle } from 'react-native';\n\nimport Animated, {\n cancelAnimation,\n useAnimatedStyle,\n useSharedValue,\n withTiming,\n} from 'react-native-reanimated';\n\nimport type BottomSheet from '@gorhom/bottom-sheet';\nimport Dayjs from 'dayjs';\n\nimport { OverlayContext, OverlayProviderProps } from './OverlayContext';\n\nimport { AttachmentPicker } from '../../components/AttachmentPicker/AttachmentPicker';\n\nimport { AttachmentPickerBottomSheetHandle as DefaultAttachmentPickerBottomSheetHandle } from '../../components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle';\nimport { AttachmentPickerError as DefaultAttachmentPickerError } from '../../components/AttachmentPicker/components/AttachmentPickerError';\nimport { AttachmentPickerErrorImage as DefaultAttachmentPickerErrorImage } from '../../components/AttachmentPicker/components/AttachmentPickerErrorImage';\nimport { CameraSelectorIcon as DefaultCameraSelectorIcon } from '../../components/AttachmentPicker/components/CameraSelectorIcon';\nimport { FileSelectorIcon as DefaultFileSelectorIcon } from '../../components/AttachmentPicker/components/FileSelectorIcon';\nimport { ImageOverlaySelectedComponent as DefaultImageOverlaySelectedComponent } from '../../components/AttachmentPicker/components/ImageOverlaySelectedComponent';\nimport { ImageSelectorIcon as DefaultImageSelectorIcon } from '../../components/AttachmentPicker/components/ImageSelectorIcon';\nimport { ImageGallery } from '../../components/ImageGallery/ImageGallery';\nimport { MessageOverlay } from '../../components/MessageOverlay/MessageOverlay';\nimport { OverlayBackdrop } from '../../components/MessageOverlay/OverlayBackdrop';\nimport { useStreami18n } from '../../hooks/useStreami18n';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { AttachmentPickerProvider } from '../attachmentPickerContext/AttachmentPickerContext';\nimport { ImageGalleryProvider } from '../imageGalleryContext/ImageGalleryContext';\nimport { MessageOverlayProvider } from '../messageOverlayContext/MessageOverlayContext';\nimport { ThemeProvider } from '../themeContext/ThemeContext';\nimport {\n DEFAULT_USER_LANGUAGE,\n TranslationProvider,\n TranslatorFunctions,\n} from '../translationContext/TranslationContext';\n\n/**\n * - The highest level of these components is the `OverlayProvider`. The `OverlayProvider` allows users to interact with messages on long press above the underlying views, use the full screen image viewer, and use the `AttachmentPicker` as a keyboard-esk view.\n * Because these views must exist above all others `OverlayProvider` should wrap your navigation stack as well. Assuming [`React Navigation`](https://reactnavigation.org/) is being used, your highest level navigation stack should be wrapped in the provider:\n *\n * ```js\n * <NavigationContainer>\n * <OverlayProvider>\n * <Stack.Navigator>\n * <Stack.Screen />\n * </Stack.Navigator>\n * </OverlayProvider>\n * </NavigationContainer>\n * ```\n *\n * - Don't forget to check our cookbook section of [OverlayProvider](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#overlayprovider)\n *\n * - Also check the [visual component guide](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#custom-components), to learn about component customizations.\n *\n * @example ./OverlayProvider.md\n */\nexport const OverlayProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: PropsWithChildren<OverlayProviderProps<StreamChatGenerics>>,\n) => {\n const bottomSheetCloseTimeoutRef = useRef<NodeJS.Timeout>();\n const {\n AttachmentPickerBottomSheetHandle = DefaultAttachmentPickerBottomSheetHandle,\n attachmentPickerBottomSheetHandleHeight,\n attachmentPickerBottomSheetHeight,\n AttachmentPickerError = DefaultAttachmentPickerError,\n attachmentPickerErrorButtonText,\n AttachmentPickerErrorImage = DefaultAttachmentPickerErrorImage,\n attachmentPickerErrorText,\n attachmentSelectionBarHeight,\n bottomInset,\n CameraSelectorIcon = DefaultCameraSelectorIcon,\n children,\n closePicker = (ref) => {\n if (ref.current?.close) {\n if (bottomSheetCloseTimeoutRef.current) {\n clearTimeout(bottomSheetCloseTimeoutRef.current);\n }\n ref.current.close();\n // Attempt to close the bottomsheet again to circumvent accidental opening on Android.\n // Details: This to prevent a race condition where the close function is called during the point when a internal container layout happens within the bottomsheet due to keyboard affecting the layout\n // If the container layout measures a shorter height than previous but if the close snapped to the previous height's position, the bottom sheet will show up\n // this short delay ensures that close function is always called after a container layout due to keyboard change\n // NOTE: this timeout has to be above 500 as the keyboardAnimationDuration is 500 in the bottomsheet library - see src/hooks/useKeyboard.ts there for more details\n bottomSheetCloseTimeoutRef.current = setTimeout(() => {\n ref.current?.close();\n }, 600);\n }\n },\n FileSelectorIcon = DefaultFileSelectorIcon,\n giphyVersion,\n i18nInstance,\n imageGalleryCustomComponents,\n imageGalleryGridHandleHeight,\n imageGalleryGridSnapPoints,\n ImageOverlaySelectedComponent = DefaultImageOverlaySelectedComponent,\n ImageSelectorIcon = DefaultImageSelectorIcon,\n MessageActionList,\n MessageActionListItem,\n messageTextNumberOfLines,\n numberOfAttachmentImagesToLoadPerCall,\n numberOfAttachmentPickerImageColumns,\n numberOfImageGalleryGridColumns,\n openPicker = (ref) => {\n if (bottomSheetCloseTimeoutRef.current) {\n clearTimeout(bottomSheetCloseTimeoutRef.current);\n }\n if (ref.current?.snapToIndex) {\n ref.current.snapToIndex(0);\n } else {\n console.warn('bottom and top insets must be set for the image picker to work correctly');\n }\n },\n topInset,\n translucentStatusBar,\n OverlayReactionList,\n OverlayReactions,\n OverlayReactionsAvatar,\n value,\n } = props;\n\n const attachmentPickerProps = {\n AttachmentPickerBottomSheetHandle,\n attachmentPickerBottomSheetHandleHeight,\n attachmentPickerBottomSheetHeight,\n AttachmentPickerError,\n attachmentPickerErrorButtonText,\n AttachmentPickerErrorImage,\n attachmentPickerErrorText,\n attachmentSelectionBarHeight,\n ImageOverlaySelectedComponent,\n numberOfAttachmentImagesToLoadPerCall,\n numberOfAttachmentPickerImageColumns,\n translucentStatusBar,\n };\n\n const bottomSheetRef = useRef<BottomSheet>(null);\n\n const [translators, setTranslators] = useState<TranslatorFunctions>({\n t: (key: string) => key,\n tDateTimeParser: (input?: string | number | Date) => Dayjs(input),\n });\n const [overlay, setOverlay] = useState(value?.overlay || 'none');\n\n const overlayOpacity = useSharedValue(0);\n const { height, width } = Dimensions.get('screen');\n\n // Setup translators\n const loadingTranslators = useStreami18n({ i18nInstance, setTranslators });\n\n useEffect(() => {\n const backAction = () => {\n if (overlay !== 'none') {\n setOverlay('none');\n return true;\n }\n\n return false;\n };\n\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);\n\n return () => backHandler.remove();\n }, [overlay]);\n\n useEffect(\n () =>\n // cleanup the timeout if the component unmounts\n () => {\n if (bottomSheetCloseTimeoutRef.current) {\n clearTimeout(bottomSheetCloseTimeoutRef.current);\n }\n },\n [],\n );\n\n useEffect(() => {\n closePicker(bottomSheetRef);\n cancelAnimation(overlayOpacity);\n if (overlay !== 'none') {\n overlayOpacity.value = withTiming(1);\n } else {\n overlayOpacity.value = withTiming(0);\n }\n }, [overlay]);\n\n const attachmentPickerContext = {\n attachmentPickerBottomSheetHeight,\n attachmentSelectionBarHeight,\n bottomInset,\n CameraSelectorIcon,\n closePicker: () => closePicker(bottomSheetRef),\n FileSelectorIcon,\n ImageSelectorIcon,\n openPicker: () => openPicker(bottomSheetRef),\n topInset,\n };\n\n const overlayStyle = useAnimatedStyle<ViewStyle>(\n () => ({\n opacity: overlayOpacity.value,\n }),\n [],\n );\n\n const overlayContext = {\n overlay,\n setOverlay,\n style: value?.style,\n translucentStatusBar,\n };\n\n if (loadingTranslators) return null;\n\n return (\n <TranslationProvider value={{ ...translators, userLanguage: DEFAULT_USER_LANGUAGE }}>\n <OverlayContext.Provider value={overlayContext}>\n <MessageOverlayProvider<StreamChatGenerics>>\n <AttachmentPickerProvider value={attachmentPickerContext}>\n <ImageGalleryProvider>\n {children}\n <ThemeProvider style={overlayContext.style}>\n <Animated.View\n pointerEvents={overlay === 'none' ? 'none' : 'auto'}\n style={[StyleSheet.absoluteFill, overlayStyle]}\n >\n <OverlayBackdrop style={[StyleSheet.absoluteFill, { height, width }]} />\n </Animated.View>\n {overlay === 'message' && (\n <MessageOverlay<StreamChatGenerics>\n MessageActionList={MessageActionList}\n MessageActionListItem={MessageActionListItem}\n messageTextNumberOfLines={messageTextNumberOfLines}\n overlayOpacity={overlayOpacity}\n OverlayReactionList={OverlayReactionList}\n OverlayReactions={OverlayReactions}\n OverlayReactionsAvatar={OverlayReactionsAvatar}\n />\n )}\n {overlay === 'gallery' && (\n <ImageGallery<StreamChatGenerics>\n giphyVersion={giphyVersion}\n imageGalleryCustomComponents={imageGalleryCustomComponents}\n imageGalleryGridHandleHeight={imageGalleryGridHandleHeight}\n imageGalleryGridSnapPoints={imageGalleryGridSnapPoints}\n numberOfImageGalleryGridColumns={numberOfImageGalleryGridColumns}\n overlayOpacity={overlayOpacity}\n />\n )}\n <AttachmentPicker ref={bottomSheetRef} {...attachmentPickerProps} />\n </ThemeProvider>\n </ImageGalleryProvider>\n </AttachmentPickerProvider>\n </MessageOverlayProvider>\n </OverlayContext.Provider>\n </TranslationProvider>\n );\n};\n"]}
1
+ {"version":3,"names":["OverlayProvider","props","bottomSheetCloseTimeoutRef","useRef","AttachmentPickerBottomSheetHandle","DefaultAttachmentPickerBottomSheetHandle","attachmentPickerBottomSheetHandleHeight","attachmentPickerBottomSheetHeight","AttachmentPickerError","DefaultAttachmentPickerError","attachmentPickerErrorButtonText","AttachmentPickerErrorImage","DefaultAttachmentPickerErrorImage","attachmentPickerErrorText","attachmentSelectionBarHeight","bottomInset","CameraSelectorIcon","DefaultCameraSelectorIcon","children","closePicker","ref","current","close","clearTimeout","setTimeout","FileSelectorIcon","DefaultFileSelectorIcon","giphyVersion","i18nInstance","imageGalleryCustomComponents","imageGalleryGridHandleHeight","imageGalleryGridSnapPoints","ImageOverlaySelectedComponent","DefaultImageOverlaySelectedComponent","ImageSelectorIcon","DefaultImageSelectorIcon","MessageActionList","MessageActionListItem","messageTextNumberOfLines","numberOfAttachmentImagesToLoadPerCall","numberOfAttachmentPickerImageColumns","numberOfImageGalleryGridColumns","openPicker","snapToIndex","console","warn","topInset","translucentStatusBar","OverlayReactionList","OverlayReactions","OverlayReactionsAvatar","value","attachmentPickerProps","bottomSheetRef","useState","t","key","tDateTimeParser","input","Dayjs","translators","setTranslators","overlay","setOverlay","overlayOpacity","useSharedValue","Dimensions","get","height","width","loadingTranslators","useStreami18n","useEffect","backAction","backHandler","BackHandler","addEventListener","remove","cancelAnimation","withTiming","attachmentPickerContext","overlayStyle","useAnimatedStyle","opacity","overlayContext","style","userLanguage","DEFAULT_USER_LANGUAGE","StyleSheet","absoluteFill"],"sources":["OverlayProvider.tsx"],"sourcesContent":["import React, { PropsWithChildren, useEffect, useRef, useState } from 'react';\n\nimport { BackHandler, Dimensions, StyleSheet, ViewStyle } from 'react-native';\n\nimport Animated, {\n cancelAnimation,\n useAnimatedStyle,\n useSharedValue,\n withTiming,\n} from 'react-native-reanimated';\n\nimport type BottomSheet from '@gorhom/bottom-sheet';\nimport Dayjs from 'dayjs';\n\nimport { OverlayContext, OverlayProviderProps } from './OverlayContext';\n\nimport { AttachmentPicker } from '../../components/AttachmentPicker/AttachmentPicker';\n\nimport { AttachmentPickerBottomSheetHandle as DefaultAttachmentPickerBottomSheetHandle } from '../../components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle';\nimport { AttachmentPickerError as DefaultAttachmentPickerError } from '../../components/AttachmentPicker/components/AttachmentPickerError';\nimport { AttachmentPickerErrorImage as DefaultAttachmentPickerErrorImage } from '../../components/AttachmentPicker/components/AttachmentPickerErrorImage';\nimport { CameraSelectorIcon as DefaultCameraSelectorIcon } from '../../components/AttachmentPicker/components/CameraSelectorIcon';\nimport { FileSelectorIcon as DefaultFileSelectorIcon } from '../../components/AttachmentPicker/components/FileSelectorIcon';\nimport { ImageOverlaySelectedComponent as DefaultImageOverlaySelectedComponent } from '../../components/AttachmentPicker/components/ImageOverlaySelectedComponent';\nimport { ImageSelectorIcon as DefaultImageSelectorIcon } from '../../components/AttachmentPicker/components/ImageSelectorIcon';\nimport { ImageGallery } from '../../components/ImageGallery/ImageGallery';\nimport { MessageOverlay } from '../../components/MessageOverlay/MessageOverlay';\nimport { OverlayBackdrop } from '../../components/MessageOverlay/OverlayBackdrop';\nimport { useStreami18n } from '../../hooks/useStreami18n';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { AttachmentPickerProvider } from '../attachmentPickerContext/AttachmentPickerContext';\nimport { ImageGalleryProvider } from '../imageGalleryContext/ImageGalleryContext';\nimport { MessageOverlayProvider } from '../messageOverlayContext/MessageOverlayContext';\nimport { ThemeProvider } from '../themeContext/ThemeContext';\nimport {\n DEFAULT_USER_LANGUAGE,\n TranslationProvider,\n TranslatorFunctions,\n} from '../translationContext/TranslationContext';\n\n/**\n * - The highest level of these components is the `OverlayProvider`. The `OverlayProvider` allows users to interact with messages on long press above the underlying views, use the full screen image viewer, and use the `AttachmentPicker` as a keyboard-esk view.\n * Because these views must exist above all others `OverlayProvider` should wrap your navigation stack as well. Assuming [`React Navigation`](https://reactnavigation.org/) is being used, your highest level navigation stack should be wrapped in the provider:\n *\n * ```js\n * <NavigationContainer>\n * <OverlayProvider>\n * <Stack.Navigator>\n * <Stack.Screen />\n * </Stack.Navigator>\n * </OverlayProvider>\n * </NavigationContainer>\n * ```\n *\n * - Don't forget to check our cookbook section of [OverlayProvider](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#overlayprovider)\n *\n * - Also check the [visual component guide](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#custom-components), to learn about component customizations.\n *\n * @example ./OverlayProvider.md\n */\nexport const OverlayProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: PropsWithChildren<OverlayProviderProps<StreamChatGenerics>>,\n) => {\n const bottomSheetCloseTimeoutRef = useRef<NodeJS.Timeout>();\n const {\n AttachmentPickerBottomSheetHandle = DefaultAttachmentPickerBottomSheetHandle,\n attachmentPickerBottomSheetHandleHeight,\n attachmentPickerBottomSheetHeight,\n AttachmentPickerError = DefaultAttachmentPickerError,\n attachmentPickerErrorButtonText,\n AttachmentPickerErrorImage = DefaultAttachmentPickerErrorImage,\n attachmentPickerErrorText,\n attachmentSelectionBarHeight,\n bottomInset,\n CameraSelectorIcon = DefaultCameraSelectorIcon,\n children,\n closePicker = (ref) => {\n if (ref.current?.close) {\n if (bottomSheetCloseTimeoutRef.current) {\n clearTimeout(bottomSheetCloseTimeoutRef.current);\n }\n ref.current.close();\n // Attempt to close the bottomsheet again to circumvent accidental opening on Android.\n // Details: This to prevent a race condition where the close function is called during the point when a internal container layout happens within the bottomsheet due to keyboard affecting the layout\n // If the container layout measures a shorter height than previous but if the close snapped to the previous height's position, the bottom sheet will show up\n // this short delay ensures that close function is always called after a container layout due to keyboard change\n // NOTE: this timeout has to be above 500 as the keyboardAnimationDuration is 500 in the bottomsheet library - see src/hooks/useKeyboard.ts there for more details\n bottomSheetCloseTimeoutRef.current = setTimeout(() => {\n ref.current?.close();\n }, 600);\n }\n },\n FileSelectorIcon = DefaultFileSelectorIcon,\n giphyVersion,\n i18nInstance,\n imageGalleryCustomComponents,\n imageGalleryGridHandleHeight,\n imageGalleryGridSnapPoints,\n ImageOverlaySelectedComponent = DefaultImageOverlaySelectedComponent,\n ImageSelectorIcon = DefaultImageSelectorIcon,\n MessageActionList,\n MessageActionListItem,\n messageTextNumberOfLines,\n numberOfAttachmentImagesToLoadPerCall,\n numberOfAttachmentPickerImageColumns,\n numberOfImageGalleryGridColumns,\n openPicker = (ref) => {\n if (bottomSheetCloseTimeoutRef.current) {\n clearTimeout(bottomSheetCloseTimeoutRef.current);\n }\n if (ref.current?.snapToIndex) {\n ref.current.snapToIndex(0);\n } else {\n console.warn('bottom and top insets must be set for the image picker to work correctly');\n }\n },\n topInset,\n translucentStatusBar,\n OverlayReactionList,\n OverlayReactions,\n OverlayReactionsAvatar,\n value,\n } = props;\n\n const attachmentPickerProps = {\n AttachmentPickerBottomSheetHandle,\n attachmentPickerBottomSheetHandleHeight,\n attachmentPickerBottomSheetHeight,\n AttachmentPickerError,\n attachmentPickerErrorButtonText,\n AttachmentPickerErrorImage,\n attachmentPickerErrorText,\n attachmentSelectionBarHeight,\n ImageOverlaySelectedComponent,\n numberOfAttachmentImagesToLoadPerCall,\n numberOfAttachmentPickerImageColumns,\n translucentStatusBar,\n };\n\n const bottomSheetRef = useRef<BottomSheet>(null);\n\n const [translators, setTranslators] = useState<TranslatorFunctions>({\n t: (key: string) => key,\n tDateTimeParser: (input?: string | number | Date) => Dayjs(input),\n });\n const [overlay, setOverlay] = useState(value?.overlay || 'none');\n\n const overlayOpacity = useSharedValue(0);\n const { height, width } = Dimensions.get('screen');\n\n // Setup translators\n const loadingTranslators = useStreami18n({ i18nInstance, setTranslators });\n\n useEffect(() => {\n const backAction = () => {\n if (overlay !== 'none') {\n setOverlay('none');\n return true;\n }\n\n return false;\n };\n\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);\n\n return () => backHandler.remove();\n }, [overlay]);\n\n useEffect(\n () =>\n // cleanup the timeout if the component unmounts\n () => {\n if (bottomSheetCloseTimeoutRef.current) {\n clearTimeout(bottomSheetCloseTimeoutRef.current);\n }\n },\n [],\n );\n\n useEffect(() => {\n closePicker(bottomSheetRef);\n cancelAnimation(overlayOpacity);\n if (overlay !== 'none') {\n overlayOpacity.value = withTiming(1);\n } else {\n overlayOpacity.value = withTiming(0);\n }\n }, [overlay]);\n\n const attachmentPickerContext = {\n attachmentPickerBottomSheetHeight,\n attachmentSelectionBarHeight,\n bottomInset,\n CameraSelectorIcon,\n closePicker: () => closePicker(bottomSheetRef),\n FileSelectorIcon,\n ImageSelectorIcon,\n openPicker: () => openPicker(bottomSheetRef),\n topInset,\n };\n\n const overlayStyle = useAnimatedStyle<ViewStyle>(\n () => ({\n opacity: overlayOpacity.value,\n }),\n [],\n );\n\n const overlayContext = {\n overlay,\n setOverlay,\n style: value?.style,\n translucentStatusBar,\n };\n\n if (loadingTranslators) return null;\n\n return (\n <TranslationProvider value={{ ...translators, userLanguage: DEFAULT_USER_LANGUAGE }}>\n <OverlayContext.Provider value={overlayContext}>\n <MessageOverlayProvider<StreamChatGenerics>>\n <AttachmentPickerProvider value={attachmentPickerContext}>\n <ImageGalleryProvider>\n {children}\n <ThemeProvider style={overlayContext.style}>\n <Animated.View\n pointerEvents={overlay === 'none' ? 'none' : 'auto'}\n style={[StyleSheet.absoluteFill, overlayStyle]}\n >\n <OverlayBackdrop style={[StyleSheet.absoluteFill, { height, width }]} />\n </Animated.View>\n {overlay === 'message' && (\n <MessageOverlay<StreamChatGenerics>\n MessageActionList={MessageActionList}\n MessageActionListItem={MessageActionListItem}\n messageTextNumberOfLines={messageTextNumberOfLines}\n overlayOpacity={overlayOpacity}\n OverlayReactionList={OverlayReactionList}\n OverlayReactions={OverlayReactions}\n OverlayReactionsAvatar={OverlayReactionsAvatar}\n />\n )}\n {overlay === 'gallery' && (\n <ImageGallery<StreamChatGenerics>\n giphyVersion={giphyVersion}\n imageGalleryCustomComponents={imageGalleryCustomComponents}\n imageGalleryGridHandleHeight={imageGalleryGridHandleHeight}\n imageGalleryGridSnapPoints={imageGalleryGridSnapPoints}\n numberOfImageGalleryGridColumns={numberOfImageGalleryGridColumns}\n overlayOpacity={overlayOpacity}\n />\n )}\n <AttachmentPicker ref={bottomSheetRef} {...attachmentPickerProps} />\n </ThemeProvider>\n </ImageGalleryProvider>\n </AttachmentPickerProvider>\n </MessageOverlayProvider>\n </OverlayContext.Provider>\n </TranslationProvider>\n );\n};\n"],"mappings":"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"}