stream-chat-react-native-core 5.27.0 → 5.27.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2488) hide show
  1. package/lib/commonjs/components/Attachment/Attachment.js +23 -101
  2. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/AttachmentActions.js +26 -49
  4. package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/AudioAttachment.js +73 -139
  6. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  7. package/lib/commonjs/components/Attachment/Card.js +67 -162
  8. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  9. package/lib/commonjs/components/Attachment/FileAttachment.js +33 -78
  10. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  11. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +47 -81
  12. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  13. package/lib/commonjs/components/Attachment/FileIcon.js +3 -10
  14. package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
  15. package/lib/commonjs/components/Attachment/Gallery.js +127 -214
  16. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  17. package/lib/commonjs/components/Attachment/GalleryImage.js +5 -24
  18. package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
  19. package/lib/commonjs/components/Attachment/Giphy.js +154 -297
  20. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  21. package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js +19 -40
  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/ImageReloadIndicator.js +8 -18
  26. package/lib/commonjs/components/Attachment/ImageReloadIndicator.js.map +1 -1
  27. package/lib/commonjs/components/Attachment/VideoThumbnail.js +13 -28
  28. package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
  29. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  30. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +2 -4
  31. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  32. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +1 -2
  33. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  34. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  35. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  36. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  37. package/lib/commonjs/components/Attachment/utils/buildGallery/types.js.map +1 -1
  38. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
  39. package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js +1 -1
  40. package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
  41. package/lib/commonjs/components/Attachment/utils/getGiphyMimeType.js.map +1 -1
  42. package/lib/commonjs/components/Attachment/utils/openUrlSafely.js +1 -1
  43. package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
  44. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +36 -56
  45. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  46. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js +10 -20
  47. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
  48. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js +16 -37
  49. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
  50. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js +3 -8
  51. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
  52. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +9 -18
  53. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
  54. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +54 -126
  55. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  56. package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js +48 -100
  57. package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
  58. package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js +3 -8
  59. package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
  60. package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js +3 -8
  61. package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
  62. package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js +4 -15
  63. package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
  64. package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js +3 -8
  65. package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
  66. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +226 -145
  67. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  68. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +45 -134
  69. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  70. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +24 -63
  71. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  72. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +55 -125
  73. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  74. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +31 -71
  75. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  76. package/lib/commonjs/components/Avatar/Avatar.js +45 -84
  77. package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
  78. package/lib/commonjs/components/Avatar/GroupAvatar.js +42 -65
  79. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  80. package/lib/commonjs/components/Channel/Channel.js +90 -170
  81. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  82. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  83. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  84. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  85. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +1 -2
  86. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  87. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  88. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  89. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  90. package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  91. package/lib/commonjs/components/ChannelList/ChannelList.js +12 -23
  92. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  93. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +7 -17
  94. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  95. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js +11 -20
  96. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  97. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +10 -19
  98. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  99. package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js +6 -18
  100. package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  101. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +51 -136
  102. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  103. package/lib/commonjs/components/ChannelList/Skeleton.js +50 -120
  104. package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
  105. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  106. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  107. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  108. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  109. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js +1 -2
  110. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  111. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  112. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  113. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  114. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  115. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  116. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
  117. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  118. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +2 -3
  119. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  120. package/lib/commonjs/components/ChannelList/utils.js +3 -3
  121. package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
  122. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +7 -25
  123. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  124. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +8 -21
  125. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  126. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +11 -21
  127. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  128. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +38 -107
  129. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  130. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +3 -8
  131. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  132. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +13 -37
  133. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  134. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +4 -8
  135. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  136. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +8 -17
  137. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  138. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  139. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +5 -5
  140. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  141. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  142. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +5 -5
  143. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  144. package/lib/commonjs/components/Chat/Chat.js +19 -46
  145. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  146. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +2 -2
  147. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  148. package/lib/commonjs/components/Chat/hooks/useAppSettings.js +3 -3
  149. package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
  150. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +1 -1
  151. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  152. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  153. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
  154. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  155. package/lib/commonjs/components/ImageBackground.js +12 -23
  156. package/lib/commonjs/components/ImageBackground.js.map +1 -1
  157. package/lib/commonjs/components/ImageGallery/ImageGallery.js +145 -259
  158. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  159. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +7 -18
  160. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  161. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +39 -66
  162. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  163. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +74 -151
  164. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  165. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +45 -97
  166. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  167. package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js +10 -20
  168. package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  169. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +42 -84
  170. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  171. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +26 -60
  172. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  173. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js +22 -48
  174. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  175. package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  176. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +24 -49
  177. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
  178. package/lib/commonjs/components/Indicators/LoadingDot.js +5 -10
  179. package/lib/commonjs/components/Indicators/LoadingDot.js.map +1 -1
  180. package/lib/commonjs/components/Indicators/LoadingDots.js +17 -28
  181. package/lib/commonjs/components/Indicators/LoadingDots.js.map +1 -1
  182. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js +22 -53
  183. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  184. package/lib/commonjs/components/Indicators/LoadingIndicator.js +21 -60
  185. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  186. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js +46 -91
  187. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  188. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +52 -93
  189. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  190. package/lib/commonjs/components/Message/Message.js +34 -74
  191. package/lib/commonjs/components/Message/Message.js.map +1 -1
  192. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +14 -38
  193. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  194. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js +17 -22
  195. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js.map +1 -1
  196. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +72 -173
  197. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  198. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +29 -58
  199. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  200. package/lib/commonjs/components/Message/MessageSimple/MessageError.js +9 -26
  201. package/lib/commonjs/components/Message/MessageSimple/MessageError.js.map +1 -1
  202. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +47 -106
  203. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  204. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +13 -36
  205. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  206. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +66 -122
  207. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  208. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +22 -45
  209. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  210. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +20 -56
  211. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  212. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +24 -79
  213. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  214. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +21 -39
  215. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  216. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +123 -226
  217. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  218. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js +20 -12
  219. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  220. package/lib/commonjs/components/Message/MessageSimple/utils/generateMarkdownText.test.js.map +1 -1
  221. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  222. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  223. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +75 -164
  224. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  225. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js +32 -65
  226. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  227. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +4 -4
  228. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  229. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  230. package/lib/commonjs/components/Message/hooks/useMessageActions.js +25 -90
  231. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  232. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  233. package/lib/commonjs/components/MessageInput/AttachButton.js +8 -26
  234. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  235. package/lib/commonjs/components/MessageInput/CommandsButton.js +10 -28
  236. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  237. package/lib/commonjs/components/MessageInput/CooldownTimer.js +11 -20
  238. package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -1
  239. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +104 -205
  240. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  241. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +50 -123
  242. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  243. package/lib/commonjs/components/MessageInput/InputButtons.js +17 -50
  244. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  245. package/lib/commonjs/components/MessageInput/MessageInput.js +94 -238
  246. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  247. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +8 -26
  248. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  249. package/lib/commonjs/components/MessageInput/SendButton.js +12 -44
  250. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  251. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +9 -18
  252. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  253. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +33 -72
  254. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  255. package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js +28 -77
  256. package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js.map +1 -1
  257. package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js +23 -57
  258. package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
  259. package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js +35 -80
  260. package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js.map +1 -1
  261. package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js +23 -57
  262. package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
  263. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
  264. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -1
  265. package/lib/commonjs/components/MessageList/DateHeader.js +9 -18
  266. package/lib/commonjs/components/MessageList/DateHeader.js.map +1 -1
  267. package/lib/commonjs/components/MessageList/InlineDateSeparator.js +9 -18
  268. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  269. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +9 -25
  270. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  271. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +9 -25
  272. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  273. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +9 -25
  274. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  275. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +42 -84
  276. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  277. package/lib/commonjs/components/MessageList/MessageList.js +100 -270
  278. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  279. package/lib/commonjs/components/MessageList/MessageSystem.js +25 -56
  280. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  281. package/lib/commonjs/components/MessageList/NetworkDownIndicator.js +8 -17
  282. package/lib/commonjs/components/MessageList/NetworkDownIndicator.js.map +1 -1
  283. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +26 -56
  284. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
  285. package/lib/commonjs/components/MessageList/TypingIndicator.js +12 -27
  286. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  287. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +6 -18
  288. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  289. package/lib/commonjs/components/MessageList/hooks/useMessageList.js +1 -2
  290. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  291. package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
  292. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  293. package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  294. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  295. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  296. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +13 -5
  297. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  298. package/lib/commonjs/components/MessageList/utils/getReadStates.js +52 -36
  299. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  300. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +19 -40
  301. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  302. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +21 -48
  303. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  304. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +163 -304
  305. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  306. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +3 -8
  307. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  308. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +73 -145
  309. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  310. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +119 -224
  311. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  312. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js +3 -8
  313. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
  314. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  315. package/lib/commonjs/components/ProgressControl/ProgressControl.js +19 -51
  316. package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
  317. package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js +4 -9
  318. package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
  319. package/lib/commonjs/components/Reply/Reply.js +61 -113
  320. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  321. package/lib/commonjs/components/Spinner/Spinner.js +11 -21
  322. package/lib/commonjs/components/Spinner/Spinner.js.map +1 -1
  323. package/lib/commonjs/components/Thread/Thread.js +17 -44
  324. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  325. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +57 -121
  326. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  327. package/lib/commonjs/components/docs/data.js +1 -1
  328. package/lib/commonjs/components/docs/data.js.map +1 -1
  329. package/lib/commonjs/components/index.js.map +1 -1
  330. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +9 -21
  331. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  332. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +9 -21
  333. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  334. package/lib/commonjs/contexts/channelContext/ChannelContext.js +8 -21
  335. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  336. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +8 -21
  337. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  338. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +15 -32
  339. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  340. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  341. package/lib/commonjs/contexts/chatContext/ChatContext.js +8 -21
  342. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  343. package/lib/commonjs/contexts/debugContext/DebugContext.js +6 -10
  344. package/lib/commonjs/contexts/debugContext/DebugContext.js.map +1 -1
  345. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +8 -20
  346. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  347. package/lib/commonjs/contexts/index.js.map +1 -1
  348. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +8 -21
  349. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  350. package/lib/commonjs/contexts/messageContext/MessageContext.js +8 -21
  351. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  352. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +126 -96
  353. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  354. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +5 -3
  355. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  356. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +49 -41
  357. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  358. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +8 -21
  359. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  360. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
  361. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js +33 -53
  362. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
  363. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +8 -21
  364. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  365. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +5 -13
  366. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  367. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +52 -112
  368. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  369. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +6 -10
  370. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  371. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +8 -21
  372. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  373. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +9 -21
  374. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  375. package/lib/commonjs/contexts/themeContext/ThemeContext.js +6 -10
  376. package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
  377. package/lib/commonjs/contexts/themeContext/utils/theme.js +3 -3
  378. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  379. package/lib/commonjs/contexts/threadContext/ThreadContext.js +8 -21
  380. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  381. package/lib/commonjs/contexts/translationContext/TranslationContext.js +8 -20
  382. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  383. package/lib/commonjs/contexts/typingContext/TypingContext.js +8 -21
  384. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  385. package/lib/commonjs/contexts/utils/defaultBaseContextValue.js.map +1 -1
  386. package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
  387. package/lib/commonjs/contexts/utils/isTestEnvironment.js.map +1 -1
  388. package/lib/commonjs/emoji-data/compile.js +4 -5
  389. package/lib/commonjs/emoji-data/compile.js.map +1 -1
  390. package/lib/commonjs/emoji-data/index.js.map +1 -1
  391. package/lib/commonjs/hooks/index.js.map +1 -1
  392. package/lib/commonjs/hooks/useAppStateListener.js +3 -1
  393. package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
  394. package/lib/commonjs/hooks/useIsMountedRef.js.map +1 -1
  395. package/lib/commonjs/hooks/useLoadingImage.js +3 -4
  396. package/lib/commonjs/hooks/useLoadingImage.js.map +1 -1
  397. package/lib/commonjs/hooks/useStreami18n.js +1 -2
  398. package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
  399. package/lib/commonjs/hooks/useTranslatedMessage.js +3 -5
  400. package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
  401. package/lib/commonjs/hooks/useViewport.js.map +1 -1
  402. package/lib/commonjs/i18n/es.json +41 -41
  403. package/lib/commonjs/i18n/fr.json +41 -41
  404. package/lib/commonjs/i18n/he.json +41 -41
  405. package/lib/commonjs/i18n/hi.json +41 -41
  406. package/lib/commonjs/i18n/it.json +41 -41
  407. package/lib/commonjs/i18n/ja.json +41 -41
  408. package/lib/commonjs/i18n/ko.json +41 -41
  409. package/lib/commonjs/i18n/nl.json +41 -41
  410. package/lib/commonjs/i18n/pt-BR.json +41 -41
  411. package/lib/commonjs/i18n/ru.json +41 -41
  412. package/lib/commonjs/i18n/tr.json +41 -41
  413. package/lib/commonjs/icons/ArrowRight.js +10 -36
  414. package/lib/commonjs/icons/ArrowRight.js.map +1 -1
  415. package/lib/commonjs/icons/AtMentions.js +6 -18
  416. package/lib/commonjs/icons/AtMentions.js.map +1 -1
  417. package/lib/commonjs/icons/Attach.js +6 -18
  418. package/lib/commonjs/icons/Attach.js.map +1 -1
  419. package/lib/commonjs/icons/Audio.js +28 -73
  420. package/lib/commonjs/icons/Audio.js.map +1 -1
  421. package/lib/commonjs/icons/CSV.js +18 -53
  422. package/lib/commonjs/icons/CSV.js.map +1 -1
  423. package/lib/commonjs/icons/Camera.js +6 -18
  424. package/lib/commonjs/icons/Camera.js.map +1 -1
  425. package/lib/commonjs/icons/Check.js +8 -27
  426. package/lib/commonjs/icons/Check.js.map +1 -1
  427. package/lib/commonjs/icons/CheckAll.js +8 -27
  428. package/lib/commonjs/icons/CheckAll.js.map +1 -1
  429. package/lib/commonjs/icons/CheckSend.js +6 -18
  430. package/lib/commonjs/icons/CheckSend.js.map +1 -1
  431. package/lib/commonjs/icons/CircleClose.js +8 -27
  432. package/lib/commonjs/icons/CircleClose.js.map +1 -1
  433. package/lib/commonjs/icons/CirclePlus.js +8 -27
  434. package/lib/commonjs/icons/CirclePlus.js.map +1 -1
  435. package/lib/commonjs/icons/CircleRight.js +8 -27
  436. package/lib/commonjs/icons/CircleRight.js.map +1 -1
  437. package/lib/commonjs/icons/Close.js +6 -18
  438. package/lib/commonjs/icons/Close.js.map +1 -1
  439. package/lib/commonjs/icons/Copy.js +6 -18
  440. package/lib/commonjs/icons/Copy.js.map +1 -1
  441. package/lib/commonjs/icons/CurveLineLeftUp.js +10 -36
  442. package/lib/commonjs/icons/CurveLineLeftUp.js.map +1 -1
  443. package/lib/commonjs/icons/DOC.js +32 -83
  444. package/lib/commonjs/icons/DOC.js.map +1 -1
  445. package/lib/commonjs/icons/DOCX.js +32 -83
  446. package/lib/commonjs/icons/DOCX.js.map +1 -1
  447. package/lib/commonjs/icons/Delete.js +8 -27
  448. package/lib/commonjs/icons/Delete.js.map +1 -1
  449. package/lib/commonjs/icons/Down.js +6 -18
  450. package/lib/commonjs/icons/Down.js.map +1 -1
  451. package/lib/commonjs/icons/DownloadArrow.js +6 -18
  452. package/lib/commonjs/icons/DownloadArrow.js.map +1 -1
  453. package/lib/commonjs/icons/DownloadCloud.js +12 -45
  454. package/lib/commonjs/icons/DownloadCloud.js.map +1 -1
  455. package/lib/commonjs/icons/Edit.js +6 -18
  456. package/lib/commonjs/icons/Edit.js.map +1 -1
  457. package/lib/commonjs/icons/Error.js +6 -18
  458. package/lib/commonjs/icons/Error.js.map +1 -1
  459. package/lib/commonjs/icons/Eye.js +6 -18
  460. package/lib/commonjs/icons/Eye.js.map +1 -1
  461. package/lib/commonjs/icons/Flag.js +6 -18
  462. package/lib/commonjs/icons/Flag.js.map +1 -1
  463. package/lib/commonjs/icons/Folder.js +6 -18
  464. package/lib/commonjs/icons/Folder.js.map +1 -1
  465. package/lib/commonjs/icons/GenericFile.js +28 -73
  466. package/lib/commonjs/icons/GenericFile.js.map +1 -1
  467. package/lib/commonjs/icons/GiphyIcon.js +22 -69
  468. package/lib/commonjs/icons/GiphyIcon.js.map +1 -1
  469. package/lib/commonjs/icons/Grid.js +6 -18
  470. package/lib/commonjs/icons/Grid.js.map +1 -1
  471. package/lib/commonjs/icons/Group.js +6 -18
  472. package/lib/commonjs/icons/Group.js.map +1 -1
  473. package/lib/commonjs/icons/HTML.js +18 -53
  474. package/lib/commonjs/icons/HTML.js.map +1 -1
  475. package/lib/commonjs/icons/Imgur.js +15 -41
  476. package/lib/commonjs/icons/Imgur.js.map +1 -1
  477. package/lib/commonjs/icons/LOLReaction.js +6 -18
  478. package/lib/commonjs/icons/LOLReaction.js.map +1 -1
  479. package/lib/commonjs/icons/Lightning.js +6 -18
  480. package/lib/commonjs/icons/Lightning.js.map +1 -1
  481. package/lib/commonjs/icons/Link.js +8 -27
  482. package/lib/commonjs/icons/Link.js.map +1 -1
  483. package/lib/commonjs/icons/Loading.js +23 -56
  484. package/lib/commonjs/icons/Loading.js.map +1 -1
  485. package/lib/commonjs/icons/Logo.js +7 -19
  486. package/lib/commonjs/icons/Logo.js.map +1 -1
  487. package/lib/commonjs/icons/LoveReaction.js +6 -18
  488. package/lib/commonjs/icons/LoveReaction.js.map +1 -1
  489. package/lib/commonjs/icons/MD.js +18 -53
  490. package/lib/commonjs/icons/MD.js.map +1 -1
  491. package/lib/commonjs/icons/MailOpen.js +6 -18
  492. package/lib/commonjs/icons/MailOpen.js.map +1 -1
  493. package/lib/commonjs/icons/MenuPointHorizontal.js +6 -18
  494. package/lib/commonjs/icons/MenuPointHorizontal.js.map +1 -1
  495. package/lib/commonjs/icons/MenuPointVertical.js +6 -18
  496. package/lib/commonjs/icons/MenuPointVertical.js.map +1 -1
  497. package/lib/commonjs/icons/MessageFlag.js +6 -18
  498. package/lib/commonjs/icons/MessageFlag.js.map +1 -1
  499. package/lib/commonjs/icons/MessageIcon.js +6 -18
  500. package/lib/commonjs/icons/MessageIcon.js.map +1 -1
  501. package/lib/commonjs/icons/Mute.js +6 -18
  502. package/lib/commonjs/icons/Mute.js.map +1 -1
  503. package/lib/commonjs/icons/Notification.js +10 -36
  504. package/lib/commonjs/icons/Notification.js.map +1 -1
  505. package/lib/commonjs/icons/ODT.js +18 -53
  506. package/lib/commonjs/icons/ODT.js.map +1 -1
  507. package/lib/commonjs/icons/PDF.js +18 -53
  508. package/lib/commonjs/icons/PDF.js.map +1 -1
  509. package/lib/commonjs/icons/PPT.js +32 -83
  510. package/lib/commonjs/icons/PPT.js.map +1 -1
  511. package/lib/commonjs/icons/PPTX.js +32 -83
  512. package/lib/commonjs/icons/PPTX.js.map +1 -1
  513. package/lib/commonjs/icons/Pause.js +16 -33
  514. package/lib/commonjs/icons/Pause.js.map +1 -1
  515. package/lib/commonjs/icons/Picture.js +8 -27
  516. package/lib/commonjs/icons/Picture.js.map +1 -1
  517. package/lib/commonjs/icons/Pin.js +7 -19
  518. package/lib/commonjs/icons/Pin.js.map +1 -1
  519. package/lib/commonjs/icons/PinHeader.js +6 -18
  520. package/lib/commonjs/icons/PinHeader.js.map +1 -1
  521. package/lib/commonjs/icons/Play.js +7 -19
  522. package/lib/commonjs/icons/Play.js.map +1 -1
  523. package/lib/commonjs/icons/RAR.js +18 -53
  524. package/lib/commonjs/icons/RAR.js.map +1 -1
  525. package/lib/commonjs/icons/RTF.js +18 -53
  526. package/lib/commonjs/icons/RTF.js.map +1 -1
  527. package/lib/commonjs/icons/Recorder.js +8 -27
  528. package/lib/commonjs/icons/Recorder.js.map +1 -1
  529. package/lib/commonjs/icons/Refresh.js +6 -18
  530. package/lib/commonjs/icons/Refresh.js.map +1 -1
  531. package/lib/commonjs/icons/SEVEN_Z.js +18 -53
  532. package/lib/commonjs/icons/SEVEN_Z.js.map +1 -1
  533. package/lib/commonjs/icons/Search.js +6 -18
  534. package/lib/commonjs/icons/Search.js.map +1 -1
  535. package/lib/commonjs/icons/SendRight.js +6 -18
  536. package/lib/commonjs/icons/SendRight.js.map +1 -1
  537. package/lib/commonjs/icons/SendUp.js +6 -18
  538. package/lib/commonjs/icons/SendUp.js.map +1 -1
  539. package/lib/commonjs/icons/Share.js +15 -40
  540. package/lib/commonjs/icons/Share.js.map +1 -1
  541. package/lib/commonjs/icons/ShareRightArrow.js +6 -18
  542. package/lib/commonjs/icons/ShareRightArrow.js.map +1 -1
  543. package/lib/commonjs/icons/Smile.js +8 -27
  544. package/lib/commonjs/icons/Smile.js.map +1 -1
  545. package/lib/commonjs/icons/Sound.js +6 -18
  546. package/lib/commonjs/icons/Sound.js.map +1 -1
  547. package/lib/commonjs/icons/TAR.js +18 -53
  548. package/lib/commonjs/icons/TAR.js.map +1 -1
  549. package/lib/commonjs/icons/TXT.js +18 -53
  550. package/lib/commonjs/icons/TXT.js.map +1 -1
  551. package/lib/commonjs/icons/ThreadReply.js +6 -18
  552. package/lib/commonjs/icons/ThreadReply.js.map +1 -1
  553. package/lib/commonjs/icons/ThumbsDownReaction.js +6 -18
  554. package/lib/commonjs/icons/ThumbsDownReaction.js.map +1 -1
  555. package/lib/commonjs/icons/ThumbsUpReaction.js +6 -18
  556. package/lib/commonjs/icons/ThumbsUpReaction.js.map +1 -1
  557. package/lib/commonjs/icons/Time.js +8 -27
  558. package/lib/commonjs/icons/Time.js.map +1 -1
  559. package/lib/commonjs/icons/Unknown.js +6 -18
  560. package/lib/commonjs/icons/Unknown.js.map +1 -1
  561. package/lib/commonjs/icons/Unpin.js +6 -18
  562. package/lib/commonjs/icons/Unpin.js.map +1 -1
  563. package/lib/commonjs/icons/User.js +6 -18
  564. package/lib/commonjs/icons/User.js.map +1 -1
  565. package/lib/commonjs/icons/UserAdd.js +8 -27
  566. package/lib/commonjs/icons/UserAdd.js.map +1 -1
  567. package/lib/commonjs/icons/UserAdmin.js +13 -32
  568. package/lib/commonjs/icons/UserAdmin.js.map +1 -1
  569. package/lib/commonjs/icons/UserDelete.js +8 -27
  570. package/lib/commonjs/icons/UserDelete.js.map +1 -1
  571. package/lib/commonjs/icons/UserMinus.js +8 -27
  572. package/lib/commonjs/icons/UserMinus.js.map +1 -1
  573. package/lib/commonjs/icons/Video.js +18 -58
  574. package/lib/commonjs/icons/Video.js.map +1 -1
  575. package/lib/commonjs/icons/Warning.js +6 -18
  576. package/lib/commonjs/icons/Warning.js.map +1 -1
  577. package/lib/commonjs/icons/WutReaction.js +6 -18
  578. package/lib/commonjs/icons/WutReaction.js.map +1 -1
  579. package/lib/commonjs/icons/XLS.js +32 -83
  580. package/lib/commonjs/icons/XLS.js.map +1 -1
  581. package/lib/commonjs/icons/XLSX.js +32 -83
  582. package/lib/commonjs/icons/XLSX.js.map +1 -1
  583. package/lib/commonjs/icons/ZIP.js +18 -53
  584. package/lib/commonjs/icons/ZIP.js.map +1 -1
  585. package/lib/commonjs/icons/index.js.map +1 -1
  586. package/lib/commonjs/icons/utils/base.js +8 -19
  587. package/lib/commonjs/icons/utils/base.js.map +1 -1
  588. package/lib/commonjs/index.js +2 -2
  589. package/lib/commonjs/index.js.map +1 -1
  590. package/lib/commonjs/init.js.map +1 -1
  591. package/lib/commonjs/mock-builders/DB/consts.js.map +1 -1
  592. package/lib/commonjs/mock-builders/DB/mock.js +2 -2
  593. package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
  594. package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
  595. package/lib/commonjs/mock-builders/api/deleteMessage.js.map +1 -1
  596. package/lib/commonjs/mock-builders/api/deleteReaction.js.map +1 -1
  597. package/lib/commonjs/mock-builders/api/error.js +4 -6
  598. package/lib/commonjs/mock-builders/api/error.js.map +1 -1
  599. package/lib/commonjs/mock-builders/api/getOrCreateChannel.js.map +1 -1
  600. package/lib/commonjs/mock-builders/api/queryChannels.js.map +1 -1
  601. package/lib/commonjs/mock-builders/api/queryMembers.js.map +1 -1
  602. package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
  603. package/lib/commonjs/mock-builders/api/sendReaction.js.map +1 -1
  604. package/lib/commonjs/mock-builders/api/threadReplies.js.map +1 -1
  605. package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
  606. package/lib/commonjs/mock-builders/api/utils.js.map +1 -1
  607. package/lib/commonjs/mock-builders/event/channelDeleted.js.map +1 -1
  608. package/lib/commonjs/mock-builders/event/channelHidden.js.map +1 -1
  609. package/lib/commonjs/mock-builders/event/channelTruncated.js.map +1 -1
  610. package/lib/commonjs/mock-builders/event/channelUpdated.js.map +1 -1
  611. package/lib/commonjs/mock-builders/event/connectionChanged.js.map +1 -1
  612. package/lib/commonjs/mock-builders/event/connectionRecovered.js.map +1 -1
  613. package/lib/commonjs/mock-builders/event/memberAdded.js.map +1 -1
  614. package/lib/commonjs/mock-builders/event/memberRemoved.js.map +1 -1
  615. package/lib/commonjs/mock-builders/event/memberUpdated.js.map +1 -1
  616. package/lib/commonjs/mock-builders/event/messageDeleted.js.map +1 -1
  617. package/lib/commonjs/mock-builders/event/messageNew.js.map +1 -1
  618. package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
  619. package/lib/commonjs/mock-builders/event/messageUpdated.js.map +1 -1
  620. package/lib/commonjs/mock-builders/event/notificationAddedToChannel.js.map +1 -1
  621. package/lib/commonjs/mock-builders/event/notificationMessageNew.js.map +1 -1
  622. package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js +1 -3
  623. package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js.map +1 -1
  624. package/lib/commonjs/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
  625. package/lib/commonjs/mock-builders/event/reactionDeleted.js.map +1 -1
  626. package/lib/commonjs/mock-builders/event/reactionNew.js.map +1 -1
  627. package/lib/commonjs/mock-builders/event/reactionUpdated.js.map +1 -1
  628. package/lib/commonjs/mock-builders/event/typing.js.map +1 -1
  629. package/lib/commonjs/mock-builders/event/userPresence.js.map +1 -1
  630. package/lib/commonjs/mock-builders/event/userUpdated.js.map +1 -1
  631. package/lib/commonjs/mock-builders/generator/attachment.js +9 -11
  632. package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
  633. package/lib/commonjs/mock-builders/generator/channel.js +11 -12
  634. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  635. package/lib/commonjs/mock-builders/generator/member.js +1 -3
  636. package/lib/commonjs/mock-builders/generator/member.js.map +1 -1
  637. package/lib/commonjs/mock-builders/generator/message.js +2 -4
  638. package/lib/commonjs/mock-builders/generator/message.js.map +1 -1
  639. package/lib/commonjs/mock-builders/generator/reaction.js +1 -3
  640. package/lib/commonjs/mock-builders/generator/reaction.js.map +1 -1
  641. package/lib/commonjs/mock-builders/generator/user.js +2 -4
  642. package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
  643. package/lib/commonjs/mock-builders/mock.js +1 -2
  644. package/lib/commonjs/mock-builders/mock.js.map +1 -1
  645. package/lib/commonjs/mock-builders/native/react-native-mock.js.map +1 -1
  646. package/lib/commonjs/native.js.map +1 -1
  647. package/lib/commonjs/store/QuickSqliteClient.js +11 -11
  648. package/lib/commonjs/store/QuickSqliteClient.js.map +1 -1
  649. package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
  650. package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
  651. package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
  652. package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
  653. package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
  654. package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
  655. package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
  656. package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
  657. package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
  658. package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
  659. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  660. package/lib/commonjs/store/apis/getChannels.js +1 -3
  661. package/lib/commonjs/store/apis/getChannels.js.map +1 -1
  662. package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
  663. package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
  664. package/lib/commonjs/store/apis/getMembers.js.map +1 -1
  665. package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
  666. package/lib/commonjs/store/apis/getReads.js.map +1 -1
  667. package/lib/commonjs/store/apis/index.js.map +1 -1
  668. package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
  669. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  670. package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
  671. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -3
  672. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
  673. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -3
  674. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  675. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -3
  676. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  677. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -3
  678. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
  679. package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
  680. package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
  681. package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
  682. package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
  683. package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -1
  684. package/lib/commonjs/store/apis/upsertChannels.js +29 -21
  685. package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
  686. package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
  687. package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
  688. package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
  689. package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
  690. package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
  691. package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js +1 -1
  692. package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
  693. package/lib/commonjs/store/constants.js.map +1 -1
  694. package/lib/commonjs/store/mappers/mapChannelDataToStorable.js.map +1 -1
  695. package/lib/commonjs/store/mappers/mapChannelToStorable.js.map +1 -1
  696. package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +1 -1
  697. package/lib/commonjs/store/mappers/mapMemberToStorable.js.map +1 -1
  698. package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
  699. package/lib/commonjs/store/mappers/mapReactionToStorable.js.map +1 -1
  700. package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
  701. package/lib/commonjs/store/mappers/mapStorableToChannel.js +1 -3
  702. package/lib/commonjs/store/mappers/mapStorableToChannel.js.map +1 -1
  703. package/lib/commonjs/store/mappers/mapStorableToMember.js.map +1 -1
  704. package/lib/commonjs/store/mappers/mapStorableToMessage.js +1 -2
  705. package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
  706. package/lib/commonjs/store/mappers/mapStorableToReaction.js +1 -3
  707. package/lib/commonjs/store/mappers/mapStorableToReaction.js.map +1 -1
  708. package/lib/commonjs/store/mappers/mapStorableToRead.js.map +1 -1
  709. package/lib/commonjs/store/mappers/mapStorableToTask.js.map +1 -1
  710. package/lib/commonjs/store/mappers/mapStorableToUser.js +1 -3
  711. package/lib/commonjs/store/mappers/mapStorableToUser.js.map +1 -1
  712. package/lib/commonjs/store/mappers/mapTaskToStorable.js +1 -3
  713. package/lib/commonjs/store/mappers/mapTaskToStorable.js.map +1 -1
  714. package/lib/commonjs/store/mappers/mapUserToStorable.js.map +1 -1
  715. package/lib/commonjs/store/schema.js.map +1 -1
  716. package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js +2 -2
  717. package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js.map +1 -1
  718. package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js +3 -3
  719. package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js.map +1 -1
  720. package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js +5 -5
  721. package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
  722. package/lib/commonjs/store/sqlite-utils/createDeleteQuery.js +1 -1
  723. package/lib/commonjs/store/sqlite-utils/createDeleteQuery.js.map +1 -1
  724. package/lib/commonjs/store/sqlite-utils/createSelectQuery.js +2 -2
  725. package/lib/commonjs/store/sqlite-utils/createSelectQuery.js.map +1 -1
  726. package/lib/commonjs/store/sqlite-utils/createUpdateQuery.js +3 -3
  727. package/lib/commonjs/store/sqlite-utils/createUpdateQuery.js.map +1 -1
  728. package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js +3 -3
  729. package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js.map +1 -1
  730. package/lib/commonjs/store/sqlite-utils/printRow.js.map +1 -1
  731. package/lib/commonjs/store/types.js.map +1 -1
  732. package/lib/commonjs/test-utils/BetterSqlite.js +2 -2
  733. package/lib/commonjs/test-utils/BetterSqlite.js.map +1 -1
  734. package/lib/commonjs/types/types.js.map +1 -1
  735. package/lib/commonjs/utils/DBSyncManager.js +51 -30
  736. package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
  737. package/lib/commonjs/utils/StreamChatRN.js +1 -2
  738. package/lib/commonjs/utils/StreamChatRN.js.map +1 -1
  739. package/lib/commonjs/utils/Streami18n.js +24 -22
  740. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  741. package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
  742. package/lib/commonjs/utils/compressImage.js.map +1 -1
  743. package/lib/commonjs/utils/date.js.map +1 -1
  744. package/lib/commonjs/utils/getResizedImageUrl.js +3 -3
  745. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
  746. package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -1
  747. package/lib/commonjs/utils/patchMessageTextCommand.js +2 -2
  748. package/lib/commonjs/utils/patchMessageTextCommand.js.map +1 -1
  749. package/lib/commonjs/utils/removeReactionFromLocalState.js.map +1 -1
  750. package/lib/commonjs/utils/removeReservedFields.js +1 -3
  751. package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
  752. package/lib/commonjs/utils/utils.js +29 -22
  753. package/lib/commonjs/utils/utils.js.map +1 -1
  754. package/lib/commonjs/version.json +1 -1
  755. package/lib/module/components/Attachment/Attachment.js +23 -101
  756. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  757. package/lib/module/components/Attachment/AttachmentActions.js +26 -49
  758. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  759. package/lib/module/components/Attachment/AudioAttachment.js +73 -139
  760. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  761. package/lib/module/components/Attachment/Card.js +67 -162
  762. package/lib/module/components/Attachment/Card.js.map +1 -1
  763. package/lib/module/components/Attachment/FileAttachment.js +33 -78
  764. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  765. package/lib/module/components/Attachment/FileAttachmentGroup.js +47 -81
  766. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  767. package/lib/module/components/Attachment/FileIcon.js +3 -10
  768. package/lib/module/components/Attachment/FileIcon.js.map +1 -1
  769. package/lib/module/components/Attachment/Gallery.js +127 -214
  770. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  771. package/lib/module/components/Attachment/GalleryImage.js +5 -24
  772. package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
  773. package/lib/module/components/Attachment/Giphy.js +154 -297
  774. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  775. package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js +19 -40
  776. package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
  777. package/lib/module/components/Attachment/ImageLoadingIndicator.js +3 -15
  778. package/lib/module/components/Attachment/ImageLoadingIndicator.js.map +1 -1
  779. package/lib/module/components/Attachment/ImageReloadIndicator.js +8 -18
  780. package/lib/module/components/Attachment/ImageReloadIndicator.js.map +1 -1
  781. package/lib/module/components/Attachment/VideoThumbnail.js +13 -28
  782. package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
  783. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  784. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js +2 -4
  785. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  786. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js +1 -2
  787. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  788. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  789. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  790. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  791. package/lib/module/components/Attachment/utils/buildGallery/types.js.map +1 -1
  792. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
  793. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js +1 -1
  794. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
  795. package/lib/module/components/Attachment/utils/getGiphyMimeType.js.map +1 -1
  796. package/lib/module/components/Attachment/utils/openUrlSafely.js +1 -1
  797. package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
  798. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +36 -56
  799. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  800. package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js +10 -20
  801. package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
  802. package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js +16 -37
  803. package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
  804. package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js +3 -8
  805. package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
  806. package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +9 -18
  807. package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
  808. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +54 -126
  809. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  810. package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js +48 -100
  811. package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
  812. package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js +3 -8
  813. package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
  814. package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js +3 -8
  815. package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
  816. package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js +4 -15
  817. package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
  818. package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js +3 -8
  819. package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
  820. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +226 -145
  821. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  822. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +45 -134
  823. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  824. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +24 -63
  825. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  826. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +55 -125
  827. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  828. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +31 -71
  829. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  830. package/lib/module/components/Avatar/Avatar.js +45 -84
  831. package/lib/module/components/Avatar/Avatar.js.map +1 -1
  832. package/lib/module/components/Avatar/GroupAvatar.js +42 -65
  833. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  834. package/lib/module/components/Channel/Channel.js +90 -170
  835. package/lib/module/components/Channel/Channel.js.map +1 -1
  836. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  837. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  838. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  839. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +1 -2
  840. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  841. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  842. package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  843. package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  844. package/lib/module/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  845. package/lib/module/components/ChannelList/ChannelList.js +12 -23
  846. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  847. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +7 -17
  848. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  849. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js +11 -20
  850. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  851. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +10 -19
  852. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  853. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js +6 -18
  854. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  855. package/lib/module/components/ChannelList/ChannelListMessenger.js +51 -136
  856. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  857. package/lib/module/components/ChannelList/Skeleton.js +50 -120
  858. package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
  859. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  860. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  861. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  862. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  863. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js +1 -2
  864. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  865. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  866. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  867. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  868. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  869. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  870. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +2 -2
  871. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  872. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +2 -3
  873. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  874. package/lib/module/components/ChannelList/utils.js +3 -3
  875. package/lib/module/components/ChannelList/utils.js.map +1 -1
  876. package/lib/module/components/ChannelPreview/ChannelAvatar.js +7 -25
  877. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  878. package/lib/module/components/ChannelPreview/ChannelPreview.js +8 -21
  879. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  880. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +11 -21
  881. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  882. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +38 -107
  883. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  884. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +3 -8
  885. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  886. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +13 -37
  887. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  888. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +4 -8
  889. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  890. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +8 -17
  891. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  892. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  893. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +5 -5
  894. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  895. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  896. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +5 -5
  897. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  898. package/lib/module/components/Chat/Chat.js +19 -46
  899. package/lib/module/components/Chat/Chat.js.map +1 -1
  900. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +2 -2
  901. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  902. package/lib/module/components/Chat/hooks/useAppSettings.js +3 -3
  903. package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
  904. package/lib/module/components/Chat/hooks/useCreateChatContext.js +1 -1
  905. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  906. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  907. package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
  908. package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  909. package/lib/module/components/ImageBackground.js +12 -23
  910. package/lib/module/components/ImageBackground.js.map +1 -1
  911. package/lib/module/components/ImageGallery/ImageGallery.js +145 -259
  912. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  913. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +7 -18
  914. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  915. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +39 -66
  916. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  917. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +74 -151
  918. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  919. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +45 -97
  920. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  921. package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js +10 -20
  922. package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  923. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +42 -84
  924. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  925. package/lib/module/components/ImageGallery/components/ImageGrid.js +26 -60
  926. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  927. package/lib/module/components/ImageGallery/components/ImageGridHandle.js +22 -48
  928. package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  929. package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  930. package/lib/module/components/Indicators/EmptyStateIndicator.js +24 -49
  931. package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
  932. package/lib/module/components/Indicators/LoadingDot.js +5 -10
  933. package/lib/module/components/Indicators/LoadingDot.js.map +1 -1
  934. package/lib/module/components/Indicators/LoadingDots.js +17 -28
  935. package/lib/module/components/Indicators/LoadingDots.js.map +1 -1
  936. package/lib/module/components/Indicators/LoadingErrorIndicator.js +22 -53
  937. package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  938. package/lib/module/components/Indicators/LoadingIndicator.js +21 -60
  939. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  940. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js +46 -91
  941. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  942. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js +52 -93
  943. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  944. package/lib/module/components/Message/Message.js +34 -74
  945. package/lib/module/components/Message/Message.js.map +1 -1
  946. package/lib/module/components/Message/MessageSimple/MessageAvatar.js +14 -38
  947. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  948. package/lib/module/components/Message/MessageSimple/MessageBounce.js +17 -22
  949. package/lib/module/components/Message/MessageSimple/MessageBounce.js.map +1 -1
  950. package/lib/module/components/Message/MessageSimple/MessageContent.js +72 -173
  951. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  952. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +29 -58
  953. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  954. package/lib/module/components/Message/MessageSimple/MessageError.js +9 -26
  955. package/lib/module/components/Message/MessageSimple/MessageError.js.map +1 -1
  956. package/lib/module/components/Message/MessageSimple/MessageFooter.js +47 -106
  957. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  958. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +13 -36
  959. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  960. package/lib/module/components/Message/MessageSimple/MessageReplies.js +66 -122
  961. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  962. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +22 -45
  963. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  964. package/lib/module/components/Message/MessageSimple/MessageSimple.js +20 -56
  965. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  966. package/lib/module/components/Message/MessageSimple/MessageStatus.js +24 -79
  967. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  968. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +21 -39
  969. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  970. package/lib/module/components/Message/MessageSimple/ReactionList.js +123 -226
  971. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  972. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js +20 -12
  973. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.js.map +1 -1
  974. package/lib/module/components/Message/MessageSimple/utils/generateMarkdownText.test.js.map +1 -1
  975. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  976. package/lib/module/components/Message/MessageSimple/utils/parseLinks.test.js.map +1 -1
  977. package/lib/module/components/Message/MessageSimple/utils/renderText.js +75 -164
  978. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  979. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js +32 -65
  980. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  981. package/lib/module/components/Message/hooks/useCreateMessageContext.js +4 -4
  982. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  983. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  984. package/lib/module/components/Message/hooks/useMessageActions.js +25 -90
  985. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  986. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  987. package/lib/module/components/MessageInput/AttachButton.js +8 -26
  988. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  989. package/lib/module/components/MessageInput/CommandsButton.js +10 -28
  990. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  991. package/lib/module/components/MessageInput/CooldownTimer.js +11 -20
  992. package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -1
  993. package/lib/module/components/MessageInput/FileUploadPreview.js +104 -205
  994. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  995. package/lib/module/components/MessageInput/ImageUploadPreview.js +50 -123
  996. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  997. package/lib/module/components/MessageInput/InputButtons.js +17 -50
  998. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  999. package/lib/module/components/MessageInput/MessageInput.js +94 -238
  1000. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  1001. package/lib/module/components/MessageInput/MoreOptionsButton.js +8 -26
  1002. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  1003. package/lib/module/components/MessageInput/SendButton.js +12 -44
  1004. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  1005. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +9 -18
  1006. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  1007. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +33 -72
  1008. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  1009. package/lib/module/components/MessageInput/UploadProgressIndicator.js +28 -77
  1010. package/lib/module/components/MessageInput/UploadProgressIndicator.js.map +1 -1
  1011. package/lib/module/components/MessageInput/components/InputEditingStateHeader.js +23 -57
  1012. package/lib/module/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
  1013. package/lib/module/components/MessageInput/components/InputGiphySearch.js +35 -80
  1014. package/lib/module/components/MessageInput/components/InputGiphySearch.js.map +1 -1
  1015. package/lib/module/components/MessageInput/components/InputReplyStateHeader.js +23 -57
  1016. package/lib/module/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
  1017. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
  1018. package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -1
  1019. package/lib/module/components/MessageList/DateHeader.js +9 -18
  1020. package/lib/module/components/MessageList/DateHeader.js.map +1 -1
  1021. package/lib/module/components/MessageList/InlineDateSeparator.js +9 -18
  1022. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  1023. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +9 -25
  1024. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  1025. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +9 -25
  1026. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  1027. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +9 -25
  1028. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  1029. package/lib/module/components/MessageList/InlineUnreadIndicator.js +42 -84
  1030. package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  1031. package/lib/module/components/MessageList/MessageList.js +100 -270
  1032. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  1033. package/lib/module/components/MessageList/MessageSystem.js +25 -56
  1034. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  1035. package/lib/module/components/MessageList/NetworkDownIndicator.js +8 -17
  1036. package/lib/module/components/MessageList/NetworkDownIndicator.js.map +1 -1
  1037. package/lib/module/components/MessageList/ScrollToBottomButton.js +26 -56
  1038. package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
  1039. package/lib/module/components/MessageList/TypingIndicator.js +12 -27
  1040. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  1041. package/lib/module/components/MessageList/TypingIndicatorContainer.js +6 -18
  1042. package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  1043. package/lib/module/components/MessageList/hooks/useMessageList.js +1 -2
  1044. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  1045. package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
  1046. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  1047. package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  1048. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  1049. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  1050. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +13 -5
  1051. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  1052. package/lib/module/components/MessageList/utils/getReadStates.js +52 -36
  1053. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  1054. package/lib/module/components/MessageOverlay/MessageActionList.js +19 -40
  1055. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  1056. package/lib/module/components/MessageOverlay/MessageActionListItem.js +21 -48
  1057. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  1058. package/lib/module/components/MessageOverlay/MessageOverlay.js +163 -304
  1059. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  1060. package/lib/module/components/MessageOverlay/OverlayBackdrop.js +3 -8
  1061. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  1062. package/lib/module/components/MessageOverlay/OverlayReactionList.js +73 -145
  1063. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  1064. package/lib/module/components/MessageOverlay/OverlayReactions.js +119 -224
  1065. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  1066. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js +3 -8
  1067. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
  1068. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  1069. package/lib/module/components/ProgressControl/ProgressControl.js +19 -51
  1070. package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
  1071. package/lib/module/components/RTLComponents/WritingDirectionAwareText.js +4 -9
  1072. package/lib/module/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
  1073. package/lib/module/components/Reply/Reply.js +61 -113
  1074. package/lib/module/components/Reply/Reply.js.map +1 -1
  1075. package/lib/module/components/Spinner/Spinner.js +11 -21
  1076. package/lib/module/components/Spinner/Spinner.js.map +1 -1
  1077. package/lib/module/components/Thread/Thread.js +17 -44
  1078. package/lib/module/components/Thread/Thread.js.map +1 -1
  1079. package/lib/module/components/Thread/components/ThreadFooterComponent.js +57 -121
  1080. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  1081. package/lib/module/components/docs/data.js +1 -1
  1082. package/lib/module/components/docs/data.js.map +1 -1
  1083. package/lib/module/components/index.js.map +1 -1
  1084. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +9 -21
  1085. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  1086. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +9 -21
  1087. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  1088. package/lib/module/contexts/channelContext/ChannelContext.js +8 -21
  1089. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  1090. package/lib/module/contexts/channelsContext/ChannelsContext.js +8 -21
  1091. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  1092. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +15 -32
  1093. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  1094. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  1095. package/lib/module/contexts/chatContext/ChatContext.js +8 -21
  1096. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  1097. package/lib/module/contexts/debugContext/DebugContext.js +6 -10
  1098. package/lib/module/contexts/debugContext/DebugContext.js.map +1 -1
  1099. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +8 -20
  1100. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  1101. package/lib/module/contexts/index.js.map +1 -1
  1102. package/lib/module/contexts/keyboardContext/KeyboardContext.js +8 -21
  1103. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  1104. package/lib/module/contexts/messageContext/MessageContext.js +8 -21
  1105. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  1106. package/lib/module/contexts/messageInputContext/MessageInputContext.js +126 -96
  1107. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  1108. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +5 -3
  1109. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  1110. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +49 -41
  1111. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  1112. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +8 -21
  1113. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  1114. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
  1115. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js +33 -53
  1116. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
  1117. package/lib/module/contexts/messagesContext/MessagesContext.js +8 -21
  1118. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  1119. package/lib/module/contexts/overlayContext/OverlayContext.js +5 -13
  1120. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  1121. package/lib/module/contexts/overlayContext/OverlayProvider.js +52 -112
  1122. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  1123. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +6 -10
  1124. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  1125. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +8 -21
  1126. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  1127. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +9 -21
  1128. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  1129. package/lib/module/contexts/themeContext/ThemeContext.js +6 -10
  1130. package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
  1131. package/lib/module/contexts/themeContext/utils/theme.js +3 -3
  1132. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  1133. package/lib/module/contexts/threadContext/ThreadContext.js +8 -21
  1134. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  1135. package/lib/module/contexts/translationContext/TranslationContext.js +8 -20
  1136. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  1137. package/lib/module/contexts/typingContext/TypingContext.js +8 -21
  1138. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  1139. package/lib/module/contexts/utils/defaultBaseContextValue.js.map +1 -1
  1140. package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
  1141. package/lib/module/contexts/utils/isTestEnvironment.js.map +1 -1
  1142. package/lib/module/emoji-data/compile.js +4 -5
  1143. package/lib/module/emoji-data/compile.js.map +1 -1
  1144. package/lib/module/emoji-data/index.js.map +1 -1
  1145. package/lib/module/hooks/index.js.map +1 -1
  1146. package/lib/module/hooks/useAppStateListener.js +3 -1
  1147. package/lib/module/hooks/useAppStateListener.js.map +1 -1
  1148. package/lib/module/hooks/useIsMountedRef.js.map +1 -1
  1149. package/lib/module/hooks/useLoadingImage.js +3 -4
  1150. package/lib/module/hooks/useLoadingImage.js.map +1 -1
  1151. package/lib/module/hooks/useStreami18n.js +1 -2
  1152. package/lib/module/hooks/useStreami18n.js.map +1 -1
  1153. package/lib/module/hooks/useTranslatedMessage.js +3 -5
  1154. package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
  1155. package/lib/module/hooks/useViewport.js.map +1 -1
  1156. package/lib/module/i18n/es.json +41 -41
  1157. package/lib/module/i18n/fr.json +41 -41
  1158. package/lib/module/i18n/he.json +41 -41
  1159. package/lib/module/i18n/hi.json +41 -41
  1160. package/lib/module/i18n/it.json +41 -41
  1161. package/lib/module/i18n/ja.json +41 -41
  1162. package/lib/module/i18n/ko.json +41 -41
  1163. package/lib/module/i18n/nl.json +41 -41
  1164. package/lib/module/i18n/pt-BR.json +41 -41
  1165. package/lib/module/i18n/ru.json +41 -41
  1166. package/lib/module/i18n/tr.json +41 -41
  1167. package/lib/module/icons/ArrowRight.js +10 -36
  1168. package/lib/module/icons/ArrowRight.js.map +1 -1
  1169. package/lib/module/icons/AtMentions.js +6 -18
  1170. package/lib/module/icons/AtMentions.js.map +1 -1
  1171. package/lib/module/icons/Attach.js +6 -18
  1172. package/lib/module/icons/Attach.js.map +1 -1
  1173. package/lib/module/icons/Audio.js +28 -73
  1174. package/lib/module/icons/Audio.js.map +1 -1
  1175. package/lib/module/icons/CSV.js +18 -53
  1176. package/lib/module/icons/CSV.js.map +1 -1
  1177. package/lib/module/icons/Camera.js +6 -18
  1178. package/lib/module/icons/Camera.js.map +1 -1
  1179. package/lib/module/icons/Check.js +8 -27
  1180. package/lib/module/icons/Check.js.map +1 -1
  1181. package/lib/module/icons/CheckAll.js +8 -27
  1182. package/lib/module/icons/CheckAll.js.map +1 -1
  1183. package/lib/module/icons/CheckSend.js +6 -18
  1184. package/lib/module/icons/CheckSend.js.map +1 -1
  1185. package/lib/module/icons/CircleClose.js +8 -27
  1186. package/lib/module/icons/CircleClose.js.map +1 -1
  1187. package/lib/module/icons/CirclePlus.js +8 -27
  1188. package/lib/module/icons/CirclePlus.js.map +1 -1
  1189. package/lib/module/icons/CircleRight.js +8 -27
  1190. package/lib/module/icons/CircleRight.js.map +1 -1
  1191. package/lib/module/icons/Close.js +6 -18
  1192. package/lib/module/icons/Close.js.map +1 -1
  1193. package/lib/module/icons/Copy.js +6 -18
  1194. package/lib/module/icons/Copy.js.map +1 -1
  1195. package/lib/module/icons/CurveLineLeftUp.js +10 -36
  1196. package/lib/module/icons/CurveLineLeftUp.js.map +1 -1
  1197. package/lib/module/icons/DOC.js +32 -83
  1198. package/lib/module/icons/DOC.js.map +1 -1
  1199. package/lib/module/icons/DOCX.js +32 -83
  1200. package/lib/module/icons/DOCX.js.map +1 -1
  1201. package/lib/module/icons/Delete.js +8 -27
  1202. package/lib/module/icons/Delete.js.map +1 -1
  1203. package/lib/module/icons/Down.js +6 -18
  1204. package/lib/module/icons/Down.js.map +1 -1
  1205. package/lib/module/icons/DownloadArrow.js +6 -18
  1206. package/lib/module/icons/DownloadArrow.js.map +1 -1
  1207. package/lib/module/icons/DownloadCloud.js +12 -45
  1208. package/lib/module/icons/DownloadCloud.js.map +1 -1
  1209. package/lib/module/icons/Edit.js +6 -18
  1210. package/lib/module/icons/Edit.js.map +1 -1
  1211. package/lib/module/icons/Error.js +6 -18
  1212. package/lib/module/icons/Error.js.map +1 -1
  1213. package/lib/module/icons/Eye.js +6 -18
  1214. package/lib/module/icons/Eye.js.map +1 -1
  1215. package/lib/module/icons/Flag.js +6 -18
  1216. package/lib/module/icons/Flag.js.map +1 -1
  1217. package/lib/module/icons/Folder.js +6 -18
  1218. package/lib/module/icons/Folder.js.map +1 -1
  1219. package/lib/module/icons/GenericFile.js +28 -73
  1220. package/lib/module/icons/GenericFile.js.map +1 -1
  1221. package/lib/module/icons/GiphyIcon.js +22 -69
  1222. package/lib/module/icons/GiphyIcon.js.map +1 -1
  1223. package/lib/module/icons/Grid.js +6 -18
  1224. package/lib/module/icons/Grid.js.map +1 -1
  1225. package/lib/module/icons/Group.js +6 -18
  1226. package/lib/module/icons/Group.js.map +1 -1
  1227. package/lib/module/icons/HTML.js +18 -53
  1228. package/lib/module/icons/HTML.js.map +1 -1
  1229. package/lib/module/icons/Imgur.js +15 -41
  1230. package/lib/module/icons/Imgur.js.map +1 -1
  1231. package/lib/module/icons/LOLReaction.js +6 -18
  1232. package/lib/module/icons/LOLReaction.js.map +1 -1
  1233. package/lib/module/icons/Lightning.js +6 -18
  1234. package/lib/module/icons/Lightning.js.map +1 -1
  1235. package/lib/module/icons/Link.js +8 -27
  1236. package/lib/module/icons/Link.js.map +1 -1
  1237. package/lib/module/icons/Loading.js +23 -56
  1238. package/lib/module/icons/Loading.js.map +1 -1
  1239. package/lib/module/icons/Logo.js +7 -19
  1240. package/lib/module/icons/Logo.js.map +1 -1
  1241. package/lib/module/icons/LoveReaction.js +6 -18
  1242. package/lib/module/icons/LoveReaction.js.map +1 -1
  1243. package/lib/module/icons/MD.js +18 -53
  1244. package/lib/module/icons/MD.js.map +1 -1
  1245. package/lib/module/icons/MailOpen.js +6 -18
  1246. package/lib/module/icons/MailOpen.js.map +1 -1
  1247. package/lib/module/icons/MenuPointHorizontal.js +6 -18
  1248. package/lib/module/icons/MenuPointHorizontal.js.map +1 -1
  1249. package/lib/module/icons/MenuPointVertical.js +6 -18
  1250. package/lib/module/icons/MenuPointVertical.js.map +1 -1
  1251. package/lib/module/icons/MessageFlag.js +6 -18
  1252. package/lib/module/icons/MessageFlag.js.map +1 -1
  1253. package/lib/module/icons/MessageIcon.js +6 -18
  1254. package/lib/module/icons/MessageIcon.js.map +1 -1
  1255. package/lib/module/icons/Mute.js +6 -18
  1256. package/lib/module/icons/Mute.js.map +1 -1
  1257. package/lib/module/icons/Notification.js +10 -36
  1258. package/lib/module/icons/Notification.js.map +1 -1
  1259. package/lib/module/icons/ODT.js +18 -53
  1260. package/lib/module/icons/ODT.js.map +1 -1
  1261. package/lib/module/icons/PDF.js +18 -53
  1262. package/lib/module/icons/PDF.js.map +1 -1
  1263. package/lib/module/icons/PPT.js +32 -83
  1264. package/lib/module/icons/PPT.js.map +1 -1
  1265. package/lib/module/icons/PPTX.js +32 -83
  1266. package/lib/module/icons/PPTX.js.map +1 -1
  1267. package/lib/module/icons/Pause.js +16 -33
  1268. package/lib/module/icons/Pause.js.map +1 -1
  1269. package/lib/module/icons/Picture.js +8 -27
  1270. package/lib/module/icons/Picture.js.map +1 -1
  1271. package/lib/module/icons/Pin.js +7 -19
  1272. package/lib/module/icons/Pin.js.map +1 -1
  1273. package/lib/module/icons/PinHeader.js +6 -18
  1274. package/lib/module/icons/PinHeader.js.map +1 -1
  1275. package/lib/module/icons/Play.js +7 -19
  1276. package/lib/module/icons/Play.js.map +1 -1
  1277. package/lib/module/icons/RAR.js +18 -53
  1278. package/lib/module/icons/RAR.js.map +1 -1
  1279. package/lib/module/icons/RTF.js +18 -53
  1280. package/lib/module/icons/RTF.js.map +1 -1
  1281. package/lib/module/icons/Recorder.js +8 -27
  1282. package/lib/module/icons/Recorder.js.map +1 -1
  1283. package/lib/module/icons/Refresh.js +6 -18
  1284. package/lib/module/icons/Refresh.js.map +1 -1
  1285. package/lib/module/icons/SEVEN_Z.js +18 -53
  1286. package/lib/module/icons/SEVEN_Z.js.map +1 -1
  1287. package/lib/module/icons/Search.js +6 -18
  1288. package/lib/module/icons/Search.js.map +1 -1
  1289. package/lib/module/icons/SendRight.js +6 -18
  1290. package/lib/module/icons/SendRight.js.map +1 -1
  1291. package/lib/module/icons/SendUp.js +6 -18
  1292. package/lib/module/icons/SendUp.js.map +1 -1
  1293. package/lib/module/icons/Share.js +15 -40
  1294. package/lib/module/icons/Share.js.map +1 -1
  1295. package/lib/module/icons/ShareRightArrow.js +6 -18
  1296. package/lib/module/icons/ShareRightArrow.js.map +1 -1
  1297. package/lib/module/icons/Smile.js +8 -27
  1298. package/lib/module/icons/Smile.js.map +1 -1
  1299. package/lib/module/icons/Sound.js +6 -18
  1300. package/lib/module/icons/Sound.js.map +1 -1
  1301. package/lib/module/icons/TAR.js +18 -53
  1302. package/lib/module/icons/TAR.js.map +1 -1
  1303. package/lib/module/icons/TXT.js +18 -53
  1304. package/lib/module/icons/TXT.js.map +1 -1
  1305. package/lib/module/icons/ThreadReply.js +6 -18
  1306. package/lib/module/icons/ThreadReply.js.map +1 -1
  1307. package/lib/module/icons/ThumbsDownReaction.js +6 -18
  1308. package/lib/module/icons/ThumbsDownReaction.js.map +1 -1
  1309. package/lib/module/icons/ThumbsUpReaction.js +6 -18
  1310. package/lib/module/icons/ThumbsUpReaction.js.map +1 -1
  1311. package/lib/module/icons/Time.js +8 -27
  1312. package/lib/module/icons/Time.js.map +1 -1
  1313. package/lib/module/icons/Unknown.js +6 -18
  1314. package/lib/module/icons/Unknown.js.map +1 -1
  1315. package/lib/module/icons/Unpin.js +6 -18
  1316. package/lib/module/icons/Unpin.js.map +1 -1
  1317. package/lib/module/icons/User.js +6 -18
  1318. package/lib/module/icons/User.js.map +1 -1
  1319. package/lib/module/icons/UserAdd.js +8 -27
  1320. package/lib/module/icons/UserAdd.js.map +1 -1
  1321. package/lib/module/icons/UserAdmin.js +13 -32
  1322. package/lib/module/icons/UserAdmin.js.map +1 -1
  1323. package/lib/module/icons/UserDelete.js +8 -27
  1324. package/lib/module/icons/UserDelete.js.map +1 -1
  1325. package/lib/module/icons/UserMinus.js +8 -27
  1326. package/lib/module/icons/UserMinus.js.map +1 -1
  1327. package/lib/module/icons/Video.js +18 -58
  1328. package/lib/module/icons/Video.js.map +1 -1
  1329. package/lib/module/icons/Warning.js +6 -18
  1330. package/lib/module/icons/Warning.js.map +1 -1
  1331. package/lib/module/icons/WutReaction.js +6 -18
  1332. package/lib/module/icons/WutReaction.js.map +1 -1
  1333. package/lib/module/icons/XLS.js +32 -83
  1334. package/lib/module/icons/XLS.js.map +1 -1
  1335. package/lib/module/icons/XLSX.js +32 -83
  1336. package/lib/module/icons/XLSX.js.map +1 -1
  1337. package/lib/module/icons/ZIP.js +18 -53
  1338. package/lib/module/icons/ZIP.js.map +1 -1
  1339. package/lib/module/icons/index.js.map +1 -1
  1340. package/lib/module/icons/utils/base.js +8 -19
  1341. package/lib/module/icons/utils/base.js.map +1 -1
  1342. package/lib/module/index.js +2 -2
  1343. package/lib/module/index.js.map +1 -1
  1344. package/lib/module/init.js.map +1 -1
  1345. package/lib/module/mock-builders/DB/consts.js.map +1 -1
  1346. package/lib/module/mock-builders/DB/mock.js +2 -2
  1347. package/lib/module/mock-builders/DB/mock.js.map +1 -1
  1348. package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
  1349. package/lib/module/mock-builders/api/deleteMessage.js.map +1 -1
  1350. package/lib/module/mock-builders/api/deleteReaction.js.map +1 -1
  1351. package/lib/module/mock-builders/api/error.js +4 -6
  1352. package/lib/module/mock-builders/api/error.js.map +1 -1
  1353. package/lib/module/mock-builders/api/getOrCreateChannel.js.map +1 -1
  1354. package/lib/module/mock-builders/api/queryChannels.js.map +1 -1
  1355. package/lib/module/mock-builders/api/queryMembers.js.map +1 -1
  1356. package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
  1357. package/lib/module/mock-builders/api/sendReaction.js.map +1 -1
  1358. package/lib/module/mock-builders/api/threadReplies.js.map +1 -1
  1359. package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
  1360. package/lib/module/mock-builders/api/utils.js.map +1 -1
  1361. package/lib/module/mock-builders/event/channelDeleted.js.map +1 -1
  1362. package/lib/module/mock-builders/event/channelHidden.js.map +1 -1
  1363. package/lib/module/mock-builders/event/channelTruncated.js.map +1 -1
  1364. package/lib/module/mock-builders/event/channelUpdated.js.map +1 -1
  1365. package/lib/module/mock-builders/event/connectionChanged.js.map +1 -1
  1366. package/lib/module/mock-builders/event/connectionRecovered.js.map +1 -1
  1367. package/lib/module/mock-builders/event/memberAdded.js.map +1 -1
  1368. package/lib/module/mock-builders/event/memberRemoved.js.map +1 -1
  1369. package/lib/module/mock-builders/event/memberUpdated.js.map +1 -1
  1370. package/lib/module/mock-builders/event/messageDeleted.js.map +1 -1
  1371. package/lib/module/mock-builders/event/messageNew.js.map +1 -1
  1372. package/lib/module/mock-builders/event/messageRead.js.map +1 -1
  1373. package/lib/module/mock-builders/event/messageUpdated.js.map +1 -1
  1374. package/lib/module/mock-builders/event/notificationAddedToChannel.js.map +1 -1
  1375. package/lib/module/mock-builders/event/notificationMessageNew.js.map +1 -1
  1376. package/lib/module/mock-builders/event/notificationMutesUpdated.js +1 -3
  1377. package/lib/module/mock-builders/event/notificationMutesUpdated.js.map +1 -1
  1378. package/lib/module/mock-builders/event/notificationRemovedFromChannel.js.map +1 -1
  1379. package/lib/module/mock-builders/event/reactionDeleted.js.map +1 -1
  1380. package/lib/module/mock-builders/event/reactionNew.js.map +1 -1
  1381. package/lib/module/mock-builders/event/reactionUpdated.js.map +1 -1
  1382. package/lib/module/mock-builders/event/typing.js.map +1 -1
  1383. package/lib/module/mock-builders/event/userPresence.js.map +1 -1
  1384. package/lib/module/mock-builders/event/userUpdated.js.map +1 -1
  1385. package/lib/module/mock-builders/generator/attachment.js +9 -11
  1386. package/lib/module/mock-builders/generator/attachment.js.map +1 -1
  1387. package/lib/module/mock-builders/generator/channel.js +11 -12
  1388. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  1389. package/lib/module/mock-builders/generator/member.js +1 -3
  1390. package/lib/module/mock-builders/generator/member.js.map +1 -1
  1391. package/lib/module/mock-builders/generator/message.js +2 -4
  1392. package/lib/module/mock-builders/generator/message.js.map +1 -1
  1393. package/lib/module/mock-builders/generator/reaction.js +1 -3
  1394. package/lib/module/mock-builders/generator/reaction.js.map +1 -1
  1395. package/lib/module/mock-builders/generator/user.js +2 -4
  1396. package/lib/module/mock-builders/generator/user.js.map +1 -1
  1397. package/lib/module/mock-builders/mock.js +1 -2
  1398. package/lib/module/mock-builders/mock.js.map +1 -1
  1399. package/lib/module/mock-builders/native/react-native-mock.js.map +1 -1
  1400. package/lib/module/native.js.map +1 -1
  1401. package/lib/module/store/QuickSqliteClient.js +11 -11
  1402. package/lib/module/store/QuickSqliteClient.js.map +1 -1
  1403. package/lib/module/store/apis/addPendingTask.js.map +1 -1
  1404. package/lib/module/store/apis/deleteChannel.js.map +1 -1
  1405. package/lib/module/store/apis/deleteMember.js.map +1 -1
  1406. package/lib/module/store/apis/deleteMessage.js.map +1 -1
  1407. package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
  1408. package/lib/module/store/apis/deletePendingTask.js.map +1 -1
  1409. package/lib/module/store/apis/deleteReaction.js.map +1 -1
  1410. package/lib/module/store/apis/deleteReactions.js.map +1 -1
  1411. package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
  1412. package/lib/module/store/apis/getAppSettings.js.map +1 -1
  1413. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  1414. package/lib/module/store/apis/getChannels.js +1 -3
  1415. package/lib/module/store/apis/getChannels.js.map +1 -1
  1416. package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
  1417. package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
  1418. package/lib/module/store/apis/getMembers.js.map +1 -1
  1419. package/lib/module/store/apis/getPendingTasks.js.map +1 -1
  1420. package/lib/module/store/apis/getReads.js.map +1 -1
  1421. package/lib/module/store/apis/index.js.map +1 -1
  1422. package/lib/module/store/apis/insertReaction.js.map +1 -1
  1423. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  1424. package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
  1425. package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -3
  1426. package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
  1427. package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -3
  1428. package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  1429. package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -3
  1430. package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  1431. package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -3
  1432. package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
  1433. package/lib/module/store/apis/updateMessage.js.map +1 -1
  1434. package/lib/module/store/apis/updateReaction.js.map +1 -1
  1435. package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
  1436. package/lib/module/store/apis/upsertChannelData.js.map +1 -1
  1437. package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -1
  1438. package/lib/module/store/apis/upsertChannels.js +29 -21
  1439. package/lib/module/store/apis/upsertChannels.js.map +1 -1
  1440. package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
  1441. package/lib/module/store/apis/upsertMembers.js.map +1 -1
  1442. package/lib/module/store/apis/upsertMessages.js.map +1 -1
  1443. package/lib/module/store/apis/upsertReads.js.map +1 -1
  1444. package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
  1445. package/lib/module/store/apis/utils/convertFilterSortToQuery.js +1 -1
  1446. package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
  1447. package/lib/module/store/constants.js.map +1 -1
  1448. package/lib/module/store/mappers/mapChannelDataToStorable.js.map +1 -1
  1449. package/lib/module/store/mappers/mapChannelToStorable.js.map +1 -1
  1450. package/lib/module/store/mappers/mapDateTimeToStorable.js.map +1 -1
  1451. package/lib/module/store/mappers/mapMemberToStorable.js.map +1 -1
  1452. package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
  1453. package/lib/module/store/mappers/mapReactionToStorable.js.map +1 -1
  1454. package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
  1455. package/lib/module/store/mappers/mapStorableToChannel.js +1 -3
  1456. package/lib/module/store/mappers/mapStorableToChannel.js.map +1 -1
  1457. package/lib/module/store/mappers/mapStorableToMember.js.map +1 -1
  1458. package/lib/module/store/mappers/mapStorableToMessage.js +1 -2
  1459. package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
  1460. package/lib/module/store/mappers/mapStorableToReaction.js +1 -3
  1461. package/lib/module/store/mappers/mapStorableToReaction.js.map +1 -1
  1462. package/lib/module/store/mappers/mapStorableToRead.js.map +1 -1
  1463. package/lib/module/store/mappers/mapStorableToTask.js.map +1 -1
  1464. package/lib/module/store/mappers/mapStorableToUser.js +1 -3
  1465. package/lib/module/store/mappers/mapStorableToUser.js.map +1 -1
  1466. package/lib/module/store/mappers/mapTaskToStorable.js +1 -3
  1467. package/lib/module/store/mappers/mapTaskToStorable.js.map +1 -1
  1468. package/lib/module/store/mappers/mapUserToStorable.js.map +1 -1
  1469. package/lib/module/store/schema.js.map +1 -1
  1470. package/lib/module/store/sqlite-utils/appendOrderByClause.js +2 -2
  1471. package/lib/module/store/sqlite-utils/appendOrderByClause.js.map +1 -1
  1472. package/lib/module/store/sqlite-utils/appendWhereCluase.js +3 -3
  1473. package/lib/module/store/sqlite-utils/appendWhereCluase.js.map +1 -1
  1474. package/lib/module/store/sqlite-utils/createCreateTableQuery.js +5 -5
  1475. package/lib/module/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
  1476. package/lib/module/store/sqlite-utils/createDeleteQuery.js +1 -1
  1477. package/lib/module/store/sqlite-utils/createDeleteQuery.js.map +1 -1
  1478. package/lib/module/store/sqlite-utils/createSelectQuery.js +2 -2
  1479. package/lib/module/store/sqlite-utils/createSelectQuery.js.map +1 -1
  1480. package/lib/module/store/sqlite-utils/createUpdateQuery.js +3 -3
  1481. package/lib/module/store/sqlite-utils/createUpdateQuery.js.map +1 -1
  1482. package/lib/module/store/sqlite-utils/createUpsertQuery.js +3 -3
  1483. package/lib/module/store/sqlite-utils/createUpsertQuery.js.map +1 -1
  1484. package/lib/module/store/sqlite-utils/printRow.js.map +1 -1
  1485. package/lib/module/store/types.js.map +1 -1
  1486. package/lib/module/test-utils/BetterSqlite.js +2 -2
  1487. package/lib/module/test-utils/BetterSqlite.js.map +1 -1
  1488. package/lib/module/types/types.js.map +1 -1
  1489. package/lib/module/utils/DBSyncManager.js +51 -30
  1490. package/lib/module/utils/DBSyncManager.js.map +1 -1
  1491. package/lib/module/utils/StreamChatRN.js +1 -2
  1492. package/lib/module/utils/StreamChatRN.js.map +1 -1
  1493. package/lib/module/utils/Streami18n.js +24 -22
  1494. package/lib/module/utils/Streami18n.js.map +1 -1
  1495. package/lib/module/utils/addReactionToLocalState.js.map +1 -1
  1496. package/lib/module/utils/compressImage.js.map +1 -1
  1497. package/lib/module/utils/date.js.map +1 -1
  1498. package/lib/module/utils/getResizedImageUrl.js +3 -3
  1499. package/lib/module/utils/getResizedImageUrl.js.map +1 -1
  1500. package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -1
  1501. package/lib/module/utils/patchMessageTextCommand.js +2 -2
  1502. package/lib/module/utils/patchMessageTextCommand.js.map +1 -1
  1503. package/lib/module/utils/removeReactionFromLocalState.js.map +1 -1
  1504. package/lib/module/utils/removeReservedFields.js +1 -3
  1505. package/lib/module/utils/removeReservedFields.js.map +1 -1
  1506. package/lib/module/utils/utils.js +29 -22
  1507. package/lib/module/utils/utils.js.map +1 -1
  1508. package/lib/module/version.json +1 -1
  1509. package/lib/typescript/components/Attachment/Attachment.d.ts +3 -2
  1510. package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -0
  1511. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +3 -2
  1512. package/lib/typescript/components/Attachment/AttachmentActions.d.ts.map +1 -0
  1513. package/lib/typescript/components/Attachment/AudioAttachment.d.ts +3 -2
  1514. package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -0
  1515. package/lib/typescript/components/Attachment/Card.d.ts +3 -2
  1516. package/lib/typescript/components/Attachment/Card.d.ts.map +1 -0
  1517. package/lib/typescript/components/Attachment/FileAttachment.d.ts +3 -2
  1518. package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -0
  1519. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +3 -2
  1520. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -0
  1521. package/lib/typescript/components/Attachment/FileIcon.d.ts +5 -1
  1522. package/lib/typescript/components/Attachment/FileIcon.d.ts.map +1 -0
  1523. package/lib/typescript/components/Attachment/Gallery.d.ts +3 -2
  1524. package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -0
  1525. package/lib/typescript/components/Attachment/GalleryImage.d.ts +4 -3
  1526. package/lib/typescript/components/Attachment/GalleryImage.d.ts.map +1 -0
  1527. package/lib/typescript/components/Attachment/Giphy.d.ts +3 -2
  1528. package/lib/typescript/components/Attachment/Giphy.d.ts.map +1 -0
  1529. package/lib/typescript/components/Attachment/ImageLoadingFailedIndicator.d.ts +3 -2
  1530. package/lib/typescript/components/Attachment/ImageLoadingFailedIndicator.d.ts.map +1 -0
  1531. package/lib/typescript/components/Attachment/ImageLoadingIndicator.d.ts +3 -2
  1532. package/lib/typescript/components/Attachment/ImageLoadingIndicator.d.ts.map +1 -0
  1533. package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts +2 -1
  1534. package/lib/typescript/components/Attachment/ImageReloadIndicator.d.ts.map +1 -0
  1535. package/lib/typescript/components/Attachment/VideoThumbnail.d.ts +2 -1
  1536. package/lib/typescript/components/Attachment/VideoThumbnail.d.ts.map +1 -0
  1537. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +1 -0
  1538. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -0
  1539. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +1 -0
  1540. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -0
  1541. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +1 -0
  1542. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -0
  1543. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +1 -0
  1544. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -0
  1545. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +1 -0
  1546. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -0
  1547. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +1 -0
  1548. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts.map +1 -0
  1549. package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts +1 -0
  1550. package/lib/typescript/components/Attachment/utils/buildGallery/types.d.ts.map +1 -0
  1551. package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +1 -0
  1552. package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts.map +1 -0
  1553. package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts +1 -0
  1554. package/lib/typescript/components/Attachment/utils/getGalleryImageBorderRadius.d.ts.map +1 -0
  1555. package/lib/typescript/components/Attachment/utils/getGiphyMimeType.d.ts +1 -0
  1556. package/lib/typescript/components/Attachment/utils/getGiphyMimeType.d.ts.map +1 -0
  1557. package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts +1 -0
  1558. package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts.map +1 -0
  1559. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts +1 -0
  1560. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -0
  1561. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts +5 -2
  1562. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.d.ts.map +1 -0
  1563. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerError.d.ts +2 -1
  1564. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerError.d.ts.map +1 -0
  1565. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerErrorImage.d.ts +2 -1
  1566. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerErrorImage.d.ts.map +1 -0
  1567. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.d.ts +3 -2
  1568. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.d.ts.map +1 -0
  1569. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts +2 -1
  1570. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -0
  1571. package/lib/typescript/components/AttachmentPicker/components/AttachmentSelectionBar.d.ts +2 -1
  1572. package/lib/typescript/components/AttachmentPicker/components/AttachmentSelectionBar.d.ts.map +1 -0
  1573. package/lib/typescript/components/AttachmentPicker/components/CameraSelectorIcon.d.ts +2 -1
  1574. package/lib/typescript/components/AttachmentPicker/components/CameraSelectorIcon.d.ts.map +1 -0
  1575. package/lib/typescript/components/AttachmentPicker/components/FileSelectorIcon.d.ts +2 -1
  1576. package/lib/typescript/components/AttachmentPicker/components/FileSelectorIcon.d.ts.map +1 -0
  1577. package/lib/typescript/components/AttachmentPicker/components/ImageOverlaySelectedComponent.d.ts +5 -1
  1578. package/lib/typescript/components/AttachmentPicker/components/ImageOverlaySelectedComponent.d.ts.map +1 -0
  1579. package/lib/typescript/components/AttachmentPicker/components/ImageSelectorIcon.d.ts +2 -1
  1580. package/lib/typescript/components/AttachmentPicker/components/ImageSelectorIcon.d.ts.map +1 -0
  1581. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +3 -2
  1582. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -0
  1583. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +3 -2
  1584. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -0
  1585. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +3 -2
  1586. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts.map +1 -0
  1587. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +3 -2
  1588. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts.map +1 -0
  1589. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +3 -2
  1590. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -0
  1591. package/lib/typescript/components/Avatar/Avatar.d.ts +5 -1
  1592. package/lib/typescript/components/Avatar/Avatar.d.ts.map +1 -0
  1593. package/lib/typescript/components/Avatar/GroupAvatar.d.ts +5 -1
  1594. package/lib/typescript/components/Avatar/GroupAvatar.d.ts.map +1 -0
  1595. package/lib/typescript/components/Channel/Channel.d.ts +2 -1
  1596. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -0
  1597. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -0
  1598. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -0
  1599. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +6 -5
  1600. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -0
  1601. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -0
  1602. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -0
  1603. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +1 -0
  1604. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts.map +1 -0
  1605. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +1 -0
  1606. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +1 -0
  1607. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +1 -0
  1608. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -0
  1609. package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +1 -0
  1610. package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -0
  1611. package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts +1 -0
  1612. package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts.map +1 -0
  1613. package/lib/typescript/components/ChannelList/ChannelList.d.ts +2 -1
  1614. package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -0
  1615. package/lib/typescript/components/ChannelList/ChannelListFooterLoadingIndicator.d.ts +5 -1
  1616. package/lib/typescript/components/ChannelList/ChannelListFooterLoadingIndicator.d.ts.map +1 -0
  1617. package/lib/typescript/components/ChannelList/ChannelListHeaderErrorIndicator.d.ts +5 -1
  1618. package/lib/typescript/components/ChannelList/ChannelListHeaderErrorIndicator.d.ts.map +1 -0
  1619. package/lib/typescript/components/ChannelList/ChannelListHeaderNetworkDownIndicator.d.ts +5 -1
  1620. package/lib/typescript/components/ChannelList/ChannelListHeaderNetworkDownIndicator.d.ts.map +1 -0
  1621. package/lib/typescript/components/ChannelList/ChannelListLoadingIndicator.d.ts +2 -1
  1622. package/lib/typescript/components/ChannelList/ChannelListLoadingIndicator.d.ts.map +1 -0
  1623. package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +3 -2
  1624. package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts.map +1 -0
  1625. package/lib/typescript/components/ChannelList/Skeleton.d.ts +5 -1
  1626. package/lib/typescript/components/ChannelList/Skeleton.d.ts.map +1 -0
  1627. package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +1 -0
  1628. package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts.map +1 -0
  1629. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +1 -0
  1630. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts.map +1 -0
  1631. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +1 -0
  1632. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts.map +1 -0
  1633. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +1 -0
  1634. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts.map +1 -0
  1635. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +1 -0
  1636. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts.map +1 -0
  1637. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +1 -0
  1638. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts.map +1 -0
  1639. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +1 -0
  1640. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts.map +1 -0
  1641. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +1 -0
  1642. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -0
  1643. package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +1 -0
  1644. package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts.map +1 -0
  1645. package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +1 -0
  1646. package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts.map +1 -0
  1647. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -0
  1648. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -0
  1649. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +1 -0
  1650. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -0
  1651. package/lib/typescript/components/ChannelList/utils.d.ts +2 -1
  1652. package/lib/typescript/components/ChannelList/utils.d.ts.map +1 -0
  1653. package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +4 -3
  1654. package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts.map +1 -0
  1655. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +3 -2
  1656. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -0
  1657. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +3 -2
  1658. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -0
  1659. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +3 -2
  1660. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -0
  1661. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +3 -2
  1662. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts.map +1 -0
  1663. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +3 -2
  1664. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -0
  1665. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +3 -2
  1666. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts.map +1 -0
  1667. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +3 -2
  1668. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts.map +1 -0
  1669. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +1 -0
  1670. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts.map +1 -0
  1671. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +1 -0
  1672. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts.map +1 -0
  1673. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +1 -0
  1674. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts.map +1 -0
  1675. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +1 -0
  1676. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -0
  1677. package/lib/typescript/components/Chat/Chat.d.ts +2 -1
  1678. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -0
  1679. package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts +1 -0
  1680. package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -0
  1681. package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts +1 -0
  1682. package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +1 -0
  1683. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -0
  1684. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -0
  1685. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +1 -0
  1686. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -0
  1687. package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts +1 -0
  1688. package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts.map +1 -0
  1689. package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts +1 -0
  1690. package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts.map +1 -0
  1691. package/lib/typescript/components/ImageBackground.d.ts +1 -0
  1692. package/lib/typescript/components/ImageBackground.d.ts.map +1 -0
  1693. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +3 -2
  1694. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -0
  1695. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +2 -1
  1696. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts.map +1 -0
  1697. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +2 -1
  1698. package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -0
  1699. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +3 -2
  1700. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -0
  1701. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +2 -1
  1702. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -0
  1703. package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts +5 -1
  1704. package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -0
  1705. package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts +2 -1
  1706. package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -0
  1707. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +2 -1
  1708. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts.map +1 -0
  1709. package/lib/typescript/components/ImageGallery/components/ImageGridHandle.d.ts +5 -1
  1710. package/lib/typescript/components/ImageGallery/components/ImageGridHandle.d.ts.map +1 -0
  1711. package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts +5 -4
  1712. package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -0
  1713. package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts +2 -1
  1714. package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -0
  1715. package/lib/typescript/components/Indicators/LoadingDot.d.ts +2 -1
  1716. package/lib/typescript/components/Indicators/LoadingDot.d.ts.map +1 -0
  1717. package/lib/typescript/components/Indicators/LoadingDots.d.ts +2 -1
  1718. package/lib/typescript/components/Indicators/LoadingDots.d.ts.map +1 -0
  1719. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +5 -1
  1720. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts.map +1 -0
  1721. package/lib/typescript/components/Indicators/LoadingIndicator.d.ts +5 -1
  1722. package/lib/typescript/components/Indicators/LoadingIndicator.d.ts.map +1 -0
  1723. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts +4 -3
  1724. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts.map +1 -0
  1725. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts +2 -1
  1726. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts.map +1 -0
  1727. package/lib/typescript/components/Message/Message.d.ts +3 -2
  1728. package/lib/typescript/components/Message/Message.d.ts.map +1 -0
  1729. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +3 -2
  1730. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts.map +1 -0
  1731. package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +3 -2
  1732. package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts.map +1 -0
  1733. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +2 -1
  1734. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -0
  1735. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +2 -1
  1736. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts.map +1 -0
  1737. package/lib/typescript/components/Message/MessageSimple/MessageError.d.ts +2 -1
  1738. package/lib/typescript/components/Message/MessageSimple/MessageError.d.ts.map +1 -0
  1739. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +2 -1
  1740. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -0
  1741. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +3 -2
  1742. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts.map +1 -0
  1743. package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +3 -2
  1744. package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts.map +1 -0
  1745. package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +4 -3
  1746. package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts.map +1 -0
  1747. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +3 -2
  1748. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -0
  1749. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +3 -2
  1750. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts.map +1 -0
  1751. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +3 -2
  1752. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -0
  1753. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +3 -2
  1754. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts.map +1 -0
  1755. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts +1 -0
  1756. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.d.ts.map +1 -0
  1757. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.test.d.ts +1 -0
  1758. package/lib/typescript/components/Message/MessageSimple/utils/generateMarkdownText.test.d.ts.map +1 -0
  1759. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.d.ts +1 -0
  1760. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.d.ts.map +1 -0
  1761. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.test.d.ts +1 -0
  1762. package/lib/typescript/components/Message/MessageSimple/utils/parseLinks.test.d.ts.map +1 -0
  1763. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +4 -3
  1764. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts.map +1 -0
  1765. package/lib/typescript/components/Message/MessageSimple/utils/renderText.test.d.ts +1 -0
  1766. package/lib/typescript/components/Message/MessageSimple/utils/renderText.test.d.ts.map +1 -0
  1767. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -0
  1768. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -0
  1769. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -0
  1770. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -0
  1771. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -0
  1772. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -0
  1773. package/lib/typescript/components/Message/utils/messageActions.d.ts +1 -0
  1774. package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -0
  1775. package/lib/typescript/components/MessageInput/AttachButton.d.ts +3 -2
  1776. package/lib/typescript/components/MessageInput/AttachButton.d.ts.map +1 -0
  1777. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +3 -2
  1778. package/lib/typescript/components/MessageInput/CommandsButton.d.ts.map +1 -0
  1779. package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +3 -2
  1780. package/lib/typescript/components/MessageInput/CooldownTimer.d.ts.map +1 -0
  1781. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +3 -2
  1782. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -0
  1783. package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +3 -2
  1784. package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts.map +1 -0
  1785. package/lib/typescript/components/MessageInput/InputButtons.d.ts +4 -3
  1786. package/lib/typescript/components/MessageInput/InputButtons.d.ts.map +1 -0
  1787. package/lib/typescript/components/MessageInput/MessageInput.d.ts +3 -2
  1788. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -0
  1789. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +3 -2
  1790. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts.map +1 -0
  1791. package/lib/typescript/components/MessageInput/SendButton.d.ts +3 -2
  1792. package/lib/typescript/components/MessageInput/SendButton.d.ts.map +1 -0
  1793. package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts +3 -2
  1794. package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts.map +1 -0
  1795. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +3 -2
  1796. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -0
  1797. package/lib/typescript/components/MessageInput/UploadProgressIndicator.d.ts +3 -2
  1798. package/lib/typescript/components/MessageInput/UploadProgressIndicator.d.ts.map +1 -0
  1799. package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts +4 -3
  1800. package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts.map +1 -0
  1801. package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts +4 -3
  1802. package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts.map +1 -0
  1803. package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts +4 -3
  1804. package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts.map +1 -0
  1805. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +1 -0
  1806. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts.map +1 -0
  1807. package/lib/typescript/components/MessageInput/hooks/useCountdown.d.ts +1 -0
  1808. package/lib/typescript/components/MessageInput/hooks/useCountdown.d.ts.map +1 -0
  1809. package/lib/typescript/components/MessageList/DateHeader.d.ts +2 -1
  1810. package/lib/typescript/components/MessageList/DateHeader.d.ts.map +1 -0
  1811. package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts +2 -1
  1812. package/lib/typescript/components/MessageList/InlineDateSeparator.d.ts.map +1 -0
  1813. package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +3 -2
  1814. package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts.map +1 -0
  1815. package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +3 -2
  1816. package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts.map +1 -0
  1817. package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +3 -2
  1818. package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts.map +1 -0
  1819. package/lib/typescript/components/MessageList/InlineUnreadIndicator.d.ts +2 -1
  1820. package/lib/typescript/components/MessageList/InlineUnreadIndicator.d.ts.map +1 -0
  1821. package/lib/typescript/components/MessageList/MessageList.d.ts +2 -1
  1822. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -0
  1823. package/lib/typescript/components/MessageList/MessageSystem.d.ts +3 -2
  1824. package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -0
  1825. package/lib/typescript/components/MessageList/NetworkDownIndicator.d.ts +3 -2
  1826. package/lib/typescript/components/MessageList/NetworkDownIndicator.d.ts.map +1 -0
  1827. package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +5 -1
  1828. package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -0
  1829. package/lib/typescript/components/MessageList/TypingIndicator.d.ts +3 -2
  1830. package/lib/typescript/components/MessageList/TypingIndicator.d.ts.map +1 -0
  1831. package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +3 -2
  1832. package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts.map +1 -0
  1833. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +1 -0
  1834. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -0
  1835. package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts +1 -0
  1836. package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map +1 -0
  1837. package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts +1 -0
  1838. package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts.map +1 -0
  1839. package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +1 -0
  1840. package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts.map +1 -0
  1841. package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +1 -0
  1842. package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts.map +1 -0
  1843. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +1 -0
  1844. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -0
  1845. package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +1 -0
  1846. package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +1 -0
  1847. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -0
  1848. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +1 -0
  1849. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +3 -2
  1850. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts.map +1 -0
  1851. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +3 -2
  1852. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts.map +1 -0
  1853. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +3 -2
  1854. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -0
  1855. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +1 -0
  1856. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts.map +1 -0
  1857. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +4 -3
  1858. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts.map +1 -0
  1859. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +5 -1
  1860. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts.map +1 -0
  1861. package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts +5 -1
  1862. package/lib/typescript/components/MessageOverlay/OverlayReactionsAvatar.d.ts.map +1 -0
  1863. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +2 -2
  1864. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts.map +1 -0
  1865. package/lib/typescript/components/ProgressControl/ProgressControl.d.ts +2 -1
  1866. package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -0
  1867. package/lib/typescript/components/RTLComponents/WritingDirectionAwareText.d.ts +2 -1
  1868. package/lib/typescript/components/RTLComponents/WritingDirectionAwareText.d.ts.map +1 -0
  1869. package/lib/typescript/components/Reply/Reply.d.ts +3 -2
  1870. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -0
  1871. package/lib/typescript/components/Spinner/Spinner.d.ts +5 -1
  1872. package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -0
  1873. package/lib/typescript/components/Thread/Thread.d.ts +2 -1
  1874. package/lib/typescript/components/Thread/Thread.d.ts.map +1 -0
  1875. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +3 -2
  1876. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -0
  1877. package/lib/typescript/components/index.d.ts +1 -0
  1878. package/lib/typescript/components/index.d.ts.map +1 -0
  1879. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +12 -2
  1880. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +1 -0
  1881. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +12 -2
  1882. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -0
  1883. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +7 -2
  1884. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -0
  1885. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +8 -3
  1886. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -0
  1887. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +12 -2
  1888. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -0
  1889. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +1 -0
  1890. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -0
  1891. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +7 -2
  1892. package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -0
  1893. package/lib/typescript/contexts/debugContext/DebugContext.d.ts +2 -1
  1894. package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +1 -0
  1895. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +12 -2
  1896. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -0
  1897. package/lib/typescript/contexts/index.d.ts +1 -0
  1898. package/lib/typescript/contexts/index.d.ts.map +1 -0
  1899. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +14 -2
  1900. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts.map +1 -0
  1901. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +9 -4
  1902. package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -0
  1903. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +8 -3
  1904. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -0
  1905. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -0
  1906. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -0
  1907. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -0
  1908. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -0
  1909. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +9 -4
  1910. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +1 -0
  1911. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts +1 -0
  1912. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.d.ts.map +1 -0
  1913. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts +1 -0
  1914. package/lib/typescript/contexts/messageOverlayContext/hooks/useResettableState.test.d.ts.map +1 -0
  1915. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +10 -4
  1916. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -0
  1917. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +11 -1
  1918. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -0
  1919. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts +2 -1
  1920. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -0
  1921. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +2 -1
  1922. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts.map +1 -0
  1923. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +9 -4
  1924. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -0
  1925. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +12 -2
  1926. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -0
  1927. package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +2 -1
  1928. package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -0
  1929. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +10 -6
  1930. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -0
  1931. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +9 -4
  1932. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -0
  1933. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +14 -2
  1934. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -0
  1935. package/lib/typescript/contexts/typingContext/TypingContext.d.ts +8 -3
  1936. package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -0
  1937. package/lib/typescript/contexts/utils/defaultBaseContextValue.d.ts +1 -0
  1938. package/lib/typescript/contexts/utils/defaultBaseContextValue.d.ts.map +1 -0
  1939. package/lib/typescript/contexts/utils/getDisplayName.d.ts +1 -0
  1940. package/lib/typescript/contexts/utils/getDisplayName.d.ts.map +1 -0
  1941. package/lib/typescript/contexts/utils/isTestEnvironment.d.ts +1 -0
  1942. package/lib/typescript/contexts/utils/isTestEnvironment.d.ts.map +1 -0
  1943. package/lib/typescript/emoji-data/index.d.ts +1 -0
  1944. package/lib/typescript/emoji-data/index.d.ts.map +1 -0
  1945. package/lib/typescript/hooks/index.d.ts +1 -0
  1946. package/lib/typescript/hooks/index.d.ts.map +1 -0
  1947. package/lib/typescript/hooks/useAppStateListener.d.ts +1 -0
  1948. package/lib/typescript/hooks/useAppStateListener.d.ts.map +1 -0
  1949. package/lib/typescript/hooks/useIsMountedRef.d.ts +1 -0
  1950. package/lib/typescript/hooks/useIsMountedRef.d.ts.map +1 -0
  1951. package/lib/typescript/hooks/useLoadingImage.d.ts +1 -0
  1952. package/lib/typescript/hooks/useLoadingImage.d.ts.map +1 -0
  1953. package/lib/typescript/hooks/useStreami18n.d.ts +1 -0
  1954. package/lib/typescript/hooks/useStreami18n.d.ts.map +1 -0
  1955. package/lib/typescript/hooks/useTranslatedMessage.d.ts +1 -0
  1956. package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -0
  1957. package/lib/typescript/hooks/useViewport.d.ts +1 -0
  1958. package/lib/typescript/hooks/useViewport.d.ts.map +1 -0
  1959. package/lib/typescript/i18n/es.json +41 -41
  1960. package/lib/typescript/i18n/fr.json +41 -41
  1961. package/lib/typescript/i18n/he.json +41 -41
  1962. package/lib/typescript/i18n/hi.json +41 -41
  1963. package/lib/typescript/i18n/it.json +41 -41
  1964. package/lib/typescript/i18n/ja.json +41 -41
  1965. package/lib/typescript/i18n/ko.json +41 -41
  1966. package/lib/typescript/i18n/nl.json +41 -41
  1967. package/lib/typescript/i18n/pt-BR.json +41 -41
  1968. package/lib/typescript/i18n/ru.json +41 -41
  1969. package/lib/typescript/i18n/tr.json +41 -41
  1970. package/lib/typescript/icons/ArrowRight.d.ts +3 -2
  1971. package/lib/typescript/icons/ArrowRight.d.ts.map +1 -0
  1972. package/lib/typescript/icons/AtMentions.d.ts +3 -2
  1973. package/lib/typescript/icons/AtMentions.d.ts.map +1 -0
  1974. package/lib/typescript/icons/Attach.d.ts +3 -2
  1975. package/lib/typescript/icons/Attach.d.ts.map +1 -0
  1976. package/lib/typescript/icons/Audio.d.ts +3 -2
  1977. package/lib/typescript/icons/Audio.d.ts.map +1 -0
  1978. package/lib/typescript/icons/CSV.d.ts +3 -2
  1979. package/lib/typescript/icons/CSV.d.ts.map +1 -0
  1980. package/lib/typescript/icons/Camera.d.ts +3 -2
  1981. package/lib/typescript/icons/Camera.d.ts.map +1 -0
  1982. package/lib/typescript/icons/Check.d.ts +3 -2
  1983. package/lib/typescript/icons/Check.d.ts.map +1 -0
  1984. package/lib/typescript/icons/CheckAll.d.ts +3 -2
  1985. package/lib/typescript/icons/CheckAll.d.ts.map +1 -0
  1986. package/lib/typescript/icons/CheckSend.d.ts +3 -2
  1987. package/lib/typescript/icons/CheckSend.d.ts.map +1 -0
  1988. package/lib/typescript/icons/CircleClose.d.ts +3 -2
  1989. package/lib/typescript/icons/CircleClose.d.ts.map +1 -0
  1990. package/lib/typescript/icons/CirclePlus.d.ts +3 -2
  1991. package/lib/typescript/icons/CirclePlus.d.ts.map +1 -0
  1992. package/lib/typescript/icons/CircleRight.d.ts +3 -2
  1993. package/lib/typescript/icons/CircleRight.d.ts.map +1 -0
  1994. package/lib/typescript/icons/Close.d.ts +3 -2
  1995. package/lib/typescript/icons/Close.d.ts.map +1 -0
  1996. package/lib/typescript/icons/Copy.d.ts +2 -1
  1997. package/lib/typescript/icons/Copy.d.ts.map +1 -0
  1998. package/lib/typescript/icons/CurveLineLeftUp.d.ts +3 -2
  1999. package/lib/typescript/icons/CurveLineLeftUp.d.ts.map +1 -0
  2000. package/lib/typescript/icons/DOC.d.ts +3 -2
  2001. package/lib/typescript/icons/DOC.d.ts.map +1 -0
  2002. package/lib/typescript/icons/DOCX.d.ts +3 -2
  2003. package/lib/typescript/icons/DOCX.d.ts.map +1 -0
  2004. package/lib/typescript/icons/Delete.d.ts +3 -2
  2005. package/lib/typescript/icons/Delete.d.ts.map +1 -0
  2006. package/lib/typescript/icons/Down.d.ts +3 -2
  2007. package/lib/typescript/icons/Down.d.ts.map +1 -0
  2008. package/lib/typescript/icons/DownloadArrow.d.ts +3 -2
  2009. package/lib/typescript/icons/DownloadArrow.d.ts.map +1 -0
  2010. package/lib/typescript/icons/DownloadCloud.d.ts +3 -2
  2011. package/lib/typescript/icons/DownloadCloud.d.ts.map +1 -0
  2012. package/lib/typescript/icons/Edit.d.ts +3 -2
  2013. package/lib/typescript/icons/Edit.d.ts.map +1 -0
  2014. package/lib/typescript/icons/Error.d.ts +3 -2
  2015. package/lib/typescript/icons/Error.d.ts.map +1 -0
  2016. package/lib/typescript/icons/Eye.d.ts +3 -2
  2017. package/lib/typescript/icons/Eye.d.ts.map +1 -0
  2018. package/lib/typescript/icons/Flag.d.ts +3 -2
  2019. package/lib/typescript/icons/Flag.d.ts.map +1 -0
  2020. package/lib/typescript/icons/Folder.d.ts +3 -2
  2021. package/lib/typescript/icons/Folder.d.ts.map +1 -0
  2022. package/lib/typescript/icons/GenericFile.d.ts +3 -2
  2023. package/lib/typescript/icons/GenericFile.d.ts.map +1 -0
  2024. package/lib/typescript/icons/GiphyIcon.d.ts +3 -2
  2025. package/lib/typescript/icons/GiphyIcon.d.ts.map +1 -0
  2026. package/lib/typescript/icons/Grid.d.ts +3 -2
  2027. package/lib/typescript/icons/Grid.d.ts.map +1 -0
  2028. package/lib/typescript/icons/Group.d.ts +3 -2
  2029. package/lib/typescript/icons/Group.d.ts.map +1 -0
  2030. package/lib/typescript/icons/HTML.d.ts +3 -2
  2031. package/lib/typescript/icons/HTML.d.ts.map +1 -0
  2032. package/lib/typescript/icons/Imgur.d.ts +3 -2
  2033. package/lib/typescript/icons/Imgur.d.ts.map +1 -0
  2034. package/lib/typescript/icons/LOLReaction.d.ts +3 -2
  2035. package/lib/typescript/icons/LOLReaction.d.ts.map +1 -0
  2036. package/lib/typescript/icons/Lightning.d.ts +3 -2
  2037. package/lib/typescript/icons/Lightning.d.ts.map +1 -0
  2038. package/lib/typescript/icons/Link.d.ts +3 -2
  2039. package/lib/typescript/icons/Link.d.ts.map +1 -0
  2040. package/lib/typescript/icons/Loading.d.ts +2 -1
  2041. package/lib/typescript/icons/Loading.d.ts.map +1 -0
  2042. package/lib/typescript/icons/Logo.d.ts +3 -2
  2043. package/lib/typescript/icons/Logo.d.ts.map +1 -0
  2044. package/lib/typescript/icons/LoveReaction.d.ts +3 -2
  2045. package/lib/typescript/icons/LoveReaction.d.ts.map +1 -0
  2046. package/lib/typescript/icons/MD.d.ts +3 -2
  2047. package/lib/typescript/icons/MD.d.ts.map +1 -0
  2048. package/lib/typescript/icons/MailOpen.d.ts +3 -2
  2049. package/lib/typescript/icons/MailOpen.d.ts.map +1 -0
  2050. package/lib/typescript/icons/MenuPointHorizontal.d.ts +3 -2
  2051. package/lib/typescript/icons/MenuPointHorizontal.d.ts.map +1 -0
  2052. package/lib/typescript/icons/MenuPointVertical.d.ts +3 -2
  2053. package/lib/typescript/icons/MenuPointVertical.d.ts.map +1 -0
  2054. package/lib/typescript/icons/MessageFlag.d.ts +3 -2
  2055. package/lib/typescript/icons/MessageFlag.d.ts.map +1 -0
  2056. package/lib/typescript/icons/MessageIcon.d.ts +3 -2
  2057. package/lib/typescript/icons/MessageIcon.d.ts.map +1 -0
  2058. package/lib/typescript/icons/Mute.d.ts +3 -2
  2059. package/lib/typescript/icons/Mute.d.ts.map +1 -0
  2060. package/lib/typescript/icons/Notification.d.ts +3 -2
  2061. package/lib/typescript/icons/Notification.d.ts.map +1 -0
  2062. package/lib/typescript/icons/ODT.d.ts +3 -2
  2063. package/lib/typescript/icons/ODT.d.ts.map +1 -0
  2064. package/lib/typescript/icons/PDF.d.ts +3 -2
  2065. package/lib/typescript/icons/PDF.d.ts.map +1 -0
  2066. package/lib/typescript/icons/PPT.d.ts +3 -2
  2067. package/lib/typescript/icons/PPT.d.ts.map +1 -0
  2068. package/lib/typescript/icons/PPTX.d.ts +3 -2
  2069. package/lib/typescript/icons/PPTX.d.ts.map +1 -0
  2070. package/lib/typescript/icons/Pause.d.ts +3 -2
  2071. package/lib/typescript/icons/Pause.d.ts.map +1 -0
  2072. package/lib/typescript/icons/Picture.d.ts +3 -2
  2073. package/lib/typescript/icons/Picture.d.ts.map +1 -0
  2074. package/lib/typescript/icons/Pin.d.ts +3 -2
  2075. package/lib/typescript/icons/Pin.d.ts.map +1 -0
  2076. package/lib/typescript/icons/PinHeader.d.ts +3 -2
  2077. package/lib/typescript/icons/PinHeader.d.ts.map +1 -0
  2078. package/lib/typescript/icons/Play.d.ts +3 -2
  2079. package/lib/typescript/icons/Play.d.ts.map +1 -0
  2080. package/lib/typescript/icons/RAR.d.ts +3 -2
  2081. package/lib/typescript/icons/RAR.d.ts.map +1 -0
  2082. package/lib/typescript/icons/RTF.d.ts +3 -2
  2083. package/lib/typescript/icons/RTF.d.ts.map +1 -0
  2084. package/lib/typescript/icons/Recorder.d.ts +3 -2
  2085. package/lib/typescript/icons/Recorder.d.ts.map +1 -0
  2086. package/lib/typescript/icons/Refresh.d.ts +3 -2
  2087. package/lib/typescript/icons/Refresh.d.ts.map +1 -0
  2088. package/lib/typescript/icons/SEVEN_Z.d.ts +3 -2
  2089. package/lib/typescript/icons/SEVEN_Z.d.ts.map +1 -0
  2090. package/lib/typescript/icons/Search.d.ts +3 -2
  2091. package/lib/typescript/icons/Search.d.ts.map +1 -0
  2092. package/lib/typescript/icons/SendRight.d.ts +3 -2
  2093. package/lib/typescript/icons/SendRight.d.ts.map +1 -0
  2094. package/lib/typescript/icons/SendUp.d.ts +3 -2
  2095. package/lib/typescript/icons/SendUp.d.ts.map +1 -0
  2096. package/lib/typescript/icons/Share.d.ts +3 -2
  2097. package/lib/typescript/icons/Share.d.ts.map +1 -0
  2098. package/lib/typescript/icons/ShareRightArrow.d.ts +3 -2
  2099. package/lib/typescript/icons/ShareRightArrow.d.ts.map +1 -0
  2100. package/lib/typescript/icons/Smile.d.ts +3 -2
  2101. package/lib/typescript/icons/Smile.d.ts.map +1 -0
  2102. package/lib/typescript/icons/Sound.d.ts +3 -2
  2103. package/lib/typescript/icons/Sound.d.ts.map +1 -0
  2104. package/lib/typescript/icons/TAR.d.ts +3 -2
  2105. package/lib/typescript/icons/TAR.d.ts.map +1 -0
  2106. package/lib/typescript/icons/TXT.d.ts +3 -2
  2107. package/lib/typescript/icons/TXT.d.ts.map +1 -0
  2108. package/lib/typescript/icons/ThreadReply.d.ts +3 -2
  2109. package/lib/typescript/icons/ThreadReply.d.ts.map +1 -0
  2110. package/lib/typescript/icons/ThumbsDownReaction.d.ts +3 -2
  2111. package/lib/typescript/icons/ThumbsDownReaction.d.ts.map +1 -0
  2112. package/lib/typescript/icons/ThumbsUpReaction.d.ts +3 -2
  2113. package/lib/typescript/icons/ThumbsUpReaction.d.ts.map +1 -0
  2114. package/lib/typescript/icons/Time.d.ts +3 -2
  2115. package/lib/typescript/icons/Time.d.ts.map +1 -0
  2116. package/lib/typescript/icons/Unknown.d.ts +3 -2
  2117. package/lib/typescript/icons/Unknown.d.ts.map +1 -0
  2118. package/lib/typescript/icons/Unpin.d.ts +3 -2
  2119. package/lib/typescript/icons/Unpin.d.ts.map +1 -0
  2120. package/lib/typescript/icons/User.d.ts +3 -2
  2121. package/lib/typescript/icons/User.d.ts.map +1 -0
  2122. package/lib/typescript/icons/UserAdd.d.ts +3 -2
  2123. package/lib/typescript/icons/UserAdd.d.ts.map +1 -0
  2124. package/lib/typescript/icons/UserAdmin.d.ts +3 -2
  2125. package/lib/typescript/icons/UserAdmin.d.ts.map +1 -0
  2126. package/lib/typescript/icons/UserDelete.d.ts +3 -2
  2127. package/lib/typescript/icons/UserDelete.d.ts.map +1 -0
  2128. package/lib/typescript/icons/UserMinus.d.ts +3 -2
  2129. package/lib/typescript/icons/UserMinus.d.ts.map +1 -0
  2130. package/lib/typescript/icons/Video.d.ts +3 -2
  2131. package/lib/typescript/icons/Video.d.ts.map +1 -0
  2132. package/lib/typescript/icons/Warning.d.ts +3 -2
  2133. package/lib/typescript/icons/Warning.d.ts.map +1 -0
  2134. package/lib/typescript/icons/WutReaction.d.ts +3 -2
  2135. package/lib/typescript/icons/WutReaction.d.ts.map +1 -0
  2136. package/lib/typescript/icons/XLS.d.ts +3 -2
  2137. package/lib/typescript/icons/XLS.d.ts.map +1 -0
  2138. package/lib/typescript/icons/XLSX.d.ts +3 -2
  2139. package/lib/typescript/icons/XLSX.d.ts.map +1 -0
  2140. package/lib/typescript/icons/ZIP.d.ts +3 -2
  2141. package/lib/typescript/icons/ZIP.d.ts.map +1 -0
  2142. package/lib/typescript/icons/index.d.ts +1 -0
  2143. package/lib/typescript/icons/index.d.ts.map +1 -0
  2144. package/lib/typescript/icons/utils/base.d.ts +4 -3
  2145. package/lib/typescript/icons/utils/base.d.ts.map +1 -0
  2146. package/lib/typescript/index.d.ts +1 -0
  2147. package/lib/typescript/index.d.ts.map +1 -0
  2148. package/lib/typescript/init.d.ts +1 -0
  2149. package/lib/typescript/init.d.ts.map +1 -0
  2150. package/lib/typescript/native.d.ts +1 -0
  2151. package/lib/typescript/native.d.ts.map +1 -0
  2152. package/lib/typescript/store/QuickSqliteClient.d.ts +1 -0
  2153. package/lib/typescript/store/QuickSqliteClient.d.ts.map +1 -0
  2154. package/lib/typescript/store/apis/addPendingTask.d.ts +1 -0
  2155. package/lib/typescript/store/apis/addPendingTask.d.ts.map +1 -0
  2156. package/lib/typescript/store/apis/deleteChannel.d.ts +1 -0
  2157. package/lib/typescript/store/apis/deleteChannel.d.ts.map +1 -0
  2158. package/lib/typescript/store/apis/deleteMember.d.ts +1 -0
  2159. package/lib/typescript/store/apis/deleteMember.d.ts.map +1 -0
  2160. package/lib/typescript/store/apis/deleteMessage.d.ts +1 -0
  2161. package/lib/typescript/store/apis/deleteMessage.d.ts.map +1 -0
  2162. package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts +1 -0
  2163. package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts.map +1 -0
  2164. package/lib/typescript/store/apis/deletePendingTask.d.ts +1 -0
  2165. package/lib/typescript/store/apis/deletePendingTask.d.ts.map +1 -0
  2166. package/lib/typescript/store/apis/deleteReaction.d.ts +1 -0
  2167. package/lib/typescript/store/apis/deleteReaction.d.ts.map +1 -0
  2168. package/lib/typescript/store/apis/deleteReactions.d.ts +1 -0
  2169. package/lib/typescript/store/apis/deleteReactions.d.ts.map +1 -0
  2170. package/lib/typescript/store/apis/getAllChannelIds.d.ts +1 -0
  2171. package/lib/typescript/store/apis/getAllChannelIds.d.ts.map +1 -0
  2172. package/lib/typescript/store/apis/getAppSettings.d.ts +1 -0
  2173. package/lib/typescript/store/apis/getAppSettings.d.ts.map +1 -0
  2174. package/lib/typescript/store/apis/getChannelMessages.d.ts +1 -0
  2175. package/lib/typescript/store/apis/getChannelMessages.d.ts.map +1 -0
  2176. package/lib/typescript/store/apis/getChannels.d.ts +1 -0
  2177. package/lib/typescript/store/apis/getChannels.d.ts.map +1 -0
  2178. package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts +1 -0
  2179. package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts.map +1 -0
  2180. package/lib/typescript/store/apis/getLastSyncedAt.d.ts +1 -0
  2181. package/lib/typescript/store/apis/getLastSyncedAt.d.ts.map +1 -0
  2182. package/lib/typescript/store/apis/getMembers.d.ts +1 -0
  2183. package/lib/typescript/store/apis/getMembers.d.ts.map +1 -0
  2184. package/lib/typescript/store/apis/getPendingTasks.d.ts +1 -0
  2185. package/lib/typescript/store/apis/getPendingTasks.d.ts.map +1 -0
  2186. package/lib/typescript/store/apis/getReads.d.ts +1 -0
  2187. package/lib/typescript/store/apis/getReads.d.ts.map +1 -0
  2188. package/lib/typescript/store/apis/index.d.ts +1 -0
  2189. package/lib/typescript/store/apis/index.d.ts.map +1 -0
  2190. package/lib/typescript/store/apis/insertReaction.d.ts +1 -0
  2191. package/lib/typescript/store/apis/insertReaction.d.ts.map +1 -0
  2192. package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts +1 -0
  2193. package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts.map +1 -0
  2194. package/lib/typescript/store/apis/queries/selectChannels.d.ts +1 -0
  2195. package/lib/typescript/store/apis/queries/selectChannels.d.ts.map +1 -0
  2196. package/lib/typescript/store/apis/queries/selectMembersForChannels.d.ts +1 -0
  2197. package/lib/typescript/store/apis/queries/selectMembersForChannels.d.ts.map +1 -0
  2198. package/lib/typescript/store/apis/queries/selectMessagesForChannels.d.ts +1 -0
  2199. package/lib/typescript/store/apis/queries/selectMessagesForChannels.d.ts.map +1 -0
  2200. package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts +1 -0
  2201. package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts.map +1 -0
  2202. package/lib/typescript/store/apis/queries/selectReadsForChannels.d.ts +1 -0
  2203. package/lib/typescript/store/apis/queries/selectReadsForChannels.d.ts.map +1 -0
  2204. package/lib/typescript/store/apis/updateMessage.d.ts +1 -0
  2205. package/lib/typescript/store/apis/updateMessage.d.ts.map +1 -0
  2206. package/lib/typescript/store/apis/updateReaction.d.ts +1 -0
  2207. package/lib/typescript/store/apis/updateReaction.d.ts.map +1 -0
  2208. package/lib/typescript/store/apis/upsertAppSettings.d.ts +1 -0
  2209. package/lib/typescript/store/apis/upsertAppSettings.d.ts.map +1 -0
  2210. package/lib/typescript/store/apis/upsertChannelData.d.ts +1 -0
  2211. package/lib/typescript/store/apis/upsertChannelData.d.ts.map +1 -0
  2212. package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts +1 -0
  2213. package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts.map +1 -0
  2214. package/lib/typescript/store/apis/upsertChannels.d.ts +1 -0
  2215. package/lib/typescript/store/apis/upsertChannels.d.ts.map +1 -0
  2216. package/lib/typescript/store/apis/upsertCidsForQuery.d.ts +1 -0
  2217. package/lib/typescript/store/apis/upsertCidsForQuery.d.ts.map +1 -0
  2218. package/lib/typescript/store/apis/upsertMembers.d.ts +1 -0
  2219. package/lib/typescript/store/apis/upsertMembers.d.ts.map +1 -0
  2220. package/lib/typescript/store/apis/upsertMessages.d.ts +1 -0
  2221. package/lib/typescript/store/apis/upsertMessages.d.ts.map +1 -0
  2222. package/lib/typescript/store/apis/upsertReads.d.ts +1 -0
  2223. package/lib/typescript/store/apis/upsertReads.d.ts.map +1 -0
  2224. package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts +1 -0
  2225. package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts.map +1 -0
  2226. package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts +1 -0
  2227. package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts.map +1 -0
  2228. package/lib/typescript/store/constants.d.ts +1 -0
  2229. package/lib/typescript/store/constants.d.ts.map +1 -0
  2230. package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts +1 -0
  2231. package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts.map +1 -0
  2232. package/lib/typescript/store/mappers/mapChannelToStorable.d.ts +1 -0
  2233. package/lib/typescript/store/mappers/mapChannelToStorable.d.ts.map +1 -0
  2234. package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts +1 -0
  2235. package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts.map +1 -0
  2236. package/lib/typescript/store/mappers/mapMemberToStorable.d.ts +1 -0
  2237. package/lib/typescript/store/mappers/mapMemberToStorable.d.ts.map +1 -0
  2238. package/lib/typescript/store/mappers/mapMessageToStorable.d.ts +1 -0
  2239. package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -0
  2240. package/lib/typescript/store/mappers/mapReactionToStorable.d.ts +1 -0
  2241. package/lib/typescript/store/mappers/mapReactionToStorable.d.ts.map +1 -0
  2242. package/lib/typescript/store/mappers/mapReadToStorable.d.ts +1 -0
  2243. package/lib/typescript/store/mappers/mapReadToStorable.d.ts.map +1 -0
  2244. package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +1 -0
  2245. package/lib/typescript/store/mappers/mapStorableToChannel.d.ts.map +1 -0
  2246. package/lib/typescript/store/mappers/mapStorableToMember.d.ts +1 -0
  2247. package/lib/typescript/store/mappers/mapStorableToMember.d.ts.map +1 -0
  2248. package/lib/typescript/store/mappers/mapStorableToMessage.d.ts +1 -0
  2249. package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -0
  2250. package/lib/typescript/store/mappers/mapStorableToReaction.d.ts +1 -0
  2251. package/lib/typescript/store/mappers/mapStorableToReaction.d.ts.map +1 -0
  2252. package/lib/typescript/store/mappers/mapStorableToRead.d.ts +1 -0
  2253. package/lib/typescript/store/mappers/mapStorableToRead.d.ts.map +1 -0
  2254. package/lib/typescript/store/mappers/mapStorableToTask.d.ts +1 -0
  2255. package/lib/typescript/store/mappers/mapStorableToTask.d.ts.map +1 -0
  2256. package/lib/typescript/store/mappers/mapStorableToUser.d.ts +1 -0
  2257. package/lib/typescript/store/mappers/mapStorableToUser.d.ts.map +1 -0
  2258. package/lib/typescript/store/mappers/mapTaskToStorable.d.ts +1 -0
  2259. package/lib/typescript/store/mappers/mapTaskToStorable.d.ts.map +1 -0
  2260. package/lib/typescript/store/mappers/mapUserToStorable.d.ts +1 -0
  2261. package/lib/typescript/store/mappers/mapUserToStorable.d.ts.map +1 -0
  2262. package/lib/typescript/store/schema.d.ts +1 -0
  2263. package/lib/typescript/store/schema.d.ts.map +1 -0
  2264. package/lib/typescript/store/sqlite-utils/appendOrderByClause.d.ts +1 -0
  2265. package/lib/typescript/store/sqlite-utils/appendOrderByClause.d.ts.map +1 -0
  2266. package/lib/typescript/store/sqlite-utils/appendWhereCluase.d.ts +1 -0
  2267. package/lib/typescript/store/sqlite-utils/appendWhereCluase.d.ts.map +1 -0
  2268. package/lib/typescript/store/sqlite-utils/createCreateTableQuery.d.ts +1 -0
  2269. package/lib/typescript/store/sqlite-utils/createCreateTableQuery.d.ts.map +1 -0
  2270. package/lib/typescript/store/sqlite-utils/createDeleteQuery.d.ts +1 -0
  2271. package/lib/typescript/store/sqlite-utils/createDeleteQuery.d.ts.map +1 -0
  2272. package/lib/typescript/store/sqlite-utils/createSelectQuery.d.ts +1 -0
  2273. package/lib/typescript/store/sqlite-utils/createSelectQuery.d.ts.map +1 -0
  2274. package/lib/typescript/store/sqlite-utils/createUpdateQuery.d.ts +1 -0
  2275. package/lib/typescript/store/sqlite-utils/createUpdateQuery.d.ts.map +1 -0
  2276. package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts +1 -0
  2277. package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts.map +1 -0
  2278. package/lib/typescript/store/sqlite-utils/printRow.d.ts +1 -0
  2279. package/lib/typescript/store/sqlite-utils/printRow.d.ts.map +1 -0
  2280. package/lib/typescript/store/types.d.ts +1 -0
  2281. package/lib/typescript/store/types.d.ts.map +1 -0
  2282. package/lib/typescript/test-utils/BetterSqlite.d.ts +1 -0
  2283. package/lib/typescript/test-utils/BetterSqlite.d.ts.map +1 -0
  2284. package/lib/typescript/types/types.d.ts +1 -0
  2285. package/lib/typescript/types/types.d.ts.map +1 -0
  2286. package/lib/typescript/utils/DBSyncManager.d.ts +1 -0
  2287. package/lib/typescript/utils/DBSyncManager.d.ts.map +1 -0
  2288. package/lib/typescript/utils/StreamChatRN.d.ts +1 -0
  2289. package/lib/typescript/utils/StreamChatRN.d.ts.map +1 -0
  2290. package/lib/typescript/utils/Streami18n.d.ts +2 -0
  2291. package/lib/typescript/utils/Streami18n.d.ts.map +1 -0
  2292. package/lib/typescript/utils/addReactionToLocalState.d.ts +1 -0
  2293. package/lib/typescript/utils/addReactionToLocalState.d.ts.map +1 -0
  2294. package/lib/typescript/utils/compressImage.d.ts +1 -0
  2295. package/lib/typescript/utils/compressImage.d.ts.map +1 -0
  2296. package/lib/typescript/utils/date.d.ts +1 -0
  2297. package/lib/typescript/utils/date.d.ts.map +1 -0
  2298. package/lib/typescript/utils/getResizedImageUrl.d.ts +1 -0
  2299. package/lib/typescript/utils/getResizedImageUrl.d.ts.map +1 -0
  2300. package/lib/typescript/utils/getUrlOfImageAttachment.d.ts +1 -0
  2301. package/lib/typescript/utils/getUrlOfImageAttachment.d.ts.map +1 -0
  2302. package/lib/typescript/utils/patchMessageTextCommand.d.ts +1 -0
  2303. package/lib/typescript/utils/patchMessageTextCommand.d.ts.map +1 -0
  2304. package/lib/typescript/utils/removeReactionFromLocalState.d.ts +1 -0
  2305. package/lib/typescript/utils/removeReactionFromLocalState.d.ts.map +1 -0
  2306. package/lib/typescript/utils/removeReservedFields.d.ts +1 -0
  2307. package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -0
  2308. package/lib/typescript/utils/utils.d.ts +3 -2
  2309. package/lib/typescript/utils/utils.d.ts.map +1 -0
  2310. package/package.json +33 -33
  2311. package/src/__tests__/offline-support/offline-feature.js +60 -61
  2312. package/src/__tests__/offline-support/optimistic-update.js +15 -15
  2313. package/src/components/Attachment/AudioAttachment.tsx +1 -1
  2314. package/src/components/Attachment/Card.tsx +1 -1
  2315. package/src/components/Attachment/FileAttachment.tsx +1 -1
  2316. package/src/components/Attachment/FileIcon.tsx +3 -3
  2317. package/src/components/Attachment/GalleryImage.tsx +1 -1
  2318. package/src/components/Attachment/Giphy.tsx +3 -2
  2319. package/src/components/Attachment/ImageLoadingFailedIndicator.tsx +1 -1
  2320. package/src/components/Attachment/VideoThumbnail.tsx +1 -1
  2321. package/src/components/Attachment/__tests__/Gallery.test.js +48 -47
  2322. package/src/components/Attachment/__tests__/Giphy.test.js +62 -52
  2323. package/src/components/AttachmentPicker/AttachmentPicker.tsx +6 -3
  2324. package/src/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.tsx +4 -2
  2325. package/src/components/AttachmentPicker/components/AttachmentPickerError.tsx +3 -3
  2326. package/src/components/AttachmentPicker/components/AttachmentPickerErrorImage.tsx +1 -1
  2327. package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx +1 -1
  2328. package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +2 -2
  2329. package/src/components/AttachmentPicker/components/AttachmentSelectionBar.tsx +1 -1
  2330. package/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx +1 -1
  2331. package/src/components/AttachmentPicker/components/FileSelectorIcon.tsx +1 -1
  2332. package/src/components/AttachmentPicker/components/ImageOverlaySelectedComponent.tsx +1 -1
  2333. package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx +1 -1
  2334. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +13 -12
  2335. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +2 -2
  2336. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
  2337. package/src/components/Avatar/Avatar.tsx +2 -2
  2338. package/src/components/Avatar/GroupAvatar.tsx +1 -1
  2339. package/src/components/Channel/Channel.tsx +11 -14
  2340. package/src/components/ChannelList/ChannelList.tsx +4 -4
  2341. package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
  2342. package/src/components/ChannelList/ChannelListHeaderErrorIndicator.tsx +2 -4
  2343. package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +4 -2
  2344. package/src/components/ChannelList/ChannelListLoadingIndicator.tsx +1 -1
  2345. package/src/components/ChannelList/Skeleton.tsx +1 -1
  2346. package/src/components/ChannelList/__tests__/ChannelList.test.js +83 -75
  2347. package/src/components/ChannelList/utils.ts +1 -1
  2348. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +1 -1
  2349. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +2 -2
  2350. package/src/components/ChannelPreview/__tests__/ChannelPreviewMessenger.test.js +11 -10
  2351. package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +3 -3
  2352. package/src/components/ChannelPreview/hooks/__tests__/useLatestMessagePreview.test.tsx +2 -4
  2353. package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +19 -19
  2354. package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +20 -22
  2355. package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +15 -13
  2356. package/src/components/ImageGallery/__tests__/ImageGalleryGrid.test.tsx +9 -20
  2357. package/src/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.tsx +7 -14
  2358. package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +12 -10
  2359. package/src/components/ImageGallery/__tests__/ImageGalleryVideoControl.test.tsx +17 -12
  2360. package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +2 -2
  2361. package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +2 -2
  2362. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +1 -1
  2363. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +4 -4
  2364. package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +1 -1
  2365. package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +2 -2
  2366. package/src/components/ImageGallery/components/ImageGridHandle.tsx +4 -2
  2367. package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +1 -3
  2368. package/src/components/Indicators/EmptyStateIndicator.tsx +3 -3
  2369. package/src/components/Indicators/LoadingDot.tsx +1 -1
  2370. package/src/components/Indicators/LoadingDots.tsx +1 -1
  2371. package/src/components/Indicators/LoadingErrorIndicator.tsx +2 -2
  2372. package/src/components/Indicators/LoadingIndicator.tsx +4 -2
  2373. package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx +6 -3
  2374. package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx +15 -6
  2375. package/src/components/Message/Message.tsx +6 -6
  2376. package/src/components/Message/MessageSimple/MessageContent.tsx +8 -2
  2377. package/src/components/Message/MessageSimple/MessageError.tsx +1 -1
  2378. package/src/components/Message/MessageSimple/MessageFooter.tsx +6 -4
  2379. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +2 -2
  2380. package/src/components/Message/MessageSimple/MessageReplies.tsx +2 -2
  2381. package/src/components/Message/MessageSimple/ReactionList.tsx +7 -7
  2382. package/src/components/Message/MessageSimple/__tests__/MessageAvatar.test.js +10 -10
  2383. package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +32 -32
  2384. package/src/components/Message/MessageSimple/__tests__/MessagePinnedHeader.test.js +7 -7
  2385. package/src/components/Message/MessageSimple/__tests__/MessageReplies.test.js +21 -21
  2386. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageAvatar.test.js.snap +11 -11
  2387. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +26 -14
  2388. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageStatus.test.js.snap +32 -15
  2389. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageTextContainer.test.tsx.snap +7 -7
  2390. package/src/components/Message/MessageSimple/utils/renderText.test.tsx +9 -8
  2391. package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
  2392. package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
  2393. package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +1 -1
  2394. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +58 -55
  2395. package/src/components/MessageInput/__tests__/AttachButton.test.js +11 -11
  2396. package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +13 -12
  2397. package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +20 -21
  2398. package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +51 -38
  2399. package/src/components/MessageInput/__tests__/UploadProgressIndicator.test.js +22 -51
  2400. package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap +66 -18
  2401. package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +132 -36
  2402. package/src/components/MessageInput/components/InputEditingStateHeader.tsx +1 -1
  2403. package/src/components/MessageInput/components/InputReplyStateHeader.tsx +1 -1
  2404. package/src/components/MessageList/DateHeader.tsx +1 -1
  2405. package/src/components/MessageList/InlineDateSeparator.tsx +1 -1
  2406. package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +19 -18
  2407. package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +19 -18
  2408. package/src/components/MessageList/InlineLoadingMoreThreadIndicator.tsx +19 -18
  2409. package/src/components/MessageList/InlineUnreadIndicator.tsx +2 -2
  2410. package/src/components/MessageList/MessageList.tsx +1 -0
  2411. package/src/components/MessageList/MessageSystem.tsx +1 -1
  2412. package/src/components/MessageList/ScrollToBottomButton.tsx +1 -1
  2413. package/src/components/MessageList/TypingIndicatorContainer.tsx +2 -2
  2414. package/src/components/MessageList/__tests__/MessageSystem.test.js +3 -3
  2415. package/src/components/MessageList/__tests__/__snapshots__/MessageSystem.test.js.snap +22 -22
  2416. package/src/components/MessageList/__tests__/__snapshots__/ScrollToBottomButton.test.js.snap +44 -15
  2417. package/src/components/MessageList/__tests__/__snapshots__/TypingIndicator.test.js.snap +27 -27
  2418. package/src/components/MessageList/__tests__/useMessageList.test.tsx +1 -1
  2419. package/src/components/MessageList/utils/getGroupStyles.ts +2 -2
  2420. package/src/components/MessageOverlay/MessageActionList.tsx +5 -5
  2421. package/src/components/MessageOverlay/MessageOverlay.tsx +8 -8
  2422. package/src/components/MessageOverlay/OverlayReactionList.tsx +4 -4
  2423. package/src/components/MessageOverlay/OverlayReactions.tsx +14 -15
  2424. package/src/components/MessageOverlay/OverlayReactionsAvatar.tsx +1 -1
  2425. package/src/components/ProgressControl/ProgressControl.tsx +4 -2
  2426. package/src/components/RTLComponents/WritingDirectionAwareText.tsx +1 -1
  2427. package/src/components/Reply/Reply.tsx +5 -5
  2428. package/src/components/Spinner/Spinner.tsx +1 -1
  2429. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +482 -318
  2430. package/src/components/Thread/components/ThreadFooterComponent.tsx +12 -6
  2431. package/src/contexts/__tests__/index.test.tsx +1 -1
  2432. package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +10 -1
  2433. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +10 -1
  2434. package/src/contexts/channelContext/ChannelContext.tsx +6 -1
  2435. package/src/contexts/channelsContext/ChannelsContext.tsx +7 -2
  2436. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +10 -1
  2437. package/src/contexts/chatContext/ChatContext.tsx +5 -1
  2438. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +10 -1
  2439. package/src/contexts/keyboardContext/KeyboardContext.tsx +14 -3
  2440. package/src/contexts/messageContext/MessageContext.tsx +7 -3
  2441. package/src/contexts/messageInputContext/MessageInputContext.tsx +6 -2
  2442. package/src/contexts/messageInputContext/__tests__/MessageInputContext.test.tsx +92 -43
  2443. package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +24 -24
  2444. package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessageAsync.test.tsx.snap +8 -8
  2445. package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +15 -4
  2446. package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +28 -13
  2447. package/src/contexts/messageInputContext/__tests__/removeFile.test.tsx +9 -6
  2448. package/src/contexts/messageInputContext/__tests__/removeImage.test.tsx +10 -7
  2449. package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +125 -53
  2450. package/src/contexts/messageInputContext/__tests__/sendMessageAsync.test.tsx +46 -25
  2451. package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +22 -11
  2452. package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +30 -13
  2453. package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +15 -6
  2454. package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +4 -3
  2455. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +5 -1
  2456. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +7 -3
  2457. package/src/contexts/messageOverlayContext/hooks/useResettableState.test.tsx +8 -7
  2458. package/src/contexts/messagesContext/MessagesContext.tsx +8 -3
  2459. package/src/contexts/overlayContext/OverlayContext.tsx +10 -1
  2460. package/src/contexts/overlayContext/OverlayProvider.tsx +4 -4
  2461. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +7 -3
  2462. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +10 -1
  2463. package/src/contexts/themeContext/utils/theme.ts +11 -6
  2464. package/src/contexts/threadContext/ThreadContext.tsx +8 -3
  2465. package/src/contexts/translationContext/TranslationContext.tsx +14 -3
  2466. package/src/contexts/typingContext/TypingContext.tsx +6 -2
  2467. package/src/hooks/__tests__/useAppStateListener.test.tsx +41 -15
  2468. package/src/hooks/__tests__/useTranslatedMessage.test.tsx +9 -9
  2469. package/src/hooks/useAppStateListener.ts +5 -1
  2470. package/src/i18n/es.json +41 -41
  2471. package/src/i18n/fr.json +41 -41
  2472. package/src/i18n/he.json +41 -41
  2473. package/src/i18n/hi.json +41 -41
  2474. package/src/i18n/it.json +41 -41
  2475. package/src/i18n/ja.json +41 -41
  2476. package/src/i18n/ko.json +41 -41
  2477. package/src/i18n/nl.json +41 -41
  2478. package/src/i18n/pt-BR.json +41 -41
  2479. package/src/i18n/ru.json +41 -41
  2480. package/src/i18n/tr.json +41 -41
  2481. package/src/icons/Copy.tsx +1 -1
  2482. package/src/icons/Loading.tsx +1 -1
  2483. package/src/mock-builders/generator/channel.ts +1 -1
  2484. package/src/utils/Streami18n.ts +3 -0
  2485. package/src/utils/utils.ts +2 -2
  2486. package/src/version.json +1 -1
  2487. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageReplies.test.js.snap +0 -93
  2488. package/src/components/MessageInput/__tests__/__snapshots__/UploadProgressIndicator.test.js.snap +0 -250
