stream-chat-react-native-core 4.0.0-beta.3 → 4.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (830) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/Attachment/Attachment.js +10 -10
  3. package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
  4. package/lib/commonjs/components/Attachment/AttachmentActions.js +4 -4
  5. package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
  6. package/lib/commonjs/components/Attachment/Card.js +15 -15
  7. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  8. package/lib/commonjs/components/Attachment/FileAttachment.js +8 -8
  9. package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
  10. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +4 -4
  11. package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
  12. package/lib/commonjs/components/Attachment/Gallery.js +8 -8
  13. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  14. package/lib/commonjs/components/Attachment/Giphy.js +112 -148
  15. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  16. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  17. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  18. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  19. package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  20. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  21. package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  22. package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
  23. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  24. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  25. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
  26. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  27. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
  28. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  29. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
  30. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  31. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
  32. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  33. package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
  34. package/lib/commonjs/components/Channel/Channel.js +13 -13
  35. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  36. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  37. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  38. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  39. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  40. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  41. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  42. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  43. package/lib/commonjs/components/ChannelList/ChannelList.js +2 -2
  44. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  45. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +14 -14
  46. package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
  47. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  48. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  49. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  50. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  51. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  52. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  53. package/lib/commonjs/components/ChannelList/hooks/listeners/useConnectionRecovered.js.map +1 -1
  54. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  55. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  56. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  57. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  58. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  59. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  60. package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
  61. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +2 -2
  62. package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  63. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -2
  64. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  65. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
  66. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  67. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
  68. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  69. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
  70. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  71. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  72. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  73. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  74. package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  75. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  76. package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  77. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  78. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  79. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  80. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  81. package/lib/commonjs/components/Chat/Chat.js +8 -4
  82. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  83. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  84. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  85. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
  86. package/lib/commonjs/components/ImageGallery/ImageGallery.js +19 -19
  87. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  88. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
  89. package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  90. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +28 -11
  91. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  92. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +5 -5
  93. package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
  94. package/lib/commonjs/components/Message/Message.js +6 -6
  95. package/lib/commonjs/components/Message/Message.js.map +1 -1
  96. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +4 -4
  97. package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  98. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +18 -18
  99. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  100. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +5 -5
  101. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  102. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +20 -16
  103. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  104. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
  105. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  106. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +10 -10
  107. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  108. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
  109. package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  110. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +6 -6
  111. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  112. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +9 -9
  113. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  114. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +3 -3
  115. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  116. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +51 -51
  117. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  118. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +145 -64
  119. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  120. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js +240 -0
  121. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.test.js.map +1 -0
  122. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  123. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  124. package/lib/commonjs/components/Message/hooks/useMessageActions.js +11 -11
  125. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  126. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  127. package/lib/commonjs/components/Message/utils/removeReservedFields.js.map +1 -1
  128. package/lib/commonjs/components/MessageInput/AttachButton.js +3 -3
  129. package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
  130. package/lib/commonjs/components/MessageInput/CommandsButton.js +3 -3
  131. package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
  132. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +11 -11
  133. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  134. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +7 -7
  135. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  136. package/lib/commonjs/components/MessageInput/InputButtons.js +6 -6
  137. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  138. package/lib/commonjs/components/MessageInput/MessageInput.js +34 -34
  139. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  140. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +3 -3
  141. package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
  142. package/lib/commonjs/components/MessageInput/SendButton.js +5 -5
  143. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  144. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
  145. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  146. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
  147. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
  148. package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  149. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
  150. package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  151. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
  152. package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  153. package/lib/commonjs/components/MessageList/MessageList.js +26 -26
  154. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  155. package/lib/commonjs/components/MessageList/MessageSystem.js +6 -6
  156. package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
  157. package/lib/commonjs/components/MessageList/TypingIndicator.js +3 -3
  158. package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
  159. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +2 -2
  160. package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  161. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  162. package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
  163. package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  164. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  165. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  166. package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  167. package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
  168. package/lib/commonjs/components/MessageOverlay/MessageActionList.js +3 -3
  169. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
  170. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +6 -6
  171. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  172. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +26 -25
  173. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  174. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +13 -13
  175. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  176. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +19 -19
  177. package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
  178. package/lib/commonjs/components/Reply/Reply.js +8 -8
  179. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  180. package/lib/commonjs/components/Thread/Thread.js +4 -4
  181. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  182. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +12 -12
  183. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  184. package/lib/commonjs/components/docs/data.js +44 -44
  185. package/lib/commonjs/components/docs/data.js.map +1 -1
  186. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
  187. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  188. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  189. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  190. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +2 -2
  191. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  192. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  193. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  194. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  195. package/lib/commonjs/contexts/chatContext/ChatContext.js +2 -2
  196. package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
  197. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  198. package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  199. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +1 -1
  200. package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  201. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
  202. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  203. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +2 -2
  204. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  205. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  206. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  207. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js +2 -2
  208. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  209. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  210. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  211. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
  212. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  213. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +12 -12
  214. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  215. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  216. package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  217. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +2 -2
  218. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  219. package/lib/commonjs/contexts/themeContext/utils/theme.js +7 -6
  220. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  221. package/lib/commonjs/contexts/threadContext/ThreadContext.js +2 -2
  222. package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
  223. package/lib/commonjs/contexts/translationContext/TranslationContext.js +2 -2
  224. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  225. package/lib/commonjs/contexts/typingContext/TypingContext.js +2 -2
  226. package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
  227. package/lib/commonjs/icons/UserAdmin.js +62 -0
  228. package/lib/commonjs/icons/UserAdmin.js.map +1 -0
  229. package/lib/commonjs/icons/index.js +0 -26
  230. package/lib/commonjs/icons/index.js.map +1 -1
  231. package/lib/commonjs/init.js +13 -0
  232. package/lib/commonjs/init.js.map +1 -0
  233. package/lib/commonjs/utils/Streami18n.js.map +1 -1
  234. package/lib/commonjs/utils/getResizedImageUrl.js +8 -5
  235. package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
  236. package/lib/commonjs/utils/utils.js.map +1 -1
  237. package/lib/commonjs/version.json +1 -1
  238. package/lib/module/components/Attachment/Attachment.js +10 -10
  239. package/lib/module/components/Attachment/Attachment.js.map +1 -1
  240. package/lib/module/components/Attachment/AttachmentActions.js +4 -4
  241. package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
  242. package/lib/module/components/Attachment/Card.js +15 -15
  243. package/lib/module/components/Attachment/Card.js.map +1 -1
  244. package/lib/module/components/Attachment/FileAttachment.js +8 -8
  245. package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
  246. package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -4
  247. package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
  248. package/lib/module/components/Attachment/Gallery.js +8 -8
  249. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  250. package/lib/module/components/Attachment/Giphy.js +112 -148
  251. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  252. package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
  253. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
  254. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
  255. package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
  256. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
  257. package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
  258. package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
  259. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +2 -2
  260. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  261. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
  262. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
  263. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
  264. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
  265. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
  266. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
  267. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
  268. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  269. package/lib/module/components/Avatar/Avatar.js.map +1 -1
  270. package/lib/module/components/Channel/Channel.js +13 -13
  271. package/lib/module/components/Channel/Channel.js.map +1 -1
  272. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  273. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  274. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  275. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  276. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  277. package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  278. package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  279. package/lib/module/components/ChannelList/ChannelList.js +2 -2
  280. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  281. package/lib/module/components/ChannelList/ChannelListMessenger.js +14 -14
  282. package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
  283. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  284. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  285. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  286. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  287. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  288. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  289. package/lib/module/components/ChannelList/hooks/listeners/useConnectionRecovered.js.map +1 -1
  290. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  291. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  292. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  293. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  294. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  295. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  296. package/lib/module/components/ChannelList/utils.js.map +1 -1
  297. package/lib/module/components/ChannelPreview/ChannelAvatar.js +2 -2
  298. package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
  299. package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -2
  300. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  301. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
  302. package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
  303. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
  304. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  305. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
  306. package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
  307. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  308. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  309. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
  310. package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
  311. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
  312. package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
  313. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  314. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  315. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  316. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  317. package/lib/module/components/Chat/Chat.js +8 -4
  318. package/lib/module/components/Chat/Chat.js.map +1 -1
  319. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  320. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  321. package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
  322. package/lib/module/components/ImageGallery/ImageGallery.js +19 -19
  323. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  324. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
  325. package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
  326. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +28 -11
  327. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  328. package/lib/module/components/ImageGallery/components/ImageGrid.js +5 -5
  329. package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
  330. package/lib/module/components/Message/Message.js +6 -6
  331. package/lib/module/components/Message/Message.js.map +1 -1
  332. package/lib/module/components/Message/MessageSimple/MessageAvatar.js +4 -4
  333. package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
  334. package/lib/module/components/Message/MessageSimple/MessageContent.js +18 -18
  335. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  336. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +5 -5
  337. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  338. package/lib/module/components/Message/MessageSimple/MessageFooter.js +20 -16
  339. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  340. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
  341. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
  342. package/lib/module/components/Message/MessageSimple/MessageReplies.js +10 -10
  343. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  344. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
  345. package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
  346. package/lib/module/components/Message/MessageSimple/MessageSimple.js +6 -6
  347. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  348. package/lib/module/components/Message/MessageSimple/MessageStatus.js +9 -9
  349. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  350. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +3 -3
  351. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  352. package/lib/module/components/Message/MessageSimple/ReactionList.js +51 -51
  353. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  354. package/lib/module/components/Message/MessageSimple/utils/renderText.js +145 -64
  355. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  356. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js +240 -0
  357. package/lib/module/components/Message/MessageSimple/utils/renderText.test.js.map +1 -0
  358. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  359. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  360. package/lib/module/components/Message/hooks/useMessageActions.js +11 -11
  361. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  362. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  363. package/lib/module/components/Message/utils/removeReservedFields.js.map +1 -1
  364. package/lib/module/components/MessageInput/AttachButton.js +3 -3
  365. package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
  366. package/lib/module/components/MessageInput/CommandsButton.js +3 -3
  367. package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
  368. package/lib/module/components/MessageInput/FileUploadPreview.js +11 -11
  369. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  370. package/lib/module/components/MessageInput/ImageUploadPreview.js +7 -7
  371. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  372. package/lib/module/components/MessageInput/InputButtons.js +6 -6
  373. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  374. package/lib/module/components/MessageInput/MessageInput.js +34 -34
  375. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  376. package/lib/module/components/MessageInput/MoreOptionsButton.js +3 -3
  377. package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
  378. package/lib/module/components/MessageInput/SendButton.js +5 -5
  379. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  380. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
  381. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  382. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
  383. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
  384. package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
  385. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
  386. package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
  387. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
  388. package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
  389. package/lib/module/components/MessageList/MessageList.js +26 -26
  390. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  391. package/lib/module/components/MessageList/MessageSystem.js +6 -6
  392. package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
  393. package/lib/module/components/MessageList/TypingIndicator.js +3 -3
  394. package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
  395. package/lib/module/components/MessageList/TypingIndicatorContainer.js +2 -2
  396. package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
  397. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  398. package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
  399. package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
  400. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  401. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  402. package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
  403. package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
  404. package/lib/module/components/MessageOverlay/MessageActionList.js +3 -3
  405. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
  406. package/lib/module/components/MessageOverlay/MessageActionListItem.js +6 -6
  407. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
  408. package/lib/module/components/MessageOverlay/MessageOverlay.js +26 -25
  409. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  410. package/lib/module/components/MessageOverlay/OverlayReactionList.js +13 -13
  411. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  412. package/lib/module/components/MessageOverlay/OverlayReactions.js +19 -19
  413. package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
  414. package/lib/module/components/Reply/Reply.js +8 -8
  415. package/lib/module/components/Reply/Reply.js.map +1 -1
  416. package/lib/module/components/Thread/Thread.js +4 -4
  417. package/lib/module/components/Thread/Thread.js.map +1 -1
  418. package/lib/module/components/Thread/components/ThreadFooterComponent.js +12 -12
  419. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  420. package/lib/module/components/docs/data.js +44 -44
  421. package/lib/module/components/docs/data.js.map +1 -1
  422. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
  423. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  424. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  425. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  426. package/lib/module/contexts/channelsContext/ChannelsContext.js +2 -2
  427. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  428. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
  429. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  430. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  431. package/lib/module/contexts/chatContext/ChatContext.js +2 -2
  432. package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
  433. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
  434. package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
  435. package/lib/module/contexts/keyboardContext/KeyboardContext.js +1 -1
  436. package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
  437. package/lib/module/contexts/messageContext/MessageContext.js +2 -2
  438. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  439. package/lib/module/contexts/messageInputContext/MessageInputContext.js +2 -2
  440. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  441. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  442. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  443. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js +2 -2
  444. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  445. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  446. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  447. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
  448. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  449. package/lib/module/contexts/overlayContext/OverlayProvider.js +12 -12
  450. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  451. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
  452. package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
  453. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +2 -2
  454. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  455. package/lib/module/contexts/themeContext/utils/theme.js +7 -6
  456. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  457. package/lib/module/contexts/threadContext/ThreadContext.js +2 -2
  458. package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
  459. package/lib/module/contexts/translationContext/TranslationContext.js +2 -2
  460. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  461. package/lib/module/contexts/typingContext/TypingContext.js +2 -2
  462. package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
  463. package/lib/module/icons/UserAdmin.js +62 -0
  464. package/lib/module/icons/UserAdmin.js.map +1 -0
  465. package/lib/module/icons/index.js +0 -26
  466. package/lib/module/icons/index.js.map +1 -1
  467. package/lib/module/init.js +13 -0
  468. package/lib/module/init.js.map +1 -0
  469. package/lib/module/utils/Streami18n.js.map +1 -1
  470. package/lib/module/utils/getResizedImageUrl.js +8 -5
  471. package/lib/module/utils/getResizedImageUrl.js.map +1 -1
  472. package/lib/module/utils/utils.js.map +1 -1
  473. package/lib/module/version.json +1 -1
  474. package/lib/typescript/components/Attachment/Attachment.d.ts +5 -5
  475. package/lib/typescript/components/Attachment/AttachmentActions.d.ts +4 -4
  476. package/lib/typescript/components/Attachment/Card.d.ts +4 -4
  477. package/lib/typescript/components/Attachment/FileAttachment.d.ts +5 -5
  478. package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +4 -4
  479. package/lib/typescript/components/Attachment/Gallery.d.ts +5 -5
  480. package/lib/typescript/components/Attachment/Giphy.d.ts +6 -6
  481. package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +3 -3
  482. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +3 -3
  483. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +3 -3
  484. package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +3 -3
  485. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +3 -3
  486. package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +3 -3
  487. package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +2 -2
  488. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +4 -4
  489. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +3 -2
  490. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +4 -4
  491. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +5 -5
  492. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +9 -9
  493. package/lib/typescript/components/Avatar/Avatar.d.ts +1 -1
  494. package/lib/typescript/components/Channel/Channel.d.ts +7 -7
  495. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +2 -2
  496. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +3 -3
  497. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +3 -3
  498. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +3 -3
  499. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +3 -3
  500. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +2 -2
  501. package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +2 -2
  502. package/lib/typescript/components/ChannelList/ChannelList.d.ts +14 -14
  503. package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +4 -4
  504. package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +5 -5
  505. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +5 -5
  506. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +5 -5
  507. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +5 -5
  508. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +5 -5
  509. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +5 -5
  510. package/lib/typescript/components/ChannelList/hooks/listeners/useConnectionRecovered.d.ts +2 -2
  511. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +4 -4
  512. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +5 -5
  513. package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +5 -5
  514. package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +4 -4
  515. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +2 -2
  516. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +7 -7
  517. package/lib/typescript/components/ChannelList/utils.d.ts +7 -7
  518. package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +3 -3
  519. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +5 -5
  520. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +4 -5
  521. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +5 -5
  522. package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +3 -3
  523. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +3 -3
  524. package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +3 -3
  525. package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +3 -3
  526. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +3 -3
  527. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +4 -4
  528. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +2 -2
  529. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -5
  530. package/lib/typescript/components/Chat/Chat.d.ts +3 -3
  531. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +2 -2
  532. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +2 -2
  533. package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts +2 -2
  534. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +9 -9
  535. package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +10 -10
  536. package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +10 -10
  537. package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +10 -10
  538. package/lib/typescript/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.d.ts +1 -0
  539. package/lib/typescript/components/Message/Message.d.ts +11 -11
  540. package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +4 -4
  541. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +4 -4
  542. package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +5 -5
  543. package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +6 -6
  544. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +4 -4
  545. package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +4 -4
  546. package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +3 -3
  547. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +4 -4
  548. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +4 -4
  549. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +6 -6
  550. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +4 -4
  551. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +19 -5
  552. package/lib/typescript/components/Message/MessageSimple/utils/renderText.test.d.ts +1 -0
  553. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +2 -2
  554. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +2 -2
  555. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +3 -3
  556. package/lib/typescript/components/Message/utils/messageActions.d.ts +5 -5
  557. package/lib/typescript/components/Message/utils/removeReservedFields.d.ts +2 -2
  558. package/lib/typescript/components/MessageInput/AttachButton.d.ts +4 -4
  559. package/lib/typescript/components/MessageInput/CommandsButton.d.ts +4 -4
  560. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +4 -4
  561. package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +4 -4
  562. package/lib/typescript/components/MessageInput/InputButtons.d.ts +5 -5
  563. package/lib/typescript/components/MessageInput/MessageInput.d.ts +4 -4
  564. package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +4 -4
  565. package/lib/typescript/components/MessageInput/SendButton.d.ts +4 -4
  566. package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +2 -2
  567. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +2 -2
  568. package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +2 -2
  569. package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +2 -2
  570. package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +2 -2
  571. package/lib/typescript/components/MessageList/MessageList.d.ts +7 -7
  572. package/lib/typescript/components/MessageList/MessageSystem.d.ts +4 -4
  573. package/lib/typescript/components/MessageList/TypingIndicator.d.ts +2 -2
  574. package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +4 -4
  575. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +5 -5
  576. package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts +2 -2
  577. package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +3 -3
  578. package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +4 -4
  579. package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +4 -4
  580. package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +2 -2
  581. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +8 -5
  582. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +4 -4
  583. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +4 -3
  584. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +4 -4
  585. package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +6 -6
  586. package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +2 -2
  587. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +1 -1
  588. package/lib/typescript/components/Reply/Reply.d.ts +4 -4
  589. package/lib/typescript/components/Thread/Thread.d.ts +7 -7
  590. package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +2 -2
  591. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +2 -2
  592. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +12 -12
  593. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +18 -18
  594. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +19 -19
  595. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +17 -17
  596. package/lib/typescript/contexts/chatContext/ChatContext.d.ts +11 -11
  597. package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +8 -8
  598. package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +2 -2
  599. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +12 -12
  600. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +33 -33
  601. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +2 -2
  602. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +3 -3
  603. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +21 -21
  604. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +57 -57
  605. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +4 -4
  606. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts +2 -2
  607. package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +8 -8
  608. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +20 -20
  609. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +6 -5
  610. package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +10 -10
  611. package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +2 -2
  612. package/lib/typescript/contexts/typingContext/TypingContext.d.ts +8 -8
  613. package/lib/typescript/icons/{Left.d.ts → UserAdmin.d.ts} +1 -1
  614. package/lib/typescript/icons/index.d.ts +0 -2
  615. package/lib/typescript/init.d.ts +2 -0
  616. package/lib/typescript/types/types.d.ts +16 -13
  617. package/lib/typescript/utils/Streami18n.d.ts +4 -4
  618. package/lib/typescript/utils/getResizedImageUrl.d.ts +2 -1
  619. package/lib/typescript/utils/utils.d.ts +21 -21
  620. package/package.json +3 -5
  621. package/src/components/Attachment/Attachment.tsx +15 -56
  622. package/src/components/Attachment/AttachmentActions.tsx +15 -55
  623. package/src/components/Attachment/Card.tsx +15 -48
  624. package/src/components/Attachment/FileAttachment.tsx +14 -48
  625. package/src/components/Attachment/FileAttachmentGroup.tsx +16 -57
  626. package/src/components/Attachment/Gallery.tsx +18 -59
  627. package/src/components/Attachment/Giphy.tsx +82 -125
  628. package/src/components/Attachment/__tests__/buildGallery.test.js +4 -4
  629. package/src/components/Attachment/utils/buildGallery/buildGallery.ts +5 -3
  630. package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +6 -10
  631. package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +5 -5
  632. package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +5 -3
  633. package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +5 -3
  634. package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +5 -3
  635. package/src/components/Attachment/utils/getAspectRatio.ts +4 -4
  636. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +21 -61
  637. package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +5 -3
  638. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +12 -19
  639. package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +14 -21
  640. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +21 -24
  641. package/src/components/Avatar/Avatar.tsx +1 -1
  642. package/src/components/Channel/Channel.tsx +174 -257
  643. package/src/components/Channel/hooks/useCreateChannelContext.ts +4 -19
  644. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +52 -68
  645. package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -19
  646. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +3 -18
  647. package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +16 -32
  648. package/src/components/Channel/hooks/useCreateThreadContext.ts +4 -19
  649. package/src/components/Channel/hooks/useCreateTypingContext.ts +4 -19
  650. package/src/components/ChannelList/ChannelList.tsx +28 -49
  651. package/src/components/ChannelList/ChannelListMessenger.tsx +19 -70
  652. package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +14 -36
  653. package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +13 -35
  654. package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +13 -35
  655. package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +15 -37
  656. package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +13 -35
  657. package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +14 -36
  658. package/src/components/ChannelList/hooks/listeners/useConnectionRecovered.ts +3 -18
  659. package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +11 -33
  660. package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +13 -35
  661. package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +13 -35
  662. package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +9 -31
  663. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +4 -19
  664. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +11 -29
  665. package/src/components/ChannelList/utils.ts +9 -42
  666. package/src/components/ChannelPreview/ChannelAvatar.tsx +5 -26
  667. package/src/components/ChannelPreview/ChannelPreview.tsx +18 -51
  668. package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +11 -21
  669. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +13 -46
  670. package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +5 -26
  671. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +6 -27
  672. package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +5 -26
  673. package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +5 -26
  674. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +7 -28
  675. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +6 -27
  676. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +7 -28
  677. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +27 -78
  678. package/src/components/Chat/Chat.tsx +15 -40
  679. package/src/components/Chat/hooks/useCreateChatContext.ts +4 -19
  680. package/src/components/Chat/hooks/useIsOnline.ts +4 -19
  681. package/src/components/Chat/hooks/useMutedUsers.ts +5 -20
  682. package/src/components/ImageGallery/ImageGallery.tsx +30 -40
  683. package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +19 -11
  684. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +42 -20
  685. package/src/components/ImageGallery/components/ImageGrid.tsx +45 -30
  686. package/src/components/ImageGallery/components/__tests__/ImageGalleryHeader.test.tsx +31 -0
  687. package/src/components/Message/Message.tsx +40 -93
  688. package/src/components/Message/MessageSimple/MessageAvatar.tsx +13 -54
  689. package/src/components/Message/MessageSimple/MessageContent.tsx +18 -61
  690. package/src/components/Message/MessageSimple/MessageDeleted.tsx +17 -58
  691. package/src/components/Message/MessageSimple/MessageFooter.tsx +23 -65
  692. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +13 -54
  693. package/src/components/Message/MessageSimple/MessageReplies.tsx +15 -56
  694. package/src/components/Message/MessageSimple/MessageRepliesAvatars.tsx +5 -26
  695. package/src/components/Message/MessageSimple/MessageSimple.tsx +16 -57
  696. package/src/components/Message/MessageSimple/MessageStatus.tsx +13 -54
  697. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +19 -66
  698. package/src/components/Message/MessageSimple/ReactionList.tsx +47 -88
  699. package/src/components/Message/MessageSimple/utils/renderText.test.tsx +70 -0
  700. package/src/components/Message/MessageSimple/utils/renderText.tsx +89 -74
  701. package/src/components/Message/hooks/useCreateMessageContext.ts +4 -19
  702. package/src/components/Message/hooks/useMessageActionHandlers.ts +8 -23
  703. package/src/components/Message/hooks/useMessageActions.tsx +8 -23
  704. package/src/components/Message/utils/messageActions.ts +7 -34
  705. package/src/components/Message/utils/removeReservedFields.ts +3 -18
  706. package/src/components/MessageInput/AttachButton.tsx +13 -54
  707. package/src/components/MessageInput/CommandsButton.tsx +15 -56
  708. package/src/components/MessageInput/FileUploadPreview.tsx +15 -57
  709. package/src/components/MessageInput/ImageUploadPreview.tsx +13 -55
  710. package/src/components/MessageInput/InputButtons.tsx +13 -54
  711. package/src/components/MessageInput/MessageInput.tsx +25 -66
  712. package/src/components/MessageInput/MoreOptionsButton.tsx +13 -54
  713. package/src/components/MessageInput/SendButton.tsx +13 -54
  714. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +4 -19
  715. package/src/components/MessageInput/hooks/useCooldown.ts +5 -19
  716. package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +3 -18
  717. package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +3 -18
  718. package/src/components/MessageList/InlineLoadingMoreThreadIndicator.tsx +3 -18
  719. package/src/components/MessageList/MessageList.tsx +34 -76
  720. package/src/components/MessageList/MessageSystem.tsx +5 -26
  721. package/src/components/MessageList/TypingIndicator.tsx +3 -18
  722. package/src/components/MessageList/TypingIndicatorContainer.tsx +14 -47
  723. package/src/components/MessageList/hooks/useMessageList.ts +19 -52
  724. package/src/components/MessageList/hooks/useTypingString.ts +5 -20
  725. package/src/components/MessageList/utils/filterTypingUsers.ts +7 -28
  726. package/src/components/MessageList/utils/getDateSeparators.ts +6 -27
  727. package/src/components/MessageList/utils/getGroupStyles.ts +6 -27
  728. package/src/components/MessageList/utils/getLastReceivedMessage.ts +3 -18
  729. package/src/components/MessageList/utils/getReadStates.ts +5 -20
  730. package/src/components/MessageOverlay/MessageActionList.tsx +15 -56
  731. package/src/components/MessageOverlay/MessageActionListItem.tsx +20 -9
  732. package/src/components/MessageOverlay/MessageOverlay.tsx +38 -81
  733. package/src/components/MessageOverlay/OverlayReactionList.tsx +21 -74
  734. package/src/components/MessageOverlay/OverlayReactions.tsx +3 -18
  735. package/src/components/Reply/Reply.tsx +22 -69
  736. package/src/components/Thread/Thread.tsx +20 -53
  737. package/src/components/Thread/components/ThreadFooterComponent.tsx +12 -47
  738. package/src/components/docs/data.js +38 -37
  739. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +9 -7
  740. package/src/contexts/channelContext/ChannelContext.tsx +15 -48
  741. package/src/contexts/channelsContext/ChannelsContext.tsx +22 -59
  742. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +38 -115
  743. package/src/contexts/channelsStateContext/useChannelState.ts +27 -60
  744. package/src/contexts/chatContext/ChatContext.tsx +14 -49
  745. package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +12 -54
  746. package/src/contexts/keyboardContext/KeyboardContext.tsx +13 -7
  747. package/src/contexts/messageContext/MessageContext.tsx +15 -48
  748. package/src/contexts/messageInputContext/MessageInputContext.tsx +61 -110
  749. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +5 -20
  750. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +7 -31
  751. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +24 -71
  752. package/src/contexts/messagesContext/MessagesContext.tsx +60 -99
  753. package/src/contexts/overlayContext/OverlayContext.tsx +18 -26
  754. package/src/contexts/overlayContext/OverlayProvider.tsx +7 -22
  755. package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +13 -53
  756. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +39 -40
  757. package/src/contexts/themeContext/utils/theme.ts +13 -11
  758. package/src/contexts/threadContext/ThreadContext.tsx +13 -46
  759. package/src/contexts/translationContext/TranslationContext.tsx +12 -7
  760. package/src/contexts/typingContext/TypingContext.tsx +11 -44
  761. package/src/icons/UserAdmin.tsx +23 -0
  762. package/src/icons/index.ts +0 -2
  763. package/src/init.ts +5 -0
  764. package/src/types/types.ts +16 -18
  765. package/src/utils/Streami18n.ts +3 -3
  766. package/src/utils/__tests__/getResizedImageUrl.test.js +56 -0
  767. package/src/utils/getResizedImageUrl.ts +15 -13
  768. package/src/utils/utils.ts +63 -128
  769. package/src/version.json +1 -1
  770. package/lib/commonjs/icons/Left.js +0 -38
  771. package/lib/commonjs/icons/Left.js.map +0 -1
  772. package/lib/commonjs/icons/Right.js +0 -38
  773. package/lib/commonjs/icons/Right.js.map +0 -1
  774. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js +0 -100
  775. package/lib/commonjs/styleguideComponents/ArgumentsRenderer.js.map +0 -1
  776. package/lib/commonjs/styleguideComponents/BottomSheet.js +0 -25
  777. package/lib/commonjs/styleguideComponents/BottomSheet.js.map +0 -1
  778. package/lib/commonjs/styleguideComponents/JsDoc.js +0 -87
  779. package/lib/commonjs/styleguideComponents/JsDoc.js.map +0 -1
  780. package/lib/commonjs/styleguideComponents/Markdown.js +0 -12
  781. package/lib/commonjs/styleguideComponents/Markdown.js.map +0 -1
  782. package/lib/commonjs/styleguideComponents/PathlineRenderer.js +0 -92
  783. package/lib/commonjs/styleguideComponents/PathlineRenderer.js.map +0 -1
  784. package/lib/commonjs/styleguideComponents/PropsRenderer.js +0 -267
  785. package/lib/commonjs/styleguideComponents/PropsRenderer.js.map +0 -1
  786. package/lib/commonjs/styleguideComponents/Reanimated.js +0 -2
  787. package/lib/commonjs/styleguideComponents/Reanimated.js.map +0 -1
  788. package/lib/commonjs/styleguideComponents/Wrapper.js +0 -29
  789. package/lib/commonjs/styleguideComponents/Wrapper.js.map +0 -1
  790. package/lib/commonjs/styleguideComponents/register-react-native-web.js +0 -44
  791. package/lib/commonjs/styleguideComponents/register-react-native-web.js.map +0 -1
  792. package/lib/commonjs/styleguideComponents/resolveAssetSource.js +0 -11
  793. package/lib/commonjs/styleguideComponents/resolveAssetSource.js.map +0 -1
  794. package/lib/module/icons/Left.js +0 -38
  795. package/lib/module/icons/Left.js.map +0 -1
  796. package/lib/module/icons/Right.js +0 -38
  797. package/lib/module/icons/Right.js.map +0 -1
  798. package/lib/module/styleguideComponents/ArgumentsRenderer.js +0 -100
  799. package/lib/module/styleguideComponents/ArgumentsRenderer.js.map +0 -1
  800. package/lib/module/styleguideComponents/BottomSheet.js +0 -25
  801. package/lib/module/styleguideComponents/BottomSheet.js.map +0 -1
  802. package/lib/module/styleguideComponents/JsDoc.js +0 -87
  803. package/lib/module/styleguideComponents/JsDoc.js.map +0 -1
  804. package/lib/module/styleguideComponents/Markdown.js +0 -12
  805. package/lib/module/styleguideComponents/Markdown.js.map +0 -1
  806. package/lib/module/styleguideComponents/PathlineRenderer.js +0 -92
  807. package/lib/module/styleguideComponents/PathlineRenderer.js.map +0 -1
  808. package/lib/module/styleguideComponents/PropsRenderer.js +0 -267
  809. package/lib/module/styleguideComponents/PropsRenderer.js.map +0 -1
  810. package/lib/module/styleguideComponents/Reanimated.js +0 -2
  811. package/lib/module/styleguideComponents/Reanimated.js.map +0 -1
  812. package/lib/module/styleguideComponents/Wrapper.js +0 -29
  813. package/lib/module/styleguideComponents/Wrapper.js.map +0 -1
  814. package/lib/module/styleguideComponents/register-react-native-web.js +0 -44
  815. package/lib/module/styleguideComponents/register-react-native-web.js.map +0 -1
  816. package/lib/module/styleguideComponents/resolveAssetSource.js +0 -11
  817. package/lib/module/styleguideComponents/resolveAssetSource.js.map +0 -1
  818. package/lib/typescript/icons/Right.d.ts +0 -3
  819. package/src/icons/Left.tsx +0 -12
  820. package/src/icons/Right.tsx +0 -12
  821. package/src/styleguideComponents/ArgumentsRenderer.tsx +0 -60
  822. package/src/styleguideComponents/BottomSheet.tsx +0 -3
  823. package/src/styleguideComponents/JsDoc.tsx +0 -45
  824. package/src/styleguideComponents/Markdown.tsx +0 -1
  825. package/src/styleguideComponents/PathlineRenderer.tsx +0 -45
  826. package/src/styleguideComponents/PropsRenderer.tsx +0 -141
  827. package/src/styleguideComponents/Reanimated.tsx +0 -0
  828. package/src/styleguideComponents/Wrapper.tsx +0 -7
  829. package/src/styleguideComponents/register-react-native-web.js +0 -13
  830. package/src/styleguideComponents/resolveAssetSource.js +0 -2
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", {
3
3
  });
