stream-chat-react 7.0.0 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.full-bundle.js +2033 -785
  3. package/dist/browser.full-bundle.js.map +1 -1
  4. package/dist/browser.full-bundle.min.js +5 -5
  5. package/dist/browser.full-bundle.min.js.map +1 -1
  6. package/dist/components/Attachment/Attachment.d.ts +8 -8
  7. package/dist/components/Attachment/Attachment.d.ts.map +1 -1
  8. package/dist/components/Attachment/AttachmentActions.d.ts +3 -4
  9. package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
  10. package/dist/components/Attachment/Audio.d.ts +4 -5
  11. package/dist/components/Attachment/Audio.d.ts.map +1 -1
  12. package/dist/components/Attachment/Card.d.ts +2 -0
  13. package/dist/components/Attachment/Card.d.ts.map +1 -1
  14. package/dist/components/Attachment/Card.js +22 -2
  15. package/dist/components/Attachment/FileAttachment.d.ts +4 -5
  16. package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
  17. package/dist/components/Attachment/utils.d.ts +22 -22
  18. package/dist/components/Attachment/utils.d.ts.map +1 -1
  19. package/dist/components/Attachment/utils.js +3 -1
  20. package/dist/components/AutoCompleteTextarea/Item.d.ts.map +1 -1
  21. package/dist/components/AutoCompleteTextarea/Item.js +2 -1
  22. package/dist/components/AutoCompleteTextarea/List.d.ts.map +1 -1
  23. package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
  24. package/dist/components/AutoCompleteTextarea/Textarea.js +1 -2
  25. package/dist/components/Avatar/Avatar.d.ts +4 -4
  26. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  27. package/dist/components/Channel/Channel.d.ts +47 -45
  28. package/dist/components/Channel/Channel.d.ts.map +1 -1
  29. package/dist/components/Channel/Channel.js +109 -34
  30. package/dist/components/Channel/channelState.d.ts +32 -15
  31. package/dist/components/Channel/channelState.d.ts.map +1 -1
  32. package/dist/components/Channel/channelState.js +24 -2
  33. package/dist/components/Channel/hooks/useCreateChannelStateContext.d.ts +3 -3
  34. package/dist/components/Channel/hooks/useCreateChannelStateContext.d.ts.map +1 -1
  35. package/dist/components/Channel/hooks/useCreateChannelStateContext.js +8 -1
  36. package/dist/components/Channel/hooks/useCreateTypingContext.d.ts +2 -2
  37. package/dist/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -1
  38. package/dist/components/Channel/hooks/useEditMessageHandler.d.ts +3 -3
  39. package/dist/components/Channel/hooks/useEditMessageHandler.d.ts.map +1 -1
  40. package/dist/components/Channel/hooks/useIsMounted.d.ts +0 -1
  41. package/dist/components/Channel/hooks/useIsMounted.d.ts.map +1 -1
  42. package/dist/components/Channel/hooks/useMentionsHandlers.d.ts +3 -3
  43. package/dist/components/Channel/hooks/useMentionsHandlers.d.ts.map +1 -1
  44. package/dist/components/Channel/utils.d.ts +5 -0
  45. package/dist/components/Channel/utils.d.ts.map +1 -0
  46. package/dist/components/Channel/utils.js +19 -0
  47. package/dist/components/ChannelHeader/ChannelHeader.d.ts +4 -2
  48. package/dist/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
  49. package/dist/components/ChannelHeader/ChannelHeader.js +5 -6
  50. package/dist/components/ChannelHeader/icons.d.ts +4 -0
  51. package/dist/components/ChannelHeader/icons.d.ts.map +1 -0
  52. package/dist/components/ChannelHeader/icons.js +9 -0
  53. package/dist/components/ChannelList/ChannelList.d.ts +19 -20
  54. package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
  55. package/dist/components/ChannelList/ChannelList.js +1 -0
  56. package/dist/components/ChannelList/ChannelListMessenger.d.ts +5 -5
  57. package/dist/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
  58. package/dist/components/ChannelList/hooks/useChannelDeletedListener.d.ts +2 -3
  59. package/dist/components/ChannelList/hooks/useChannelDeletedListener.d.ts.map +1 -1
  60. package/dist/components/ChannelList/hooks/useChannelHiddenListener.d.ts +2 -3
  61. package/dist/components/ChannelList/hooks/useChannelHiddenListener.d.ts.map +1 -1
  62. package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts +2 -3
  63. package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts.map +1 -1
  64. package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts +2 -3
  65. package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts.map +1 -1
  66. package/dist/components/ChannelList/hooks/useChannelVisibleListener.d.ts +2 -3
  67. package/dist/components/ChannelList/hooks/useChannelVisibleListener.d.ts.map +1 -1
  68. package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.d.ts +2 -2
  69. package/dist/components/ChannelList/hooks/useConnectionRecoveredListener.d.ts.map +1 -1
  70. package/dist/components/ChannelList/hooks/useMessageNewListener.d.ts +2 -3
  71. package/dist/components/ChannelList/hooks/useMessageNewListener.d.ts.map +1 -1
  72. package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts +2 -3
  73. package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts.map +1 -1
  74. package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts +2 -3
  75. package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts.map +1 -1
  76. package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts +2 -3
  77. package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts.map +1 -1
  78. package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts +4 -5
  79. package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
  80. package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts +2 -3
  81. package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts.map +1 -1
  82. package/dist/components/ChannelList/utils.d.ts +6 -6
  83. package/dist/components/ChannelList/utils.d.ts.map +1 -1
  84. package/dist/components/ChannelPreview/ChannelPreview.d.ts +9 -9
  85. package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  86. package/dist/components/ChannelPreview/ChannelPreview.js +6 -10
  87. package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -3
  88. package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
  89. package/dist/components/ChannelPreview/hooks/useIsChannelMuted.d.ts +2 -2
  90. package/dist/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -1
  91. package/dist/components/ChannelPreview/utils.d.ts +4 -5
  92. package/dist/components/ChannelPreview/utils.d.ts.map +1 -1
  93. package/dist/components/ChannelSearch/ChannelSearch.d.ts +16 -14
  94. package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
  95. package/dist/components/ChannelSearch/ChannelSearch.js +3 -3
  96. package/dist/components/ChannelSearch/SearchInput.d.ts +9 -7
  97. package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
  98. package/dist/components/ChannelSearch/SearchInput.js +2 -2
  99. package/dist/components/ChannelSearch/SearchResults.d.ts +14 -14
  100. package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
  101. package/dist/components/ChannelSearch/utils.d.ts +3 -3
  102. package/dist/components/ChannelSearch/utils.d.ts.map +1 -1
  103. package/dist/components/ChannelSearch/utils.js +1 -3
  104. package/dist/components/Chat/Chat.d.ts +4 -4
  105. package/dist/components/Chat/Chat.d.ts.map +1 -1
  106. package/dist/components/Chat/Chat.js +2 -1
  107. package/dist/components/Chat/hooks/useChat.d.ts +9 -9
  108. package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
  109. package/dist/components/Chat/hooks/useChat.js +14 -9
  110. package/dist/components/Chat/hooks/useCreateChatContext.d.ts +2 -2
  111. package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  112. package/dist/components/Chat/hooks/useCreateChatContext.js +2 -1
  113. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +15 -13
  114. package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts.map +1 -1
  115. package/dist/components/ChatAutoComplete/ChatAutoComplete.js +1 -1
  116. package/dist/components/DateSeparator/DateSeparator.d.ts +0 -1
  117. package/dist/components/DateSeparator/DateSeparator.d.ts.map +1 -1
  118. package/dist/components/EventComponent/EventComponent.d.ts +4 -4
  119. package/dist/components/EventComponent/EventComponent.d.ts.map +1 -1
  120. package/dist/components/Gallery/Gallery.d.ts +4 -5
  121. package/dist/components/Gallery/Gallery.d.ts.map +1 -1
  122. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +2 -2
  123. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
  124. package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +16 -45
  125. package/dist/components/InfiniteScrollPaginator/index.d.ts +0 -2
  126. package/dist/components/InfiniteScrollPaginator/index.d.ts.map +1 -1
  127. package/dist/components/InfiniteScrollPaginator/index.js +0 -2
  128. package/dist/components/Message/FixedHeightMessage.d.ts +4 -5
  129. package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
  130. package/dist/components/Message/Message.d.ts +2 -3
  131. package/dist/components/Message/Message.d.ts.map +1 -1
  132. package/dist/components/Message/Message.js +8 -7
  133. package/dist/components/Message/MessageCommerce.d.ts +2 -3
  134. package/dist/components/Message/MessageCommerce.d.ts.map +1 -1
  135. package/dist/components/Message/MessageCommerce.js +2 -1
  136. package/dist/components/Message/MessageDeleted.d.ts +4 -5
  137. package/dist/components/Message/MessageDeleted.d.ts.map +1 -1
  138. package/dist/components/Message/MessageLivestream.d.ts +2 -2
  139. package/dist/components/Message/MessageLivestream.d.ts.map +1 -1
  140. package/dist/components/Message/MessageLivestream.js +2 -1
  141. package/dist/components/Message/MessageOptions.d.ts +3 -3
  142. package/dist/components/Message/MessageOptions.d.ts.map +1 -1
  143. package/dist/components/Message/MessageOptions.js +1 -1
  144. package/dist/components/Message/MessageRepliesCountButton.d.ts.map +1 -1
  145. package/dist/components/Message/MessageRepliesCountButton.js +10 -24
  146. package/dist/components/Message/MessageSimple.d.ts +2 -3
  147. package/dist/components/Message/MessageSimple.d.ts.map +1 -1
  148. package/dist/components/Message/MessageSimple.js +6 -6
  149. package/dist/components/Message/MessageStatus.d.ts +2 -2
  150. package/dist/components/Message/MessageStatus.d.ts.map +1 -1
  151. package/dist/components/Message/MessageTeam.d.ts +2 -3
  152. package/dist/components/Message/MessageTeam.d.ts.map +1 -1
  153. package/dist/components/Message/MessageText.d.ts +4 -5
  154. package/dist/components/Message/MessageText.d.ts.map +1 -1
  155. package/dist/components/Message/MessageTimestamp.d.ts +4 -5
  156. package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
  157. package/dist/components/Message/QuotedMessage.d.ts +2 -3
  158. package/dist/components/Message/QuotedMessage.d.ts.map +1 -1
  159. package/dist/components/Message/QuotedMessage.js +3 -1
  160. package/dist/components/Message/hooks/useActionHandler.d.ts +2 -2
  161. package/dist/components/Message/hooks/useActionHandler.d.ts.map +1 -1
  162. package/dist/components/Message/hooks/useDeleteHandler.d.ts +4 -4
  163. package/dist/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
  164. package/dist/components/Message/hooks/useEditHandler.d.ts +0 -1
  165. package/dist/components/Message/hooks/useEditHandler.d.ts.map +1 -1
  166. package/dist/components/Message/hooks/useFlagHandler.d.ts +5 -5
  167. package/dist/components/Message/hooks/useFlagHandler.d.ts.map +1 -1
  168. package/dist/components/Message/hooks/useMentionsHandler.d.ts +6 -6
  169. package/dist/components/Message/hooks/useMentionsHandler.d.ts.map +1 -1
  170. package/dist/components/Message/hooks/useMuteHandler.d.ts +5 -5
  171. package/dist/components/Message/hooks/useMuteHandler.d.ts.map +1 -1
  172. package/dist/components/Message/hooks/useOpenThreadHandler.d.ts +2 -2
  173. package/dist/components/Message/hooks/useOpenThreadHandler.d.ts.map +1 -1
  174. package/dist/components/Message/hooks/usePinHandler.d.ts +4 -4
  175. package/dist/components/Message/hooks/usePinHandler.d.ts.map +1 -1
  176. package/dist/components/Message/hooks/useReactionHandler.d.ts +3 -3
  177. package/dist/components/Message/hooks/useReactionHandler.d.ts.map +1 -1
  178. package/dist/components/Message/hooks/useRetryHandler.d.ts +2 -2
  179. package/dist/components/Message/hooks/useRetryHandler.d.ts.map +1 -1
  180. package/dist/components/Message/hooks/useUserHandler.d.ts +5 -6
  181. package/dist/components/Message/hooks/useUserHandler.d.ts.map +1 -1
  182. package/dist/components/Message/hooks/useUserRole.d.ts +2 -2
  183. package/dist/components/Message/hooks/useUserRole.d.ts.map +1 -1
  184. package/dist/components/Message/icons.d.ts +2 -3
  185. package/dist/components/Message/icons.d.ts.map +1 -1
  186. package/dist/components/Message/types.d.ts +25 -24
  187. package/dist/components/Message/types.d.ts.map +1 -1
  188. package/dist/components/Message/utils.d.ts +14 -14
  189. package/dist/components/Message/utils.d.ts.map +1 -1
  190. package/dist/components/Message/utils.js +9 -1
  191. package/dist/components/MessageActions/MessageActions.d.ts +3 -3
  192. package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
  193. package/dist/components/MessageActions/MessageActions.js +14 -8
  194. package/dist/components/MessageActions/MessageActionsBox.d.ts +6 -7
  195. package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
  196. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts +7 -7
  197. package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
  198. package/dist/components/MessageInput/DropzoneProvider.d.ts +2 -2
  199. package/dist/components/MessageInput/DropzoneProvider.d.ts.map +1 -1
  200. package/dist/components/MessageInput/EditMessageForm.d.ts +2 -3
  201. package/dist/components/MessageInput/EditMessageForm.d.ts.map +1 -1
  202. package/dist/components/MessageInput/EmojiPicker.d.ts +2 -3
  203. package/dist/components/MessageInput/EmojiPicker.d.ts.map +1 -1
  204. package/dist/components/MessageInput/MessageInput.d.ts +10 -10
  205. package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
  206. package/dist/components/MessageInput/MessageInputFlat.d.ts +2 -3
  207. package/dist/components/MessageInput/MessageInputFlat.d.ts.map +1 -1
  208. package/dist/components/MessageInput/MessageInputFlat.js +27 -5
  209. package/dist/components/MessageInput/MessageInputSmall.d.ts +2 -3
  210. package/dist/components/MessageInput/MessageInputSmall.d.ts.map +1 -1
  211. package/dist/components/MessageInput/MessageInputSmall.js +27 -5
  212. package/dist/components/MessageInput/QuotedMessagePreview.d.ts +4 -5
  213. package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
  214. package/dist/components/MessageInput/UploadsPreview.d.ts +2 -3
  215. package/dist/components/MessageInput/UploadsPreview.d.ts.map +1 -1
  216. package/dist/components/MessageInput/UploadsPreview.js +2 -16
  217. package/dist/components/MessageInput/hooks/useAttachments.d.ts +2 -3
  218. package/dist/components/MessageInput/hooks/useAttachments.d.ts.map +1 -1
  219. package/dist/components/MessageInput/hooks/useCommandTrigger.d.ts +2 -2
  220. package/dist/components/MessageInput/hooks/useCommandTrigger.d.ts.map +1 -1
  221. package/dist/components/MessageInput/hooks/useCommandTrigger.js +3 -1
  222. package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts +2 -2
  223. package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
  224. package/dist/components/MessageInput/hooks/useCooldownTimer.js +19 -28
  225. package/dist/components/MessageInput/hooks/useCreateMessageInputContext.d.ts +2 -2
  226. package/dist/components/MessageInput/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  227. package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts +2 -3
  228. package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts.map +1 -1
  229. package/dist/components/MessageInput/hooks/useFileUploads.d.ts +2 -3
  230. package/dist/components/MessageInput/hooks/useFileUploads.d.ts.map +1 -1
  231. package/dist/components/MessageInput/hooks/useImageUploads.d.ts +2 -2
  232. package/dist/components/MessageInput/hooks/useImageUploads.d.ts.map +1 -1
  233. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +11 -11
  234. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
  235. package/dist/components/MessageInput/hooks/useMessageInputText.d.ts +2 -3
  236. package/dist/components/MessageInput/hooks/useMessageInputText.d.ts.map +1 -1
  237. package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts +3 -4
  238. package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts.map +1 -1
  239. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +5 -5
  240. package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
  241. package/dist/components/MessageInput/hooks/utils.d.ts +8 -8
  242. package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -1
  243. package/dist/components/MessageInput/icons.d.ts +4 -4
  244. package/dist/components/MessageInput/icons.d.ts.map +1 -1
  245. package/dist/components/MessageList/ConnectionStatus.d.ts.map +1 -1
  246. package/dist/components/MessageList/GiphyPreviewMessage.d.ts +4 -5
  247. package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
  248. package/dist/components/MessageList/MessageList.d.ts +13 -8
  249. package/dist/components/MessageList/MessageList.d.ts.map +1 -1
  250. package/dist/components/MessageList/MessageList.js +90 -24
  251. package/dist/components/MessageList/MessageListNotifications.d.ts +1 -0
  252. package/dist/components/MessageList/MessageListNotifications.d.ts.map +1 -1
  253. package/dist/components/MessageList/MessageListNotifications.js +2 -2
  254. package/dist/components/MessageList/VirtualizedMessageList.d.ts +18 -8
  255. package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
  256. package/dist/components/MessageList/VirtualizedMessageList.js +154 -23
  257. package/dist/components/MessageList/hooks/index.d.ts +0 -1
  258. package/dist/components/MessageList/hooks/index.d.ts.map +1 -1
  259. package/dist/components/MessageList/hooks/index.js +0 -1
  260. package/dist/components/MessageList/hooks/useEnrichedMessages.d.ts +6 -7
  261. package/dist/components/MessageList/hooks/useEnrichedMessages.d.ts.map +1 -1
  262. package/dist/components/MessageList/hooks/useEnrichedMessages.js +4 -4
  263. package/dist/components/MessageList/hooks/useGiphyPreview.d.ts +4 -5
  264. package/dist/components/MessageList/hooks/useGiphyPreview.d.ts.map +1 -1
  265. package/dist/components/MessageList/hooks/useLastReadData.d.ts +5 -5
  266. package/dist/components/MessageList/hooks/useLastReadData.d.ts.map +1 -1
  267. package/dist/components/MessageList/hooks/useMessageListElements.d.ts +6 -6
  268. package/dist/components/MessageList/hooks/useMessageListElements.d.ts.map +1 -1
  269. package/dist/components/MessageList/hooks/useMessageListElements.js +6 -3
  270. package/dist/components/MessageList/hooks/useMessageListScrollManager.d.ts +4 -4
  271. package/dist/components/MessageList/hooks/useMessageListScrollManager.d.ts.map +1 -1
  272. package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts +2 -3
  273. package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts.map +1 -1
  274. package/dist/components/MessageList/hooks/useNewMessageNotification.js +6 -2
  275. package/dist/components/MessageList/hooks/usePrependMessagesCount.d.ts +2 -2
  276. package/dist/components/MessageList/hooks/usePrependMessagesCount.d.ts.map +1 -1
  277. package/dist/components/MessageList/hooks/usePrependMessagesCount.js +2 -0
  278. package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts +6 -4
  279. package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts.map +1 -1
  280. package/dist/components/MessageList/hooks/useScrollLocationLogic.js +9 -5
  281. package/dist/components/MessageList/hooks/useShouldForceScrollToBottom.d.ts +2 -2
  282. package/dist/components/MessageList/hooks/useShouldForceScrollToBottom.d.ts.map +1 -1
  283. package/dist/components/MessageList/utils.d.ts +36 -17
  284. package/dist/components/MessageList/utils.d.ts.map +1 -1
  285. package/dist/components/MessageList/utils.js +57 -35
  286. package/dist/components/Reactions/ReactionSelector.d.ts +4 -4
  287. package/dist/components/Reactions/ReactionSelector.d.ts.map +1 -1
  288. package/dist/components/Reactions/ReactionsList.d.ts +4 -5
  289. package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
  290. package/dist/components/Reactions/SimpleReactionsList.d.ts +4 -4
  291. package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
  292. package/dist/components/Reactions/utils/utils.d.ts +0 -1
  293. package/dist/components/Reactions/utils/utils.d.ts.map +1 -1
  294. package/dist/components/Thread/Thread.d.ts +12 -10
  295. package/dist/components/Thread/Thread.d.ts.map +1 -1
  296. package/dist/components/Thread/Thread.js +6 -10
  297. package/dist/components/TypingIndicator/TypingIndicator.d.ts +4 -4
  298. package/dist/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
  299. package/dist/components/Window/Window.d.ts +4 -4
  300. package/dist/components/Window/Window.d.ts.map +1 -1
  301. package/dist/constants/messageTypes.d.ts +5 -0
  302. package/dist/constants/messageTypes.d.ts.map +1 -0
  303. package/dist/constants/messageTypes.js +4 -0
  304. package/dist/context/ChannelActionContext.d.ts +26 -26
  305. package/dist/context/ChannelActionContext.d.ts.map +1 -1
  306. package/dist/context/ChannelStateContext.d.ts +26 -21
  307. package/dist/context/ChannelStateContext.d.ts.map +1 -1
  308. package/dist/context/ChatContext.d.ts +15 -12
  309. package/dist/context/ChatContext.d.ts.map +1 -1
  310. package/dist/context/ComponentContext.d.ts +27 -27
  311. package/dist/context/ComponentContext.d.ts.map +1 -1
  312. package/dist/context/MessageContext.d.ts +18 -16
  313. package/dist/context/MessageContext.d.ts.map +1 -1
  314. package/dist/context/MessageInputContext.d.ts +7 -7
  315. package/dist/context/MessageInputContext.d.ts.map +1 -1
  316. package/dist/context/TypingContext.d.ts +8 -8
  317. package/dist/context/TypingContext.d.ts.map +1 -1
  318. package/dist/context/utils/getDisplayName.d.ts +0 -1
  319. package/dist/context/utils/getDisplayName.d.ts.map +1 -1
  320. package/dist/css/index.css +1 -1
  321. package/dist/i18n/Streami18n.d.ts +6 -4
  322. package/dist/i18n/Streami18n.d.ts.map +1 -1
  323. package/dist/i18n/Streami18n.js +5 -5
  324. package/dist/i18n/de.json +29 -27
  325. package/dist/i18n/en.json +4 -2
  326. package/dist/i18n/es.json +5 -2
  327. package/dist/i18n/fr.json +5 -2
  328. package/dist/i18n/hi.json +4 -2
  329. package/dist/i18n/it.json +5 -2
  330. package/dist/i18n/ja.json +4 -2
  331. package/dist/i18n/ko.json +4 -2
  332. package/dist/i18n/nl.json +4 -2
  333. package/dist/i18n/pt.json +22 -19
  334. package/dist/i18n/ru.json +6 -2
  335. package/dist/i18n/tr.json +4 -2
  336. package/dist/index.cjs.js +664 -390
  337. package/dist/index.cjs.js.map +1 -1
  338. package/dist/scss/ActionsBox.scss +2 -2
  339. package/dist/scss/Attachment.scss +5 -0
  340. package/dist/scss/Avatar.scss +1 -1
  341. package/dist/scss/ChannelHeader.scss +8 -13
  342. package/dist/scss/ChannelList.scss +6 -0
  343. package/dist/scss/ChannelSearch.scss +12 -1
  344. package/dist/scss/Gallery.scss +19 -0
  345. package/dist/scss/Message.scss +110 -93
  346. package/dist/scss/MessageInput.scss +8 -2
  347. package/dist/scss/MessageInputFlat.scss +24 -0
  348. package/dist/scss/MessageList.scss +7 -0
  349. package/dist/scss/MessageNotification.scss +6 -18
  350. package/dist/scss/ReactionList.scss +2 -1
  351. package/dist/scss/ReactionSelector.scss +2 -1
  352. package/dist/scss/SimpleReactionsList.scss +2 -1
  353. package/dist/scss/SmallMessageInput.scss +34 -0
  354. package/dist/scss/Thread.scss +25 -5
  355. package/dist/scss/VirtualMessage.scss +6 -0
  356. package/dist/scss/_base.scss +4 -0
  357. package/dist/scss/_variables.scss +4 -5
  358. package/dist/stories/connected-user.stories.d.ts +4 -0
  359. package/dist/stories/connected-user.stories.d.ts.map +1 -0
  360. package/dist/stories/connected-user.stories.js +55 -0
  361. package/dist/stories/hello.stories.d.ts +3 -0
  362. package/dist/stories/hello.stories.d.ts.map +1 -0
  363. package/dist/stories/hello.stories.js +47 -0
  364. package/dist/stories/jump-to-message.stories.d.ts +4 -0
  365. package/dist/stories/jump-to-message.stories.d.ts.map +1 -0
  366. package/dist/stories/jump-to-message.stories.js +111 -0
  367. package/dist/stories/mark-read.stories.d.ts +4 -0
  368. package/dist/stories/mark-read.stories.d.ts.map +1 -0
  369. package/dist/stories/mark-read.stories.js +77 -0
  370. package/dist/stories/utils.d.ts +27 -0
  371. package/dist/stories/utils.d.ts.map +1 -0
  372. package/dist/stories/utils.js +38 -0
  373. package/dist/types/types.d.ts +32 -10
  374. package/dist/types/types.d.ts.map +1 -1
  375. package/dist/utils.d.ts +5 -5
  376. package/dist/utils.d.ts.map +1 -1
  377. package/dist/version.d.ts +1 -1
  378. package/dist/version.js +1 -1
  379. package/package.json +27 -15
  380. package/dist/components/InfiniteScrollPaginator/InfiniteScrollPaginator.d.ts +0 -18
  381. package/dist/components/InfiniteScrollPaginator/InfiniteScrollPaginator.d.ts.map +0 -1
  382. package/dist/components/InfiniteScrollPaginator/InfiniteScrollPaginator.js +0 -8
  383. package/dist/components/InfiniteScrollPaginator/ReverseInfiniteScroll.d.ts +0 -4
  384. package/dist/components/InfiniteScrollPaginator/ReverseInfiniteScroll.d.ts.map +0 -1
  385. package/dist/components/InfiniteScrollPaginator/ReverseInfiniteScroll.js +0 -14
  386. package/dist/components/MessageList/hooks/useCallLoadMore.d.ts +0 -3
  387. package/dist/components/MessageList/hooks/useCallLoadMore.d.ts.map +0 -1
  388. package/dist/components/MessageList/hooks/useCallLoadMore.js +0 -8