@@ -1 +1 @@
1
- {"version":3,"names":["tables","channelQueries","columns","cids","id","primaryKey","channels","autoTranslationEnabled","autoTranslationLanguage","cid","config","cooldown","createdAt","createdById","deletedAt","disabled","extraData","frozen","hidden","invites","lastMessageAt","memberCount","muted","ownCapabilities","team","truncatedAt","truncatedBy","truncatedById","type","updatedAt","members","banned","channelRole","inviteAcceptedAt","invited","inviteRejectedAt","isModerator","role","shadowBanned","userId","foreignKeys","column","onDeleteAction","referenceTable","referenceTableColumn","indexes","name","unique","messages","attachments","reactionCounts","text","pendingTasks","channelId","channelType","messageId","payload","reactions","score","reads","lastRead","unreadMessages","users","lastActive","online","userSyncStatus","appSettings","lastSyncedAt","exports"],"sources":["schema.ts"],"sourcesContent":["import type { MessageLabel, Role } from 'stream-chat';\n\nimport type { PendingTaskTypes } from './types';\n\nimport type { ValueOf } from '../types/types';\n\ntype Tables = {\n [P in keyof Schema]: {\n columns: {\n [K in keyof Schema[P]]: string;\n };\n foreignKeys?: Array<{\n column: `${Exclude<keyof Schema[P], symbol>}`;\n referenceTable: `${keyof Schema}`;\n referenceTableColumn: string;\n // https://www.sqlite.org/foreignkeys.html#fk_actions\n onDeleteAction?: 'NO ACTION' | 'RESTRICT' | 'SET NULL' | 'SET DEFAULT' | 'CASCADE';\n }>;\n indexes?: Array<{\n columns: Array<keyof Schema[P]>;\n name: string;\n unique: boolean;\n }>;\n primaryKey?: Array<keyof Schema[P]>;\n };\n};\n\nexport const tables: Tables = {\n channelQueries: {\n columns: {\n cids: 'TEXT',\n id: 'TEXT',\n },\n primaryKey: ['id'],\n },\n channels: {\n columns: {\n autoTranslationEnabled: 'BOOLEAN',\n autoTranslationLanguage: 'TEXT',\n cid: 'TEXT',\n config: 'TEXT',\n cooldown: 'BOOLEAN',\n createdAt: 'TEXT',\n createdById: 'TEXT',\n deletedAt: 'TEXT',\n disabled: 'BOOLEAN DEFAULT FALSE',\n extraData: 'TEXT',\n frozen: 'BOOLEAN',\n hidden: 'BOOLEAN',\n id: 'TEXT',\n invites: 'TEXT',\n lastMessageAt: 'TEXT',\n memberCount: 'INTEGER',\n muted: 'BOOLEAN DEFAULT FALSE',\n ownCapabilities: 'TEXT',\n team: 'TEXT',\n truncatedAt: 'TEXT',\n truncatedBy: 'TEXT',\n truncatedById: 'TEXT',\n type: 'TEXT',\n updatedAt: 'TEXT',\n },\n primaryKey: ['cid'],\n },\n members: {\n columns: {\n banned: 'BOOLEAN DEFAULT FALSE',\n channelRole: 'TEXT',\n cid: 'TEXT NOT NULL',\n createdAt: 'TEXT',\n inviteAcceptedAt: 'TEXT',\n invited: 'BOOLEAN',\n inviteRejectedAt: 'TEXT',\n isModerator: 'BOOLEAN',\n role: 'TEXT',\n shadowBanned: 'BOOLEAN DEFAULT FALSE',\n updatedAt: 'TEXT',\n userId: 'TEXT',\n },\n foreignKeys: [\n {\n column: 'cid',\n onDeleteAction: 'CASCADE',\n referenceTable: 'channels',\n referenceTableColumn: 'cid',\n },\n ],\n indexes: [\n {\n columns: ['cid', 'userId'],\n name: 'index_members',\n unique: false,\n },\n ],\n primaryKey: ['cid', 'userId'],\n },\n messages: {\n columns: {\n attachments: 'TEXT',\n cid: 'TEXT NOT NULL',\n createdAt: 'TEXT',\n deletedAt: 'TEXT',\n extraData: 'TEXT',\n id: 'TEXT',\n reactionCounts: 'TEXT',\n text: \"TEXT DEFAULT ''\",\n type: 'TEXT',\n updatedAt: 'TEXT',\n userId: 'TEXT',\n },\n foreignKeys: [\n {\n column: 'cid',\n onDeleteAction: 'CASCADE',\n referenceTable: 'channels',\n referenceTableColumn: 'cid',\n },\n ],\n indexes: [\n {\n columns: ['cid', 'userId'],\n name: 'index_messages',\n unique: false,\n },\n ],\n primaryKey: ['id'],\n },\n pendingTasks: {\n columns: {\n channelId: 'TEXT',\n channelType: 'TEXT',\n createdAt: 'TEXT',\n id: 'INTEGER PRIMARY KEY AUTOINCREMENT',\n messageId: 'TEXT',\n payload: 'TEXT',\n type: 'TEXT',\n },\n },\n reactions: {\n columns: {\n createdAt: 'TEXT',\n extraData: 'TEXT',\n messageId: 'TEXT',\n score: 'INTEGER DEFAULT 0',\n type: 'TEXT',\n updatedAt: 'TEXT',\n userId: 'TEXT',\n },\n foreignKeys: [\n {\n column: 'messageId',\n onDeleteAction: 'CASCADE',\n referenceTable: 'messages',\n referenceTableColumn: 'id',\n },\n ],\n indexes: [\n {\n columns: ['messageId', 'userId'],\n name: 'index_reaction',\n unique: false,\n },\n ],\n primaryKey: ['messageId', 'userId', 'type'],\n },\n reads: {\n columns: {\n cid: 'TEXT NOT NULL',\n lastRead: 'TEXT NOT NULL',\n unreadMessages: 'INTEGER DEFAULT 0',\n userId: 'TEXT',\n },\n indexes: [\n {\n columns: ['cid', 'userId'],\n name: 'index_reads_cid',\n unique: false,\n },\n ],\n primaryKey: ['userId', 'cid'],\n },\n users: {\n columns: {\n banned: 'BOOLEAN DEFAULT FALSE',\n createdAt: 'TEXT',\n extraData: 'TEXT',\n id: 'TEXT',\n lastActive: 'TEXT',\n online: 'INTEGER',\n role: 'TEXT',\n updatedAt: 'TEXT',\n },\n indexes: [\n {\n columns: ['id'],\n name: 'index_users_id',\n unique: true,\n },\n ],\n primaryKey: ['id'],\n },\n userSyncStatus: {\n columns: {\n appSettings: 'TEXT',\n lastSyncedAt: 'TEXT',\n userId: 'TEXT',\n },\n primaryKey: ['userId'],\n },\n};\n\n// TODO: Checking the optionality of columns\nexport type Schema = {\n channelQueries: {\n cids: string;\n id: string;\n };\n channels: {\n cid: string;\n extraData: string;\n id: string;\n type: string;\n autoTranslationEnabled?: boolean;\n autoTranslationLanguage?: string;\n config?: string;\n cooldown?: number;\n createdAt?: string;\n createdById?: string;\n deletedAt?: string;\n disabled?: boolean;\n frozen?: boolean;\n hidden?: boolean;\n invites?: string;\n lastMessageAt?: string;\n memberCount?: number;\n muted?: boolean;\n ownCapabilities?: string;\n team?: string;\n truncatedAt?: string;\n truncatedBy?: string;\n truncatedById?: string;\n updatedAt?: string;\n };\n members: {\n cid: string;\n banned?: boolean;\n channelRole?: Role;\n createdAt?: string;\n inviteAcceptedAt?: string;\n invited?: boolean;\n inviteRejectedAt?: string;\n isModerator?: boolean;\n role?: string;\n shadowBanned?: boolean;\n updatedAt?: string;\n userId?: string;\n };\n messages: {\n attachments: string;\n cid: string;\n createdAt: string;\n deletedAt: string;\n extraData: string;\n id: string;\n reactionCounts: string;\n type: MessageLabel;\n updatedAt: string;\n text?: string;\n userId?: string;\n };\n pendingTasks: {\n channelId: string;\n channelType: string;\n createdAt: string;\n id: number;\n messageId: string;\n payload: string;\n type: ValueOf<PendingTaskTypes>;\n };\n reactions: {\n createdAt: string;\n messageId: string;\n type: string;\n updatedAt: string;\n extraData?: string;\n score?: number;\n userId?: string;\n };\n reads: {\n cid: string;\n lastRead: string;\n unreadMessages?: number;\n userId?: string;\n };\n users: {\n id: string;\n banned?: boolean;\n createdAt?: string;\n extraData?: string;\n lastActive?: string;\n online?: boolean;\n role?: string;\n updatedAt?: string;\n };\n userSyncStatus: {\n appSettings: string;\n lastSyncedAt: string;\n userId: string;\n };\n};\n"],"mappings":";;;;AA2BO,IAAMA,MAAc,GAAG;EAC5BC,cAAc,EAAE;IACdC,OAAO,EAAE;MACPC,IAAI,EAAE,MAAM;MACZC,EAAE,EAAE;IACN,CAAC;IACDC,UAAU,EAAE,CAAC,IAAI;EACnB,CAAC;EACDC,QAAQ,EAAE;IACRJ,OAAO,EAAE;MACPK,sBAAsB,EAAE,SAAS;MACjCC,uBAAuB,EAAE,MAAM;MAC/BC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,MAAM;MACdC,QAAQ,EAAE,SAAS;MACnBC,SAAS,EAAE,MAAM;MACjBC,WAAW,EAAE,MAAM;MACnBC,SAAS,EAAE,MAAM;MACjBC,QAAQ,EAAE,uBAAuB;MACjCC,SAAS,EAAE,MAAM;MACjBC,MAAM,EAAE,SAAS;MACjBC,MAAM,EAAE,SAAS;MACjBd,EAAE,EAAE,MAAM;MACVe,OAAO,EAAE,MAAM;MACfC,aAAa,EAAE,MAAM;MACrBC,WAAW,EAAE,SAAS;MACtBC,KAAK,EAAE,uBAAuB;MAC9BC,eAAe,EAAE,MAAM;MACvBC,IAAI,EAAE,MAAM;MACZC,WAAW,EAAE,MAAM;MACnBC,WAAW,EAAE,MAAM;MACnBC,aAAa,EAAE,MAAM;MACrBC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE;IACb,CAAC;IACDxB,UAAU,EAAE,CAAC,KAAK;EACpB,CAAC;EACDyB,OAAO,EAAE;IACP5B,OAAO,EAAE;MACP6B,MAAM,EAAE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,MAAM,EAAE,uBAAuB;MAC/BnB,SAAS,EAAE,MAAM;MACjBI,SAAS,EAAE,MAAM;MACjBZ,EAAE,EAAE,MAAM;MACV2D,UAAU,EAAE,MAAM;MAClBC,MAAM,EAAE,SAAS;MACjB3B,IAAI,EAAE,MAAM;MACZR,SAAS,EAAE;IACb,CAAC;IACDgB,OAAO,EAAE,CACP;MACE3C,OAAO,EAAE,CAAC,IAAI,CAAC;MACf4C,IAAI,EAAE,gBAAgB;MACtBC,MAAM,EAAE;IACV,CAAC,CACF;IACD1C,UAAU,EAAE,CAAC,IAAI;EACnB,CAAC;EACD4D,cAAc,EAAE;IACd/D,OAAO,EAAE;MACPgE,WAAW,EAAE,MAAM;MACnBC,YAAY,EAAE,MAAM;MACpB5B,MAAM,EAAE;IACV,CAAC;IACDlC,UAAU,EAAE,CAAC,QAAQ;EACvB;AACF,CAAC;AAAC+D,OAAA,CAAApE,MAAA,GAAAA,MAAA"}
1
+ {"version":3,"names":["tables","channelQueries","columns","cids","id","primaryKey","channels","autoTranslationEnabled","autoTranslationLanguage","cid","config","cooldown","createdAt","createdById","deletedAt","disabled","extraData","frozen","hidden","invites","lastMessageAt","memberCount","muted","ownCapabilities","team","truncatedAt","truncatedBy","truncatedById","type","updatedAt","members","banned","channelRole","inviteAcceptedAt","invited","inviteRejectedAt","isModerator","role","shadowBanned","userId","foreignKeys","column","onDeleteAction","referenceTable","referenceTableColumn","indexes","name","unique","messages","attachments","reactionCounts","text","pendingTasks","channelId","channelType","messageId","payload","reactions","score","reads","lastRead","unreadMessages","users","lastActive","online","userSyncStatus","appSettings","lastSyncedAt","exports"],"sourceRoot":"../../../src","sources":["store/schema.ts"],"mappings":";;;;AA2BO,IAAMA,MAAc,GAAG;EAC5BC,cAAc,EAAE;IACdC,OAAO,EAAE;MACPC,IAAI,EAAE,MAAM;MACZC,EAAE,EAAE;IACN,CAAC;IACDC,UAAU,EAAE,CAAC,IAAI;EACnB,CAAC;EACDC,QAAQ,EAAE;IACRJ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UAAU,EAAE,CAAC,QAAQ;EACvB;AACF,CAAC;AAAC+D,OAAA,CAAApE,MAAA,GAAAA,MAAA","ignoreList":[]}
@@ -8,12 +8,12 @@ var appendOrderByClause = function appendOrderByClause(selectQuery, orderBy) {
8
8
  for (var key in orderBy) {
9
9
  var order = orderBy[key];
10
10
  if (order === undefined) continue;
11
- orderByClause.push(key + " " + (order === 1 ? 'ASC' : 'DESC'));
11
+ orderByClause.push("".concat(key, " ").concat(order === 1 ? 'ASC' : 'DESC'));
12
12
  }
13
13
  if (!orderByClause.length) {
14
14
  return [selectQuery, []];
15
15
  }
16
- return [selectQuery + " ORDER BY " + orderByClause.join(', ')];
16
+ return ["".concat(selectQuery, " ORDER BY ").concat(orderByClause.join(', '))];
17
17
  };