4
4
  exports.users = exports.translationContext = exports.threadMessages = exports.thread = exports.suggestionsContext = exports.messages = exports.messageWithUrlPreview = exports.messageWithImages = exports.message = exports.client = exports.channels = exports.channelContext = exports.channel = exports.MessageMock = void 0;
5
5
 
6
- var StreamChat = require('stream-chat').StreamChat;
7
-
8
6
  var Dayjs = require('dayjs');
9
7
 
8
+ var StreamChat = require('stream-chat').StreamChat;
9
+
10
10
  var client = new StreamChat('qk4nn7rpcn75');
11
11
  exports.client = client;
12
12
  client.connectUser({
@@ -18,8 +18,8 @@ var channel = client.channel('messaging', 'general', {
18
18
  });
19
19
  exports.channel = channel;
20
20
  var channelContext = {
21
- client: client,
22
- channel: channel
21
+ channel: channel,
22
+ client: client
23
23
  };
24
24
  exports.channelContext = channelContext;
25
25
  var translationContext = {
@@ -32,15 +32,15 @@ var translationContext = {
32
32
  };
33
33
  exports.translationContext = translationContext;
34
34
  var suggestionsContext = {
35
- openSuggestions: function openSuggestions() {},
36
35
  closeSuggestions: function closeSuggestions() {},
36
+ openSuggestions: function openSuggestions() {},
37
37
  setInputBoxContainerRef: function setInputBoxContainerRef() {},
38
38
  updateSuggestions: function updateSuggestions() {}
39
39
  };
40
40
  exports.suggestionsContext = suggestionsContext;
41
41
  var filters = {
42
- type: 'team',
43
- example: 1
42
+ example: 1,
43
+ type: 'team'
44
44
  };
45
45
  var sort = {
46
46
  last_message_at: -1
@@ -50,10 +50,12 @@ var channels = client.queryChannels(filters, sort, {
50
50
  });
51
51
  exports.channels = channels;
52
52
  var message = {
53
+ __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
53
54
  attachments: [],
54
55
  command: '',
55
56
  created_at: '2019-01-25T00:18:59.675Z',
56
57
  html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
58
+ id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
57
59
  own_reactions: [{
58
60
  created_at: '2019-01-25T16:24:00.173967Z',
59
61
  id: 142,
@@ -113,8 +115,8 @@ var message = {
113
115
  }
114
116
  }],
115
117
  reply_count: 0,
118
+ status: 'received',
116
119
  text: 'Hey this is getstream message',
117
- id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
118
120
  type: 'regular',
119
121
  updated_at: '2019-01-25T16:24:00.181Z',
120
122
  user: {
@@ -125,12 +127,11 @@ var message = {
125
127
  online: true,
126
128
  role: 'user',
127
129
  updated_at: '2019-01-25T16:23:47.052538Z'
128
- },
129
- __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
130
- status: 'received'
130
+ }
131
131
  };
132
132
  exports.message = message;
133
133
  var messageWithImages = {
134
+ __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
134
135
  attachments: [{
135
136
  image_url: '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',
136
137
  thumb_url: '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',
@@ -151,6 +152,7 @@ var messageWithImages = {
151
152
  command: '',
152
153
  created_at: '2019-01-25T00:18:59.675Z',
153
154
  html: '',
155
+ id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
154
156
  own_reactions: [{
155
157
  created_at: '2019-01-25T16:24:00.173967Z',
156
158
  id: 142,
@@ -210,8 +212,8 @@ var messageWithImages = {
210
212
  }
211
213
  }],
212
214
  reply_count: 0,
215
+ status: 'received',
213
216
  text: 'This message contains images',
214
- id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
215
217
  type: 'regular',
216
218
  updated_at: '2019-01-25T16:24:00.181Z',
217
219
  user: {
@@ -222,12 +224,11 @@ var messageWithImages = {
222
224
  online: true,
223
225
  role: 'user',
224
226
  updated_at: '2019-01-25T16:23:47.052538Z'
225
- },
226
- __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
227
- status: 'received'
227
+ }
228
228
  };
229
229
  exports.messageWithImages = messageWithImages;
230
230
  var messageWithUrlPreview = {
231
+ __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
231
232
  attachments: [{
232
233
  image_url: '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',
233
234
  og_scrape_url: 'https://unsplash.com/photos/lxuB4abGzXc',
@@ -240,6 +241,7 @@ var messageWithUrlPreview = {
240
241
  command: '',
241
242
  created_at: '2019-01-25T00:18:59.675Z',
242
243
  html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
244
+ id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
243
245
  own_reactions: [{
244
246
  created_at: '2019-01-25T16:24:00.173967Z',
245
247
  id: 142,
@@ -299,8 +301,8 @@ var messageWithUrlPreview = {
299
301
  }
300
302
  }],
301
303
  reply_count: 0,
304
+ status: 'received',
302
305
  text: 'https://unsplash.com/photos/lxuB4abGzXc',
303
- id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',
304
306
  type: 'regular',
305
307
  updated_at: '2019-01-25T16:24:00.181Z',
306
308
  user: {
@@ -311,12 +313,11 @@ var messageWithUrlPreview = {
311
313
  online: true,
312
314
  role: 'user',
313
315
  updated_at: '2019-01-25T16:23:47.052538Z'
314
- },
315
- __html: '<p><a href="https://unsplash.com/photos/lxuB4abGzXc" rel="nofollow">https://unsplash.com/photos/lxuB4abGzXc</a></p>\n',
316
- status: 'received'
316
+ }
317
317
  };
318
318
  exports.messageWithUrlPreview = messageWithUrlPreview;
319
319
  var thread = {
320
+ __html: '<p>this place looks amazing: <a href="https://unsplash.com/photos/f3hDGOHptrM" rel="nofollow">https://unsplash.com/photos/f3hDGOHptrM</a></p>\n',
320
321
  attachments: [{
321
322
  image_url: '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',
322
323
  og_scrape_url: 'https://unsplash.com/photos/f3hDGOHptrM',
@@ -329,12 +330,13 @@ var thread = {
329
330
  command: '',
330
331
  created_at: '2019-01-25T21:25:45.306Z',
331
332
  html: '<p>this place looks amazing: <a href="https://unsplash.com/photos/f3hDGOHptrM" rel="nofollow">https://unsplash.com/photos/f3hDGOHptrM</a></p>\n',
333
+ id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',
332
334
  own_reactions: [],
333
335
  reaction_counts: null,
334
336
  reactions: [],
335
337
  reply_count: 2,
338
+ status: 'received',
336
339
  text: 'this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM',
337
- id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',
338
340
  type: 'regular',
339
341
  updated_at: '2019-01-25T21:25:45.306Z',
340
342
  user: {
@@ -343,23 +345,23 @@ var thread = {
343
345
  online: true,
344
346
  role: 'user',
345
347
  updated_at: '2019-01-25T21:27:39.606466Z'
346
- },
347
- __html: '<p>this place looks amazing: <a href="https://unsplash.com/photos/f3hDGOHptrM" rel="nofollow">https://unsplash.com/photos/f3hDGOHptrM</a></p>\n',
348
- status: 'received'
348
+ }
349
349
  };
350
350
  exports.thread = thread;
351
351
  var threadMessages = [{
352
+ __html: '<p>whow, where is that?</p>\n',
352
353
  attachments: [],
353
354
  command: '',
354
355
  created_at: new Date('2019-01-25T21:26:06.346Z'),
355
356
  html: '<p>whow, where is that?</p>\n',
357
+ id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',
356
358
  own_reactions: [],
357
359
  parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
358
360
  reaction_counts: null,
359
361
  reactions: [],
360
362
  reply_count: 0,
363
+ status: 'received',
361
364
  text: 'whow, where is that?',
362
- id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',
363
365
  type: 'reply',
364
366
  updated_at: '2019-01-25T21:26:06.346Z',
365
367
  user: {
@@ -371,21 +373,21 @@ var threadMessages = [{
371
373
  online: false,
372
374
  role: 'user',
373
375
  updated_at: '2019-01-25T21:27:39.606466Z'
374
- },
375
- __html: '<p>whow, where is that?</p>\n',
376
- status: 'received'
376
+ }
377
377
  }, {
378
+ __html: '<p>it’s soo green, amazing</p>\n',
378
379
  attachments: [],
379
380
  command: '',
380
381
  created_at: new Date('2019-01-25T21:26:11.863Z'),
381
382
  html: '<p>it’s soo green, amazing</p>\n',
383
+ id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',
382
384
  own_reactions: [],
383
385
  parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
384
386
  reaction_counts: null,
385
387
  reactions: [],
386
388
  reply_count: 0,
389
+ status: 'received',
387
390
  text: "it's soo green, amazing",
388
- id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',
389
391
  type: 'reply',
390
392
  updated_at: '2019-01-25T21:26:11.863Z',
391
393
  user: {
@@ -397,23 +399,23 @@ var threadMessages = [{
397
399
  online: false,
398
400
  role: 'user',
399
401
  updated_at: '2019-01-25T21:27:39.606466Z'
400
- },
401
- __html: '<p>it’s soo green, amazing</p>\n',
402
- status: 'received'
402
+ }
403
403
  }];
404
404
  exports.threadMessages = threadMessages;
405
405
  var messages = [{
406
+ __html: '<p>whow, where is that?</p>\n',
406
407
  attachments: [],
407
408
  command: '',
408
409
  created_at: new Date('2019-01-25T21:26:06.346Z'),
409
410
  html: '<p>whow, where is that?</p>\n',
411
+ id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',
410
412
  own_reactions: [],
411
413
  parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
412
414
  reaction_counts: null,
413
415
  reactions: [],
414
416
  reply_count: 0,
417
+ status: 'received',
415
418
  text: 'whow, where is that?',
416
- id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',
417
419
  type: 'reply',
418
420
  updated_at: '2019-01-25T21:26:06.346Z',
419
421
  user: {
@@ -425,21 +427,21 @@ var messages = [{
425
427
  online: false,
426
428
  role: 'user',
427
429
  updated_at: '2019-01-25T21:27:39.606466Z'
428
- },
429
- __html: '<p>whow, where is that?</p>\n',
430
- status: 'received'
430
+ }
431
431
  }, {
432
+ __html: '<p>it’s soo green, amazing</p>\n',
432
433
  attachments: [],
433
434
  command: '',
434
435
  created_at: new Date('2019-01-25T21:26:11.863Z'),
435
436
  html: '<p>it’s soo green, amazing</p>\n',
437
+ id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',
436
438
  own_reactions: [],
437
439
  parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',
438
440
  reaction_counts: null,
439
441
  reactions: [],
440
442
  reply_count: 0,
443
+ status: 'received',
441
444
  text: "it's soo green, amazing",
442
- id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',
443
445
  type: 'reply',
444
446
  updated_at: '2019-01-25T21:26:11.863Z',
445
447
  user: {
@@ -451,9 +453,7 @@ var messages = [{
451
453
  online: false,
452
454
  role: 'user',
453
455
  updated_at: '2019-01-25T21:27:39.606466Z'
454
- },
455
- __html: '<p>it’s soo green, amazing</p>\n',
456
- status: 'received'
456
+ }
457
457
  }];
458
458
  exports.messages = messages;
459
459
  var users = [{
@@ -466,16 +466,16 @@ var users = [{
466
466
  }];
467
467
  exports.users = users;
468
468
  var MessageMock = {
469
- handleFlag: console.log,
470
- handleMute: console.log,
471
- handleEdit: console.log,
472
- handleDelete: console.log,
473
469
  canDeleteMessage: function canDeleteMessage() {
474
470
  return true;
475
471
  },
476
472
  canEditMessage: function canEditMessage() {
477
473
  return true;
478
- }
474
+ },
475
+ handleDelete: console.log,
476
+ handleEdit: console.log,
477
+ handleFlag: console.log,
478
+ handleMute: console.log
479
479
  };
480
480
  exports.MessageMock = MessageMock;
481
481
 
@@ -1 +1 @@
1
- {"version":3,"sources":["data.js"],"names":["StreamChat","require","Dayjs","client","connectUser","id","channel","image","name","channelContext","translationContext","t","text","tDateTimeParser","date","suggestionsContext","openSuggestions","closeSuggestions","setInputBoxContainerRef","updateSuggestions","filters","type","example","sort","last_message_at","channels","queryChannels","subscribe","message","attachments","command","created_at","html","own_reactions","message_id","user","last_active","online","role","updated_at","reaction_counts","like","love","reactions","reply_count","__html","status","messageWithImages","image_url","thumb_url","messageWithUrlPreview","og_scrape_url","title","title_link","thread","threadMessages","Date","parent_id","invisible","mutes","messages","users","MessageMock","handleFlag","console","log","handleMute","handleEdit","handleDelete","canDeleteMessage","canEditMessage","dynamicallyLoadScript","url","Promise","resolve","reject","script","document","createElement","src","onload","onerror","Error","body","appendChild"],"mappings":";;;;;AAEA,IAAMA,UAAU,GAAGC,OAAO,CAAC,aAAD,CAAP,CAAuBD,UAA1C;;AACA,IAAME,KAAK,GAAGD,OAAO,CAAC,OAAD,CAArB;;AACO,IAAME,MAAM,GAAG,IAAIH,UAAJ,CAAe,cAAf,CAAf;;AAEPG,MAAM,CAACC,WAAP,CACE;AACEC,EAAAA,EAAE,EAAE;AADN,CADF,EAIE,kIAJF;AAOO,IAAMC,OAAO,GAAGH,MAAM,CAACG,OAAP,CAAe,WAAf,EAA4B,SAA5B,EAAuC;AAC5DC,EAAAA,KAAK,EACH,8EAF0D;AAG5DC,EAAAA,IAAI,EAAE;AAHsD,CAAvC,CAAhB;;AAMA,IAAMC,cAAc,GAAG;AAC5BN,EAAAA,MAAM,EAANA,MAD4B;AAE5BG,EAAAA,OAAO,EAAPA;AAF4B,CAAvB;;AAKA,IAAMI,kBAAkB,GAAG;AAChCC,EAAAA,CAAC,EAAE,WAACC,IAAD;AAAA,WAAUA,IAAV;AAAA,GAD6B;AAEhCC,EAAAA,eAAe,EAAE,yBAACC,IAAD;AAAA,WAAUZ,KAAK,CAACY,IAAD,CAAf;AAAA;AAFe,CAA3B;;AAIA,IAAMC,kBAAkB,GAAG;AAChCC,EAAAA,eAAe,EAAE,2BAA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,CAACI,MAAP,GAAgBN,OAAhB;;AACAE,IAAAA,MAAM,CAACK,OAAP,GAAiB;AAAA,aAAMN,MAAM,CAAC,IAAIO,KAAJ,yBAAgCV,GAAhC,OAAD,CAAZ;AAAA,KAAjB;;AACAK,IAAAA,QAAQ,CAACM,IAAT,CAAcC,WAAd,CAA0BR,MAA1B;AACD,GANM,CAAP;AAOD;;AACDL,qBAAqB,CAAC,gCAAD,CAArB","sourcesContent":["/* global require */\n\nconst StreamChat = require('stream-chat').StreamChat;\nconst Dayjs = require('dayjs');\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 client,\n channel,\n};\n\nexport const translationContext = {\n t: (text) => text,\n tDateTimeParser: (date) => Dayjs(date),\n};\nexport const suggestionsContext = {\n openSuggestions: () => {},\n closeSuggestions: () => {},\n setInputBoxContainerRef: () => {},\n updateSuggestions: () => {},\n};\n\nconst filters = { type: 'team', example: 1 };\nconst sort = { last_message_at: -1 };\n\nexport const channels = client.queryChannels(filters, sort, {\n subscribe: true,\n});\n\nexport const message = {\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 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 text: 'Hey this is getstream message',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\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 __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n status: 'received',\n};\n\nexport const messageWithImages = {\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 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 text: 'This message contains images',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\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 __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n status: 'received',\n};\n\nexport const messageWithUrlPreview = {\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 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 text: 'https://unsplash.com/photos/lxuB4abGzXc',\n id: 'thierry-e298f569-8745-407f-a02b-f75c0206612f',\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 __html:\n '<p><a href=\"https://unsplash.com/photos/lxuB4abGzXc\" rel=\"nofollow\">https://unsplash.com/photos/lxuB4abGzXc</a></p>\\n',\n status: 'received',\n};\n\nexport const thread = {\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 own_reactions: [],\n reaction_counts: null,\n reactions: [],\n reply_count: 2,\n text: 'this place looks amazing: https://unsplash.com/photos/f3hDGOHptrM',\n id: 'thierry-ec4eac2b-1278-4f49-8b20-2ebcd76dace5',\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 __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 status: 'received',\n};\n\nexport const threadMessages = [\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 own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n text: 'whow, where is that?',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\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 __html: '<p>whow, where is that?</p>\\n',\n status: 'received',\n },\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 own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n text: \"it's soo green, amazing\",\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\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 __html: '<p>it’s soo green, amazing</p>\\n',\n status: 'received',\n },\n];\n\nexport const messages = [\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 own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n text: 'whow, where is that?',\n id: 'thierry-97a02ade-3a38-4400-9377-001c10fc2663',\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 __html: '<p>whow, where is that?</p>\\n',\n status: 'received',\n },\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 own_reactions: [],\n parent_id: '6312fb0b-0c94-4107-a036-376ac5ab650b',\n reaction_counts: null,\n reactions: [],\n reply_count: 0,\n text: \"it's soo green, amazing\",\n id: 'thierry-264fdc4d-03c5-4f93-b97c-cfe5612968aa',\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 __html: '<p>it’s soo green, amazing</p>\\n',\n status: 'received',\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 handleFlag: console.log,\n handleMute: console.log,\n handleEdit: console.log,\n handleDelete: console.log,\n canDeleteMessage: () => true,\n canEditMessage: () => true,\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"]}
1
+ {"version":3,"sources":["data.js"],"names":["Dayjs","require","StreamChat","client","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"],"mappings":";;;;;AACA,IAAMA,KAAK,GAAGC,OAAO,CAAC,OAAD,CAArB;;AACA,IAAMC,UAAU,GAAGD,OAAO,CAAC,aAAD,CAAP,CAAuBC,UAA1C;;AACO,IAAMC,MAAM,GAAG,IAAID,UAAJ,CAAe,cAAf,CAAf;;AAEPC,MAAM,CAACC,WAAP,CACE;AACEC,EAAAA,EAAE,EAAE;AADN,CADF,EAIE,kIAJF;AAOO,IAAMC,OAAO,GAAGH,MAAM,CAACG,OAAP,CAAe,WAAf,EAA4B,SAA5B,EAAuC;AAC5DC,EAAAA,KAAK,EACH,8EAF0D;AAG5DC,EAAAA,IAAI,EAAE;AAHsD,CAAvC,CAAhB;;AAMA,IAAMC,cAAc,GAAG;AAC5BH,EAAAA,OAAO,EAAPA,OAD4B;AAE5BH,EAA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AU,EAAEJ,OAAO,CAACC;AANK,CAApB;;;AAUP,SAASI,qBAAT,CAA+BC,GAA/B,EAAoC;AAClC,SAAO,IAAIC,OAAJ,CAAY,UAASC,OAAT,EAAkBC,MAAlB,EAA0B;AAC3C,QAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAT,CAAuB,QAAvB,CAAf;AACAF,IAAAA,MAAM,CAACG,GAAP,GAAaP,GAAb;AACAI,IAAAA,MAAM,CAACI,MAAP,GAAgBN,OAAhB;;AACAE,IAAAA,MAAM,CAACK,OAAP,GAAiB;AAAA,aAAMN,MAAM,CAAC,IAAIO,KAAJ,yBAAgCV,GAAhC,OAAD,CAAZ;AAAA,KAAjB;;AACAK,IAAAA,QAAQ,CAACM,IAAT,CAAcC,WAAd,CAA0BR,MAA1B;AACD,GANM,CAAP;AAOD;;AACDL,qBAAqB,CAAC,gCAAD,CAArB","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"]}
@@ -104,7 +104,7 @@ var withAttachmentPickerContext = function withAttachmentPickerContext(Component
104
104
  __self: _this,
105
105
  __source: {
106
106
  fileName: _jsxFileName,
107
- lineNumber: 128,
107
+ lineNumber: 130,
108
108
  columnNumber: 12
109
109
  }
110
110
  }));
@@ -1 +1 @@
1
- {"version":3,"sources":["AttachmentPickerContext.tsx"],"names":["AttachmentPickerContext","React","createContext","AttachmentPickerProvider","children","value","bottomInsetValue","bottomInset","topInsetValue","topInset","setBottomInset","maxNumberOfFiles","setMaxNumberOfFiles","selectedImages","setSelectedImages","selectedPicker","setSelectedPicker","setTopInset","combinedValue","useAttachmentPickerContext","withAttachmentPickerContext","Component","WithAttachmentPickerContextComponent","props","attachmentPickerContext","displayName"],"mappings":";;;;;;;;;;;;;AAAA;;AAIA;;;;;;;;;AAoDO,IAAMA,uBAAuB,GAAGC,kBAAMC,aAAN,CACrC,EADqC,CAAhC;;;;AAIA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAA2B,OAejC;AAAA;;AAAA,MAdLC,QAcK,QAdLA,QAcK;AAAA,MAbLC,KAaK,QAbLA,KAaK;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AA,QAAQ,EAARA;AAXiB,IAAnB;AAcA,SACE,gCAAC,uBAAD,CAAyB,QAAzB;AACE,IAAA,KAAK,EAAES,aADT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAGGd,QAHH,CADF;AAOD,CAtDM;;;;AAwDA,IAAMe,0BAA0B,GAAG,SAA7BA,0BAA6B;AAAA,SACxC,uBAAWnB,uBAAX,CADwC;AAAA,CAAnC;;;;AAGA,IAAMoB,2BAA2B,GAAG,SAA9BA,2BAA8B,CACzCC,SADyC,EAEiB;AAC1D,MAAMC,oCAAoC,GAAG,SAAvCA,oCAAuC,CAC3CC,KAD2C,EAExC;AACH,QAAMC,uBAAuB,GAAGL,0BAA0B,EAA1D;AAEA,WAAO,gCAAC,SAAD,gCAAgBI,KAAhB,EAAiCC,uBAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAP;AACD,GAND;;AAOAF,EAAAA,oCAAoC,CAACG,WAArC,mCAAiF,oCAC/EJ,SAD+E,CAAjF;AAGA,SAAOC,oCAAP;AACD,CAdM","sourcesContent":["import React, { PropsWithChildren, useContext, useEffect, useState } from 'react';\n\nimport type { Asset } from '../../native';\nimport type { UnknownType } from '../../types/types';\nimport { getDisplayName } from '../utils/getDisplayName';\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/master/screenshots/docs/1.png)\n *\n * **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/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/master/screenshots/docs/1.png)\n *\n * **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/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/master/screenshots/docs/1.png)\n *\n * **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/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 selectedImages: Asset[];\n setBottomInset: React.Dispatch<React.SetStateAction<number>>;\n setMaxNumberOfFiles: React.Dispatch<React.SetStateAction<number>>;\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<AttachmentPickerContextValue>(\n {} 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 [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 selectedImages,\n selectedPicker,\n setBottomInset,\n setMaxNumberOfFiles,\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 useContext(AttachmentPickerContext) as unknown as AttachmentPickerContextValue;\n\nexport const withAttachmentPickerContext = <P extends UnknownType>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof AttachmentPickerContextValue>> => {\n const WithAttachmentPickerContextComponent = (\n props: Omit<P, keyof AttachmentPickerContextValue>,\n ) => {\n const attachmentPickerContext = useAttachmentPickerContext();\n\n return <Component {...(props as P)} {...attachmentPickerContext} />;\n };\n WithAttachmentPickerContextComponent.displayName = `WithAttachmentPickerContext${getDisplayName(\n Component,\n )}`;\n return WithAttachmentPickerContextComponent;\n};\n"]}
1
+ {"version":3,"sources":["AttachmentPickerContext.tsx"],"names":["AttachmentPickerContext","React","createContext","AttachmentPickerProvider","children","value","bottomInsetValue","bottomInset","topInsetValue","topInset","setBottomInset","maxNumberOfFiles","setMaxNumberOfFiles","selectedImages","setSelectedImages","selectedPicker","setSelectedPicker","setTopInset","combinedValue","useAttachmentPickerContext","withAttachmentPickerContext","Component","WithAttachmentPickerContextComponent","props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iB;AAIjBL,IAAAA,cAAc,EAAdA,cAJiB;AAKjBE,IAAAA,mBAAmB,EAAnBA,mBALiB;AAMjBE,IAAAA,iBAAiB,EAAjBA,iBANiB;AAOjBE,IAAAA,iBAAiB,EAAjBA,iBAPiB;AAQjBC,IAAAA,WAAW,EAAXA;AARiB,KASdZ,KATc;AAUjBE,IAAAA,WAAW,EAAXA,WAViB;AAWjBE,IAAAA,QAAQ,EAARA;AAXiB,IAAnB;AAcA,SACE,gCAAC,uBAAD,CAAyB,QAAzB;AACE,IAAA,KAAK,EAAES,aADT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAGGd,QAHH,CADF;AAOD,CAtDM;;;;AAwDA,IAAMe,0BAA0B,GAAG,SAA7BA,0BAA6B;AAAA,SACxC,uBAAWnB,uBAAX,CADwC;AAAA,CAAnC;;;;AAGA,IAAMoB,2BAA2B,GAAG,SAA9BA,2BAA8B,CAGzCC,SAHyC,EAIkC;AAC3E,MAAMC,oCAAoC,GAAG,SAAvCA,oCAAuC,CAC3CC,KAD2C,EAExC;AACH,QAAMC,uBAAuB,GAAGL,0BAA0B,EAA1D;AAEA,WAAO,gCAAC,SAAD,gCAAgBI,KAAhB,EAAkDC,uBAAlD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAP;AACD,GAND;;AAOAF,EAAAA,oCAAoC,CAACG,WAArC,mCAAiF,oCAC/EJ,SAD+E,CAAjF;AAGA,SAAOC,oCAAP;AACD,CAhBM","sourcesContent":["import React, { PropsWithChildren, useContext, useEffect, useState } from 'react';\n\nimport type { Asset } from '../../native';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { getDisplayName } from '../utils/getDisplayName';\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/master/screenshots/docs/1.png)\n *\n * **Default: ** [CameraSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/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/master/screenshots/docs/1.png)\n *\n * **Default: ** [FileSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/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/master/screenshots/docs/1.png)\n *\n * **Default: ** [ImageSelectorIcon](https://github.com/GetStream/stream-chat-react-native/blob/master/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 selectedImages: Asset[];\n setBottomInset: React.Dispatch<React.SetStateAction<number>>;\n setMaxNumberOfFiles: React.Dispatch<React.SetStateAction<number>>;\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<AttachmentPickerContextValue>(\n {} 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 [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 selectedImages,\n selectedPicker,\n setBottomInset,\n setMaxNumberOfFiles,\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 useContext(AttachmentPickerContext) as unknown as AttachmentPickerContextValue;\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"]}
@@ -32,7 +32,7 @@ var ChannelProvider = function ChannelProvider(_ref) {
32
32
  __self: _this,
33
33
  __source: {
34
34
  fileName: _jsxFileName,
35
- lineNumber: 201,
35
+ lineNumber: 180,
36
36
  columnNumber: 3
37
37
  }
38
38
  }, children);
@@ -53,7 +53,7 @@ var withChannelContext = function withChannelContext(Component) {
53
53
  __self: _this,
54
54
  __source: {
55
55
  fileName: _jsxFileName,
56
- lineNumber: 238,
56
+ lineNumber: 205,
57
57
  columnNumber: 12
58
58
  }
59
59
  }));
@@ -1 +1 @@
1
- {"version":3,"sources":["ChannelContext.tsx"],"names":["ChannelContext","React","createContext","ChannelProvider","children","value","useChannelContext","withChannelContext","Component","WithChannelContextComponent","props","channelContext","displayName"],"mappings":";;;;;;;;;;;AAAA;;AAgBA;;;;;;;;;AAwKO,IAAMA,cAAc,GAAGC,kBAAMC,aAAN,CAAoB,EAApB,CAAvB;;;;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB;AAAA,MAS7BC,QAT6B,QAS7BA,QAT6B;AAAA,MAU7BC,KAV6B,QAU7BA,KAV6B;AAAA,SAc7B,gCAAC,cAAD,CAAgB,QAAhB;AAAyB,IAAA,KAAK,EAAEA,KAAhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGD,QADH,CAd6B;AAAA,CAAxB;;;;AAmBA,IAAME,iBAAiB,GAAG,SAApBA,iBAAoB;AAAA,SAQ1B,uBAAWN,cAAX,CAR0B;AAAA,CAA1B;;;;AAeA,IAAMO,kBAAkB,GAAG,SAArBA,kBAAqB,CAUhCC,SAVgC,EAW6C;AAC7E,MAAMC,2BAA2B,GAAG,SAA9BA,2BAA8B,CAClCC,KADkC,EAE/B;AACH,QAAMC,cAAc,GAAGL,iBAAiB,EAAxC;AAEA,WAAO,gCAAC,SAAD,gCAAgBI,KAAhB,EAAiCC,cAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAP;AACD,GAND;;AAOAF,EAAAA,2BAA2B,CAACG,WAA5B,0BAA+D,oCAAeJ,SAAf,CAA/D;AACA,SAAOC,2BAAP;AACD,CArBM","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 {\n DefaultAttachmentType,\n DefaultChannelType,\n DefaultCommandType,\n DefaultEventType,\n DefaultMessageType,\n DefaultReactionType,\n DefaultUserType,\n UnknownType,\n} from '../../types/types';\nimport { getDisplayName } from '../utils/getDisplayName';\n\nexport type ChannelContextValue<\n At extends UnknownType = DefaultAttachmentType,\n Ch extends UnknownType = DefaultChannelType,\n Co extends string = DefaultCommandType,\n Ev extends UnknownType = DefaultEventType,\n Me extends UnknownType = DefaultMessageType,\n Re extends UnknownType = DefaultReactionType,\n Us extends UnknownType = DefaultUserType,\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<At, Ch, Co, Ev, Me, Re, Us>;\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/master/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 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<At, Ch, Co, Ev, Me, Re, Us>['members'];\n /**\n * Custom network down indicator to override the Stream default\n */\n NetworkDownIndicator: React.ComponentType;\n read: ChannelState<At, Ch, Co, Ev, Me, Re, Us>['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<At, Ch, Co, Ev, Me, Re, Us>['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/master/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<At, Ch, Co, Ev, Me, Re, Us>['watcher_count'];\n};\n\nexport const ChannelContext = React.createContext({} as ChannelContextValue);\n\nexport const ChannelProvider = <\n At extends UnknownType = DefaultAttachmentType,\n Ch extends UnknownType = DefaultChannelType,\n Co extends string = DefaultCommandType,\n Ev extends UnknownType = DefaultEventType,\n Me extends UnknownType = DefaultMessageType,\n Re extends UnknownType = DefaultReactionType,\n Us extends UnknownType = DefaultUserType,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value: ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>;\n}>) => (\n <ChannelContext.Provider value={value as unknown as ChannelContextValue}>\n {children}\n </ChannelContext.Provider>\n);\n\nexport const useChannelContext = <\n At extends UnknownType = DefaultAttachmentType,\n Ch extends UnknownType = DefaultChannelType,\n Co extends string = DefaultCommandType,\n Ev extends UnknownType = DefaultEventType,\n Me extends UnknownType = DefaultMessageType,\n Re extends UnknownType = DefaultReactionType,\n Us extends UnknownType = DefaultUserType,\n>() => useContext(ChannelContext) as unknown as ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>;\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 At extends UnknownType = DefaultAttachmentType,\n Ch extends UnknownType = DefaultChannelType,\n Co extends string = DefaultCommandType,\n Ev extends UnknownType = DefaultEventType,\n Me extends UnknownType = DefaultMessageType,\n Re extends UnknownType = DefaultReactionType,\n Us extends UnknownType = DefaultUserType,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>>> => {\n const WithChannelContextComponent = (\n props: Omit<P, keyof ChannelContextValue<At, Ch, Co, Ev, Me, Re, Us>>,\n ) => {\n const channelContext = useChannelContext<At, Ch, Co, Ev, Me, Re, Us>();\n\n return <Component {...(props as P)} {...channelContext} />;\n };\n WithChannelContextComponent.displayName = `WithChannelContext${getDisplayName(Component)}`;\n return WithChannelContextComponent;\n};\n"]}
1
+ {"version":3,"sources":["ChannelContext.tsx"],"names":["ChannelContext","React","createContext","ChannelProvider","children","value","useChannelContext","withChannelContext","Component","WithChannelContextComponent","props","channelContext","displayName"],"mappings":";;;;;;;;;;;AAAA;;AAOA;;;;;;;;;AAkKO,IAAMA,cAAc,GAAGC,kBAAMC,aAAN,CAAoB,EAApB,CAAvB;;;;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB;AAAA,MAG7BC,QAH6B,QAG7BA,QAH6B;AAAA,MAI7BC,KAJ6B,QAI7BA,KAJ6B;AAAA,SAQ7B,gCAAC,cAAD,CAAgB,QAAhB;AAAyB,IAAA,KAAK,EAAEA,KAAhC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACGD,QADH,CAR6B;AAAA,CAAxB;;;;AAaA,IAAME,iBAAiB,GAAG,SAApBA,iBAAoB;AAAA,SAE1B,uBAAWN,cAAX,CAF0B;AAAA,CAA1B;;;;AASA,IAAMO,kBAAkB,GAAG,SAArBA,kBAAqB,CAIhCC,SAJgC,EAKqC;AACrE,MAAMC,2BAA2B,GAAG,SAA9BA,2BAA8B,CAClCC,KADkC,EAE/B;AACH,QAAMC,cAAc,GAAGL,iBAAiB,EAAxC;AAEA,WAAO,gCAAC,SAAD,gCAAgBI,KAAhB,EAAiCC,cAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAAP;AACD,GAND;;AAOAF,EAAAA,2BAA2B,CAACG,WAA5B,0BAA+D,oCAAeJ,SAAf,CAA/D;AACA,SAAOC,2BAAP;AACD,CAfM","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 { getDisplayName } from '../utils/getDisplayName';\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/master/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 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/master/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({} as ChannelContextValue);\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>() => useContext(ChannelContext) as unknown as ChannelContextValue<StreamChatGenerics>;\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"]}
@@ -32,7 +32,7 @@ var ChannelsProvider = function ChannelsProvider(_ref) {
32
32
  __self: _this,
33
33
  __source: {
34
34
  fileName: _jsxFileName,
35
- lineNumber: 245,
35
+ lineNumber: 220,
36
36
  columnNumber: 3
37
37
  }
38
38
  }, children);
@@ -53,7 +53,7 @@ var withChannelsContext = function withChannelsContext(Component) {
53
53
  __self: _this,
54
54
  __source: {
55
55
  fileName: _jsxFileName,
56
- lineNumber: 282,
56
+ lineNumber: 245,
57
57
  columnNumber: 12
58
58
  }
59
59
  }));