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
|
@@ -3,7 +3,7 @@ import { MessageContextValue } from '../../contexts/messageContext/MessageContex
|
|
|
3
3
|
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
4
4
|
import { Reaction } from '../../types/types';
|
|
5
5
|
import { ReactionData } from '../../utils/utils';
|
|
6
|
-
export type MessageUserReactionsProps = Partial<Pick<MessagesContextValue, '
|
|
6
|
+
export type MessageUserReactionsProps = Partial<Pick<MessagesContextValue, 'supportedReactions'>> & Partial<Pick<MessageContextValue, 'message'>> & {
|
|
7
7
|
/**
|
|
8
8
|
* An array of reactions
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageUserReactions.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageMenu/MessageUserReactions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageUserReactions.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageMenu/MessageUserReactions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAcjF,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AAOxD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAajD,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,GAC/F,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC,GAAG;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAMJ,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG;IACpD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,OAAO,wBAAwB,sBAc/E,CAAC;AAgBF,eAAO,MAAM,oBAAoB,GAAI,OAAO,yBAAyB,sBAwMpE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
3
2
|
import type { Reaction } from '../../types/types';
|
|
4
3
|
import { ReactionData } from '../../utils/utils';
|
|
5
|
-
export type MessageUserReactionsItemProps =
|
|
4
|
+
export type MessageUserReactionsItemProps = {
|
|
6
5
|
/**
|
|
7
6
|
* The reaction object
|
|
8
7
|
*/
|
|
@@ -12,5 +11,5 @@ export type MessageUserReactionsItemProps = Pick<MessagesContextValue, 'MessageU
|
|
|
12
11
|
*/
|
|
13
12
|
supportedReactions: ReactionData[];
|
|
14
13
|
};
|
|
15
|
-
export declare const MessageUserReactionsItem: ({
|
|
14
|
+
export declare const MessageUserReactionsItem: ({ reaction, supportedReactions, }: MessageUserReactionsItemProps) => React.JSX.Element;
|
|
16
15
|
//# sourceMappingURL=MessageUserReactionsItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageUserReactionsItem.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageMenu/MessageUserReactionsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageUserReactionsItem.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageMenu/MessageUserReactionsItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,kBAAkB,EAAE,YAAY,EAAE,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,mCAGtC,6BAA6B,sBA+C/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CreatePollContentContextValue
|
|
2
|
+
import { CreatePollContentContextValue } from '../../contexts';
|
|
3
3
|
export declare const CreatePollContent: () => React.JSX.Element;
|
|
4
|
-
export declare const CreatePoll: ({ closePollCreationDialog,
|
|
4
|
+
export declare const CreatePoll: ({ closePollCreationDialog, createPollOptionGap, sendMessage, }: Pick<CreatePollContentContextValue, "createPollOptionGap" | "closePollCreationDialog" | "sendMessage">) => React.JSX.Element;
|
|
5
5
|
//# sourceMappingURL=CreatePollContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatePollContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Poll/CreatePollContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAcjF,OAAO,EAEL,6BAA6B,
|
|
1
|
+
{"version":3,"file":"CreatePollContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Poll/CreatePollContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAcjF,OAAO,EAEL,6BAA6B,EAK9B,MAAM,gBAAgB,CAAC;AAWxB,eAAO,MAAM,iBAAiB,yBAkL7B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,gEAIxB,IAAI,CACL,6BAA6B,EAC7B,qBAAqB,GAAG,yBAAyB,GAAG,aAAa,CAClE,sBAsDA,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export type PollProps = Pick<PollContextValue, 'poll' | 'message'
|
|
4
|
-
export type PollContentProps =
|
|
5
|
-
PollButtons?: React.ComponentType;
|
|
6
|
-
PollHeader?: React.ComponentType;
|
|
7
|
-
};
|
|
2
|
+
import { PollContextValue } from '../../contexts';
|
|
3
|
+
export type PollProps = Pick<PollContextValue, 'poll' | 'message'>;
|
|
4
|
+
export type PollContentProps = Record<string, never>;
|
|
8
5
|
export declare const PollHeader: () => React.JSX.Element;
|
|
9
|
-
export declare const PollContent: (
|
|
10
|
-
export declare const Poll: ({ message, poll
|
|
6
|
+
export declare const PollContent: () => React.JSX.Element;
|
|
7
|
+
export declare const Poll: ({ message, poll }: PollProps) => React.JSX.Element;
|
|
11
8
|
//# sourceMappingURL=Poll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Poll.d.ts","sourceRoot":"","sources":["../../../../src/components/Poll/Poll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AASvC,OAAO,
|
|
1
|
+
{"version":3,"file":"Poll.d.ts","sourceRoot":"","sources":["../../../../src/components/Poll/Poll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AASvC,OAAO,EAEL,gBAAgB,EAGjB,MAAM,gBAAgB,CAAC;AAMxB,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAErD,eAAO,MAAM,UAAU,yBAgCtB,CAAC;AAEF,eAAO,MAAM,WAAW,yBA4BvB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,mBAAmB,SAAS,sBAYhD,CAAC"}
|
|
@@ -6,11 +6,10 @@ import { PollContextValue } from '../../../contexts';
|
|
|
6
6
|
export declare const AnswerListAddCommentButton: (props: PollButtonProps) => React.JSX.Element;
|
|
7
7
|
export type PollAnswersListProps = PollContextValue & {
|
|
8
8
|
additionalFlatListProps?: Partial<FlatListProps<PollAnswer>>;
|
|
9
|
-
PollAnswersListContent?: React.ComponentType;
|
|
10
9
|
};
|
|
11
10
|
export declare const PollAnswerListItem: ({ answer }: {
|
|
12
11
|
answer: PollAnswer;
|
|
13
12
|
}) => React.JSX.Element;
|
|
14
13
|
export declare const PollAnswersListContent: ({ additionalFlatListProps, }: Pick<PollAnswersListProps, "additionalFlatListProps">) => React.JSX.Element;
|
|
15
|
-
export declare const PollAnswersList: ({ additionalFlatListProps, message, poll,
|
|
14
|
+
export declare const PollAnswersList: ({ additionalFlatListProps, message, poll, }: PollAnswersListProps) => React.JSX.Element;
|
|
16
15
|
//# sourceMappingURL=PollAnswersList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PollAnswersList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollAnswersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAY,KAAK,aAAa,EAA0B,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAoB,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,OAAO,EAEL,gBAAgB,EAKjB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PollAnswersList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollAnswersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAY,KAAK,aAAa,EAA0B,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAoB,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,OAAO,EAEL,gBAAgB,EAKjB,MAAM,mBAAmB,CAAC;AAS3B,eAAO,MAAM,0BAA0B,GAAI,OAAO,eAAe,sBAuChE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG;IACpD,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;CAC9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,YAAY;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,sBAqDpE,CAAC;AAMF,eAAO,MAAM,sBAAsB,GAAI,8BAEpC,IAAI,CAAC,oBAAoB,EAAE,yBAAyB,CAAC,sBAuBvD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,6CAI7B,oBAAoB,sBAOtB,CAAC"}
|
|
@@ -10,10 +10,9 @@ export type PollOptionProps = {
|
|
|
10
10
|
};
|
|
11
11
|
export type PollAllOptionsContentProps = PollContextValue & {
|
|
12
12
|
additionalScrollViewProps?: Partial<ScrollViewProps>;
|
|
13
|
-
PollAllOptionsContent?: React.ComponentType;
|
|
14
13
|
};
|
|
15
14
|
export declare const PollAllOptionsContent: ({ additionalScrollViewProps, }: Pick<PollAllOptionsContentProps, "additionalScrollViewProps">) => React.JSX.Element;
|
|
16
|
-
export declare const PollAllOptions: ({ additionalScrollViewProps, message, poll,
|
|
15
|
+
export declare const PollAllOptions: ({ additionalScrollViewProps, message, poll, }: PollAllOptionsContentProps) => React.JSX.Element;
|
|
17
16
|
export declare const PollOption: ({ option, showProgressBar, forceIncoming }: PollOptionProps) => React.JSX.Element;
|
|
18
17
|
export declare const VoteButton: ({ onPress, option }: PollVoteButtonProps) => React.JSX.Element | null;
|
|
19
18
|
//# sourceMappingURL=PollOption.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PollOption.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAa,eAAe,EAA0B,MAAM,cAAc,CAAC;AAIlF,OAAO,EAAE,UAAU,IAAI,eAAe,EAA0B,MAAM,aAAa,CAAC;AAEpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,EAEL,gBAAgB,EAKjB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PollOption.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAa,eAAe,EAA0B,MAAM,cAAc,CAAC;AAIlF,OAAO,EAAE,UAAU,IAAI,eAAe,EAA0B,MAAM,aAAa,CAAC;AAEpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,EAEL,gBAAgB,EAKjB,MAAM,mBAAmB,CAAC;AAU3B,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GAAG;IAC1D,yBAAyB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,gCAEnC,IAAI,CAAC,0BAA0B,EAAE,2BAA2B,CAAC,sBAgC/D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,+CAI5B,0BAA0B,sBAO5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,4CAAmD,eAAe,sBAkE5F,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,qBAAqB,mBAAmB,6BA0DlE,CAAC"}
|
|
@@ -5,13 +5,10 @@ import { PollContextValue } from '../../../../contexts';
|
|
|
5
5
|
export type PollOptionFullResultsProps = PollContextValue & {
|
|
6
6
|
option: PollOption;
|
|
7
7
|
additionalFlatListProps?: Partial<FlatListProps<PollVoteClass>>;
|
|
8
|
-
PollOptionFullResultsContent?: React.ComponentType<{
|
|
9
|
-
option: PollOption;
|
|
10
|
-
}>;
|
|
11
8
|
};
|
|
12
9
|
export declare const renderPollOptionFullResultsItem: ({ item }: {
|
|
13
10
|
item: PollVoteClass;
|
|
14
11
|
}) => React.JSX.Element;
|
|
15
12
|
export declare const PollOptionFullResultsContent: ({ additionalFlatListProps, option, }: Pick<PollOptionFullResultsProps, "option" | "additionalFlatListProps">) => React.JSX.Element;
|
|
16
|
-
export declare const PollOptionFullResults: ({ additionalFlatListProps, message, option, poll,
|
|
13
|
+
export declare const PollOptionFullResults: ({ additionalFlatListProps, message, option, poll, }: PollOptionFullResultsProps) => React.JSX.Element;
|
|
17
14
|
//# sourceMappingURL=PollOptionFullResults.d.ts.map
|
package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PollOptionFullResults.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Poll/components/PollResults/PollOptionFullResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAY,KAAK,aAAa,EAA0B,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAIpE,OAAO,EAEL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PollOptionFullResults.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Poll/components/PollResults/PollOptionFullResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAY,KAAK,aAAa,EAA0B,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAIpE,OAAO,EAEL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAO9B,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GAAG;IAC1D,MAAM,EAAE,UAAU,CAAC;IACnB,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,UAAU;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,sBAEhF,CAAC;AAEF,eAAO,MAAM,4BAA4B,GAAI,sCAG1C,IAAI,CAAC,0BAA0B,EAAE,QAAQ,GAAG,yBAAyB,CAAC,sBAkDxE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,qDAKnC,0BAA0B,sBAW5B,CAAC"}
|
|
@@ -3,8 +3,7 @@ import { ScrollViewProps } from 'react-native';
|
|
|
3
3
|
import { PollContextValue } from '../../../../contexts';
|
|
4
4
|
export type PollResultsProps = PollContextValue & {
|
|
5
5
|
additionalScrollViewProps?: Partial<ScrollViewProps>;
|
|
6
|
-
PollResultsContent?: React.ComponentType;
|
|
7
6
|
};
|
|
8
7
|
export declare const PollResultsContent: ({ additionalScrollViewProps, }: Pick<PollResultsProps, "additionalScrollViewProps">) => React.JSX.Element;
|
|
9
|
-
export declare const PollResults: ({ additionalScrollViewProps, message, poll
|
|
8
|
+
export declare const PollResults: ({ additionalScrollViewProps, message, poll }: PollResultsProps) => React.JSX.Element;
|
|
10
9
|
//# sourceMappingURL=PollResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PollResults.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Poll/components/PollResults/PollResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAA0B,MAAM,cAAc,CAAC;AAMvE,OAAO,EAEL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PollResults.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Poll/components/PollResults/PollResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,eAAe,EAA0B,MAAM,cAAc,CAAC;AAMvE,OAAO,EAEL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAK9B,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG;IAChD,yBAAyB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,gCAEhC,IAAI,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,sBAuCrD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,8CAA8C,gBAAgB,sBAOzF,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
2
|
+
import { ImageProps, TextStyle, ViewStyle } from 'react-native';
|
|
4
3
|
import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
|
|
5
4
|
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
6
|
-
export type ReplyPropsWithContext =
|
|
5
|
+
export type ReplyPropsWithContext = {
|
|
6
|
+
ImageComponent: React.ComponentType<ImageProps>;
|
|
7
|
+
} & Pick<MessageContextValue, 'message'> & Pick<MessagesContextValue, 'quotedMessage'> & {
|
|
7
8
|
isMyMessage: boolean;
|
|
8
9
|
onDismiss?: () => void;
|
|
9
10
|
mode: 'reply' | 'edit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reply.d.ts","sourceRoot":"","sources":["../../../../src/components/Reply/Reply.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"Reply.d.ts","sourceRoot":"","sources":["../../../../src/components/Reply/Reply.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAGL,UAAU,EAGV,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAatB,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AA+DtF,MAAM,MAAM,qBAAqB,GAAG;IAAE,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;CAAE,GAAG,IAAI,CAC5F,mBAAmB,EACnB,SAAS,CACV,GACC,IAAI,CAAC,oBAAoB,EAAE,eAAe,CAAC,GAAG;IAC5C,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IAEvB,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,SAAS,CAAC;QACtB,aAAa,CAAC,EAAE,SAAS,CAAC;QAC1B,cAAc,CAAC,EAAE,SAAS,CAAC;QAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,iBAAiB,CAAC,EAAE,SAAS,CAAC;QAC9B,cAAc,CAAC,EAAE,SAAS,CAAC;KAC5B,CAAC;CACH,CAAC;AAEJ,eAAO,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,6BA8D5D,CAAC;AAmDF,eAAO,MAAM,aAAa,EAA6C,OAAO,gBAAgB,CAAC;AAE/F,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,qBAAqB,CAAC,GACrD,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC;AAEpD,eAAO,MAAM,KAAK,GAAI,OAAO,UAAU,sBA0BtC,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChatContextValue } from '../../contexts/chatContext/ChatContext';
|
|
3
|
-
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
4
3
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
5
|
-
import { MessageComposerProps } from '../MessageInput/MessageComposer';
|
|
4
|
+
import type { MessageComposerProps } from '../MessageInput/MessageComposer';
|
|
6
5
|
import { MessageFlashListProps } from '../MessageList/MessageFlashList';
|
|
7
6
|
import { MessageListProps } from '../MessageList/MessageList';
|
|
8
|
-
type ThreadPropsWithContext = Pick<ChatContextValue, 'client'> & Pick<
|
|
7
|
+
type ThreadPropsWithContext = Pick<ChatContextValue, 'client'> & Pick<ThreadContextValue, 'closeThread' | 'loadMoreThread' | 'parentMessagePreventPress' | 'reloadThread' | 'thread' | 'threadInstance'> & {
|
|
9
8
|
/**
|
|
10
9
|
* Additional props for underlying MessageComposer component.
|
|
11
10
|
* Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input/#props
|
|
@@ -29,11 +28,6 @@ type ThreadPropsWithContext = Pick<ChatContextValue, 'client'> & Pick<MessagesCo
|
|
|
29
28
|
closeThreadOnDismount?: boolean;
|
|
30
29
|
/** Disables the thread UI. So MessageComposer and MessageList will be disabled. */
|
|
31
30
|
disabled?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* **Customized MessageComposer component to used within Thread instead of default MessageComposer
|
|
34
|
-
* **Available from [MessageComposer](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input)**
|
|
35
|
-
*/
|
|
36
|
-
MessageComposer?: React.ComponentType<MessageComposerProps>;
|
|
37
31
|
/**
|
|
38
32
|
* Call custom function on closing thread if handling thread state elsewhere
|
|
39
33
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/components/Thread/Thread.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/components/Thread/Thread.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAE1F,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAElG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAoB,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAU9D,KAAK,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAC5D,IAAI,CACF,kBAAkB,EAChB,aAAa,GACb,gBAAgB,GAChB,2BAA2B,GAC3B,cAAc,GACd,QAAQ,GACR,gBAAgB,CACnB,GAAG;IACF;;;SAGK;IACL,8BAA8B,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC/D;;;SAGK;IACL,0BAA0B,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACvD;;;;;OAKG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACjE,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kDAAkD;IAClD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAuFJ,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,WAAW,sBAwBxC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
3
2
|
import { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
|
|
4
3
|
export declare const InlineLoadingMoreThreadIndicator: () => React.JSX.Element | null;
|
|
5
|
-
export type ThreadFooterComponentProps = Partial<Pick<
|
|
4
|
+
export type ThreadFooterComponentProps = Partial<Pick<ThreadContextValue, 'parentMessagePreventPress' | 'thread'>>;
|
|
6
5
|
export declare const ThreadFooterComponent: (props: ThreadFooterComponentProps) => React.JSX.Element;
|
|
7
6
|
//# sourceMappingURL=ThreadFooterComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadFooterComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/components/ThreadFooterComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ThreadFooterComponent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/components/ThreadFooterComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,EACL,kBAAkB,EAEnB,MAAM,+CAA+C,CAAC;AAUvD,eAAO,MAAM,gCAAgC,gCAgB5C,CAAC;AAiGF,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,IAAI,CAAC,kBAAkB,EAAE,2BAA2B,GAAG,QAAQ,CAAC,CACjE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,0BAA0B,sBAetE,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ThreadsContextValue } from '../../contexts/threadsContext/ThreadsContext';
|
|
3
|
-
export type ThreadListProps = Pick<ThreadsContextValue, 'additionalFlatListProps' | 'isFocused' | 'onThreadSelect'
|
|
4
|
-
ThreadList?: React.ComponentType;
|
|
5
|
-
};
|
|
3
|
+
export type ThreadListProps = Pick<ThreadsContextValue, 'additionalFlatListProps' | 'isFocused' | 'onThreadSelect'>;
|
|
6
4
|
export declare const DefaultThreadListEmptyPlaceholder: () => React.JSX.Element;
|
|
7
5
|
export declare const DefaultThreadListLoadingIndicator: () => React.JSX.Element;
|
|
8
6
|
export declare const DefaultThreadListLoadingNextIndicator: () => React.JSX.Element;
|
|
7
|
+
export declare const DefaultThreadListComponent: () => React.JSX.Element;
|
|
9
8
|
export declare const ThreadList: (props: ThreadListProps) => React.JSX.Element;
|
|
10
9
|
//# sourceMappingURL=ThreadList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadList.d.ts","sourceRoot":"","sources":["../../../../src/components/ThreadList/ThreadList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAUzC,OAAO,EACL,mBAAmB,EAGpB,MAAM,8CAA8C,CAAC;AAatD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ThreadList.d.ts","sourceRoot":"","sources":["../../../../src/components/ThreadList/ThreadList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAUzC,OAAO,EACL,mBAAmB,EAGpB,MAAM,8CAA8C,CAAC;AAatD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,mBAAmB,EACnB,yBAAyB,GAAG,WAAW,GAAG,gBAAgB,CAC3D,CAAC;AAEF,eAAO,MAAM,iCAAiC,yBAAmD,CAAC;AAElG,eAAO,MAAM,iCAAiC,yBAM7C,CAAC;AACF,eAAO,MAAM,qCAAqC,yBAAgD,CAAC;AAInG,eAAO,MAAM,0BAA0B,yBA8BtC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,sBAwChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ThreadList/ThreadListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAKL,MAAM,EAEP,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ThreadListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ThreadList/ThreadListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAKL,MAAM,EAEP,MAAM,aAAa,CAAC;AAiBrB,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AAUX,eAAO,MAAM,uBAAuB,yBAsFnC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,sBA6FxD,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import BottomSheet from '@gorhom/bottom-sheet';
|
|
3
|
-
import { AttachmentPickerContentProps } from '../../components';
|
|
4
3
|
import { AttachmentPickerStore, SelectedPickerType } from '../../state-store/attachment-picker-store';
|
|
5
4
|
import { MessageInputContextValue } from '../messageInputContext/MessageInputContext';
|
|
6
5
|
export type AttachmentPickerIconProps = {
|
|
@@ -8,10 +7,6 @@ export type AttachmentPickerIconProps = {
|
|
|
8
7
|
selectedPicker: SelectedPickerType;
|
|
9
8
|
};
|
|
10
9
|
export type AttachmentPickerContextValue = Pick<MessageInputContextValue, 'attachmentSelectionBarHeight' | 'attachmentPickerBottomSheetHeight'> & {
|
|
11
|
-
/**
|
|
12
|
-
* Custom UI Component to render select more photos for selected gallery access in iOS.
|
|
13
|
-
*/
|
|
14
|
-
AttachmentPickerIOSSelectMorePhotos: React.ComponentType;
|
|
15
10
|
/**
|
|
16
11
|
* `bottomInset` determine the height of the `AttachmentPicker` and the underlying shift to the `MessageList` when it is opened.
|
|
17
12
|
* This can also be set via the `setBottomInset` function provided by the `useAttachmentPickerContext` hook.
|
|
@@ -25,18 +20,6 @@ export type AttachmentPickerContextValue = Pick<MessageInputContextValue, 'attac
|
|
|
25
20
|
openPicker: () => void;
|
|
26
21
|
topInset: number;
|
|
27
22
|
disableAttachmentPicker?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Custom UI component to render overlay component, that shows up on top of [selected
|
|
30
|
-
* image](https://github.com/GetStream/stream-chat-react-native/blob/main/screenshots/docs/1.png) (with tick mark)
|
|
31
|
-
*
|
|
32
|
-
* **Default**
|
|
33
|
-
* [ImageOverlaySelectedComponent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/AttachmentPicker/components/ImageOverlaySelectedComponent.tsx)
|
|
34
|
-
*/
|
|
35
|
-
ImageOverlaySelectedComponent: React.ComponentType<{
|
|
36
|
-
index: number;
|
|
37
|
-
}>;
|
|
38
|
-
AttachmentPickerSelectionBar: React.ComponentType;
|
|
39
|
-
AttachmentPickerContent: React.ComponentType<AttachmentPickerContentProps>;
|
|
40
23
|
attachmentPickerStore: AttachmentPickerStore;
|
|
41
24
|
numberOfAttachmentPickerImageColumns?: number;
|
|
42
25
|
numberOfAttachmentImagesToLoadPerCall?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentPickerContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAiC,MAAM,OAAO,CAAC;AAEhF,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAE/C,OAAO,
|
|
1
|
+
{"version":3,"file":"AttachmentPickerContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAiC,MAAM,OAAO,CAAC;AAEhF,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAKtF,MAAM,MAAM,yBAAyB,GAAG;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,kBAAkB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,wBAAwB,EACxB,8BAA8B,GAAG,mCAAmC,CACrE,GAAG;IACF;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACpD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IAEjB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oCAAoC,CAAC,EAAE,MAAM,CAAC;IAC9C,qCAAqC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,uBAAuB,6CAEnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,sBAGtC,iBAAiB,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC,4BAA4B,EAAE,aAAa,GAAG,YAAY,CAAC,GACtE,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC;CAC3E,CAAC,sBAqBD,CAAC;AAEF,eAAO,MAAM,0BAA0B,oCAYtC,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import type { Channel, ChannelState } from 'stream-chat';
|
|
3
3
|
import { MarkReadFunctionOptions } from '../../components/Channel/Channel';
|
|
4
|
-
import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
|
|
5
|
-
import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
|
|
6
|
-
import { StickyHeaderProps } from '../../components/MessageList/StickyHeader';
|
|
7
4
|
import { ChannelUnreadStateStore, ChannelUnreadStateStoreType } from '../../state-store/channel-unread-state';
|
|
8
5
|
export type ChannelContextValue = {
|
|
9
6
|
/**
|
|
@@ -29,12 +26,6 @@ export type ChannelContextValue = {
|
|
|
29
26
|
* @overrideType Channel
|
|
30
27
|
*/
|
|
31
28
|
channel: Channel;
|
|
32
|
-
/**
|
|
33
|
-
* Custom UI component to display empty state when channel has no messages.
|
|
34
|
-
*
|
|
35
|
-
* **Default** [EmptyStateIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Indicators/EmptyStateIndicator.tsx)
|
|
36
|
-
*/
|
|
37
|
-
EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
|
|
38
29
|
/**
|
|
39
30
|
* When set to true, reactions will be limited to 1 per user. If user selects another reaction
|
|
40
31
|
* then his previous reaction will be removed and replaced with new one.
|
|
@@ -71,10 +62,6 @@ export type ChannelContextValue = {
|
|
|
71
62
|
setChannelUnreadState?: (data: ChannelUnreadStateStoreType['channelUnreadState']) => void;
|
|
72
63
|
setTargetedMessage?: (messageId: string) => void;
|
|
73
64
|
}) => Promise<void>;
|
|
74
|
-
/**
|
|
75
|
-
* Custom loading indicator to override the Stream default
|
|
76
|
-
*/
|
|
77
|
-
LoadingIndicator: React.ComponentType<LoadingProps>;
|
|
78
65
|
markRead: (options?: MarkReadFunctionOptions) => void;
|
|
79
66
|
/**
|
|
80
67
|
*
|
|
@@ -100,10 +87,6 @@ export type ChannelContextValue = {
|
|
|
100
87
|
* ```
|
|
101
88
|
*/
|
|
102
89
|
members: ChannelState['members'];
|
|
103
|
-
/**
|
|
104
|
-
* Custom network down indicator to override the Stream default
|
|
105
|
-
*/
|
|
106
|
-
NetworkDownIndicator: React.ComponentType;
|
|
107
90
|
read: ChannelState['read'];
|
|
108
91
|
reloadChannel: () => Promise<void>;
|
|
109
92
|
scrollToFirstUnreadThreshold: number;
|
|
@@ -136,12 +119,6 @@ export type ChannelContextValue = {
|
|
|
136
119
|
* currently near them within the viewport.
|
|
137
120
|
*/
|
|
138
121
|
maximumMessageLimit?: number;
|
|
139
|
-
/**
|
|
140
|
-
* Custom UI component for sticky header of channel.
|
|
141
|
-
*
|
|
142
|
-
* **Default** [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)
|
|
143
|
-
*/
|
|
144
|
-
StickyHeader?: React.ComponentType<StickyHeaderProps>;
|
|
145
122
|
/**
|
|
146
123
|
* Id of message, around which Channel/MessageList gets loaded when opened.
|
|
147
124
|
* You will see a highlighted background for targetted message, when opened.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelContext/ChannelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,
|
|
1
|
+
{"version":3,"file":"ChannelContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelContext/ChannelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAKhD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC;IACvB;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,wBAAwB,EAAE,CAAC,EACzB,KAAK,EACL,SAAS,EACT,kBAAkB,GACnB,EAAE;QACD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;KAClD,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpB;;;;;OAKG;IACH,+BAA+B,EAAE,CAAC,EAChC,kBAAkB,EAClB,KAAK,EACL,kBAAkB,GACnB,EAAE;QACD,kBAAkB,CAAC,EAAE,2BAA2B,CAAC,oBAAoB,CAAC,CAAC;QACvE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;QAC1F,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;KAClD,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpB,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACtD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,4BAA4B,EAAE,MAAM,CAAC;IACrC,qBAAqB,EAAE,CAAC,IAAI,EAAE,2BAA2B,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;IACzF,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC;IACpE,kBAAkB,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,wBAAwB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;IAC/E,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC7C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,cAAc,oCAE1B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,sBAG7B,iBAAiB,CAAC;IACnB,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC,sBAID,CAAC;AAEF,eAAO,MAAM,iBAAiB,2BAU7B,CAAC"}
|
|
@@ -2,22 +2,8 @@ import React, { PropsWithChildren } from 'react';
|
|
|
2
2
|
import type { FlatListProps } from 'react-native';
|
|
3
3
|
import type { FlatList } from 'react-native-gesture-handler';
|
|
4
4
|
import type { Channel } from 'stream-chat';
|
|
5
|
-
import type { HeaderErrorProps } from '../../components/ChannelList/ChannelListHeaderErrorIndicator';
|
|
6
5
|
import type { GetChannelActionItems } from '../../components/ChannelList/hooks/useChannelActionItems';
|
|
7
6
|
import type { QueryChannels } from '../../components/ChannelList/hooks/usePaginatedChannels';
|
|
8
|
-
import type { ChannelDetailsBottomSheetProps } from '../../components/ChannelPreview/ChannelDetailsBottomSheet';
|
|
9
|
-
import { ChannelLastMessagePreviewProps } from '../../components/ChannelPreview/ChannelLastMessagePreview';
|
|
10
|
-
import { ChannelMessagePreviewDeliveryStatusProps } from '../../components/ChannelPreview/ChannelMessagePreviewDeliveryStatus';
|
|
11
|
-
import { ChannelPreviewMessageProps } from '../../components/ChannelPreview/ChannelPreviewMessage';
|
|
12
|
-
import type { ChannelPreviewStatusProps } from '../../components/ChannelPreview/ChannelPreviewStatus';
|
|
13
|
-
import type { ChannelPreviewTitleProps } from '../../components/ChannelPreview/ChannelPreviewTitle';
|
|
14
|
-
import { ChannelPreviewTypingIndicatorProps } from '../../components/ChannelPreview/ChannelPreviewTypingIndicator';
|
|
15
|
-
import type { ChannelPreviewUnreadCountProps } from '../../components/ChannelPreview/ChannelPreviewUnreadCount';
|
|
16
|
-
import type { ChannelPreviewViewProps } from '../../components/ChannelPreview/ChannelPreviewView';
|
|
17
|
-
import type { EmptyStateProps } from '../../components/Indicators/EmptyStateIndicator';
|
|
18
|
-
import type { LoadingErrorProps } from '../../components/Indicators/LoadingErrorIndicator';
|
|
19
|
-
import type { LoadingProps } from '../../components/Indicators/LoadingIndicator';
|
|
20
|
-
import { ChannelAvatarProps } from '../../components/ui/Avatar/ChannelAvatar';
|
|
21
7
|
export type ChannelsContextValue = {
|
|
22
8
|
/**
|
|
23
9
|
* Besides the existing default behavior of the ChannelListView component, you can attach
|
|
@@ -45,18 +31,6 @@ export type ChannelsContextValue = {
|
|
|
45
31
|
* Channels can be either an array of channels or a promise which resolves to an array of channels
|
|
46
32
|
*/
|
|
47
33
|
channels: Channel[] | null;
|
|
48
|
-
/**
|
|
49
|
-
* Custom indicator to use when channel list is empty
|
|
50
|
-
*
|
|
51
|
-
* Default: [EmptyStateIndicator](https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#emptystateindicator)
|
|
52
|
-
* */
|
|
53
|
-
EmptyStateIndicator: React.ComponentType<EmptyStateProps>;
|
|
54
|
-
/**
|
|
55
|
-
* Custom loading indicator to display at bottom of the list, while loading further pages
|
|
56
|
-
*
|
|
57
|
-
* Default: [ChannelListFooterLoadingIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#footerloadingindicator)
|
|
58
|
-
*/
|
|
59
|
-
FooterLoadingIndicator: React.ComponentType;
|
|
60
34
|
/**
|
|
61
35
|
* Incremental number change to force update the FlatList
|
|
62
36
|
*/
|
|
@@ -65,33 +39,10 @@ export type ChannelsContextValue = {
|
|
|
65
39
|
* Whether or not the FlatList has another page to render
|
|
66
40
|
*/
|
|
67
41
|
hasNextPage: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Custom indicator to display error at top of list, if loading/pagination error occurs
|
|
70
|
-
*
|
|
71
|
-
* Default: [ChannelListHeaderErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headererrorindicator)
|
|
72
|
-
*/
|
|
73
|
-
HeaderErrorIndicator: React.ComponentType<HeaderErrorProps>;
|
|
74
|
-
/**
|
|
75
|
-
* Custom indicator to display network-down error at top of list, if there is connectivity issue
|
|
76
|
-
*
|
|
77
|
-
* Default: [ChannelListHeaderNetworkDownIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#headernetworkdownindicator)
|
|
78
|
-
*/
|
|
79
|
-
HeaderNetworkDownIndicator: React.ComponentType;
|
|
80
42
|
/**
|
|
81
43
|
* Initial channels query loading state, triggers the LoadingIndicator
|
|
82
44
|
*/
|
|
83
45
|
loadingChannels: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Custom indicator to use when there is error in fetching channels
|
|
86
|
-
*
|
|
87
|
-
* Default: [LoadingErrorIndicator](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#loadingerrorindicator)
|
|
88
|
-
* */
|
|
89
|
-
LoadingErrorIndicator: React.ComponentType<LoadingErrorProps>;
|
|
90
|
-
/**
|
|
91
|
-
* Custom loading indicator to use on Channel List
|
|
92
|
-
*
|
|
93
|
-
* */
|
|
94
|
-
LoadingIndicator: React.ComponentType<Pick<LoadingProps, 'listType'>>;
|
|
95
46
|
/**
|
|
96
47
|
* Whether or not additional channels are being loaded, triggers the FooterLoadingIndicator
|
|
97
48
|
*/
|
|
@@ -113,12 +64,6 @@ export type ChannelsContextValue = {
|
|
|
113
64
|
* Number of skeletons that should show when loading. Default: 6
|
|
114
65
|
*/
|
|
115
66
|
numberOfSkeletons: number;
|
|
116
|
-
/**
|
|
117
|
-
* Custom UI component to display individual channel list items
|
|
118
|
-
*
|
|
119
|
-
* Default: [ChannelPreviewView](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-preview-view/)
|
|
120
|
-
*/
|
|
121
|
-
Preview: React.ComponentType<ChannelPreviewViewProps>;
|
|
122
67
|
/**
|
|
123
68
|
* Triggered when the channel list is refreshing, displays a loading spinner at the top of the list
|
|
124
69
|
*/
|
|
@@ -145,73 +90,16 @@ export type ChannelsContextValue = {
|
|
|
145
90
|
* ```
|
|
146
91
|
*/
|
|
147
92
|
setFlatListRef: (ref: FlatList<Channel> | null) => void;
|
|
148
|
-
/**
|
|
149
|
-
* Custom UI component to display loading channel skeletons
|
|
150
|
-
*
|
|
151
|
-
* Default: [Skeleton](https://getstream.io/chat/docs/sdk/reactnative/contexts/channels-context/#skeleton)
|
|
152
|
-
*/
|
|
153
|
-
Skeleton: React.ComponentType;
|
|
154
93
|
/**
|
|
155
94
|
* Error in channels query, if any
|
|
156
95
|
*/
|
|
157
96
|
error?: Error;
|
|
158
|
-
ListHeaderComponent?: React.ComponentType;
|
|
159
97
|
/**
|
|
160
98
|
* Function to set the currently active channel, acts as a bridge between ChannelList and Channel components
|
|
161
99
|
*
|
|
162
100
|
* @param channel A channel object
|
|
163
101
|
*/
|
|
164
102
|
onSelect?: (channel: Channel) => void;
|
|
165
|
-
/**
|
|
166
|
-
* Custom UI component to render preview avatar.
|
|
167
|
-
*
|
|
168
|
-
* **Default** [ChannelAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelAvatar.tsx)
|
|
169
|
-
*/
|
|
170
|
-
PreviewAvatar?: React.ComponentType<ChannelAvatarProps>;
|
|
171
|
-
/**
|
|
172
|
-
* Custom UI component to render preview of latest message on channel.
|
|
173
|
-
*
|
|
174
|
-
* **Default** [ChannelPreviewMessage](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMessage.tsx)
|
|
175
|
-
*/
|
|
176
|
-
PreviewMessage?: React.ComponentType<ChannelPreviewMessageProps>;
|
|
177
|
-
/**
|
|
178
|
-
* Custom UI component to render delivery status of latest message on channel.
|
|
179
|
-
*
|
|
180
|
-
* **Default** [ChannelMessagePreviewDeliveryStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx)
|
|
181
|
-
*/
|
|
182
|
-
PreviewMessageDeliveryStatus?: React.ComponentType<ChannelMessagePreviewDeliveryStatusProps>;
|
|
183
|
-
/**
|
|
184
|
-
* Custom UI component to render muted status.
|
|
185
|
-
*
|
|
186
|
-
* **Default** [ChannelMutedStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx)
|
|
187
|
-
*/
|
|
188
|
-
PreviewMutedStatus?: React.ComponentType;
|
|
189
|
-
/**
|
|
190
|
-
* Custom UI component to render preview avatar.
|
|
191
|
-
*
|
|
192
|
-
* **Default** [ChannelPreviewStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewStatus.tsx)
|
|
193
|
-
*/
|
|
194
|
-
PreviewStatus?: React.ComponentType<ChannelPreviewStatusProps>;
|
|
195
|
-
/**
|
|
196
|
-
* Custom UI component to render preview avatar.
|
|
197
|
-
*
|
|
198
|
-
* **Default** [ChannelPreviewTitle](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewTitle.tsx)
|
|
199
|
-
*/
|
|
200
|
-
PreviewTitle?: React.ComponentType<ChannelPreviewTitleProps>;
|
|
201
|
-
/**
|
|
202
|
-
* Custom UI component to render preview avatar.
|
|
203
|
-
*
|
|
204
|
-
* **Default** [ChannelPreviewUnreadCount](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx)
|
|
205
|
-
*/
|
|
206
|
-
PreviewUnreadCount?: React.ComponentType<ChannelPreviewUnreadCountProps>;
|
|
207
|
-
PreviewTypingIndicator?: React.ComponentType<ChannelPreviewTypingIndicatorProps>;
|
|
208
|
-
ChannelDetailsBottomSheet?: React.ComponentType<ChannelDetailsBottomSheetProps>;
|
|
209
|
-
/**
|
|
210
|
-
* Custom UI component to render preview of last message on channel.
|
|
211
|
-
*
|
|
212
|
-
* **Default** [ChannelLastMessagePreview](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/ChannelPreview/ChannelLastMessagePreview.tsx)
|
|
213
|
-
*/
|
|
214
|
-
PreviewLastMessage?: React.ComponentType<ChannelLastMessagePreviewProps>;
|
|
215
103
|
getChannelActionItems?: GetChannelActionItems;
|
|
216
104
|
swipeActionsEnabled?: boolean;
|
|
217
105
|
mutedStatusPosition?: 'trailingBottom' | 'inlineTitle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelsContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsContext/ChannelsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ChannelsContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsContext/ChannelsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACtG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAC;AAK7F,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;;;;;;;;;;;OAgBG;IACH,uBAAuB,EAAE,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD;;OAEG;IACH,sBAAsB,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;SAGK;IACL,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC;;SAEK;IACL,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAOhC;;;;;;;;;;;OAWG;IACH,cAAc,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,mBAAmB,CAAC,EAAE,gBAAgB,GAAG,aAAa,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,eAAe,qCAE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,sBAG9B,iBAAiB,CAAC;IACnB,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC,sBAID,CAAC;AAEF,eAAO,MAAM,kBAAkB,4BAU9B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import type { ImageProps } from 'react-native';
|
|
3
2
|
import type { AppSettingsAPIResponse, Channel, Mute, StreamChat } from 'stream-chat';
|
|
4
3
|
import { MessageContextValue } from '../messageContext/MessageContext';
|
|
5
4
|
export type ChatContextValue = {
|
|
@@ -26,10 +25,6 @@ export type ChatContextValue = {
|
|
|
26
25
|
client: StreamChat;
|
|
27
26
|
connectionRecovering: boolean;
|
|
28
27
|
enableOfflineSupport: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Drop in replacement of all the underlying Image components within SDK. This is useful for the purpose of offline caching of images. Please check the Offline Support Guide for usage.
|
|
31
|
-
*/
|
|
32
|
-
ImageComponent: React.ComponentType<ImageProps>;
|
|
33
28
|
isOnline: boolean | null;
|
|
34
29
|
mutedUsers: Mute[];
|
|
35
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/chatContext/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/chatContext/ChatContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAKvE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;SAEK;IACL,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC3C;;;;;;;;;;;;;;;SAeK;IACL,MAAM,EAAE,UAAU,CAAC;IACnB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC,CAAC;AAE/D,eAAO,MAAM,WAAW,iCAAsE,CAAC;AAE/F,eAAO,MAAM,YAAY,GAAI,sBAG1B,iBAAiB,CAAC;IACnB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC,sBAID,CAAC;AAEF,eAAO,MAAM,cAAc,wBAU1B,CAAC"}
|