@@ -7,22 +7,22 @@ import type { CardProps } from './Card';
7
7
  import type { FileAttachmentProps } from './FileAttachment';
8
8
  import type { GalleryProps, ImageProps } from '../Gallery';
9
9
  import type { ActionHandlerReturnType } from '../Message/hooks/useActionHandler';
10
- import type { DefaultAttachmentType } from '../../types/types';
11
- export declare type AttachmentProps<At extends DefaultAttachmentType = DefaultAttachmentType> = {
10
+ import type { DefaultStreamChatGenerics } from '../../types/types';
11
+ export declare type AttachmentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
12
12
  /** The message attachments to render, see [attachment structure](https://getstream.io/chat/docs/javascript/message_format/?language=javascript) **/
13
- attachments: StreamAttachment<At>[];
13
+ attachments: StreamAttachment<StreamChatGenerics>[];
14
14
  /** The handler function to call when an action is performed on an attachment, examples include canceling a \/giphy command or shuffling the results. */
15
15
  actionHandler?: ActionHandlerReturnType;
16
16
  /** Custom UI component for displaying attachment actions, defaults to and accepts same props as: [AttachmentActions](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Attachment/AttachmentActions.tsx) */
17
- AttachmentActions?: React.ComponentType<AttachmentActionsProps<At>>;
17
+ AttachmentActions?: React.ComponentType<AttachmentActionsProps<StreamChatGenerics>>;
18
18
  /** Custom UI component for displaying an audio type attachment, defaults to and accepts same props as: [Audio](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Attachment/Audio.tsx) */
19
- Audio?: React.ComponentType<AudioProps<At>>;
19
+ Audio?: React.ComponentType<AudioProps<StreamChatGenerics>>;
20
20
  /** Custom UI component for displaying a card type attachment, defaults to and accepts same props as: [Card](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Attachment/Card.tsx) */
21
21
  Card?: React.ComponentType<CardProps>;
22
22
  /** Custom UI component for displaying a file type attachment, defaults to and accepts same props as: [File](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Attachment/FileAttachment.tsx) */
23
- File?: React.ComponentType<FileAttachmentProps<At>>;
23
+ File?: React.ComponentType<FileAttachmentProps<StreamChatGenerics>>;
24
24
  /** Custom UI component for displaying a gallery of image type attachments, defaults to and accepts same props as: [Gallery](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Gallery/Gallery.tsx) */
25
- Gallery?: React.ComponentType<GalleryProps<At>>;
25
+ Gallery?: React.ComponentType<GalleryProps<StreamChatGenerics>>;
26
26
  /** Custom UI component for displaying an image type attachment, defaults to and accepts same props as: [Image](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Gallery/Image.tsx) */
27
27
  Image?: React.ComponentType<ImageProps>;
28
28
  /** Custom UI component for displaying a media type attachment, defaults to `ReactPlayer` from 'react-player' */
@@ -31,5 +31,5 @@ export declare type AttachmentProps<At extends DefaultAttachmentType = DefaultAt
31
31
  /**
32
32
  * A component used for rendering message attachments. By default, the component supports: AttachmentActions, Audio, Card, File, Gallery, Image, and Video
33
33
  */
34
- export declare const Attachment: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: AttachmentProps<At>) => JSX.Element;
34
+ export declare const Attachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AttachmentProps<StreamChatGenerics>) => JSX.Element;
35
35
  //# sourceMappingURL=Attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAElE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,oBAAY,eAAe,CAAC,EAAE,SAAS,qBAAqB,GAAG,qBAAqB,IAAI;IACtF,oJAAoJ;IACpJ,WAAW,EAAE,gBAAgB,CAAC,EAAE,CAAC,EAAE,CAAC;IACpC,wJAAwJ;IACxJ,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,oOAAoO;IACpO,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE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CAAC;AAEjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,oBAAY,eAAe,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,oJAAoJ;IACpJ,WAAW,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACpD,wJAAwJ;IACxJ,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,oOAAoO;IACpO,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACpF,kNAAkN;IAClN,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC5D,8MAA8M;IAC9M,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACtC,wNAAwN;IACxN,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACpE,8NAA8N;IAC9N,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAChE,+MAA+M;IAC/M,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACxC,gHAAgH;IAChH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,+IAuDtB,CAAC"}
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { Action, Attachment } from 'stream-chat';
3
2
  import type { ActionHandlerReturnType } from '../Message/hooks/useActionHandler';