18
18
  exports.appendOrderByClause = appendOrderByClause;
19
19
  //# sourceMappingURL=appendOrderByClause.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["appendOrderByClause","selectQuery","orderBy","orderByClause","key","order","undefined","push","length","join","exports"],"sources":["appendOrderByClause.ts"],"sourcesContent":["import type { Schema } from '../schema';\nimport type { PreparedQueries, TableColumnNames } from '../types';\n\nexport const appendOrderByClause = <T extends keyof Schema>(\n selectQuery: string,\n orderBy?: Partial<{ [k in TableColumnNames<T>]: 1 | -1 }>,\n): PreparedQueries => {\n if (!orderBy) return [selectQuery, []];\n\n const orderByClause = [];\n\n for (const key in orderBy) {\n const order = orderBy[key];\n if (order === undefined) continue;\n\n orderByClause.push(`${key} ${order === 1 ? 'ASC' : 'DESC'}`);\n }\n\n if (!orderByClause.length) {\n return [selectQuery, []];\n }\n\n return [`${selectQuery} ORDER BY ${orderByClause.join(', ')}`];\n};\n"],"mappings":";;;;AAGO,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAC9BC,WAAmB,EACnBC,OAAyD,EACrC;EACpB,IAAI,CAACA,OAAO,EAAE,OAAO,CAACD,WAAW,EAAE,EAAE,CAAC;EAEtC,IAAME,aAAa,GAAG,EAAE;EAExB,KAAK,IAAMC,GAAG,IAAIF,OAAO,EAAE;IACzB,IAAMG,KAAK,GAAGH,OAAO,CAACE,GAAG,CAAC;IAC1B,IAAIC,KAAK,KAAKC,SAAS,EAAE;IAEzBH,aAAa,CAACI,IAAI,CAAIH,GAAG,UAAIC,KAAK,KAAK,CAAC,GAAG,KAAK,GAAG,MAAM,CAAE,CAAC;EAC9D;EAEA,IAAI,CAACF,aAAa,CAACK,MAAM,EAAE;IACzB,OAAO,CAACP,WAAW,EAAE,EAAE,CAAC;EAC1B;EAEA,OAAO,CAAIA,WAAW,kBAAaE,aAAa,CAACM,IAAI,CAAC,IAAI,CAAC,CAAG;AAChE,CAAC;AAACC,OAAA,CAAAV,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"names":["appendOrderByClause","selectQuery","orderBy","orderByClause","key","order","undefined","push","concat","length","join","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/appendOrderByClause.ts"],"mappings":";;;;AAGO,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAC9BC,WAAmB,EACnBC,OAAyD,EACrC;EACpB,IAAI,CAACA,OAAO,EAAE,OAAO,CAACD,WAAW,EAAE,EAAE,CAAC;EAEtC,IAAME,aAAa,GAAG,EAAE;EAExB,KAAK,IAAMC,GAAG,IAAIF,OAAO,EAAE;IACzB,IAAMG,KAAK,GAAGH,OAAO,CAACE,GAAG,CAAC;IAC1B,IAAIC,KAAK,KAAKC,SAAS,EAAE;IAEzBH,aAAa,CAACI,IAAI,IAAAC,MAAA,CAAIJ,GAAG,OAAAI,MAAA,CAAIH,KAAK,KAAK,CAAC,GAAG,KAAK,GAAG,MAAM,CAAE,CAAC;EAC9D;EAEA,IAAI,CAACF,aAAa,CAACM,MAAM,EAAE;IACzB,OAAO,CAACR,WAAW,EAAE,EAAE,CAAC;EAC1B;EAEA,OAAO,IAAAO,MAAA,CAAIP,WAAW,gBAAAO,MAAA,CAAaL,aAAa,CAACO,IAAI,CAAC,IAAI,CAAC,EAAG;AAChE,CAAC;AAACC,OAAA,CAAAX,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -13,17 +13,17 @@ var appendWhereClause = function appendWhereClause(selectQuery, whereCondition)
