stream-chat-react-native-core 5.15.1-beta.1 → 5.15.1

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 (685) hide show
  1. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  2. package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  4. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  6. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  7. package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
  8. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  9. package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
  10. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  11. package/lib/commonjs/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
  12. package/lib/commonjs/components/Attachment/ImageLoadingIndicator.js.map +1 -1
  13. package/lib/commonjs/components/Attachment/ImageReloadIndicator.js.map +1 -1
  14. package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
  15. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  16. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  17. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  18. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
  19. package/lib/commonjs/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
  20. package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
  21. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  22. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
  23. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
  24. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
  25. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +14 -16
  26. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  27. package/lib/commonjs/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
  28. package/lib/commonjs/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
  29. package/lib/commonjs/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
  30. package/lib/commonjs/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
  31. package/lib/commonjs/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
  32. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  33. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  34. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  35. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  36. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  37. package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
  38. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  39. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  40. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  41. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  42. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  43. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  44. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  45. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  46. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  47. package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  48. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  49. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  50. package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  51. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  52. package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  53. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  54. package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
  55. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  56. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  57. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  58. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  59. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  60. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  61. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  62. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  63. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  64. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  65. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  66. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  67. package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
  68. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  69. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  70. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  71. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  72. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  73. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  74. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  75. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  76. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  77. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  78. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  79. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  80. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  81. package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
  82. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  83. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  84. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
  85. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  86. package/lib/commonjs/components/ImageBackground.js.map +1 -1
  87. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  88. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  89. package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  90. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  91. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  92. package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  93. package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  94. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  95. package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  96. package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  97. package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
  98. package/lib/commonjs/components/Indicators/LoadingDot.js.map +1 -1
  99. package/lib/commonjs/components/Indicators/LoadingDots.js.map +1 -1
  100. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  101. package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
  102. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  103. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  104. package/lib/commonjs/components/Message/Message.js.map +1 -1
  105. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  106. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  107. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  108. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  109. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  110. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  111. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  112. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  113. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  114. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  115. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  116. package/lib/commonjs/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  117. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  118. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  119. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  120. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  121. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  122. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  123. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  124. package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -1
  125. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  126. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  127. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  128. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  129. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  130. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  131. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  132. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  133. package/lib/commonjs/components/MessageInput/UploadProgressIndicator.js.map +1 -1
  134. package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
  135. package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js.map +1 -1
  136. package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
  137. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
  138. package/lib/commonjs/components/MessageList/DateHeader.js.map +1 -1
  139. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  140. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  141. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  142. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  143. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  144. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  145. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  146. package/lib/commonjs/components/MessageList/NetworkDownIndicator.js.map +1 -1
  147. package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
  148. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  149. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  150. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  151. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  152. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  153. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  154. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  155. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  156. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  157. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  158. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  159. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  160. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  161. package/lib/commonjs/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
  162. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  163. package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
  164. package/lib/commonjs/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
  165. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  166. package/lib/commonjs/components/Spinner/Spinner.js.map +1 -1
  167. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  168. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  169. package/lib/commonjs/components/docs/data.js.map +1 -1
  170. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  171. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  172. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  173. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  174. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  175. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  176. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  177. package/lib/commonjs/contexts/debugContext/DebugContext.js.map +1 -1
  178. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  179. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  180. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  181. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  182. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  183. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  184. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  185. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
  186. package/lib/commonjs/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
  187. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  188. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  189. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  190. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  191. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  192. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  193. package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
  194. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  195. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  196. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  197. package/lib/commonjs/emoji-data/compile.js.map +1 -1
  198. package/lib/commonjs/emoji-data/index.js.map +1 -1
  199. package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
  200. package/lib/commonjs/hooks/useIsMountedRef.js.map +1 -1
  201. package/lib/commonjs/hooks/useLoadingImage.js.map +1 -1
  202. package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
  203. package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
  204. package/lib/commonjs/icons/ArrowRight.js.map +1 -1
  205. package/lib/commonjs/icons/AtMentions.js.map +1 -1
  206. package/lib/commonjs/icons/Attach.js.map +1 -1
  207. package/lib/commonjs/icons/Audio.js.map +1 -1
  208. package/lib/commonjs/icons/CSV.js.map +1 -1
  209. package/lib/commonjs/icons/Camera.js.map +1 -1
  210. package/lib/commonjs/icons/Check.js.map +1 -1
  211. package/lib/commonjs/icons/CheckAll.js.map +1 -1
  212. package/lib/commonjs/icons/CheckSend.js.map +1 -1
  213. package/lib/commonjs/icons/CircleClose.js.map +1 -1
  214. package/lib/commonjs/icons/CirclePlus.js.map +1 -1
  215. package/lib/commonjs/icons/CircleRight.js.map +1 -1
  216. package/lib/commonjs/icons/Close.js.map +1 -1
  217. package/lib/commonjs/icons/Copy.js.map +1 -1
  218. package/lib/commonjs/icons/CurveLineLeftUp.js.map +1 -1
  219. package/lib/commonjs/icons/DOC.js.map +1 -1
  220. package/lib/commonjs/icons/DOCX.js.map +1 -1
  221. package/lib/commonjs/icons/Delete.js.map +1 -1
  222. package/lib/commonjs/icons/Down.js.map +1 -1
  223. package/lib/commonjs/icons/DownloadArrow.js.map +1 -1
  224. package/lib/commonjs/icons/DownloadCloud.js.map +1 -1
  225. package/lib/commonjs/icons/Edit.js.map +1 -1
  226. package/lib/commonjs/icons/Error.js.map +1 -1
  227. package/lib/commonjs/icons/Eye.js.map +1 -1
  228. package/lib/commonjs/icons/Flag.js.map +1 -1
  229. package/lib/commonjs/icons/Folder.js.map +1 -1
  230. package/lib/commonjs/icons/GenericFile.js.map +1 -1
  231. package/lib/commonjs/icons/GiphyIcon.js.map +1 -1
  232. package/lib/commonjs/icons/Grid.js.map +1 -1
  233. package/lib/commonjs/icons/Group.js.map +1 -1
  234. package/lib/commonjs/icons/HTML.js.map +1 -1
  235. package/lib/commonjs/icons/Imgur.js.map +1 -1
  236. package/lib/commonjs/icons/LOLReaction.js.map +1 -1
  237. package/lib/commonjs/icons/Lightning.js.map +1 -1
  238. package/lib/commonjs/icons/Link.js.map +1 -1
  239. package/lib/commonjs/icons/Loading.js.map +1 -1
  240. package/lib/commonjs/icons/Logo.js.map +1 -1
  241. package/lib/commonjs/icons/LoveReaction.js.map +1 -1
  242. package/lib/commonjs/icons/MD.js.map +1 -1
  243. package/lib/commonjs/icons/MailOpen.js.map +1 -1
  244. package/lib/commonjs/icons/MenuPointHorizontal.js.map +1 -1
  245. package/lib/commonjs/icons/MenuPointVertical.js.map +1 -1
  246. package/lib/commonjs/icons/MessageFlag.js.map +1 -1
  247. package/lib/commonjs/icons/MessageIcon.js.map +1 -1
  248. package/lib/commonjs/icons/Mute.js.map +1 -1
  249. package/lib/commonjs/icons/Notification.js.map +1 -1
  250. package/lib/commonjs/icons/ODT.js.map +1 -1
  251. package/lib/commonjs/icons/PDF.js.map +1 -1
  252. package/lib/commonjs/icons/PPT.js.map +1 -1
  253. package/lib/commonjs/icons/PPTX.js.map +1 -1
  254. package/lib/commonjs/icons/Pause.js.map +1 -1
  255. package/lib/commonjs/icons/Picture.js.map +1 -1
  256. package/lib/commonjs/icons/Pin.js.map +1 -1
  257. package/lib/commonjs/icons/PinHeader.js.map +1 -1
  258. package/lib/commonjs/icons/Play.js.map +1 -1
  259. package/lib/commonjs/icons/RAR.js.map +1 -1
  260. package/lib/commonjs/icons/RTF.js.map +1 -1
  261. package/lib/commonjs/icons/Recorder.js.map +1 -1
  262. package/lib/commonjs/icons/Refresh.js.map +1 -1
  263. package/lib/commonjs/icons/SEVEN_Z.js.map +1 -1
  264. package/lib/commonjs/icons/Search.js.map +1 -1
  265. package/lib/commonjs/icons/SendRight.js.map +1 -1
  266. package/lib/commonjs/icons/SendUp.js.map +1 -1
  267. package/lib/commonjs/icons/Share.js.map +1 -1
  268. package/lib/commonjs/icons/ShareRightArrow.js.map +1 -1
  269. package/lib/commonjs/icons/Smile.js.map +1 -1
  270. package/lib/commonjs/icons/Sound.js.map +1 -1
  271. package/lib/commonjs/icons/TAR.js.map +1 -1
  272. package/lib/commonjs/icons/TXT.js.map +1 -1
  273. package/lib/commonjs/icons/ThreadReply.js.map +1 -1
  274. package/lib/commonjs/icons/ThumbsDownReaction.js.map +1 -1
  275. package/lib/commonjs/icons/ThumbsUpReaction.js.map +1 -1
  276. package/lib/commonjs/icons/Time.js.map +1 -1
  277. package/lib/commonjs/icons/Unknown.js.map +1 -1
  278. package/lib/commonjs/icons/Unpin.js.map +1 -1
  279. package/lib/commonjs/icons/User.js.map +1 -1
  280. package/lib/commonjs/icons/UserAdd.js.map +1 -1
  281. package/lib/commonjs/icons/UserAdmin.js.map +1 -1
  282. package/lib/commonjs/icons/UserDelete.js.map +1 -1
  283. package/lib/commonjs/icons/UserMinus.js.map +1 -1
  284. package/lib/commonjs/icons/Video.js.map +1 -1
  285. package/lib/commonjs/icons/Warning.js.map +1 -1
  286. package/lib/commonjs/icons/WutReaction.js.map +1 -1
  287. package/lib/commonjs/icons/XLS.js.map +1 -1
  288. package/lib/commonjs/icons/XLSX.js.map +1 -1
  289. package/lib/commonjs/icons/ZIP.js.map +1 -1
  290. package/lib/commonjs/icons/utils/base.js.map +1 -1
  291. package/lib/commonjs/init.js.map +1 -1
  292. package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
  293. package/lib/commonjs/mock-builders/api/deleteMessage.js.map +1 -1
  294. package/lib/commonjs/mock-builders/api/deleteReaction.js.map +1 -1
  295. package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
  296. package/lib/commonjs/mock-builders/api/sendReaction.js.map +1 -1
  297. package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
  298. package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
  299. package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
  300. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  301. package/lib/commonjs/mock-builders/generator/member.js.map +1 -1
  302. package/lib/commonjs/mock-builders/generator/message.js.map +1 -1
  303. package/lib/commonjs/mock-builders/generator/reaction.js.map +1 -1
  304. package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
  305. package/lib/commonjs/mock-builders/mock.js.map +1 -1
  306. package/lib/commonjs/native.js.map +1 -1
  307. package/lib/commonjs/store/QuickSqliteClient.js.map +1 -1
  308. package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
  309. package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
  310. package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
  311. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  312. package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
  313. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  314. package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
  315. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
  316. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  317. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  318. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
  319. package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
  320. package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
  321. package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
  322. package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
  323. package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
  324. package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
  325. package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +1 -1
  326. package/lib/commonjs/store/mappers/mapTaskToStorable.js.map +1 -1
  327. package/lib/commonjs/store/sqlite-utils/appendOrderByClause.js.map +1 -1
  328. package/lib/commonjs/store/sqlite-utils/appendWhereCluase.js.map +1 -1
  329. package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
  330. package/lib/commonjs/test-utils/BetterSqlite.js.map +1 -1
  331. package/lib/commonjs/types/types.js.map +1 -1
  332. package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
  333. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  334. package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
  335. package/lib/commonjs/utils/date.js.map +1 -1
  336. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
  337. package/lib/commonjs/utils/patchMessageTextCommand.js.map +1 -1
  338. package/lib/commonjs/utils/removeReactionFromLocalState.js.map +1 -1
  339. package/lib/commonjs/utils/utils.js.map +1 -1
  340. package/lib/commonjs/version.json +1 -1
  341. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  342. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  343. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  344. package/lib/module/components/Attachment/Card.js.map +1 -1
  345. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  346. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  347. package/lib/module/components/Attachment/FileIcon.js.map +1 -1
  348. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  349. package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
  350. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  351. package/lib/module/components/Attachment/ImageLoadingFailedIndicator.js.map +1 -1
  352. package/lib/module/components/Attachment/ImageLoadingIndicator.js.map +1 -1
  353. package/lib/module/components/Attachment/ImageReloadIndicator.js.map +1 -1
  354. package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
  355. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  356. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  357. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  358. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
  359. package/lib/module/components/Attachment/utils/getGalleryImageBorderRadius.js.map +1 -1
  360. package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
  361. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  362. package/lib/module/components/AttachmentPicker/components/AttachmentPickerBottomSheetHandle.js.map +1 -1
  363. package/lib/module/components/AttachmentPicker/components/AttachmentPickerError.js.map +1 -1
  364. package/lib/module/components/AttachmentPicker/components/AttachmentPickerErrorImage.js.map +1 -1
  365. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +14 -16
  366. package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
  367. package/lib/module/components/AttachmentPicker/components/AttachmentSelectionBar.js.map +1 -1
  368. package/lib/module/components/AttachmentPicker/components/CameraSelectorIcon.js.map +1 -1
  369. package/lib/module/components/AttachmentPicker/components/FileSelectorIcon.js.map +1 -1
  370. package/lib/module/components/AttachmentPicker/components/ImageOverlaySelectedComponent.js.map +1 -1
  371. package/lib/module/components/AttachmentPicker/components/ImageSelectorIcon.js.map +1 -1
  372. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  373. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  374. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  375. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  376. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  377. package/lib/module/components/Avatar/Avatar.js.map +1 -1
  378. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  379. package/lib/module/components/Channel/Channel.js.map +1 -1
  380. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  381. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  382. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  383. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  384. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  385. package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  386. package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  387. package/lib/module/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  388. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  389. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  390. package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
  391. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  392. package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
  393. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  394. package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
  395. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  396. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  397. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  398. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  399. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  400. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  401. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  402. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  403. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  404. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  405. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  406. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  407. package/lib/module/components/ChannelList/utils.js.map +1 -1
  408. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  409. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  410. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  411. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  412. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  413. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  414. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  415. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  416. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  417. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  418. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  419. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  420. package/lib/module/components/Chat/Chat.js.map +1 -1
  421. package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
  422. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  423. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  424. package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
  425. package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  426. package/lib/module/components/ImageBackground.js.map +1 -1
  427. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  428. package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
  429. package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
  430. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  431. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  432. package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  433. package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
  434. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  435. package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
  436. package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
  437. package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
  438. package/lib/module/components/Indicators/LoadingDot.js.map +1 -1
  439. package/lib/module/components/Indicators/LoadingDots.js.map +1 -1
  440. package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  441. package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
  442. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
  443. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  444. package/lib/module/components/Message/Message.js.map +1 -1
  445. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  446. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  447. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  448. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  449. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  450. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  451. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  452. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  453. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  454. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  455. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  456. package/lib/module/components/Message/MessageSimple/utils/parseLinks.js.map +1 -1
  457. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  458. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -1
  459. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  460. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  461. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  462. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  463. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  464. package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -1
  465. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  466. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  467. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  468. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  469. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  470. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  471. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
  472. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  473. package/lib/module/components/MessageInput/UploadProgressIndicator.js.map +1 -1
  474. package/lib/module/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
  475. package/lib/module/components/MessageInput/components/InputGiphySearch.js.map +1 -1
  476. package/lib/module/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
  477. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
  478. package/lib/module/components/MessageList/DateHeader.js.map +1 -1
  479. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  480. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  481. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  482. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  483. package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  484. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  485. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  486. package/lib/module/components/MessageList/NetworkDownIndicator.js.map +1 -1
  487. package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
  488. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  489. package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  490. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  491. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  492. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  493. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  494. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  495. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  496. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  497. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  498. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -1
  499. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  500. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  501. package/lib/module/components/MessageOverlay/OverlayReactionsAvatar.js.map +1 -1
  502. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -1
  503. package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
  504. package/lib/module/components/RTLComponents/WritingDirectionAwareText.js.map +1 -1
  505. package/lib/module/components/Reply/Reply.js.map +1 -1
  506. package/lib/module/components/Spinner/Spinner.js.map +1 -1
  507. package/lib/module/components/Thread/Thread.js.map +1 -1
  508. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  509. package/lib/module/components/docs/data.js.map +1 -1
  510. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -1
  511. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  512. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  513. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  514. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  515. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  516. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  517. package/lib/module/contexts/debugContext/DebugContext.js.map +1 -1
  518. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  519. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  520. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  521. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  522. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  523. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  524. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  525. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.js.map +1 -1
  526. package/lib/module/contexts/messageOverlayContext/hooks/useResettableState.test.js.map +1 -1
  527. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  528. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  529. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  530. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  531. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  532. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  533. package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
  534. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  535. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  536. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  537. package/lib/module/emoji-data/compile.js.map +1 -1
  538. package/lib/module/emoji-data/index.js.map +1 -1
  539. package/lib/module/hooks/useAppStateListener.js.map +1 -1
  540. package/lib/module/hooks/useIsMountedRef.js.map +1 -1
  541. package/lib/module/hooks/useLoadingImage.js.map +1 -1
  542. package/lib/module/hooks/useStreami18n.js.map +1 -1
  543. package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
  544. package/lib/module/icons/ArrowRight.js.map +1 -1
  545. package/lib/module/icons/AtMentions.js.map +1 -1
  546. package/lib/module/icons/Attach.js.map +1 -1
  547. package/lib/module/icons/Audio.js.map +1 -1
  548. package/lib/module/icons/CSV.js.map +1 -1
  549. package/lib/module/icons/Camera.js.map +1 -1
  550. package/lib/module/icons/Check.js.map +1 -1
  551. package/lib/module/icons/CheckAll.js.map +1 -1
  552. package/lib/module/icons/CheckSend.js.map +1 -1
  553. package/lib/module/icons/CircleClose.js.map +1 -1
  554. package/lib/module/icons/CirclePlus.js.map +1 -1
  555. package/lib/module/icons/CircleRight.js.map +1 -1
  556. package/lib/module/icons/Close.js.map +1 -1
  557. package/lib/module/icons/Copy.js.map +1 -1
  558. package/lib/module/icons/CurveLineLeftUp.js.map +1 -1
  559. package/lib/module/icons/DOC.js.map +1 -1
  560. package/lib/module/icons/DOCX.js.map +1 -1
  561. package/lib/module/icons/Delete.js.map +1 -1
  562. package/lib/module/icons/Down.js.map +1 -1
  563. package/lib/module/icons/DownloadArrow.js.map +1 -1
  564. package/lib/module/icons/DownloadCloud.js.map +1 -1
  565. package/lib/module/icons/Edit.js.map +1 -1
  566. package/lib/module/icons/Error.js.map +1 -1
  567. package/lib/module/icons/Eye.js.map +1 -1
  568. package/lib/module/icons/Flag.js.map +1 -1
  569. package/lib/module/icons/Folder.js.map +1 -1
  570. package/lib/module/icons/GenericFile.js.map +1 -1
  571. package/lib/module/icons/GiphyIcon.js.map +1 -1
  572. package/lib/module/icons/Grid.js.map +1 -1
  573. package/lib/module/icons/Group.js.map +1 -1
  574. package/lib/module/icons/HTML.js.map +1 -1
  575. package/lib/module/icons/Imgur.js.map +1 -1
  576. package/lib/module/icons/LOLReaction.js.map +1 -1
  577. package/lib/module/icons/Lightning.js.map +1 -1
  578. package/lib/module/icons/Link.js.map +1 -1
  579. package/lib/module/icons/Loading.js.map +1 -1
  580. package/lib/module/icons/Logo.js.map +1 -1
  581. package/lib/module/icons/LoveReaction.js.map +1 -1
  582. package/lib/module/icons/MD.js.map +1 -1
  583. package/lib/module/icons/MailOpen.js.map +1 -1
  584. package/lib/module/icons/MenuPointHorizontal.js.map +1 -1
  585. package/lib/module/icons/MenuPointVertical.js.map +1 -1
  586. package/lib/module/icons/MessageFlag.js.map +1 -1
  587. package/lib/module/icons/MessageIcon.js.map +1 -1
  588. package/lib/module/icons/Mute.js.map +1 -1
  589. package/lib/module/icons/Notification.js.map +1 -1
  590. package/lib/module/icons/ODT.js.map +1 -1
  591. package/lib/module/icons/PDF.js.map +1 -1
  592. package/lib/module/icons/PPT.js.map +1 -1
  593. package/lib/module/icons/PPTX.js.map +1 -1
  594. package/lib/module/icons/Pause.js.map +1 -1
  595. package/lib/module/icons/Picture.js.map +1 -1
  596. package/lib/module/icons/Pin.js.map +1 -1
  597. package/lib/module/icons/PinHeader.js.map +1 -1
  598. package/lib/module/icons/Play.js.map +1 -1
  599. package/lib/module/icons/RAR.js.map +1 -1
  600. package/lib/module/icons/RTF.js.map +1 -1
  601. package/lib/module/icons/Recorder.js.map +1 -1
  602. package/lib/module/icons/Refresh.js.map +1 -1
  603. package/lib/module/icons/SEVEN_Z.js.map +1 -1
  604. package/lib/module/icons/Search.js.map +1 -1
  605. package/lib/module/icons/SendRight.js.map +1 -1
  606. package/lib/module/icons/SendUp.js.map +1 -1
  607. package/lib/module/icons/Share.js.map +1 -1
  608. package/lib/module/icons/ShareRightArrow.js.map +1 -1
  609. package/lib/module/icons/Smile.js.map +1 -1
  610. package/lib/module/icons/Sound.js.map +1 -1
  611. package/lib/module/icons/TAR.js.map +1 -1
  612. package/lib/module/icons/TXT.js.map +1 -1
  613. package/lib/module/icons/ThreadReply.js.map +1 -1
  614. package/lib/module/icons/ThumbsDownReaction.js.map +1 -1
  615. package/lib/module/icons/ThumbsUpReaction.js.map +1 -1
  616. package/lib/module/icons/Time.js.map +1 -1
  617. package/lib/module/icons/Unknown.js.map +1 -1
  618. package/lib/module/icons/Unpin.js.map +1 -1
  619. package/lib/module/icons/User.js.map +1 -1
  620. package/lib/module/icons/UserAdd.js.map +1 -1
  621. package/lib/module/icons/UserAdmin.js.map +1 -1
  622. package/lib/module/icons/UserDelete.js.map +1 -1
  623. package/lib/module/icons/UserMinus.js.map +1 -1
  624. package/lib/module/icons/Video.js.map +1 -1
  625. package/lib/module/icons/Warning.js.map +1 -1
  626. package/lib/module/icons/WutReaction.js.map +1 -1
  627. package/lib/module/icons/XLS.js.map +1 -1
  628. package/lib/module/icons/XLSX.js.map +1 -1
  629. package/lib/module/icons/ZIP.js.map +1 -1
  630. package/lib/module/icons/utils/base.js.map +1 -1
  631. package/lib/module/init.js.map +1 -1
  632. package/lib/module/mock-builders/DB/mock.js.map +1 -1
  633. package/lib/module/mock-builders/api/deleteMessage.js.map +1 -1
  634. package/lib/module/mock-builders/api/deleteReaction.js.map +1 -1
  635. package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
  636. package/lib/module/mock-builders/api/sendReaction.js.map +1 -1
  637. package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
  638. package/lib/module/mock-builders/event/messageRead.js.map +1 -1
  639. package/lib/module/mock-builders/generator/attachment.js.map +1 -1
  640. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  641. package/lib/module/mock-builders/generator/member.js.map +1 -1
  642. package/lib/module/mock-builders/generator/message.js.map +1 -1
  643. package/lib/module/mock-builders/generator/reaction.js.map +1 -1
  644. package/lib/module/mock-builders/generator/user.js.map +1 -1
  645. package/lib/module/mock-builders/mock.js.map +1 -1
  646. package/lib/module/native.js.map +1 -1
  647. package/lib/module/store/QuickSqliteClient.js.map +1 -1
  648. package/lib/module/store/apis/deleteReactions.js.map +1 -1
  649. package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
  650. package/lib/module/store/apis/getAppSettings.js.map +1 -1
  651. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  652. package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
  653. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  654. package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
  655. package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
  656. package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  657. package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  658. package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
  659. package/lib/module/store/apis/updateMessage.js.map +1 -1
  660. package/lib/module/store/apis/updateReaction.js.map +1 -1
  661. package/lib/module/store/apis/upsertChannels.js.map +1 -1
  662. package/lib/module/store/apis/upsertMembers.js.map +1 -1
  663. package/lib/module/store/apis/upsertReads.js.map +1 -1
  664. package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
  665. package/lib/module/store/mappers/mapDateTimeToStorable.js.map +1 -1
  666. package/lib/module/store/mappers/mapTaskToStorable.js.map +1 -1
  667. package/lib/module/store/sqlite-utils/appendOrderByClause.js.map +1 -1
  668. package/lib/module/store/sqlite-utils/appendWhereCluase.js.map +1 -1
  669. package/lib/module/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
  670. package/lib/module/test-utils/BetterSqlite.js.map +1 -1
  671. package/lib/module/types/types.js.map +1 -1
  672. package/lib/module/utils/DBSyncManager.js.map +1 -1
  673. package/lib/module/utils/Streami18n.js.map +1 -1
  674. package/lib/module/utils/addReactionToLocalState.js.map +1 -1
  675. package/lib/module/utils/date.js.map +1 -1
  676. package/lib/module/utils/getResizedImageUrl.js.map +1 -1
  677. package/lib/module/utils/patchMessageTextCommand.js.map +1 -1
  678. package/lib/module/utils/removeReactionFromLocalState.js.map +1 -1
  679. package/lib/module/utils/utils.js.map +1 -1
  680. package/lib/module/version.json +1 -1
  681. package/lib/typescript/types/types.d.ts +1 -2
  682. package/package.json +1 -1
  683. package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +1 -3
  684. package/src/types/types.ts +1 -2
  685. package/src/version.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_ThreadFooterComponent","_ChannelContext","_ChatContext","_MessagesContext","_ThreadContext","_MessageInput","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ThreadWithContext","props","additionalMessageInputProps","additionalMessageListProps","_props$autoFocus","autoFocus","closeThread","_props$closeThreadOnD","closeThreadOnDismount","disabled","loadMoreThread","_props$MessageInput","MessageInput","DefaultMessageInput","MessageList","onThreadDismount","thread","useEffect","loadMoreThreadAsync","_ref","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","stop","apply","arguments","id","reply_count","createElement","Fragment","__self","__source","fileName","lineNumber","columnNumber","_extends2","FooterComponent","ThreadFooterComponent","threadList","additionalTextInputProps","editable","Thread","_useChatContext","useChatContext","client","_useChannelContext","useChannelContext","_useMessagesContext","useMessagesContext","_useThreadContext","useThreadContext","reloadThread","Error","exports"],"sources":["Thread.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\n\nimport { ThreadFooterComponent } from './components/ThreadFooterComponent';\n\nimport { useChannelContext } from '../../contexts/channelContext/ChannelContext';\nimport { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../contexts/messagesContext/MessagesContext';\nimport { ThreadContextValue, useThreadContext } from '../../contexts/threadContext/ThreadContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport {\n MessageInput as DefaultMessageInput,\n MessageInputProps,\n} from '../MessageInput/MessageInput';\nimport type { MessageListProps } from '../MessageList/MessageList';\n\ntype ThreadPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> &\n Pick<MessagesContextValue<StreamChatGenerics>, 'MessageList'> &\n Pick<\n ThreadContextValue<StreamChatGenerics>,\n 'closeThread' | 'loadMoreThread' | 'reloadThread' | 'thread'\n > & {\n /**\n * Additional props for underlying MessageInput component.\n * Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input/#props\n * */\n additionalMessageInputProps?: Partial<MessageInputProps<StreamChatGenerics>>;\n /**\n * Additional props for underlying MessageList component.\n * Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-list/#props\n * */\n additionalMessageListProps?: Partial<MessageListProps<StreamChatGenerics>>;\n /** Make input focus on mounting thread */\n autoFocus?: boolean;\n /** Closes thread on dismount, defaults to true */\n closeThreadOnDismount?: boolean;\n /** Disables the thread UI. So MessageInput and MessageList will be disabled. */\n disabled?: boolean;\n /**\n * **Customized MessageInput component to used within Thread instead of default MessageInput\n * **Available from [MessageInput](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input)**\n */\n MessageInput?: React.ComponentType<MessageInputProps<StreamChatGenerics>>;\n /**\n * Call custom function on closing thread if handling thread state elsewhere\n */\n onThreadDismount?: () => void;\n };\n\nconst ThreadWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ThreadPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n additionalMessageInputProps,\n additionalMessageListProps,\n autoFocus = true,\n closeThread,\n closeThreadOnDismount = true,\n disabled,\n loadMoreThread,\n MessageInput = DefaultMessageInput,\n MessageList,\n onThreadDismount,\n thread,\n } = props;\n\n useEffect(() => {\n const loadMoreThreadAsync = async () => {\n await loadMoreThread();\n };\n\n if (thread?.id && thread.reply_count) {\n loadMoreThreadAsync();\n }\n }, []);\n\n useEffect(\n () => () => {\n if (closeThreadOnDismount) {\n closeThread();\n }\n if (onThreadDismount) {\n onThreadDismount();\n }\n },\n [],\n );\n\n if (!thread) return null;\n\n return (\n <React.Fragment key={`thread-${thread.id}`}>\n <MessageList\n FooterComponent={ThreadFooterComponent}\n threadList\n {...additionalMessageListProps}\n />\n <MessageInput<StreamChatGenerics>\n additionalTextInputProps={{ autoFocus, editable: !disabled }}\n threadList\n {...additionalMessageInputProps}\n />\n </React.Fragment>\n );\n};\n\nexport type ThreadProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<ThreadPropsWithContext<StreamChatGenerics>>;\n\n/**\n * Thread - The Thread renders a parent message with a list of replies. Use the standard message list of the main channel's messages.\n * The thread is only used for the list of replies to a message.\n *\n * Thread is a consumer of [channel context](https://getstream.io/chat/docs/sdk/reactnative/contexts/channel-context/)\n * Underlying MessageList, MessageInput and Message components can be customized using props:\n * - additionalMessageListProps\n * - additionalMessageInputProps\n */\nexport const Thread = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ThreadProps<StreamChatGenerics>,\n) => {\n const { client } = useChatContext<StreamChatGenerics>();\n const { threadList } = useChannelContext<StreamChatGenerics>();\n const { MessageList } = useMessagesContext<StreamChatGenerics>();\n const { closeThread, loadMoreThread, reloadThread, thread } =\n useThreadContext<StreamChatGenerics>();\n\n if (thread?.id && !threadList) {\n throw new Error(\n 'Please add a threadList prop to your Channel component when rendering a thread list. Check our Channel documentation for more info: https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#threadlist',\n );\n }\n\n return (\n <ThreadWithContext<StreamChatGenerics>\n {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D,UAAA;MAAAC,YAAA;IAAA;EAAA,GAC/B,CACa;AAErB,CAAC;AAeM,IAAMO,MAAM,GAAG,SAATA,MAAMA,CAGjB9C,KAAsC,EACnC;EACH,IAAA+C,eAAA,GAAmB,IAAAC,2BAAc,GAAsB;IAA/CC,MAAM,GAAAF,eAAA,CAANE,MAAM;EACd,IAAAC,kBAAA,GAAuB,IAAAC,iCAAiB,GAAsB;IAAtDR,UAAU,GAAAO,kBAAA,CAAVP,UAAU;EAClB,IAAAS,mBAAA,GAAwB,IAAAC,mCAAkB,GAAsB;IAAxDxC,WAAW,GAAAuC,mBAAA,CAAXvC,WAAW;EACnB,IAAAyC,iBAAA,GACE,IAAAC,+BAAgB,GAAsB;IADhClD,WAAW,GAAAiD,iBAAA,CAAXjD,WAAW;IAAEI,cAAc,GAAA6C,iBAAA,CAAd7C,cAAc;IAAE+C,YAAY,GAAAF,iBAAA,CAAZE,YAAY;IAAEzC,MAAM,GAAAuC,iBAAA,CAANvC,MAAM;EAGzD,IAAIA,MAAM,YAANA,MAAM,CAAEgB,EAAE,IAAI,CAACY,UAAU,EAAE;IAC7B,MAAM,IAAIc,KAAK,CACb,wNAAwN,CACzN;EACH;EAEA,OACE3F,MAAA,YAAAmE,aAAA,CAAClC,iBAAiB,MAAAyC,SAAA;IAEdS,MAAM,EAANA,MAAM;IACN5C,WAAW,EAAXA,WAAW;IACXI,cAAc,EAAdA,cAAc;IACdI,WAAW,EAAXA,WAAW;IACX2C,YAAY,EAAZA,YAAY;IACZzC,MAAM,EAANA;EAAM,GAEJf,KAAK;IAAAmC,MAAA,EAAA5D,KAAA;IAAA6D,QAAA;MAAAC,QAAA,EAAA7D,YAAA;MAAA8D,UAAA;MAAAC,YAAA;IAAA;EAAA,GACT;AAEN,CAAC;AAACmB,OAAA,CAAAZ,MAAA,GAAAA,MAAA"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ThreadFooterComponent","_ChannelContext","_ChatContext","_MessagesContext","_ThreadContext","_MessageInput","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ThreadWithContext","props","additionalMessageInputProps","additionalMessageListProps","_props$autoFocus","autoFocus","closeThread","_props$closeThreadOnD","closeThreadOnDismount","disabled","loadMoreThread","_props$MessageInput","MessageInput","DefaultMessageInput","MessageList","onThreadDismount","thread","useEffect","loadMoreThreadAsync","_ref","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","stop","apply","arguments","id","reply_count","createElement","Fragment","__self","__source","fileName","lineNumber","columnNumber","_extends2","FooterComponent","ThreadFooterComponent","threadList","additionalTextInputProps","editable","Thread","_useChatContext","useChatContext","client","_useChannelContext","useChannelContext","_useMessagesContext","useMessagesContext","_useThreadContext","useThreadContext","reloadThread","Error","exports"],"sources":["Thread.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\n\nimport { ThreadFooterComponent } from './components/ThreadFooterComponent';\n\nimport { useChannelContext } from '../../contexts/channelContext/ChannelContext';\nimport { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../contexts/messagesContext/MessagesContext';\nimport { ThreadContextValue, useThreadContext } from '../../contexts/threadContext/ThreadContext';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport {\n MessageInput as DefaultMessageInput,\n MessageInputProps,\n} from '../MessageInput/MessageInput';\nimport type { MessageListProps } from '../MessageList/MessageList';\n\ntype ThreadPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> &\n Pick<MessagesContextValue<StreamChatGenerics>, 'MessageList'> &\n Pick<\n ThreadContextValue<StreamChatGenerics>,\n 'closeThread' | 'loadMoreThread' | 'reloadThread' | 'thread'\n > & {\n /**\n * Additional props for underlying MessageInput component.\n * Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input/#props\n * */\n additionalMessageInputProps?: Partial<MessageInputProps<StreamChatGenerics>>;\n /**\n * Additional props for underlying MessageList component.\n * Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-list/#props\n * */\n additionalMessageListProps?: Partial<MessageListProps<StreamChatGenerics>>;\n /** Make input focus on mounting thread */\n autoFocus?: boolean;\n /** Closes thread on dismount, defaults to true */\n closeThreadOnDismount?: boolean;\n /** Disables the thread UI. So MessageInput and MessageList will be disabled. */\n disabled?: boolean;\n /**\n * **Customized MessageInput component to used within Thread instead of default MessageInput\n * **Available from [MessageInput](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input)**\n */\n MessageInput?: React.ComponentType<MessageInputProps<StreamChatGenerics>>;\n /**\n * Call custom function on closing thread if handling thread state elsewhere\n */\n onThreadDismount?: () => void;\n };\n\nconst ThreadWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ThreadPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n additionalMessageInputProps,\n additionalMessageListProps,\n autoFocus = true,\n closeThread,\n closeThreadOnDismount = true,\n disabled,\n loadMoreThread,\n MessageInput = DefaultMessageInput,\n MessageList,\n onThreadDismount,\n thread,\n } = props;\n\n useEffect(() => {\n const loadMoreThreadAsync = async () => {\n await loadMoreThread();\n };\n\n if (thread?.id && thread.reply_count) {\n loadMoreThreadAsync();\n }\n }, []);\n\n useEffect(\n () => () => {\n if (closeThreadOnDismount) {\n closeThread();\n }\n if (onThreadDismount) {\n onThreadDismount();\n }\n },\n [],\n );\n\n if (!thread) return null;\n\n return (\n <React.Fragment key={`thread-${thread.id}`}>\n <MessageList\n FooterComponent={ThreadFooterComponent}\n threadList\n {...additionalMessageListProps}\n />\n <MessageInput<StreamChatGenerics>\n additionalTextInputProps={{ autoFocus, editable: !disabled }}\n threadList\n {...additionalMessageInputProps}\n />\n </React.Fragment>\n );\n};\n\nexport type ThreadProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<ThreadPropsWithContext<StreamChatGenerics>>;\n\n/**\n * Thread - The Thread renders a parent message with a list of replies. Use the standard message list of the main channel's messages.\n * The thread is only used for the list of replies to a message.\n *\n * Thread is a consumer of [channel context](https://getstream.io/chat/docs/sdk/reactnative/contexts/channel-context/)\n * Underlying MessageList, MessageInput and Message components can be customized using props:\n * - additionalMessageListProps\n * - additionalMessageInputProps\n */\nexport const Thread = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ThreadProps<StreamChatGenerics>,\n) => {\n const { client } = useChatContext<StreamChatGenerics>();\n const { threadList } = useChannelContext<StreamChatGenerics>();\n const { MessageList } = useMessagesContext<StreamChatGenerics>();\n const { closeThread, loadMoreThread, reloadThread, thread } =\n useThreadContext<StreamChatGenerics>();\n\n if (thread?.id && !threadList) {\n throw new Error(\n 'Please add a threadList prop to your Channel component when rendering a thread list. Check our Channel documentation for more info: https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#threadlist',\n );\n }\n\n return (\n <ThreadWithContext<StreamChatGenerics>\n {...{\n client,\n closeThread,\n loadMoreThread,\n MessageList,\n reloadThread,\n thread,\n }}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAIA,IAAAK,cAAA,GAAAL,OAAA;AAGA,IAAAM,aAAA,GAAAN,OAAA;AAGsC,IAAAO,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OA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C,iBAAA,GACE,IAAAC,+BAAgB,EAAqB,CAAC;IADhClD,WAAW,GAAAiD,iBAAA,CAAXjD,WAAW;IAAEI,cAAc,GAAA6C,iBAAA,CAAd7C,cAAc;IAAE+C,YAAY,GAAAF,iBAAA,CAAZE,YAAY;IAAEzC,MAAM,GAAAuC,iBAAA,CAANvC,MAAM;EAGzD,IAAIA,MAAM,YAANA,MAAM,CAAEgB,EAAE,IAAI,CAACY,UAAU,EAAE;IAC7B,MAAM,IAAIc,KAAK,CACb,wNACF,CAAC;EACH;EAEA,OACE3F,MAAA,YAAAmE,aAAA,CAAClC,iBAAiB,MAAAyC,SAAA;IAEdS,MAAM,EAANA,MAAM;IACN5C,WAAW,EAAXA,WAAW;IACXI,cAAc,EAAdA,cAAc;IACdI,WAAW,EAAXA,WAAW;IACX2C,YAAY,EAAZA,YAAY;IACZzC,MAAM,EAANA;EAAM,GAEJf,KAAK;IAAAmC,MAAA,EAAA5D,KAAA;IAAA6D,QAAA;MAAAC,QAAA,EAAA7D,YAAA;MAAA8D,UAAA;MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACmB,OAAA,CAAAZ,MAAA,GAAAA,MAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSvg","_interopRequireWildcard","_MessagesContext","_ThemeContext","_ThreadContext","_TranslationContext","_utils","_excluded","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","absolute","position","messagePadding","paddingHorizontal","newThread","alignItems","height","justifyContent","marginTop","text","fontSize","textAlign","threadHeaderContainer","marginVertical","ThreadFooterComponentWithContext","props","_newThread$height","_newThread$height2","_newThread$height3","Message","thread","_useTranslationContex","useTranslationContext","t","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","bg_gradient_end","bg_gradient_start","grey","_useTheme$theme$threa","backgroundGradientStart","backgroundGradientStop","_objectWithoutProperties2","replyCount","reply_count","createElement","View","style","testID","__self","__source","fileName","lineNumber","columnNumber","groupStyles","message","preventPress","threadList","width","vw","Rect","fill","x","y","Defs","LinearGradient","gradientUnits","id","x1","x2","y1","y2","Stop","offset","stopColor","stopOpacity","Text","color","areEqual","prevProps","nextProps","prevThread","nextThread","threadEqual","latestReactionsEqual","Array","isArray","latest_reactions","length","every","_ref","index","_nextThread$latest_re","type","MemoizedThreadFooter","React","memo","ThreadFooterComponent","_useMessagesContext","useMessagesContext","_useThreadContext","useThreadContext","exports"],"sources":["ThreadFooterComponent.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\nimport Svg, { Defs, LinearGradient, Rect, Stop } from 'react-native-svg';\n\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\nimport {\n ThreadContextValue,\n useThreadContext,\n} from '../../../contexts/threadContext/ThreadContext';\nimport { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport { vw } from '../../../utils/utils';\n\nconst styles = StyleSheet.create({\n absolute: { position: 'absolute' },\n messagePadding: {\n paddingHorizontal: 8,\n },\n newThread: {\n alignItems: 'center',\n height: 24,\n justifyContent: 'center',\n marginTop: 8,\n },\n text: {\n fontSize: 12,\n textAlign: 'center',\n },\n threadHeaderContainer: {\n marginVertical: 8,\n },\n});\n\ntype ThreadFooterComponentPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessagesContextValue<StreamChatGenerics>, 'Message'> &\n Pick<ThreadContextValue<StreamChatGenerics>, 'thread'>;\n\nconst ThreadFooterComponentWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ThreadFooterComponentPropsWithContext<StreamChatGenerics>,\n) => {\n const { Message, thread } = props;\n const { t } = useTranslationContext();\n\n const {\n theme: {\n colors: { bg_gradient_end, bg_gradient_start, grey },\n thread: {\n newThread: { backgroundGradientStart, backgroundGradientStop, text, ...newThread },\n },\n },\n } = useTheme();\n\n if (!thread) return null;\n\n const replyCount = thread.reply_count;\n\n return (\n <View style={styles.threadHeaderContainer} testID='thread-footer-component'>\n <View style={styles.messagePadding}>\n <Message groupStyles={['single']} message={thread} preventPress threadList />\n </View>\n <View style={[styles.newThread, newThread]}>\n <Svg height={newThread.height ?? 24} style={styles.absolute} width={vw(100)}>\n <Rect fill='url(#gradient)' height={newThread.height ?? 24} width={vw(100)} x={0} y={0} />\n <Defs>\n <LinearGradient\n gradientUnits='userSpaceOnUse'\n id='gradient'\n x1={0}\n x2={0}\n y1={0}\n y2={newThread.height ?? 24}\n >\n <Stop\n offset={1}\n stopColor={backgroundGradientStart || bg_gradient_end}\n stopOpacity={1}\n />\n <Stop\n offset={0}\n stopColor={backgroundGradientStop || bg_gradient_start}\n stopOpacity={1}\n />\n </LinearGradient>\n </Defs>\n </Svg>\n <Text style={[styles.text, { color: grey }, text]}>\n {replyCount === 1\n ? t('1 Reply')\n : t('{{ replyCount }} Replies', {\n replyCount,\n })}\n </Text>\n </View>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: ThreadFooterComponentPropsWithContext<StreamChatGenerics>,\n nextProps: ThreadFooterComponentPropsWithContext<StreamChatGenerics>,\n) => {\n const { thread: prevThread } = prevProps;\n const { thread: nextThread } = nextProps;\n\n const threadEqual =\n prevThread?.id === nextThread?.id &&\n prevThread?.text === nextThread?.text &&\n prevThread?.reply_count === nextThread?.reply_count;\n if (!threadEqual) return false;\n\n const latestReactionsEqual =\n prevThread &&\n nextThread &&\n Array.isArray(prevThread.latest_reactions) &&\n Array.isArray(nextThread.latest_reactions)\n ? prevThread.latest_reactions.length === nextThread.latest_reactions.length &&\n prevThread.latest_reactions.every(\n ({ type }, index) => type === nextThread.latest_reactions?.[index].type,\n )\n : prevThread?.latest_reactions === nextThread?.latest_reactions;\n if (!latestReactionsEqual) return false;\n\n return true;\n};\n\nconst MemoizedThreadFooter = React.memo(\n ThreadFooterComponentWithContext,\n areEqual,\n) as typeof ThreadFooterComponentWithContext;\n\nexport const ThreadFooterComponent = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { Message } = useMessagesContext<StreamChatGenerics>();\n const { thread } = useThreadContext<StreamChatGenerics>();\n\n return (\n <MemoizedThreadFooter\n {...{\n Message,\n thread,\n }}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAC,uBAAA,CAAAH,OAAA;AAEA,IAAAI,gBAAA,GAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAIA,IAAAO,mBAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AAA0C,IAAAS,SAAA;AAAA,IAAAC,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAc,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAA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A,EACxE,GACD,CAAAZ,UAAU,oBAAVA,UAAU,CAAEM,gBAAgB,OAAKL,UAAU,oBAAVA,UAAU,CAAEK,gBAAgB;EACnE,IAAI,CAACH,oBAAoB,EAAE,OAAO,KAAK;EAEvC,OAAO,IAAI;AACb,CAAC;AAED,IAAMU,oBAAoB,GAAGC,iBAAK,CAACC,IAAI,CACrC5E,gCAAgC,EAChC0D,QAAQ,CACkC;AAErC,IAAMmB,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAA,EAE3B;EACL,IAAAC,mBAAA,GAAoB,IAAAC,mCAAkB,GAAsB;IAApD1E,OAAO,GAAAyE,mBAAA,CAAPzE,OAAO;EACf,IAAA2E,iBAAA,GAAmB,IAAAC,+BAAgB,GAAsB;IAAjD3E,MAAM,GAAA0E,iBAAA,CAAN1E,MAAM;EAEd,OACE3D,MAAA,YAAA8E,aAAA,CAACiD,oBAAoB;IAEjBrE,OAAO,EAAPA,OAAO;IACPC,MAAM,EAANA,MAAM;IAAAuB,MAAA,EAAAtE,KAAA;IAAAuE,QAAA;MAAAC,QAAA,EAAAvE,YAAA;MAAAwE,UAAA;MAAAC,YAAA;IAAA;EAAA,EAER;AAEN,CAAC;AAACiD,OAAA,CAAAL,qBAAA,GAAAA,qBAAA"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeSvg","_interopRequireWildcard","_MessagesContext","_ThemeContext","_ThreadContext","_TranslationContext","_utils","_excluded","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","absolute","position","messagePadding","paddingHorizontal","newThread","alignItems","height","justifyContent","marginTop","text","fontSize","textAlign","threadHeaderContainer","marginVertical","ThreadFooterComponentWithContext","props","_newThread$height","_newThread$height2","_newThread$height3","Message","thread","_useTranslationContex","useTranslationContext","t","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","bg_gradient_end","bg_gradient_start","grey","_useTheme$theme$threa","backgroundGradientStart","backgroundGradientStop","_objectWithoutProperties2","replyCount","reply_count","createElement","View","style","testID","__self","__source","fileName","lineNumber","columnNumber","groupStyles","message","preventPress","threadList","width","vw","Rect","fill","x","y","Defs","LinearGradient","gradientUnits","id","x1","x2","y1","y2","Stop","offset","stopColor","stopOpacity","Text","color","areEqual","prevProps","nextProps","prevThread","nextThread","threadEqual","latestReactionsEqual","Array","isArray","latest_reactions","length","every","_ref","index","_nextThread$latest_re","type","MemoizedThreadFooter","React","memo","ThreadFooterComponent","_useMessagesContext","useMessagesContext","_useThreadContext","useThreadContext","exports"],"sources":["ThreadFooterComponent.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\nimport Svg, { Defs, LinearGradient, Rect, Stop } from 'react-native-svg';\n\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../../contexts/themeContext/ThemeContext';\nimport {\n ThreadContextValue,\n useThreadContext,\n} from '../../../contexts/threadContext/ThreadContext';\nimport { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\nimport { vw } from '../../../utils/utils';\n\nconst styles = StyleSheet.create({\n absolute: { position: 'absolute' },\n messagePadding: {\n paddingHorizontal: 8,\n },\n newThread: {\n alignItems: 'center',\n height: 24,\n justifyContent: 'center',\n marginTop: 8,\n },\n text: {\n fontSize: 12,\n textAlign: 'center',\n },\n threadHeaderContainer: {\n marginVertical: 8,\n },\n});\n\ntype ThreadFooterComponentPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessagesContextValue<StreamChatGenerics>, 'Message'> &\n Pick<ThreadContextValue<StreamChatGenerics>, 'thread'>;\n\nconst ThreadFooterComponentWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ThreadFooterComponentPropsWithContext<StreamChatGenerics>,\n) => {\n const { Message, thread } = props;\n const { t } = useTranslationContext();\n\n const {\n theme: {\n colors: { bg_gradient_end, bg_gradient_start, grey },\n thread: {\n newThread: { backgroundGradientStart, backgroundGradientStop, text, ...newThread },\n },\n },\n } = useTheme();\n\n if (!thread) return null;\n\n const replyCount = thread.reply_count;\n\n return (\n <View style={styles.threadHeaderContainer} testID='thread-footer-component'>\n <View style={styles.messagePadding}>\n <Message groupStyles={['single']} message={thread} preventPress threadList />\n </View>\n <View style={[styles.newThread, newThread]}>\n <Svg height={newThread.height ?? 24} style={styles.absolute} width={vw(100)}>\n <Rect fill='url(#gradient)' height={newThread.height ?? 24} width={vw(100)} x={0} y={0} />\n <Defs>\n <LinearGradient\n gradientUnits='userSpaceOnUse'\n id='gradient'\n x1={0}\n x2={0}\n y1={0}\n y2={newThread.height ?? 24}\n >\n <Stop\n offset={1}\n stopColor={backgroundGradientStart || bg_gradient_end}\n stopOpacity={1}\n />\n <Stop\n offset={0}\n stopColor={backgroundGradientStop || bg_gradient_start}\n stopOpacity={1}\n />\n </LinearGradient>\n </Defs>\n </Svg>\n <Text style={[styles.text, { color: grey }, text]}>\n {replyCount === 1\n ? t('1 Reply')\n : t('{{ replyCount }} Replies', {\n replyCount,\n })}\n </Text>\n </View>\n </View>\n );\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: ThreadFooterComponentPropsWithContext<StreamChatGenerics>,\n nextProps: ThreadFooterComponentPropsWithContext<StreamChatGenerics>,\n) => {\n const { thread: prevThread } = prevProps;\n const { thread: nextThread } = nextProps;\n\n const threadEqual =\n prevThread?.id === nextThread?.id &&\n prevThread?.text === nextThread?.text &&\n prevThread?.reply_count === nextThread?.reply_count;\n if (!threadEqual) return false;\n\n const latestReactionsEqual =\n prevThread &&\n nextThread &&\n Array.isArray(prevThread.latest_reactions) &&\n Array.isArray(nextThread.latest_reactions)\n ? prevThread.latest_reactions.length === nextThread.latest_reactions.length &&\n prevThread.latest_reactions.every(\n ({ type }, index) => type === nextThread.latest_reactions?.[index].type,\n )\n : prevThread?.latest_reactions === nextThread?.latest_reactions;\n if (!latestReactionsEqual) return false;\n\n return true;\n};\n\nconst MemoizedThreadFooter = React.memo(\n ThreadFooterComponentWithContext,\n areEqual,\n) as typeof ThreadFooterComponentWithContext;\n\nexport const ThreadFooterComponent = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const { Message } = useMessagesContext<StreamChatGenerics>();\n const { thread } = useThreadContext<StreamChatGenerics>();\n\n return (\n <MemoizedThreadFooter\n {...{\n Message,\n thread,\n }}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAC,uBAAA,CAAAH,OAAA;AAEA,IAAAI,gBAAA,GAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAIA,IAAAO,mBAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AAA0C,IAAAS,SAAA;AAAA,IAAAC,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAc,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,U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,CAACK,gBAAgB,qBAA3BK,qBAAA,CAA8BD,KAAK,CAAC,CAACE,IAAI;EAAA,CACzE,CAAC,GACD,CAAAZ,UAAU,oBAAVA,UAAU,CAAEM,gBAAgB,OAAKL,UAAU,oBAAVA,UAAU,CAAEK,gBAAgB;EACnE,IAAI,CAACH,oBAAoB,EAAE,OAAO,KAAK;EAEvC,OAAO,IAAI;AACb,CAAC;AAED,IAAMU,oBAAoB,GAAGC,iBAAK,CAACC,IAAI,CACrC5E,gCAAgC,EAChC0D,QACF,CAA4C;AAErC,IAAMmB,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAA,EAE3B;EACL,IAAAC,mBAAA,GAAoB,IAAAC,mCAAkB,EAAqB,CAAC;IAApD1E,OAAO,GAAAyE,mBAAA,CAAPzE,OAAO;EACf,IAAA2E,iBAAA,GAAmB,IAAAC,+BAAgB,EAAqB,CAAC;IAAjD3E,MAAM,GAAA0E,iBAAA,CAAN1E,MAAM;EAEd,OACE3D,MAAA,YAAA8E,aAAA,CAACiD,oBAAoB;IAEjBrE,OAAO,EAAPA,OAAO;IACPC,MAAM,EAANA,MAAM;IAAAuB,MAAA,EAAAtE,KAAA;IAAAuE,QAAA;MAAAC,QAAA,EAAAvE,YAAA;MAAAwE,UAAA;MAAAC,YAAA;IAAA;EAAA,CAET,CAAC;AAEN,CAAC;AAACiD,OAAA,CAAAL,qBAAA,GAAAA,qBAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["Dayjs","require","StreamChat","client","exports","connectUser","id","channel","image","name","channelContext","translationContext","t","text","tDateTimeParser","date","suggestionsContext","closeSuggestions","openSuggestions","setInputBoxContainerRef","updateSuggestions","filters","example","type","sort","last_message_at","channels","queryChannels","subscribe","message","__html","attachments","command","created_at","html","own_reactions","message_id","user","last_active","online","role","updated_at","reaction_counts","like","love","reactions","reply_count","status","messageWithImages","image_url","thumb_url","messageWithUrlPreview","og_scrape_url","title","title_link","thread","threadMessages","Date","parent_id","invisible","mutes","messages","users","MessageMock","canDeleteMessage","canEditMessage","handleDelete","console","log","handleEdit","handleFlag","handleMute","dynamicallyLoadScript","url","Promise","resolve","reject","script","document","createElement","src","onload","onerror","Error","body","appendChild"],"sources":["data.js"],"sourcesContent":["/* global require */\nconst Dayjs = require('dayjs');\nconst StreamChat = require('stream-chat').StreamChat;\nexport const client = new StreamChat('qk4nn7rpcn75');\n\nclient.connectUser(\n {\n id: 'John',\n },\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiSm9obiIsImlhdCI6MTU0ODI5ODUxN30.hyonbQnOLuFsr15mdmc_JF4sBOm2SURK4eBvTOx3ZIg',\n);\n\nexport const channel = client.channel('messaging', 'general', {\n image:\n 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg',\n name: 'Talk about the documentation',\n});\n\nexport const channelContext = {\n channel,\n client,\n};\n\nexport const translationContext = {\n t: (text) => text,\n tDateTimeParser: (date) => Dayjs(date),\n};\nexport const suggestionsContext = {\n closeSuggestions: () => {},\n openSuggestions: () => {},\n setInputBoxContainerRef: () => {},\n updateSuggestions: () => {},\n};\n\nconst filters = { example: 1, type: 'team' };\nconst sort = { last_message_at: -1 };\n\nexport const channels = client.queryChannels(filters, sort, {\n subscribe: true,\n});\n\nexport const message = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'Hey this is getstream message',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const messageWithImages = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n thumb_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n thumb_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n type: 'image',\n },\n {\n image_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n thumb_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html: '',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'This message contains images',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n \n};\n\nexport const messageWithUrlPreview = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/lxuB4abGzXc',\n text:\n 'Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title: 'Cosmic Home photo by Ibrahim Shabil (@shabilphotos) on Unsplash',\n title_link: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const thread = {\n __html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/f3hDGOHptrM',\n text: 'Download this photo by Sandra Seitamaa (@seitamaaphotography)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title:\n 'Plant, tree, nature and river HD photo by Sandra Seitamaa (@seitamaaphotography) on Unsplash',\n title_link: 'https://unsplash.com/photos/f3hDGOHptrM',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T21:25:45.306Z',\n html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',\n own_reactions: [],\n reaction_counts: null,\n reactions: [],\n reply_count: 2,\n status: 'received',\n text: 'this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM',\n type: 'regular',\n updated_at: '2019-01-25T21:25:45.306Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n \n};\n\nexport const threadMessages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const messages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const users = [\n {\n created_at: '2019-01-28T16:03:25.619982Z',\n id: 'thierry',\n last_active: '2019-01-28T15:07:32.314676-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-28T22:07:32.297119Z',\n },\n];\n\nexport const MessageMock = {\n canDeleteMessage: () => true,\n canEditMessage: () => true,\n handleDelete: console.log,\n handleEdit: console.log,\n handleFlag: console.log,\n handleMute: console.log,\n};\n\n// Based on: https://javascript.info/promise-basics#example-loadscript\nfunction dynamicallyLoadScript(url) {\n return new Promise(function(resolve, reject) {\n const script = document.createElement('script');\n script.src = url;\n script.onload = resolve;\n script.onerror = () => reject(new Error(`Error when loading ${url}!`));\n document.body.appendChild(script);\n });\n}\ndynamicallyLoadScript('https://snack.expo.io/embed.js');\n"],"mappings":";;;;AACA,IAAMA,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC;AAC9B,IAAMC,UAAU,GAAGD,OAAO,CAAC,aAAa,CAAC,CAACC,UAAU;AAC7C,IAAMC,MAAM,GAAG,IAAID,UAAU,CAAC,cAAc,CAAC;AAACE,OAAA,CAAAD,MAAA,GAAAA,MAAA;AAErDA,MAAM,CAACE,WAAW,CAChB;EACEC,EAAE,EAAE;AACN,CAAC,EACD,kIAAkI,CACnI;AAEM,IAAMC,OAAO,GAAGJ,MAAM,CAACI,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE;EAC5DC,KAAK,EACH,8EAA8E;EAChFC,IAAI,EAAE;AACR,CAAC,CAAC;AAACL,OAAA,CAAAG,OAAA,GAAAA,OAAA;AAEI,IAAMG,cAAc,GAAG;EAC5BH,OAAO,EAAPA,OAAO;EACPJ,MAAM,EAANA;AACF,CAAC;AAACC,OAAA,CAAAM,cAAA,GAAAA,cAAA;AAEK,IAAMC,kBAAkB,GAAG;EAChCC,CAAC,EAAE,SAAAA,EAACC,IAAI;IAAA,OAAKA,IAAI;EAAA;EACjBC,eAAe,EAAE,SAAAA,gBAACC,IAAI;IAAA,OAAKf,KAAK,CAACe,IAAI,CAAC;EAAA;AACxC,CAAC;AAACX,OAAA,CAAAO,kBAAA,GAAAA,kBAAA;AACK,IAAMK,kBAAkB,GAAG;EAChCC,gBAAgB,EAAE,SAAAA,iBAAA,EAAM,CAAC,CAAC;EAC1BC,eAAe,EAAE,SAAAA,gBAAA,EAAM,CAAC,CAAC;EACzBC,uBAAuB,EAAE,SAAAA,wBAAA,EAAM,CAAC,CAAC;EACjCC,iBAAiB,EAAE,SAAAA,kBAAA,EAAM,CAAC;AAC5B,CAAC;AAAChB,OAAA,CAAAY,kBAAA,GAAAA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AACR,MAAM,CAAC;EACnC,CAAC,CAAC;AACJ;AACAL,qBAAqB,CAAC,gCAAgC,CAAC"}
1
+ {"version":3,"names":["Dayjs","require","StreamChat","client","exports","connectUser","id","channel","image","name","channelContext","translationContext","t","text","tDateTimeParser","date","suggestionsContext","closeSuggestions","openSuggestions","setInputBoxContainerRef","updateSuggestions","filters","example","type","sort","last_message_at","channels","queryChannels","subscribe","message","__html","attachments","command","created_at","html","own_reactions","message_id","user","last_active","online","role","updated_at","reaction_counts","like","love","reactions","reply_count","status","messageWithImages","image_url","thumb_url","messageWithUrlPreview","og_scrape_url","title","title_link","thread","threadMessages","Date","parent_id","invisible","mutes","messages","users","MessageMock","canDeleteMessage","canEditMessage","handleDelete","console","log","handleEdit","handleFlag","handleMute","dynamicallyLoadScript","url","Promise","resolve","reject","script","document","createElement","src","onload","onerror","Error","body","appendChild"],"sources":["data.js"],"sourcesContent":["/* global require */\nconst Dayjs = require('dayjs');\nconst StreamChat = require('stream-chat').StreamChat;\nexport const client = new StreamChat('qk4nn7rpcn75');\n\nclient.connectUser(\n {\n id: 'John',\n },\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiSm9obiIsImlhdCI6MTU0ODI5ODUxN30.hyonbQnOLuFsr15mdmc_JF4sBOm2SURK4eBvTOx3ZIg',\n);\n\nexport const channel = client.channel('messaging', 'general', {\n image:\n 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_01_green.jpg',\n name: 'Talk about the documentation',\n});\n\nexport const channelContext = {\n channel,\n client,\n};\n\nexport const translationContext = {\n t: (text) => text,\n tDateTimeParser: (date) => Dayjs(date),\n};\nexport const suggestionsContext = {\n closeSuggestions: () => {},\n openSuggestions: () => {},\n setInputBoxContainerRef: () => {},\n updateSuggestions: () => {},\n};\n\nconst filters = { example: 1, type: 'team' };\nconst sort = { last_message_at: -1 };\n\nexport const channels = client.queryChannels(filters, sort, {\n subscribe: true,\n});\n\nexport const message = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'Hey this is getstream message',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const messageWithImages = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n thumb_url:\n 'https://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_t1/sample_images/img/index/ff_x_t1_002.JPG',\n type: 'image',\n },\n {\n image_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n thumb_url:\n 'https://www.fujixpassion.com/wp-content/uploads/2016/01/Image-1-Title.jpg',\n type: 'image',\n },\n {\n image_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n thumb_url:\n 'https://i-cdn.phonearena.com/images/articles/47012-image/photo2.jpg',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html: '',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'This message contains images',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n \n};\n\nexport const messageWithUrlPreview = {\n __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/lxuB4abGzXc',\n text:\n 'Download this photo in Addu City, Maldives by Ibrahim Shabil (@shabilphotos)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548256434-c7d2374b1077?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title: 'Cosmic Home photo by Ibrahim Shabil (@shabilphotos) on Unsplash',\n title_link: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T00:18:59.675Z',\n html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\n own_reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reaction_counts: {\n like: 1,\n love: 1,\n },\n reactions: [\n {\n created_at: '2019-01-25T16:24:00.173967Z',\n id: 142,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'love',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n {\n created_at: '2019-01-25T16:23:58.939438Z',\n id: 141,\n message_id: 'd46540e6-fb54-42bf-9de1-654c866cf587',\n type: 'like',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n },\n ],\n reply_count: 0,\n status: 'received',\n text: 'https://unsplash.com/photos/lxuB4abGzXc',\n type: 'regular',\n updated_at: '2019-01-25T16:24:00.181Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n image:\n 'https://cdn.pixabay.com/photo/2014/03/25/16/54/user-297566__340.png',\n last_active: '2019-01-25T09:23:47.108127-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T16:23:47.052538Z',\n },\n};\n\nexport const thread = {\n __html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n attachments: [\n {\n image_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n og_scrape_url: 'https://unsplash.com/photos/f3hDGOHptrM',\n text: 'Download this photo by Sandra Seitamaa (@seitamaaphotography)',\n thumb_url:\n 'https://images.unsplash.com/photo-1548345233-4557b8809829?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjEyMDd9',\n title:\n 'Plant, tree, nature and river HD photo by Sandra Seitamaa (@seitamaaphotography) on Unsplash',\n title_link: 'https://unsplash.com/photos/f3hDGOHptrM',\n type: 'image',\n },\n ],\n command: '',\n created_at: '2019-01-25T21:25:45.306Z',\n html:\n '<p>this place looks amazing: <a href=\"https://unsplash.com/photos/f3hDGOHptrM\" rel=\"nofollow\">https://unsplash.com/photos/f3hDGOHptrM</a></p>\\n',\n id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',\n own_reactions: [],\n reaction_counts: null,\n reactions: [],\n reply_count: 2,\n status: 'received',\n text: 'this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM',\n type: 'regular',\n updated_at: '2019-01-25T21:25:45.306Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n online: true,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n \n};\n\nexport const threadMessages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const messages = [\n {\n __html: '<p>whow, where is that?</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:06.346Z'),\n html: '<p>whow, where is that?</p>\\n',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: 'whow, where is that?',\n type: 'reply',\n updated_at: '2019-01-25T21:26:06.346Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n {\n __html: '<p>it’s soo green, amazing</p>\\n',\n attachments: [],\n command: '',\n created_at: new Date('2019-01-25T21:26:11.863Z'),\n html: '<p>it’s soo green, amazing</p>\\n',\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\n own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n status: 'received',\n text: \"it's soo green, amazing\",\n type: 'reply',\n updated_at: '2019-01-25T21:26:11.863Z',\n user: {\n created_at: '2019-01-22T16:35:18.417456Z',\n id: 'thierry',\n invisible: false,\n last_active: '0001-01-01T00:00:00Z',\n mutes: [],\n online: false,\n role: 'user',\n updated_at: '2019-01-25T21:27:39.606466Z',\n },\n },\n];\n\nexport const users = [\n {\n created_at: '2019-01-28T16:03:25.619982Z',\n id: 'thierry',\n last_active: '2019-01-28T15:07:32.314676-07:00',\n online: true,\n role: 'user',\n updated_at: '2019-01-28T22:07:32.297119Z',\n },\n];\n\nexport const MessageMock = {\n canDeleteMessage: () => true,\n canEditMessage: () => true,\n handleDelete: console.log,\n handleEdit: console.log,\n handleFlag: console.log,\n handleMute: console.log,\n};\n\n// Based on: https://javascript.info/promise-basics#example-loadscript\nfunction dynamicallyLoadScript(url) {\n return new Promise(function(resolve, reject) {\n const script = document.createElement('script');\n script.src = url;\n script.onload = resolve;\n script.onerror = () => reject(new Error(`Error when loading ${url}!`));\n document.body.appendChild(script);\n });\n}\ndynamicallyLoadScript('https://snack.expo.io/embed.js');\n"],"mappings":";;;;AACA,IAAMA,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC;AAC9B,IAAMC,UAAU,GAAGD,OAAO,CAAC,aAAa,CAAC,CAACC,UAAU;AAC7C,IAAMC,MAAM,GAAG,IAAID,UAAU,CAAC,cAAc,CAAC;AAACE,OAAA,CAAAD,MAAA,GAAAA,MAAA;AAErDA,MAAM,CAACE,WAAW,CAChB;EACEC,EAAE,EAAE;AACN,CAAC,EACD,kIACF,CAAC;AAEM,IAAMC,OAAO,GAAGJ,MAAM,CAACI,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE;EAC5DC,KAAK,EACH,8EAA8E;EAChFC,IAAI,EAAE;AACR,CAAC,CAAC;AAACL,OAAA,CAAAG,OAAA,GAAAA,OAAA;AAEI,IAAMG,cAAc,GAAG;EAC5BH,OAAO,EAAPA,OAAO;EACPJ,MAAM,EAANA;AACF,CAAC;AAACC,OAAA,CAAAM,cAAA,GAAAA,cAAA;AAEK,IAAMC,kBAAkB,GAAG;EAChCC,CAAC,EAAE,SAAAA,EAACC,IAAI;IAAA,OAAKA,IAAI;EAAA;E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CAAA2D,WAAA,GAAAA,WAAA;AAGF,SAASS,qBAAqBA,CAACC,GAAG,EAAE;EAClC,OAAO,IAAIC,OAAO,CAAC,UAASC,OAAO,EAAEC,MAAM,EAAE;IAC3C,IAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,QAAQ,CAAC;IAC/CF,MAAM,CAACG,GAAG,GAAGP,GAAG;IAChBI,MAAM,CAACI,MAAM,GAAGN,OAAO;IACvBE,MAAM,CAACK,OAAO,GAAG;MAAA,OAAMN,MAAM,CAAC,IAAIO,KAAK,yBAAuBV,GAAG,MAAG,CAAC,CAAC;IAAA;IACtEK,QAAQ,CAACM,IAAI,CAACC,WAAW,CAACR,MAAM,CAAC;EACnC,CAAC,CAAC;AACJ;AACAL,qBAAqB,CAAC,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_getDisplayName","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ActiveChannelsContext","React","createContext","current","ActiveChannelsProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","exports","useActiveChannelsRefContext","useContext","withActiveChannelsRefContext","Component","WithActiveChannelsContextComponent","props","_extends2","activeChannels","displayName","getDisplayName"],"sources":["ActiveChannelsRefContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { UnknownType } from '../../types/types';\n\nimport { getDisplayName } from '../utils/getDisplayName';\n\ntype ActiveChannels = React.MutableRefObject<string[]>;\n\nconst ActiveChannelsContext = React.createContext({ current: [] } as ActiveChannels);\n\nexport const ActiveChannelsProvider = ({\n children,\n value,\n}: PropsWithChildren<{\n value: ActiveChannels;\n}>) => <ActiveChannelsContext.Provider value={value}>{children}</ActiveChannelsContext.Provider>;\n\nexport const useActiveChannelsRefContext = () =>\n useContext(ActiveChannelsContext) as unknown as ActiveChannels;\n\nexport const withActiveChannelsRefContext = <P extends UnknownType>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, 'activeChannels'>> => {\n const WithActiveChannelsContextComponent = (props: Omit<P, 'activeChannels'>) => {\n const ActiveChannelsContext = useActiveChannelsRefContext();\n\n return <Component {...(props as P)} activeChannels={ActiveChannelsContext} />;\n };\n WithActiveChannelsContextComponent.displayName = `WithActiveChannelsContext${getDisplayName(\n Component,\n )}`;\n return WithActiveChannelsContextComponent;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,eAAA,GAAAD,OAAA;AAAyD,IAAAE,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAN,wBAAAU,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAA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iBAAMD,KAAK;MAAQE,cAAc,EAAEvB,qBAAsB;MAAAU,MAAA,EAAAlC,KAAA;MAAAmC,QAAA;QAAAC,QAAA,EAAAnC,YAAA;QAAAoC,UAAA;QAAAC,YAAA;MAAA;IAAA,GAAG;EAC/E,CAAC;EACDM,kCAAkC,CAACI,WAAW,iCAA+B,IAAAC,8BAAc,EACzFN,SAAS,CACR;EACH,OAAOC,kCAAkC;AAC3C,CAAC;AAACL,OAAA,CAAAG,4BAAA,GAAAA,4BAAA"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_getDisplayName","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ActiveChannelsContext","React","createContext","current","ActiveChannelsProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","exports","useActiveChannelsRefContext","useContext","withActiveChannelsRefContext","Component","WithActiveChannelsContextComponent","props","_extends2","activeChannels","displayName","getDisplayName"],"sources":["ActiveChannelsRefContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { UnknownType } from '../../types/types';\n\nimport { getDisplayName } from '../utils/getDisplayName';\n\ntype ActiveChannels = React.MutableRefObject<string[]>;\n\nconst ActiveChannelsContext = React.createContext({ current: [] } as ActiveChannels);\n\nexport const ActiveChannelsProvider = ({\n children,\n value,\n}: PropsWithChildren<{\n value: ActiveChannels;\n}>) => <ActiveChannelsContext.Provider value={value}>{children}</ActiveChannelsContext.Provider>;\n\nexport const useActiveChannelsRefContext = () =>\n useContext(ActiveChannelsContext) as unknown as ActiveChannels;\n\nexport const withActiveChannelsRefContext = <P extends UnknownType>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, 'activeChannels'>> => {\n const WithActiveChannelsContextComponent = (props: Omit<P, 'activeChannels'>) => {\n const ActiveChannelsContext = useActiveChannelsRefContext();\n\n return <Component {...(props as P)} activeChannels={ActiveChannelsContext} />;\n };\n WithActiveChannelsContextComponent.displayName = `WithActiveChannelsContext${getDisplayName(\n Component,\n )}`;\n return WithActiveChannelsContextComponent;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,eAAA,GAAAD,OAAA;AAAyD,IAAAE,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAN,wBAAAU,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,G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,CAACI,WAAW,iCAA+B,IAAAC,8BAAc,EACzFN,SACF,CAAG;EACH,OAAOC,kCAAkC;AAC3C,CAAC;AAACL,OAAA,CAAAG,4BAAA,GAAAA,4BAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","AttachmentPickerContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","AttachmentPickerProvider","_ref","_value$topInset","children","value","bottomInsetValue","bottomInset","topInsetValue","topInset","_useState","useState","_useState2","_slicedToArray2","setBottomInset","_useState3","_useState4","maxNumberOfFiles","setMaxNumberOfFiles","_useState5","_useState6","selectedImages","setSelectedImages","_useState7","_useState8","selectedFiles","setSelectedFiles","_useState9","_useState10","selectedPicker","setSelectedPicker","_useState11","_useState12","setTopInset","useEffect","combinedValue","_extends2","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useAttachmentPickerContext","contextValue","useContext","isTestEnvironment","Error","withAttachmentPickerContext","Component","WithAttachmentPickerContextComponent","props","attachmentPickerContext","displayName","getDisplayName"],"sources":["AttachmentPickerContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext, useEffect, useState } from 'react';\n\nimport type { Asset, DefaultStreamChatGenerics, File } from '../../types/types';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type AttachmentPickerIconProps = {\n numberOfImageUploads: number;\n selectedPicker?: 'images';\n};\n\nexport type AttachmentPickerContextValue = {\n /**\n * `bottomInset` determine the height of the `AttachmentPicker` and the underlying shift to the `MessageList` when it is opened.\n * This can also be set via the `setBottomInset` function provided by the `useAttachmentPickerContext` hook.\n *\n * Please check [OverlayProvider](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#overlayprovider) section in Cookbook\n * for more details.\n */\n bottomInset: number;\n /**\n * Custom UI component for [camera selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)\n *\n * **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx)\n */\n CameraSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;\n closePicker: () => void;\n /**\n * Custom UI component for [file selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)\n *\n * **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/FileSelectorIcon.tsx)\n */\n FileSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;\n /**\n * Custom UI component for [image selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)\n *\n * **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx)\n */\n ImageSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;\n /**\n * Limit for maximum files that can be attached per message.\n */\n maxNumberOfFiles: number;\n openPicker: () => void;\n selectedFiles: File[];\n selectedImages: Asset[];\n setBottomInset: React.Dispatch<React.SetStateAction<number>>;\n setMaxNumberOfFiles: React.Dispatch<React.SetStateAction<number>>;\n setSelectedFiles: React.Dispatch<React.SetStateAction<File[]>>;\n setSelectedImages: React.Dispatch<React.SetStateAction<Asset[]>>;\n setSelectedPicker: React.Dispatch<React.SetStateAction<'images' | undefined>>;\n setTopInset: React.Dispatch<React.SetStateAction<number>>;\n topInset: number;\n attachmentPickerBottomSheetHeight?: number;\n attachmentSelectionBarHeight?: number;\n selectedPicker?: 'images';\n};\n\nexport const AttachmentPickerContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as AttachmentPickerContextValue,\n);\n\nexport const AttachmentPickerProvider = ({\n children,\n value,\n}: PropsWithChildren<{\n value?: Pick<\n AttachmentPickerContextValue,\n | 'attachmentSelectionBarHeight'\n | 'attachmentPickerBottomSheetHeight'\n | 'CameraSelectorIcon'\n | 'closePicker'\n | 'FileSelectorIcon'\n | 'ImageSelectorIcon'\n | 'openPicker'\n > &\n Partial<Pick<AttachmentPickerContextValue, 'bottomInset' | 'topInset'>>;\n}>) => {\n const bottomInsetValue = value?.bottomInset;\n const topInsetValue = value?.topInset;\n\n const [bottomInset, setBottomInset] = useState<number>(bottomInsetValue ?? 0);\n const [maxNumberOfFiles, setMaxNumberOfFiles] = useState(10);\n const [selectedImages, setSelectedImages] = useState<Asset[]>([]);\n const [selectedFiles, setSelectedFiles] = useState<File[]>([]);\n const [selectedPicker, setSelectedPicker] = useState<'images'>();\n const [topInset, setTopInset] = useState<number>(value?.topInset ?? 0);\n\n useEffect(() => {\n setBottomInset(bottomInsetValue ?? 0);\n }, [bottomInsetValue]);\n\n useEffect(() => {\n setTopInset(topInsetValue ?? 0);\n }, [topInsetValue]);\n\n const combinedValue = {\n maxNumberOfFiles,\n selectedFiles,\n selectedImages,\n selectedPicker,\n setBottomInset,\n setMaxNumberOfFiles,\n setSelectedFiles,\n setSelectedImages,\n setSelectedPicker,\n setTopInset,\n ...value,\n bottomInset,\n topInset,\n };\n\n return (\n <AttachmentPickerContext.Provider\n value={combinedValue as unknown as AttachmentPickerContextValue}\n >\n {children}\n </AttachmentPickerContext.Provider>\n );\n};\n\nexport const useAttachmentPickerContext = () => {\n const contextValue = useContext(\n AttachmentPickerContext,\n ) as unknown as AttachmentPickerContextValue;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useAttachmentPickerContext hook was called outside the AttachmentPickerContext provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,\n );\n }\n\n return contextValue;\n};\n\nexport const withAttachmentPickerContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<StreamChatGenerics>,\n): React.FC<Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>> => {\n const WithAttachmentPickerContextComponent = (\n props: Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>,\n ) => {\n const attachmentPickerContext = useAttachmentPickerContext();\n\n return <Component {...(props as StreamChatGenerics)} {...attachmentPickerContext} />;\n };\n WithAttachmentPickerContextComponent.displayName = `WithAttachmentPickerContext${getDisplayName(\n Component as React.ComponentType,\n )}`;\n return WithAttachmentPickerContextComponent;\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,wBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAA+D,IAAAI,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAA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H,OAAOC,oCAAoC;AAC7C,CAAC;AAACnD,OAAA,CAAAiD,2BAAA,GAAAA,2BAAA"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","AttachmentPickerContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","AttachmentPickerProvider","_ref","_value$topInset","children","value","bottomInsetValue","bottomInset","topInsetValue","topInset","_useState","useState","_useState2","_slicedToArray2","setBottomInset","_useState3","_useState4","maxNumberOfFiles","setMaxNumberOfFiles","_useState5","_useState6","selectedImages","setSelectedImages","_useState7","_useState8","selectedFiles","setSelectedFiles","_useState9","_useState10","selectedPicker","setSelectedPicker","_useState11","_useState12","setTopInset","useEffect","combinedValue","_extends2","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useAttachmentPickerContext","contextValue","useContext","isTestEnvironment","Error","withAttachmentPickerContext","Component","WithAttachmentPickerContextComponent","props","attachmentPickerContext","displayName","getDisplayName"],"sources":["AttachmentPickerContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext, useEffect, useState } from 'react';\n\nimport type { Asset, DefaultStreamChatGenerics, File } from '../../types/types';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type AttachmentPickerIconProps = {\n numberOfImageUploads: number;\n selectedPicker?: 'images';\n};\n\nexport type AttachmentPickerContextValue = {\n /**\n * `bottomInset` determine the height of the `AttachmentPicker` and the underlying shift to the `MessageList` when it is opened.\n * This can also be set via the `setBottomInset` function provided by the `useAttachmentPickerContext` hook.\n *\n * Please check [OverlayProvider](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#overlayprovider) section in Cookbook\n * for more details.\n */\n bottomInset: number;\n /**\n * Custom UI component for [camera selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)\n *\n * **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/CameraSelectorIcon.tsx)\n */\n CameraSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;\n closePicker: () => void;\n /**\n * Custom UI component for [file selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)\n *\n * **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/FileSelectorIcon.tsx)\n */\n FileSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;\n /**\n * Custom UI component for [image selector icon](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png)\n *\n * **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageSelectorIcon.tsx)\n */\n ImageSelectorIcon: React.ComponentType<AttachmentPickerIconProps>;\n /**\n * Limit for maximum files that can be attached per message.\n */\n maxNumberOfFiles: number;\n openPicker: () => void;\n selectedFiles: File[];\n selectedImages: Asset[];\n setBottomInset: React.Dispatch<React.SetStateAction<number>>;\n setMaxNumberOfFiles: React.Dispatch<React.SetStateAction<number>>;\n setSelectedFiles: React.Dispatch<React.SetStateAction<File[]>>;\n setSelectedImages: React.Dispatch<React.SetStateAction<Asset[]>>;\n setSelectedPicker: React.Dispatch<React.SetStateAction<'images' | undefined>>;\n setTopInset: React.Dispatch<React.SetStateAction<number>>;\n topInset: number;\n attachmentPickerBottomSheetHeight?: number;\n attachmentSelectionBarHeight?: number;\n selectedPicker?: 'images';\n};\n\nexport const AttachmentPickerContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as AttachmentPickerContextValue,\n);\n\nexport const AttachmentPickerProvider = ({\n children,\n value,\n}: PropsWithChildren<{\n value?: Pick<\n AttachmentPickerContextValue,\n | 'attachmentSelectionBarHeight'\n | 'attachmentPickerBottomSheetHeight'\n | 'CameraSelectorIcon'\n | 'closePicker'\n | 'FileSelectorIcon'\n | 'ImageSelectorIcon'\n | 'openPicker'\n > &\n Partial<Pick<AttachmentPickerContextValue, 'bottomInset' | 'topInset'>>;\n}>) => {\n const bottomInsetValue = value?.bottomInset;\n const topInsetValue = value?.topInset;\n\n const [bottomInset, setBottomInset] = useState<number>(bottomInsetValue ?? 0);\n const [maxNumberOfFiles, setMaxNumberOfFiles] = useState(10);\n const [selectedImages, setSelectedImages] = useState<Asset[]>([]);\n const [selectedFiles, setSelectedFiles] = useState<File[]>([]);\n const [selectedPicker, setSelectedPicker] = useState<'images'>();\n const [topInset, setTopInset] = useState<number>(value?.topInset ?? 0);\n\n useEffect(() => {\n setBottomInset(bottomInsetValue ?? 0);\n }, [bottomInsetValue]);\n\n useEffect(() => {\n setTopInset(topInsetValue ?? 0);\n }, [topInsetValue]);\n\n const combinedValue = {\n maxNumberOfFiles,\n selectedFiles,\n selectedImages,\n selectedPicker,\n setBottomInset,\n setMaxNumberOfFiles,\n setSelectedFiles,\n setSelectedImages,\n setSelectedPicker,\n setTopInset,\n ...value,\n bottomInset,\n topInset,\n };\n\n return (\n <AttachmentPickerContext.Provider\n value={combinedValue as unknown as AttachmentPickerContextValue}\n >\n {children}\n </AttachmentPickerContext.Provider>\n );\n};\n\nexport const useAttachmentPickerContext = () => {\n const contextValue = useContext(\n AttachmentPickerContext,\n ) as unknown as AttachmentPickerContextValue;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useAttachmentPickerContext hook was called outside the AttachmentPickerContext provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider`,\n );\n }\n\n return contextValue;\n};\n\nexport const withAttachmentPickerContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<StreamChatGenerics>,\n): React.FC<Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>> => {\n const WithAttachmentPickerContextComponent = (\n props: Omit<StreamChatGenerics, keyof AttachmentPickerContextValue>,\n ) => {\n const attachmentPickerContext = useAttachmentPickerContext();\n\n return <Component {...(props as StreamChatGenerics)} {...attachmentPickerContext} />;\n };\n WithAttachmentPickerContextComponent.displayName = `WithAttachmentPickerContext${getDisplayName(\n Component as React.ComponentType,\n )}`;\n return WithAttachmentPickerContextComponent;\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,wBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAA+D,IAAAI,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAA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A,CAAAiD,2BAAA,GAAAA,2BAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ChannelContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","ChannelProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useChannelContext","contextValue","useContext","isTestEnvironment","Error","withChannelContext","Component","WithChannelContextComponent","props","channelContext","_extends2","displayName","getDisplayName"],"sources":["ChannelContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { Channel, ChannelState } from 'stream-chat';\n\nimport type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';\nimport type { LoadingProps } from '../../components/Indicators/LoadingIndicator';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type ChannelContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * Instance of channel object from stream-chat package.\n *\n * Please check the docs around how to create or query channel - https://getstream.io/chat/docs/javascript/creating_channels/?language=javascript\n *\n * ```\n * import { StreamChat, Channel } from 'stream-chat';\n * import { Chat, Channel} from 'stream-chat-react-native';\n *\n * const client = StreamChat.getInstance('api_key');\n * await client.connectUser('user_id', 'user_token');\n * const channel = client.channel('messaging', 'channel_id');\n * await channel.watch();\n *\n * <Chat client={client}>\n * <Channel channel={channel}>\n * </Channel>\n * </Chat>\n * ```\n *\n * @overrideType Channel\n */\n channel: Channel<StreamChatGenerics>;\n /**\n * Custom UI component to display empty state when channel has no messages.\n *\n * **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Indicators/EmptyStateIndicator.tsx)\n */\n EmptyStateIndicator: React.ComponentType<EmptyStateProps>;\n /**\n * When set to true, reactions will be limited to 1 per user. If user selects another reaction\n * then his previous reaction will be removed and replaced with new one.\n *\n * This is similar to reaction UX on [iMessage application](https://en.wikipedia.org/wiki/IMessage).\n */\n enforceUniqueReaction: boolean;\n error: boolean | Error;\n /**\n * When set to false, it will disable giphy command on MessageInput component.\n */\n giphyEnabled: boolean;\n /**\n * Hide inline date separators on channel\n */\n hideDateSeparators: boolean;\n hideStickyDateHeader: boolean;\n /**\n * Returns true if the current user has admin privileges\n */\n isAdmin: boolean;\n /**\n * Returns true if the current user is a moderator\n */\n isModerator: boolean;\n /**\n * Returns true if the current user is a owner\n */\n isOwner: boolean;\n /**\n * Loads channel around a specific message\n *\n * @param messageId If undefined, channel will be loaded at most recent message.\n */\n loadChannelAroundMessage: ({ messageId }: { messageId?: string }) => Promise<void>;\n /**\n * @deprecated use loadChannelAroundMessage instead\n *\n * Loads channel at specific message\n *\n * @param messageId If undefined, channel will be loaded at most recent message.\n * @param before Number of message to query before messageId\n * @param after Number of message to query after messageId\n */\n loadChannelAtMessage: ({\n after,\n before,\n messageId,\n }: {\n after?: number;\n before?: number;\n messageId?: string;\n }) => Promise<void>;\n loading: boolean;\n /**\n * Custom loading indicator to override the Stream default\n */\n LoadingIndicator: React.ComponentType<LoadingProps>;\n markRead: () => void;\n /**\n *\n * ```json\n * {\n * \"thierry-123\": {\n * \"id\": \"thierry-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-04-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-04-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-04-16T11:23:51.168113408+02:00\",\n * \"online\": true\n * },\n * \"vishal-123\": {\n * \"id\": \"vishal-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-05-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-05-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-06-16T11:23:51.168113408+02:00\",\n * \"online\": false\n * }\n * }\n * ```\n */\n members: ChannelState<StreamChatGenerics>['members'];\n /**\n * Custom network down indicator to override the Stream default\n */\n NetworkDownIndicator: React.ComponentType;\n read: ChannelState<StreamChatGenerics>['read'];\n reloadChannel: () => Promise<void>;\n /**\n * When true, messagelist will be scrolled to first unread message, when opened.\n */\n scrollToFirstUnreadThreshold: number;\n setLastRead: React.Dispatch<React.SetStateAction<Date | undefined>>;\n setTargetedMessage: (messageId: string) => void;\n /**\n *\n * ```json\n * {\n * \"thierry-123\": {\n * \"id\": \"thierry-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-04-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-04-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-04-16T11:23:51.168113408+02:00\",\n * \"online\": true\n * },\n * \"vishal-123\": {\n * \"id\": \"vishal-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-05-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-05-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-06-16T11:23:51.168113408+02:00\",\n * \"online\": false\n * }\n * }\n * ```\n */\n watchers: ChannelState<StreamChatGenerics>['watchers'];\n disabled?: boolean;\n enableMessageGroupingByUser?: boolean;\n isChannelActive?: boolean;\n lastRead?: Date;\n /**\n * Maximum time in milliseconds that should occur between messages\n * to still consider them grouped together\n */\n maxTimeBetweenGroupedMessages?: number;\n /**\n * Custom UI component for sticky header of channel.\n *\n * **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)\n */\n StickyHeader?: React.ComponentType<{ dateString: string }>;\n /**\n * Id of message, around which Channel/MessageList gets loaded when opened.\n * You will see a highlighted background for targetted message, when opened.\n */\n targetedMessage?: string;\n threadList?: boolean;\n watcherCount?: ChannelState<StreamChatGenerics>['watcher_count'];\n};\n\nexport const ChannelContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as ChannelContextValue,\n);\n\nexport const ChannelProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value: ChannelContextValue<StreamChatGenerics>;\n}>) => (\n <ChannelContext.Provider value={value as unknown as ChannelContextValue}>\n {children}\n </ChannelContext.Provider>\n);\n\nexport const useChannelContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n ChannelContext,\n ) as unknown as ChannelContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useChannelContext hook was called outside of the ChannelContext provider. Make sure you have configured Channel component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel`,\n );\n }\n\n return contextValue;\n};\n/**\n * Typescript currently does not support partial inference so if ChatContext\n * typing is desired while using the HOC withChannelContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withChannelContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof ChannelContextValue<StreamChatGenerics>>> => {\n const WithChannelContextComponent = (\n props: Omit<P, keyof ChannelContextValue<StreamChatGenerics>>,\n ) => {\n const channelContext = useChannelContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...channelContext} />;\n };\n WithChannelContextComponent.displayName = `WithChannelContext${getDisplayName(Component)}`;\n return WithChannelContextComponent;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,wBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;A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AAA"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ChannelContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","ChannelProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useChannelContext","contextValue","useContext","isTestEnvironment","Error","withChannelContext","Component","WithChannelContextComponent","props","channelContext","_extends2","displayName","getDisplayName"],"sources":["ChannelContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { Channel, ChannelState } from 'stream-chat';\n\nimport type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';\nimport type { LoadingProps } from '../../components/Indicators/LoadingIndicator';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type ChannelContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * Instance of channel object from stream-chat package.\n *\n * Please check the docs around how to create or query channel - https://getstream.io/chat/docs/javascript/creating_channels/?language=javascript\n *\n * ```\n * import { StreamChat, Channel } from 'stream-chat';\n * import { Chat, Channel} from 'stream-chat-react-native';\n *\n * const client = StreamChat.getInstance('api_key');\n * await client.connectUser('user_id', 'user_token');\n * const channel = client.channel('messaging', 'channel_id');\n * await channel.watch();\n *\n * <Chat client={client}>\n * <Channel channel={channel}>\n * </Channel>\n * </Chat>\n * ```\n *\n * @overrideType Channel\n */\n channel: Channel<StreamChatGenerics>;\n /**\n * Custom UI component to display empty state when channel has no messages.\n *\n * **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Indicators/EmptyStateIndicator.tsx)\n */\n EmptyStateIndicator: React.ComponentType<EmptyStateProps>;\n /**\n * When set to true, reactions will be limited to 1 per user. If user selects another reaction\n * then his previous reaction will be removed and replaced with new one.\n *\n * This is similar to reaction UX on [iMessage application](https://en.wikipedia.org/wiki/IMessage).\n */\n enforceUniqueReaction: boolean;\n error: boolean | Error;\n /**\n * When set to false, it will disable giphy command on MessageInput component.\n */\n giphyEnabled: boolean;\n /**\n * Hide inline date separators on channel\n */\n hideDateSeparators: boolean;\n hideStickyDateHeader: boolean;\n /**\n * Returns true if the current user has admin privileges\n */\n isAdmin: boolean;\n /**\n * Returns true if the current user is a moderator\n */\n isModerator: boolean;\n /**\n * Returns true if the current user is a owner\n */\n isOwner: boolean;\n /**\n * Loads channel around a specific message\n *\n * @param messageId If undefined, channel will be loaded at most recent message.\n */\n loadChannelAroundMessage: ({ messageId }: { messageId?: string }) => Promise<void>;\n /**\n * @deprecated use loadChannelAroundMessage instead\n *\n * Loads channel at specific message\n *\n * @param messageId If undefined, channel will be loaded at most recent message.\n * @param before Number of message to query before messageId\n * @param after Number of message to query after messageId\n */\n loadChannelAtMessage: ({\n after,\n before,\n messageId,\n }: {\n after?: number;\n before?: number;\n messageId?: string;\n }) => Promise<void>;\n loading: boolean;\n /**\n * Custom loading indicator to override the Stream default\n */\n LoadingIndicator: React.ComponentType<LoadingProps>;\n markRead: () => void;\n /**\n *\n * ```json\n * {\n * \"thierry-123\": {\n * \"id\": \"thierry-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-04-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-04-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-04-16T11:23:51.168113408+02:00\",\n * \"online\": true\n * },\n * \"vishal-123\": {\n * \"id\": \"vishal-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-05-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-05-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-06-16T11:23:51.168113408+02:00\",\n * \"online\": false\n * }\n * }\n * ```\n */\n members: ChannelState<StreamChatGenerics>['members'];\n /**\n * Custom network down indicator to override the Stream default\n */\n NetworkDownIndicator: React.ComponentType;\n read: ChannelState<StreamChatGenerics>['read'];\n reloadChannel: () => Promise<void>;\n /**\n * When true, messagelist will be scrolled to first unread message, when opened.\n */\n scrollToFirstUnreadThreshold: number;\n setLastRead: React.Dispatch<React.SetStateAction<Date | undefined>>;\n setTargetedMessage: (messageId: string) => void;\n /**\n *\n * ```json\n * {\n * \"thierry-123\": {\n * \"id\": \"thierry-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-04-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-04-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-04-16T11:23:51.168113408+02:00\",\n * \"online\": true\n * },\n * \"vishal-123\": {\n * \"id\": \"vishal-123\",\n * \"role\": \"user\",\n * \"created_at\": \"2019-05-03T14:42:47.087869Z\",\n * \"updated_at\": \"2019-05-16T09:20:03.982283Z\",\n * \"last_active\": \"2019-06-16T11:23:51.168113408+02:00\",\n * \"online\": false\n * }\n * }\n * ```\n */\n watchers: ChannelState<StreamChatGenerics>['watchers'];\n disabled?: boolean;\n enableMessageGroupingByUser?: boolean;\n isChannelActive?: boolean;\n lastRead?: Date;\n /**\n * Maximum time in milliseconds that should occur between messages\n * to still consider them grouped together\n */\n maxTimeBetweenGroupedMessages?: number;\n /**\n * Custom UI component for sticky header of channel.\n *\n * **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)\n */\n StickyHeader?: React.ComponentType<{ dateString: string }>;\n /**\n * Id of message, around which Channel/MessageList gets loaded when opened.\n * You will see a highlighted background for targetted message, when opened.\n */\n targetedMessage?: string;\n threadList?: boolean;\n watcherCount?: ChannelState<StreamChatGenerics>['watcher_count'];\n};\n\nexport const ChannelContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as ChannelContextValue,\n);\n\nexport const ChannelProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value: ChannelContextValue<StreamChatGenerics>;\n}>) => (\n <ChannelContext.Provider value={value as unknown as ChannelContextValue}>\n {children}\n </ChannelContext.Provider>\n);\n\nexport const useChannelContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n ChannelContext,\n ) as unknown as ChannelContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useChannelContext hook was called outside of the ChannelContext provider. Make sure you have configured Channel component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel`,\n );\n }\n\n return contextValue;\n};\n/**\n * Typescript currently does not support partial inference so if ChatContext\n * typing is desired while using the HOC withChannelContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withChannelContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof ChannelContextValue<StreamChatGenerics>>> => {\n const WithChannelContextComponent = (\n props: Omit<P, keyof ChannelContextValue<StreamChatGenerics>>,\n ) => {\n const channelContext = useChannelContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...channelContext} />;\n };\n WithChannelContextComponent.displayName = `WithChannelContext${getDisplayName(Component)}`;\n return WithChannelContextComponent;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,wBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAA+D,IAAAI,KAAA;EAAAC,YAAA;AAAA,SA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
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ChannelsContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","ChannelsProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useChannelsContext","contextValue","useContext","isTestEnvironment","Error","withChannelsContext","Component","WithChannelsContextComponent","props","channelsContext","_extends2","displayName","getDisplayName"],"sources":["ChannelsContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { FlatListProps } from 'react-native';\nimport type { FlatList } from 'react-native-gesture-handler';\n\nimport type { Channel } from 'stream-chat';\n\nimport type { HeaderErrorProps } from '../../components/ChannelList/ChannelListHeaderErrorIndicator';\nimport type { QueryChannels } from '../../components/ChannelList/hooks/usePaginatedChannels';\nimport type { ChannelAvatarProps } from '../../components/ChannelPreview/ChannelAvatar';\nimport type { ChannelPreviewMessageProps } from '../../components/ChannelPreview/ChannelPreviewMessage';\nimport type { ChannelPreviewMessengerProps } from '../../components/ChannelPreview/ChannelPreviewMessenger';\nimport type { ChannelPreviewStatusProps } from '../../components/ChannelPreview/ChannelPreviewStatus';\nimport type { ChannelPreviewTitleProps } from '../../components/ChannelPreview/ChannelPreviewTitle';\nimport type { ChannelPreviewUnreadCountProps } from '../../components/ChannelPreview/ChannelPreviewUnreadCount';\nimport type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';\nimport type { LoadingErrorProps } from '../../components/Indicators/LoadingErrorIndicator';\nimport type { LoadingProps } from '../../components/Indicators/LoadingIndicator';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type ChannelsContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * Besides the existing default behavior of the ChannelListMessenger component, you can attach\n * additional props to the underlying React Native FlatList.\n *\n * You can find list of all the available FlatList props here - https://facebook.github.io/react-native/docs/flatlist#props\n *\n * **EXAMPLE:**\n *\n * ```\n * <ChannelListMessenger\n * channels={channels}\n * additionalFlatListProps={{ bounces: true }}\n * />\n * ```\n *\n * **Note:** Don't use `additionalFlatListProps` to access the FlatList ref, use `setFlatListRef`\n */\n additionalFlatListProps: Partial<FlatListProps<Channel<StreamChatGenerics>>>;\n /**\n * Channels can be either an array of channels or a promise which resolves to an array of channels\n */\n channels: Channel<StreamChatGenerics>[] | null;\n /**\n * Custom indicator to use when channel list is empty\n *\n * Default: [EmptyStateIndicator](https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#emptystateindicator)\n * */\n EmptyStateIndicator: React.ComponentType<EmptyStateProps>;\n /**\n * Custom loading indicator to display at bottom of the list, while loading further pages\n *\n * Default: [ChannelListFooterLoadingIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#footerloadingindicator)\n */\n FooterLoadingIndicator: React.ComponentType;\n /**\n * Incremental number change to force update the FlatList\n */\n forceUpdate: number;\n /**\n * Whether or not the FlatList has another page to render\n */\n hasNextPage: boolean;\n /**\n * Custom indicator to display error at top of list, if loading/pagination error occurs\n *\n * Default: [ChannelListHeaderErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headererrorindicator)\n */\n HeaderErrorIndicator: React.ComponentType<HeaderErrorProps>;\n /**\n * Custom indicator to display network-down error at top of list, if there is connectivity issue\n *\n * Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headernetworkdownindicator)\n */\n HeaderNetworkDownIndicator: React.ComponentType;\n /**\n * Initial channels query loading state, triggers the LoadingIndicator\n */\n loadingChannels: boolean;\n /**\n * Custom indicator to use when there is error in fetching channels\n *\n * Default: [LoadingErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#loadingerrorindicator)\n * */\n LoadingErrorIndicator: React.ComponentType<LoadingErrorProps>;\n /**\n * Custom loading indicator to use on Channel List\n *\n * */\n LoadingIndicator: React.ComponentType<Pick<LoadingProps, 'listType'>>;\n /**\n * Whether or not additional channels are being loaded, triggers the FooterLoadingIndicator\n */\n loadingNextPage: boolean;\n /**\n * The React Native FlatList threshold to fetch more data\n * @see See loadMoreThreshold [doc](https://facebook.github.io/react-native/docs/flatlist#onendreachedthreshold)\n * */\n loadMoreThreshold: number;\n /**\n * Loads the next page of `channels`, which is present as a required prop\n */\n loadNextPage: QueryChannels;\n /**\n * Max number to display within notification badge. Default: 255 and it cannot be higher than that for now due to backend limitations\n */\n maxUnreadCount: number;\n /**\n * Number of skeletons that should show when loading. Default: 6\n */\n numberOfSkeletons: number;\n /**\n * Custom UI component to display individual channel list items\n *\n * Default: [ChannelPreviewMessenger](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-preview-messenger/)\n */\n Preview: React.ComponentType<ChannelPreviewMessengerProps<StreamChatGenerics>>;\n /**\n * Triggered when the channel list is refreshing, displays a loading spinner at the top of the list\n */\n refreshing: boolean;\n /**\n * Function to refresh the channel list that is similar to `reloadList`, but it doesn't wipe out existing channels\n * from UI before loading the new ones\n */\n refreshList: () => void | Promise<void>;\n /**\n * Removes all the existing channels from UI and loads fresh channels\n * */\n reloadList: () => Promise<void>;\n // /**\n // * Function to set the currently active channel, acts as a bridge between ChannelList and Channel components\n // *\n // * @param channel A channel object\n // */\n // setActiveChannel?: (channel: Channel<StreamChatGenerics>) => void;\n /**\n * Function to gain access to the inner FlatList ref\n *\n * **Example:**\n *\n * ```\n * <ChannelListMessenger\n * setFlatListRef={(ref) => {\n * // Use ref for your own good\n * }}\n * ```\n */\n setFlatListRef: (ref: FlatList<Channel<StreamChatGenerics>> | null) => void;\n /**\n * Custom UI component to display loading channel skeletons\n *\n * Default: [Skeleton](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#skeleton)\n */\n Skeleton: React.ComponentType;\n /**\n * Error in channels query, if any\n */\n error?: Error;\n ListHeaderComponent?: React.ComponentType;\n /**\n * Function to set the currently active channel, acts as a bridge between ChannelList and Channel components\n *\n * @param channel A channel object\n */\n onSelect?: (channel: Channel<StreamChatGenerics>) => void;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelAvatar.tsx)\n */\n PreviewAvatar?: React.ComponentType<ChannelAvatarProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render preview of latest message on channel.\n *\n * **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMessage.tsx)\n */\n PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render muted status.\n *\n * **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)\n */\n PreviewMutedStatus?: React.ComponentType;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewStatus.tsx)\n */\n PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)\n */\n PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)\n */\n PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps<StreamChatGenerics>>;\n};\n\nexport const ChannelsContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as ChannelsContextValue,\n);\n\nexport const ChannelsProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value: ChannelsContextValue<StreamChatGenerics>;\n}>) => (\n <ChannelsContext.Provider value={value as unknown as ChannelsContextValue}>\n {children}\n </ChannelsContext.Provider>\n);\n\nexport const useChannelsContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n ChannelsContext,\n ) as unknown as ChannelsContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useChannelsContext hook was called outside of the ChannelsContext provider. Make sure you have configured ChannelList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel-list`,\n );\n }\n\n return contextValue;\n};\n/**\n * Typescript currently does not support partial inference so if ChatContext\n * typing is desired while using the HOC withChannelContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withChannelsContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>> => {\n const WithChannelsContextComponent = (\n props: Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>,\n ) => {\n const channelsContext = useChannelsContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...channelsContext} />;\n };\n WithChannelsContextComponent.displayName = `WithChannelsContext${getDisplayName(Component)}`;\n return WithChannelsContextComponent;\n};\n"],"mappings":";;;;;;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AC7D,CAAC;EACDQ,4BAA4B,CAACI,WAAW,2BAAyB,IAAAC,8BAAc,EAACN,SAAS,CAAG;EAC5F,OAAOC,4BAA4B;AACrC,CAAC;AAACnB,OAAA,CAAAiB,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ChannelsContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","ChannelsProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useChannelsContext","contextValue","useContext","isTestEnvironment","Error","withChannelsContext","Component","WithChannelsContextComponent","props","channelsContext","_extends2","displayName","getDisplayName"],"sources":["ChannelsContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { FlatListProps } from 'react-native';\nimport type { FlatList } from 'react-native-gesture-handler';\n\nimport type { Channel } from 'stream-chat';\n\nimport type { HeaderErrorProps } from '../../components/ChannelList/ChannelListHeaderErrorIndicator';\nimport type { QueryChannels } from '../../components/ChannelList/hooks/usePaginatedChannels';\nimport type { ChannelAvatarProps } from '../../components/ChannelPreview/ChannelAvatar';\nimport type { ChannelPreviewMessageProps } from '../../components/ChannelPreview/ChannelPreviewMessage';\nimport type { ChannelPreviewMessengerProps } from '../../components/ChannelPreview/ChannelPreviewMessenger';\nimport type { ChannelPreviewStatusProps } from '../../components/ChannelPreview/ChannelPreviewStatus';\nimport type { ChannelPreviewTitleProps } from '../../components/ChannelPreview/ChannelPreviewTitle';\nimport type { ChannelPreviewUnreadCountProps } from '../../components/ChannelPreview/ChannelPreviewUnreadCount';\nimport type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';\nimport type { LoadingErrorProps } from '../../components/Indicators/LoadingErrorIndicator';\nimport type { LoadingProps } from '../../components/Indicators/LoadingIndicator';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type ChannelsContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * Besides the existing default behavior of the ChannelListMessenger component, you can attach\n * additional props to the underlying React Native FlatList.\n *\n * You can find list of all the available FlatList props here - https://facebook.github.io/react-native/docs/flatlist#props\n *\n * **EXAMPLE:**\n *\n * ```\n * <ChannelListMessenger\n * channels={channels}\n * additionalFlatListProps={{ bounces: true }}\n * />\n * ```\n *\n * **Note:** Don't use `additionalFlatListProps` to access the FlatList ref, use `setFlatListRef`\n */\n additionalFlatListProps: Partial<FlatListProps<Channel<StreamChatGenerics>>>;\n /**\n * Channels can be either an array of channels or a promise which resolves to an array of channels\n */\n channels: Channel<StreamChatGenerics>[] | null;\n /**\n * Custom indicator to use when channel list is empty\n *\n * Default: [EmptyStateIndicator](https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#emptystateindicator)\n * */\n EmptyStateIndicator: React.ComponentType<EmptyStateProps>;\n /**\n * Custom loading indicator to display at bottom of the list, while loading further pages\n *\n * Default: [ChannelListFooterLoadingIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#footerloadingindicator)\n */\n FooterLoadingIndicator: React.ComponentType;\n /**\n * Incremental number change to force update the FlatList\n */\n forceUpdate: number;\n /**\n * Whether or not the FlatList has another page to render\n */\n hasNextPage: boolean;\n /**\n * Custom indicator to display error at top of list, if loading/pagination error occurs\n *\n * Default: [ChannelListHeaderErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headererrorindicator)\n */\n HeaderErrorIndicator: React.ComponentType<HeaderErrorProps>;\n /**\n * Custom indicator to display network-down error at top of list, if there is connectivity issue\n *\n * Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headernetworkdownindicator)\n */\n HeaderNetworkDownIndicator: React.ComponentType;\n /**\n * Initial channels query loading state, triggers the LoadingIndicator\n */\n loadingChannels: boolean;\n /**\n * Custom indicator to use when there is error in fetching channels\n *\n * Default: [LoadingErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#loadingerrorindicator)\n * */\n LoadingErrorIndicator: React.ComponentType<LoadingErrorProps>;\n /**\n * Custom loading indicator to use on Channel List\n *\n * */\n LoadingIndicator: React.ComponentType<Pick<LoadingProps, 'listType'>>;\n /**\n * Whether or not additional channels are being loaded, triggers the FooterLoadingIndicator\n */\n loadingNextPage: boolean;\n /**\n * The React Native FlatList threshold to fetch more data\n * @see See loadMoreThreshold [doc](https://facebook.github.io/react-native/docs/flatlist#onendreachedthreshold)\n * */\n loadMoreThreshold: number;\n /**\n * Loads the next page of `channels`, which is present as a required prop\n */\n loadNextPage: QueryChannels;\n /**\n * Max number to display within notification badge. Default: 255 and it cannot be higher than that for now due to backend limitations\n */\n maxUnreadCount: number;\n /**\n * Number of skeletons that should show when loading. Default: 6\n */\n numberOfSkeletons: number;\n /**\n * Custom UI component to display individual channel list items\n *\n * Default: [ChannelPreviewMessenger](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-preview-messenger/)\n */\n Preview: React.ComponentType<ChannelPreviewMessengerProps<StreamChatGenerics>>;\n /**\n * Triggered when the channel list is refreshing, displays a loading spinner at the top of the list\n */\n refreshing: boolean;\n /**\n * Function to refresh the channel list that is similar to `reloadList`, but it doesn't wipe out existing channels\n * from UI before loading the new ones\n */\n refreshList: () => void | Promise<void>;\n /**\n * Removes all the existing channels from UI and loads fresh channels\n * */\n reloadList: () => Promise<void>;\n // /**\n // * Function to set the currently active channel, acts as a bridge between ChannelList and Channel components\n // *\n // * @param channel A channel object\n // */\n // setActiveChannel?: (channel: Channel<StreamChatGenerics>) => void;\n /**\n * Function to gain access to the inner FlatList ref\n *\n * **Example:**\n *\n * ```\n * <ChannelListMessenger\n * setFlatListRef={(ref) => {\n * // Use ref for your own good\n * }}\n * ```\n */\n setFlatListRef: (ref: FlatList<Channel<StreamChatGenerics>> | null) => void;\n /**\n * Custom UI component to display loading channel skeletons\n *\n * Default: [Skeleton](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#skeleton)\n */\n Skeleton: React.ComponentType;\n /**\n * Error in channels query, if any\n */\n error?: Error;\n ListHeaderComponent?: React.ComponentType;\n /**\n * Function to set the currently active channel, acts as a bridge between ChannelList and Channel components\n *\n * @param channel A channel object\n */\n onSelect?: (channel: Channel<StreamChatGenerics>) => void;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelAvatar.tsx)\n */\n PreviewAvatar?: React.ComponentType<ChannelAvatarProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render preview of latest message on channel.\n *\n * **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMessage.tsx)\n */\n PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render muted status.\n *\n * **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)\n */\n PreviewMutedStatus?: React.ComponentType;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewStatus.tsx)\n */\n PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)\n */\n PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps<StreamChatGenerics>>;\n /**\n * Custom UI component to render preview avatar.\n *\n * **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)\n */\n PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps<StreamChatGenerics>>;\n};\n\nexport const ChannelsContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as ChannelsContextValue,\n);\n\nexport const ChannelsProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value: ChannelsContextValue<StreamChatGenerics>;\n}>) => (\n <ChannelsContext.Provider value={value as unknown as ChannelsContextValue}>\n {children}\n </ChannelsContext.Provider>\n);\n\nexport const useChannelsContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n ChannelsContext,\n ) as unknown as ChannelsContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useChannelsContext hook was called outside of the ChannelsContext provider. Make sure you have configured ChannelList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel-list`,\n );\n }\n\n return contextValue;\n};\n/**\n * Typescript currently does not support partial inference so if ChatContext\n * typing is desired while using the HOC withChannelContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withChannelsContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>> => {\n const WithChannelsContextComponent = (\n props: Omit<P, keyof ChannelsContextValue<StreamChatGenerics>>,\n ) => {\n const channelsContext = useChannelsContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...channelsContext} />;\n };\n WithChannelsContextComponent.displayName = `WithChannelsContext${getDisplayName(Component)}`;\n return WithChannelsContextComponent;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAmBA,IAAAC,wBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAA+D,IAAAI,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA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