4
- import type { DefaultAttachmentType } from '../../types/types';
5
- export declare type AttachmentActionsProps<At extends DefaultAttachmentType = DefaultAttachmentType> = Attachment<At> & {
3
+ import type { DefaultStreamChatGenerics } from '../../types/types';
4
+ export declare type AttachmentActionsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Attachment<StreamChatGenerics> & {
6
5
  /** A list of actions */
7
6
  actions: Action[];
8
7
  /** Unique id for action button key. Key is generated by concatenating this id with action value - {`${id}-${action.value}`} */
@@ -15,5 +14,5 @@ export declare type AttachmentActionsProps<At extends DefaultAttachmentType = De
15
14
  /**
16
15
  * A component for rendering the actions you can take on an attachment.
17
16
  */
18
- export declare const AttachmentActions: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: AttachmentActionsProps<At>) => JSX.Element;
17
+ export declare const AttachmentActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AttachmentActionsProps<StreamChatGenerics>) => JSX.Element;
19
18
  //# sourceMappingURL=AttachmentActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentActions.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentActions.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,oBAAY,sBAAsB,CAChC,EAAE,SAAS,qBAAqB,GAAG,qBAAqB,IACtD,UAAU,CAAC,EAAE,CAAC,GAAG;IACnB,wBAAwB;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+HAA+H;IAC/H,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAqCF;;GAEG;AACH,eAAO,MAAM,iBAAiB,8GAES,CAAC"}