13
13
  if (value === undefined) continue;
14
14
  if (Array.isArray(value)) {
15
15
  var questionMarks = Array(Object.keys(value).length).fill('?').join(',');
16
- whereClause.push(key + " in (" + questionMarks + ")");
16
+ whereClause.push("".concat(key, " in (").concat(questionMarks, ")"));
17
17
  whereParams.push.apply(whereParams, (0, _toConsumableArray2["default"])(value));
18
18
  } else {
19
- whereClause.push(key + " = ?");
19
+ whereClause.push("".concat(key, " = ?"));
20
20
  whereParams.push(value);
21
21
  }
22
22
  }
23
23
  if (!whereParams.length && !whereClause.length) {
24
24
  return [selectQuery, []];
25
25
  }
26
- return [selectQuery + " WHERE " + whereClause.join(' AND '), whereParams];
26
+ return ["".concat(selectQuery, " WHERE ").concat(whereClause.join(' AND ')), whereParams];
27
27
  };
28
28
  exports.appendWhereClause = appendWhereClause;
29
29
  //# sourceMappingURL=appendWhereCluase.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["appendWhereClause","selectQuery","whereCondition","whereClause","whereParams","key","value","undefined","Array","isArray","questionMarks","Object","keys","length","fill","join","push","apply","_toConsumableArray2","exports"],"sources":["appendWhereCluase.ts"],"sourcesContent":["import type { Schema } from '../schema';\nimport type { PreparedQueries, TableColumnNames, TableColumnValue } from '../types';\n\nexport const appendWhereClause = <T extends keyof Schema>(\n selectQuery: string,\n whereCondition?: Partial<{ [k in TableColumnNames<T>]: TableColumnValue | TableColumnValue[] }>,\n): PreparedQueries => {\n if (!whereCondition) return [selectQuery, []];\n\n const whereClause = [];\n const whereParams: TableColumnValue[] = [];\n\n for (const key in whereCondition) {\n const value = whereCondition[key];\n if (value === undefined) continue;\n\n if (Array.isArray(value)) {\n const questionMarks = Array(Object.keys(value).length).fill('?').join(',');\n whereClause.push(`${key} in (${questionMarks})`);\n whereParams.push(...value);\n } else {\n whereClause.push(`${key} = ?`);\n whereParams.push(value);\n }\n }\n\n if (!whereParams.length && !whereClause.length) {\n return [selectQuery, []];\n }\n\n return [`${selectQuery} WHERE ${whereClause.join(' AND ')}`, whereParams];\n};\n"],"mappings":";;;;;;AAGO,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,WAAmB,EACnBC,cAA+F,EAC3E;EACpB,IAAI,CAACA,cAAc,EAAE,OAAO,CAACD,WAAW,EAAE,EAAE,CAAC;EAE7C,IAAME,WAAW,GAAG,EAAE;EACtB,IAAMC,WAA+B,GAAG,EAAE;EAE1C,KAAK,IAAMC,GAAG,IAAIH,cAAc,EAAE;IAChC,IAAMI,KAAK,GAAGJ,cAAc,CAACG,GAAG,CAAC;IACjC,IAAIC,KAAK,KAAKC,SAAS,EAAE;IAEzB,IAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;MACxB,IAAMI,aAAa,GAAGF,KAAK,CAACG,MAAM,CAACC,IAAI,CAACN,KAAK,CAAC,CAACO,MAAM,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;MAC1EZ,WAAW,CAACa,IAAI,CAAIX,GAAG,aAAQK,aAAa,MAAG,CAAC;MAChDN,WAAW,CAACY,IAAI,CAAAC,KAAA,CAAhBb,WAAW,MAAAc,mBAAA,aAASZ,KAAK,EAAC;IAC5B,CAAC,MAAM;MACLH,WAAW,CAACa,IAAI,CAAIX,GAAG,SAAM,CAAC;MAC9BD,WAAW,CAACY,IAAI,CAACV,KAAK,CAAC;IACzB;EACF;EAEA,IAAI,CAACF,WAAW,CAACS,MAAM,IAAI,CAACV,WAAW,CAACU,MAAM,EAAE;IAC9C,OAAO,CAACZ,WAAW,EAAE,EAAE,CAAC;EAC1B;EAEA,OAAO,CAAIA,WAAW,eAAUE,WAAW,CAACY,IAAI,CAAC,OAAO,CAAC,EAAIX,WAAW,CAAC;AAC3E,CAAC;AAACe,OAAA,CAAAnB,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["appendWhereClause","selectQuery","whereCondition","whereClause","whereParams","key","value","undefined","Array","isArray","questionMarks","Object","keys","length","fill","join","push","concat","apply","_toConsumableArray2","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/appendWhereCluase.ts"],"mappings":";;;;;;AAGO,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,WAAmB,EACnBC,cAA+F,EAC3E;EACpB,IAAI,CAACA,cAAc,EAAE,OAAO,CAACD,WAAW,EAAE,EAAE,CAAC;EAE7C,IAAME,WAAW,GAAG,EAAE;EACtB,IAAMC,WAA+B,GAAG,EAAE;EAE1C,KAAK,IAAMC,GAAG,IAAIH,cAAc,EAAE;IAChC,IAAMI,KAAK,GAAGJ,cAAc,CAACG,GAAG,CAAC;IACjC,IAAIC,KAAK,KAAKC,SAAS,EAAE;IAEzB,IAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;MACxB,IAAMI,aAAa,GAAGF,KAAK,CAACG,MAAM,CAACC,IAAI,CAACN,KAAK,CAAC,CAACO,MAAM,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;MAC1EZ,WAAW,CAACa,IAAI,IAAAC,MAAA,CAAIZ,GAAG,WAAAY,MAAA,CAAQP,aAAa,MAAG,CAAC;MAChDN,WAAW,CAACY,IAAI,CAAAE,KAAA,CAAhBd,WAAW,MAAAe,mBAAA,aAASb,KAAK,EAAC;IAC5B,CAAC,MAAM;MACLH,WAAW,CAACa,IAAI,IAAAC,MAAA,CAAIZ,GAAG,SAAM,CAAC;MAC9BD,WAAW,CAACY,IAAI,CAACV,KAAK,CAAC;IACzB;EACF;EAEA,IAAI,CAACF,WAAW,CAACS,MAAM,IAAI,CAACV,WAAW,CAACU,MAAM,EAAE;IAC9C,OAAO,CAACZ,WAAW,EAAE,EAAE,CAAC;EAC1B;EAEA,OAAO,IAAAgB,MAAA,CAAIhB,WAAW,aAAAgB,MAAA,CAAUd,WAAW,CAACY,IAAI,CAAC,OAAO,CAAC,GAAIX,WAAW,CAAC;AAC3E,CAAC;AAACgB,OAAA,CAAApB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -12,16 +12,16 @@ var createCreateTableQuery = function createCreateTableQuery(tableName) {
