stream-chat-react 11.0.0-rc.8 → 11.1.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/README.md +1 -1
- package/dist/browser.full-bundle.js +23931 -18681
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +8 -18
- 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 +1 -1
- package/dist/components/Attachment/AttachmentActions.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/Audio.js +1 -1
- package/dist/components/Attachment/Card.d.ts +1 -1
- package/dist/components/Attachment/Card.d.ts.map +1 -1
- package/dist/components/Attachment/DownloadButton.d.ts +1 -1
- package/dist/components/Attachment/DownloadButton.d.ts.map +1 -1
- package/dist/components/Attachment/FileAttachment.d.ts +1 -1
- package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/dist/components/Attachment/FileSizeIndicator.d.ts +1 -1
- package/dist/components/Attachment/FileSizeIndicator.d.ts.map +1 -1
- package/dist/components/Attachment/UnsupportedAttachment.d.ts +1 -1
- package/dist/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
- package/dist/components/Attachment/utils.d.ts +6 -6
- package/dist/components/Attachment/utils.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Header.d.ts +2 -2
- package/dist/components/AutoCompleteTextarea/Header.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 +6 -4
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +2 -1
- package/dist/components/Channel/channelState.d.ts +2 -2
- package/dist/components/Channel/channelState.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useEditMessageHandler.d.ts +1 -1
- package/dist/components/Channel/hooks/useEditMessageHandler.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useMentionsHandlers.d.ts +1 -1
- package/dist/components/Channel/hooks/useMentionsHandlers.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/ChannelList/ChannelList.d.ts +1 -1
- package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelList.js +2 -1
- package/dist/components/ChannelList/ChannelListMessenger.d.ts +1 -1
- package/dist/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.js +2 -2
- package/dist/components/ChannelList/utils.d.ts +1 -1
- package/dist/components/ChannelList/utils.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.d.ts +2 -2
- package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts +1 -1
- package/dist/components/ChannelPreview/hooks/useChannelPreviewInfo.d.ts.map +1 -1
- package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.d.ts +1 -1
- package/dist/components/ChannelPreview/hooks/useMessageDeliveryStatus.d.ts.map +1 -1
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +2 -2
- package/dist/components/ChannelSearch/ChannelSearch.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchBar.d.ts +4 -4
- package/dist/components/ChannelSearch/SearchBar.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchInput.d.ts +3 -3
- package/dist/components/ChannelSearch/SearchInput.d.ts.map +1 -1
- package/dist/components/ChannelSearch/SearchResults.d.ts +6 -6
- package/dist/components/ChannelSearch/SearchResults.d.ts.map +1 -1
- package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts +5 -5
- package/dist/components/ChannelSearch/hooks/useChannelSearch.d.ts.map +1 -1
- package/dist/components/ChannelSearch/utils.d.ts +1 -1
- package/dist/components/ChannelSearch/utils.d.ts.map +1 -1
- package/dist/components/Chat/Chat.d.ts +2 -2
- package/dist/components/Chat/Chat.d.ts.map +1 -1
- package/dist/components/Chat/Chat.js +1 -3
- package/dist/components/Chat/hooks/useChannelsQueryState.d.ts +1 -1
- package/dist/components/Chat/hooks/useChannelsQueryState.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useChat.d.ts +1 -3
- package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useChat.js +4 -7
- package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useCreateChatContext.js +1 -5
- package/dist/components/Chat/hooks/useCustomStyles.d.ts +2 -2
- package/dist/components/Chat/hooks/useCustomStyles.d.ts.map +1 -1
- package/dist/components/ChatAutoComplete/ChatAutoComplete.d.ts +6 -6
- 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/CommandItem/CommandItem.d.ts +1 -1
- package/dist/components/CommandItem/CommandItem.d.ts.map +1 -1
- package/dist/components/DateSeparator/DateSeparator.d.ts +1 -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/index.cjs.js +1 -1
- package/dist/components/EmoticonItem/EmoticonItem.d.ts +1 -1
- package/dist/components/EmoticonItem/EmoticonItem.d.ts.map +1 -1
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +1 -1
- package/dist/components/EmptyStateIndicator/EmptyStateIndicator.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 +6 -0
- package/dist/components/Gallery/BaseImage.d.ts.map +1 -0
- package/dist/components/Gallery/BaseImage.js +20 -0
- package/dist/components/Gallery/Gallery.d.ts +1 -1
- package/dist/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.js +4 -2
- package/dist/components/Gallery/Image.d.ts +1 -1
- package/dist/components/Gallery/Image.d.ts.map +1 -1
- package/dist/components/Gallery/Image.js +3 -2
- package/dist/components/Gallery/ModalGallery.d.ts +1 -1
- package/dist/components/Gallery/ModalGallery.d.ts.map +1 -1
- package/dist/components/Gallery/ModalGallery.js +3 -1
- package/dist/components/Gallery/index.d.ts +1 -0
- package/dist/components/Gallery/index.d.ts.map +1 -1
- package/dist/components/Gallery/index.js +1 -0
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMoreButton.d.ts +1 -1
- package/dist/components/LoadMore/LoadMoreButton.d.ts.map +1 -1
- package/dist/components/LoadMore/LoadMorePaginator.d.ts +1 -1
- package/dist/components/LoadMore/LoadMorePaginator.d.ts.map +1 -1
- package/dist/components/Loading/LoadingErrorIndicator.d.ts +1 -1
- package/dist/components/Loading/LoadingErrorIndicator.d.ts.map +1 -1
- package/dist/components/Loading/LoadingIndicator.d.ts +1 -1
- package/dist/components/Loading/LoadingIndicator.d.ts.map +1 -1
- package/dist/components/MML/MML.d.ts +1 -1
- package/dist/components/MML/MML.d.ts.map +1 -1
- package/dist/components/Message/FixedHeightMessage.d.ts +1 -1
- package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
- package/dist/components/Message/MessageDeleted.d.ts +1 -1
- package/dist/components/Message/MessageDeleted.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/MessageRepliesCountButton.d.ts +1 -1
- package/dist/components/Message/MessageRepliesCountButton.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 +1 -1
- package/dist/components/Message/MessageText.d.ts.map +1 -1
- package/dist/components/Message/MessageTimestamp.d.ts +1 -1
- package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
- package/dist/components/Message/hooks/useActionHandler.d.ts +2 -2
- package/dist/components/Message/hooks/useActionHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useDeleteHandler.d.ts +1 -1
- package/dist/components/Message/hooks/useDeleteHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useEditHandler.d.ts +1 -1
- package/dist/components/Message/hooks/useEditHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useFlagHandler.d.ts +1 -1
- package/dist/components/Message/hooks/useFlagHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useMentionsHandler.d.ts +2 -2
- package/dist/components/Message/hooks/useMentionsHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useMuteHandler.d.ts +1 -1
- package/dist/components/Message/hooks/useMuteHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/usePinHandler.d.ts +3 -3
- package/dist/components/Message/hooks/usePinHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useUserHandler.d.ts +1 -1
- package/dist/components/Message/hooks/useUserHandler.d.ts.map +1 -1
- package/dist/components/Message/renderText/componentRenderers/Anchor.d.ts +3 -0
- package/dist/components/Message/renderText/componentRenderers/Anchor.d.ts.map +1 -0
- package/dist/components/Message/renderText/componentRenderers/Emoji.d.ts +3 -0
- package/dist/components/Message/renderText/componentRenderers/Emoji.d.ts.map +1 -0
- package/dist/components/Message/renderText/componentRenderers/Mention.d.ts +10 -0
- package/dist/components/Message/renderText/componentRenderers/Mention.d.ts.map +1 -0
- package/dist/components/Message/renderText/componentRenderers/index.d.ts +4 -0
- package/dist/components/Message/renderText/componentRenderers/index.d.ts.map +1 -0
- package/dist/components/Message/renderText/componentRenderers/index.js +3 -0
- package/dist/components/Message/renderText/index.d.ts +1 -2
- package/dist/components/Message/renderText/index.d.ts.map +1 -1
- package/dist/components/Message/renderText/regex.d.ts +1 -1
- package/dist/components/Message/renderText/regex.d.ts.map +1 -1
- package/dist/components/Message/renderText/rehypePlugins/emojiMarkdownPlugin.d.ts +2 -2
- package/dist/components/Message/renderText/rehypePlugins/emojiMarkdownPlugin.d.ts.map +1 -1
- package/dist/components/Message/renderText/rehypePlugins/emojiMarkdownPlugin.js +2 -2
- package/dist/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.d.ts +4 -4
- package/dist/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.d.ts.map +1 -1
- package/dist/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.js +6 -4
- package/dist/components/Message/renderText/remarkPlugins/htmlToTextPlugin.d.ts +2 -2
- package/dist/components/Message/renderText/remarkPlugins/htmlToTextPlugin.d.ts.map +1 -1
- package/dist/components/Message/renderText/remarkPlugins/keepLineBreaksPlugin.d.ts +2 -2
- package/dist/components/Message/renderText/remarkPlugins/keepLineBreaksPlugin.d.ts.map +1 -1
- package/dist/components/Message/renderText/remarkPlugins/keepLineBreaksPlugin.js +2 -3
- package/dist/components/Message/renderText/renderText.d.ts +5 -6
- package/dist/components/Message/renderText/renderText.d.ts.map +1 -1
- package/dist/components/Message/renderText/renderText.js +11 -24
- package/dist/components/Message/renderText/types.d.ts +1 -1
- package/dist/components/Message/renderText/types.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +4 -4
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Message/utils.d.ts +2 -2
- package/dist/components/Message/utils.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActions.d.ts +3 -3
- package/dist/components/MessageActions/MessageActions.d.ts.map +1 -1
- package/dist/components/MessageActions/MessageActionsBox.d.ts +3 -3
- package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts +5 -0
- package/dist/components/MessageInput/AttachmentPreviewList.d.ts.map +1 -1
- package/dist/components/MessageInput/AttachmentPreviewList.js +16 -10
- 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 +6 -6
- package/dist/components/MessageInput/DefaultTriggerProvider.d.ts.map +1 -1
- package/dist/components/MessageInput/LinkPreviewList.d.ts +1 -1
- package/dist/components/MessageInput/LinkPreviewList.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInput.d.ts +2 -2
- package/dist/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts +1 -1
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useLinkPreviews.d.ts +3 -3
- package/dist/components/MessageInput/hooks/useLinkPreviews.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts +13 -13
- package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts +1 -1
- package/dist/components/MessageInput/hooks/useUserTrigger.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/utils.d.ts +2 -2
- package/dist/components/MessageInput/hooks/utils.d.ts.map +1 -1
- package/dist/components/MessageInput/icons.d.ts +1 -1
- package/dist/components/MessageInput/icons.d.ts.map +1 -1
- package/dist/components/MessageInput/index.d.ts +2 -1
- package/dist/components/MessageInput/index.d.ts.map +1 -1
- package/dist/components/MessageInput/index.js +2 -1
- package/dist/components/MessageInput/types.d.ts +6 -6
- package/dist/components/MessageInput/types.d.ts.map +1 -1
- package/dist/components/MessageList/CustomNotification.d.ts +1 -1
- package/dist/components/MessageList/CustomNotification.d.ts.map +1 -1
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts +1 -1
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.d.ts +2 -2
- package/dist/components/MessageList/MessageList.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/VirtualizedMessageList.d.ts +4 -4
- package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts +1 -1
- package/dist/components/MessageList/VirtualizedMessageListComponents.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts +2 -2
- package/dist/components/MessageList/hooks/MessageList/useMessageListElements.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.d.ts +2 -2
- package/dist/components/MessageList/hooks/MessageList/useMessageListScrollManager.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts +1 -1
- package/dist/components/MessageList/hooks/MessageList/useScrollLocationLogic.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.d.ts +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useMessageSetKey.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.d.ts +1 -1
- package/dist/components/MessageList/hooks/VirtualizedMessageList/useScrollToBottomOnNewMessage.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useLastReadData.d.ts +1 -1
- package/dist/components/MessageList/hooks/useLastReadData.d.ts.map +1 -1
- package/dist/components/MessageList/index.d.ts +1 -0
- package/dist/components/MessageList/index.d.ts.map +1 -1
- package/dist/components/MessageList/index.js +1 -0
- package/dist/components/MessageList/utils.d.ts +2 -2
- package/dist/components/MessageList/utils.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/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 +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v1.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts +2 -2
- package/dist/components/ReactFileUtilities/FileIcon/FileIconSet/v2.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/iconMap.d.ts +4 -4
- package/dist/components/ReactFileUtilities/FileIcon/iconMap.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileIcon/mimeTypes.d.ts +2 -2
- package/dist/components/ReactFileUtilities/FileIcon/mimeTypes.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FilePreviewer.d.ts +1 -1
- package/dist/components/ReactFileUtilities/FilePreviewer.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/FileUploadButton.d.ts +1 -1
- package/dist/components/ReactFileUtilities/FileUploadButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/IconButton.d.ts +1 -1
- package/dist/components/ReactFileUtilities/IconButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/ImageDropzone.d.ts +1 -1
- 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/ImageUploadButton.d.ts +1 -1
- package/dist/components/ReactFileUtilities/ImageUploadButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts +1 -1
- package/dist/components/ReactFileUtilities/LoadingIndicator.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/Thumbnail.d.ts +1 -1
- package/dist/components/ReactFileUtilities/Thumbnail.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts +1 -1
- package/dist/components/ReactFileUtilities/ThumbnailPlaceholder.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/UploadButton.d.ts +1 -1
- package/dist/components/ReactFileUtilities/UploadButton.d.ts.map +1 -1
- package/dist/components/ReactFileUtilities/types.d.ts +5 -5
- package/dist/components/ReactFileUtilities/types.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionSelector.d.ts +1 -1
- package/dist/components/Reactions/ReactionSelector.d.ts.map +1 -1
- package/dist/components/Reactions/ReactionsList.d.ts +1 -1
- package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/SimpleReactionsList.d.ts +1 -1
- package/dist/components/Reactions/SimpleReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/SpriteImage.d.ts +1 -1
- package/dist/components/Reactions/SpriteImage.d.ts.map +1 -1
- package/dist/components/Reactions/StreamEmoji.d.ts +1 -1
- package/dist/components/Reactions/StreamEmoji.d.ts.map +1 -1
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts +2 -2
- package/dist/components/Reactions/hooks/useProcessReactions.d.ts.map +1 -1
- package/dist/components/Reactions/reactionOptions.d.ts +1 -1
- package/dist/components/Reactions/reactionOptions.d.ts.map +1 -1
- package/dist/components/SafeAnchor/SafeAnchor.d.ts +1 -1
- package/dist/components/SafeAnchor/SafeAnchor.d.ts.map +1 -1
- package/dist/components/Thread/Thread.d.ts +1 -1
- package/dist/components/Thread/Thread.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/Tooltip/Tooltip.d.ts +1 -1
- 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 -4
- package/dist/context/ChannelActionContext.d.ts.map +1 -1
- package/dist/context/ChannelListContext.d.ts +23 -0
- package/dist/context/ChannelListContext.d.ts.map +1 -0
- package/dist/context/ChannelListContext.js +17 -0
- package/dist/context/ChannelStateContext.d.ts +5 -5
- package/dist/context/ChannelStateContext.d.ts.map +1 -1
- package/dist/context/ChatContext.d.ts +7 -16
- package/dist/context/ChatContext.d.ts.map +1 -1
- package/dist/context/ComponentContext.d.ts +3 -2
- package/dist/context/ComponentContext.d.ts.map +1 -1
- package/dist/context/MessageContext.d.ts +2 -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 +5 -5
- package/dist/context/TranslationContext.d.ts.map +1 -1
- package/dist/context/TypingContext.d.ts +1 -1
- package/dist/context/TypingContext.d.ts.map +1 -1
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.d.ts.map +1 -1
- package/dist/context/index.js +1 -0
- package/dist/css/v2/index.css +1 -1
- package/dist/css/v2/index.layout.css +1 -1
- package/dist/i18n/Streami18n.d.ts +4 -3
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/de.json +1 -0
- package/dist/i18n/en.json +1 -0
- package/dist/i18n/es.json +1 -0
- package/dist/i18n/fr.json +1 -0
- package/dist/i18n/hi.json +1 -0
- package/dist/i18n/it.json +1 -0
- package/dist/i18n/ja.json +1 -0
- package/dist/i18n/ko.json +1 -0
- package/dist/i18n/nl.json +1 -0
- package/dist/i18n/pt.json +1 -0
- package/dist/i18n/ru.json +1 -0
- package/dist/i18n/tr.json +1 -0
- package/dist/{icons-427fd8d5.js → icons-a35a8ee7.js} +32 -12
- package/dist/index.cjs.js +25438 -20254
- package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +3 -3
- package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +4 -0
- package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +1 -0
- package/dist/scss/v2/BaseImage/BaseImage-layout.scss +21 -0
- package/dist/scss/v2/BaseImage/BaseImage-theme.scss +35 -0
- package/dist/scss/v2/BaseImage/index.scss +2 -0
- package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +4 -0
- package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +1 -0
- package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +5 -0
- package/dist/scss/v2/Message/Message-layout.scss +8 -0
- package/dist/scss/v2/MessageList/MessageList-layout.scss +1 -0
- package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +4 -0
- package/dist/scss/v2/Notification/Notification-layout.scss +4 -0
- package/dist/scss/v2/Thread/Thread-layout.scss +4 -0
- package/dist/scss/v2/Tooltip/Tooltip-layout.scss +1 -0
- package/dist/scss/v2/_icons.scss +3 -0
- package/dist/scss/v2/_utils.scss +17 -0
- package/dist/scss/v2/index.layout.scss +2 -0
- package/dist/scss/v2/index.scss +1 -0
- package/dist/types/types.d.ts +20 -20
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils/getChannel.d.ts +1 -1
- package/dist/utils/getChannel.d.ts.map +1 -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 +19 -23
- package/dist/components/Message/renderText/Anchor.d.ts +0 -4
- package/dist/components/Message/renderText/Anchor.d.ts.map +0 -1
- package/dist/components/Message/renderText/Emoji.d.ts +0 -3
- package/dist/components/Message/renderText/Emoji.d.ts.map +0 -1
- package/dist/components/Message/renderText/Mention.d.ts +0 -18
- package/dist/components/Message/renderText/Mention.d.ts.map +0 -1
- /package/dist/components/Message/renderText/{Anchor.js → componentRenderers/Anchor.js} +0 -0
- /package/dist/components/Message/renderText/{Emoji.js → componentRenderers/Emoji.js} +0 -0
- /package/dist/components/Message/renderText/{Mention.js → componentRenderers/Mention.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../src/components/Window/Window.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,aAAa,EAA0B,MAAM,mCAAmC,CAAC;AAE1F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,
|
|
1
|
+
{"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../src/components/Window/Window.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,aAAa,EAA0B,MAAM,mCAAmC,CAAC;AAE1F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,WAAW,CACrB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,sDAAsD;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6GAA6G;IAC7G,MAAM,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC;AAsBF;;GAEG;AACH,eAAO,MAAM,MAAM,oKAA0D,CAAC"}
|
|
@@ -4,8 +4,8 @@ import type { StreamMessage } from './ChannelStateContext';
|
|
|
4
4
|
import type { ChannelStateReducerAction } from '../components/Channel/channelState';
|
|
5
5
|
import type { CustomMentionHandler } from '../components/Message/hooks/useMentionsHandler';
|
|
6
6
|
import type { DefaultStreamChatGenerics, SendMessageOptions, UnknownType, UpdateMessageOptions } from '../types/types';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type MessageAttachments<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Array<Attachment<StreamChatGenerics>>;
|
|
8
|
+
export type MessageToSend<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
9
9
|
attachments?: MessageAttachments<StreamChatGenerics>;
|
|
10
10
|
error?: ErrorFromResponse<APIErrorResponse>;
|
|
11
11
|
errorStatusCode?: number;
|
|
@@ -16,8 +16,8 @@ export declare type MessageToSend<StreamChatGenerics extends DefaultStreamChatGe
|
|
|
16
16
|
status?: string;
|
|
17
17
|
text?: string;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type RetrySendMessage<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (message: StreamMessage<StreamChatGenerics>) => Promise<void>;
|
|
20
|
+
export type ChannelActionContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
21
21
|
addNotification: (text: string, type: 'success' | 'error') => void;
|
|
22
22
|
closeThread: (event?: React.BaseSyntheticEvent) => void;
|
|
23
23
|
deleteMessage: (message: StreamMessage<StreamChatGenerics>) => Promise<MessageResponse<StreamChatGenerics>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelActionContext.d.ts","sourceRoot":"","sources":["../../src/context/ChannelActionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAE3F,OAAO,KAAK,EACV,yBAAyB,EACzB,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB,
|
|
1
|
+
{"version":3,"file":"ChannelActionContext.d.ts","sourceRoot":"","sources":["../../src/context/ChannelActionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAE3F,OAAO,KAAK,EACV,yBAAyB,EACzB,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,kBAAkB,CAC5B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE1C,MAAM,MAAM,aAAa,CACvB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,WAAW,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IACrD,KAAK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F;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;CAqBpC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { Dispatch, PropsWithChildren, SetStateAction } from 'react';
|
|
2
|
+
import type { Channel } from 'stream-chat';
|
|
3
|
+
import type { DefaultStreamChatGenerics } from '../types/types';
|
|
4
|
+
export type ChannelListContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
|
+
/**
|
|
6
|
+
* State representing the array of loaded channels.
|
|
7
|
+
* Channels query is executed by default only by ChannelList component in the SDK.
|
|
8
|
+
*/
|
|
9
|
+
channels: Channel<StreamChatGenerics>[];
|
|
10
|
+
/**
|
|
11
|
+
* Sets the list of Channel objects to be rendered by ChannelList component.
|
|
12
|
+
*/
|
|
13
|
+
setChannels: Dispatch<SetStateAction<Channel<StreamChatGenerics>[]>>;
|
|
14
|
+
};
|
|
15
|
+
export declare const ChannelListContext: React.Context<ChannelListContextValue<DefaultStreamChatGenerics> | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Context provider for components rendered within the `ChannelList`
|
|
18
|
+
*/
|
|
19
|
+
export declare const ChannelListContextProvider: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ children, value, }: React.PropsWithChildren<{
|
|
20
|
+
value: ChannelListContextValue<StreamChatGenerics>;
|
|
21
|
+
}>) => JSX.Element;
|
|
22
|
+
export declare const useChannelListContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(componentName?: string) => ChannelListContextValue<StreamChatGenerics>;
|
|
23
|
+
//# sourceMappingURL=ChannelListContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelListContext.d.ts","sourceRoot":"","sources":["../../src/context/ChannelListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,QAAQ,EACR,iBAAiB,EACjB,cAAc,EAEf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEhE,MAAM,MAAM,uBAAuB,CACjC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC;IACxC;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAC;CACtE,CAAC;AAEF,eAAO,MAAM,kBAAkB,+EAAgE,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,0BAA0B;;kBAWtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,qGAGhB,MAAM,gDAavB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { createContext, useContext, } from 'react';
|
|
2
|
+
export var ChannelListContext = createContext(undefined);
|
|
3
|
+
/**
|
|
4
|
+
* Context provider for components rendered within the `ChannelList`
|
|
5
|
+
*/
|
|
6
|
+
export var ChannelListContextProvider = function (_a) {
|
|
7
|
+
var children = _a.children, value = _a.value;
|
|
8
|
+
return (React.createElement(ChannelListContext.Provider, { value: value }, children));
|
|
9
|
+
};
|
|
10
|
+
export var useChannelListContext = function (componentName) {
|
|
11
|
+
var contextValue = useContext(ChannelListContext);
|
|
12
|
+
if (!contextValue) {
|
|
13
|
+
console.warn("The useChannelListContext hook was called outside of the ChannelListContext provider. Make sure this hook is called within the ChannelList component. The errored call is located in the ".concat(componentName, " component."));
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
return contextValue;
|
|
17
|
+
};
|
|
@@ -2,13 +2,13 @@ import React, { PropsWithChildren } from 'react';
|
|
|
2
2
|
import type { Channel, ChannelConfigWithInfo, MessageResponse, Mute, ChannelState as StreamChannelState } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics, GiphyVersions, ImageAttachmentSizeHandler, UnknownType, VideoAttachmentSizeHandler } from '../types/types';
|
|
4
4
|
import type { URLEnrichmentConfig } from '../components/MessageInput/hooks/useLinkPreviews';
|
|
5
|
-
export
|
|
5
|
+
export type ChannelNotifications = Array<{
|
|
6
6
|
id: string;
|
|
7
7
|
text: string;
|
|
8
8
|
type: 'success' | 'error';
|
|
9
9
|
}>;
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type StreamMessage<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ReturnType<StreamChannelState<StreamChatGenerics>['formatMessage']> | MessageResponse<StreamChatGenerics>;
|
|
11
|
+
export type ChannelState<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
12
12
|
suppressAutoscroll: boolean;
|
|
13
13
|
error?: Error | null;
|
|
14
14
|
hasMore?: boolean;
|
|
@@ -31,7 +31,7 @@ export declare type ChannelState<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
31
31
|
watcherCount?: number;
|
|
32
32
|
watchers?: StreamChannelState<StreamChatGenerics>['watchers'];
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type ChannelStateContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Omit<ChannelState<StreamChatGenerics>, 'typing'> & {
|
|
35
35
|
channel: Channel<StreamChatGenerics>;
|
|
36
36
|
channelCapabilities: Record<string, boolean>;
|
|
37
37
|
channelConfig: ChannelConfigWithInfo<StreamChatGenerics> | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const useChannelStateContext: <StreamChatGenerics extends Default
|
|
|
62
62
|
* wrapped component must be provided as the first generic.
|
|
63
63
|
*/
|
|
64
64
|
export declare const withChannelStateContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => {
|
|
65
|
-
(props: Omit<P, "loading" | "error" | "read" | "channel" | "members" | "messages" | "watcher_count" | "watchers" | "mutes" | "maxNumberOfFiles" | "thread" | "suppressAutoscroll" | "hasMore" | "hasMoreNewer" | "highlightedMessageId" | "loadingMore" | "loadingMoreNewer" | "pinnedMessages" | "quotedMessage" | "threadHasMore" | "threadLoadingMore" | "threadMessages" | "threadSuppressAutoscroll" | "watcherCount" | "channelConfig" | "
|
|
65
|
+
(props: Omit<P, "loading" | "error" | "read" | "channel" | "members" | "messages" | "watcher_count" | "watchers" | "mutes" | "maxNumberOfFiles" | "thread" | "suppressAutoscroll" | "hasMore" | "hasMoreNewer" | "highlightedMessageId" | "loadingMore" | "loadingMoreNewer" | "pinnedMessages" | "quotedMessage" | "threadHasMore" | "threadLoadingMore" | "threadMessages" | "threadSuppressAutoscroll" | "watcherCount" | "channelConfig" | "channelCapabilities" | "notifications" | "multipleUploads" | "acceptedFiles" | "dragAndDropWindow" | "enrichURLForPreview" | "debounceURLEnrichmentMs" | "findURLFn" | "onLinkPreviewDismissed" | "imageAttachmentSizeHandler" | "shouldGenerateVideoThumbnail" | "videoAttachmentSizeHandler" | "giphyVersion">): JSX.Element;
|
|
66
66
|
displayName: string;
|
|
67
67
|
};
|
|
68
68
|
//# sourceMappingURL=ChannelStateContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelStateContext.d.ts","sourceRoot":"","sources":["../../src/context/ChannelStateContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EACV,OAAO,EACP,qBAAqB,EACrB,eAAe,EACf,IAAI,EACJ,YAAY,IAAI,kBAAkB,EACnC,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EACV,yBAAyB,EACzB,aAAa,EACb,0BAA0B,EAC1B,WAAW,EACX,0BAA0B,EAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kD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vD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,uBAAuB,CAAC,EAAE,mBAAmB,CAAC,yBAAyB,CAAC,CAAC;IACzE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;IACjE,SAAS,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC7C,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACxC,sBAAsB,CAAC,EAAE,mBAAmB,CAAC,wBAAwB,CAAC,CAAC;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gFAE/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;kBAWhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,qGAGjB,MAAM,iDAavB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;CAqBnC,CAAC"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { AppSettingsAPIResponse, Channel, Mute } from 'stream-chat';
|
|
3
3
|
import type { ChatProps } from '../components/Chat/Chat';
|
|
4
4
|
import type { DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
5
5
|
import type { ChannelsQueryState } from '../components/Chat/hooks/useChannelsQueryState';
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
/**
|
|
12
|
-
* State representing the array of loaded channels.
|
|
13
|
-
* Channels query is executed by default only by ChannelList component in the SDK.
|
|
14
|
-
*/
|
|
15
|
-
channels: Channel<StreamChatGenerics>[];
|
|
6
|
+
type CSSClasses = 'chat' | 'chatContainer' | 'channel' | 'channelList' | 'message' | 'messageList' | 'thread' | 'threadList' | 'virtualMessage' | 'virtualizedMessageList';
|
|
7
|
+
export type CustomClasses = Partial<Record<CSSClasses, string>>;
|
|
8
|
+
type ChannelCID = string;
|
|
9
|
+
export type ThemeVersion = '1' | '2';
|
|
10
|
+
export type ChatContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
16
11
|
/**
|
|
17
12
|
* Indicates, whether a channels query has been triggered within ChannelList by its channels pagination controller.
|
|
18
13
|
*/
|
|
@@ -32,10 +27,6 @@ export declare type ChatContextValue<StreamChatGenerics extends DefaultStreamCha
|
|
|
32
27
|
limit?: number;
|
|
33
28
|
offset?: number;
|
|
34
29
|
}, event?: React.BaseSyntheticEvent) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the list of Channel objects to be rendered by ChannelList component.
|
|
37
|
-
*/
|
|
38
|
-
setChannels: Dispatch<SetStateAction<Channel<StreamChatGenerics>[]>>;
|
|
39
30
|
/**
|
|
40
31
|
* Allows to opt out of the use of legacy CSS (version "1") and opt into the use of the latest SDK's CSS (version "2").
|
|
41
32
|
*/
|
|
@@ -62,7 +53,7 @@ export declare const useChatContext: <StreamChatGenerics extends DefaultStreamCh
|
|
|
62
53
|
* wrapped component must be provided as the first generic.
|
|
63
54
|
*/
|
|
64
55
|
export declare const withChatContext: <P extends UnknownType, StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(Component: React.ComponentType<P>) => {
|
|
65
|
-
(props: Omit<P, "client" | "channel" | "mutes" | "
|
|
56
|
+
(props: Omit<P, "client" | "channel" | "mutes" | "navOpen" | "latestMessageDatesByChannels" | "theme" | "channelsQueryState" | "closeMobileNav" | "customClasses" | "getAppSettings" | "openMobileNav" | "setActiveChannel" | "themeVersion" | "useImageFlagEmojisOnWindows">): JSX.Element;
|
|
66
57
|
displayName: string;
|
|
67
58
|
};
|
|
68
59
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../src/context/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEzF,KAAK,UAAU,GACX,MAAM,GACN,eAAe,GACf,SAAS,GACT,aAAa,GACb,SAAS,GACT,aAAa,GACb,QAAQ,GACR,YAAY,GACZ,gBAAgB,GAChB,wBAAwB,CAAC;AAE7B,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhE,KAAK,UAAU,GAAG,MAAM,CAAC;AAEzB,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,CAAC;AAErC,MAAM,MAAM,gBAAgB,CAC1B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF;;OAEG;IACH,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,CAAC,GAAG,IAAI,CAAC;IACjF,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACvD,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACvC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B;;;;;OAKG;IACH,gBAAgB,EAAE,CAChB,UAAU,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,EACxC,QAAQ,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAC9C,KAAK,CAAC,EAAE,KAAK,CAAC,kBAAkB,KAC7B,IAAI,CAAC;IACV;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B,2BAA2B,EAAE,OAAO,CAAC;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC;AAEtE,eAAO,MAAM,WAAW,wEAA+D,CAAC;AAExF,eAAO,MAAM,YAAY;;kBAWxB,CAAC;AAEF,eAAO,MAAM,cAAc,qGAGT,MAAM,yCAavB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;CAa3B,CAAC"}
|
|
@@ -27,10 +27,10 @@ import type { SendButtonProps } from '../components/MessageInput/icons';
|
|
|
27
27
|
import type { ThreadHeaderProps } from '../components/Thread/ThreadHeader';
|
|
28
28
|
import type { TypingIndicatorProps } from '../components/TypingIndicator/TypingIndicator';
|
|
29
29
|
import type { CustomTrigger, DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
30
|
-
import type { CooldownTimerProps } from '../components';
|
|
30
|
+
import type { BaseImageProps, CooldownTimerProps } from '../components';
|
|
31
31
|
import type { LinkPreviewListProps } from '../components/MessageInput/LinkPreviewList';
|
|
32
32
|
import type { ReactionOptions } from '../components/Reactions/reactionOptions';
|
|
33
|
-
export
|
|
33
|
+
export type ComponentContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger> = {
|
|
34
34
|
Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;
|
|
35
35
|
Message: React.ComponentType<MessageUIComponentProps<StreamChatGenerics>>;
|
|
36
36
|
reactionOptions: ReactionOptions;
|
|
@@ -39,6 +39,7 @@ export declare type ComponentContextValue<StreamChatGenerics extends DefaultStre
|
|
|
39
39
|
AutocompleteSuggestionItem?: React.ComponentType<SuggestionItemProps<StreamChatGenerics>>;
|
|
40
40
|
AutocompleteSuggestionList?: React.ComponentType<SuggestionListProps<StreamChatGenerics>>;
|
|
41
41
|
Avatar?: React.ComponentType<AvatarProps<StreamChatGenerics>>;
|
|
42
|
+
BaseImage?: React.ComponentType<BaseImageProps>;
|
|
42
43
|
CooldownTimer?: React.ComponentType<CooldownTimerProps>;
|
|
43
44
|
DateSeparator?: React.ComponentType<DateSeparatorProps>;
|
|
44
45
|
EditMessageInput?: React.ComponentType<MessageInputProps<StreamChatGenerics>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../src/context/ComponentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uDAAuD,CAAC;AACtG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpF,O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B,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC5E,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACtE,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACnE,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC1E,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5E,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC5D,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,CAAC,CAAC;CACnF,CAAC;AAEF,eAAO,MAAM,gBAAgB,4FAAoE,CAAC;AAElG,eAAO,MAAM,iBAAiB;;kBAY7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,8IAId,MAAM,iDAavB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;CAsBhC,CAAC"}
|
|
@@ -10,10 +10,10 @@ import type { MessageInputProps } from '../components/MessageInput/MessageInput'
|
|
|
10
10
|
import type { GroupStyle } from '../components/MessageList/utils';
|
|
11
11
|
import type { RenderTextOptions } from '../components/Message/renderText';
|
|
12
12
|
import type { DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
13
|
-
export
|
|
13
|
+
export type CustomMessageActions<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
14
14
|
[key: string]: (message: StreamMessage<StreamChatGenerics>, event: React.BaseSyntheticEvent) => Promise<void> | void;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type MessageContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
17
17
|
/** If actions such as edit, delete, flag, mute are enabled on Message */
|
|
18
18
|
actionsEnabled: boolean;
|
|
19
19
|
/** Function to exit edit state */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7E,
|
|
1
|
+
{"version":3,"file":"MessageContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY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AW3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qGAGZ,MAAM,4CAavB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;CAqB9B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { TriggerSettings } from '../components/MessageInput/DefaultTriggerP
|
|
|
3
3
|
import type { CooldownTimerState, MessageInputProps } from '../components/MessageInput';
|
|
4
4
|
import type { CommandsListState, MentionsListState, MessageInputHookProps, MessageInputState } from '../components/MessageInput/hooks/useMessageInputState';
|
|
5
5
|
import type { CustomTrigger, DefaultStreamChatGenerics } from '../types/types';
|
|
6
|
-
export
|
|
6
|
+
export type MessageInputContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, V extends CustomTrigger = CustomTrigger> = MessageInputState<StreamChatGenerics> & MessageInputHookProps<StreamChatGenerics> & Omit<MessageInputProps<StreamChatGenerics, V>, 'Input'> & CooldownTimerState & {
|
|
7
7
|
autocompleteTriggers?: TriggerSettings<StreamChatGenerics, V>;
|
|
8
8
|
} & CommandsListState & MentionsListState;
|
|
9
9
|
export declare const MessageInputContext: React.Context<(MessageInputState<DefaultStreamChatGenerics> & import("../components/MessageInput/hooks/useLinkPreviews").EnrichURLsController & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,
|
|
1
|
+
{"version":3,"file":"MessageInputContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageInputContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,MAAM,MAAM,wBAAwB,CAClC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAChF,CAAC,SAAS,aAAa,GAAG,aAAa,IACrC,iBAAiB,CAAC,kBAAkB,CAAC,GACvC,qBAAqB,CAAC,kBAAkB,CAAC,GACzC,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,GACvD,kBAAkB,GAAG;IACnB,oBAAoB,CAAC,EAAE,eAAe,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;CAC/D,GAAG,iBAAiB,GACrB,iBAAiB,CAAC;AAEpB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;eAEpB,CAAC;AAEb,eAAO,MAAM,2BAA2B;;kBAYvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,8IAIjB,MAAM,oDAavB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type MessageListContextValue = {
|
|
3
3
|
/** The scroll container within which the messages and typing indicator are rendered */
|
|
4
4
|
listElement: HTMLDivElement | null;
|
|
5
5
|
/** Function that scrolls the `listElement` to the bottom. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageListContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE5E,
|
|
1
|
+
{"version":3,"file":"MessageListContext.d.ts","sourceRoot":"","sources":["../../src/context/MessageListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE5E,MAAM,MAAM,uBAAuB,GAAG;IACpC,uFAAuF;IACvF,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,6DAA6D;IAC7D,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,oDAAgE,CAAC;AAEhG;;GAEG;AACH,eAAO,MAAM,0BAA0B;WAI9B,uBAAuB;kBAK/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,mBAAoB,MAAM,4BAY3D,CAAC"}
|
|
@@ -4,15 +4,15 @@ import type { TFunction } from 'i18next';
|
|
|
4
4
|
import type { Moment } from 'moment-timezone';
|
|
5
5
|
import type { TranslationLanguages } from 'stream-chat';
|
|
6
6
|
import type { UnknownType } from '../types/types';
|
|
7
|
-
export
|
|
7
|
+
export type SupportedTranslations = 'de' | 'en' | 'es' | 'fr' | 'hi' | 'it' | 'ja' | 'ko' | 'nl' | 'pt' | 'ru' | 'tr';
|
|
8
8
|
export declare const isLanguageSupported: (language: string) => language is SupportedTranslations;
|
|
9
9
|
export declare const isDayOrMoment: (output: TDateTimeParserOutput) => output is Dayjs.Dayjs | Moment;
|
|
10
10
|
export declare const isDate: (output: TDateTimeParserOutput) => output is Date;
|
|
11
11
|
export declare const isNumberOrString: (output: TDateTimeParserOutput) => output is string | number;
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
12
|
+
export type TDateTimeParserInput = string | number | Date;
|
|
13
|
+
export type TDateTimeParserOutput = string | number | Date | Dayjs.Dayjs | Moment;
|
|
14
|
+
export type TDateTimeParser = (input?: TDateTimeParserInput) => TDateTimeParserOutput;
|
|
15
|
+
export type TranslationContextValue = {
|
|
16
16
|
t: TFunction;
|
|
17
17
|
tDateTimeParser: TDateTimeParser;
|
|
18
18
|
userLanguage: TranslationLanguages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationContext.d.ts","sourceRoot":"","sources":["../../src/context/TranslationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,
|
|
1
|
+
{"version":3,"file":"TranslationContext.d.ts","sourceRoot":"","sources":["../../src/context/TranslationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMlD,MAAM,MAAM,qBAAqB,GAC7B,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,eAAO,MAAM,mBAAmB,aAAc,MAAM,sCAGnD,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,qBAAqB,mCACf,CAAC;AAE7C,eAAO,MAAM,MAAM,WAAY,qBAAqB,mBACtB,CAAC;AAE/B,eAAO,MAAM,gBAAgB,WAAY,qBAAqB,8BACJ,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;AAElF,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,CAAC,EAAE,oBAAoB,KAAK,qBAAqB,CAAC;AAEtF,MAAM,MAAM,uBAAuB,GAAG;IACpC,CAAC,EAAE,SAAS,CAAC;IACb,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,oBAAoB,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAAY,oBAAoB,gBAAiB,CAAC;AAEpF,eAAO,MAAM,kBAAkB,wCAI7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;WAGF,uBAAuB;kBAEpD,CAAC;AAEF,eAAO,MAAM,qBAAqB,mBAAoB,MAAM,4BAY3D,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;CAclC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { ChannelState as StreamChannelState } from 'stream-chat';
|
|
3
3
|
import type { DefaultStreamChatGenerics, UnknownType } from '../types/types';
|
|
4
|
-
export
|
|
4
|
+
export type TypingContextValue<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
5
|
typing?: StreamChannelState<StreamChatGenerics>['typing'];
|
|
6
6
|
};
|
|
7
7
|
export declare const TypingContext: React.Context<TypingContextValue<DefaultStreamChatGenerics> | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypingContext.d.ts","sourceRoot":"","sources":["../../src/context/TypingContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7E,
|
|
1
|
+
{"version":3,"file":"TypingContext.d.ts","sourceRoot":"","sources":["../../src/context/TypingContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7E,MAAM,MAAM,kBAAkB,CAC5B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,aAAa,0EAAiE,CAAC;AAE5F,eAAO,MAAM,cAAc;;kBAW1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,qGAGX,MAAM,2CAavB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;CAqB7B,CAAC"}
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|