1
+ {"version":3,"file":"AttachmentActions.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentActions.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,oBAAY,sBAAsB,CAChC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,UAAU,CAAC,kBAAkB,CAAC,GAAG;IACnC,wBAAwB;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+HAA+H;IAC/H,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAuCF;;GAEG;AACH,eAAO,MAAM,iBAAiB,sJAES,CAAC"}
@@ -1,11 +1,10 @@
1
- /// <reference types="react" />
2
1
  import type { Attachment } from 'stream-chat';
3
- import type { DefaultAttachmentType } from '../../types/types';
4
- export declare type AudioProps<At extends DefaultAttachmentType = DefaultAttachmentType> = {
5
- og: Attachment<At>;
2
+ import type { DefaultStreamChatGenerics } from '../../types/types';
3
+ export declare type AudioProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
+ og: Attachment<StreamChatGenerics>;
6
5
  };
7
6
  /**
8
7
  * Audio attachment with play/pause button and progress bar
9
8
  */
10
- export declare const Audio: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: AudioProps<At>) => JSX.Element;
9
+ export declare const Audio: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AudioProps<StreamChatGenerics>) => JSX.Element;
11
10
  //# sourceMappingURL=Audio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Audio.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAI/D,oBAAY,UAAU,CAAC,EAAE,SAAS,qBAAqB,GAAG,qBAAqB,IAAI;IACjF,EAAE,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;CACpB,CAAC;AA0FF;;GAEG;AACH,eAAO,MAAM,KAAK,kGAAwD,CAAC"}