12
12
  var _entry = (0, _slicedToArray2["default"])(entry, 2),
13
13
  key = _entry[0],
14
14
  value = _entry[1];
15
- return key + " " + value;
15
+ return "".concat(key, " ").concat(value);
16
16
  });
17
- var primaryKeyConstraints = (_schema.tables[tableName].primaryKey || []).length > 0 ? ["PRIMARY KEY (" + (_schema.tables[tableName].primaryKey || []).join(', ') + ")"] : [];
17
+ var primaryKeyConstraints = (_schema.tables[tableName].primaryKey || []).length > 0 ? ["PRIMARY KEY (".concat((_schema.tables[tableName].primaryKey || []).join(', '), ")")] : [];
18
18
  var foreignKeysConstraints = ((_tables$tableName$for = _schema.tables[tableName].foreignKeys) == null ? void 0 : _tables$tableName$for.map(function (k) {
19
- return "FOREIGN KEY (" + k.column + ") REFERENCES " + k.referenceTable + "(" + k.referenceTableColumn + ") ON DELETE " + (k.onDeleteAction || 'NO ACTION');
19
+ return "FOREIGN KEY (".concat(k.column, ") REFERENCES ").concat(k.referenceTable, "(").concat(k.referenceTableColumn, ") ON DELETE ").concat(k.onDeleteAction || 'NO ACTION');
20
20
  })) || [];
