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
|
@@ -54,6 +54,7 @@ import { ChannelContextValue, ChannelProvider } from '../../contexts/channelCont
|
|
|
54
54
|
import type { UseChannelStateValue } from '../../contexts/channelsStateContext/useChannelState';
|
|
55
55
|
import { useChannelState } from '../../contexts/channelsStateContext/useChannelState';
|
|
56
56
|
import { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
57
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
57
58
|
import { MessageComposerProvider } from '../../contexts/messageComposerContext/MessageComposerContext';
|
|
58
59
|
import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
|
|
59
60
|
import {
|
|
@@ -111,116 +112,11 @@ import {
|
|
|
111
112
|
MessageStatusTypes,
|
|
112
113
|
ReactionData,
|
|
113
114
|
} from '../../utils/utils';
|
|
114
|
-
import { Attachment as AttachmentDefault } from '../Attachment/Attachment';
|
|
115
|
-
import { AudioAttachment as AudioAttachmentDefault } from '../Attachment/Audio';
|
|
116
|
-
import { FileAttachment as FileAttachmentDefault } from '../Attachment/FileAttachment';
|
|
117
|
-
import { FileAttachmentGroup as FileAttachmentGroupDefault } from '../Attachment/FileAttachmentGroup';
|
|
118
|
-
import { FileIcon as FileIconDefault } from '../Attachment/FileIcon';
|
|
119
|
-
import { FilePreview as FilePreviewDefault } from '../Attachment/FilePreview';
|
|
120
|
-
import { Gallery as GalleryDefault } from '../Attachment/Gallery';
|
|
121
|
-
import { Giphy as GiphyDefault } from '../Attachment/Giphy';
|
|
122
|
-
import { ImageLoadingFailedIndicator as ImageLoadingFailedIndicatorDefault } from '../Attachment/ImageLoadingFailedIndicator';
|
|
123
|
-
import { ImageLoadingIndicator as ImageLoadingIndicatorDefault } from '../Attachment/ImageLoadingIndicator';
|
|
124
|
-
import { UnsupportedAttachment as UnsupportedAttachmentDefault } from '../Attachment/UnsupportedAttachment';
|
|
125
|
-
import { URLPreview as URLPreviewDefault } from '../Attachment/UrlPreview';
|
|
126
|
-
import { URLPreviewCompact as URLPreviewCompactDefault } from '../Attachment/UrlPreview/URLPreviewCompact';
|
|
127
|
-
import { VideoThumbnail as VideoThumbnailDefault } from '../Attachment/VideoThumbnail';
|
|
128
115
|
import { AttachmentPicker } from '../AttachmentPicker/AttachmentPicker';
|
|
129
|
-
import {
|
|
130
|
-
import { AttachmentPickerSelectionBar as DefaultAttachmentPickerSelectionBar } from '../AttachmentPicker/components/AttachmentPickerSelectionBar';
|
|
131
|
-
import { ImageOverlaySelectedComponent as DefaultImageOverlaySelectedComponent } from '../AttachmentPicker/components/ImageOverlaySelectedComponent';
|
|
132
|
-
import { AutoCompleteSuggestionHeader as AutoCompleteSuggestionHeaderDefault } from '../AutoCompleteInput/AutoCompleteSuggestionHeader';
|
|
133
|
-
import { AutoCompleteSuggestionItem as AutoCompleteSuggestionItemDefault } from '../AutoCompleteInput/AutoCompleteSuggestionItem';
|
|
134
|
-
import { AutoCompleteSuggestionList as AutoCompleteSuggestionListDefault } from '../AutoCompleteInput/AutoCompleteSuggestionList';
|
|
135
|
-
import { InputView as InputViewDefault } from '../AutoCompleteInput/InputView';
|
|
136
|
-
import { EmptyStateIndicator as EmptyStateIndicatorDefault } from '../Indicators/EmptyStateIndicator';
|
|
137
|
-
import {
|
|
138
|
-
LoadingErrorIndicator as LoadingErrorIndicatorDefault,
|
|
139
|
-
LoadingErrorProps,
|
|
140
|
-
} from '../Indicators/LoadingErrorIndicator';
|
|
141
|
-
import { LoadingIndicator as LoadingIndicatorDefault } from '../Indicators/LoadingIndicator';
|
|
142
|
-
import {
|
|
143
|
-
KeyboardCompatibleView as KeyboardCompatibleViewDefault,
|
|
144
|
-
KeyboardCompatibleViewProps,
|
|
145
|
-
} from '../KeyboardCompatibleView/KeyboardControllerAvoidingView';
|
|
146
|
-
import { Message as MessageDefault } from '../Message/Message';
|
|
147
|
-
import { MessagePinnedHeader as MessagePinnedHeaderDefault } from '../Message/MessageItemView/Headers/MessagePinnedHeader';
|
|
148
|
-
import { MessageReminderHeader as MessageReminderHeaderDefault } from '../Message/MessageItemView/Headers/MessageReminderHeader';
|
|
149
|
-
import { MessageSavedForLaterHeader as MessageSavedForLaterHeaderDefault } from '../Message/MessageItemView/Headers/MessageSavedForLaterHeader';
|
|
150
|
-
import { SentToChannelHeader as SentToChannelHeaderDefault } from '../Message/MessageItemView/Headers/SentToChannelHeader';
|
|
151
|
-
import { MessageAuthor as MessageAuthorDefault } from '../Message/MessageItemView/MessageAuthor';
|
|
152
|
-
import { MessageBlocked as MessageBlockedDefault } from '../Message/MessageItemView/MessageBlocked';
|
|
153
|
-
import { MessageBounce as MessageBounceDefault } from '../Message/MessageItemView/MessageBounce';
|
|
154
|
-
import { MessageContent as MessageContentDefault } from '../Message/MessageItemView/MessageContent';
|
|
155
|
-
import { MessageDeleted as MessageDeletedDefault } from '../Message/MessageItemView/MessageDeleted';
|
|
156
|
-
import { MessageError as MessageErrorDefault } from '../Message/MessageItemView/MessageError';
|
|
157
|
-
import { MessageFooter as MessageFooterDefault } from '../Message/MessageItemView/MessageFooter';
|
|
158
|
-
import { MessageHeader as MessageHeaderDefault } from '../Message/MessageItemView/MessageHeader';
|
|
159
|
-
import { MessageItemView as MessageItemViewDefault } from '../Message/MessageItemView/MessageItemView';
|
|
160
|
-
import { MessageReplies as MessageRepliesDefault } from '../Message/MessageItemView/MessageReplies';
|
|
161
|
-
import { MessageRepliesAvatars as MessageRepliesAvatarsDefault } from '../Message/MessageItemView/MessageRepliesAvatars';
|
|
162
|
-
import { MessageStatus as MessageStatusDefault } from '../Message/MessageItemView/MessageStatus';
|
|
163
|
-
import { MessageSwipeContent as MessageSwipeContentDefault } from '../Message/MessageItemView/MessageSwipeContent';
|
|
164
|
-
import { MessageTimestamp as MessageTimestampDefault } from '../Message/MessageItemView/MessageTimestamp';
|
|
165
|
-
import { ReactionListBottom as ReactionListBottomDefault } from '../Message/MessageItemView/ReactionList/ReactionListBottom';
|
|
166
|
-
import { ReactionListClustered as ReactionListClusteredDefault } from '../Message/MessageItemView/ReactionList/ReactionListClustered';
|
|
167
|
-
import { ReactionListCountItem as ReactionListCountItemDefault } from '../Message/MessageItemView/ReactionList/ReactionListItem';
|
|
168
|
-
import { ReactionListItem as ReactionListItemDefault } from '../Message/MessageItemView/ReactionList/ReactionListItem';
|
|
169
|
-
import { ReactionListItemWrapper as ReactionListItemWrapperDefault } from '../Message/MessageItemView/ReactionList/ReactionListItemWrapper';
|
|
170
|
-
import { ReactionListTop as ReactionListTopDefault } from '../Message/MessageItemView/ReactionList/ReactionListTop';
|
|
171
|
-
import { StreamingMessageView as DefaultStreamingMessageView } from '../Message/MessageItemView/StreamingMessageView';
|
|
172
|
-
import { AttachmentUploadPreviewList as AttachmentUploadPreviewDefault } from '../MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList';
|
|
173
|
-
import { FileUploadInProgressIndicator as FileUploadInProgressIndicatorDefault } from '../MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator';
|
|
174
|
-
import { FileUploadRetryIndicator as FileUploadRetryIndicatorDefault } from '../MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator';
|
|
175
|
-
import { FileUploadNotSupportedIndicator as FileUploadNotSupportedIndicatorDefault } from '../MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator';
|
|
176
|
-
import { ImageUploadInProgressIndicator as ImageUploadInProgressIndicatorDefault } from '../MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator';
|
|
177
|
-
import { ImageUploadRetryIndicator as ImageUploadRetryIndicatorDefault } from '../MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator';
|
|
178
|
-
import { ImageUploadNotSupportedIndicator as ImageUploadNotSupportedIndicatorDefault } from '../MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator';
|
|
179
|
-
import { AudioAttachmentUploadPreview as AudioAttachmentUploadPreviewDefault } from '../MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview';
|
|
180
|
-
import { FileAttachmentUploadPreview as FileAttachmentUploadPreviewDefault } from '../MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview';
|
|
181
|
-
import { ImageAttachmentUploadPreview as ImageAttachmentUploadPreviewDefault } from '../MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview';
|
|
182
|
-
import { VideoAttachmentUploadPreview as VideoAttachmentUploadPreviewDefault } from '../MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview';
|
|
183
|
-
import { AudioRecorder as AudioRecorderDefault } from '../MessageInput/components/AudioRecorder/AudioRecorder';
|
|
184
|
-
import { AudioRecordingButton as AudioRecordingButtonDefault } from '../MessageInput/components/AudioRecorder/AudioRecordingButton';
|
|
185
|
-
import { AudioRecordingInProgress as AudioRecordingInProgressDefault } from '../MessageInput/components/AudioRecorder/AudioRecordingInProgress';
|
|
186
|
-
import { AudioRecordingLockIndicator as AudioRecordingLockIndicatorDefault } from '../MessageInput/components/AudioRecorder/AudioRecordingLockIndicator';
|
|
187
|
-
import { AudioRecordingPreview as AudioRecordingPreviewDefault } from '../MessageInput/components/AudioRecorder/AudioRecordingPreview';
|
|
188
|
-
import { AudioRecordingWaveform as AudioRecordingWaveformDefault } from '../MessageInput/components/AudioRecorder/AudioRecordingWaveform';
|
|
189
|
-
import { InputButtons as InputButtonsDefault } from '../MessageInput/components/InputButtons';
|
|
190
|
-
import { AttachButton as AttachButtonDefault } from '../MessageInput/components/InputButtons/AttachButton';
|
|
191
|
-
import { CooldownTimer as CooldownTimerDefault } from '../MessageInput/components/OutputButtons/CooldownTimer';
|
|
192
|
-
import { SendButton as SendButtonDefault } from '../MessageInput/components/OutputButtons/SendButton';
|
|
193
|
-
import { MessageComposerLeadingView as MessageComposerLeadingViewDefault } from '../MessageInput/MessageComposerLeadingView';
|
|
194
|
-
import { MessageComposerTrailingView as MessageComposerTrailingViewDefault } from '../MessageInput/MessageComposerTrailingView';
|
|
195
|
-
import { MessageInputFooterView as MessageInputFooterViewDefault } from '../MessageInput/MessageInputFooterView';
|
|
196
|
-
import { MessageInputHeaderView as MessageInputHeaderViewDefault } from '../MessageInput/MessageInputHeaderView';
|
|
197
|
-
import { MessageInputLeadingView as MessageInputLeadingViewDefault } from '../MessageInput/MessageInputLeadingView';
|
|
198
|
-
import { MessageInputTrailingView as MessageInputTrailingViewDefault } from '../MessageInput/MessageInputTrailingView';
|
|
199
|
-
import { SendMessageDisallowedIndicator as SendMessageDisallowedIndicatorDefault } from '../MessageInput/SendMessageDisallowedIndicator';
|
|
200
|
-
import { ShowThreadMessageInChannelButton as ShowThreadMessageInChannelButtonDefault } from '../MessageInput/ShowThreadMessageInChannelButton';
|
|
201
|
-
import { StopMessageStreamingButton as DefaultStopMessageStreamingButton } from '../MessageInput/StopMessageStreamingButton';
|
|
202
|
-
import { DateHeader as DateHeaderDefault } from '../MessageList/DateHeader';
|
|
203
|
-
import { InlineDateSeparator as InlineDateSeparatorDefault } from '../MessageList/InlineDateSeparator';
|
|
204
|
-
import { InlineUnreadIndicator as InlineUnreadIndicatorDefault } from '../MessageList/InlineUnreadIndicator';
|
|
205
|
-
import { MessageList as MessageListDefault } from '../MessageList/MessageList';
|
|
206
|
-
import { MessageSystem as MessageSystemDefault } from '../MessageList/MessageSystem';
|
|
207
|
-
import { NetworkDownIndicator as NetworkDownIndicatorDefault } from '../MessageList/NetworkDownIndicator';
|
|
208
|
-
import { ScrollToBottomButton as ScrollToBottomButtonDefault } from '../MessageList/ScrollToBottomButton';
|
|
209
|
-
import { StickyHeader as StickyHeaderDefault } from '../MessageList/StickyHeader';
|
|
210
|
-
import { TypingIndicator as TypingIndicatorDefault } from '../MessageList/TypingIndicator';
|
|
211
|
-
import { TypingIndicatorContainer as TypingIndicatorContainerDefault } from '../MessageList/TypingIndicatorContainer';
|
|
212
|
-
import { UnreadMessagesNotification as UnreadMessagesNotificationDefault } from '../MessageList/UnreadMessagesNotification';
|
|
116
|
+
import type { KeyboardCompatibleViewProps } from '../KeyboardCompatibleView/KeyboardControllerAvoidingView';
|
|
213
117
|
import { Emoji } from '../MessageMenu/EmojiPickerList';
|
|
214
118
|
import { emojis } from '../MessageMenu/emojis';
|
|
215
|
-
import { MessageActionList as MessageActionListDefault } from '../MessageMenu/MessageActionList';
|
|
216
|
-
import { MessageActionListItem as MessageActionListItemDefault } from '../MessageMenu/MessageActionListItem';
|
|
217
|
-
import { MessageMenu as MessageMenuDefault } from '../MessageMenu/MessageMenu';
|
|
218
|
-
import { MessageReactionPicker as MessageReactionPickerDefault } from '../MessageMenu/MessageReactionPicker';
|
|
219
|
-
import { MessageUserReactions as MessageUserReactionsDefault } from '../MessageMenu/MessageUserReactions';
|
|
220
|
-
import { MessageUserReactionsAvatar as MessageUserReactionsAvatarDefault } from '../MessageMenu/MessageUserReactionsAvatar';
|
|
221
|
-
import { MessageUserReactionsItem as MessageUserReactionsItemDefault } from '../MessageMenu/MessageUserReactionsItem';
|
|
222
119
|
import { toUnicodeScalarString } from '../MessageMenu/utils/toUnicodeScalarString';
|
|
223
|
-
import { Reply as ReplyDefault } from '../Reply/Reply';
|
|
224
120
|
|
|
225
121
|
export type MarkReadFunctionOptions = {
|
|
226
122
|
/**
|
|
@@ -288,30 +184,47 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
|
|
|
288
184
|
| 'bottomInset'
|
|
289
185
|
| 'topInset'
|
|
290
186
|
| 'disableAttachmentPicker'
|
|
291
|
-
| 'ImageOverlaySelectedComponent'
|
|
292
187
|
| 'numberOfAttachmentPickerImageColumns'
|
|
293
|
-
| 'AttachmentPickerIOSSelectMorePhotos'
|
|
294
188
|
| 'numberOfAttachmentImagesToLoadPerCall'
|
|
295
|
-
| 'AttachmentPickerContent'
|
|
296
189
|
>
|
|
297
190
|
> &
|
|
298
191
|
Partial<
|
|
299
192
|
Pick<
|
|
300
193
|
ChannelContextValue,
|
|
301
|
-
| 'EmptyStateIndicator'
|
|
302
194
|
| 'enableMessageGroupingByUser'
|
|
303
195
|
| 'enforceUniqueReaction'
|
|
304
196
|
| 'hideStickyDateHeader'
|
|
305
197
|
| 'hideDateSeparators'
|
|
306
|
-
| 'LoadingIndicator'
|
|
307
198
|
| 'maxTimeBetweenGroupedMessages'
|
|
308
|
-
| 'NetworkDownIndicator'
|
|
309
|
-
| 'StickyHeader'
|
|
310
199
|
| 'maximumMessageLimit'
|
|
311
200
|
>
|
|
312
201
|
> &
|
|
313
202
|
Pick<ChatContextValue, 'client' | 'enableOfflineSupport' | 'isOnline'> &
|
|
314
|
-
Partial<
|
|
203
|
+
Partial<
|
|
204
|
+
Pick<
|
|
205
|
+
InputMessageInputContextValue,
|
|
206
|
+
| 'additionalTextInputProps'
|
|
207
|
+
| 'allowSendBeforeAttachmentsUpload'
|
|
208
|
+
| 'asyncMessagesLockDistance'
|
|
209
|
+
| 'asyncMessagesMinimumPressDuration'
|
|
210
|
+
| 'audioRecordingSendOnComplete'
|
|
211
|
+
| 'asyncMessagesSlideToCancelDistance'
|
|
212
|
+
| 'attachmentPickerBottomSheetHeight'
|
|
213
|
+
| 'attachmentSelectionBarHeight'
|
|
214
|
+
| 'audioRecordingEnabled'
|
|
215
|
+
| 'compressImageQuality'
|
|
216
|
+
| 'createPollOptionGap'
|
|
217
|
+
| 'doFileUploadRequest'
|
|
218
|
+
| 'handleAttachButtonPress'
|
|
219
|
+
| 'hasCameraPicker'
|
|
220
|
+
| 'hasCommands'
|
|
221
|
+
| 'hasFilePicker'
|
|
222
|
+
| 'hasImagePicker'
|
|
223
|
+
| 'messageInputFloating'
|
|
224
|
+
| 'openPollCreationDialog'
|
|
225
|
+
| 'setInputRef'
|
|
226
|
+
>
|
|
227
|
+
> &
|
|
315
228
|
Pick<TranslationContextValue, 't'> &
|
|
316
229
|
Partial<
|
|
317
230
|
Pick<PaginatedMessageListContextValue, 'messages' | 'loadingMore' | 'loadingMoreRecent'>
|
|
@@ -321,25 +234,15 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
|
|
|
321
234
|
Pick<
|
|
322
235
|
MessagesContextValue,
|
|
323
236
|
| 'additionalPressableProps'
|
|
324
|
-
| 'Attachment'
|
|
325
|
-
| 'AudioAttachment'
|
|
326
237
|
| 'customMessageSwipeAction'
|
|
327
|
-
| 'DateHeader'
|
|
328
238
|
| 'deletedMessagesVisibilityType'
|
|
329
239
|
| 'disableTypingIndicator'
|
|
330
240
|
| 'dismissKeyboardOnMessageTouch'
|
|
331
241
|
| 'enableSwipeToReply'
|
|
332
242
|
| 'urlPreviewType'
|
|
333
|
-
| 'UnsupportedAttachment'
|
|
334
|
-
| 'FileAttachment'
|
|
335
|
-
| 'FileAttachmentIcon'
|
|
336
|
-
| 'FileAttachmentGroup'
|
|
337
|
-
| 'FilePreview'
|
|
338
243
|
| 'FlatList'
|
|
339
244
|
| 'forceAlignMessages'
|
|
340
|
-
| 'Gallery'
|
|
341
245
|
| 'getMessageGroupStyle'
|
|
342
|
-
| 'Giphy'
|
|
343
246
|
| 'giphyVersion'
|
|
344
247
|
| 'handleBan'
|
|
345
248
|
| 'handleCopy'
|
|
@@ -355,77 +258,22 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
|
|
|
355
258
|
| 'handleRetry'
|
|
356
259
|
| 'handleThreadReply'
|
|
357
260
|
| 'handleBlockUser'
|
|
358
|
-
| 'InlineDateSeparator'
|
|
359
|
-
| 'InlineUnreadIndicator'
|
|
360
261
|
| 'isAttachmentEqual'
|
|
361
|
-
| 'ImageLoadingFailedIndicator'
|
|
362
|
-
| 'ImageLoadingIndicator'
|
|
363
262
|
| 'markdownRules'
|
|
364
|
-
| 'Message'
|
|
365
|
-
| 'MessageActionList'
|
|
366
|
-
| 'MessageActionListItem'
|
|
367
263
|
| 'messageActions'
|
|
368
|
-
| 'MessageAuthor'
|
|
369
|
-
| 'MessageBounce'
|
|
370
|
-
| 'MessageBlocked'
|
|
371
|
-
| 'MessageContent'
|
|
372
|
-
| 'MessageContentBottomView'
|
|
373
|
-
| 'MessageContentLeadingView'
|
|
374
264
|
| 'messageContentOrder'
|
|
375
|
-
| 'MessageContentTrailingView'
|
|
376
|
-
| 'MessageContentTopView'
|
|
377
|
-
| 'MessageDeleted'
|
|
378
|
-
| 'MessageError'
|
|
379
|
-
| 'MessageFooter'
|
|
380
|
-
| 'MessageHeader'
|
|
381
|
-
| 'MessageList'
|
|
382
|
-
| 'MessageLocation'
|
|
383
|
-
| 'MessageMenu'
|
|
384
|
-
| 'MessagePinnedHeader'
|
|
385
|
-
| 'MessageReminderHeader'
|
|
386
|
-
| 'MessageSavedForLaterHeader'
|
|
387
|
-
| 'SentToChannelHeader'
|
|
388
|
-
| 'MessageReplies'
|
|
389
|
-
| 'MessageRepliesAvatars'
|
|
390
|
-
| 'MessageSpacer'
|
|
391
|
-
| 'MessageItemView'
|
|
392
|
-
| 'MessageStatus'
|
|
393
|
-
| 'MessageSystem'
|
|
394
|
-
| 'MessageText'
|
|
395
265
|
| 'messageTextNumberOfLines'
|
|
396
|
-
| 'MessageTimestamp'
|
|
397
|
-
| 'MessageUserReactions'
|
|
398
|
-
| 'MessageSwipeContent'
|
|
399
266
|
| 'messageSwipeToReplyHitSlop'
|
|
400
267
|
| 'myMessageTheme'
|
|
401
268
|
| 'onLongPressMessage'
|
|
402
269
|
| 'onPressInMessage'
|
|
403
270
|
| 'onPressMessage'
|
|
404
|
-
| 'MessageReactionPicker'
|
|
405
|
-
| 'MessageUserReactionsAvatar'
|
|
406
|
-
| 'MessageUserReactionsItem'
|
|
407
|
-
| 'ReactionListBottom'
|
|
408
271
|
| 'reactionListPosition'
|
|
409
272
|
| 'reactionListType'
|
|
410
|
-
| 'ReactionListTop'
|
|
411
|
-
| 'ReactionListClustered'
|
|
412
|
-
| 'ReactionListItem'
|
|
413
|
-
| 'ReactionListItemWrapper'
|
|
414
|
-
| 'ReactionListCountItem'
|
|
415
|
-
| 'Reply'
|
|
416
273
|
| 'shouldShowUnreadUnderlay'
|
|
417
|
-
| 'ScrollToBottomButton'
|
|
418
274
|
| 'selectReaction'
|
|
419
275
|
| 'supportedReactions'
|
|
420
|
-
| 'TypingIndicator'
|
|
421
|
-
| 'TypingIndicatorContainer'
|
|
422
|
-
| 'UrlPreview'
|
|
423
|
-
| 'URLPreviewCompact'
|
|
424
|
-
| 'VideoThumbnail'
|
|
425
|
-
| 'PollContent'
|
|
426
276
|
| 'hasCreatePoll'
|
|
427
|
-
| 'UnreadMessagesNotification'
|
|
428
|
-
| 'StreamingMessageView'
|
|
429
277
|
>
|
|
430
278
|
> &
|
|
431
279
|
Partial<Pick<MessageContextValue, 'isMessageAIGenerated'>> &
|
|
@@ -494,31 +342,7 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
|
|
|
494
342
|
*/
|
|
495
343
|
initialScrollToFirstUnreadMessage?: boolean;
|
|
496
344
|
keyboardBehavior?: KeyboardCompatibleViewProps['behavior'];
|
|
497
|
-
/**
|
|
498
|
-
* Custom wrapper component that handles height adjustment of Channel component when keyboard is opened or dismissed
|
|
499
|
-
* Default component (accepts the same props): [KeyboardCompatibleView](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx)
|
|
500
|
-
*
|
|
501
|
-
* **Example:**
|
|
502
|
-
*
|
|
503
|
-
* ```
|
|
504
|
-
* <Channel
|
|
505
|
-
* channel={channel}
|
|
506
|
-
* KeyboardCompatibleView={(props) => {
|
|
507
|
-
* return (
|
|
508
|
-
* <KeyboardCompatibleView>
|
|
509
|
-
* {props.children}
|
|
510
|
-
* </KeyboardCompatibleView>
|
|
511
|
-
* )
|
|
512
|
-
* }}
|
|
513
|
-
* />
|
|
514
|
-
* ```
|
|
515
|
-
*/
|
|
516
|
-
KeyboardCompatibleView?: React.ComponentType<KeyboardCompatibleViewProps>;
|
|
517
345
|
keyboardVerticalOffset?: number;
|
|
518
|
-
/**
|
|
519
|
-
* Custom loading error indicator to override the Stream default
|
|
520
|
-
*/
|
|
521
|
-
LoadingErrorIndicator?: React.ComponentType<LoadingErrorProps>;
|
|
522
346
|
/**
|
|
523
347
|
* Boolean flag to enable/disable marking the channel as read on mount
|
|
524
348
|
*/
|
|
@@ -554,15 +378,7 @@ export type ChannelPropsWithContext = Pick<ChannelContextValue, 'channel'> &
|
|
|
554
378
|
* is sent).
|
|
555
379
|
*/
|
|
556
380
|
initializeOnMount?: boolean;
|
|
557
|
-
}
|
|
558
|
-
Pick<
|
|
559
|
-
InputMessageInputContextValue,
|
|
560
|
-
| 'openPollCreationDialog'
|
|
561
|
-
| 'CreatePollContent'
|
|
562
|
-
| 'StopMessageStreamingButton'
|
|
563
|
-
| 'allowSendBeforeAttachmentsUpload'
|
|
564
|
-
>
|
|
565
|
-
>;
|
|
381
|
+
};
|
|
566
382
|
|
|
567
383
|
const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) => {
|
|
568
384
|
const {
|
|
@@ -576,24 +392,9 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
576
392
|
asyncMessagesMinimumPressDuration = 500,
|
|
577
393
|
asyncMessagesSlideToCancelDistance = 75,
|
|
578
394
|
audioRecordingSendOnComplete = false,
|
|
579
|
-
AttachButton = AttachButtonDefault,
|
|
580
|
-
Attachment = AttachmentDefault,
|
|
581
395
|
attachmentPickerBottomSheetHeight = disableAttachmentPicker ? 72 : 333,
|
|
582
|
-
AttachmentPickerSelectionBar = DefaultAttachmentPickerSelectionBar,
|
|
583
396
|
attachmentSelectionBarHeight = 72,
|
|
584
|
-
AudioAttachment = AudioAttachmentDefault,
|
|
585
|
-
AudioAttachmentUploadPreview = AudioAttachmentUploadPreviewDefault,
|
|
586
|
-
AudioRecorder = AudioRecorderDefault,
|
|
587
397
|
audioRecordingEnabled = false,
|
|
588
|
-
AudioRecordingInProgress = AudioRecordingInProgressDefault,
|
|
589
|
-
AudioRecordingLockIndicator = AudioRecordingLockIndicatorDefault,
|
|
590
|
-
AudioRecordingPreview = AudioRecordingPreviewDefault,
|
|
591
|
-
AudioRecordingWaveform = AudioRecordingWaveformDefault,
|
|
592
|
-
AutoCompleteSuggestionHeader = AutoCompleteSuggestionHeaderDefault,
|
|
593
|
-
AutoCompleteSuggestionItem = AutoCompleteSuggestionItemDefault,
|
|
594
|
-
AutoCompleteSuggestionList = AutoCompleteSuggestionListDefault,
|
|
595
|
-
AttachmentUploadPreviewList = AttachmentUploadPreviewDefault,
|
|
596
|
-
ImageOverlaySelectedComponent = DefaultImageOverlaySelectedComponent,
|
|
597
398
|
numberOfAttachmentImagesToLoadPerCall = 25,
|
|
598
399
|
numberOfAttachmentPickerImageColumns = 3,
|
|
599
400
|
giphyVersion = 'fixed_height',
|
|
@@ -602,11 +403,8 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
602
403
|
children,
|
|
603
404
|
client,
|
|
604
405
|
compressImageQuality,
|
|
605
|
-
CooldownTimer = CooldownTimerDefault,
|
|
606
|
-
CreatePollContent,
|
|
607
406
|
createPollOptionGap,
|
|
608
407
|
customMessageSwipeAction,
|
|
609
|
-
DateHeader = DateHeaderDefault,
|
|
610
408
|
deletedMessagesVisibilityType = 'always',
|
|
611
409
|
disableKeyboardCompatibleView = false,
|
|
612
410
|
disableTypingIndicator,
|
|
@@ -616,28 +414,14 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
616
414
|
doSendMessageRequest,
|
|
617
415
|
preSendMessageRequest,
|
|
618
416
|
doUpdateMessageRequest,
|
|
619
|
-
EmptyStateIndicator = EmptyStateIndicatorDefault,
|
|
620
417
|
enableMessageGroupingByUser = true,
|
|
621
418
|
enableOfflineSupport,
|
|
622
419
|
allowSendBeforeAttachmentsUpload = enableOfflineSupport,
|
|
623
420
|
enableSwipeToReply = true,
|
|
624
421
|
enforceUniqueReaction = false,
|
|
625
|
-
FileAttachment = FileAttachmentDefault,
|
|
626
|
-
FileAttachmentUploadPreview = FileAttachmentUploadPreviewDefault,
|
|
627
|
-
FileAttachmentGroup = FileAttachmentGroupDefault,
|
|
628
|
-
FileAttachmentIcon = FileIconDefault,
|
|
629
|
-
FilePreview = FilePreviewDefault,
|
|
630
|
-
FileUploadInProgressIndicator = FileUploadInProgressIndicatorDefault,
|
|
631
|
-
FileUploadRetryIndicator = FileUploadRetryIndicatorDefault,
|
|
632
|
-
FileUploadNotSupportedIndicator = FileUploadNotSupportedIndicatorDefault,
|
|
633
|
-
ImageUploadInProgressIndicator = ImageUploadInProgressIndicatorDefault,
|
|
634
|
-
ImageUploadRetryIndicator = ImageUploadRetryIndicatorDefault,
|
|
635
|
-
ImageUploadNotSupportedIndicator = ImageUploadNotSupportedIndicatorDefault,
|
|
636
422
|
FlatList = NativeHandlers.FlatList,
|
|
637
423
|
forceAlignMessages,
|
|
638
|
-
Gallery = GalleryDefault,
|
|
639
424
|
getMessageGroupStyle,
|
|
640
|
-
Giphy = GiphyDefault,
|
|
641
425
|
handleAttachButtonPress,
|
|
642
426
|
handleBan,
|
|
643
427
|
handleCopy,
|
|
@@ -661,39 +445,17 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
661
445
|
hasImagePicker = isImagePickerAvailable() || isImageMediaLibraryAvailable(),
|
|
662
446
|
hideDateSeparators = false,
|
|
663
447
|
hideStickyDateHeader = false,
|
|
664
|
-
ImageAttachmentUploadPreview = ImageAttachmentUploadPreviewDefault,
|
|
665
|
-
ImageLoadingFailedIndicator = ImageLoadingFailedIndicatorDefault,
|
|
666
|
-
ImageLoadingIndicator = ImageLoadingIndicatorDefault,
|
|
667
448
|
initialScrollToFirstUnreadMessage = false,
|
|
668
|
-
InlineDateSeparator = InlineDateSeparatorDefault,
|
|
669
|
-
InlineUnreadIndicator = InlineUnreadIndicatorDefault,
|
|
670
|
-
Input,
|
|
671
|
-
InputView = InputViewDefault,
|
|
672
|
-
InputButtons = InputButtonsDefault,
|
|
673
|
-
MessageComposerLeadingView = MessageComposerLeadingViewDefault,
|
|
674
|
-
MessageComposerTrailingView = MessageComposerTrailingViewDefault,
|
|
675
449
|
isAttachmentEqual,
|
|
676
450
|
isMessageAIGenerated = () => false,
|
|
677
451
|
keyboardBehavior,
|
|
678
|
-
KeyboardCompatibleView = KeyboardCompatibleViewDefault,
|
|
679
452
|
keyboardVerticalOffset,
|
|
680
|
-
LoadingErrorIndicator = LoadingErrorIndicatorDefault,
|
|
681
|
-
LoadingIndicator = LoadingIndicatorDefault,
|
|
682
453
|
loadingMore: loadingMoreProp,
|
|
683
454
|
loadingMoreRecent: loadingMoreRecentProp,
|
|
684
455
|
markdownRules,
|
|
685
456
|
markReadOnMount = true,
|
|
686
457
|
maxTimeBetweenGroupedMessages,
|
|
687
|
-
Message = MessageDefault,
|
|
688
|
-
MessageActionList = MessageActionListDefault,
|
|
689
|
-
MessageActionListItem = MessageActionListItemDefault,
|
|
690
458
|
messageActions,
|
|
691
|
-
MessageAuthor = MessageAuthorDefault,
|
|
692
|
-
MessageBlocked = MessageBlockedDefault,
|
|
693
|
-
MessageBounce = MessageBounceDefault,
|
|
694
|
-
MessageContent = MessageContentDefault,
|
|
695
|
-
MessageContentBottomView,
|
|
696
|
-
MessageContentLeadingView,
|
|
697
459
|
messageContentOrder = [
|
|
698
460
|
'quoted_reply',
|
|
699
461
|
'gallery',
|
|
@@ -704,42 +466,11 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
704
466
|
'text',
|
|
705
467
|
'location',
|
|
706
468
|
],
|
|
707
|
-
MessageContentTrailingView,
|
|
708
|
-
MessageContentTopView,
|
|
709
|
-
MessageDeleted = MessageDeletedDefault,
|
|
710
|
-
MessageError = MessageErrorDefault,
|
|
711
469
|
messageInputFloating = false,
|
|
712
|
-
MessageInputFooterView = MessageInputFooterViewDefault,
|
|
713
|
-
MessageInputHeaderView = MessageInputHeaderViewDefault,
|
|
714
|
-
MessageInputLeadingView = MessageInputLeadingViewDefault,
|
|
715
|
-
MessageInputTrailingView = MessageInputTrailingViewDefault,
|
|
716
|
-
MessageFooter = MessageFooterDefault,
|
|
717
|
-
MessageHeader = MessageHeaderDefault,
|
|
718
470
|
messageId,
|
|
719
|
-
MessageList = MessageListDefault,
|
|
720
|
-
MessageLocation,
|
|
721
|
-
MessageMenu = MessageMenuDefault,
|
|
722
|
-
MessagePinnedHeader = MessagePinnedHeaderDefault,
|
|
723
|
-
MessageReminderHeader = MessageReminderHeaderDefault,
|
|
724
|
-
MessageSavedForLaterHeader = MessageSavedForLaterHeaderDefault,
|
|
725
|
-
SentToChannelHeader = SentToChannelHeaderDefault,
|
|
726
|
-
MessageReactionPicker = MessageReactionPickerDefault,
|
|
727
|
-
MessageReplies = MessageRepliesDefault,
|
|
728
|
-
MessageRepliesAvatars = MessageRepliesAvatarsDefault,
|
|
729
|
-
MessageSpacer,
|
|
730
|
-
MessageItemView = MessageItemViewDefault,
|
|
731
|
-
MessageStatus = MessageStatusDefault,
|
|
732
|
-
MessageSwipeContent = MessageSwipeContentDefault,
|
|
733
471
|
messageSwipeToReplyHitSlop,
|
|
734
|
-
MessageSystem = MessageSystemDefault,
|
|
735
|
-
MessageText,
|
|
736
472
|
messageTextNumberOfLines,
|
|
737
|
-
MessageTimestamp = MessageTimestampDefault,
|
|
738
|
-
MessageUserReactions = MessageUserReactionsDefault,
|
|
739
|
-
MessageUserReactionsAvatar = MessageUserReactionsAvatarDefault,
|
|
740
|
-
MessageUserReactionsItem = MessageUserReactionsItemDefault,
|
|
741
473
|
myMessageTheme,
|
|
742
|
-
NetworkDownIndicator = NetworkDownIndicatorDefault,
|
|
743
474
|
// TODO: Think about this one
|
|
744
475
|
newMessageStateUpdateThrottleInterval = defaultThrottleInterval,
|
|
745
476
|
onLongPressMessage,
|
|
@@ -748,56 +479,30 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
748
479
|
onAlsoSentToChannelHeaderPress,
|
|
749
480
|
openPollCreationDialog,
|
|
750
481
|
overrideOwnCapabilities,
|
|
751
|
-
PollContent,
|
|
752
|
-
ReactionListBottom = ReactionListBottomDefault,
|
|
753
482
|
reactionListPosition = 'top',
|
|
754
483
|
reactionListType = 'clustered',
|
|
755
|
-
ReactionListTop = ReactionListTopDefault,
|
|
756
|
-
ReactionListClustered = ReactionListClusteredDefault,
|
|
757
|
-
ReactionListItem = ReactionListItemDefault,
|
|
758
|
-
ReactionListItemWrapper = ReactionListItemWrapperDefault,
|
|
759
|
-
ReactionListCountItem = ReactionListCountItemDefault,
|
|
760
|
-
Reply = ReplyDefault,
|
|
761
|
-
ScrollToBottomButton = ScrollToBottomButtonDefault,
|
|
762
484
|
selectReaction,
|
|
763
|
-
SendButton = SendButtonDefault,
|
|
764
|
-
SendMessageDisallowedIndicator = SendMessageDisallowedIndicatorDefault,
|
|
765
485
|
setInputRef,
|
|
766
486
|
setThreadMessages,
|
|
767
487
|
shouldShowUnreadUnderlay = true,
|
|
768
488
|
shouldSyncChannel,
|
|
769
|
-
ShowThreadMessageInChannelButton = ShowThreadMessageInChannelButtonDefault,
|
|
770
|
-
StartAudioRecordingButton = AudioRecordingButtonDefault,
|
|
771
489
|
stateUpdateThrottleInterval = defaultThrottleInterval,
|
|
772
|
-
StickyHeader = StickyHeaderDefault,
|
|
773
|
-
StopMessageStreamingButton: StopMessageStreamingButtonOverride,
|
|
774
|
-
StreamingMessageView = DefaultStreamingMessageView,
|
|
775
490
|
supportedReactions = reactionData,
|
|
776
491
|
t,
|
|
777
492
|
thread: threadFromProps,
|
|
778
493
|
threadList,
|
|
779
494
|
threadMessages,
|
|
780
495
|
topInset,
|
|
781
|
-
TypingIndicator = TypingIndicatorDefault,
|
|
782
|
-
TypingIndicatorContainer = TypingIndicatorContainerDefault,
|
|
783
|
-
UnreadMessagesNotification = UnreadMessagesNotificationDefault,
|
|
784
|
-
UrlPreview = URLPreviewDefault,
|
|
785
|
-
URLPreviewCompact = URLPreviewCompactDefault,
|
|
786
|
-
VideoAttachmentUploadPreview = VideoAttachmentUploadPreviewDefault,
|
|
787
|
-
VideoThumbnail = VideoThumbnailDefault,
|
|
788
496
|
isOnline,
|
|
789
497
|
maximumMessageLimit,
|
|
790
498
|
initializeOnMount = true,
|
|
791
|
-
AttachmentPickerContent = DefaultAttachmentPickerContent,
|
|
792
499
|
urlPreviewType = 'full',
|
|
793
|
-
UnsupportedAttachment = UnsupportedAttachmentDefault,
|
|
794
500
|
} = props;
|
|
795
501
|
|
|
502
|
+
const components = useComponentsContext();
|
|
503
|
+
const { KeyboardCompatibleView, LoadingErrorIndicator } = components;
|
|
504
|
+
|
|
796
505
|
const { thread: threadProps, threadInstance } = threadFromProps;
|
|
797
|
-
const StopMessageStreamingButton =
|
|
798
|
-
StopMessageStreamingButtonOverride === undefined
|
|
799
|
-
? DefaultStopMessageStreamingButton
|
|
800
|
-
: StopMessageStreamingButtonOverride;
|
|
801
506
|
|
|
802
507
|
const styles = useStyles();
|
|
803
508
|
const [deleted, setDeleted] = useState<boolean>(false);
|
|
@@ -1815,13 +1520,10 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1815
1520
|
disableAttachmentPicker,
|
|
1816
1521
|
openPicker: handleOpenPicker,
|
|
1817
1522
|
topInset,
|
|
1818
|
-
ImageOverlaySelectedComponent,
|
|
1819
|
-
AttachmentPickerSelectionBar,
|
|
1820
1523
|
numberOfAttachmentPickerImageColumns,
|
|
1821
1524
|
attachmentPickerBottomSheetHeight,
|
|
1822
1525
|
attachmentSelectionBarHeight,
|
|
1823
1526
|
numberOfAttachmentImagesToLoadPerCall,
|
|
1824
|
-
AttachmentPickerContent,
|
|
1825
1527
|
}),
|
|
1826
1528
|
[
|
|
1827
1529
|
bottomInset,
|
|
@@ -1830,13 +1532,10 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1830
1532
|
disableAttachmentPicker,
|
|
1831
1533
|
handleOpenPicker,
|
|
1832
1534
|
topInset,
|
|
1833
|
-
ImageOverlaySelectedComponent,
|
|
1834
|
-
AttachmentPickerSelectionBar,
|
|
1835
1535
|
numberOfAttachmentPickerImageColumns,
|
|
1836
1536
|
attachmentPickerBottomSheetHeight,
|
|
1837
1537
|
attachmentSelectionBarHeight,
|
|
1838
1538
|
numberOfAttachmentImagesToLoadPerCall,
|
|
1839
|
-
AttachmentPickerContent,
|
|
1840
1539
|
],
|
|
1841
1540
|
);
|
|
1842
1541
|
|
|
@@ -1849,7 +1548,6 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1849
1548
|
channel,
|
|
1850
1549
|
channelUnreadStateStore,
|
|
1851
1550
|
disabled: !!channel?.data?.frozen,
|
|
1852
|
-
EmptyStateIndicator,
|
|
1853
1551
|
enableMessageGroupingByUser,
|
|
1854
1552
|
enforceUniqueReaction,
|
|
1855
1553
|
error,
|
|
@@ -1861,19 +1559,16 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1861
1559
|
loadChannelAroundMessage,
|
|
1862
1560
|
loadChannelAtFirstUnreadMessage,
|
|
1863
1561
|
loading: channelMessagesState.loading,
|
|
1864
|
-
LoadingIndicator,
|
|
1865
1562
|
markRead,
|
|
1866
1563
|
maximumMessageLimit,
|
|
1867
1564
|
maxTimeBetweenGroupedMessages,
|
|
1868
1565
|
members: channelState.members ?? {},
|
|
1869
|
-
NetworkDownIndicator,
|
|
1870
1566
|
read: channelState.read ?? {},
|
|
1871
1567
|
reloadChannel,
|
|
1872
1568
|
scrollToFirstUnreadThreshold,
|
|
1873
1569
|
setChannelUnreadState,
|
|
1874
1570
|
setLastRead,
|
|
1875
1571
|
setTargetedMessage,
|
|
1876
|
-
StickyHeader,
|
|
1877
1572
|
targetedMessage,
|
|
1878
1573
|
threadList,
|
|
1879
1574
|
uploadAbortControllerRef,
|
|
@@ -1901,61 +1596,24 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1901
1596
|
asyncMessagesMinimumPressDuration,
|
|
1902
1597
|
audioRecordingSendOnComplete,
|
|
1903
1598
|
asyncMessagesSlideToCancelDistance,
|
|
1904
|
-
AttachButton,
|
|
1905
1599
|
attachmentPickerBottomSheetHeight,
|
|
1906
|
-
AttachmentPickerSelectionBar,
|
|
1907
1600
|
attachmentSelectionBarHeight,
|
|
1908
|
-
AttachmentUploadPreviewList,
|
|
1909
|
-
AudioAttachmentUploadPreview,
|
|
1910
|
-
AudioRecorder,
|
|
1911
1601
|
audioRecordingEnabled,
|
|
1912
|
-
AudioRecordingInProgress,
|
|
1913
|
-
AudioRecordingLockIndicator,
|
|
1914
|
-
AudioRecordingPreview,
|
|
1915
|
-
AudioRecordingWaveform,
|
|
1916
|
-
AutoCompleteSuggestionHeader,
|
|
1917
|
-
AutoCompleteSuggestionItem,
|
|
1918
|
-
AutoCompleteSuggestionList,
|
|
1919
1602
|
channelId,
|
|
1920
1603
|
compressImageQuality,
|
|
1921
|
-
CooldownTimer,
|
|
1922
|
-
CreatePollContent,
|
|
1923
1604
|
createPollOptionGap,
|
|
1924
1605
|
doFileUploadRequest,
|
|
1925
1606
|
editMessage,
|
|
1926
|
-
FileAttachmentUploadPreview,
|
|
1927
|
-
FileUploadInProgressIndicator,
|
|
1928
|
-
FileUploadRetryIndicator,
|
|
1929
|
-
FileUploadNotSupportedIndicator,
|
|
1930
|
-
ImageUploadInProgressIndicator,
|
|
1931
|
-
ImageUploadRetryIndicator,
|
|
1932
|
-
ImageUploadNotSupportedIndicator,
|
|
1933
1607
|
handleAttachButtonPress,
|
|
1934
1608
|
hasCameraPicker,
|
|
1935
1609
|
hasCommands: hasCommands ?? !!clientChannelConfig?.commands?.length,
|
|
1936
1610
|
hasFilePicker,
|
|
1937
1611
|
hasImagePicker,
|
|
1938
|
-
ImageAttachmentUploadPreview,
|
|
1939
|
-
Input,
|
|
1940
|
-
InputView,
|
|
1941
|
-
InputButtons,
|
|
1942
|
-
MessageComposerLeadingView,
|
|
1943
|
-
MessageComposerTrailingView,
|
|
1944
1612
|
messageInputFloating,
|
|
1945
1613
|
messageInputHeightStore,
|
|
1946
|
-
MessageInputFooterView,
|
|
1947
|
-
MessageInputHeaderView,
|
|
1948
|
-
MessageInputLeadingView,
|
|
1949
|
-
MessageInputTrailingView,
|
|
1950
1614
|
openPollCreationDialog,
|
|
1951
|
-
SendButton,
|
|
1952
1615
|
sendMessage,
|
|
1953
|
-
SendMessageDisallowedIndicator,
|
|
1954
1616
|
setInputRef,
|
|
1955
|
-
ShowThreadMessageInChannelButton,
|
|
1956
|
-
StartAudioRecordingButton,
|
|
1957
|
-
StopMessageStreamingButton,
|
|
1958
|
-
VideoAttachmentUploadPreview,
|
|
1959
1617
|
});
|
|
1960
1618
|
|
|
1961
1619
|
const messageListContext = useCreatePaginatedMessageListContext({
|
|
@@ -1975,11 +1633,8 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1975
1633
|
|
|
1976
1634
|
const messagesContext = useCreateMessagesContext({
|
|
1977
1635
|
additionalPressableProps,
|
|
1978
|
-
Attachment,
|
|
1979
|
-
AudioAttachment,
|
|
1980
1636
|
channelId,
|
|
1981
1637
|
customMessageSwipeAction,
|
|
1982
|
-
DateHeader,
|
|
1983
1638
|
deletedMessagesVisibilityType,
|
|
1984
1639
|
deleteMessage,
|
|
1985
1640
|
deleteReaction,
|
|
@@ -1987,15 +1642,9 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
1987
1642
|
dismissKeyboardOnMessageTouch,
|
|
1988
1643
|
enableMessageGroupingByUser,
|
|
1989
1644
|
enableSwipeToReply,
|
|
1990
|
-
FileAttachment,
|
|
1991
|
-
FileAttachmentGroup,
|
|
1992
|
-
FileAttachmentIcon,
|
|
1993
|
-
FilePreview,
|
|
1994
1645
|
FlatList,
|
|
1995
1646
|
forceAlignMessages,
|
|
1996
|
-
Gallery,
|
|
1997
1647
|
getMessageGroupStyle,
|
|
1998
|
-
Giphy,
|
|
1999
1648
|
giphyVersion,
|
|
2000
1649
|
handleBan,
|
|
2001
1650
|
handleCopy,
|
|
@@ -2013,85 +1662,29 @@ const ChannelWithContext = (props: PropsWithChildren<ChannelPropsWithContext>) =
|
|
|
2013
1662
|
handleBlockUser,
|
|
2014
1663
|
hasCreatePoll:
|
|
2015
1664
|
hasCreatePoll === undefined ? pollCreationEnabled : hasCreatePoll && pollCreationEnabled,
|
|
2016
|
-
ImageLoadingFailedIndicator,
|
|
2017
|
-
ImageLoadingIndicator,
|
|
2018
1665
|
initialScrollToFirstUnreadMessage: !messageId && initialScrollToFirstUnreadMessage, // when messageId is set, we scroll to the messageId instead of first unread
|
|
2019
|
-
InlineDateSeparator,
|
|
2020
|
-
InlineUnreadIndicator,
|
|
2021
1666
|
isAttachmentEqual,
|
|
2022
1667
|
isMessageAIGenerated,
|
|
2023
1668
|
markdownRules,
|
|
2024
|
-
Message,
|
|
2025
|
-
MessageActionList,
|
|
2026
|
-
MessageActionListItem,
|
|
2027
1669
|
messageActions,
|
|
2028
|
-
MessageAuthor,
|
|
2029
|
-
MessageBlocked,
|
|
2030
|
-
MessageBounce,
|
|
2031
|
-
MessageContent,
|
|
2032
|
-
MessageContentBottomView,
|
|
2033
|
-
MessageContentLeadingView,
|
|
2034
1670
|
messageContentOrder,
|
|
2035
|
-
MessageContentTrailingView,
|
|
2036
|
-
MessageContentTopView,
|
|
2037
|
-
MessageDeleted,
|
|
2038
|
-
MessageError,
|
|
2039
|
-
MessageFooter,
|
|
2040
|
-
MessageHeader,
|
|
2041
|
-
MessageList,
|
|
2042
|
-
MessageLocation,
|
|
2043
|
-
MessageMenu,
|
|
2044
|
-
MessagePinnedHeader,
|
|
2045
|
-
MessageReminderHeader,
|
|
2046
|
-
MessageSavedForLaterHeader,
|
|
2047
|
-
SentToChannelHeader,
|
|
2048
|
-
MessageReactionPicker,
|
|
2049
|
-
MessageReplies,
|
|
2050
|
-
MessageRepliesAvatars,
|
|
2051
|
-
MessageSpacer,
|
|
2052
|
-
MessageItemView,
|
|
2053
|
-
MessageStatus,
|
|
2054
|
-
MessageSwipeContent,
|
|
2055
1671
|
messageSwipeToReplyHitSlop,
|
|
2056
|
-
MessageSystem,
|
|
2057
|
-
MessageText,
|
|
2058
1672
|
messageTextNumberOfLines,
|
|
2059
|
-
MessageTimestamp,
|
|
2060
|
-
MessageUserReactions,
|
|
2061
|
-
MessageUserReactionsAvatar,
|
|
2062
|
-
MessageUserReactionsItem,
|
|
2063
1673
|
myMessageTheme,
|
|
2064
1674
|
onLongPressMessage,
|
|
2065
1675
|
onPressInMessage,
|
|
2066
1676
|
onPressMessage,
|
|
2067
|
-
PollContent,
|
|
2068
|
-
ReactionListBottom,
|
|
2069
1677
|
reactionListPosition,
|
|
2070
1678
|
reactionListType,
|
|
2071
|
-
ReactionListTop,
|
|
2072
|
-
ReactionListClustered,
|
|
2073
|
-
ReactionListItem,
|
|
2074
|
-
ReactionListItemWrapper,
|
|
2075
|
-
ReactionListCountItem,
|
|
2076
1679
|
removeMessage,
|
|
2077
|
-
Reply,
|
|
2078
1680
|
retrySendMessage,
|
|
2079
|
-
ScrollToBottomButton,
|
|
2080
1681
|
selectReaction,
|
|
2081
1682
|
sendReaction,
|
|
2082
1683
|
shouldShowUnreadUnderlay,
|
|
2083
|
-
StreamingMessageView,
|
|
2084
1684
|
supportedReactions,
|
|
2085
1685
|
targetedMessage,
|
|
2086
|
-
TypingIndicator,
|
|
2087
|
-
TypingIndicatorContainer,
|
|
2088
|
-
UnreadMessagesNotification,
|
|
2089
1686
|
updateMessage,
|
|
2090
|
-
UrlPreview,
|
|
2091
|
-
URLPreviewCompact,
|
|
2092
|
-
VideoThumbnail,
|
|
2093
1687
|
urlPreviewType,
|
|
2094
|
-
UnsupportedAttachment,
|
|
2095
1688
|
});
|
|
2096
1689
|
|
|
2097
1690
|
const threadContext = useCreateThreadContext({
|