1
+ {"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Audio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAInE,oBAAY,UAAU,CACpB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,EAAE,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACpC,CAAC;AA4FF;;GAEG;AACH,eAAO,MAAM,KAAK,0IAAwD,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
+ import type { Attachment } from 'stream-chat';
2
3
  export declare type CardProps = {
4
+ giphy?: Attachment['giphy'];
3
5
  /** The url of the full sized image */
4
6
  image_url?: string;
5
7
  /** The scraped url, used as a fallback if the OG-data doesn't include a link */
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS,GAAG;IACtB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AA+DF;;GAEG;AACH,eAAO,MAAM,IAAI,qBAAsD,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,oBAAY,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC5B,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAuEF;;GAEG;AACH,eAAO,MAAM,IAAI,qBAAsD,CAAC"}
@@ -1,10 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import React from 'react';
2
13
  import { SafeAnchor } from '../SafeAnchor';
3
14
  import { useTranslationContext } from '../../context/TranslationContext';
15
+ import { useChannelStateContext } from '../../context/ChannelStateContext';
4
16
  var UnMemoizedCard = function (props) {
5
- var image_url = props.image_url, og_scrape_url = props.og_scrape_url, text = props.text, thumb_url = props.thumb_url, title = props.title, title_link = props.title_link, type = props.type;
17
+ var giphy = props.giphy, image_url = props.image_url, og_scrape_url = props.og_scrape_url, text = props.text, thumb_url = props.thumb_url, title = props.title, title_link = props.title_link, type = props.type;
6
18
  var t = useTranslationContext('Card').t;
19
+ var giphyVersionName = useChannelStateContext('Card').giphyVersion;
7
20
  var image = thumb_url || image_url;
21
+ var dimensions = {};
22
+ if (type === 'giphy' && typeof giphy !== 'undefined') {
23
+ var giphyVersion = giphy[giphyVersionName];
24
+ image = giphyVersion.url;
25
+ dimensions.height = giphyVersion.height;
26
+ dimensions.width = giphyVersion.width;
27
+ }
8
28
  var trimUrl = function (url) {
9
29
  if (url !== undefined && url !== null) {
10
30
  var trimmedUrl = url.replace(/^(?:https?:\/\/)?(?:www\.)?/i, '').split('/')[0];
@@ -22,7 +42,7 @@ var UnMemoizedCard = function (props) {
22
42
  }
23
43
  return (React.createElement("div", { className: "str-chat__message-attachment-card str-chat__message-attachment-card--" + type },
24
44
  image && (React.createElement("div", { className: 'str-chat__message-attachment-card--header' },
25
- React.createElement("img", { alt: image, src: image }))),
45
+ React.createElement("img", __assign({ alt: image, src: image }, dimensions)))),
26
46
  React.createElement("div", { className: 'str-chat__message-attachment-card--content' },
27
47
  React.createElement("div", { className: 'str-chat__message-attachment-card--flex' },
28
48
  title && React.createElement("div", { className: 'str-chat__message-attachment-card--title' }, title),
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import type { Attachment } from 'stream-chat';
3
- import type { DefaultAttachmentType } from '../../types/types';
4
- export declare type FileAttachmentProps<At extends DefaultAttachmentType = DefaultAttachmentType> = {
5
- attachment: Attachment<At>;
2
+ import type { DefaultStreamChatGenerics } from '../../types/types';
3
+ export declare type FileAttachmentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
4
+ attachment: Attachment<StreamChatGenerics>;
6
5
  };
7
- export declare const FileAttachment: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: FileAttachmentProps<At>) => JSX.Element;
6
+ export declare const FileAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: FileAttachmentProps<StreamChatGenerics>) => JSX.Element;
8
7
  //# sourceMappingURL=FileAttachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileAttachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/FileAttachment.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,oBAAY,mBAAmB,CAAC,EAAE,SAAS,qBAAqB,GAAG,qBAAqB,IAAI;IAC1F,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;CAC5B,CAAC;AAsBF,eAAO,MAAM,cAAc,2GAES,CAAC"}
1
+ {"version":3,"file":"FileAttachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/FileAttachment.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,oBAAY,mBAAmB,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAwBF,eAAO,MAAM,cAAc,mJAES,CAAC"}
@@ -1,33 +1,33 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import type { Attachment } from 'stream-chat';
3
3
  import type { AttachmentProps } from './Attachment';
4
- import type { DefaultAttachmentType } from '../../types/types';
4
+ import type { DefaultStreamChatGenerics } from '../../types/types';
5
5
  export declare const SUPPORTED_VIDEO_FORMATS: string[];
6
- export declare type GalleryAttachment<At extends DefaultAttachmentType = DefaultAttachmentType> = {
7
- images: Attachment<At>[];
6
+ export declare type GalleryAttachment<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
7
+ images: Attachment<StreamChatGenerics>[];
8
8
  type: string;
9
9
  };
10
- export declare type AttachmentContainerProps<At extends DefaultAttachmentType = DefaultAttachmentType> = {
11
- attachment: Attachment<At> | GalleryAttachment<At>;
10
+ export declare type AttachmentContainerProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
11
+ attachment: Attachment<StreamChatGenerics> | GalleryAttachment<StreamChatGenerics>;
12
12
  componentType: string;
13
13
  };
14
- export declare type RenderAttachmentProps<At extends DefaultAttachmentType = DefaultAttachmentType> = Omit<AttachmentProps<At>, 'attachments'> & {
15
- attachment: Attachment<At>;
14
+ export declare type RenderAttachmentProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Omit<AttachmentProps<StreamChatGenerics>, 'attachments'> & {
15
+ attachment: Attachment<StreamChatGenerics>;
16
16
  };
17
- export declare type RenderGalleryProps<At extends DefaultAttachmentType = DefaultAttachmentType> = Omit<AttachmentProps<At>, 'attachments'> & {
18
- attachment: GalleryAttachment<At>;
17
+ export declare type RenderGalleryProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Omit<AttachmentProps<StreamChatGenerics>, 'attachments'> & {
18
+ attachment: GalleryAttachment<StreamChatGenerics>;
19
19
  };
20
- export declare const isGalleryAttachmentType: <At extends DefaultAttachmentType = DefaultAttachmentType>(output: Attachment<At> | GalleryAttachment<At>) => output is GalleryAttachment<At>;
21
- export declare const isAudioAttachment: <At extends DefaultAttachmentType = DefaultAttachmentType>(attachment: Attachment<At>) => boolean;
22
- export declare const isFileAttachment: <At extends DefaultAttachmentType = DefaultAttachmentType>(attachment: Attachment<At>) => boolean | "" | undefined;
23
- export declare const isImageAttachment: <At extends DefaultAttachmentType = DefaultAttachmentType>(attachment: Attachment<At>) => boolean;
24
- export declare const isMediaAttachment: <At extends DefaultAttachmentType = DefaultAttachmentType>(attachment: Attachment<At>) => boolean;
25
- export declare const renderAttachmentWithinContainer: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: React.PropsWithChildren<AttachmentContainerProps<At>>) => JSX.Element;
26
- export declare const renderAttachmentActions: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: RenderAttachmentProps<At>) => JSX.Element | null;
27
- export declare const renderGallery: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: RenderGalleryProps<At>) => JSX.Element;
28
- export declare const renderImage: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: RenderAttachmentProps<At>) => JSX.Element;
29
- export declare const renderCard: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: RenderAttachmentProps<At>) => JSX.Element;
30
- export declare const renderFile: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: RenderAttachmentProps<At>) => JSX.Element | null;
31
- export declare const renderAudio: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: RenderAttachmentProps<At>) => JSX.Element;
32
- export declare const renderMedia: <At extends DefaultAttachmentType = DefaultAttachmentType>(props: RenderAttachmentProps<At>) => JSX.Element;
20
+ export declare const isGalleryAttachmentType: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(output: Attachment<StreamChatGenerics> | GalleryAttachment<StreamChatGenerics>) => output is GalleryAttachment<StreamChatGenerics>;
21
+ export declare const isAudioAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(attachment: Attachment<StreamChatGenerics>) => boolean;
22
+ export declare const isFileAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(attachment: Attachment<StreamChatGenerics>) => boolean | "" | undefined;
23
+ export declare const isImageAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(attachment: Attachment<StreamChatGenerics>) => boolean;
24
+ export declare const isMediaAttachment: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(attachment: Attachment<StreamChatGenerics>) => boolean;
25
+ export declare const renderAttachmentWithinContainer: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: React.PropsWithChildren<AttachmentContainerProps<StreamChatGenerics>>) => JSX.Element;
26
+ export declare const renderAttachmentActions: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element | null;
27
+ export declare const renderGallery: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderGalleryProps<StreamChatGenerics>) => JSX.Element;
28
+ export declare const renderImage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
29
+ export declare const renderCard: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
30
+ export declare const renderFile: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element | null;
31
+ export declare const renderAudio: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
32
+ export declare const renderMedia: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: RenderAttachmentProps<StreamChatGenerics>) => JSX.Element;
33
33
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AASjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAA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AkB,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,uNAK8B,CAAC;AAEnE,eAAO,MAAM,iBAAiB,2IAIE,CAAC;AAEjC,eAAO,MAAM,gBAAgB,4JAQG,CAAC;AAEjC,eAAO,MAAM,iBAAiB,2IAIyD,CAAC;AAExF,eAAO,MAAM,iBAAiB,2IAMD,CAAC;AAE9B,eAAO,MAAM,+BAA+B,iLA8B3C,CAAC;AAEF,eAAO,MAAM,uBAAuB,4JAmBnC,CAAC;AAEF,eAAO,MAAM,aAAa,kJAYzB,CAAC;AAEF,eAAO,MAAM,WAAW,qJAyBvB,CAAC;AAEF,eAAO,MAAM,UAAU,qJAyBtB,CAAC;AAEF,eAAO,MAAM,UAAU,4JActB,CAAC;AAEF,eAAO,MAAM,WAAW,qJAgBvB,CAAC;AAEF,eAAO,MAAM,WAAW,qJA8CvB,CAAC"}
@@ -17,7 +17,9 @@ import { Card as DefaultCard } from './Card';
17
17
  import { FileAttachment as DefaultFile } from './FileAttachment';
