stream-chat-react-native-core 9.0.0-beta.31 → 9.0.0-beta.32
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/lib/commonjs/components/Attachment/Attachment.js +15 -52
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +4 -6
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +4 -10
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/FilePreview.js +3 -6
- package/lib/commonjs/components/Attachment/FilePreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +9 -28
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/GalleryImage.js +3 -3
- package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy/GiphyImage.js +7 -13
- package/lib/commonjs/components/Attachment/Giphy/GiphyImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/UnsupportedAttachment.js +4 -6
- package/lib/commonjs/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js +3 -3
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js +3 -3
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +4 -2
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +7 -4
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +9 -13
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +9 -418
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +0 -8
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -77
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -132
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +1 -57
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js +4 -2
- package/lib/commonjs/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListView.js +11 -20
- package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +1 -39
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +3 -2
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +4 -6
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +6 -18
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +8 -28
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +3 -3
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +4 -6
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +0 -2
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +7 -9
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +4 -2
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +9 -13
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageBubble.js +4 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageBubble.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +18 -39
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +5 -7
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js +4 -8
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js +8 -16
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +13 -35
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +3 -5
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js +3 -3
- package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js +6 -4
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListBottom.js +6 -8
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListBottom.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListTop.js +7 -11
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListTop.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposer.js +15 -55
- package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js +5 -5
- package/lib/commonjs/components/MessageInput/MessageInputHeaderView.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +9 -17
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +5 -5
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +5 -5
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +5 -5
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/index.js +4 -4
- package/lib/commonjs/components/MessageInput/components/InputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +3 -2
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +7 -13
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageFlashList.js +14 -40
- package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +12 -38
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/StickyHeader.js +3 -1
- package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +4 -2
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +4 -8
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +4 -2
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/Poll/CreatePollContent.js +3 -1
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/commonjs/components/Poll/Poll.js +12 -9
- package/lib/commonjs/components/Poll/Poll.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +5 -3
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +5 -3
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +5 -5
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +5 -3
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +4 -2
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js +4 -8
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +4 -6
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js +12 -15
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js +8 -11
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/Avatar.js +3 -3
- package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js +37 -0
- package/lib/commonjs/contexts/componentsContext/ComponentsContext.js.map +1 -0
- package/lib/commonjs/contexts/componentsContext/PLAN.md +148 -0
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +286 -0
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -0
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +1 -9
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContextBase.js.map +1 -1
- package/lib/commonjs/contexts/index.js +11 -0
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -76
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +7 -5
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +1 -4
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js +15 -52
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +4 -6
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -10
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/FilePreview.js +3 -6
- package/lib/module/components/Attachment/FilePreview.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +9 -28
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/GalleryImage.js +3 -3
- package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/module/components/Attachment/Giphy/GiphyImage.js +7 -13
- package/lib/module/components/Attachment/Giphy/GiphyImage.js.map +1 -1
- package/lib/module/components/Attachment/UnsupportedAttachment.js +4 -6
- package/lib/module/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js +3 -3
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +3 -3
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +4 -2
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +7 -4
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +9 -13
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +9 -418
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +0 -8
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +3 -77
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -132
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +1 -57
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js +4 -2
- package/lib/module/components/ChannelList/ChannelListLoadingIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListView.js +11 -20
- package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +1 -39
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +3 -2
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +4 -6
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +6 -18
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js +8 -28
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +3 -3
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +4 -6
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +0 -2
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +7 -9
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +4 -2
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/Message/Message.js +9 -13
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageBubble.js +4 -2
- package/lib/module/components/Message/MessageItemView/MessageBubble.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageContent.js +18 -39
- package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js +5 -7
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageFooter.js +4 -8
- package/lib/module/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageHeader.js +8 -16
- package/lib/module/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageItemView.js +13 -35
- package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js +3 -5
- package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageTextContainer.js +3 -3
- package/lib/module/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js +6 -4
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js +6 -8
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js +7 -11
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js.map +1 -1
- package/lib/module/components/MessageInput/MessageComposer.js +15 -55
- package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInputHeaderView.js +5 -5
- package/lib/module/components/MessageInput/MessageInputHeaderView.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +9 -17
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +5 -5
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +5 -5
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js +5 -5
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/index.js +4 -4
- package/lib/module/components/MessageInput/components/InputButtons/index.js.map +1 -1
- package/lib/module/components/MessageInput/components/LinkPreviewList.js +3 -2
- package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/index.js +7 -13
- package/lib/module/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/module/components/MessageList/MessageFlashList.js +14 -40
- package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +12 -38
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/StickyHeader.js +3 -1
- package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +4 -2
- package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageMenu.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +4 -8
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +4 -2
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/Poll/CreatePollContent.js +3 -1
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/module/components/Poll/Poll.js +12 -9
- package/lib/module/components/Poll/Poll.js.map +1 -1
- package/lib/module/components/Poll/components/PollAnswersList.js +5 -3
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +5 -3
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +5 -5
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResults.js +5 -3
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +4 -2
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/Thread.js +4 -8
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +4 -6
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js +12 -15
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js +8 -11
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/ui/Avatar/Avatar.js +3 -3
- package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/ComponentsContext.js +37 -0
- package/lib/module/contexts/componentsContext/ComponentsContext.js.map +1 -0
- package/lib/module/contexts/componentsContext/PLAN.md +148 -0
- package/lib/module/contexts/componentsContext/defaultComponents.js +286 -0
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -0
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +1 -9
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContextBase.js.map +1 -1
- package/lib/module/contexts/index.js +11 -0
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -76
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +7 -5
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +1 -4
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +1 -2
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FilePreview.d.ts +2 -3
- package/lib/typescript/components/Attachment/FilePreview.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/GalleryImage.d.ts +3 -2
- package/lib/typescript/components/Attachment/GalleryImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy/GiphyImage.d.ts +4 -2
- package/lib/typescript/components/Attachment/Giphy/GiphyImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UnsupportedAttachment.d.ts +2 -3
- package/lib/typescript/components/Attachment/UnsupportedAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts +4 -3
- package/lib/typescript/components/Attachment/UrlPreview/URLPreview.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts +4 -3
- package/lib/typescript/components/Attachment/UrlPreview/URLPreviewCompact.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +2 -3
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +3 -28
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +2 -10
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelListLoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelListView.d.ts +1 -1
- package/lib/typescript/components/ChannelList/ChannelListView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts +1 -3
- package/lib/typescript/components/ChannelPreview/ChannelSwipableWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +1 -7
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +6 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/types.d.ts +0 -2
- package/lib/typescript/components/ImageGallery/components/types.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +1 -1
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts +1 -2
- package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts +1 -2
- package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts +0 -2
- package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts +1 -2
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageTextContainer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListBottom.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListBottom.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListTop.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/ReactionList/ReactionListTop.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageComposer.d.ts +1 -2
- package/lib/typescript/components/MessageInput/MessageComposer.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts +3 -4
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/LinkPreviewList.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts +1 -1
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/StickyHeader.d.ts +2 -3
- package/lib/typescript/components/MessageList/StickyHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts +1 -2
- package/lib/typescript/components/MessageMenu/MessageActionList.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +1 -2
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +2 -3
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
- package/lib/typescript/components/Poll/CreatePollContent.d.ts +2 -2
- package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -1
- package/lib/typescript/components/Poll/Poll.d.ts +5 -8
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +1 -2
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts +1 -2
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +1 -4
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +1 -2
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts +4 -3
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Thread/Thread.d.ts +2 -8
- package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +1 -2
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts +2 -3
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +0 -17
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +0 -23
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +0 -112
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +0 -5
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts +321 -0
- package/lib/typescript/contexts/componentsContext/ComponentsContext.d.ts.map +1 -0
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +296 -0
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -0
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContextBase.d.ts +0 -5
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContextBase.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +1 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +1 -169
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +3 -332
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts +2 -5
- package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +0 -4
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts +0 -9
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/offline-support/offline-feature.js +64 -67
- package/src/components/Attachment/Attachment.tsx +7 -69
- package/src/components/Attachment/FileAttachment.tsx +4 -7
- package/src/components/Attachment/FileAttachmentGroup.tsx +9 -19
- package/src/components/Attachment/FilePreview.tsx +4 -9
- package/src/components/Attachment/Gallery.tsx +6 -83
- package/src/components/Attachment/GalleryImage.tsx +5 -4
- package/src/components/Attachment/Giphy/GiphyImage.tsx +15 -37
- package/src/components/Attachment/UnsupportedAttachment.tsx +5 -10
- package/src/components/Attachment/UrlPreview/URLPreview.tsx +6 -4
- package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx +6 -4
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +2 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +5 -4
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +4 -20
- package/src/components/Channel/Channel.tsx +31 -438
- package/src/components/Channel/__tests__/isAttachmentEqualHandler.test.js +12 -9
- package/src/components/Channel/hooks/useCreateChannelContext.ts +0 -8
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +1 -81
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +0 -130
- package/src/components/ChannelList/ChannelList.tsx +3 -76
- package/src/components/ChannelList/ChannelListLoadingIndicator.tsx +3 -1
- package/src/components/ChannelList/ChannelListView.tsx +12 -33
- package/src/components/ChannelList/__tests__/ChannelList.test.js +173 -116
- package/src/components/ChannelList/__tests__/ChannelListView.test.js +64 -41
- package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +0 -39
- package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +2 -2
- package/src/components/ChannelPreview/ChannelPreview.tsx +6 -14
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +7 -33
- package/src/components/ChannelPreview/ChannelPreviewView.tsx +11 -40
- package/src/components/ChannelPreview/ChannelSwipableWrapper.tsx +2 -4
- package/src/components/ChannelPreview/__tests__/ChannelDetailsBottomSheet.test.tsx +16 -12
- package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +25 -24
- package/src/components/ChannelPreview/__tests__/ChannelSwipableWrapper.test.tsx +11 -6
- package/src/components/Chat/Chat.tsx +5 -12
- package/src/components/Chat/hooks/useCreateChatContext.ts +0 -2
- package/src/components/ImageGallery/ImageGallery.tsx +14 -16
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +0 -8
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +25 -21
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +3 -1
- package/src/components/ImageGallery/components/types.ts +0 -3
- package/src/components/Message/Message.tsx +11 -32
- package/src/components/Message/MessageItemView/MessageBubble.tsx +11 -7
- package/src/components/Message/MessageItemView/MessageContent.tsx +14 -47
- package/src/components/Message/MessageItemView/MessageDeleted.tsx +3 -9
- package/src/components/Message/MessageItemView/MessageFooter.tsx +2 -14
- package/src/components/Message/MessageItemView/MessageHeader.tsx +11 -29
- package/src/components/Message/MessageItemView/MessageItemView.tsx +10 -42
- package/src/components/Message/MessageItemView/MessageReplies.tsx +2 -8
- package/src/components/Message/MessageItemView/MessageTextContainer.tsx +4 -8
- package/src/components/Message/MessageItemView/MessageWrapper.tsx +4 -9
- package/src/components/Message/MessageItemView/ReactionList/ReactionListBottom.tsx +4 -12
- package/src/components/Message/MessageItemView/ReactionList/ReactionListTop.tsx +4 -20
- package/src/components/Message/MessageItemView/__tests__/MessageContent.test.js +47 -30
- package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.js +16 -7
- package/src/components/Message/MessageItemView/__tests__/MessageTextContainer.test.tsx +8 -4
- package/src/components/MessageInput/MessageComposer.tsx +16 -76
- package/src/components/MessageInput/MessageInputHeaderView.tsx +3 -3
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.tsx +7 -35
- package/src/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.tsx +2 -2
- package/src/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.tsx +2 -2
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +6 -4
- package/src/components/MessageInput/components/InputButtons/index.tsx +4 -5
- package/src/components/MessageInput/components/LinkPreviewList.tsx +3 -2
- package/src/components/MessageInput/components/OutputButtons/index.tsx +4 -23
- package/src/components/MessageList/MessageFlashList.tsx +13 -57
- package/src/components/MessageList/MessageList.tsx +15 -57
- package/src/components/MessageList/StickyHeader.tsx +4 -3
- package/src/components/MessageMenu/MessageActionList.tsx +4 -3
- package/src/components/MessageMenu/MessageMenu.tsx +35 -47
- package/src/components/MessageMenu/MessageUserReactions.tsx +7 -27
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +3 -6
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +12 -11
- package/src/components/Poll/CreatePollContent.tsx +3 -4
- package/src/components/Poll/Poll.tsx +22 -24
- package/src/components/Poll/components/PollAnswersList.tsx +9 -11
- package/src/components/Poll/components/PollOption.tsx +9 -11
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +10 -11
- package/src/components/Poll/components/PollResults/PollResults.tsx +9 -15
- package/src/components/Reply/Reply.tsx +18 -5
- package/src/components/Thread/Thread.tsx +3 -18
- package/src/components/Thread/components/ThreadFooterComponent.tsx +10 -11
- package/src/components/ThreadList/ThreadList.tsx +14 -22
- package/src/components/ThreadList/ThreadListItem.tsx +6 -11
- package/src/components/ui/Avatar/Avatar.tsx +2 -2
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +0 -15
- package/src/contexts/channelContext/ChannelContext.tsx +0 -24
- package/src/contexts/channelsContext/ChannelsContext.tsx +0 -113
- package/src/contexts/chatContext/ChatContext.tsx +0 -5
- package/src/contexts/componentsContext/ComponentsContext.tsx +62 -0
- package/src/contexts/componentsContext/PLAN.md +148 -0
- package/src/contexts/componentsContext/__tests__/defaultComponents.test.ts +44 -0
- package/src/contexts/componentsContext/defaultComponents.ts +332 -0
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +0 -8
- package/src/contexts/imageGalleryContext/ImageGalleryContextBase.tsx +0 -10
- package/src/contexts/index.ts +1 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +0 -185
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +1 -75
- package/src/contexts/messagesContext/MessagesContext.tsx +3 -358
- package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +5 -7
- package/src/contexts/overlayContext/OverlayContext.tsx +0 -4
- package/src/contexts/overlayContext/OverlayProvider.tsx +1 -2
- package/src/contexts/overlayContext/__tests__/MessageOverlayHostLayer.test.tsx +21 -6
- package/src/contexts/threadsContext/ThreadsContext.tsx +0 -9
- package/src/version.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import type { Attachment } from 'stream-chat';
|
|
4
|
-
import { FileIconProps } from '../../components/Attachment/FileIcon';
|
|
5
|
-
|
|
6
|
-
export type FilePreviewProps = Partial<Pick<MessagesContextValue, 'FileAttachmentIcon'>> & {
|
|
4
|
+
import type { FileIconProps } from '../../components/Attachment/FileIcon';
|
|
5
|
+
export type FilePreviewProps = {
|
|
7
6
|
/** The attachment to render */
|
|
8
7
|
attachment: Attachment;
|
|
9
8
|
attachmentIconSize?: FileIconProps['size'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/FilePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,
|
|
1
|
+
{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/FilePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAoB,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAM1E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,+BAA+B;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAE3C,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAChC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC9B,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC3B,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KAC7B,CAAC,CAAC;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,WAAW;YAAW,gBAAgB;;CAuClD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ImageGalleryContextValue } from '../../contexts/imageGalleryContext/Ima
|
|
|
3
3
|
import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
|
|
4
4
|
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
5
5
|
import { OverlayContextValue } from '../../contexts/overlayContext/OverlayContext';
|
|
6
|
-
export type GalleryPropsWithContext = Pick<ImageGalleryContextValue, 'imageGalleryStateStore'> & Pick<MessageContextValue, 'alignment' | 'images' | 'videos' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress' | 'message' | 'messageContentOrder'> & Pick<MessagesContextValue, 'additionalPressableProps' | '
|
|
6
|
+
export type GalleryPropsWithContext = Pick<ImageGalleryContextValue, 'imageGalleryStateStore'> & Pick<MessageContextValue, 'alignment' | 'images' | 'videos' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress' | 'message' | 'messageContentOrder'> & Pick<MessagesContextValue, 'additionalPressableProps' | 'myMessageTheme'> & Pick<OverlayContextValue, 'setOverlay'> & {
|
|
7
7
|
channelId: string | undefined;
|
|
8
8
|
messageHasOnlyOneMedia: boolean;
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/Gallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/Gallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAmBvC,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AAUtD,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,GAC5F,IAAI,CACF,mBAAmB,EACjB,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,SAAS,GACT,WAAW,GACX,cAAc,GACd,SAAS,GACT,qBAAqB,CACxB,GACD,IAAI,CAAC,oBAAoB,EAAE,0BAA0B,GAAG,gBAAgB,CAAC,GACzE,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,GAAG;IACxC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAqXJ,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAC5D;;GAEG;AACH,eAAO,MAAM,OAAO;YAAW,YAAY;;CA0E1C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ImageProps } from 'react-native';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export type GalleryImageWithContextProps = GalleryImageProps & {
|
|
4
|
+
ImageComponent?: React.ComponentType<ImageProps>;
|
|
5
|
+
};
|
|
5
6
|
export declare const GalleryImageWithContext: (props: GalleryImageWithContextProps) => React.JSX.Element;
|
|
6
7
|
export declare const MemoizedGalleryImage: React.MemoExoticComponent<(props: GalleryImageWithContextProps) => React.JSX.Element>;
|
|
7
8
|
export type GalleryImageProps = Omit<ImageProps, 'height' | 'source'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryImage.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/GalleryImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,UAAU,EAAc,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"GalleryImage.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/GalleryImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,UAAU,EAAc,MAAM,cAAc,CAAC;AAM7D,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,GAAG;IAC7D,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,4BAA4B,sBA4B1E,CAAC;AAEF,eAAO,MAAM,oBAAoB,oCA9Bc,4BAA4B,uBAkC1E,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAAG;IACtE,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAIpD,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ImageProps } from 'react-native';
|
|
2
3
|
import type { Attachment } from 'stream-chat';
|
|
3
|
-
import { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
4
4
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
5
|
-
export type GiphyImagePropsWithContext = Pick<
|
|
5
|
+
export type GiphyImagePropsWithContext = Pick<MessagesContextValue, 'giphyVersion'> & {
|
|
6
|
+
ImageComponent?: React.ComponentType<ImageProps>;
|
|
7
|
+
} & {
|
|
6
8
|
attachment: Attachment;
|
|
7
9
|
/**
|
|
8
10
|
* Whether to render the preview image or the full image
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiphyImage.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachment/Giphy/GiphyImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GiphyImage.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachment/Giphy/GiphyImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAS,UAAU,EAAoB,MAAM,cAAc,CAAC;AAEnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAO3D,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,GAAG;IACpF,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CAClD,GAAG;IACF,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAiIF,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,0BAA0B,CAAC,GAAG;IAClE,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;YAAW,eAAe;;CAOhD,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Attachment } from 'stream-chat';
|
|
3
|
-
import { FileIconProps } from './FileIcon';
|
|
3
|
+
import type { FileIconProps } from './FileIcon';
|
|
4
4
|
import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
|
|
5
|
-
|
|
6
|
-
export type UnsupportedAttachmentProps = Partial<Pick<MessagesContextValue, 'FileAttachmentIcon'> & Pick<MessageContextValue, 'isMyMessage'>> & {
|
|
5
|
+
export type UnsupportedAttachmentProps = Partial<Pick<MessageContextValue, 'isMyMessage'>> & {
|
|
7
6
|
/** The attachment to render */
|
|
8
7
|
attachment: Attachment;
|
|
9
8
|
attachmentIconSize?: FileIconProps['size'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnsupportedAttachment.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/UnsupportedAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"UnsupportedAttachment.d.ts","sourceRoot":"","sources":["../../../../src/components/Attachment/UnsupportedAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AAKtD,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAC,GAAG;IAC3F,+BAA+B;IAC/B,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,qBAAqB;YAAW,0BAA0B;;CA0BtE,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import { ImageProps, ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import type { Attachment } from 'stream-chat';
|
|
4
|
-
import { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
5
4
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
6
5
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
7
|
-
export type URLPreviewPropsWithContext =
|
|
6
|
+
export type URLPreviewPropsWithContext = {
|
|
7
|
+
ImageComponent?: React.ComponentType<ImageProps>;
|
|
8
|
+
} & Pick<MessageContextValue, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue, 'additionalPressableProps' | 'myMessageTheme' | 'isAttachmentEqual'> & {
|
|
8
9
|
attachment: Attachment;
|
|
9
10
|
channelId: string | undefined;
|
|
10
11
|
messageId: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"URLPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachment/UrlPreview/URLPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,UAAU,EAEV,SAAS,EAGT,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"URLPreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachment/UrlPreview/URLPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,UAAU,EACV,UAAU,EAEV,SAAS,EAGT,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAU3D,MAAM,MAAM,0BAA0B,GAAG;IACvC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CAClD,GAAG,IAAI,CAAC,mBAAmB,EAAE,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC,GACrF,IAAI,CACF,oBAAoB,EACpB,0BAA0B,GAAG,gBAAgB,GAAG,mBAAmB,CACpE,GAAG;IACF,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QACjC,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACjC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAChC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAClC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAClC,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACtC,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KAC7B,CAAC,CAAC;CACJ,CAAC;AAuJJ,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,0BAA0B,CAAC,GAAG;IAClE,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;YAAW,eAAe;;CAuBhD,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import { ImageProps, ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import type { Attachment } from 'stream-chat';
|
|
4
|
-
import { ChatContextValue } from '../../../contexts/chatContext/ChatContext';
|
|
5
4
|
import { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
6
5
|
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
7
|
-
export type URLPreviewCompactPropsWithContext =
|
|
6
|
+
export type URLPreviewCompactPropsWithContext = {
|
|
7
|
+
ImageComponent?: React.ComponentType<ImageProps>;
|
|
8
|
+
} & Pick<MessageContextValue, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> & Pick<MessagesContextValue, 'additionalPressableProps' | 'myMessageTheme'> & {
|
|
8
9
|
attachment: Attachment;
|
|
9
10
|
channelId: string | undefined;
|
|
10
11
|
messageId: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"URLPreviewCompact.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachment/UrlPreview/URLPreviewCompact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,UAAU,EAEV,SAAS,EAGT,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"URLPreviewCompact.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachment/UrlPreview/URLPreviewCompact.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAEL,UAAU,EACV,UAAU,EAEV,SAAS,EAGT,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAU3D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;CAClD,GAAG,IAAI,CAAC,mBAAmB,EAAE,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC,GACrF,IAAI,CAAC,oBAAoB,EAAE,0BAA0B,GAAG,gBAAgB,CAAC,GAAG;IAC1E,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QACjC,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACjC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAChC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAClC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAClC,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACtC,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KAC7B,CAAC,CAAC;CACJ,CAAC;AAyJJ,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,iCAAiC,CAAC,GAAG;IAChF,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;YAAW,sBAAsB;;CAsB9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentPicker/AttachmentPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentPicker/AttachmentPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAkCpE,eAAO,MAAM,gBAAgB;;;CA8I5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentPickerItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentPickerItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAqKnE,eAAO,MAAM,0BAA0B,GAAI,UAAU;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,sBAiBlF,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MessageInputContextValue } from '../../contexts/messageInputContext/MessageInputContext';
|
|
3
2
|
export declare const DEFAULT_LIST_HEIGHT = 208;
|
|
4
|
-
export type AutoCompleteSuggestionListProps =
|
|
3
|
+
export type AutoCompleteSuggestionListProps = Record<string, never>;
|
|
5
4
|
export declare const AutoCompleteSuggestionList: {
|
|
6
|
-
(
|
|
5
|
+
(): React.JSX.Element | null;
|
|
7
6
|
displayName: string;
|
|
8
7
|
};
|
|
9
8
|
//# sourceMappingURL=AutoCompleteSuggestionList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoCompleteSuggestionList.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AutoCompleteSuggestionList.d.ts","sourceRoot":"","sources":["../../../../src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAepD,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAWpE,eAAO,MAAM,0BAA0B;;;CAsEtC,CAAC"}
|
|
@@ -13,8 +13,7 @@ import { ThreadContextValue, ThreadType } from '../../contexts/threadContext/Thr
|
|
|
13
13
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
14
14
|
import { ChannelUnreadStateStoreType } from '../../state-store/channel-unread-state';
|
|
15
15
|
import { ReactionData } from '../../utils/utils';
|
|
16
|
-
import {
|
|
17
|
-
import { KeyboardCompatibleViewProps } from '../KeyboardCompatibleView/KeyboardControllerAvoidingView';
|
|
16
|
+
import type { KeyboardCompatibleViewProps } from '../KeyboardCompatibleView/KeyboardControllerAvoidingView';
|
|
18
17
|
export type MarkReadFunctionOptions = {
|
|
19
18
|
/**
|
|
20
19
|
* Signal, whether the `channelUnreadUiState` should be updated.
|
|
@@ -24,7 +23,7 @@ export type MarkReadFunctionOptions = {
|
|
|
24
23
|
updateChannelUnreadState?: boolean;
|
|
25
24
|
};
|
|
26
25
|
export declare const reactionData: ReactionData[];
|
|
27
|
-
export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> & Partial<Pick<AttachmentPickerContextValue, 'bottomInset' | 'topInset' | 'disableAttachmentPicker' | '
|
|
26
|
+
export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> & Partial<Pick<AttachmentPickerContextValue, 'bottomInset' | 'topInset' | 'disableAttachmentPicker' | 'numberOfAttachmentPickerImageColumns' | 'numberOfAttachmentImagesToLoadPerCall'>> & Partial<Pick<ChannelContextValue, 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'maxTimeBetweenGroupedMessages' | 'maximumMessageLimit'>> & Pick<ChatContextValue, 'client' | 'enableOfflineSupport' | 'isOnline'> & Partial<Pick<InputMessageInputContextValue, 'additionalTextInputProps' | 'allowSendBeforeAttachmentsUpload' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'audioRecordingSendOnComplete' | 'asyncMessagesSlideToCancelDistance' | 'attachmentPickerBottomSheetHeight' | 'attachmentSelectionBarHeight' | 'audioRecordingEnabled' | 'compressImageQuality' | 'createPollOptionGap' | 'doFileUploadRequest' | 'handleAttachButtonPress' | 'hasCameraPicker' | 'hasCommands' | 'hasFilePicker' | 'hasImagePicker' | 'messageInputFloating' | 'openPollCreationDialog' | 'setInputRef'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & Pick<UseChannelStateValue, 'threadMessages' | 'setThreadMessages'> & Partial<Pick<MessagesContextValue, 'additionalPressableProps' | 'customMessageSwipeAction' | 'deletedMessagesVisibilityType' | 'disableTypingIndicator' | 'dismissKeyboardOnMessageTouch' | 'enableSwipeToReply' | 'urlPreviewType' | 'FlatList' | 'forceAlignMessages' | 'getMessageGroupStyle' | 'giphyVersion' | 'handleBan' | 'handleCopy' | 'handleDelete' | 'handleDeleteForMe' | 'handleEdit' | 'handleFlag' | 'handleMarkUnread' | 'handleMute' | 'handlePinMessage' | 'handleReaction' | 'handleQuotedReply' | 'handleRetry' | 'handleThreadReply' | 'handleBlockUser' | 'isAttachmentEqual' | 'markdownRules' | 'messageActions' | 'messageContentOrder' | 'messageTextNumberOfLines' | 'messageSwipeToReplyHitSlop' | 'myMessageTheme' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'reactionListPosition' | 'reactionListType' | 'shouldShowUnreadUnderlay' | 'selectReaction' | 'supportedReactions' | 'hasCreatePoll'>> & Partial<Pick<MessageContextValue, 'isMessageAIGenerated'>> & Partial<Pick<ThreadContextValue, 'allowThreadMessagesInChannel' | 'onAlsoSentToChannelHeaderPress'>> & {
|
|
28
27
|
shouldSyncChannel: boolean;
|
|
29
28
|
thread: ThreadType;
|
|
30
29
|
/**
|
|
@@ -75,31 +74,7 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> & Par
|
|
|
75
74
|
*/
|
|
76
75
|
initialScrollToFirstUnreadMessage?: boolean;
|
|
77
76
|
keyboardBehavior?: KeyboardCompatibleViewProps['behavior'];
|
|
78
|
-
/**
|
|
79
|
-
* Custom wrapper component that handles height adjustment of Channel component when keyboard is opened or dismissed
|
|
80
|
-
* Default component (accepts the same props): [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx)
|
|
81
|
-
*
|
|
82
|
-
* **Example:**
|
|
83
|
-
*
|
|
84
|
-
* ```
|
|
85
|
-
* <Channel
|
|
86
|
-
* channel={channel}
|
|
87
|
-
* KeyboardCompatibleView={(props) => {
|
|
88
|
-
* return (
|
|
89
|
-
* <KeyboardCompatibleView>
|
|
90
|
-
* {props.children}
|
|
91
|
-
* </KeyboardCompatibleView>
|
|
92
|
-
* )
|
|
93
|
-
* }}
|
|
94
|
-
* />
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
|
-
KeyboardCompatibleView?: React.ComponentType<KeyboardCompatibleViewProps>;
|
|
98
77
|
keyboardVerticalOffset?: number;
|
|
99
|
-
/**
|
|
100
|
-
* Custom loading error indicator to override the Stream default
|
|
101
|
-
*/
|
|
102
|
-
LoadingErrorIndicator?: React.ComponentType<LoadingErrorProps>;
|
|
103
78
|
/**
|
|
104
79
|
* Boolean flag to enable/disable marking the channel as read on mount
|
|
105
80
|
*/
|
|
@@ -135,7 +110,7 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> & Par
|
|
|
135
110
|
* is sent).
|
|
136
111
|
*/
|
|
137
112
|
initializeOnMount?: boolean;
|
|
138
|
-
}
|
|
113
|
+
};
|
|
139
114
|
export type ChannelProps = Partial<Omit<ChannelPropsWithContext, 'channel' | 'thread'>> & Pick<ChannelPropsWithContext, 'channel'> & {
|
|
140
115
|
thread?: LocalMessage | ThreadType | null;
|
|
141
116
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAOpG,OAAO,EAGL,OAAO,IAAI,WAAW,EAGtB,YAAY,EAKZ,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EAEV,OAAO,IAAI,aAAa,EAExB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAmBrB,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AAKxE,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAOpG,OAAO,EAGL,OAAO,IAAI,WAAW,EAGtB,YAAY,EAKZ,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EAEV,OAAO,IAAI,aAAa,EAExB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAmBrB,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AAKxE,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAG1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EACL,6BAA6B,EAE9B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,2BAA2B,EAE5B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,gCAAgC,EAEjC,MAAM,wEAAwE,CAAC;AAEhF,OAAO,EACL,kBAAkB,EAElB,UAAU,EACX,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAa9D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAOhD,OAAO,EAKL,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AAK5G,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAAY,EA8BtC,CAAC;AAoBF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GACxE,OAAO,CACL,IAAI,CACF,4BAA4B,EAC1B,aAAa,GACb,UAAU,GACV,yBAAyB,GACzB,sCAAsC,GACtC,uCAAuC,CAC1C,CACF,GACD,OAAO,CACL,IAAI,CACF,mBAAmB,EACjB,6BAA6B,GAC7B,uBAAuB,GACvB,sBAAsB,GACtB,oBAAoB,GACpB,+BAA+B,GAC/B,qBAAqB,CACxB,CACF,GACD,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,sBAAsB,GAAG,UAAU,CAAC,GACtE,OAAO,CACL,IAAI,CACF,6BAA6B,EAC3B,0BAA0B,GAC1B,kCAAkC,GAClC,2BAA2B,GAC3B,mCAAmC,GACnC,8BAA8B,GAC9B,oCAAoC,GACpC,mCAAmC,GACnC,8BAA8B,GAC9B,uBAAuB,GACvB,sBAAsB,GACtB,qBAAqB,GACrB,qBAAqB,GACrB,yBAAyB,GACzB,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,sBAAsB,GACtB,wBAAwB,GACxB,aAAa,CAChB,CACF,GACD,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAClC,OAAO,CACL,IAAI,CAAC,gCAAgC,EAAE,UAAU,GAAG,aAAa,GAAG,mBAAmB,CAAC,CACzF,GACD,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,GAClE,OAAO,CACL,IAAI,CACF,oBAAoB,EAClB,0BAA0B,GAC1B,0BAA0B,GAC1B,+BAA+B,GAC/B,wBAAwB,GACxB,+BAA+B,GAC/B,oBAAoB,GACpB,gBAAgB,GAChB,UAAU,GACV,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,WAAW,GACX,YAAY,GACZ,cAAc,GACd,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,YAAY,GACZ,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,aAAa,GACb,mBAAmB,GACnB,iBAAiB,GACjB,mBAAmB,GACnB,eAAe,GACf,gBAAgB,GAChB,qBAAqB,GACrB,0BAA0B,GAC1B,4BAA4B,GAC5B,gBAAgB,GAChB,oBAAoB,GACpB,kBAAkB,GAClB,gBAAgB,GAChB,sBAAsB,GACtB,kBAAkB,GAClB,0BAA0B,GAC1B,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,CAClB,CACF,GACD,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC,GAC1D,OAAO,CACL,IAAI,CAAC,kBAAkB,EAAE,8BAA8B,GAAG,gCAAgC,CAAC,CAC5F,GAAG;IACF,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,mCAAmC,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC3E;;;;;;;OAOG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAClB,OAAO,EAAE,WAAW,EACpB,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,CAAC,oBAAoB,CAAC,KAAK,IAAI,KACxF,IAAI,CAAC;IACV;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,CACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,aAAa,EAC1B,OAAO,CAAC,EAAE,kBAAkB,KACzB,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAErC;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE;QAChC,YAAY,EAAE,YAAY,CAAC;QAC3B,OAAO,EAAE,aAAa,CAAC;QACvB,OAAO,CAAC,EAAE,kBAAkB,CAAC;KAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,CACvB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,UAAU,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,EAC1D,OAAO,CAAC,EAAE,oBAAoB,KAC3B,UAAU,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7C;;OAEG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,gBAAgB,CAAC,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAC/C,uBAAuB,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC/D;;;OAGG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;;OASG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AA42CJ,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC,GACrF,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,GAAG;IACzC,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,sBAwC7D,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChannelContextValue } from '../../../contexts/channelContext/ChannelContext';
|
|
2
|
-
export declare const useCreateChannelContext: ({ channel, channelUnreadStateStore, disabled,
|
|
2
|
+
export declare const useCreateChannelContext: ({ channel, channelUnreadStateStore, disabled, enableMessageGroupingByUser, enforceUniqueReaction, error, hideDateSeparators, hideStickyDateHeader, highlightedMessageId, isChannelActive, lastRead, loadChannelAroundMessage, loadChannelAtFirstUnreadMessage, loading, markRead, maxTimeBetweenGroupedMessages, maximumMessageLimit, members, read, reloadChannel, scrollToFirstUnreadThreshold, setChannelUnreadState, setLastRead, setTargetedMessage, targetedMessage, threadList, uploadAbortControllerRef, watcherCount, watchers, }: ChannelContextValue) => ChannelContextValue;
|
|
3
3
|
//# sourceMappingURL=useCreateChannelContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateChannelContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateChannelContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAE3F,eAAO,MAAM,uBAAuB,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateChannelContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateChannelContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAE3F,eAAO,MAAM,uBAAuB,GAAI,4gBA8BrC,mBAAmB,wBA+DrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InputMessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
2
|
-
export declare const useCreateInputMessageInputContext: ({ additionalTextInputProps, allowSendBeforeAttachmentsUpload, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesSlideToCancelDistance, audioRecordingSendOnComplete,
|
|
2
|
+
export declare const useCreateInputMessageInputContext: ({ additionalTextInputProps, allowSendBeforeAttachmentsUpload, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesSlideToCancelDistance, audioRecordingSendOnComplete, attachmentPickerBottomSheetHeight, attachmentSelectionBarHeight, audioRecordingEnabled, channelId, compressImageQuality, createPollOptionGap, doFileUploadRequest, editMessage, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, messageInputFloating, messageInputHeightStore, openPollCreationDialog, sendMessage, setInputRef, showPollCreationDialog, }: InputMessageInputContextValue & {
|
|
3
3
|
/**
|
|
4
4
|
* To ensure we allow re-render, when channel is changed
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAE/G,eAAO,MAAM,iCAAiC,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAE/G,eAAO,MAAM,iCAAiC,GAAI,gkBA0B/C,6BAA6B,GAAG;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kCAiCA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
2
|
-
export declare const useCreateMessagesContext: ({ additionalPressableProps,
|
|
2
|
+
export declare const useCreateMessagesContext: ({ additionalPressableProps, channelId, customMessageSwipeAction, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, enableSwipeToReply, FlatList, forceAlignMessages, getMessageGroupStyle, giphyVersion, handleBan, handleCopy, handleDelete, handleDeleteForMe, handleEdit, handleFlag, handleMarkUnread, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, handleBlockUser, hasCreatePoll, initialScrollToFirstUnreadMessage, isAttachmentEqual, isMessageAIGenerated, markdownRules, messageActions, messageContentOrder, messageSwipeToReplyHitSlop, messageTextNumberOfLines, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, reactionListPosition, reactionListType, removeMessage, retrySendMessage, selectReaction, sendReaction, shouldShowUnreadUnderlay, supportedReactions, targetedMessage, updateMessage, urlPreviewType, }: MessagesContextValue & {
|
|
3
3
|
/**
|
|
4
4
|
* To ensure we allow re-render, when channel is changed
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,g9BAqDtC,oBAAoB,GAAG;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,yBA6EA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageListPagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMessageListPagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAcrE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,aAAa;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;
|
|
1
|
+
{"version":3,"file":"useMessageListPagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMessageListPagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAcrE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,aAAa;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;aAuC7D,CAAC;iBAAuB,CAAC;0BAEhC,CAAN;;;0BAYwD,CAAC;aACP,CAAC;6BAItC,CAAC;0BAKV,CAAD;;;;;;;CAmOF,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Channel, ChannelFilters, ChannelOptions, ChannelSort, Event, QueryChannelsRequestType } from 'stream-chat';
|
|
3
|
-
import { ChannelListViewProps } from './ChannelListView';
|
|
4
3
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
5
4
|
import type { ChannelListEventListenerOptions } from '../../types/types';
|
|
6
|
-
export type ChannelListProps = Partial<Pick<ChannelsContextValue, 'additionalFlatListProps' | '
|
|
5
|
+
export type ChannelListProps = Partial<Pick<ChannelsContextValue, 'additionalFlatListProps' | 'setFlatListRef' | 'onSelect' | 'getChannelActionItems' | 'swipeActionsEnabled' | 'loadMoreThreshold' | 'maxUnreadCount' | 'numberOfSkeletons' | 'mutedStatusPosition'>> & {
|
|
7
6
|
/** Optional function to filter channels prior to rendering the list. Do not use any complex logic that would delay the loading of the ChannelList. We recommend using a pure function with array methods like filter/sort/reduce. */
|
|
8
7
|
channelRenderFilterFn?: (channels: Array<Channel>) => Array<Channel>;
|
|
9
8
|
/**
|
|
@@ -14,12 +13,6 @@ export type ChannelListProps = Partial<Pick<ChannelsContextValue, 'additionalFla
|
|
|
14
13
|
* @overrideType object
|
|
15
14
|
* */
|
|
16
15
|
filters?: ChannelFilters;
|
|
17
|
-
/**
|
|
18
|
-
* Custom UI component to display the list of channels
|
|
19
|
-
*
|
|
20
|
-
* Default: [ChannelListView](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-list-view/)
|
|
21
|
-
*/
|
|
22
|
-
List?: React.ComponentType<ChannelListViewProps>;
|
|
23
16
|
/**
|
|
24
17
|
* If set to true, channels won't dynamically sort by most recent message, defaults to false
|
|
25
18
|
*/
|
|
@@ -143,8 +136,7 @@ export type ChannelListProps = Partial<Pick<ChannelsContextValue, 'additionalFla
|
|
|
143
136
|
};
|
|
144
137
|
/**
|
|
145
138
|
* This component fetches a list of channels, allowing you to select the channel you want to open.
|
|
146
|
-
* The ChannelList
|
|
147
|
-
* provided to the ChannelList component as a prop. By default, the ChannelListView component is used as the list UI.
|
|
139
|
+
* The ChannelList renders a ChannelListView which provides the UI for the underlying React Native FlatList.
|
|
148
140
|
*
|
|
149
141
|
* @example ./ChannelList.md
|
|
150
142
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelList.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,WAAW,EACX,KAAK,EACL,wBAAwB,EACzB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelList.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelList.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelListLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelListLoadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelListLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelListLoadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,eAAO,MAAM,2BAA2B,yBAgBvC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
3
|
-
export type ChannelListViewPropsWithContext = Omit<ChannelsContextValue, '
|
|
3
|
+
export type ChannelListViewPropsWithContext = Omit<ChannelsContextValue, 'maxUnreadCount' | 'numberOfSkeletons' | 'onSelect'>;
|
|
4
4
|
export type ChannelListViewProps = Partial<ChannelListViewPropsWithContext>;
|
|
5
5
|
/**
|
|
6
6
|
* This UI component displays the preview list of channels and handles Channel navigation. It
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelListView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelListView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelList/ChannelListView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AASxD,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,oBAAoB,EACpB,gBAAgB,GAAG,mBAAmB,GAAG,UAAU,CACpD,CAAC;AAwIF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,eAAe;YAAW,oBAAoB;;CAuC1D,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ChannelsContextValue } from '../../../contexts/channelsContext/ChannelsContext';
|
|
2
|
-
export declare const useCreateChannelsContext: ({ additionalFlatListProps, channelListInitialized, channels,
|
|
2
|
+
export declare const useCreateChannelsContext: ({ additionalFlatListProps, channelListInitialized, channels, error, forceUpdate, hasNextPage, loadingChannels, loadingNextPage, loadMoreThreshold, loadNextPage, maxUnreadCount, numberOfSkeletons, onSelect, getChannelActionItems, swipeActionsEnabled, refreshing, refreshList, reloadList, setFlatListRef, mutedStatusPosition, }: ChannelsContextValue) => ChannelsContextValue;
|
|
3
3
|
//# sourceMappingURL=useCreateChannelsContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateChannelsContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelList/hooks/useCreateChannelsContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,
|
|
1
|
+
{"version":3,"file":"useCreateChannelsContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelList/hooks/useCreateChannelsContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,eAAO,MAAM,wBAAwB,GAAI,uUAqBtC,oBAAoB,yBAkDtB,CAAC"}
|
|
@@ -8,12 +8,11 @@ export type ChannelDetailsHeaderProps = {
|
|
|
8
8
|
export type ChannelDetailsBottomSheetProps = {
|
|
9
9
|
additionalFlatListProps?: Partial<FlatListProps<ChannelActionItem>>;
|
|
10
10
|
channel: Channel;
|
|
11
|
-
ChannelDetailsHeader?: React.ComponentType<ChannelDetailsHeaderProps>;
|
|
12
11
|
items: ChannelActionItem[];
|
|
13
12
|
};
|
|
14
13
|
export declare const ChannelDetailsHeader: ({ channel }: ChannelDetailsHeaderProps) => React.JSX.Element;
|
|
15
14
|
export declare const ChannelActionItemView: ({ item }: {
|
|
16
15
|
item: ChannelActionItem;
|
|
17
16
|
}) => React.JSX.Element;
|
|
18
|
-
export declare const ChannelDetailsBottomSheet: ({ additionalFlatListProps,
|
|
17
|
+
export declare const ChannelDetailsBottomSheet: ({ additionalFlatListProps, items, channel, }: ChannelDetailsBottomSheetProps) => React.JSX.Element;
|
|
19
18
|
//# sourceMappingURL=ChannelDetailsBottomSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelDetailsBottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelDetailsBottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAIlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAa3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAQpF,MAAM,MAAM,yBAAyB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE7D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACpE,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,aAAa,yBAAyB,sBAoC1E,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,UAAU;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,sBAuB1E,CAAC;AAQF,eAAO,MAAM,yBAAyB,GAAI,8CAIvC,8BAA8B,sBAehC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { Channel } from 'stream-chat';
|
|
3
3
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
4
4
|
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
5
|
-
export type ChannelPreviewProps = Partial<Pick<ChatContextValue, 'client'>> & Partial<Pick<ChannelsContextValue, '
|
|
5
|
+
export type ChannelPreviewProps = Partial<Pick<ChatContextValue, 'client'>> & Partial<Pick<ChannelsContextValue, 'forceUpdate'>> & {
|
|
6
6
|
/**
|
|
7
7
|
* Instance of Channel from stream-chat package.
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelPreview.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAI1F,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC,GAAG;IACnD;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,sBAwBxD,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChannelPreviewProps } from './ChannelPreview';
|
|
3
3
|
import { LastMessageType } from './hooks/useChannelPreviewData';
|
|
4
|
-
|
|
5
|
-
export type ChannelPreviewMessageProps = Pick<ChannelPreviewProps, 'channel'> & Partial<Pick<ChannelsContextValue, 'PreviewTypingIndicator' | 'PreviewMessageDeliveryStatus' | 'PreviewLastMessage'>> & {
|
|
4
|
+
export type ChannelPreviewMessageProps = Pick<ChannelPreviewProps, 'channel'> & {
|
|
6
5
|
lastMessage?: LastMessageType;
|
|
7
6
|
};
|
|
8
7
|
export declare const ChannelPreviewMessage: (props: ChannelPreviewMessageProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelPreviewMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelPreviewMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAiBhE,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC9E,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,0BAA0B,sBAyFtE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ChannelPreviewProps } from './ChannelPreview';
|
|
3
3
|
import type { LastMessageType } from './hooks/useChannelPreviewData';
|
|
4
4
|
import { ChannelsContextValue } from '../../contexts/channelsContext/ChannelsContext';
|
|
5
|
-
export type ChannelPreviewViewPropsWithContext = Pick<ChannelPreviewProps, 'channel'> & Pick<ChannelsContextValue, 'maxUnreadCount' | 'onSelect' | '
|
|
5
|
+
export type ChannelPreviewViewPropsWithContext = Pick<ChannelPreviewProps, 'channel'> & Pick<ChannelsContextValue, 'maxUnreadCount' | 'onSelect' | 'mutedStatusPosition'> & {
|
|
6
6
|
/**
|
|
7
7
|
* Formatter function for date of latest message.
|
|
8
8
|
* @param date Message date
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelPreviewView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelPreviewView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelPreviewView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAOxD,MAAM,MAAM,kCAAkC,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GACnF,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,UAAU,GAAG,qBAAqB,CAAC,GAAG;IAClF;;;;;;;;OAQG;IACH,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IACjD,+BAA+B;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B,CAAC;AAoGJ,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,SAAS,CAAC,CAAC,GAChG,IAAI,CAAC,kCAAkC,EAAE,SAAS,CAAC,CAAC;AAMtD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;YAAW,uBAAuB;;CAahE,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { Channel } from 'stream-chat';
|
|
3
|
-
import type { ChannelDetailsBottomSheetProps } from './ChannelDetailsBottomSheet';
|
|
4
3
|
import type { GetChannelActionItems } from '../ChannelList/hooks/useChannelActionItems';
|
|
5
4
|
import { SwipableWrapperProps } from '../UIComponents/SwipableWrapper';
|
|
6
5
|
export declare const OpenChannelDetailsButton: () => React.JSX.Element;
|
|
7
|
-
export declare const ChannelSwipableWrapper: ({ channel, getChannelActionItems,
|
|
6
|
+
export declare const ChannelSwipableWrapper: ({ channel, getChannelActionItems, swipableProps: _swipableProps, children, }: PropsWithChildren<{
|
|
8
7
|
channel: Channel;
|
|
9
|
-
ChannelDetailsBottomSheet?: React.ComponentType<ChannelDetailsBottomSheetProps>;
|
|
10
8
|
getChannelActionItems?: GetChannelActionItems;
|
|
11
9
|
swipableProps?: SwipableWrapperProps["swipableProps"];
|
|
12
10
|
}>) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSwipableWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelSwipableWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAkC,MAAM,OAAO,CAAC;AAKjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelSwipableWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelPreview/ChannelSwipableWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAkC,MAAM,OAAO,CAAC;AAKjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAQ3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAIxF,OAAO,EAIL,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,wBAAwB,yBAKpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,8EAKpC,iBAAiB,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,aAAa,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;CACvD,CAAC,sBAyFD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
|
3
3
|
import { DeepPartial } from '../../contexts/themeContext/ThemeContext';
|
|
4
4
|
import type { Theme } from '../../contexts/themeContext/utils/theme';
|
|
5
5
|
import type { Streami18n } from '../../utils/i18n/Streami18n';
|
|
6
|
-
export type ChatProps = Pick<ChatContextValue, 'client'> & Partial<Pick<ChatContextValue, '
|
|
6
|
+
export type ChatProps = Pick<ChatContextValue, 'client'> & Partial<Pick<ChatContextValue, 'isMessageAIGenerated'>> & {
|
|
7
7
|
/**
|
|
8
8
|
* When false, ws connection won't be disconnection upon backgrounding the app.
|
|
9
9
|
* To receive push notifications, its necessary that user doesn't have active
|
|
@@ -67,12 +67,6 @@ export type ChatProps = Pick<ChatContextValue, 'client'> & Partial<Pick<ChatCont
|
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
69
|
i18nInstance?: Streami18n;
|
|
70
|
-
/**
|
|
71
|
-
* Custom loading indicator component to be used to represent the loading state of the chat.
|
|
72
|
-
*
|
|
73
|
-
* This can be used during the phase when db is not initialised.
|
|
74
|
-
*/
|
|
75
|
-
LoadingIndicator?: React.ComponentType | null;
|
|
76
70
|
/**
|
|
77
71
|
* You can pass the theme object to customize the styles of Chat components. You can check the default theme in [theme.ts](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/themeContext/utils/theme.ts)
|
|
78
72
|
*
|