21
21
  var indexQueries = ((_tables$tableName$ind = _schema.tables[tableName].indexes) == null ? void 0 : _tables$tableName$ind.map(function (index) {
22
- return ["CREATE " + (index.unique ? 'UNIQUE' : '') + " INDEX IF NOT EXISTS " + index.name + " ON " + tableName + "(" + index.columns.join(',') + ")"];
22
+ return ["CREATE ".concat(index.unique ? 'UNIQUE' : '', " INDEX IF NOT EXISTS ").concat(index.name, " ON ").concat(tableName, "(").concat(index.columns.join(','), ")")];
23
23
  })) || [];
24
- return [["CREATE TABLE IF NOT EXISTS " + tableName + "(\n " + [].concat((0, _toConsumableArray2["default"])(columnsWithDescriptors), primaryKeyConstraints, (0, _toConsumableArray2["default"])(foreignKeysConstraints)).join(',\n') + "\n );"]].concat((0, _toConsumableArray2["default"])(indexQueries));
24
+ return [["CREATE TABLE IF NOT EXISTS ".concat(tableName, "(\n ").concat([].concat((0, _toConsumableArray2["default"])(columnsWithDescriptors), primaryKeyConstraints, (0, _toConsumableArray2["default"])(foreignKeysConstraints)).join(',\n'), "\n );")]].concat((0, _toConsumableArray2["default"])(indexQueries));
25
25
  };
26
26
  exports.createCreateTableQuery = createCreateTableQuery;
27
27
  //# sourceMappingURL=createCreateTableQuery.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_schema","require","createCreateTableQuery","tableName","_tables$tableName$for","_tables$tableName$ind","columnsWithDescriptors","Object","entries","tables","columns","map","entry","_entry","_slicedToArray2","key","value","primaryKeyConstraints","primaryKey","length","join","foreignKeysConstraints","foreignKeys","k","column","referenceTable","referenceTableColumn","onDeleteAction","indexQueries","indexes","index","unique","name","concat","_toConsumableArray2","exports"],"sources":["createCreateTableQuery.ts"],"sourcesContent":["import { tables } from '../schema';\nimport type { PreparedQueries, Table } from '../types';\n\nexport const createCreateTableQuery = (tableName: Table): PreparedQueries[] => {\n const columnsWithDescriptors = Object.entries(tables[tableName].columns).map((entry) => {\n const [key, value] = entry;\n return `${key} ${value}`;\n });\n\n const primaryKeyConstraints =\n (tables[tableName].primaryKey || []).length > 0\n ? [`PRIMARY KEY (${(tables[tableName].primaryKey || []).join(', ')})`]\n : [];\n const foreignKeysConstraints =\n tables[tableName].foreignKeys?.map(\n (k) =>\n `FOREIGN KEY (${k.column}) REFERENCES ${k.referenceTable}(${\n k.referenceTableColumn\n }) ON DELETE ${k.onDeleteAction || 'NO ACTION'}`,\n ) || [];\n\n const indexQueries: PreparedQueries[] =\n tables[tableName].indexes?.map((index) => [\n `CREATE ${index.unique ? 'UNIQUE' : ''} INDEX IF NOT EXISTS ${\n index.name\n } ON ${tableName}(${index.columns.join(',')})`,\n ]) || [];\n\n return [\n [\n `CREATE TABLE IF NOT EXISTS ${tableName}(\n ${[...columnsWithDescriptors, ...primaryKeyConstraints, ...foreignKeysConstraints].join(\n ',\\n',\n )}\n );`,\n ],\n ...indexQueries,\n ];\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGO,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAIC,SAAgB,EAAwB;EAAA,IAAAC,qBAAA,EAAAC,qBAAA;EAC7E,IAAMC,sBAAsB,GAAGC,MAAM,CAACC,OAAO,CAACC,cAAM,CAACN,SAAS,CAAC,CAACO,OAAO,CAAC,CAACC,GAAG,CAAC,UAACC,KAAK,EAAK;IACtF,IAAAC,MAAA,OAAAC,eAAA,aAAqBF,KAAK;MAAnBG,GAAG,GAAAF,MAAA;MAAEG,KAAK,GAAAH,MAAA;IACjB,OAAUE,GAAG,SAAIC,KAAK;EACxB,CAAC,CAAC;EAEF,IAAMC,qBAAqB,GACzB,CAACR,cAAM,CAACN,SAAS,CAAC,CAACe,UAAU,IAAI,EAAE,EAAEC,MAAM,GAAG,CAAC,GAC3C,mBAAiB,CAACV,cAAM,CAACN,SAAS,CAAC,CAACe,UAAU,IAAI,EAAE,EAAEE,IAAI,CAAC,IAAI,CAAC,OAAI,GACpE,EAAE;EACR,IAAMC,sBAAsB,GAC1B,EAAAjB,qBAAA,GAAAK,cAAM,CAACN,SAAS,CAAC,CAACmB,WAAW,qBAA7BlB,qBAAA,CAA+BO,GAAG,CAChC,UAACY,CAAC;IAAA,yBACgBA,CAAC,CAACC,MAAM,qBAAgBD,CAAC,CAACE,cAAc,SACtDF,CAAC,CAACG,oBAAoB,qBACTH,CAAC,CAACI,cAAc,IAAI,WAAW;EAAA,CAClD,CAAC,KAAI,EAAE;EAET,IAAMC,YAA+B,GACnC,EAAAvB,qBAAA,GAAAI,cAAM,CAACN,SAAS,CAAC,CAAC0B,OAAO,qBAAzBxB,qBAAA,CAA2BM,GAAG,CAAC,UAACmB,KAAK;IAAA,OAAK,cAC9BA,KAAK,CAACC,MAAM,GAAG,QAAQ,GAAG,EAAE,8BACpCD,KAAK,CAACE,IAAI,YACL7B,SAAS,SAAI2B,KAAK,CAACpB,OAAO,CAACU,IAAI,CAAC,GAAG,CAAC,OAC5C;EAAA,EAAC,KAAI,EAAE;EAEV,QACE,iCACgCjB,SAAS,qBACjC,GAAA8B,MAAA,KAAAC,mBAAA,aAAI5B,sBAAsB,GAAKW,qBAAqB,MAAAiB,mBAAA,aAAKb,sBAAsB,GAAED,IAAI,CACrF,KACF,CAAC,kBAEN,EAAAa,MAAA,KAAAC,mBAAA,aACEN,YAAY;AAEnB,CAAC;AAACO,OAAA,CAAAjC,sBAAA,GAAAA,sBAAA"}