18
18
  import { Gallery as DefaultGallery, ImageComponent as DefaultImage } from '../Gallery';
19
19
  export var SUPPORTED_VIDEO_FORMATS = ['video/mp4', 'video/ogg', 'video/webm', 'video/quicktime'];
20
- export var isGalleryAttachmentType = function (output) { return output.images != null; };
20
+ export var isGalleryAttachmentType = function (output) {
21
+ return output.images != null;
22
+ };
21
23
  export var isAudioAttachment = function (attachment) { return attachment.type === 'audio'; };
22
24
  export var isFileAttachment = function (attachment) {
23
25
  return attachment.type === 'file' ||
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Item.js"],"names":[],"mappings":"AAEA,6EA0BG"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Item.jsx"],"names":[],"mappings":"AAEA,6EA4BG"}
@@ -4,5 +4,6 @@ export var Item = React.forwardRef(function Item(props, innerRef) {
4
4
  var selectItem = function () { return onSelectHandler(item); };
5
5
  return (React.createElement("li", { className: "rta__item " + (className || ''), style: style },
6
6
  React.createElement("button", { className: "rta__entity " + (selected ? 'rta__entity--selected' : ''), onClick: onClickHandler, onFocus: selectItem, onMouseEnter: selectItem, ref: innerRef },
7
- React.createElement(Component, { entity: item, selected: selected }))));
7
+ React.createElement("div", { tabIndex: -1 },
8
+ React.createElement(Component, { entity: item, selected: selected })))));
8
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/List.js"],"names":[],"mappings":"AASO,8CA6IN"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/List.jsx"],"names":[],"mappings":"AASO,8CA6IN"}
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Textarea.js"],"names":[],"mappings":"AAmBA;IACE;;;;;;;MAOE;IA0YF;;OAEG;IACH;;;aAMC;IAjZD,wBA6BC;IA6BD;;;aAOE;IAEF,2BAOE;IAEF,8CAKE;IAEF,+BAIE;IAEF,mDAaE;IAJc,yCAA+B;IAM/C,+BAwBE;IAEF,qBAQE;IAEF,yBA6BE;IAEF,mCAqEE;IAEF,qEAuBE;IAEF,sEA2DE;IAEF,uDAQE;IAEF,mCA0CE;IAEF,6CAQE;IAYF;;OAEG;IACH,+BAQE;IAEF;;;MA6CE;IAEF,mCAQE;IAEF,iCA+EE;IAEF,iCASE;IAGF,yCAiBE;IAEF,6BAAmD;IAEnD,qCAiBE;IAEF;;;;;;;;MAoCE;IAEF,oDAyCC;IAlBS,+CAAsB;IA+CtB,oDAAsB;CASjC"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/AutoCompleteTextarea/Textarea.jsx"],"names":[],"mappings":"AAkBA;IACE;;;;;;;MAOE;IA0YF;;OAEG;IACH;;;aAMC;IAjZD,wBA6BC;IA6BD;;;aAOE;IAEF,2BAOE;IAEF,8CAKE;IAEF,+BAIE;IAEF,mDAaE;IAJc,yCAA+B;IAM/C,+BAwBE;IAEF,qBAQE;IAEF,yBA6BE;IAEF,mCAqEE;IAEF,qEAuBE;IAEF,sEA2DE;IAEF,uDAQE;IAEF,mCA0CE;IAEF,6CAQE;IAYF;;OAEG;IACH,+BAQE;IAEF;;;MA6CE;IAEF,mCAQE;IAEF,iCA+EE;IAEF,iCASE;IAGF,yCAiBE;IAEF,6BAAmD;IAEnD,qCAiBE;IAEF;;;;;;;;MAoCE;IAEF,oDAyCC;IAlBS,+CAAsB;IAgDtB,oDAAsB;CASjC"}
@@ -28,7 +28,6 @@ import React from 'react';
28
28
  import PropTypes from 'prop-types';
29
29
  import Textarea from 'react-textarea-autosize';
30
30
  import getCaretCoordinates from 'textarea-caret';
31
- import CustomEvent from 'custom-event';
32
31
  import { isValidElementType } from 'react-is';
33
32
  import Listeners, { KEY_CODES } from './listener';
34
33
  import { List as DefaultSuggestionList } from './List';
