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
|
@@ -9,75 +9,38 @@ export const useCreateMessageInputContext = ({
|
|
|
9
9
|
asyncMessagesMinimumPressDuration,
|
|
10
10
|
asyncMessagesSlideToCancelDistance,
|
|
11
11
|
audioRecordingSendOnComplete,
|
|
12
|
-
AttachButton,
|
|
13
12
|
attachmentPickerBottomSheetHeight,
|
|
14
|
-
AttachmentPickerSelectionBar,
|
|
15
13
|
attachmentSelectionBarHeight,
|
|
16
|
-
AttachmentUploadPreviewList,
|
|
17
|
-
AudioAttachmentUploadPreview,
|
|
18
|
-
AudioRecorder,
|
|
19
14
|
audioRecordingEnabled,
|
|
20
|
-
AudioRecordingInProgress,
|
|
21
|
-
AudioRecordingLockIndicator,
|
|
22
|
-
AudioRecordingPreview,
|
|
23
|
-
AudioRecordingWaveform,
|
|
24
|
-
AutoCompleteSuggestionHeader,
|
|
25
|
-
AutoCompleteSuggestionItem,
|
|
26
|
-
AutoCompleteSuggestionList,
|
|
27
15
|
closeAttachmentPicker,
|
|
28
16
|
closePollCreationDialog,
|
|
29
17
|
compressImageQuality,
|
|
30
|
-
CooldownTimer,
|
|
31
|
-
CreatePollContent,
|
|
32
18
|
createPollOptionGap,
|
|
33
19
|
editMessage,
|
|
34
|
-
FileAttachmentUploadPreview,
|
|
35
|
-
FileUploadInProgressIndicator,
|
|
36
|
-
FileUploadRetryIndicator,
|
|
37
|
-
FileUploadNotSupportedIndicator,
|
|
38
|
-
ImageUploadInProgressIndicator,
|
|
39
|
-
ImageUploadRetryIndicator,
|
|
40
|
-
ImageUploadNotSupportedIndicator,
|
|
41
20
|
handleAttachButtonPress,
|
|
42
21
|
hasCameraPicker,
|
|
43
22
|
hasCommands,
|
|
44
23
|
hasFilePicker,
|
|
45
24
|
hasImagePicker,
|
|
46
|
-
ImageAttachmentUploadPreview,
|
|
47
|
-
Input,
|
|
48
|
-
InputView,
|
|
49
25
|
inputBoxRef,
|
|
50
|
-
InputButtons,
|
|
51
|
-
MessageComposerLeadingView,
|
|
52
|
-
MessageComposerTrailingView,
|
|
53
26
|
messageInputFloating,
|
|
54
27
|
messageInputHeightStore,
|
|
55
|
-
MessageInputFooterView,
|
|
56
|
-
MessageInputHeaderView,
|
|
57
|
-
MessageInputLeadingView,
|
|
58
|
-
MessageInputTrailingView,
|
|
59
28
|
openAttachmentPicker,
|
|
60
29
|
openPollCreationDialog,
|
|
61
30
|
pickAndUploadImageFromNativePicker,
|
|
62
31
|
pickFile,
|
|
63
|
-
SendButton,
|
|
64
32
|
sendMessage,
|
|
65
|
-
SendMessageDisallowedIndicator,
|
|
66
33
|
setInputBoxRef,
|
|
67
34
|
setInputRef,
|
|
68
35
|
showPollCreationDialog,
|
|
69
|
-
ShowThreadMessageInChannelButton,
|
|
70
|
-
StartAudioRecordingButton,
|
|
71
|
-
StopMessageStreamingButton,
|
|
72
36
|
takeAndUploadImage,
|
|
73
|
-
thread,
|
|
74
37
|
uploadNewFile,
|
|
75
|
-
VideoAttachmentUploadPreview,
|
|
76
38
|
audioRecorderManager,
|
|
77
39
|
startVoiceRecording,
|
|
78
40
|
deleteVoiceRecording,
|
|
79
41
|
uploadVoiceRecording,
|
|
80
42
|
stopVoiceRecording,
|
|
43
|
+
thread,
|
|
81
44
|
}: MessageInputContextValue & Pick<ThreadContextValue, 'thread'>) => {
|
|
82
45
|
const threadId = thread?.id;
|
|
83
46
|
|
|
@@ -88,69 +51,32 @@ export const useCreateMessageInputContext = ({
|
|
|
88
51
|
asyncMessagesMinimumPressDuration,
|
|
89
52
|
asyncMessagesSlideToCancelDistance,
|
|
90
53
|
audioRecordingSendOnComplete,
|
|
91
|
-
AttachButton,
|
|
92
54
|
attachmentPickerBottomSheetHeight,
|
|
93
|
-
AttachmentPickerSelectionBar,
|
|
94
55
|
attachmentSelectionBarHeight,
|
|
95
|
-
AttachmentUploadPreviewList,
|
|
96
|
-
AudioAttachmentUploadPreview,
|
|
97
|
-
AudioRecorder,
|
|
98
56
|
audioRecordingEnabled,
|
|
99
|
-
AudioRecordingInProgress,
|
|
100
|
-
AudioRecordingLockIndicator,
|
|
101
|
-
AudioRecordingPreview,
|
|
102
|
-
AudioRecordingWaveform,
|
|
103
|
-
AutoCompleteSuggestionHeader,
|
|
104
|
-
AutoCompleteSuggestionItem,
|
|
105
|
-
AutoCompleteSuggestionList,
|
|
106
57
|
closeAttachmentPicker,
|
|
107
58
|
closePollCreationDialog,
|
|
108
59
|
compressImageQuality,
|
|
109
|
-
CooldownTimer,
|
|
110
|
-
CreatePollContent,
|
|
111
60
|
createPollOptionGap,
|
|
112
61
|
editMessage,
|
|
113
|
-
FileAttachmentUploadPreview,
|
|
114
|
-
FileUploadInProgressIndicator,
|
|
115
|
-
FileUploadRetryIndicator,
|
|
116
|
-
FileUploadNotSupportedIndicator,
|
|
117
|
-
ImageUploadInProgressIndicator,
|
|
118
|
-
ImageUploadRetryIndicator,
|
|
119
|
-
ImageUploadNotSupportedIndicator,
|
|
120
62
|
handleAttachButtonPress,
|
|
121
63
|
hasCameraPicker,
|
|
122
64
|
hasCommands,
|
|
123
65
|
hasFilePicker,
|
|
124
66
|
hasImagePicker,
|
|
125
|
-
ImageAttachmentUploadPreview,
|
|
126
|
-
Input,
|
|
127
|
-
InputView,
|
|
128
67
|
inputBoxRef,
|
|
129
|
-
InputButtons,
|
|
130
|
-
MessageComposerLeadingView,
|
|
131
|
-
MessageComposerTrailingView,
|
|
132
68
|
messageInputFloating,
|
|
133
69
|
messageInputHeightStore,
|
|
134
|
-
MessageInputFooterView,
|
|
135
|
-
MessageInputHeaderView,
|
|
136
|
-
MessageInputLeadingView,
|
|
137
|
-
MessageInputTrailingView,
|
|
138
70
|
openAttachmentPicker,
|
|
139
71
|
openPollCreationDialog,
|
|
140
72
|
pickAndUploadImageFromNativePicker,
|
|
141
73
|
pickFile,
|
|
142
|
-
SendButton,
|
|
143
74
|
sendMessage,
|
|
144
|
-
SendMessageDisallowedIndicator,
|
|
145
75
|
setInputBoxRef,
|
|
146
76
|
setInputRef,
|
|
147
77
|
showPollCreationDialog,
|
|
148
|
-
ShowThreadMessageInChannelButton,
|
|
149
|
-
StartAudioRecordingButton,
|
|
150
|
-
StopMessageStreamingButton,
|
|
151
78
|
takeAndUploadImage,
|
|
152
79
|
uploadNewFile,
|
|
153
|
-
VideoAttachmentUploadPreview,
|
|
154
80
|
audioRecorderManager,
|
|
155
81
|
startVoiceRecording,
|
|
156
82
|
deleteVoiceRecording,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren, useContext } from 'react';
|
|
2
2
|
|
|
3
|
-
import { PressableProps,
|
|
3
|
+
import { PressableProps, ViewProps } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import type {
|
|
6
6
|
Attachment,
|
|
@@ -12,79 +12,14 @@ import type {
|
|
|
12
12
|
MessageResponse,
|
|
13
13
|
} from 'stream-chat';
|
|
14
14
|
|
|
15
|
-
import type {
|
|
16
|
-
InlineUnreadIndicatorProps,
|
|
17
|
-
PollContentProps,
|
|
18
|
-
StreamingMessageViewProps,
|
|
19
|
-
} from '../../components';
|
|
20
|
-
import type { AttachmentProps } from '../../components/Attachment/Attachment';
|
|
21
|
-
import type { AudioAttachmentProps } from '../../components/Attachment/Audio';
|
|
22
|
-
import type { FileAttachmentProps } from '../../components/Attachment/FileAttachment';
|
|
23
|
-
import type { FileAttachmentGroupProps } from '../../components/Attachment/FileAttachmentGroup';
|
|
24
|
-
import type { FileIconProps } from '../../components/Attachment/FileIcon';
|
|
25
|
-
import { FilePreviewProps } from '../../components/Attachment/FilePreview';
|
|
26
|
-
import type { GalleryProps } from '../../components/Attachment/Gallery';
|
|
27
|
-
import type { GiphyProps } from '../../components/Attachment/Giphy';
|
|
28
|
-
import type { ImageLoadingFailedIndicatorProps } from '../../components/Attachment/ImageLoadingFailedIndicator';
|
|
29
|
-
import { UnsupportedAttachmentProps } from '../../components/Attachment/UnsupportedAttachment';
|
|
30
|
-
import type {
|
|
31
|
-
URLPreviewCompactProps,
|
|
32
|
-
URLPreviewProps,
|
|
33
|
-
} from '../../components/Attachment/UrlPreview';
|
|
34
|
-
import type { VideoThumbnailProps } from '../../components/Attachment/VideoThumbnail';
|
|
35
|
-
import type {
|
|
36
|
-
MessagePressableHandlerPayload,
|
|
37
|
-
MessageProps,
|
|
38
|
-
} from '../../components/Message/Message';
|
|
39
|
-
import type { MessagePinnedHeaderProps } from '../../components/Message/MessageItemView/Headers/MessagePinnedHeader';
|
|
40
|
-
import type { MessageReminderHeaderProps } from '../../components/Message/MessageItemView/Headers/MessageReminderHeader';
|
|
41
|
-
import type { MessageSavedForLaterHeaderProps } from '../../components/Message/MessageItemView/Headers/MessageSavedForLaterHeader';
|
|
42
|
-
import type { SentToChannelHeaderProps } from '../../components/Message/MessageItemView/Headers/SentToChannelHeader';
|
|
43
|
-
import type { MessageAuthorProps } from '../../components/Message/MessageItemView/MessageAuthor';
|
|
44
|
-
import type { MessageBlockedProps } from '../../components/Message/MessageItemView/MessageBlocked';
|
|
45
|
-
import type { MessageBounceProps } from '../../components/Message/MessageItemView/MessageBounce';
|
|
46
|
-
import type { MessageContentProps } from '../../components/Message/MessageItemView/MessageContent';
|
|
47
|
-
import type { MessageDeletedProps } from '../../components/Message/MessageItemView/MessageDeleted';
|
|
48
|
-
import type { MessageFooterProps } from '../../components/Message/MessageItemView/MessageFooter';
|
|
49
|
-
import { MessageHeaderProps } from '../../components/Message/MessageItemView/MessageHeader';
|
|
50
|
-
import type { MessageItemViewProps } from '../../components/Message/MessageItemView/MessageItemView';
|
|
51
|
-
import type { MessageRepliesProps } from '../../components/Message/MessageItemView/MessageReplies';
|
|
52
|
-
import type { MessageRepliesAvatarsProps } from '../../components/Message/MessageItemView/MessageRepliesAvatars';
|
|
53
|
-
import type { MessageStatusProps } from '../../components/Message/MessageItemView/MessageStatus';
|
|
54
|
-
import type { MessageTextProps } from '../../components/Message/MessageItemView/MessageTextContainer';
|
|
55
|
-
import { MessageTimestampProps } from '../../components/Message/MessageItemView/MessageTimestamp';
|
|
56
|
-
import { ReactionListBottomProps } from '../../components/Message/MessageItemView/ReactionList/ReactionListBottom';
|
|
57
|
-
import { ReactionListClusteredProps } from '../../components/Message/MessageItemView/ReactionList/ReactionListClustered';
|
|
58
|
-
import {
|
|
59
|
-
ReactionListItemProps,
|
|
60
|
-
ReactionListCountItemProps,
|
|
61
|
-
} from '../../components/Message/MessageItemView/ReactionList/ReactionListItem';
|
|
62
|
-
import { ReactionListItemWrapperProps } from '../../components/Message/MessageItemView/ReactionList/ReactionListItemWrapper';
|
|
63
|
-
import type { ReactionListTopProps } from '../../components/Message/MessageItemView/ReactionList/ReactionListTop';
|
|
15
|
+
import type { MessagePressableHandlerPayload } from '../../components/Message/Message';
|
|
64
16
|
import type { MarkdownRules } from '../../components/Message/MessageItemView/utils/renderText';
|
|
65
17
|
import type { MessageActionsParams } from '../../components/Message/utils/messageActions';
|
|
66
|
-
import type { DateHeaderProps } from '../../components/MessageList/DateHeader';
|
|
67
|
-
import type { InlineDateSeparatorProps } from '../../components/MessageList/InlineDateSeparator';
|
|
68
|
-
import type { MessageListProps } from '../../components/MessageList/MessageList';
|
|
69
|
-
import type { MessageSystemProps } from '../../components/MessageList/MessageSystem';
|
|
70
|
-
import type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';
|
|
71
|
-
import { TypingIndicatorContainerProps } from '../../components/MessageList/TypingIndicatorContainer';
|
|
72
|
-
import { UnreadMessagesNotificationProps } from '../../components/MessageList/UnreadMessagesNotification';
|
|
73
18
|
import type {
|
|
74
19
|
GroupStyle,
|
|
75
20
|
MessageGroupStylesParams,
|
|
76
21
|
} from '../../components/MessageList/utils/getGroupStyles';
|
|
77
|
-
import {
|
|
78
|
-
import type {
|
|
79
|
-
MessageActionListItemProps,
|
|
80
|
-
MessageActionType,
|
|
81
|
-
} from '../../components/MessageMenu/MessageActionListItem';
|
|
82
|
-
import { MessageMenuProps } from '../../components/MessageMenu/MessageMenu';
|
|
83
|
-
import type { MessageReactionPickerProps } from '../../components/MessageMenu/MessageReactionPicker';
|
|
84
|
-
import { MessageUserReactionsProps } from '../../components/MessageMenu/MessageUserReactions';
|
|
85
|
-
import { MessageUserReactionsAvatarProps } from '../../components/MessageMenu/MessageUserReactionsAvatar';
|
|
86
|
-
import { MessageUserReactionsItemProps } from '../../components/MessageMenu/MessageUserReactionsItem';
|
|
87
|
-
import type { ReplyProps } from '../../components/Reply/Reply';
|
|
22
|
+
import type { MessageActionType } from '../../components/MessageMenu/MessageActionListItem';
|
|
88
23
|
import { NativeHandlers } from '../../native';
|
|
89
24
|
|
|
90
25
|
import type { ReactionData } from '../../utils/utils';
|
|
@@ -111,18 +46,6 @@ export type MessageLocationProps = {
|
|
|
111
46
|
};
|
|
112
47
|
|
|
113
48
|
export type MessagesContextValue = Pick<MessageContextValue, 'isMessageAIGenerated'> & {
|
|
114
|
-
/**
|
|
115
|
-
* UI component for Attachment.
|
|
116
|
-
* Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Attachment.tsx)
|
|
117
|
-
*/
|
|
118
|
-
Attachment: React.ComponentType<AttachmentProps>;
|
|
119
|
-
/** Custom UI component for AudioAttachment. */
|
|
120
|
-
AudioAttachment: React.ComponentType<AudioAttachmentProps>;
|
|
121
|
-
/**
|
|
122
|
-
* UI component for DateHeader
|
|
123
|
-
* Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)
|
|
124
|
-
**/
|
|
125
|
-
DateHeader: React.ComponentType<DateHeaderProps>;
|
|
126
49
|
// FIXME: Remove the signature with optionsOrHardDelete boolean with the next major release
|
|
127
50
|
deleteMessage: (
|
|
128
51
|
message: LocalMessage,
|
|
@@ -141,249 +64,24 @@ export type MessagesContextValue = Pick<MessageContextValue, 'isMessageAIGenerat
|
|
|
141
64
|
*/
|
|
142
65
|
urlPreviewType: 'compact' | 'full';
|
|
143
66
|
|
|
144
|
-
/**
|
|
145
|
-
* UI component to display unsupported attachment.
|
|
146
|
-
* Defaults to: [UnsupportedAttachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/UnsupportedAttachment.tsx)
|
|
147
|
-
*/
|
|
148
|
-
UnsupportedAttachment: React.ComponentType<UnsupportedAttachmentProps>;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* UI component for FilePreview
|
|
152
|
-
* Defaults to: [FilePreview](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FilePreview.tsx)
|
|
153
|
-
*/
|
|
154
|
-
FilePreview: React.ComponentType<FilePreviewProps>;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* UI component to display File type attachment.
|
|
158
|
-
* Defaults to: [FilePickerIcon](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachment.tsx)
|
|
159
|
-
*/
|
|
160
|
-
FileAttachment: React.ComponentType<FileAttachmentProps>;
|
|
161
|
-
/**
|
|
162
|
-
* UI component to display group of File type attachments or multiple file attachments (in single message).
|
|
163
|
-
* Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachmentGroup.tsx)
|
|
164
|
-
*/
|
|
165
|
-
FileAttachmentGroup: React.ComponentType<FileAttachmentGroupProps>;
|
|
166
|
-
/**
|
|
167
|
-
* UI component for attachment icon for type 'file' attachment.
|
|
168
|
-
* Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileIcon.tsx
|
|
169
|
-
*/
|
|
170
|
-
FileAttachmentIcon: React.ComponentType<FileIconProps>;
|
|
171
67
|
FlatList: typeof NativeHandlers.FlatList | undefined;
|
|
172
|
-
/**
|
|
173
|
-
* UI component to display image attachments
|
|
174
|
-
* Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Gallery.tsx)
|
|
175
|
-
*/
|
|
176
|
-
Gallery: React.ComponentType<GalleryProps>;
|
|
177
|
-
/**
|
|
178
|
-
* UI component for Giphy
|
|
179
|
-
* Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Giphy.tsx)
|
|
180
|
-
*/
|
|
181
|
-
Giphy: React.ComponentType<GiphyProps>;
|
|
182
68
|
/**
|
|
183
69
|
* The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default
|
|
184
70
|
* */
|
|
185
71
|
giphyVersion: keyof NonNullable<Attachment['giphy']>;
|
|
186
72
|
|
|
187
|
-
/**
|
|
188
|
-
* The indicator rendered when loading an image fails.
|
|
189
|
-
*/
|
|
190
|
-
ImageLoadingFailedIndicator: React.ComponentType<ImageLoadingFailedIndicatorProps>;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* The indicator rendered when image is loading. By default renders <ActivityIndicator/>
|
|
194
|
-
*/
|
|
195
|
-
ImageLoadingIndicator: React.ComponentType;
|
|
196
|
-
|
|
197
73
|
/**
|
|
198
74
|
* When true, messageList will be scrolled at first unread message, when opened.
|
|
199
75
|
*/
|
|
200
76
|
initialScrollToFirstUnreadMessage: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* UI component for Message Date Separator Component
|
|
203
|
-
* Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/InlineDateSeparator.tsx)
|
|
204
|
-
*/
|
|
205
|
-
InlineDateSeparator: React.ComponentType<InlineDateSeparatorProps>;
|
|
206
|
-
/**
|
|
207
|
-
* UI component for InlineUnreadIndicator
|
|
208
|
-
* Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/InlineUnreadIndicator.tsx)
|
|
209
|
-
**/
|
|
210
|
-
InlineUnreadIndicator: React.ComponentType<InlineUnreadIndicatorProps>;
|
|
211
|
-
|
|
212
|
-
Message: React.ComponentType<MessageProps>;
|
|
213
|
-
/**
|
|
214
|
-
* Custom UI component for rendering Message actions in message menu.
|
|
215
|
-
*
|
|
216
|
-
* **Default** [MessageActionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageActionList.tsx)
|
|
217
|
-
*/
|
|
218
|
-
MessageActionList: React.ComponentType<MessageActionListProps>;
|
|
219
|
-
/**
|
|
220
|
-
* Custom UI component for rendering Message action item in message menu.
|
|
221
|
-
*
|
|
222
|
-
* **Default** [MessageActionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageActionList.tsx)
|
|
223
|
-
*/
|
|
224
|
-
MessageActionListItem: React.ComponentType<MessageActionListItemProps>;
|
|
225
|
-
/**
|
|
226
|
-
* UI component for MessageAuthor
|
|
227
|
-
* Defaults to: [MessageAuthor](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageAuthor.tsx)
|
|
228
|
-
**/
|
|
229
|
-
MessageAuthor: React.ComponentType<MessageAuthorProps>;
|
|
230
|
-
/**
|
|
231
|
-
* UI component for MessageBlocked
|
|
232
|
-
* Defaults to: [MessageBlocked](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageBlocked.tsx)
|
|
233
|
-
*/
|
|
234
|
-
MessageBlocked: React.ComponentType<MessageBlockedProps>;
|
|
235
|
-
/**
|
|
236
|
-
* UI Component for MessageBounce
|
|
237
|
-
*/
|
|
238
|
-
MessageBounce: React.ComponentType<MessageBounceProps>;
|
|
239
|
-
/**
|
|
240
|
-
* UI component for MessageContent
|
|
241
|
-
* Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageContent.tsx)
|
|
242
|
-
*/
|
|
243
|
-
MessageContent: React.ComponentType<MessageContentProps>;
|
|
244
|
-
/**
|
|
245
|
-
* Optional UI component rendered above the message content body.
|
|
246
|
-
*/
|
|
247
|
-
MessageContentTopView?: React.ComponentType;
|
|
248
|
-
/**
|
|
249
|
-
* Optional UI component rendered to the left of the message content body.
|
|
250
|
-
*/
|
|
251
|
-
MessageContentLeadingView?: React.ComponentType;
|
|
252
|
-
/**
|
|
253
|
-
* Optional UI component rendered to the right of the message content body.
|
|
254
|
-
*/
|
|
255
|
-
MessageContentTrailingView?: React.ComponentType;
|
|
256
|
-
/**
|
|
257
|
-
* Optional UI component rendered below the message content body.
|
|
258
|
-
*/
|
|
259
|
-
MessageContentBottomView?: React.ComponentType;
|
|
260
77
|
/** Order to render the message content */
|
|
261
78
|
messageContentOrder: MessageContentType[];
|
|
262
|
-
/**
|
|
263
|
-
* UI component for MessageDeleted
|
|
264
|
-
* Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageDeleted.tsx)
|
|
265
|
-
*/
|
|
266
|
-
MessageDeleted: React.ComponentType<MessageDeletedProps>;
|
|
267
|
-
/**
|
|
268
|
-
* UI component for the MessageError.
|
|
269
|
-
*/
|
|
270
|
-
MessageError: React.ComponentType;
|
|
271
|
-
/**
|
|
272
|
-
* Custom message footer component
|
|
273
|
-
*/
|
|
274
|
-
MessageFooter: React.ComponentType<MessageFooterProps>;
|
|
275
|
-
MessageList: React.ComponentType<MessageListProps>;
|
|
276
|
-
MessageLocation?: React.ComponentType<MessageLocationProps>;
|
|
277
|
-
/**
|
|
278
|
-
* UI component for MessageMenu
|
|
279
|
-
*/
|
|
280
|
-
MessageMenu: React.ComponentType<MessageMenuProps>;
|
|
281
|
-
/**
|
|
282
|
-
* Custom message pinned component
|
|
283
|
-
*/
|
|
284
|
-
MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps>;
|
|
285
|
-
/**
|
|
286
|
-
* Custom message reminder component
|
|
287
|
-
*/
|
|
288
|
-
MessageReminderHeader: React.ComponentType<MessageReminderHeaderProps>;
|
|
289
|
-
/**
|
|
290
|
-
* Custom message saved for later component
|
|
291
|
-
*/
|
|
292
|
-
MessageSavedForLaterHeader: React.ComponentType<MessageSavedForLaterHeaderProps>;
|
|
293
|
-
/**
|
|
294
|
-
* Custom message sent to channel component
|
|
295
|
-
*/
|
|
296
|
-
SentToChannelHeader: React.ComponentType<SentToChannelHeaderProps>;
|
|
297
|
-
/**
|
|
298
|
-
* UI component for MessageReactionPicker
|
|
299
|
-
*/
|
|
300
|
-
MessageReactionPicker: React.ComponentType<MessageReactionPickerProps>;
|
|
301
|
-
/**
|
|
302
|
-
* UI component for MessageReplies
|
|
303
|
-
* Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageReplies.tsx)
|
|
304
|
-
*/
|
|
305
|
-
MessageReplies: React.ComponentType<MessageRepliesProps>;
|
|
306
|
-
/**
|
|
307
|
-
* UI Component for MessageRepliesAvatars
|
|
308
|
-
* Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageRepliesAvatars.tsx)
|
|
309
|
-
*/
|
|
310
|
-
MessageRepliesAvatars: React.ComponentType<MessageRepliesAvatarsProps>;
|
|
311
|
-
/**
|
|
312
|
-
* Optional UI component for overriding the empty space on a message row. If the message is left aligned, it will be to the right of it - otherwise left.
|
|
313
|
-
*/
|
|
314
|
-
MessageSpacer?: React.ComponentType;
|
|
315
|
-
/**
|
|
316
|
-
* UI component for MessageItemView. It encapsulates the entirety of a message row.
|
|
317
|
-
* Defaults to: [MessageItemView](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageItemView.tsx)
|
|
318
|
-
*/
|
|
319
|
-
MessageItemView: React.ComponentType<
|
|
320
|
-
MessageItemViewProps & { ref?: React.RefObject<View | null> }
|
|
321
|
-
>;
|
|
322
|
-
/**
|
|
323
|
-
* UI component for MessageStatus (delivered/read)
|
|
324
|
-
* Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageItemView/MessageStatus.tsx)
|
|
325
|
-
*/
|
|
326
|
-
MessageStatus: React.ComponentType<MessageStatusProps>;
|
|
327
|
-
/**
|
|
328
|
-
* UI component for MessageSystem
|
|
329
|
-
* Defaults to: [MessageSystem](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-system/)
|
|
330
|
-
*/
|
|
331
|
-
MessageSystem: React.ComponentType<MessageSystemProps>;
|
|
332
|
-
/**
|
|
333
|
-
* UI component for MessageTimestamp
|
|
334
|
-
* Defaults to: [MessageTimestamp](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/Message/MessageItemView/MessageTimestamp.tsx)
|
|
335
|
-
*/
|
|
336
|
-
MessageTimestamp: React.ComponentType<MessageTimestampProps>;
|
|
337
|
-
/**
|
|
338
|
-
* Custom UI component for rendering user reactions, in message menu.
|
|
339
|
-
*
|
|
340
|
-
* **Default** [MessageUserReactions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageUserReactions.tsx)
|
|
341
|
-
*/
|
|
342
|
-
MessageUserReactions: React.ComponentType<MessageUserReactionsProps>;
|
|
343
|
-
/**
|
|
344
|
-
* Custom UI component for rendering user reactions avatar under `MessageUserReactionsItem`, in message menu.
|
|
345
|
-
*
|
|
346
|
-
* **Default** [MessageUserReactionsAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageUserReactionsAvatar.tsx)
|
|
347
|
-
*/
|
|
348
|
-
MessageUserReactionsAvatar: React.ComponentType<MessageUserReactionsAvatarProps>;
|
|
349
|
-
/**
|
|
350
|
-
* Custom UI component for rendering individual user reactions item under `MessageUserReactions`, in message menu.
|
|
351
|
-
*
|
|
352
|
-
* **Default** [MessageUserReactionsItem](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageMenu/MessageUserReactionsItem.tsx)
|
|
353
|
-
*/
|
|
354
|
-
MessageUserReactionsItem: React.ComponentType<MessageUserReactionsItemProps>;
|
|
355
|
-
|
|
356
79
|
removeMessage: (message: { id: string; parent_id?: string }) => Promise<void>;
|
|
357
|
-
/**
|
|
358
|
-
* UI component for Reply
|
|
359
|
-
* Defaults to: [Reply](https://getstream.io/chat/docs/sdk/reactnative/ui-components/reply/)
|
|
360
|
-
*/
|
|
361
|
-
Reply: React.ComponentType<ReplyProps>;
|
|
362
80
|
/**
|
|
363
81
|
* Override the api request for retry message functionality.
|
|
364
82
|
*/
|
|
365
83
|
retrySendMessage: (message: LocalMessage) => Promise<void>;
|
|
366
|
-
/**
|
|
367
|
-
* UI component for ScrollToBottomButton
|
|
368
|
-
* Defaults to: [ScrollToBottomButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/scroll-to-bottom-button/)
|
|
369
|
-
*/
|
|
370
|
-
ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;
|
|
371
84
|
sendReaction: (type: string, messageId: string) => Promise<void>;
|
|
372
|
-
/**
|
|
373
|
-
* UI component for StreamingMessageView. Displays the text of a message with a typewriter animation.
|
|
374
|
-
*/
|
|
375
|
-
StreamingMessageView: React.ComponentType<StreamingMessageViewProps>;
|
|
376
|
-
/**
|
|
377
|
-
* UI component for TypingIndicator
|
|
378
|
-
* Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)
|
|
379
|
-
*/
|
|
380
|
-
TypingIndicator: React.ComponentType;
|
|
381
|
-
/**
|
|
382
|
-
* UI component for TypingIndicatorContainer
|
|
383
|
-
* Defaults to: [TypingIndicatorContainer](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/#typingindicatorcontainer)
|
|
384
|
-
*/
|
|
385
|
-
TypingIndicatorContainer: React.ComponentType<TypingIndicatorContainerProps>;
|
|
386
|
-
UnreadMessagesNotification: React.ComponentType<UnreadMessagesNotificationProps>;
|
|
387
85
|
updateMessage: (
|
|
388
86
|
updatedMessage: MessageResponse | LocalMessage,
|
|
389
87
|
extraState?: {
|
|
@@ -393,17 +91,6 @@ export type MessagesContextValue = Pick<MessageContextValue, 'isMessageAIGenerat
|
|
|
393
91
|
},
|
|
394
92
|
throttled?: boolean,
|
|
395
93
|
) => void;
|
|
396
|
-
/**
|
|
397
|
-
* Custom UI component to display enriched url preview.
|
|
398
|
-
* Defaults to https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/UrlPreview/URLPreview.tsx
|
|
399
|
-
*/
|
|
400
|
-
UrlPreview: React.ComponentType<URLPreviewProps>;
|
|
401
|
-
/**
|
|
402
|
-
* Custom UI component to display compact url preview.
|
|
403
|
-
* Defaults to https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/UrlPreview/URLPreviewCompact.tsx
|
|
404
|
-
*/
|
|
405
|
-
URLPreviewCompact: React.ComponentType<URLPreviewCompactProps>;
|
|
406
|
-
VideoThumbnail: React.ComponentType<VideoThumbnailProps>;
|
|
407
94
|
/**
|
|
408
95
|
* Provide any additional props for `Pressable` which wraps inner MessageContent component here.
|
|
409
96
|
* Please check docs for Pressable for supported props - https://reactnative.dev/docs/pressable#props
|
|
@@ -537,17 +224,10 @@ export type MessagesContextValue = Pick<MessageContextValue, 'isMessageAIGenerat
|
|
|
537
224
|
*/
|
|
538
225
|
messageActions?: (param: MessageActionsParams) => MessageActionType[];
|
|
539
226
|
|
|
540
|
-
/**
|
|
541
|
-
* Custom message header component
|
|
542
|
-
*/
|
|
543
|
-
MessageHeader: React.ComponentType<MessageHeaderProps>;
|
|
544
|
-
MessageSwipeContent?: React.ComponentType;
|
|
545
227
|
/**
|
|
546
228
|
* HitSlop for the message swipe to reply gesture
|
|
547
229
|
*/
|
|
548
230
|
messageSwipeToReplyHitSlop?: ViewProps['hitSlop'];
|
|
549
|
-
/** Custom UI component for message text */
|
|
550
|
-
MessageText?: React.ComponentType<MessageTextProps>;
|
|
551
231
|
/**
|
|
552
232
|
* The number of lines of the message text to be displayed
|
|
553
233
|
*/
|
|
@@ -637,17 +317,7 @@ export type MessagesContextValue = Pick<MessageContextValue, 'isMessageAIGenerat
|
|
|
637
317
|
* ```
|
|
638
318
|
*/
|
|
639
319
|
onPressMessage?: (payload: MessagePressableHandlerPayload) => void;
|
|
640
|
-
/**
|
|
641
|
-
* Override the entire content of the Poll component. The component has full access to the
|
|
642
|
-
* usePollState() and usePollContext() hooks.
|
|
643
|
-
* */
|
|
644
|
-
PollContent?: React.ComponentType<PollContentProps>;
|
|
645
320
|
quotedMessage?: LocalMessage | null;
|
|
646
|
-
/**
|
|
647
|
-
* UI component for ReactionListTop
|
|
648
|
-
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
|
|
649
|
-
*/
|
|
650
|
-
ReactionListBottom?: React.ComponentType<ReactionListBottomProps>;
|
|
651
321
|
/**
|
|
652
322
|
* The position of the reaction list in the message
|
|
653
323
|
*/
|
|
@@ -658,31 +328,6 @@ export type MessagesContextValue = Pick<MessageContextValue, 'isMessageAIGenerat
|
|
|
658
328
|
*/
|
|
659
329
|
reactionListType?: 'clustered' | 'segmented';
|
|
660
330
|
|
|
661
|
-
/**
|
|
662
|
-
* UI component for ReactionListTop
|
|
663
|
-
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
|
|
664
|
-
*/
|
|
665
|
-
ReactionListTop?: React.ComponentType<ReactionListTopProps>;
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* UI component for ReactionListBottom
|
|
669
|
-
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
|
|
670
|
-
*/
|
|
671
|
-
ReactionListClustered: React.ComponentType<ReactionListClusteredProps>;
|
|
672
|
-
/**
|
|
673
|
-
* UI component for ReactionListSegmented
|
|
674
|
-
* Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)
|
|
675
|
-
*/
|
|
676
|
-
ReactionListItem: React.ComponentType<ReactionListItemProps>;
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* UI component for ReactionListItemWrapper
|
|
680
|
-
* Defaults to: [ReactionListItemWrapper](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionListItemWrapper.tsx)
|
|
681
|
-
*/
|
|
682
|
-
ReactionListItemWrapper: React.ComponentType<ReactionListItemWrapperProps>;
|
|
683
|
-
|
|
684
|
-
ReactionListCountItem: React.ComponentType<ReactionListCountItemProps>;
|
|
685
|
-
|
|
686
331
|
/**
|
|
687
332
|
* Full override of the reaction function on Message and Message Overlay
|
|
688
333
|
*
|
|
@@ -28,11 +28,12 @@ import {
|
|
|
28
28
|
Rect,
|
|
29
29
|
useOverlayController,
|
|
30
30
|
} from '../../state-store';
|
|
31
|
+
import { useComponentsContext } from '../componentsContext/ComponentsContext';
|
|
31
32
|
import { useTheme } from '../themeContext/ThemeContext';
|
|
32
33
|
|
|
33
34
|
const DURATION = 300;
|
|
34
35
|
|
|
35
|
-
const DefaultMessageOverlayBackground = () => {
|
|
36
|
+
export const DefaultMessageOverlayBackground = () => {
|
|
36
37
|
const {
|
|
37
38
|
theme: { semantics },
|
|
38
39
|
} = useTheme();
|
|
@@ -52,11 +53,8 @@ const DefaultMessageOverlayBackground = () => {
|
|
|
52
53
|
);
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const MessageOverlayHostLayer = ({ BackgroundComponent }: MessageOverlayHostLayerProps) => {
|
|
56
|
+
export const MessageOverlayHostLayer = () => {
|
|
57
|
+
const { MessageOverlayBackground } = useComponentsContext();
|
|
60
58
|
const { id, closing } = useOverlayController();
|
|
61
59
|
const insets = useSafeAreaInsets();
|
|
62
60
|
const { height: screenH } = useWindowDimensions();
|
|
@@ -123,7 +121,7 @@ export const MessageOverlayHostLayer = ({ BackgroundComponent }: MessageOverlayH
|
|
|
123
121
|
opacity: backdrop.value,
|
|
124
122
|
}));
|
|
125
123
|
|
|
126
|
-
const OverlayBackground =
|
|
124
|
+
const OverlayBackground = MessageOverlayBackground;
|
|
127
125
|
|
|
128
126
|
const messageShiftY = useDerivedValue(() => {
|
|
129
127
|
if (!messageH.value || !topH.value || !bottomH.value) return 0;
|
|
@@ -26,10 +26,6 @@ export const OverlayContext = React.createContext(
|
|
|
26
26
|
export type OverlayProviderProps = ImageGalleryProviderProps & {
|
|
27
27
|
/** https://github.com/GetStream/stream-chat-react-native/wiki/Internationalization-(i18n) */
|
|
28
28
|
i18nInstance?: Streami18n;
|
|
29
|
-
/**
|
|
30
|
-
* Custom backdrop component rendered behind overlay content in `MessageOverlayHostLayer`.
|
|
31
|
-
*/
|
|
32
|
-
MessageOverlayBackground?: React.ComponentType;
|
|
33
29
|
value?: Partial<OverlayContextValue>;
|
|
34
30
|
};
|
|
35
31
|
|
|
@@ -44,7 +44,6 @@ export const OverlayProvider = (props: PropsWithChildren<OverlayProviderProps>)
|
|
|
44
44
|
const {
|
|
45
45
|
children,
|
|
46
46
|
i18nInstance,
|
|
47
|
-
MessageOverlayBackground,
|
|
48
47
|
value,
|
|
49
48
|
autoPlayVideo,
|
|
50
49
|
giphyVersion,
|
|
@@ -107,7 +106,7 @@ export const OverlayProvider = (props: PropsWithChildren<OverlayProviderProps>)
|
|
|
107
106
|
<PortalProvider>
|
|
108
107
|
{children}
|
|
109
108
|
{overlay === 'gallery' && <ImageGallery overlayOpacity={overlayOpacity} />}
|
|
110
|
-
<MessageOverlayHostLayer
|
|
109
|
+
<MessageOverlayHostLayer />
|
|
111
110
|
</PortalProvider>
|
|
112
111
|
</ThemeProvider>
|
|
113
112
|
</ImageGalleryProvider>
|