stream-chat-react 11.8.0 → 11.10.0
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.
- package/dist/{Window-7c2f264c.js → Window-7d524c3b.js} +3367 -165
- package/dist/browser.full-bundle.js +3692 -400
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +4 -4
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/Attachment.d.ts +1 -1
- package/dist/components/Attachment/Attachment.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentActions.d.ts +2 -1
- package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
- package/dist/components/Attachment/AttachmentContainer.d.ts +9 -9
- package/dist/components/Attachment/AttachmentContainer.d.ts.map +1 -1
- package/dist/components/Attachment/Audio.d.ts +3 -3
- package/dist/components/Attachment/Audio.d.ts.map +1 -1
- package/dist/components/Attachment/Card.d.ts +3 -2
- package/dist/components/Attachment/Card.d.ts.map +1 -1
- package/dist/components/Attachment/DownloadButton.d.ts +2 -1
- package/dist/components/Attachment/DownloadButton.d.ts.map +1 -1
- package/dist/components/Attachment/FileAttachment.d.ts +2 -1
- package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/dist/components/Attachment/FileSizeIndicator.d.ts +2 -1
- package/dist/components/Attachment/FileSizeIndicator.d.ts.map +1 -1
- package/dist/components/Attachment/UnsupportedAttachment.d.ts +2 -1
- package/dist/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
- package/dist/components/Attachment/icons.d.ts +4 -3
- package/dist/components/Attachment/icons.d.ts.map +1 -1
- package/dist/components/Attachment/utils.d.ts +8 -8
- package/dist/components/Attachment/utils.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Header.d.ts +2 -1
- package/dist/components/AutoCompleteTextarea/Header.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/List.d.ts +2 -1
- package/dist/components/AutoCompleteTextarea/List.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts +2 -2
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Channel/Channel.d.ts +2 -2
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +77 -62
- package/dist/components/Channel/LoadingChannel.d.ts +2 -1
- package/dist/components/Channel/LoadingChannel.d.ts.map +1 -1
- package/dist/components/ChannelHeader/ChannelHeader.d.ts +1 -1
- package/dist/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
- package/dist/components/ChannelHeader/ChannelHeader.js +1 -1
- package/dist/components/ChannelHeader/icons.d.ts +2 -1
- package/dist/components/ChannelHeader/icons.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelList.d.ts +1 -1
- package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelListMessenger.d.ts +1 -1
- package/dist/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelListMessenger.js +3 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.js +12 -13
- package/dist/components/ChannelPreview/ChannelPreview.d.ts +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.js +11 -8
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts +2 -1
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/dist/components/ChannelPreview/utils.d.ts +2 -1
- package/dist/components/ChannelPreview/utils.d.ts.map +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchBar.d.ts +1 -1
- package/dist/components/ChannelSearch/SearchBar.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchInput.d.ts +1 -1
- package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchResults.d.ts +1 -1
- package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchResults.js +2 -1
- package/dist/components/ChannelSearch/icons.d.ts +5 -4
- package/dist/components/ChannelSearch/icons.d.ts.map +1 -1
- package/dist/components/Chat/Chat.d.ts +1 -1
- package/dist/components/Chat/Chat.d.ts.map +1 -1
- package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +1 -1
- package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts.map +1 -1
- package/dist/components/ChatDown/ChatDown.d.ts +1 -1
- package/dist/components/ChatDown/ChatDown.d.ts.map +1 -1
- package/dist/components/ChatDown/icons.d.ts +2 -1
- package/dist/components/ChatDown/icons.d.ts.map +1 -1
- package/dist/components/CommandItem/CommandItem.d.ts +2 -2
- package/dist/components/CommandItem/CommandItem.d.ts.map +1 -1
- package/dist/components/DateSeparator/DateSeparator.d.ts +2 -1
- package/dist/components/DateSeparator/DateSeparator.d.ts.map +1 -1
- package/dist/components/Emojis/EmojiPicker.d.ts +1 -1
- package/dist/components/Emojis/EmojiPicker.d.ts.map +1 -1
- package/dist/components/Emojis/EmojiPicker.js +1 -1
- package/dist/components/Emojis/index.cjs.js +4 -4
- package/dist/components/EmoticonItem/EmoticonItem.d.ts +2 -1
- package/dist/components/EmoticonItem/EmoticonItem.d.ts.map +1 -1
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +2 -1
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts.map +1 -1
- package/dist/components/EmptyStateIndicator/icons.d.ts +2 -1
- package/dist/components/EmptyStateIndicator/icons.d.ts.map +1 -1
- package/dist/components/EventComponent/EventComponent.d.ts +1 -1
- package/dist/components/EventComponent/EventComponent.d.ts.map +1 -1
- package/dist/components/Gallery/BaseImage.d.ts +2 -2
- package/dist/components/Gallery/BaseImage.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.d.ts +2 -2
- package/dist/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/components/Gallery/Image.d.ts +2 -2
- package/dist/components/Gallery/Image.d.ts.map +1 -1
- package/dist/components/Gallery/ModalGallery.d.ts +2 -1
- package/dist/components/Gallery/ModalGallery.d.ts.map +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +7 -12
- package/dist/components/LoadMore/LoadMoreButton.d.ts +1 -1
- package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMoreButton.js +1 -1
- package/dist/components/LoadMore/LoadMorePaginator.d.ts +2 -2
- package/dist/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
- package/dist/components/Loading/LoadingChannels.d.ts +1 -1
- package/dist/components/Loading/LoadingChannels.d.ts.map +1 -1
- package/dist/components/Loading/LoadingErrorIndicator.d.ts +2 -1
- package/dist/components/Loading/LoadingErrorIndicator.d.ts.map +1 -1
- package/dist/components/Loading/LoadingIndicator.d.ts +2 -1
- package/dist/components/Loading/LoadingIndicator.d.ts.map +1 -1
- package/dist/components/MML/MML.d.ts +2 -1
- package/dist/components/MML/MML.d.ts.map +1 -1
- package/dist/components/Message/FixedHeightMessage.d.ts +2 -1
- package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
- package/dist/components/Message/Message.d.ts +2 -1
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.js +2 -2
- package/dist/components/Message/MessageDeleted.d.ts +2 -1
- package/dist/components/Message/MessageDeleted.d.ts.map +1 -1
- package/dist/components/Message/MessageErrorText.d.ts +2 -2
- package/dist/components/Message/MessageErrorText.d.ts.map +1 -1
- package/dist/components/Message/MessageOptions.d.ts +1 -1
- package/dist/components/Message/MessageOptions.d.ts.map +1 -1
- package/dist/components/Message/MessageOptions.js +5 -3
- package/dist/components/Message/MessageRepliesCountButton.d.ts +2 -2
- package/dist/components/Message/MessageRepliesCountButton.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.d.ts +2 -1
- package/dist/components/Message/MessageSimple.d.ts.map +1 -1
- package/dist/components/Message/MessageStatus.d.ts +1 -1
- package/dist/components/Message/MessageStatus.d.ts.map +1 -1
- package/dist/components/Message/MessageText.d.ts +2 -1
- package/dist/components/Message/MessageText.d.ts.map +1 -1
- package/dist/components/Message/MessageTimestamp.d.ts +2 -1
- package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
- package/dist/components/Message/QuotedMessage.d.ts +2 -1
- package/dist/components/Message/QuotedMessage.d.ts.map +1 -1
- package/dist/components/Message/icons.d.ts +11 -10
- package/dist/components/Message/icons.d.ts.map +1 -1
- package/dist/components/Message/renderText/componentRenderers/Anchor.d.ts +2 -2
- package/dist/components/Message/renderText/componentRenderers/Anchor.d.ts.map +1 -1
- package/dist/components/Message/renderText/componentRenderers/Emoji.d.ts +2 -1
- package/dist/components/Message/renderText/componentRenderers/Emoji.d.ts.map +1 -1
- package/dist/components/Message/renderText/componentRenderers/Mention.d.ts +2 -2
- package/dist/components/Message/renderText/componentRenderers/Mention.d.ts.map +1 -1
- package/dist/components/Message/renderText/renderText.d.ts +2 -2
- package/dist/components/Message/renderText/renderText.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +5 -0
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/MessageActions/CustomMessageActionsList.d.ts +2 -1
- package/dist/components/MessageActions/CustomMessageActionsList.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActions.d.ts +1 -1
- package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActions.js +3 -1
- package/dist/components/MessageActions/MessageActionsBox.d.ts +1 -1
- package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActionsBox.js +1 -1
- package/dist/components/MessageBounce/MessageBounceModal.d.ts +2 -2
- package/dist/components/MessageBounce/MessageBounceModal.d.ts.map +1 -1
- package/dist/components/MessageBounce/MessageBouncePrompt.d.ts +2 -1
- package/dist/components/MessageBounce/MessageBouncePrompt.d.ts.map +1 -1
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts +3 -2
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts.map +1 -1
- package/dist/components/MessageInput/CooldownTimer.d.ts +1 -1
- package/dist/components/MessageInput/CooldownTimer.d.ts.map +1 -1
- package/dist/components/MessageInput/DefaultTriggerProvider.d.ts +1 -1
- package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
- package/dist/components/MessageInput/DropzoneProvider.d.ts +1 -1
- package/dist/components/MessageInput/DropzoneProvider.d.ts.map +1 -1
- package/dist/components/MessageInput/EditMessageForm.d.ts +2 -1
- package/dist/components/MessageInput/EditMessageForm.d.ts.map +1 -1
- package/dist/components/MessageInput/LinkPreviewList.d.ts +2 -1
- package/dist/components/MessageInput/LinkPreviewList.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInput.d.ts +1 -1
- package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.d.ts +2 -1
- package/dist/components/MessageInput/MessageInputFlat.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.js +1 -1
- package/dist/components/MessageInput/MessageInputSmall.d.ts +2 -1
- package/dist/components/MessageInput/MessageInputSmall.d.ts.map +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts +3 -2
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview.js +1 -1
- package/dist/components/MessageInput/UploadsPreview.d.ts +2 -1
- package/dist/components/MessageInput/UploadsPreview.d.ts.map +1 -1
- package/dist/components/MessageInput/icons.d.ts +14 -14
- package/dist/components/MessageInput/icons.d.ts.map +1 -1
- package/dist/components/MessageInput/icons.js +2 -1
- package/dist/components/MessageList/ConnectionStatus.d.ts +1 -1
- package/dist/components/MessageList/ConnectionStatus.d.ts.map +1 -1
- package/dist/components/MessageList/CustomNotification.d.ts +2 -2
- package/dist/components/MessageList/CustomNotification.d.ts.map +1 -1
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts +2 -1
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.d.ts +8 -4
- package/dist/components/MessageList/MessageList.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.js +4 -2
- package/dist/components/MessageList/MessageListMainPanel.d.ts +2 -1
- package/dist/components/MessageList/MessageListMainPanel.d.ts.map +1 -1
- package/dist/components/MessageList/MessageListNotifications.d.ts +1 -1
- package/dist/components/MessageList/MessageListNotifications.d.ts.map +1 -1
- package/dist/components/MessageList/MessageNotification.d.ts +1 -1
- package/dist/components/MessageList/MessageNotification.d.ts.map +1 -1
- package/dist/components/MessageList/ScrollToBottomButton.d.ts +2 -1
- package/dist/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/dist/components/MessageList/ScrollToBottomButton.js +44 -3
- package/dist/components/MessageList/UnreadMessagesNotification.d.ts +12 -1
- package/dist/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
- package/dist/components/MessageList/UnreadMessagesNotification.js +4 -2
- package/dist/components/MessageList/UnreadMessagesSeparator.d.ts +9 -1
- package/dist/components/MessageList/UnreadMessagesSeparator.d.ts.map +1 -1
- package/dist/components/MessageList/UnreadMessagesSeparator.js +2 -2
- package/dist/components/MessageList/VirtualizedMessageList.d.ts +9 -5
- package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageList.js +9 -4
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +6 -6
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.js +2 -2
- package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.d.ts +2 -1
- package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useUnreadMessagesNotification.js +27 -13
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.d.ts +3 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useUnreadMessagesNotificationVirtualized.js +13 -7
- package/dist/components/MessageList/hooks/useMarkRead.d.ts +3 -2
- package/dist/components/MessageList/hooks/useMarkRead.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useMarkRead.js +65 -11
- package/dist/components/MessageList/icons.d.ts +4 -3
- package/dist/components/MessageList/icons.d.ts.map +1 -1
- package/dist/components/MessageList/renderMessages.d.ts +2 -2
- package/dist/components/MessageList/renderMessages.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +9 -7
- package/dist/components/Modal/icons.d.ts +2 -1
- package/dist/components/Modal/icons.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/FileIcon.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts +12 -12
- package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts +18 -18
- package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FilePreviewer.d.ts +2 -1
- package/dist/components/ReactFileUtilities/FilePreviewer.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileUploadButton.d.ts +2 -2
- package/dist/components/ReactFileUtilities/FileUploadButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileUploadButton.js +3 -1
- package/dist/components/ReactFileUtilities/IconButton.d.ts +2 -2
- package/dist/components/ReactFileUtilities/IconButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/IconButton.js +3 -1
- package/dist/components/ReactFileUtilities/ImageDropzone.d.ts +2 -2
- package/dist/components/ReactFileUtilities/ImageDropzone.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts +2 -2
- package/dist/components/ReactFileUtilities/ImagePreviewer.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/ImagePreviewer.js +3 -1
- package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts +2 -2
- package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/ImageUploadButton.js +3 -1
- package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts +2 -1
- package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/Thumbnail.d.ts +2 -2
- package/dist/components/ReactFileUtilities/Thumbnail.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts +2 -1
- package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/UploadButton.d.ts +2 -2
- package/dist/components/ReactFileUtilities/UploadButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/icons/AttachmentIcon.d.ts +2 -1
- package/dist/components/ReactFileUtilities/icons/AttachmentIcon.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/icons/CloseIcon.d.ts +2 -1
- package/dist/components/ReactFileUtilities/icons/CloseIcon.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/icons/FilePlaceholderIcon.d.ts +2 -2
- package/dist/components/ReactFileUtilities/icons/FilePlaceholderIcon.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/icons/PictureIcon.d.ts +2 -1
- package/dist/components/ReactFileUtilities/icons/PictureIcon.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/icons/RetryIcon.d.ts +2 -1
- package/dist/components/ReactFileUtilities/icons/RetryIcon.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionsList.d.ts +7 -1
- package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionsList.js +5 -3
- package/dist/components/Reactions/ReactionsListModal.d.ts +4 -3
- package/dist/components/Reactions/ReactionsListModal.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionsListModal.js +18 -8
- package/dist/components/Reactions/SimpleReactionsList.d.ts +2 -1
- package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/SpriteImage.d.ts +2 -1
- package/dist/components/Reactions/SpriteImage.d.ts.map +1 -1
- package/dist/components/Reactions/SpriteImage.js +3 -17
- package/dist/components/Reactions/StreamEmoji.d.ts +1 -1
- package/dist/components/Reactions/StreamEmoji.d.ts.map +1 -1
- package/dist/components/Reactions/StreamEmoji.js +3 -1
- package/dist/components/Reactions/hooks/useFetchReactions.js +2 -2
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts +5 -2
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts.map +1 -1
- package/dist/components/Reactions/hooks/useProcessReactions.js +10 -3
- package/dist/components/Reactions/types.d.ts +4 -1
- package/dist/components/Reactions/types.d.ts.map +1 -1
- package/dist/components/SafeAnchor/SafeAnchor.d.ts +2 -2
- package/dist/components/SafeAnchor/SafeAnchor.d.ts.map +1 -1
- package/dist/components/SafeAnchor/SafeAnchor.js +3 -1
- package/dist/components/Thread/Thread.d.ts +1 -1
- package/dist/components/Thread/Thread.d.ts.map +1 -1
- package/dist/components/Thread/ThreadHead.d.ts +2 -1
- package/dist/components/Thread/ThreadHead.d.ts.map +1 -1
- package/dist/components/Thread/ThreadHeader.d.ts +1 -1
- package/dist/components/Thread/ThreadHeader.d.ts.map +1 -1
- package/dist/components/Thread/ThreadHeader.js +1 -1
- package/dist/components/Thread/ThreadStart.d.ts +2 -1
- package/dist/components/Thread/ThreadStart.d.ts.map +1 -1
- package/dist/components/Thread/icons.d.ts +2 -1
- package/dist/components/Thread/icons.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/TypingIndicator/TypingIndicator.d.ts +1 -1
- package/dist/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
- package/dist/components/UserItem/UserItem.d.ts +1 -1
- package/dist/components/UserItem/UserItem.d.ts.map +1 -1
- package/dist/components/Window/Window.d.ts +1 -1
- package/dist/components/Window/Window.d.ts.map +1 -1
- package/dist/context/ChannelActionContext.d.ts +4 -3
- package/dist/context/ChannelActionContext.d.ts.map +1 -1
- package/dist/context/ChannelListContext.d.ts +1 -1
- package/dist/context/ChannelListContext.d.ts.map +1 -1
- package/dist/context/ChannelStateContext.d.ts +2 -2
- package/dist/context/ChannelStateContext.d.ts.map +1 -1
- package/dist/context/ChatContext.d.ts +2 -2
- package/dist/context/ChatContext.d.ts.map +1 -1
- package/dist/context/ComponentContext.d.ts +2 -2
- package/dist/context/ComponentContext.d.ts.map +1 -1
- package/dist/context/MessageBounceContext.d.ts +2 -2
- package/dist/context/MessageBounceContext.d.ts.map +1 -1
- package/dist/context/MessageContext.d.ts +7 -2
- package/dist/context/MessageContext.d.ts.map +1 -1
- package/dist/context/MessageInputContext.d.ts +1 -1
- package/dist/context/MessageInputContext.d.ts.map +1 -1
- package/dist/context/MessageListContext.d.ts +1 -1
- package/dist/context/MessageListContext.d.ts.map +1 -1
- package/dist/context/TranslationContext.d.ts +2 -2
- package/dist/context/TranslationContext.d.ts.map +1 -1
- package/dist/context/TypingContext.d.ts +2 -2
- package/dist/context/TypingContext.d.ts.map +1 -1
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/i18n/Streami18n.d.ts +19 -0
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/de.json +19 -0
- package/dist/i18n/en.json +19 -0
- package/dist/i18n/es.json +19 -0
- package/dist/i18n/fr.json +19 -0
- package/dist/i18n/hi.json +19 -0
- package/dist/i18n/it.json +19 -0
- package/dist/i18n/ja.json +19 -0
- package/dist/i18n/ko.json +19 -0
- package/dist/i18n/nl.json +19 -0
- package/dist/i18n/pt.json +19 -0
- package/dist/i18n/ru.json +19 -0
- package/dist/i18n/tr.json +19 -0
- package/dist/index.cjs.js +129 -54
- package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +15 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +9 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,aAAa,EAA0B,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAuB,MAAM,gCAAgC,CAAC;AAG5F,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EACV,aAAa,EACb,yBAAyB,EACzB,kBAAkB,EAClB,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MA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CACtC,CAAC;AA4DF;;GAEG;AACH,eAAO,MAAM,YAAY,mMAAsE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
2
|
-
export declare const MessageInputFlat: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => JSX.Element;
|
|
3
|
+
export declare const MessageInputFlat: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=MessageInputFlat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInputFlat.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/MessageInputFlat.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageInputFlat.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/MessageInputFlat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AA8BlD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAGnE,eAAO,MAAM,gBAAgB,2GA+B5B,CAAC"}
|
|
@@ -105,7 +105,7 @@ var MessageInputV2 = function () {
|
|
|
105
105
|
displayQuotedMessage && React.createElement(QuotedMessagePreviewHeader, null),
|
|
106
106
|
React.createElement("div", { className: 'str-chat__message-input-inner' },
|
|
107
107
|
React.createElement("div", { className: 'str-chat__file-input-container', "data-testid": 'file-upload-button' },
|
|
108
|
-
React.createElement(UploadButton, { accept: acceptedFiles === null || acceptedFiles === void 0 ? void 0 : acceptedFiles.join(','), "aria-label": 'File upload', className: 'str-chat__file-input', "data-testid": 'file-input', disabled: !isUploadEnabled || maxFilesLeft === 0, id: id, multiple: multipleUploads, onFileChange: uploadNewFiles }),
|
|
108
|
+
React.createElement(UploadButton, { accept: acceptedFiles === null || acceptedFiles === void 0 ? void 0 : acceptedFiles.join(','), "aria-label": t('aria/File upload'), className: 'str-chat__file-input', "data-testid": 'file-input', disabled: !isUploadEnabled || maxFilesLeft === 0, id: id, multiple: multipleUploads, onFileChange: uploadNewFiles }),
|
|
109
109
|
React.createElement("label", { className: 'str-chat__file-input-label', htmlFor: id },
|
|
110
110
|
React.createElement(FileUploadIcon, null))),
|
|
111
111
|
React.createElement("div", { className: 'str-chat__message-textarea-container' },
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { CustomTrigger, DefaultStreamChatGenerics } from '../../types/types';
|
|
2
3
|
/**
|
|
3
4
|
* @deprecated This component has beend deprecated in favor of [`MessageInputFlat`](./MessageInputFlat.tsx) from which
|
|
@@ -8,5 +9,5 @@ import type { CustomTrigger, DefaultStreamChatGenerics } from '../../types/types
|
|
|
8
9
|
*
|
|
9
10
|
* **Will be removed with the complete transition to the theming V2 (next major release - `v11.0.0`).**
|
|
10
11
|
*/
|
|
11
|
-
export declare const MessageInputSmall: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>() => JSX.Element;
|
|
12
|
+
export declare const MessageInputSmall: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger>() => React.JSX.Element;
|
|
12
13
|
//# sourceMappingURL=MessageInputSmall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInputSmall.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/MessageInputSmall.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageInputSmall.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/MessageInputSmall.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAuBzC,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAGlF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,oJAmH7B,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StreamMessage } from '../../context/ChannelStateContext';
|
|
2
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
3
|
-
export declare const QuotedMessagePreviewHeader: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => JSX.Element;
|
|
4
|
+
export declare const QuotedMessagePreviewHeader: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => React.JSX.Element;
|
|
4
5
|
export type QuotedMessagePreviewProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
6
|
quotedMessage: StreamMessage<StreamChatGenerics>;
|
|
6
7
|
};
|
|
7
|
-
export declare const QuotedMessagePreview: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ quotedMessage, }: QuotedMessagePreviewProps<StreamChatGenerics>) => JSX.Element | null;
|
|
8
|
+
export declare const QuotedMessagePreview: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ quotedMessage, }: QuotedMessagePreviewProps<StreamChatGenerics>) => React.JSX.Element | null;
|
|
8
9
|
//# sourceMappingURL=QuotedMessagePreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuotedMessagePreview.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/QuotedMessagePreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QuotedMessagePreview.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/QuotedMessagePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,0BAA0B,2GAoBtC,CAAC;AAEF,MAAM,MAAM,yBAAyB,CACnC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,oBAAoB,mLA+ChC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export var QuotedMessagePreviewHeader = function () {
|
|
|
10
10
|
var t = useTranslationContext('QuotedMessagePreview').t;
|
|
11
11
|
return (React.createElement("div", { className: 'quoted-message-preview-header str-chat__quoted-message-preview-header' },
|
|
12
12
|
React.createElement("div", { className: 'str-chat__quoted-message-reply-to-message' }, t('Reply to Message')),
|
|
13
|
-
React.createElement("button", { "aria-label": 'Cancel Reply', className: 'str-chat__square-button str-chat__quoted-message-remove', onClick: function () { return setQuotedMessage(undefined); } },
|
|
13
|
+
React.createElement("button", { "aria-label": t('aria/Cancel Reply'), className: 'str-chat__square-button str-chat__quoted-message-remove', onClick: function () { return setQuotedMessage(undefined); } },
|
|
14
14
|
React.createElement(CloseIcon, null))));
|
|
15
15
|
};
|
|
16
16
|
export var QuotedMessagePreview = function (_a) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
2
3
|
/**
|
|
3
4
|
* @deprecated This component has been deprecated in favor of `AttachmentPreviewList` as this component
|
|
@@ -6,5 +7,5 @@ import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
|
6
7
|
*
|
|
7
8
|
* **Will be removed with the complete transition to the theming V2 (next major release - `v11.0.0`).**
|
|
8
9
|
*/
|
|
9
|
-
export declare const UploadsPreview: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => JSX.Element;
|
|
10
|
+
export declare const UploadsPreview: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => React.JSX.Element;
|
|
10
11
|
//# sourceMappingURL=UploadsPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadsPreview.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/UploadsPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UploadsPreview.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/UploadsPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAGnE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,2GAoD1B,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Message } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
-
export declare const EmojiIconLarge: () => JSX.Element;
|
|
5
|
-
export declare const EmojiIconSmall: () => JSX.Element;
|
|
6
|
-
export declare const EmojiPickerIcon: () => JSX.Element;
|
|
7
|
-
export declare const FileUploadIcon: () => JSX.Element;
|
|
8
|
-
export declare const FileUploadIconFlat: () => JSX.Element;
|
|
4
|
+
export declare const EmojiIconLarge: () => React.JSX.Element;
|
|
5
|
+
export declare const EmojiIconSmall: () => React.JSX.Element;
|
|
6
|
+
export declare const EmojiPickerIcon: () => React.JSX.Element;
|
|
7
|
+
export declare const FileUploadIcon: () => React.JSX.Element;
|
|
8
|
+
export declare const FileUploadIconFlat: () => React.JSX.Element;
|
|
9
9
|
export declare const LoadingIndicatorIcon: ({ size }: {
|
|
10
10
|
size?: number | undefined;
|
|
11
|
-
}) => JSX.Element;
|
|
12
|
-
export declare const UploadIcon: () => JSX.Element;
|
|
13
|
-
export declare const CloseIcon: () => JSX.Element;
|
|
14
|
-
export declare const RetryIcon: () => JSX.Element;
|
|
15
|
-
export declare const DownloadIcon: () => JSX.Element;
|
|
16
|
-
export declare const LinkIcon: () => JSX.Element;
|
|
17
|
-
export declare const SendIconV1: () => JSX.Element;
|
|
18
|
-
export declare const SendIconV2: () => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export declare const UploadIcon: () => React.JSX.Element;
|
|
13
|
+
export declare const CloseIcon: () => React.JSX.Element;
|
|
14
|
+
export declare const RetryIcon: () => React.JSX.Element;
|
|
15
|
+
export declare const DownloadIcon: () => React.JSX.Element;
|
|
16
|
+
export declare const LinkIcon: () => React.JSX.Element;
|
|
17
|
+
export declare const SendIconV1: () => React.JSX.Element;
|
|
18
|
+
export declare const SendIconV2: () => React.JSX.Element;
|
|
19
19
|
export type SendButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
20
20
|
sendMessage: (event: React.BaseSyntheticEvent, customMessageData?: Partial<Message<StreamChatGenerics>>) => void;
|
|
21
21
|
} & React.ComponentProps<'button'>;
|
|
22
|
-
export declare const SendButton: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ sendMessage, ...rest }: SendButtonProps<StreamChatGenerics>) => JSX.Element;
|
|
22
|
+
export declare const SendButton: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ sendMessage, ...rest }: SendButtonProps<StreamChatGenerics>) => React.JSX.Element;
|
|
23
23
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/MessageInput/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,cAAc,yBAW1B,CAAC;AAEF,eAAO,MAAM,cAAc,yBAW1B,CAAC;AAGF,eAAO,MAAM,eAAe,yBAW3B,CAAC;AAEF,eAAO,MAAM,cAAc,yBAY1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAY9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;uBA0BhC,CAAC;AAGF,eAAO,MAAM,UAAU,yBAqBtB,CAAC;AAEF,eAAO,MAAM,SAAS,yBAcrB,CAAC;AAEF,eAAO,MAAM,SAAS,yBAcrB,CAAC;AAEF,eAAO,MAAM,YAAY,yBAcxB,CAAC;AAEF,eAAO,MAAM,QAAQ,yBASpB,CAAC;AAEF,eAAO,MAAM,UAAU,yBAYtB,CAAC;AAEF,eAAO,MAAM,UAAU,yBAkBtB,CAAC;AAEF,MAAM,MAAM,eAAe,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,WAAW,EAAE,CACX,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,KACrD,IAAI,CAAC;CACX,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,wKAqBtB,CAAC"}
|
|
@@ -74,5 +74,6 @@ export var SendIconV2 = function () {
|
|
|
74
74
|
export var SendButton = function (_a) {
|
|
75
75
|
var sendMessage = _a.sendMessage, rest = __rest(_a, ["sendMessage"]);
|
|
76
76
|
var themeVersion = useChatContext('SendButton').themeVersion;
|
|
77
|
-
|
|
77
|
+
var t = useTranslationContext('SendButton').t;
|
|
78
|
+
return (React.createElement("button", __assign({ "aria-label": t('aria/Send'), className: 'str-chat__send-button', "data-testid": 'send-button', onClick: sendMessage, type: 'button' }, rest), themeVersion === '2' ? React.createElement(SendIconV2, null) : React.createElement(SendIconV1, null)));
|
|
78
79
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
3
|
-
export declare const ConnectionStatus: React.MemoExoticComponent<(<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => JSX.Element)>;
|
|
3
|
+
export declare const ConnectionStatus: React.MemoExoticComponent<(<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>() => React.JSX.Element)>;
|
|
4
4
|
//# sourceMappingURL=ConnectionStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionStatus.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/ConnectionStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAgCnE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ConnectionStatus.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/ConnectionStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAgCnE,eAAO,MAAM,gBAAgB,wIAAyC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
export type CustomNotificationProps = {
|
|
3
3
|
type: string;
|
|
4
4
|
active?: boolean;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const CustomNotification: (props: PropsWithChildren<CustomNotificationProps>) => JSX.Element | null;
|
|
7
|
+
export declare const CustomNotification: (props: PropsWithChildren<CustomNotificationProps>) => React.JSX.Element | null;
|
|
8
8
|
//# sourceMappingURL=CustomNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/CustomNotification.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"CustomNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/CustomNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAuBF,eAAO,MAAM,kBAAkB,UArBc,kBAAkB,uBAAuB,CAAC,6BAuB/C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StreamMessage } from '../../context/ChannelStateContext';
|
|
2
3
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
3
4
|
export type GiphyPreviewMessageProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
4
5
|
message: StreamMessage<StreamChatGenerics>;
|
|
5
6
|
};
|
|
6
|
-
export declare const GiphyPreviewMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: GiphyPreviewMessageProps<StreamChatGenerics>) => JSX.Element;
|
|
7
|
+
export declare const GiphyPreviewMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: GiphyPreviewMessageProps<StreamChatGenerics>) => React.JSX.Element;
|
|
7
8
|
//# sourceMappingURL=GiphyPreviewMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiphyPreviewMessage.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/GiphyPreviewMessage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GiphyPreviewMessage.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/GiphyPreviewMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,OAAO,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,mBAAmB,8JAY/B,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { MessageRenderer } from './renderMessages';
|
|
|
6
6
|
import type { MessageProps } from '../Message/types';
|
|
7
7
|
import type { StreamMessage } from '../../context/ChannelStateContext';
|
|
8
8
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
9
|
-
type PropsDrilledToMessage = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'disableQuotedMessages' | 'formatDate' | 'getDeleteMessageErrorNotification' | 'getFlagMessageErrorNotification' | 'getFlagMessageSuccessNotification' | 'getMarkMessageUnreadErrorNotification' | 'getMarkMessageUnreadSuccessNotification' | 'getMuteUserErrorNotification' | 'getMuteUserSuccessNotification' | 'getPinMessageErrorNotification' | 'Message' | 'messageActions' | 'onlySenderCanEdit' | 'onMentionsClick' | 'onMentionsHover' | 'onUserClick' | 'onUserHover' | 'openThread' | 'pinPermissions' | 'renderText' | 'retrySendMessage' | 'unsafeHTML';
|
|
9
|
+
type PropsDrilledToMessage = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'disableQuotedMessages' | 'formatDate' | 'getDeleteMessageErrorNotification' | 'getFlagMessageErrorNotification' | 'getFlagMessageSuccessNotification' | 'getMarkMessageUnreadErrorNotification' | 'getMarkMessageUnreadSuccessNotification' | 'getMuteUserErrorNotification' | 'getMuteUserSuccessNotification' | 'getPinMessageErrorNotification' | 'Message' | 'messageActions' | 'onlySenderCanEdit' | 'onMentionsClick' | 'onMentionsHover' | 'onUserClick' | 'onUserHover' | 'openThread' | 'pinPermissions' | 'renderText' | 'retrySendMessage' | 'sortReactions' | 'sortReactionDetails' | 'unsafeHTML';
|
|
10
10
|
export type MessageListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageProps<StreamChatGenerics>, PropsDrilledToMessage>> & {
|
|
11
11
|
/** Disables the injection of date separator components in MessageList, defaults to `false` */
|
|
12
12
|
disableDateSeparator?: boolean;
|
|
@@ -34,8 +34,6 @@ export type MessageListProps<StreamChatGenerics extends DefaultStreamChatGeneric
|
|
|
34
34
|
loadMore?: ChannelActionContextValue['loadMore'] | (() => Promise<void>);
|
|
35
35
|
/** Function called when newer messages are to be loaded, defaults to function stored in [ChannelActionContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_action_context/) */
|
|
36
36
|
loadMoreNewer?: ChannelActionContextValue['loadMoreNewer'] | (() => Promise<void>);
|
|
37
|
-
/** When enabled, the channel will be marked read when a user scrolls to the bottom. Ignored when scrolled to the bottom of a thread message list. */
|
|
38
|
-
markReadOnScrolledToBottom?: boolean;
|
|
39
37
|
/** The limit to use when paginating messages */
|
|
40
38
|
messageLimit?: number;
|
|
41
39
|
/** The messages to render in the list, defaults to messages stored in [ChannelStateContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_state_context/) */
|
|
@@ -52,6 +50,12 @@ export type MessageListProps<StreamChatGenerics extends DefaultStreamChatGeneric
|
|
|
52
50
|
* Defaults to 200px
|
|
53
51
|
*/
|
|
54
52
|
scrolledUpThreshold?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The floating notification informing about unread messages will be shown when the
|
|
55
|
+
* UnreadMessagesSeparator is not visible. The default is false, that means the notification
|
|
56
|
+
* is shown only when viewing unread messages.
|
|
57
|
+
*/
|
|
58
|
+
showUnreadNotificationAlways?: boolean;
|
|
55
59
|
/** If true, indicates the message list is a thread */
|
|
56
60
|
threadList?: boolean;
|
|
57
61
|
};
|
|
@@ -63,6 +67,6 @@ export type MessageListProps<StreamChatGenerics extends DefaultStreamChatGeneric
|
|
|
63
67
|
* - [ComponentContext](https://getstream.io/chat/docs/sdk/react/contexts/component_context/)
|
|
64
68
|
* - [TypingContext](https://getstream.io/chat/docs/sdk/react/contexts/typing_context/)
|
|
65
69
|
*/
|
|
66
|
-
export declare const MessageList: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageListProps<StreamChatGenerics>) => JSX.Element;
|
|
70
|
+
export declare const MessageList: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: MessageListProps<StreamChatGenerics>) => React.JSX.Element;
|
|
67
71
|
export {};
|
|
68
72
|
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,EACL,yBAAyB,EAE1B,MAAM,oCAAoC,CAAC;AAS5C,OAAO,EAAkB,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAMhG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAyB,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageList.d.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4B,CAAC,EAAE,OAAO,CAAC;IACvC,uDAAuD;IACvD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,sJA2BvB,CAAC"}
|
|
@@ -17,11 +17,12 @@ import { defaultPinPermissions, MESSAGE_ACTIONS } from '../Message/utils';
|
|
|
17
17
|
import { TypingIndicator as DefaultTypingIndicator } from '../TypingIndicator';
|
|
18
18
|
import { MessageListMainPanel } from './MessageListMainPanel';
|
|
19
19
|
import { defaultRenderMessages } from './renderMessages';
|
|
20
|
+
import { DEFAULT_NEXT_CHANNEL_PAGE_SIZE } from '../../constants/limits';
|
|
20
21
|
var MessageListWithContext = function (props) {
|
|
21
22
|
var _a;
|
|
22
23
|
var channel = props.channel, channelUnreadUiState = props.channelUnreadUiState, _b = props.disableDateSeparator, disableDateSeparator = _b === void 0 ? false : _b, groupStyles = props.groupStyles, _c = props.hideDeletedMessages, hideDeletedMessages = _c === void 0 ? false : _c, _d = props.hideNewMessageSeparator, hideNewMessageSeparator = _d === void 0 ? false : _d, internalInfiniteScrollProps = props.internalInfiniteScrollProps, _e = props.messageActions, messageActions = _e === void 0 ? Object.keys(MESSAGE_ACTIONS) : _e, _f = props.messages, messages = _f === void 0 ? [] : _f, notifications = props.notifications, _g = props.noGroupByUser, noGroupByUser = _g === void 0 ? false : _g, _h = props.pinPermissions, pinPermissions = _h === void 0 ? defaultPinPermissions : _h, // @deprecated in favor of `channelCapabilities` - TODO: remove in next major release
|
|
23
24
|
_j = props.returnAllReadData, // @deprecated in favor of `channelCapabilities` - TODO: remove in next major release
|
|
24
|
-
returnAllReadData = _j === void 0 ? false : _j, _k = props.threadList, threadList = _k === void 0 ? false : _k, _l = props.unsafeHTML, unsafeHTML = _l === void 0 ? false : _l, headerPosition = props.headerPosition, read = props.read,
|
|
25
|
+
returnAllReadData = _j === void 0 ? false : _j, _k = props.threadList, threadList = _k === void 0 ? false : _k, _l = props.unsafeHTML, unsafeHTML = _l === void 0 ? false : _l, headerPosition = props.headerPosition, read = props.read, _m = props.renderMessages, renderMessages = _m === void 0 ? defaultRenderMessages : _m, _o = props.messageLimit, messageLimit = _o === void 0 ? DEFAULT_NEXT_CHANNEL_PAGE_SIZE : _o, loadMoreCallback = props.loadMore, loadMoreNewerCallback = props.loadMoreNewer, _p = props.hasMoreNewer, hasMoreNewer = _p === void 0 ? false : _p, showUnreadNotificationAlways = props.showUnreadNotificationAlways, suppressAutoscroll = props.suppressAutoscroll, highlightedMessageId = props.highlightedMessageId, _q = props.jumpToLatestMessage, jumpToLatestMessage = _q === void 0 ? function () { return Promise.resolve(); } : _q;
|
|
25
26
|
var _r = React.useState(null), listElement = _r[0], setListElement = _r[1];
|
|
26
27
|
var _s = React.useState(null), ulElement = _s[0], setUlElement = _s[1];
|
|
27
28
|
var customClasses = useChatContext('MessageList').customClasses;
|
|
@@ -37,13 +38,14 @@ var MessageListWithContext = function (props) {
|
|
|
37
38
|
}), hasNewMessages = _0.hasNewMessages, isMessageListScrolledToBottom = _0.isMessageListScrolledToBottom, onScroll = _0.onScroll, scrollToBottom = _0.scrollToBottom, wrapperRect = _0.wrapperRect;
|
|
38
39
|
var showUnreadMessagesNotification = useUnreadMessagesNotification({
|
|
39
40
|
isMessageListScrolledToBottom: isMessageListScrolledToBottom,
|
|
41
|
+
showAlways: !!showUnreadNotificationAlways,
|
|
40
42
|
unreadCount: channelUnreadUiState === null || channelUnreadUiState === void 0 ? void 0 : channelUnreadUiState.unread_messages,
|
|
41
43
|
}).show;
|
|
42
44
|
useMarkRead({
|
|
43
45
|
isMessageListScrolledToBottom: isMessageListScrolledToBottom,
|
|
44
|
-
markReadOnScrolledToBottom: markReadOnScrolledToBottom,
|
|
45
46
|
messageListIsThread: threadList,
|
|
46
47
|
unreadCount: (_a = channelUnreadUiState === null || channelUnreadUiState === void 0 ? void 0 : channelUnreadUiState.unread_messages) !== null && _a !== void 0 ? _a : 0,
|
|
48
|
+
wasMarkedUnread: !!(channelUnreadUiState === null || channelUnreadUiState === void 0 ? void 0 : channelUnreadUiState.first_unread_message_id),
|
|
47
49
|
});
|
|
48
50
|
var _1 = useEnrichedMessages({
|
|
49
51
|
channel: channel,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { PropsWithChildrenOnly } from '../../types/types';
|
|
2
3
|
export declare const MESSAGE_LIST_MAIN_PANEL_CLASS: "str-chat__main-panel-inner";
|
|
3
|
-
export declare const MessageListMainPanel: ({ children }: PropsWithChildrenOnly) => JSX.Element;
|
|
4
|
+
export declare const MessageListMainPanel: ({ children }: PropsWithChildrenOnly) => React.JSX.Element;
|
|
4
5
|
//# sourceMappingURL=MessageListMainPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageListMainPanel.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageListMainPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageListMainPanel.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageListMainPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAO,MAAM,6BAA6B,8BAAwC,CAAC;AAEnF,eAAO,MAAM,oBAAoB,iBAAkB,qBAAqB,sBAMvE,CAAC"}
|
|
@@ -11,5 +11,5 @@ export type MessageListNotificationsProps = {
|
|
|
11
11
|
threadList?: boolean;
|
|
12
12
|
unreadCount?: number;
|
|
13
13
|
};
|
|
14
|
-
export declare const MessageListNotifications: (props: MessageListNotificationsProps) => JSX.Element;
|
|
14
|
+
export declare const MessageListNotifications: (props: MessageListNotificationsProps) => React.JSX.Element;
|
|
15
15
|
//# sourceMappingURL=MessageListNotifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageListNotifications.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageListNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACnE,aAAa,EAAE,oBAAoB,CAAC;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,6BAA6B,
|
|
1
|
+
{"version":3,"file":"MessageListNotifications.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageListNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EAAE,OAAO,CAAC;IACvC,uBAAuB,EAAE,OAAO,CAAC;IACjC,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACnE,aAAa,EAAE,oBAAoB,CAAC;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAAW,6BAA6B,sBAiC5E,CAAC"}
|
|
@@ -11,5 +11,5 @@ export type MessageNotificationProps = PropsWithChildren<{
|
|
|
11
11
|
/** */
|
|
12
12
|
unreadCount?: number;
|
|
13
13
|
}>;
|
|
14
|
-
export declare const MessageNotification: (props: MessageNotificationProps) => JSX.Element | null;
|
|
14
|
+
export declare const MessageNotification: (props: MessageNotificationProps) => React.JSX.Element | null;
|
|
15
15
|
//# sourceMappingURL=MessageNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,iCAAiC;IACjC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,gQAAgQ;IAChQ,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,mMAAmM;IACnM,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM;IACN,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAmBH,eAAO,MAAM,mBAAmB,UAjBc,wBAAwB,
|
|
1
|
+
{"version":3,"file":"MessageNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/MessageNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,iCAAiC;IACjC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC,gQAAgQ;IAChQ,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,mMAAmM;IACnM,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM;IACN,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAmBH,eAAO,MAAM,mBAAmB,UAjBc,wBAAwB,6BAmB7B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { MessageNotificationProps } from './MessageNotification';
|
|
2
|
-
export declare const ScrollToBottomButton: (props: Pick<MessageNotificationProps, 'isMessageListScrolledToBottom' | 'onClick' | 'threadList'
|
|
3
|
+
export declare const ScrollToBottomButton: (props: Pick<MessageNotificationProps, 'isMessageListScrolledToBottom' | 'onClick' | 'threadList'>) => React.JSX.Element | null;
|
|
3
4
|
//# sourceMappingURL=ScrollToBottomButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollToBottomButton.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/ScrollToBottomButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollToBottomButton.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/ScrollToBottomButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAuFtE,eAAO,MAAM,oBAAoB,UApFxB,KAAK,wBAAwB,EAAE,+BAA+B,GAAG,SAAS,GAAG,YAAY,CAAC,6BAsFzD,CAAC"}
|
|
@@ -1,13 +1,54 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { ArrowDown } from './icons';
|
|
4
|
+
import { useChannelStateContext, useChatContext } from '../../context';
|
|
4
5
|
var UnMemoizedScrollToBottomButton = function (props) {
|
|
5
|
-
var isMessageListScrolledToBottom = props.isMessageListScrolledToBottom, onClick = props.onClick,
|
|
6
|
+
var isMessageListScrolledToBottom = props.isMessageListScrolledToBottom, onClick = props.onClick, threadList = props.threadList;
|
|
7
|
+
var _a = useChatContext(), activeChannel = _a.channel, client = _a.client;
|
|
8
|
+
var thread = useChannelStateContext().thread;
|
|
9
|
+
var _b = useState((activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.countUnread()) || 0), countUnread = _b[0], setCountUnread = _b[1];
|
|
10
|
+
var _c = useState((thread === null || thread === void 0 ? void 0 : thread.reply_count) || 0), replyCount = _c[0], setReplyCount = _c[1];
|
|
11
|
+
var observedEvent = threadList ? 'message.updated' : 'message.new';
|
|
12
|
+
useEffect(function () {
|
|
13
|
+
var handleEvent = function (event) {
|
|
14
|
+
var _a, _b, _c, _d, _e;
|
|
15
|
+
var newMessageInAnotherChannel = event.cid !== (activeChannel === null || activeChannel === void 0 ? void 0 : activeChannel.cid);
|
|
16
|
+
var newMessageIsMine = ((_a = event.user) === null || _a === void 0 ? void 0 : _a.id) === ((_b = client.user) === null || _b === void 0 ? void 0 : _b.id);
|
|
17
|
+
var isThreadOpen = !!thread;
|
|
18
|
+
var newMessageIsReply = !!((_c = event.message) === null || _c === void 0 ? void 0 : _c.parent_id);
|
|
19
|
+
var dontIncreaseMainListCounterOnNewReply = isThreadOpen && !threadList && newMessageIsReply;
|
|
20
|
+
if (isMessageListScrolledToBottom ||
|
|
21
|
+
newMessageInAnotherChannel ||
|
|
22
|
+
newMessageIsMine ||
|
|
23
|
+
dontIncreaseMainListCounterOnNewReply) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (event.type === 'message.new') {
|
|
27
|
+
// cannot rely on channel.countUnread because active channel is automatically marked read
|
|
28
|
+
setCountUnread(function (prev) { return prev + 1; });
|
|
29
|
+
}
|
|
30
|
+
else if (((_d = event.message) === null || _d === void 0 ? void 0 : _d.id) === (thread === null || thread === void 0 ? void 0 : thread.id)) {
|
|
31
|
+
var newReplyCount_1 = ((_e = event.message) === null || _e === void 0 ? void 0 : _e.reply_count) || 0;
|
|
32
|
+
setCountUnread(function () { return newReplyCount_1 - replyCount; });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
client.on(observedEvent, handleEvent);
|
|
36
|
+
return function () {
|
|
37
|
+
client.off(observedEvent, handleEvent);
|
|
38
|
+
};
|
|
39
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40
|
+
}, [activeChannel, isMessageListScrolledToBottom, observedEvent, replyCount, thread]);
|
|
41
|
+
useEffect(function () {
|
|
42
|
+
if (isMessageListScrolledToBottom) {
|
|
43
|
+
setCountUnread(0);
|
|
44
|
+
setReplyCount((thread === null || thread === void 0 ? void 0 : thread.reply_count) || 0);
|
|
45
|
+
}
|
|
46
|
+
}, [isMessageListScrolledToBottom, thread]);
|
|
6
47
|
if (isMessageListScrolledToBottom)
|
|
7
48
|
return null;
|
|
8
49
|
return (React.createElement("div", { className: 'str-chat__jump-to-latest-message' },
|
|
9
50
|
React.createElement("button", { "aria-live": 'polite', className: "\n str-chat__message-notification-right\n str-chat__message-notification-scroll-to-latest\n str-chat__circle-fab\n ", "data-testid": 'message-notification', onClick: onClick },
|
|
10
51
|
React.createElement(ArrowDown, null),
|
|
11
|
-
|
|
52
|
+
countUnread > 0 && (React.createElement("div", { className: clsx('str-chat__message-notification', 'str-chat__message-notification-scroll-to-latest-unread-count', 'str-chat__jump-to-latest-unread-count'), "data-testid": 'unread-message-notification-counter' }, countUnread)))));
|
|
12
53
|
};
|
|
13
54
|
export var ScrollToBottomButton = React.memo(UnMemoizedScrollToBottomButton);
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type UnreadMessagesNotificationProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Configuration parameter to determine the message page size, when jumping to the first unread message.
|
|
5
|
+
*/
|
|
2
6
|
queryMessageLimit?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Configuration parameter to determine, whether the unread count is to be shown on the component. Disabled by default.
|
|
9
|
+
*/
|
|
10
|
+
showCount?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The count of unread messages to be displayed if enabled.
|
|
13
|
+
*/
|
|
3
14
|
unreadCount?: number;
|
|
4
15
|
};
|
|
5
|
-
export declare const UnreadMessagesNotification: ({ queryMessageLimit, unreadCount, }: UnreadMessagesNotificationProps) => JSX.Element;
|
|
16
|
+
export declare const UnreadMessagesNotification: ({ queryMessageLimit, showCount, unreadCount, }: UnreadMessagesNotificationProps) => React.JSX.Element;
|
|
6
17
|
//# sourceMappingURL=UnreadMessagesNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnreadMessagesNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/UnreadMessagesNotification.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UnreadMessagesNotification.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/UnreadMessagesNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,0BAA0B,mDAIpC,+BAA+B,sBAqBjC,CAAC"}
|
|
@@ -2,11 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import { CloseIcon } from './icons';
|
|
3
3
|
import { useChannelActionContext, useTranslationContext } from '../../context';
|
|
4
4
|
export var UnreadMessagesNotification = function (_a) {
|
|
5
|
-
var queryMessageLimit = _a.queryMessageLimit, unreadCount = _a.unreadCount;
|
|
5
|
+
var queryMessageLimit = _a.queryMessageLimit, showCount = _a.showCount, unreadCount = _a.unreadCount;
|
|
6
6
|
var _b = useChannelActionContext('UnreadMessagesNotification'), jumpToFirstUnreadMessage = _b.jumpToFirstUnreadMessage, markRead = _b.markRead;
|
|
7
7
|
var t = useTranslationContext('UnreadMessagesNotification').t;
|
|
8
8
|
return (React.createElement("div", { className: 'str-chat__unread-messages-notification', "data-testid": 'unread-messages-notification' },
|
|
9
|
-
React.createElement("button", { onClick: function () { return jumpToFirstUnreadMessage(queryMessageLimit); } },
|
|
9
|
+
React.createElement("button", { onClick: function () { return jumpToFirstUnreadMessage(queryMessageLimit); } }, unreadCount && showCount
|
|
10
|
+
? t('{{count}} unread', { count: unreadCount !== null && unreadCount !== void 0 ? unreadCount : 0 })
|
|
11
|
+
: t('Unread messages')),
|
|
10
12
|
React.createElement("button", { onClick: function () { return markRead(); } },
|
|
11
13
|
React.createElement(CloseIcon, null))));
|
|
12
14
|
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const UNREAD_MESSAGE_SEPARATOR_CLASS = "str-chat__unread-messages-separator";
|
|
2
3
|
export type UnreadMessagesSeparatorProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Configuration parameter to determine, whether the unread count is to be shown on the component. Disabled by default.
|
|
6
|
+
*/
|
|
7
|
+
showCount?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The count of unread messages to be displayed if enabled.
|
|
10
|
+
*/
|
|
3
11
|
unreadCount?: number;
|
|
4
12
|
};
|
|
5
|
-
export declare const UnreadMessagesSeparator: ({ unreadCount }: UnreadMessagesSeparatorProps) => JSX.Element;
|
|
13
|
+
export declare const UnreadMessagesSeparator: ({ showCount, unreadCount, }: UnreadMessagesSeparatorProps) => React.JSX.Element;
|
|
6
14
|
//# sourceMappingURL=UnreadMessagesSeparator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnreadMessagesSeparator.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/UnreadMessagesSeparator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UnreadMessagesSeparator.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/UnreadMessagesSeparator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,8BAA8B,wCAAwC,CAAC;AAEpF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,gCAGjC,4BAA4B,sBAS9B,CAAC"}
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { useTranslationContext } from '../../context';
|
|
3
3
|
export var UNREAD_MESSAGE_SEPARATOR_CLASS = 'str-chat__unread-messages-separator';
|
|
4
4
|
export var UnreadMessagesSeparator = function (_a) {
|
|
5
|
-
var unreadCount = _a.unreadCount;
|
|
5
|
+
var showCount = _a.showCount, unreadCount = _a.unreadCount;
|
|
6
6
|
var t = useTranslationContext('UnreadMessagesSeparator').t;
|
|
7
|
-
return (React.createElement("div", { className: UNREAD_MESSAGE_SEPARATOR_CLASS, "data-testid": 'unread-messages-separator' }, unreadCount
|
|
7
|
+
return (React.createElement("div", { className: UNREAD_MESSAGE_SEPARATOR_CLASS, "data-testid": 'unread-messages-separator' }, unreadCount && showCount
|
|
8
8
|
? t('unreadMessagesSeparatorText', { count: unreadCount })
|
|
9
9
|
: t('Unread messages')));
|
|
10
10
|
};
|
|
@@ -8,7 +8,7 @@ import { ChatContextValue } from '../../context/ChatContext';
|
|
|
8
8
|
import { ComponentContextValue } from '../../context/ComponentContext';
|
|
9
9
|
import type { UserResponse } from 'stream-chat';
|
|
10
10
|
import type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';
|
|
11
|
-
type VirtualizedMessageListPropsForContext = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'customMessageRenderer' | 'head' | 'loadingMore' | 'Message' | 'messageActions' | 'shouldGroupByUser' | 'threadList';
|
|
11
|
+
type VirtualizedMessageListPropsForContext = 'additionalMessageInputProps' | 'closeReactionSelectorOnClick' | 'customMessageActions' | 'customMessageRenderer' | 'head' | 'loadingMore' | 'Message' | 'messageActions' | 'shouldGroupByUser' | 'sortReactions' | 'sortReactionDetails' | 'threadList';
|
|
12
12
|
/**
|
|
13
13
|
* Context object provided to some Virtuoso props that are functions (components rendered by Virtuoso and other functions)
|
|
14
14
|
*/
|
|
@@ -35,7 +35,7 @@ export type VirtuosoContext<StreamChatGenerics extends DefaultStreamChatGenerics
|
|
|
35
35
|
/** The number of unread messages in the current channel. */
|
|
36
36
|
unreadMessageCount?: number;
|
|
37
37
|
};
|
|
38
|
-
type PropsDrilledToMessage = 'additionalMessageInputProps' | 'customMessageActions' | 'messageActions';
|
|
38
|
+
type PropsDrilledToMessage = 'additionalMessageInputProps' | 'customMessageActions' | 'messageActions' | 'sortReactions' | 'sortReactionDetails';
|
|
39
39
|
export type VirtualizedMessageListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Pick<MessageProps<StreamChatGenerics>, PropsDrilledToMessage>> & {
|
|
40
40
|
/** Additional props to be passed the underlying [`react-virtuoso` virtualized list dependency](https://virtuoso.dev/virtuoso-api-reference/) */
|
|
41
41
|
additionalVirtuosoProps?: VirtuosoProps<UnknownType, VirtuosoContext<StreamChatGenerics>>;
|
|
@@ -74,8 +74,6 @@ export type VirtualizedMessageListProps<StreamChatGenerics extends DefaultStream
|
|
|
74
74
|
loadMore?: ChannelActionContextValue['loadMore'] | (() => Promise<void>);
|
|
75
75
|
/** Function called when new messages are to be loaded, defaults to function stored in [ChannelActionContext](https://getstream.io/chat/docs/sdk/react/contexts/channel_action_context/) */
|
|
76
76
|
loadMoreNewer?: ChannelActionContextValue['loadMore'] | (() => Promise<void>);
|
|
77
|
-
/** When enabled, the channel will be marked read when a user scrolls to the bottom. Ignored when scrolled to the bottom of a thread message list. */
|
|
78
|
-
markReadOnScrolledToBottom?: boolean;
|
|
79
77
|
/** Custom UI component to display a message, defaults to and accepts same props as [MessageSimple](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Message/MessageSimple.tsx) */
|
|
80
78
|
Message?: React.ComponentType<MessageUIComponentProps<StreamChatGenerics>>;
|
|
81
79
|
/** The limit to use when paginating messages */
|
|
@@ -111,6 +109,12 @@ export type VirtualizedMessageListProps<StreamChatGenerics extends DefaultStream
|
|
|
111
109
|
separateGiphyPreview?: boolean;
|
|
112
110
|
/** If true, group messages belonging to the same user, otherwise show each message individually */
|
|
113
111
|
shouldGroupByUser?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* The floating notification informing about unread messages will be shown when the
|
|
114
|
+
* UnreadMessagesSeparator is not visible. The default is false, that means the notification
|
|
115
|
+
* is shown only when viewing unread messages.
|
|
116
|
+
*/
|
|
117
|
+
showUnreadNotificationAlways?: boolean;
|
|
114
118
|
/** The scrollTo behavior when new messages appear. Use `"smooth"` for regular chat channels, and `"auto"` (which results in instant scroll to bottom) if you expect high throughput. */
|
|
115
119
|
stickToBottomScrollBehavior?: 'smooth' | 'auto';
|
|
116
120
|
/** stops the list from autoscrolling when new messages are loaded */
|
|
@@ -122,6 +126,6 @@ export type VirtualizedMessageListProps<StreamChatGenerics extends DefaultStream
|
|
|
122
126
|
* The VirtualizedMessageList component renders a list of messages in a virtualized list.
|
|
123
127
|
* It is a consumer of the React contexts set in [Channel](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Channel/Channel.tsx).
|
|
124
128
|
*/
|
|
125
|
-
export declare function VirtualizedMessageList<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: VirtualizedMessageListProps<StreamChatGenerics>): JSX.Element;
|
|
129
|
+
export declare function VirtualizedMessageList<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(props: VirtualizedMessageListProps<StreamChatGenerics>): React.JSX.Element;
|
|
126
130
|
export {};
|
|
127
131
|
//# sourceMappingURL=VirtualizedMessageList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualizedMessageList.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/VirtualizedMessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA2C,MAAM,OAAO,CAAC;AAClF,OAAO,EAEL,uBAAuB,EACvB,0BAA0B,EAE1B,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AAkBxB,OAAO,EAAmC,UAAU,EAAmB,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,YAAY,EAAiB,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAalF,OAAO,EACL,yBAAyB,EAE1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAGL,aAAa,EAEd,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAkB,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAuB,MAAM,gCAAgC,CAAC;AAE5F,OAAO,KAAK,EAA+C,YAAY,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"VirtualizedMessageList.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList/VirtualizedMessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA2C,MAAM,OAAO,CAAC;AAClF,OAAO,EAEL,uBAAuB,EACvB,0BAA0B,EAE1B,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AAkBxB,OAAO,EAAmC,UAAU,EAAmB,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,YAAY,EAAiB,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAalF,OAAO,EACL,yBAAyB,EAE1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAGL,aAAa,EAEd,MAAM,mCAAmC,CAAC;AA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