1
+ {"version":3,"names":["_schema","require","createCreateTableQuery","tableName","_tables$tableName$for","_tables$tableName$ind","columnsWithDescriptors","Object","entries","tables","columns","map","entry","_entry","_slicedToArray2","key","value","concat","primaryKeyConstraints","primaryKey","length","join","foreignKeysConstraints","foreignKeys","k","column","referenceTable","referenceTableColumn","onDeleteAction","indexQueries","indexes","index","unique","name","_toConsumableArray2","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/createCreateTableQuery.ts"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGO,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAIC,SAAgB,EAAwB;EAAA,IAAAC,qBAAA,EAAAC,qBAAA;EAC7E,IAAMC,sBAAsB,GAAGC,MAAM,CAACC,OAAO,CAACC,cAAM,CAACN,SAAS,CAAC,CAACO,OAAO,CAAC,CAACC,GAAG,CAAC,UAACC,KAAK,EAAK;IACtF,IAAAC,MAAA,OAAAC,eAAA,aAAqBF,KAAK;MAAnBG,GAAG,GAAAF,MAAA;MAAEG,KAAK,GAAAH,MAAA;IACjB,UAAAI,MAAA,CAAUF,GAAG,OAAAE,MAAA,CAAID,KAAK;EACxB,CAAC,CAAC;EAEF,IAAME,qBA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AA,sBAAA","ignoreList":[]}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  exports.createDeleteQuery = void 0;
5
5
  var _appendWhereCluase = require("./appendWhereCluase");
6
6
  var createDeleteQuery = function createDeleteQuery(table, whereCondition) {
7
- var deleteQuery = "DELETE FROM " + table;
7
+ var deleteQuery = "DELETE FROM ".concat(table);
8
8
  return (0, _appendWhereCluase.appendWhereClause)(deleteQuery, whereCondition);
9
9
  };
10
10
  exports.createDeleteQuery = createDeleteQuery;
@@ -1 +1 @@
1
- {"version":3,"names":["_appendWhereCluase","require","createDeleteQuery","table","whereCondition","deleteQuery","appendWhereClause","exports"],"sources":["createDeleteQuery.ts"],"sourcesContent":["import { appendWhereClause } from './appendWhereCluase';\n\nimport type { Schema } from '../schema';\nimport type { PreparedQueries, TableColumnNames, TableColumnValue } from '../types';\n\n/**\n * Creates a simple delete query for sqlite.\n *\n * @param {string} table Table name\n * @param {Object} whereCondition Where condition for select query.\n * e.g., { id: 'vishal', cid: ['messaging:id1', 'messaging:id2'] }.\n * All the conditions will be joined with AND in final query.\n * @returns {string} Final select query\n */\n\nexport const createDeleteQuery = <T extends keyof Schema>(\n table: T,\n whereCondition: Partial<{ [k in TableColumnNames<T>]: TableColumnValue | TableColumnValue[] }>,\n): PreparedQueries => {\n const deleteQuery = `DELETE FROM ${table}`;\n\n return appendWhereClause(deleteQuery, whereCondition);\n};\n"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAeO,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,KAAQ,EACRC,cAA8F,EAC1E;EACpB,IAAMC,WAAW,oBAAkBF,KAAO;EAE1C,OAAO,IAAAG,oCAAiB,EAACD,WAAW,EAAED,cAAc,CAAC;AACvD,CAAC;AAACG,OAAA,CAAAL,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["_appendWhereCluase","require","createDeleteQuery","table","whereCondition","deleteQuery","concat","appendWhereClause","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/createDeleteQuery.ts"],"mappings":";;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAeO,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,KAAQ,EACRC,cAA8F,EAC1E;EACpB,IAAMC,WAAW,kBAAAC,MAAA,CAAkBH,KAAK,CAAE;EAE1C,OAAO,IAAAI,oCAAiB,EAACF,WAAW,EAAED,cAAc,CAAC;AACvD,CAAC;AAACI,OAAA,CAAAN,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -10,7 +10,7 @@ var createSelectQuery = function createSelectQuery(table) {
10
10
  var fields = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['*'];
11
11
  var whereCondition = arguments.length > 2 ? arguments[2] : undefined;
12
12
  var orderBy = arguments.length > 3 ? arguments[3] : undefined;
13
- var selectQuery = "SELECT " + fields.join(', ') + " FROM " + table;
13
+ var selectQuery = "SELECT ".concat(fields.join(', '), " FROM ").concat(table);
14
14
  var _appendWhereClause = (0, _appendWhereCluase.appendWhereClause)(selectQuery, whereCondition),
15
15
  _appendWhereClause2 = (0, _slicedToArray2["default"])(_appendWhereClause, 2),
16
16
  selectQueryWithWhere = _appendWhereClause2[0],
@@ -18,7 +18,7 @@ var createSelectQuery = function createSelectQuery(table) {
18
18
  var _appendOrderByClause = (0, _appendOrderByClause3.appendOrderByClause)(selectQueryWithWhere, orderBy),
19
19
  _appendOrderByClause2 = (0, _slicedToArray2["default"])(_appendOrderByClause, 1),
20
20
  selectQueryWithOrderBy = _appendOrderByClause2[0];
21
- return ["" + selectQueryWithOrderBy, whereParams || []];
21
+ return ["".concat(selectQueryWithOrderBy), whereParams || []];
22
22
  };
23
23
  exports.createSelectQuery = createSelectQuery;
24
24
  //# sourceMappingURL=createSelectQuery.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_appendOrderByClause3","require","_appendWhereCluase","createSelectQuery","table","fields","arguments","length","undefined","whereCondition","orderBy","selectQuery","join","_appendWhereClause","appendWhereClause","_appendWhereClause2","_slicedToArray2","selectQueryWithWhere","whereParams","_appendOrderByClause","appendOrderByClause","_appendOrderByClause2","selectQueryWithOrderBy","exports"],"sources":["createSelectQuery.ts"],"sourcesContent":["import { appendOrderByClause } from './appendOrderByClause';\nimport { appendWhereClause } from './appendWhereCluase';\n\nimport type { Schema } from '../schema';\nimport type { PreparedQueries, TableColumnNames, TableColumnValue } from '../types';\n\n/**\n * Creates a simple select query for sqlite.\n *\n * @param {string} table Table name\n * @param {Array} fields Array of columns which need to be selected e.g., ['*'] or ['id', 'name']\n * @param {Object} whereCondition Where condition for select query.\n * e.g., { id: 'vishal', cid: ['messaging:id1', 'messaging:id2'] }.\n * All the conditions will be joined with AND in final query.\n * @returns {string} Final select query\n */\nexport const createSelectQuery = <T extends keyof Schema>(\n table: T,\n fields: Array<'*'> | Array<TableColumnNames<T>> = ['*'],\n whereCondition?: Partial<{ [k in TableColumnNames<T>]: TableColumnValue | TableColumnValue[] }>,\n orderBy?: Partial<{ [k in TableColumnNames<T>]: 1 | -1 }>,\n): PreparedQueries => {\n const selectQuery = `SELECT ${fields.join(', ')} FROM ${table}`;\n const [selectQueryWithWhere, whereParams] = appendWhereClause(selectQuery, whereCondition);\n const [selectQueryWithOrderBy] = appendOrderByClause(selectQueryWithWhere, orderBy);\n\n return [`${selectQueryWithOrderBy}`, whereParams || []];\n};\n"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAeO,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,KAAQ,EAIY;EAAA,IAHpBC,MAA+C,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,GAAG,CAAC;EAAA,IACvDG,cAA+F,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAAA,IAC/FE,OAAyD,GAAAJ,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEzD,IAAMG,WAAW,eAAaN,MAAM,CAACO,IAAI,CAAC,IAAI,CAAC,cAASR,KAAO;EAC/D,IAAAS,kBAAA,GAA4C,IAAAC,oCAAiB,EAACH,WAAW,EAAEF,cAAc,CAAC;IAAAM,mBAAA,OAAAC,eAAA,aAAAH,kBAAA;IAAnFI,oBAAoB,GAAAF,mBAAA;IAAEG,WAAW,GAAAH,mBAAA;EACxC,IAAAI,oBAAA,GAAiC,IAAAC,yCAAmB,EAACH,oBAAoB,EAAEP,OAAO,CAAC;IAAAW,qBAAA,OAAAL,eAAA,aAAAG,oBAAA;IAA5EG,sBAAsB,GAAAD,qBAAA;EAE7B,OAAO,MAAIC,sBAAsB,EAAIJ,WAAW,IAAI,EAAE,CAAC;AACzD,CAAC;AAACK,OAAA,CAAApB,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["_appendOrderByClause3","require","_appendWhereCluase","createSelectQuery","table","fields","arguments","length","undefined","whereCondition","orderBy","selectQuery","concat","join","_appendWhereClause","appendWhereClause","_appendWhereClause2","_slicedToArray2","selectQueryWithWhere","whereParams","_appendOrderByClause","appendOrderByClause","_appendOrderByClause2","selectQueryWithOrderBy","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/createSelectQuery.ts"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AAeO,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,KAAQ,EAIY;EAAA,IAHpBC,MAA+C,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,GAAG,CAAC;EAAA,IACvDG,cAA+F,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAAA,IAC/FE,OAAyD,GAAAJ,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEzD,IAAMG,WAAW,aAAAC,MAAA,CAAaP,MAAM,CAACQ,IAAI,CAAC,IAAI,CAAC,YAAAD,MAAA,CAASR,KAAK,CAAE;EAC/D,IAAAU,kBAAA,GAA4C,IAAAC,oCAAiB,EAACJ,WAAW,EAAEF,cAAc,CAAC;IAAAO,mBAAA,OAAAC,eAAA,aAAAH,kBAAA;IAAnFI,oBAAoB,GAAAF,mBAAA;IAAEG,WAAW,GAAAH,mBAAA;EACxC,IAAAI,oBAAA,GAAiC,IAAAC,yCAAmB,EAACH,oBAAoB,EAAER,OAAO,CAAC;IAAAY,qBAAA,OAAAL,eAAA,aAAAG,oBAAA;IAA5EG,sBAAsB,GAAAD,qBAAA;EAE7B,OAAO,IAAAV,MAAA,CAAIW,sBAAsB,GAAIJ,WAAW,IAAI,EAAE,CAAC;AACzD,CAAC;AAACK,OAAA,CAAArB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -8,14 +8,14 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
8
8
  var _appendWhereCluase = require("./appendWhereCluase");
9
9
  var createUpdateQuery = function createUpdateQuery(table, set, whereCondition) {
10
10
  var fields = Object.keys(set).map(function (key) {
11
- return key + " = ?";
11
+ return "".concat(key, " = ?");
12
12
  });
13
- var updateQuery = "UPDATE OR IGNORE " + table + " SET " + fields.join(',');
13
+ var updateQuery = "UPDATE OR IGNORE ".concat(table, " SET ").concat(fields.join(','));
14
14
  var _appendWhereClause = (0, _appendWhereCluase.appendWhereClause)(updateQuery, whereCondition),
15
15
  _appendWhereClause2 = (0, _slicedToArray2["default"])(_appendWhereClause, 2),
16
16
  updateQueryWithWhere = _appendWhereClause2[0],
17
17
  whereParams = _appendWhereClause2[1];
18
- return ["" + updateQueryWithWhere, [].concat((0, _toConsumableArray2["default"])(Object.values(set)), (0, _toConsumableArray2["default"])(whereParams || []))];
18
+ return ["".concat(updateQueryWithWhere), [].concat((0, _toConsumableArray2["default"])(Object.values(set)), (0, _toConsumableArray2["default"])(whereParams || []))];
19
19
  };
20
20
  exports.createUpdateQuery = createUpdateQuery;
21
21
  //# sourceMappingURL=createUpdateQuery.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_appendWhereCluase","require","createUpdateQuery","table","set","whereCondition","fields","Object","keys","map","key","updateQuery","join","_appendWhereClause","appendWhereClause","_appendWhereClause2","_slicedToArray2","updateQueryWithWhere","whereParams","concat","_toConsumableArray2","values","exports"],"sources":["createUpdateQuery.ts"],"sourcesContent":["import { appendWhereClause } from './appendWhereCluase';\n\nimport type { Schema } from '../schema';\nimport type { PreparedQueries, TableColumnNames, TableColumnValue, TableRow } from '../types';\n\n/**\n * Creates a simple update query for sqlite.\n *\n * @param {string} table Table name\n * @param {Object} set Set conditions for update query.\n * @param {Object} whereCondition Where condition for select query.\n * e.g., { id: 'vishal', cid: ['messaging:id1', 'messaging:id2'] }.\n * All the conditions will be joined with AND in final query.\n * @returns {string} Final update query for sqlite\n */\nexport const createUpdateQuery = <T extends keyof Schema>(\n table: T,\n set: Partial<TableRow<T>>,\n whereCondition: Partial<{ [k in TableColumnNames<T>]: TableColumnValue | TableColumnValue[] }>,\n): PreparedQueries => {\n const fields = Object.keys(set).map((key) => `${key} = ?`);\n\n const updateQuery = `UPDATE OR IGNORE ${table} SET ${fields.join(',')}`;\n\n const [updateQueryWithWhere, whereParams] = appendWhereClause(updateQuery, whereCondition);\n\n return [`${updateQueryWithWhere}`, [...Object.values(set), ...(whereParams || [])]];\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAeO,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,KAAQ,EACRC,GAAyB,EACzBC,cAA8F,EAC1E;EACpB,IAAMC,MAAM,GAAGC,MAAM,CAACC,IAAI,CAACJ,GAAG,CAAC,CAACK,GAAG,CAAC,UAACC,GAAG;IAAA,OAAQA,GAAG;EAAA,CAAM,CAAC;EAE1D,IAAMC,WAAW,yBAAuBR,KAAK,aAAQG,MAAM,CAACM,IAAI,CAAC,GAAG,CAAG;EAEvE,IAAAC,kBAAA,GAA4C,IAAAC,oCAAiB,EAACH,WAAW,EAAEN,cAAc,CAAC;IAAAU,mBAAA,OAAAC,eAAA,aAAAH,kBAAA;IAAnFI,oBAAoB,GAAAF,mBAAA;IAAEG,WAAW,GAAAH,mBAAA;EAExC,OAAO,MAAIE,oBAAoB,KAAAE,MAAA,KAAAC,mBAAA,aAAQb,MAAM,CAACc,MAAM,CAACjB,GAAG,CAAC,OAAAgB,mBAAA,aAAMF,WAAW,IAAI,EAAE,GAAG;AACrF,CAAC;AAACI,OAAA,CAAApB,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["_appendWhereCluase","require","createUpdateQuery","table","set","whereCondition","fields","Object","keys","map","key","concat","updateQuery","join","_appendWhereClause","appendWhereClause","_appendWhereClause2","_slicedToArray2","updateQueryWithWhere","whereParams","_toConsumableArray2","values","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/createUpdateQuery.ts"],"mappings":";;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAeO,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,KAAQ,EACRC,GAAyB,EACzBC,cAA8F,EAC1E;EACpB,IAAMC,MAAM,GAAGC,MAAM,CAACC,IAAI,CAACJ,GAAG,CAAC,CAACK,GAAG,CAAC,UAACC,GAAG;IAAA,UAAAC,MAAA,CAAQD,GAAG;EAAA,CAAM,CAAC;EAE1D,IAAME,WAAW,uBAAAD,MAAA,CAAuBR,KAAK,WAAAQ,MAAA,CAAQL,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC,CAAE;EAEvE,IAAAC,kBAAA,GAA4C,IAAAC,oCAAiB,EAACH,WAAW,EAAEP,cAAc,CAAC;IAAAW,mBAAA,OAAAC,eAAA,aAAAH,kBAAA;IAAnFI,oBAAoB,GAAAF,mBAAA;IAAEG,WAAW,GAAAH,mBAAA;EAExC,OAAO,IAAAL,MAAA,CAAIO,oBAAoB,MAAAP,MAAA,KAAAS,mBAAA,aAAQb,MAAM,CAACc,MAAM,CAACjB,GAAG,CAAC,OAAAgB,mBAAA,aAAMD,WAAW,IAAI,EAAE,GAAG;AACrF,CAAC;AAACG,OAAA,CAAApB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -16,10 +16,10 @@ var createUpsertQuery = function createUpsertQuery(table, row, conflictCheckKeys
16
16
  var conflictMatchersWithoutPK = fields.filter(function (f) {
17
17
  return !conflictKeys.includes(f);
18
18
  }).map(function (f) {
19
- return f + "=excluded." + f;
19
+ return "".concat(f, "=excluded.").concat(f);
20
20
  });
21
- var conflictConstraint = conflictKeys.length > 0 ? "ON CONFLICT(" + conflictKeys.join(',') + ") DO UPDATE SET\n " + conflictMatchersWithoutPK.join(',') : '';
22
- return ["INSERT INTO " + table + " (" + fields.join(',') + ") VALUES (" + questionMarks + ") " + conflictConstraint, Object.values(filteredRow)];
21
+ var conflictConstraint = conflictKeys.length > 0 ? "ON CONFLICT(".concat(conflictKeys.join(','), ") DO UPDATE SET\n ").concat(conflictMatchersWithoutPK.join(',')) : '';
22
+ return ["INSERT INTO ".concat(table, " (").concat(fields.join(','), ") VALUES (").concat(questionMarks, ") ").concat(conflictConstraint), Object.values(filteredRow)];
23
23
  };
24
24
  exports.createUpsertQuery = createUpsertQuery;
25
25
  //# sourceMappingURL=createUpsertQuery.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_schema","require","createUpsertQuery","table","row","conflictCheckKeys","filteredRow","key","undefined","fields","Object","keys","questionMarks","Array","length","fill","join","conflictKeys","tables","primaryKey","conflictMatchersWithoutPK","filter","f","includes","map","conflictConstraint","values","exports"],"sources":["createUpsertQuery.ts"],"sourcesContent":["import { Schema, tables } from '../schema';\nimport type { PreparedQueries, TableColumnNames, TableRow } from '../types';\n\n/**\n * Creates a simple upsert query for sqlite.\n *\n * @param {string} table Table name\n * @param {Object} row Table row to insert or update.\n * @param {Array} conflictCheckKeys Custom list of columns to check conflicts for - https://www.sqlite.org/lang_UPSERT.html. By default conflicts are checked on primary keys.\n * @returns {string} Final upsert query for sqlite\n */\nexport const createUpsertQuery = <T extends keyof Schema>(\n table: T,\n row: Partial<TableRow<T>>,\n conflictCheckKeys?: Array<TableColumnNames<T>>,\n): PreparedQueries => {\n const filteredRow: typeof row = {};\n\n // In case of \"DO UPDATE SET\", we only want to update the properties which\n // are provided, and not set undefined properties in database.\n // E.g., channel date such as `own_capabilities` is only available in response of client.queryChannels or channel.query.\n // But its not available in `event.channel`. And our mapper functions such as mapChannelToStorable will set fields which are not available as undefined.\n // So when you execute upsert query for storable value of `event.channel` in `channels` table, it will\n // unset ownCapabilities field for that channel in `channels` table.\n for (const key in row) {\n if (row[key] !== undefined) {\n filteredRow[key] = row[key];\n }\n }\n const fields = Object.keys(filteredRow) as (keyof typeof row)[];\n\n const questionMarks = Array(Object.keys(fields).length).fill('?').join(',');\n const conflictKeys = conflictCheckKeys || tables[table].primaryKey || [];\n const conflictMatchersWithoutPK: string[] = (fields as string[])\n .filter((f) => !(conflictKeys as string[]).includes(f))\n .map((f) => `${f}=excluded.${f}`);\n\n const conflictConstraint =\n conflictKeys.length > 0\n ? `ON CONFLICT(${conflictKeys.join(',')}) DO UPDATE SET\n ${conflictMatchersWithoutPK.join(',')}`\n : '';\n\n return [\n `INSERT INTO ${table} (${fields.join(',')}) VALUES (${questionMarks}) ${conflictConstraint}`,\n Object.values(filteredRow),\n ];\n};\n"],"mappings":";;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAWO,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,KAAQ,EACRC,GAAyB,EACzBC,iBAA8C,EAC1B;EACpB,IAAMC,WAAuB,GAAG,CAAC,CAAC;EAQlC,KAAK,IAAMC,GAAG,IAAIH,GAAG,EAAE;IACrB,IAAIA,GAAG,CAACG,GAAG,CAAC,KAAKC,SAAS,EAAE;MAC1BF,WAAW,CAACC,GAAG,CAAC,GAAGH,GAAG,CAACG,GAAG,CAAC;IAC7B;EACF;EACA,IAAME,MAAM,GAAGC,MAAM,CAACC,IAAI,CAACL,WAAW,CAAyB;EAE/D,IAAMM,aAAa,GAAGC,KAAK,CAACH,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACK,MAAM,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;EAC3E,IAAMC,YAAY,GAAGZ,iBAAiB,IAAIa,cAAM,CAACf,KAAK,CAAC,CAACgB,UAAU,IAAI,EAAE;EACxE,IAAMC,yBAAmC,GAAIX,MAAM,CAChDY,MAAM,CAAC,UAACC,CAAC;IAAA,OAAK,CAAEL,YAAY,CAAcM,QAAQ,CAACD,CAAC,CAAC;EAAA,EAAC,CACtDE,GAAG,CAAC,UAACF,CAAC;IAAA,OAAQA,CAAC,kBAAaA,CAAC;EAAA,CAAE,CAAC;EAEnC,IAAMG,kBAAkB,GACtBR,YAAY,CAACH,MAAM,GAAG,CAAC,oBACJG,YAAY,CAACD,IAAI,CAAC,GAAG,CAAC,2BACzCI,yBAAyB,CAACJ,IAAI,CAAC,GAAG,CAAC,GAC/B,EAAE;EAER,OAAO,kBACUb,KAAK,UAAKM,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC,kBAAaJ,aAAa,UAAKa,kBAAkB,EAC1Ff,MAAM,CAACgB,MAAM,CAACpB,WAAW,CAAC,CAC3B;AACH,CAAC;AAACqB,OAAA,CAAAzB,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["_schema","require","createUpsertQuery","table","row","conflictCheckKeys","filteredRow","key","undefined","fields","Object","keys","questionMarks","Array","length","fill","join","conflictKeys","tables","primaryKey","conflictMatchersWithoutPK","filter","f","includes","map","concat","conflictConstraint","values","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/createUpsertQuery.ts"],"mappings":";;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAWO,IAAMC,iBAA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AW,CAAC,CAC3B;AACH,CAAC;AAACsB,OAAA,CAAA1B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["printRow","row","prettyRow","key","value","JSON","parse","e","console","log","stringify","exports"],"sources":["printRow.ts"],"sourcesContent":["import type { TableRow } from '../types';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const printRow = (row: TableRow<any>) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const prettyRow: Record<string, any> = {};\n for (const key in row) {\n // @ts-ignore\n const value = row[key];\n\n try {\n prettyRow[key] = JSON.parse(value);\n } catch (e) {\n prettyRow[key] = value;\n }\n }\n\n console.log(JSON.stringify(prettyRow, null, 2));\n};\n"],"mappings":";;;;AAGO,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,GAAkB,EAAK;EAE9C,IAAMC,SAA8B,GAAG,CAAC,CAAC;EACzC,KAAK,IAAMC,GAAG,IAAIF,GAAG,EAAE;IAErB,IAAMG,KAAK,GAAGH,GAAG,CAACE,GAAG,CAAC;IAEtB,IAAI;MACFD,SAAS,CAACC,GAAG,CAAC,GAAGE,IAAI,CAACC,KAAK,CAACF,KAAK,CAAC;IACpC,CAAC,CAAC,OAAOG,CAAC,EAAE;MACVL,SAAS,CAACC,GAAG,CAAC,GAAGC,KAAK;IACxB;EACF;EAEAI,OAAO,CAACC,GAAG,CAACJ,IAAI,CAACK,SAAS,CAACR,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACjD,CAAC;AAACS,OAAA,CAAAX,QAAA,GAAAA,QAAA"}
1
+ {"version":3,"names":["printRow","row","prettyRow","key","value","JSON","parse","e","console","log","stringify","exports"],"sourceRoot":"../../../../src","sources":["store/sqlite-utils/printRow.ts"],"mappings":";;;;AAGO,IAAMA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,GAAkB,EAAK;EAE9C,IAAMC,SAA8B,GAAG,CAAC,CAAC;EACzC,KAAK,IAAMC,GAAG,IAAIF,GAAG,EAAE;IAErB,IAAMG,KAAK,GAAGH,GAAG,CAACE,GAAG,CAAC;IAEtB,IAAI;MACFD,SAAS,CAACC,GAAG,CAAC,GAAGE,IAAI,CAACC,KAAK,CAACF,KAAK,CAAC;IACpC,CAAC,CAAC,OAAOG,CAAC,EAAE;MACVL,SAAS,CAACC,GAAG,CAAC,GAAGC,KAAK;IACxB;EACF;EAEAI,OAAO,CAACC,GAAG,CAACJ,IAAI,CAACK,SAAS,CAACR,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACjD,CAAC;AAACS,OAAA,CAAAX,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { Channel, StreamChat } from 'stream-chat';\n\nimport type { Schema } from './schema';\n\nexport type Table = keyof Schema;\nexport type TableRow<T extends Table> = Schema[T];\nexport type TableRowJoinedUser<T extends Table> = Schema[T] & {\n user: TableRow<'users'>;\n};\n\nexport type TableColumnNames<T extends Table> = keyof Schema[T];\nexport type TableColumnValue = string | boolean | number | undefined;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type PreparedQueries = [string] | [string, Array<any>];\n\nexport type PendingTaskTypes = {\n deleteMessage: 'delete-message';\n deleteReaction: 'delete-reaction';\n sendReaction: 'send-reaction';\n};\n\nexport type PendingTask = {\n channelId: string;\n channelType: string;\n messageId: string;\n id?: number;\n} & (\n | {\n payload: Parameters<Channel['sendReaction']>;\n type: PendingTaskTypes['sendReaction'];\n }\n | {\n payload: Parameters<StreamChat['deleteMessage']>;\n type: PendingTaskTypes['deleteMessage'];\n }\n | {\n payload: Parameters<Channel['deleteReaction']>;\n type: PendingTaskTypes['deleteReaction'];\n }\n);\n"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["store/types.ts"],"mappings":"","ignoreList":[]}
@@ -28,14 +28,14 @@ BetterSqlite.dropAllTables = function () {
28
28
  BetterSqlite.openDB();
29
29
  var tableNames = Object.keys(_schema.tables);
30
30
  tableNames.forEach(function (name) {
31
- var stmt = BetterSqlite.db.prepare("DROP TABLE IF EXISTS " + name);
31
+ var stmt = BetterSqlite.db.prepare("DROP TABLE IF EXISTS ".concat(name));
32
32
  stmt.run();
33
33
  });
34
34
  BetterSqlite.closeDB();
35
35
  };
36
36
  BetterSqlite.selectFromTable = function (table) {
37
37
  BetterSqlite.openDB();
38
- var stmt = BetterSqlite.db.prepare("SELECT * FROM " + table);
38
+ var stmt = BetterSqlite.db.prepare("SELECT * FROM ".concat(table));
39
39
  var result = stmt.all();
40
40
  BetterSqlite.closeDB();
41
41
  return result;
@@ -1 +1 @@
1
- {"version":3,"names":["_betterSqlite","_interopRequireDefault","require","_schema","BetterSqlite","_createClass2","_classCallCheck2","db","exports","openDB","Database","closeDB","close","getTables","tablesInDb","pragma","dropAllTables","tableNames","Object","keys","tables","forEach","name","stmt","prepare","run","selectFromTable","table","result","all"],"sources":["BetterSqlite.js"],"sourcesContent":["import Database from 'better-sqlite3';\n\nimport { tables } from '../store/schema';\n\nexport class BetterSqlite {\n db = null;\n\n static openDB = () => {\n this.db = new Database('foobar.db');\n };\n\n static closeDB = () => {\n this.db.close();\n };\n\n static getTables = () => {\n this.openDB();\n const tablesInDb = this.db.pragma(`table_list;`);\n this.closeDB();\n\n return tablesInDb;\n };\n\n static dropAllTables = () => {\n this.openDB();\n const tableNames = Object.keys(tables);\n\n tableNames.forEach((name) => {\n const stmt = this.db.prepare(`DROP TABLE IF EXISTS ${name}`);\n stmt.run();\n });\n\n this.closeDB();\n };\n\n static selectFromTable = (table) => {\n this.openDB();\n const stmt = this.db.prepare(`SELECT * FROM ${table}`);\n const result = stmt.all();\n this.closeDB();\n\n return result;\n };\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAAyC,IAE5BE,YAAY,OAAAC,aAAA,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CAAC,CAAC;EAEd,OAAOiB,MAAM;AACf,CAAC"}
1
+ {"version":3,"names":["_betterSqlite","_interopRequireDefault","require","_schema","BetterSqlite","_createClass2","_classCallCheck2","db","exports","openDB","Database","closeDB","close","getTables","tablesInDb","pragma","dropAllTables","tableNames","Object","keys","tables","forEach","name","stmt","prepare","concat","run","selectFromTable","table","result","all"],"sourceRoot":"../../../src","sources":["test-utils/BetterSqlite.js"],"mappings":";;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAAyC,IAE5BE,YAAY,OAAAC,aAAA,sBAAAD,aAAA;EAAA,IAAAE,gBAAA,mBAAAF,YAAA;EAAA,KACvBG,EAAE,GAAG,IAAI;AAAA;AAAAC,OAAA,CAAAJ,YAAA,GAAAA,YAAA;AADEA,YAAY,CAGhBK,MAAM,GAAG,YAAM;EAHXL,YAAY,CAIhBG,EAAE,GAAG,IAAIG,wBAAQ,CAAC,WAAW,CAAC;AACrC,CAAC;AALUN,YAAY,CAOhBO,OAAO,GAAG,YAAM;EAPZP,YAAY,CAQhBG,EAAE,CAACK,KAAK,CAAC,CAAC;AACjB,CAAC;AATUR,YAAY,CAWhBS,SAAS,GAAG,YAAM;EAXdT,YAAY,CAYhBK,MAAM,CAAC,CAAC;EACb,IAAMK,UAAU,GAbPV,YAAY,CAaGG,EAAE,CAACQ,MAAM,cAAc,CAAC;EAbvCX,YAAY,CAchBO,OAAO,CAAC,CAAC;EAEd,OAAOG,UAAU;AACnB,CAAC;AAjBUV,YAAY,CAmBhBY,aAAa,GAAG,YAAM;EAnBlBZ,YAAY,CAoBhBK,MAAM,CAAC,CAAC;EACb,IAAMQ,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACC,cAAM,CAAC;EAEtCH,UAAU,CAACI,OAAO,CAAC,UAACC,IAAI,EAAK;IAC3B,IAAMC,IAAI,GAxBHnB,YAAY,CAwBDG,EAAE,CAACiB,OAAO,yBAAAC,MAAA,CAAyBH,IAAI,CAAE,CAAC;IAC5DC,IAAI,CAACG,GAAG,CAAC,CAAC;EACZ,CAAC,CAAC;EA1BOtB,YAAY,CA4BhBO,OAAO,CAAC,CAAC;AAChB,CAAC;AA7BUP,YAAY,CA+BhBuB,eAAe,GAAG,UAACC,KAAK,EAAK;EA/BzBxB,YAAY,CAgChBK,MAAM,CAAC,CAAC;EACb,IAAMc,IAAI,GAjCDnB,YAAY,CAiCHG,EAAE,CAACiB,OAAO,kBAAAC,MAAA,CAAkBG,KAAK,CAAE,CAAC;EACtD,IAAMC,MAAM,GAAGN,IAAI,CAACO,GAAG,CAAC,CAAC;EAlChB1B,YAAY,CAmChBO,OAAO,CAAC,CAAC;EAEd,OAAOkB,MAAM;AACf,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { ExtendableGenerics, LiteralStringForUnion } from 'stream-chat';\n\nimport type { FileStateValue } from '../utils/utils';\n\nexport type Asset = {\n duration: number;\n height: number;\n name: string;\n source: 'camera' | 'picker';\n type: string;\n uri: string;\n width: number;\n id?: string;\n size?: number;\n};\n\nexport type File = {\n name: string;\n duration?: number;\n id?: string;\n mimeType?: string;\n size?: number;\n // The uri should be of type `string`. But is `string|undefined` because the same type is used for the response from Stream's Attachment. This shall be fixed.\n uri?: string;\n};\n\nexport type FileUpload = {\n file: File;\n id: string;\n state: FileStateValue;\n duration?: number;\n paused?: boolean;\n progress?: number;\n thumb_url?: string;\n url?: string;\n};\n\nexport type ImageUpload = {\n file: Partial<Asset>;\n id: string;\n state: FileStateValue;\n height?: number;\n url?: string;\n width?: number;\n};\n\nexport type DefaultAttachmentType = UnknownType & {\n file_size?: number;\n mime_type?: string;\n originalFile?: File;\n originalImage?: Partial<Asset>;\n};\n\ninterface DefaultUserType extends UnknownType {\n image?: string;\n}\n\ninterface DefaultChannelType extends UnknownType {\n [key: string]: unknown;\n\n image?: string;\n}\n\nexport interface DefaultStreamChatGenerics extends ExtendableGenerics {\n attachmentType: DefaultAttachmentType;\n channelType: DefaultChannelType;\n commandType: LiteralStringForUnion;\n eventType: UnknownType;\n messageType: UnknownType;\n reactionType: UnknownType;\n userType: DefaultUserType;\n}\n\nexport type UnknownType = Record<string, unknown>;\n\nexport type ValueOf<T> = T[keyof T];\n"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/types.ts"],"mappings":"","ignoreList":[]}
@@ -15,7 +15,7 @@ var _addPendingTask = require("../store/apis/addPendingTask");
15
15
  var _deletePendingTask = require("../store/apis/deletePendingTask");
16
16
  var _getPendingTasks = require("../store/apis/getPendingTasks");
17
17
  var _QuickSqliteClient = require("../store/QuickSqliteClient");
18
- function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
19
19
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
20
20
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
21
21
  var restBeforeNextTask = function restBeforeNextTask() {
@@ -293,53 +293,66 @@ DBSyncManager.executePendingTasks = function () {
293
293
  while (1) switch (_context7.prev = _context7.next) {
294
294
  case 0:
295
295
  queue = (0, _getPendingTasks.getPendingTasks)();
296
- _iterator = _createForOfIteratorHelperLoose(queue);
297
- case 2:
298
- if ((_step = _iterator()).done) {
299
- _context7.next = 22;
296
+ _iterator = _createForOfIteratorHelper(queue);
297
+ _context7.prev = 2;
298
+ _iterator.s();
299
+ case 4:
300
+ if ((_step = _iterator.n()).done) {
301
+ _context7.next = 24;
300
302
  break;
301
303
  }
302
304
  task = _step.value;
303
305
  if (task.id) {
304
- _context7.next = 6;
306
+ _context7.next = 8;
305
307
  break;
306
308
  }
307
- return _context7.abrupt("continue", 20);
308
- case 6:
309
- _context7.prev = 6;
310
- _context7.next = 9;
309
+ return _context7.abrupt("continue", 22);
310
+ case 8:
311
+ _context7.prev = 8;
312
+ _context7.next = 11;
311
313
  return DBSyncManager.executeTask({
312
314
  client: client,
313
315
  task: task
314
316
  });
315
- case 9:
316
- _context7.next = 17;
317
- break;
318
317
  case 11:
319
- _context7.prev = 11;
320
- _context7.t0 = _context7["catch"](6);
318
+ _context7.next = 19;
319
+ break;
320
+ case 13:
321
+ _context7.prev = 13;
322
+ _context7.t0 = _context7["catch"](8);
321
323
  if (!((_context7.t0 == null ? void 0 : (_response2 = _context7.t0.response) == null ? void 0 : (_response2$data = _response2.data) == null ? void 0 : _response2$data.code) === 4)) {
322
- _context7.next = 16;
324
+ _context7.next = 18;
323
325
  break;
324
326
  }
325
- _context7.next = 17;
327
+ _context7.next = 19;
326
328
  break;
327
- case 16:
329
+ case 18:
328
330
  throw _context7.t0;
329
- case 17:
331
+ case 19:
330
332
  (0, _deletePendingTask.deletePendingTask)({
331
333
  id: task.id
332
334
  });
333
- _context7.next = 20;
335
+ _context7.next = 22;
334
336
  return restBeforeNextTask();
335
- case 20:
336
- _context7.next = 2;
337
- break;
338
337
  case 22:
338
+ _context7.next = 4;
339
+ break;
340
+ case 24:
341
+ _context7.next = 29;
342
+ break;
343
+ case 26:
344
+ _context7.prev = 26;
345
+ _context7.t1 = _context7["catch"](2);
346
+ _iterator.e(_context7.t1);
347
+ case 29:
348
+ _context7.prev = 29;
349
+ _iterator.f();
350
+ return _context7.finish(29);
351
+ case 32:
339
352
  case "end":
340
353
  return _context7.stop();
341
354
  }
342
- }, _callee7, null, [[6, 11]]);
355
+ }, _callee7, null, [[2, 26, 29, 32], [8, 13]]);
343
356
  }));
344
357
  return function (_x6) {
345
358
  return _ref9.apply(this, arguments);
@@ -347,12 +360,20 @@ DBSyncManager.executePendingTasks = function () {
347
360
  }();
348
361
  DBSyncManager.dropPendingTasks = function (conditions) {
349
362
  var tasks = (0, _getPendingTasks.getPendingTasks)(conditions);
350
- for (var _iterator2 = _createForOfIteratorHelperLoose(tasks), _step2; !(_step2 = _iterator2()).done;) {
351
- var task = _step2.value;
352
- if (!task.id) continue;
353
- (0, _deletePendingTask.deletePendingTask)({
354
- id: task.id
355
- });
363
+ var _iterator2 = _createForOfIteratorHelper(tasks),
364
+ _step2;
365
+ try {
366
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
367
+ var task = _step2.value;
368
+ if (!task.id) continue;
369
+ (0, _deletePendingTask.deletePendingTask)({
370
+ id: task.id
371
+ });
372
+ }
373
+ } catch (err) {
374
+ _iterator2.e(err);
375
+ } finally {
376
+ _iterator2.f();
356
377
  }
357
378
  };
358
379
  //# sourceMappingURL=DBSyncManager.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_dayjs","_interopRequireDefault","require","_handleEventToSyncDB","_apis","_addPendingTask","_deletePendingTask","_getPendingTasks","_QuickSqliteClient","_createForOfIteratorHelperLoose","o","allowArrayLike","it","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","i","done","value","TypeError","minLen","_arrayLikeToArray","n","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","restBeforeNextTask","Promise","resolve","setTimeout","DBSyncManager","_createClass2","_classCallCheck2","exports","syncStatus","listeners","client","getSyncStatus","init","_ref","_asyncToGenerator2","_regenerator","mark","_callee2","_client$user","_client$wsConnection","wrap","_callee2$","_context2","prev","user","id","wsConnection","isHealthy","syncAndExecutePendingTasks","forEach","l","on","_ref2","_callee","event","_callee$","_context","online","stop","_x2","apply","arguments","_x","onSyncStatusChange","listener","push","unsubscribe","filter","el","sync","_ref3","_callee3","_DBSyncManager$client","cids","lastSyncedAt","lastSyncedAtDate","lastSyncedAtDayJs","nowDayJs","diff","result","queries","_callee3$","_context3","abrupt","getAllChannelIds","getLastSyncedAt","currentUserId","Date","dayjs","QuickSqliteClient","resetDB","toISOString","sent","events","reduce","concat","handleEventToSyncDB","executeSqlBatch","t0","upsertUserSyncStatus","_x3","_callee4","_callee4$","_context4","executePendingTasks","queueTask","_ref6","_callee5","_ref5","task","removeFromApi","response","_response","_response$data","_callee5$","_context5","addPendingTask","executeTask","data","code","_x4","_ref8","_callee6","_ref7","channel","_callee6$","_context6","channelType","channelId","type","sendReaction","_toConsumableArray2","payload","deleteReaction","deleteMessage","Error","_x5","_ref9","_callee7","queue","_iterator","_step","_response2","_response2$data","_callee7$","_context7","getPendingTasks","deletePendingTask","_x6","dropPendingTasks","conditions","tasks","_iterator2","_step2"],"sources":["DBSyncManager.ts"],"sourcesContent":["import type { AxiosError } from 'axios';\nimport dayjs from 'dayjs';\nimport type { APIErrorResponse, StreamChat } from 'stream-chat';\n\nimport { handleEventToSyncDB } from '../components/Chat/hooks/handleEventToSyncDB';\nimport { getAllChannelIds, getLastSyncedAt, upsertUserSyncStatus } from '../store/apis';\n\nimport { addPendingTask } from '../store/apis/addPendingTask';\n\nimport { deletePendingTask } from '../store/apis/deletePendingTask';\nimport { getPendingTasks } from '../store/apis/getPendingTasks';\nimport { QuickSqliteClient } from '../store/QuickSqliteClient';\nimport type { PendingTask, PreparedQueries } from '../store/types';\nimport type { DefaultStreamChatGenerics } from '../types/types';\n\n/**\n * DBSyncManager has the responsibility to sync the channel states\n * within local database whenever possible.\n *\n * Components can get the current sync status using DBSyncManager.getCurrentStatus().\n * Or components can attach a listener for status change as following:\n *\n * ```tsx\n * useEffect(() => {\n * const unsubscribe = DBSyncManager.onSyncStatusChange((syncStatus) => {\n * if (syncStatus) {\n * doSomething();\n * }\n * })\n *\n * return () => unsubscribe();\n * })\n * ```\n */\nconst restBeforeNextTask = () => new Promise((resolve) => setTimeout(resolve, 500));\n\nexport class DBSyncManager {\n static syncStatus = false;\n static listeners: Array<(status: boolean) => void> = [];\n static client: StreamChat | null = null;\n\n /**\n * Returns weather channel states in local DB are synced with backend or not.\n * @returns boolean\n */\n static getSyncStatus = () => this.syncStatus;\n\n /**\n * Initializes the DBSyncManager. This function should be called only once\n * throughout the lifetime of SDK.\n *\n * @param client\n */\n static init = async (client: StreamChat) => {\n this.client = client;\n // If the websocket connection is already active, then straightaway\n // call the sync api and also execute pending api calls.\n // Otherwise wait for `connection.changed` event.\n if (client.user?.id && client.wsConnection?.isHealthy) {\n await this.syncAndExecutePendingTasks();\n this.syncStatus = true;\n this.listeners.forEach((l) => l(true));\n }\n\n this.client.on('connection.changed', async (event) => {\n if (event.online) {\n await this.syncAndExecutePendingTasks();\n this.syncStatus = true;\n this.listeners.forEach((l) => l(true));\n } else {\n this.syncStatus = false;\n this.listeners.forEach((l) => l(false));\n }\n });\n };\n\n /**\n * Subscribes a listener for sync status change.\n *\n * @param listener {function}\n * @returns {function} to unsubscribe the listener.\n */\n static onSyncStatusChange = (listener: (status: boolean) => void) => {\n this.listeners.push(listener);\n\n return {\n unsubscribe: () => {\n this.listeners = this.listeners.filter((el) => el !== listener);\n },\n };\n };\n\n static sync = async <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n >(\n client: StreamChat<StreamChatGenerics>,\n ) => {\n if (!this.client?.user) return;\n const cids = getAllChannelIds();\n // If there are no channels, then there is no need to sync.\n if (cids.length === 0) return;\n\n const lastSyncedAt = getLastSyncedAt({\n currentUserId: this.client.user.id,\n });\n\n if (lastSyncedAt) {\n const lastSyncedAtDate = new Date(lastSyncedAt);\n const lastSyncedAtDayJs = dayjs(lastSyncedAtDate);\n const nowDayJs = dayjs();\n const diff = nowDayJs.diff(lastSyncedAtDayJs, 'days');\n if (diff > 30) {\n // stream backend will send an error if we try to sync after 30 days.\n // In that case reset the entire DB and start fresh.\n QuickSqliteClient.resetDB();\n } else {\n try {\n const result = await this.client.sync(cids, lastSyncedAtDate.toISOString());\n const queries = result.events.reduce<PreparedQueries[]>((queries, event) => {\n queries = queries.concat(handleEventToSyncDB(event, client, false));\n return queries;\n }, []);\n\n if (queries.length) {\n QuickSqliteClient.executeSqlBatch(queries);\n }\n } catch (e) {\n // Error will be raised by the sync API if there are too many events.\n // In that case reset the entire DB and start fresh.\n QuickSqliteClient.resetDB();\n }\n }\n }\n upsertUserSyncStatus({\n currentUserId: this.client.user.id,\n lastSyncedAt: new Date().toString(),\n });\n };\n\n static syncAndExecutePendingTasks = async () => {\n if (!this.client) return;\n\n await this.executePendingTasks(this.client);\n await this.sync(this.client);\n };\n\n static queueTask = async <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n >({\n client,\n task,\n }: {\n client: StreamChat<StreamChatGenerics>;\n task: PendingTask;\n }) => {\n const removeFromApi = addPendingTask(task);\n\n let response;\n try {\n response = await this.executeTask<StreamChatGenerics>({ client, task });\n } catch (e) {\n if ((e as AxiosError<APIErrorResponse>)?.response?.data?.code === 4) {\n // Error code 16 - message already exists\n // ignore\n } else {\n throw e;\n }\n }\n\n removeFromApi();\n\n return response;\n };\n\n static executeTask = async <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n >({\n client,\n task,\n }: {\n client: StreamChat<StreamChatGenerics>;\n task: PendingTask;\n }) => {\n const channel = client.channel(task.channelType, task.channelId);\n\n if (task.type === 'send-reaction') {\n return await channel.sendReaction(...task.payload);\n }\n\n if (task.type === 'delete-reaction') {\n return await channel.deleteReaction(...task.payload);\n }\n\n if (task.type === 'delete-message') {\n return await client.deleteMessage(...task.payload);\n }\n\n throw new Error('Invalid task type');\n };\n\n static executePendingTasks = async <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n >(\n client: StreamChat<StreamChatGenerics>,\n ) => {\n const queue = getPendingTasks();\n for (const task of queue) {\n if (!task.id) continue;\n\n try {\n await this.executeTask<StreamChatGenerics>({\n client,\n task,\n });\n } catch (e) {\n if ((e as AxiosError<APIErrorResponse>)?.response?.data?.code === 4) {\n // Error code 16 - message already exists\n // ignore\n } else {\n throw e;\n }\n }\n\n deletePendingTask({\n id: task.id,\n });\n await restBeforeNextTask();\n }\n };\n\n static dropPendingTasks = (conditions: { messageId: string }) => {\n const tasks = getPendingTasks(conditions);\n\n for (const task of tasks) {\n if (!task.id) continue;\n\n deletePendingTask({\n id: task.id,\n });\n }\n };\n}\n"],"mappings":";;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAEA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN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A,CAA+CxB,IAAI,qBAAnDyB,eAAA,CAAqDxB,IAAI,MAAK,CAAC;YAAA0B,SAAA,CAAArJ,IAAA;YAAA;UAAA;UAAAqJ,SAAA,CAAArJ,IAAA;UAAA;QAAA;UAAA,MAAAqJ,SAAA,CAAA/C,EAAA;QAAA;UAQrE,IAAAiD,oCAAiB,EAAC;YAChBtG,EAAE,EAAEgE,IAAI,CAAChE;UACX,CAAC,CAAC;UAACoG,SAAA,CAAArJ,IAAA;UAAA,OACGwB,kBAAkB,CAAC,CAAC;QAAA;UAAA6H,SAAA,CAAArJ,IAAA;UAAA;QAAA;QAAA;UAAA,OAAAqJ,SAAA,CAAAvF,IAAA;MAAA;IAAA,GAAAgF,QAAA;EAAA,CAE7B;EAAA,iBAAAU,GAAA;IAAA,OAAAX,KAAA,CAAA7E,KAAA,OAAAC,SAAA;EAAA;AAAA;AAhMUrC,aAAa,CAkMjB6H,gBAAgB,GAAG,UAACC,UAAiC,EAAK;EAC/D,IAAMC,KAAK,GAAG,IAAAL,gCAAe,EAACI,UAAU,CAAC;EAEzC,SAAAE,UAAA,GAAAnK,+BAAA,CAAmBkK,KAAK,GAAAE,MAAA,IAAAA,MAAA,GAAAD,UAAA,IAAArJ,IAAA,GAAE;IAAA,IAAf0G,IAAI,GAAA4C,MAAA,CAAArJ,KAAA;IACb,IAAI,CAACyG,IAAI,CAAChE,EAAE,EAAE;IAEd,IAAAsG,oCAAiB,EAAC;MAChBtG,EAAE,EAAEgE,IAAI,CAAChE;IACX,CAAC,CAAC;EACJ;AACF,CAAC"}
1
+ {"version":3,"names":["_dayjs","_interopRequireDefault","require","_handleEventToSyncDB","_apis","_addPendingTask","_deletePendingTask","_getPendingTasks","_QuickSqliteClient","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","restBeforeNextTask","Promise","resolve","setTimeout","DBSyncManager","_createClass2","_classCallCheck2","exports","syncStatus","listeners","client","getSyncStatus","init","_ref","_asyncToGenerator2","_regenerator","mark","_callee2","_client$user","_client$wsConnection","wrap","_callee2$","_context2","prev","user","id","wsConnection","isHealthy","syncAndExecutePendingTasks","forEach","l","on","_ref2","_callee","event","_callee$","_context","online","stop","_x2","apply","arguments","_x","onSyncStatusChange","listener","push","unsubscribe","filter","el","sync","_ref3","_callee3","_DBSyncManager$client","cids","lastSyncedAt","lastSyncedAtDate","lastSyncedAtDayJs","nowDayJs","diff","result","queries","_callee3$","_context3","abrupt","getAllChannelIds","getLastSyncedAt","currentUserId","Date","dayjs","QuickSqliteClient","resetDB","toISOString","sent","events","reduce","concat","handleEventToSyncDB","executeSqlBatch","t0","upsertUserSyncStatus","_x3","_callee4","_callee4$","_context4","executePendingTasks","queueTask","_ref6","_callee5","_ref5","task","removeFromApi","response","_response","_response$data","_callee5$","_context5","addPendingTask","executeTask","data","code","_x4","_ref8","_callee6","_ref7","channel","_callee6$","_context6","channelType","channelId","type","sendReaction","_toConsumableArray2","payload","deleteReaction","deleteMessage","Error","_x5","_ref9","_callee7","queue","_iterator","_step","_response2","_response2$data","_callee7$","_context7","getPendingTasks","deletePendingTask","t1","finish","_x6","dropPendingTasks","conditions","tasks","_iterator2","_step2"],"sourceRoot":"../../../src","sources":["utils/DBSyncManager.ts"],"mappings":";;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAEA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AAA+D,SAAAO,2BAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAA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7E,KAAA,OAAAC,SAAA;EAAA;AAAA;AAhMUrC,aAAa,CAkMjB+H,gBAAgB,GAAG,UAACC,UAAiC,EAAK;EAC/D,IAAMC,KAAK,GAAG,IAAAP,gCAAe,EAACM,UAAU,CAAC;EAAC,IAAAE,UAAA,GAAA9K,0BAAA,CAEvB6K,KAAK;IAAAE,MAAA;EAAA;IAAxB,KAAAD,UAAA,CAAAlK,CAAA,MAAAmK,MAAA,GAAAD,UAAA,CAAAjK,CAAA,IAAAC,IAAA,GAA0B;MAAA,IAAfmH,IAAI,GAAA8C,MAAA,CAAAhK,KAAA;MACb,IAAI,CAACkH,IAAI,CAAChE,EAAE,EAAE;MAEd,IAAAsG,oCAAiB,EAAC;QAChBtG,EAAE,EAAEgE,IAAI,CAAChE;MACX,CAAC,CAAC;IACJ;EAAC,SAAA3C,GAAA;IAAAwJ,UAAA,CAAA9J,CAAA,CAAAM,GAAA;EAAA;IAAAwJ,UAAA,CAAA5J,CAAA;EAAA;AACH,CAAC","ignoreList":[]}
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  exports.StreamChatRN = void 0;
6
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
6
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
8
7
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
8
  var DEFAULT_GLOBAL_STREAM_CONFIG = {
@@ -16,7 +15,7 @@ var StreamChatRN = function () {
16
15
  (0, _createClass2["default"])(StreamChatRN, null, [{
17
16
  key: "setConfig",
18
17
  value: function setConfig(config) {
19
- this.config = (0, _extends2["default"])({}, this.config, config);
18
+ this.config = Object.assign({}, this.config, config);
20
19
  }
21
20
  }]);
22
21
  return StreamChatRN;
@@ -1 +1 @@
1
- {"version":3,"names":["DEFAULT_GLOBAL_STREAM_CONFIG","resizableCDNHosts","StreamChatRN","_classCallCheck2","_createClass2","key","value","setConfig","config","_extends2","exports"],"sources":["StreamChatRN.ts"],"sourcesContent":["type StreamConfig = {\n resizableCDNHosts: string[];\n};\nconst DEFAULT_GLOBAL_STREAM_CONFIG = {\n resizableCDNHosts: ['.stream-io-cdn.com'],\n};\n\n/**\n * StreamChatRN - Global config for the RN Chat SDK\n * This config is used to enable/disable features and options for the SDK.\n *\n * @deprecated Use the `resizableCDNHosts` prop in the `Chat` component, instead. StreamChatRN will not be exposed starting the next major release.\n */\nexport class StreamChatRN {\n /**\n * Global config for StreamChatRN.\n */\n static config: StreamConfig = DEFAULT_GLOBAL_STREAM_CONFIG;\n /**\n * Set global config for StreamChatRN allows you to set wished CDN hosts for resizing images.\n * This function accepts an config object that will be merged with the default config.\n * @example StreamChatRN.setConfig({ resizableCDNHosts: ['my-custom-cdn.com', 'my-other-cdn.com'] });\n */\n static setConfig(config: Partial<StreamConfig>) {\n this.config = { ...this.config, ...config };\n }\n}\n"],"mappings":";;;;;;;;AAGA,IAAMA,4BAA4B,GAAG;EACnCC,iBAAiB,EAAE,CAAC,oBAAoB;AAC1C,CAAC;AAAC,IAQWC,YAAY;EAAA,SAAAA,aAAA;IAAA,IAAAC,gBAAA,mBAAAD,YAAA;EAAA;EAAA,IAAAE,aAAA,aAAAF,YAAA;IAAAG,GAAA;IAAAC,KAAA,EAUvB,SAAAC,UAAiBC,MAA6B,EAAE;MAC9C,IAAI,CAACA,MAAM,OAAAC,SAAA,iBAAQ,IAAI,CAACD,MAAM,EAAKA,MAAM,CAAE;IAC7C;EAAC;EAAA,OAAAN,YAAA;AAAA;AAAAQ,OAAA,CAAAR,YAAA,GAAAA,YAAA;AAZUA,YAAY,CAIhBM,MAAM,GAAiBR,4BAA4B"}
1
+ {"version":3,"names":["DEFAULT_GLOBAL_STREAM_CONFIG","resizableCDNHosts","StreamChatRN","_classCallCheck2","_createClass2","key","value","setConfig","config","Object","assign","exports"],"sourceRoot":"../../../src","sources":["utils/StreamChatRN.ts"],"mappings":";;;;;;;AAGA,IAAMA,4BAA4B,GAAG;EACnCC,iBAAiB,EAAE,CAAC,oBAAoB;AAC1C,CAAC;AAAC,IAQWC,YAAY;EAAA,SAAAA,aAAA;IAAA,IAAAC,gBAAA,mBAAAD,YAAA;EAAA;EAAA,IAAAE,aAAA,aAAAF,YAAA;IAAAG,GAAA;IAAAC,KAAA,EAUvB,SAAAC,UAAiBC,MAA6B,EAAE;MAC9C,IAAI,CAACA,MAAM,GAAAC,MAAA,CAAAC,MAAA,KAAQ,IAAI,CAACF,MAAM,EAAKA,MAAM,CAAE;IAC7C;EAAC;EAAA,OAAAN,YAAA;AAAA;AAAAS,OAAA,CAAAT,YAAA,GAAAA,YAAA;AAZUA,YAAY,CAIhBM,MAAM,GAAiBR,4BAA4B","ignoreList":[]}