@@ -572,7 +571,7 @@ var ReactTextareaAutocomplete = /** @class */ (function (_super) {
572
571
  maxRows = 1;
573
572
  return (React.createElement("div", { className: "rta " + (dataLoading === true ? 'rta--loading' : '') + " " + (containerClassName || ''), style: containerStyle },
574
573
  this.renderSuggestionListContainer(),
575
- React.createElement(Textarea, __assign({}, this._cleanUpProps(), { className: "rta__textarea " + (className || ''), maxRows: maxRows, onBlur: this._onClickAndBlurHandler, onChange: this._changeHandler, onClick: this._onClickAndBlurHandler, onFocus: this.props.onFocus, onScroll: this._onScrollHandler, onSelect: this._selectHandler, ref: function (ref) {
574
+ React.createElement(Textarea, __assign({ "data-testid": 'message-input' }, this._cleanUpProps(), { className: "rta__textarea " + (className || ''), maxRows: maxRows, onBlur: this._onClickAndBlurHandler, onChange: this._changeHandler, onClick: this._onClickAndBlurHandler, onFocus: this.props.onFocus, onScroll: this._onScrollHandler, onSelect: this._selectHandler, ref: function (ref) {
576
575
  if (_this.props.innerRef)
577
576
  _this.props.innerRef(ref);
578
577
  _this.textareaRef = ref;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { UserResponse } from 'stream-chat';
3
- import type { DefaultUserType } from '../../types/types';
4
- export declare type AvatarProps<Us extends DefaultUserType<Us> = DefaultUserType> = {
3
+ import type { DefaultStreamChatGenerics } from '../../types/types';
4
+ export declare type AvatarProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
5
5
  /** Image URL or default is an image of the first initial of the name if there is one */
6
6
  image?: string | null;
7
7
  /** Name of the image, used for title tag fallback */
@@ -19,10 +19,10 @@ export declare type AvatarProps<Us extends DefaultUserType<Us> = DefaultUserType
19
19
  */
20
20
  size?: number;
21
21
  /** The entire user object for the chat user displayed in the component */
22
- user?: UserResponse<Us>;
22
+ user?: UserResponse<StreamChatGenerics>;
23
23
  };
24
24
  /**
25
25
  * A round avatar image with fallback to username's first letter
26
26
  */
27
- export declare const Avatar: <Us extends DefaultUserType<Us> = DefaultUserType<import("../../types/types").DefaultUserTypeInternal>>(props: AvatarProps<Us>) => JSX.Element;
27
+ export declare const Avatar: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: AvatarProps<StreamChatGenerics>) => JSX.Element;
28
28
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,oBAAY,WAAW,CAAC,EAAE,SAAS,eAAe,CAAC,EAAE,CAAC,GAAG,eAAe,IAAI;IAC1E,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,qDAAqD;IACrD,IAAI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,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,2IA8DlB,CAAC"}
@@ -6,44 +6,44 @@ import { ComponentContextValue } from '../../context/ComponentContext';
6
6
  import { EmojiContextValue } from '../../context/EmojiContext';
7
7
  import type { Data as EmojiMartData } from 'emoji-mart';
8
8
  import type { MessageInputProps } from '../MessageInput/MessageInput';
9
- import type { CustomTrigger, DefaultAttachmentType, DefaultChannelType, DefaultCommandType, DefaultEventType, DefaultMessageType, DefaultReactionType, DefaultUserType } from '../../types/types';
10
- export declare type ChannelProps<At extends DefaultAttachmentType = DefaultAttachmentType, Ch extends DefaultChannelType = DefaultChannelType, Co extends DefaultCommandType = DefaultCommandType, Ev extends DefaultEventType = DefaultEventType, Me extends DefaultMessageType = DefaultMessageType, Re extends DefaultReactionType = DefaultReactionType, Us extends DefaultUserType<Us> = DefaultUserType, V extends CustomTrigger = CustomTrigger> = {
9
+ import type { CustomTrigger, DefaultStreamChatGenerics, GiphyVersions } from '../../types/types';
10
+ export declare type ChannelProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger> = {
11
11
  /** List of accepted file types */
12
12
  acceptedFiles?: string[];
13
13
  /** Custom handler function that runs when the active channel has unread messages (i.e., when chat is running on a separate browser tab) */
14
14
  activeUnreadHandler?: (unread: number, documentTitle: string) => void;
15
15
  /** Custom UI component to display a message attachment, defaults to and accepts same props as: [Attachment](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Attachment/Attachment.tsx) */
16
- Attachment?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['Attachment'];
16
+ Attachment?: ComponentContextValue<StreamChatGenerics>['Attachment'];
17
17
  /** Optional UI component to override the default suggestion Header component, defaults to and accepts same props as: [Header](https://github.com/GetStream/stream-chat-react/blob/master/src/components/AutoCompleteTextarea/Header.tsx) */
18
- AutocompleteSuggestionHeader?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['AutocompleteSuggestionHeader'];
18
+ AutocompleteSuggestionHeader?: ComponentContextValue<StreamChatGenerics>['AutocompleteSuggestionHeader'];
19
19
  /** Optional UI component to override the default suggestion Item component, defaults to and accepts same props as: [Item](https://github.com/GetStream/stream-chat-react/blob/master/src/components/AutoCompleteTextarea/Item.js) */
20
- AutocompleteSuggestionItem?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['AutocompleteSuggestionItem'];
20
+ AutocompleteSuggestionItem?: ComponentContextValue<StreamChatGenerics>['AutocompleteSuggestionItem'];
21
21
  /** Optional UI component to override the default List component that displays suggestions, defaults to and accepts same props as: [List](https://github.com/GetStream/stream-chat-react/blob/master/src/components/AutoCompleteTextarea/List.js) */
22
- AutocompleteSuggestionList?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['AutocompleteSuggestionList'];
22
+ AutocompleteSuggestionList?: ComponentContextValue<StreamChatGenerics>['AutocompleteSuggestionList'];
23
23
  /** UI component to display a user's avatar, defaults to and accepts same props as: [Avatar](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Avatar/Avatar.tsx) */
24
- Avatar?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['Avatar'];
24
+ Avatar?: ComponentContextValue<StreamChatGenerics>['Avatar'];
25
25
  /** The connected and active channel */
26
- channel?: StreamChannel<At, Ch, Co, Ev, Me, Re, Us>;
26
+ channel?: StreamChannel<StreamChatGenerics>;
27
27
  /** Custom UI component to display the slow mode cooldown timer, defaults to and accepts same props as: [CooldownTimer](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/hooks/useCooldownTimer.tsx) */
28
- CooldownTimer?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['CooldownTimer'];
28
+ CooldownTimer?: ComponentContextValue<StreamChatGenerics>['CooldownTimer'];
29
29
  /** Custom UI component for date separators, defaults to and accepts same props as: [DateSeparator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/DateSeparator.tsx) */
30
- DateSeparator?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['DateSeparator'];
30
+ DateSeparator?: ComponentContextValue<StreamChatGenerics>['DateSeparator'];
31
31
  /** Custom action handler to override the default `channel.markRead` request function (advanced usage only) */
32
- doMarkReadRequest?: (channel: StreamChannel<At, Ch, Co, Ev, Me, Re, Us>) => Promise<MessageResponse<At, Ch, Co, Me, Re, Us>> | void;
32
+ doMarkReadRequest?: (channel: StreamChannel<StreamChatGenerics>) => Promise<MessageResponse<StreamChatGenerics>> | void;
33
33
  /** Custom action handler to override the default `channel.sendMessage` request function (advanced usage only) */
34
- doSendMessageRequest?: (channelId: string, message: Message<At, Me, Us>) => ReturnType<StreamChannel<At, Ch, Co, Ev, Me, Re, Us>['sendMessage']> | void;
34
+ doSendMessageRequest?: (channelId: string, message: Message<StreamChatGenerics>) => ReturnType<StreamChannel<StreamChatGenerics>['sendMessage']> | void;
35
35
  /** Custom action handler to override the default `client.updateMessage` request function (advanced usage only) */
36
- doUpdateMessageRequest?: (cid: string, updatedMessage: UpdatedMessage<At, Ch, Co, Me, Re, Us>) => ReturnType<StreamChat<At, Ch, Co, Ev, Me, Re, Us>['updateMessage']>;
36
+ doUpdateMessageRequest?: (cid: string, updatedMessage: UpdatedMessage<StreamChatGenerics>) => ReturnType<StreamChat<StreamChatGenerics>['updateMessage']>;
37
37
  /** If true, chat users will be able to drag and drop file uploads to the entire channel window */
38
38
  dragAndDropWindow?: boolean;
39
39
  /** Custom UI component to override default edit message input, defaults to and accepts same props as: [EditMessageForm](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/EditMessageForm.tsx) */
40
- EditMessageInput?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['EditMessageInput'];
40
+ EditMessageInput?: ComponentContextValue<StreamChatGenerics>['EditMessageInput'];
41
41
  /** Custom UI component to override default `NimbleEmoji` from `emoji-mart` */
42
42
  Emoji?: EmojiContextValue['Emoji'];
43
43
  /** Custom prop to override default `facebook.json` emoji data set from `emoji-mart` */
44
44
  emojiData?: EmojiMartData;
45
45
  /** Custom UI component for emoji button in input, defaults to and accepts same props as: [EmojiIconSmall](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/icons.tsx) */
46
- EmojiIcon?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['EmojiIcon'];
46
+ EmojiIcon?: ComponentContextValue<StreamChatGenerics>['EmojiIcon'];
47
47
  /** Custom UI component to override default `NimbleEmojiIndex` from `emoji-mart` */
48
48
  EmojiIndex?: EmojiContextValue['EmojiIndex'];
49
49
  /** Custom UI component to override default `NimblePicker` from `emoji-mart` */
@@ -51,71 +51,73 @@ export declare type ChannelProps<At extends DefaultAttachmentType = DefaultAttac
51
51
  /** Custom UI component to be shown if no active channel is set, defaults to null and skips rendering the Channel component */
52
52
  EmptyPlaceholder?: React.ReactElement;
53
53
  /** Custom UI component to be displayed when the `MessageList` is empty, , defaults to and accepts same props as: [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/EmptyStateIndicator/EmptyStateIndicator.tsx) */
54
- EmptyStateIndicator?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['EmptyStateIndicator'];
54
+ EmptyStateIndicator?: ComponentContextValue<StreamChatGenerics>['EmptyStateIndicator'];
55
55
  /** Custom UI component for file upload icon, defaults to and accepts same props as: [FileUploadIcon](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/icons.tsx) */
56
- FileUploadIcon?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['FileUploadIcon'];
56
+ FileUploadIcon?: ComponentContextValue<StreamChatGenerics>['FileUploadIcon'];
57
57
  /** Custom UI component to render a Giphy preview in the `VirtualizedMessageList` */
58
- GiphyPreviewMessage?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['GiphyPreviewMessage'];
58
+ GiphyPreviewMessage?: ComponentContextValue<StreamChatGenerics>['GiphyPreviewMessage'];
59
+ /** The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default */
60
+ giphyVersion?: GiphyVersions;
59
61
  /** Custom UI component to render at the top of the `MessageList` */
60
- HeaderComponent?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['HeaderComponent'];
62
+ HeaderComponent?: ComponentContextValue<StreamChatGenerics>['HeaderComponent'];
61
63
  /** Custom UI component handling how the message input is rendered, defaults to and accepts the same props as [MessageInputFlat](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/MessageInputFlat.tsx) */
62
- Input?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['Input'];
64
+ Input?: ComponentContextValue<StreamChatGenerics>['Input'];
63
65
  /** Custom UI component to be shown if the channel query fails, defaults to and accepts same props as: [LoadingErrorIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Loading/LoadingErrorIndicator.tsx) */
64
66
  LoadingErrorIndicator?: React.ComponentType<LoadingErrorIndicatorProps>;
65
67
  /** Custom UI component to render while the `MessageList` is loading new messages, defaults to and accepts same props as: [LoadingIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Loading/LoadingIndicator.tsx) */
66
- LoadingIndicator?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['LoadingIndicator'];
68
+ LoadingIndicator?: ComponentContextValue<StreamChatGenerics>['LoadingIndicator'];
67
69
  /** Maximum number of attachments allowed per message */
68
70
  maxNumberOfFiles?: number;
69
71
  /** Custom UI component to display a message in the standard `MessageList`, defaults to and accepts the same props as: [MessageSimple](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageSimple.tsx) */
70
- Message?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['Message'];
72
+ Message?: ComponentContextValue<StreamChatGenerics>['Message'];
71
73
  /** Custom UI component for a deleted message, defaults to and accepts same props as: [MessageDeleted](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageDeleted.tsx) */
72
- MessageDeleted?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageDeleted'];
74
+ MessageDeleted?: ComponentContextValue<StreamChatGenerics>['MessageDeleted'];
73
75
  /** Custom UI component that displays message and connection status notifications in the `MessageList`, defaults to and accepts same props as [DefaultMessageListNotifications](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageList/MessageList.tsx) */
74
- MessageListNotifications?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageListNotifications'];
76
+ MessageListNotifications?: ComponentContextValue<StreamChatGenerics>['MessageListNotifications'];
75
77
  /** Custom UI component to display a notification when scrolled up the list and new messages arrive, defaults to and accepts same props as [MessageNotification](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageList/MessageNotification.tsx) */
76
- MessageNotification?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageNotification'];
78
+ MessageNotification?: ComponentContextValue<StreamChatGenerics>['MessageNotification'];
77
79
  /** Custom UI component for message options popup, defaults to and accepts same props as: [MessageOptions](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageOptions.tsx) */
78
- MessageOptions?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageOptions'];
80
+ MessageOptions?: ComponentContextValue<StreamChatGenerics>['MessageOptions'];
79
81
  /** Custom UI component to display message replies, defaults to and accepts same props as: [MessageRepliesCountButton](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageRepliesCountButton.tsx) */
80
- MessageRepliesCountButton?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageRepliesCountButton'];
82
+ MessageRepliesCountButton?: ComponentContextValue<StreamChatGenerics>['MessageRepliesCountButton'];
81
83
  /** Custom UI component to display message delivery status, defaults to and accepts same props as: [MessageStatus](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageStatus.tsx) */
82
- MessageStatus?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageStatus'];
84
+ MessageStatus?: ComponentContextValue<StreamChatGenerics>['MessageStatus'];
83
85
  /** Custom UI component to display system messages, defaults to and accepts same props as: [EventComponent](https://github.com/GetStream/stream-chat-react/blob/master/src/components/EventComponent/EventComponent.tsx) */
84
- MessageSystem?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageSystem'];
86
+ MessageSystem?: ComponentContextValue<StreamChatGenerics>['MessageSystem'];
85
87
  /** Custom UI component to display a timestamp on a message, defaults to and accepts same props as: [MessageTimestamp](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageTimestamp.tsx) */
86
- MessageTimestamp?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['MessageTimestamp'];
88
+ MessageTimestamp?: ComponentContextValue<StreamChatGenerics>['MessageTimestamp'];
87
89
  /** Whether to allow multiple attachment uploads */
88
90
  multipleUploads?: boolean;
89
91
  /** Custom action handler function to run on click of an @mention in a message */
90
- onMentionsClick?: OnMentionAction<Us>;
92
+ onMentionsClick?: OnMentionAction<StreamChatGenerics>;
91
93
  /** Custom action handler function to run on hover of an @mention in a message */
92
- onMentionsHover?: OnMentionAction<Us>;
94
+ onMentionsHover?: OnMentionAction<StreamChatGenerics>;
93
95
  /** If `dragAndDropWindow` prop is true, the props to pass to the MessageInput component (overrides props placed directly on MessageInput) */
94
- optionalMessageInputProps?: MessageInputProps<At, Ch, Co, Ev, Me, Re, Us, V>;
96
+ optionalMessageInputProps?: MessageInputProps<StreamChatGenerics, V>;
95
97
  /** Custom UI component to override default pinned message indicator, defaults to and accepts same props as: [PinIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/icons.tsx) */
96
- PinIndicator?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['PinIndicator'];
98
+ PinIndicator?: ComponentContextValue<StreamChatGenerics>['PinIndicator'];
97
99
  /** Custom UI component to override quoted message UI on a sent message, defaults to and accepts same props as: [QuotedMessage](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/QuotedMessage.tsx) */
98
- QuotedMessage?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['QuotedMessage'];
100
+ QuotedMessage?: ComponentContextValue<StreamChatGenerics>['QuotedMessage'];
99
101
  /** Custom UI component to override the message input's quoted message preview, defaults to and accepts same props as: [QuotedMessagePreview](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/QuotedMessagePreview.tsx) */
100
- QuotedMessagePreview?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['QuotedMessagePreview'];
102
+ QuotedMessagePreview?: ComponentContextValue<StreamChatGenerics>['QuotedMessagePreview'];
101
103
  /** Custom UI component to display the reaction selector, defaults to and accepts same props as: [ReactionSelector](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Reactions/ReactionSelector.tsx) */
102
- ReactionSelector?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['ReactionSelector'];
104
+ ReactionSelector?: ComponentContextValue<StreamChatGenerics>['ReactionSelector'];
103
105
  /** Custom UI component to display the list of reactions on a message, defaults to and accepts same props as: [ReactionsList](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Reactions/ReactionsList.tsx) */
104
- ReactionsList?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['ReactionsList'];
106
+ ReactionsList?: ComponentContextValue<StreamChatGenerics>['ReactionsList'];
105
107
  /** Custom UI component for send button, defaults to and accepts same props as: [SendButton](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/icons.tsx) */
106
- SendButton?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['SendButton'];
108
+ SendButton?: ComponentContextValue<StreamChatGenerics>['SendButton'];
107
109
  /** If true, skips the message data string comparison used to memoize the current channel messages (helpful for channels with 1000s of messages) */
108
110
  skipMessageDataMemoization?: boolean;
109
111
  /** Custom UI component to display the header of a `Thread`, defaults to and accepts same props as: [DefaultThreadHeader](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Thread/Thread.tsx) */
110
- ThreadHeader?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['ThreadHeader'];
112
+ ThreadHeader?: ComponentContextValue<StreamChatGenerics>['ThreadHeader'];
111
113
  /** Custom UI component to display the start of a threaded `MessageList`, defaults to and accepts same props as: [DefaultThreadStart](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Thread/Thread.tsx) */
112
- ThreadStart?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['ThreadStart'];
114
+ ThreadStart?: ComponentContextValue<StreamChatGenerics>['ThreadStart'];
113
115
  /** Optional context provider that lets you override the default autocomplete triggers, defaults to: [DefaultTriggerProvider](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageInput/DefaultTriggerProvider.tsx) */
114
- TriggerProvider?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['TriggerProvider'];
116
+ TriggerProvider?: ComponentContextValue<StreamChatGenerics>['TriggerProvider'];
115
117
  /** Custom UI component for the typing indicator, defaults to and accepts same props as: [TypingIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/TypingIndicator/TypingIndicator.tsx) */
116
- TypingIndicator?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['TypingIndicator'];
118
+ TypingIndicator?: ComponentContextValue<StreamChatGenerics>['TypingIndicator'];
117
119
  /** Custom UI component to display a message in the `VirtualizedMessageList`, defaults to and accepts same props as: [FixedHeightMessage](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/FixedHeightMessage.tsx) */
118
- VirtualMessage?: ComponentContextValue<At, Ch, Co, Ev, Me, Re, Us>['VirtualMessage'];
120
+ VirtualMessage?: ComponentContextValue<StreamChatGenerics>['VirtualMessage'];
119
121
  };
120
122
  /**
121
123
  * A wrapper component that provides channel data and renders children.
@@ -126,5 +128,5 @@ export declare type ChannelProps<At extends DefaultAttachmentType = DefaultAttac
126
128
  * - [EmojiContext](https://getstream.io/chat/docs/sdk/react/contexts/emoji_context/)
127
129
  * - [TypingContext](https://getstream.io/chat/docs/sdk/react/contexts/typing_context/)
128
130
  */
129
- export declare const Channel: <At extends DefaultAttachmentType = DefaultAttachmentType, Ch extends DefaultChannelType = DefaultChannelType, Co extends import("stream-chat").LiteralStringForUnion = import("stream-chat").LiteralStringForUnion, Ev extends import("../../types/types").UnknownType = import("../../types/types").UnknownType, Me extends DefaultMessageType = DefaultMessageType, Re extends import("../../types/types").UnknownType = import("../../types/types").UnknownType, Us extends DefaultUserType<Us> = DefaultUserType<import("../../types/types").DefaultUserTypeInternal>, V extends CustomTrigger = CustomTrigger>(props: React.PropsWithChildren<ChannelProps<At, Ch, Co, Ev, Me, Re, Us, V>>) => JSX.Element | null;
131
+ export declare const Channel: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>(props: React.PropsWithChildren<ChannelProps<StreamChatGenerics, V>>) => JSX.Element | null;
130
132
  //# sourceMappingURL=Channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAOlB,MAAM,OAAO,CAAC;AAIf,OAAO,EAKL,OAAO,EACP,eAAe,EAEf,OAAO,IAAI,aAAa,EACxB,UAAU,EACV,cAAc,EAEf,MAAM,aAAa,CAAC;AASrB,OAAO,EAAE,eAAe,EAAuB,MAAM,6BAA6B,CAAC;AAGnF,OAAO,EAGL,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAepB,OAAO,EAAE,qBAAqB,EAAqB,MAAM,gCAAgC,CAAC;AAE1F,OAAO,EAAe,iBAAiB,EAAiB,MAAM,4BAA4B,CAAC;AAK3F,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,EACV,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,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