stream-chat-react-native-core 9.0.0-beta.30 → 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/Message/MessageItemView/utils/renderText.js +3 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/renderText.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 +8 -4
- 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/MultipleAnswersField.js +5 -3
- package/lib/commonjs/components/Poll/components/MultipleAnswersField.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.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/PollInputDialog.js +2 -1
- package/lib/commonjs/components/Poll/components/PollInputDialog.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 +11 -4
- 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/hooks/messagePreview/useMessagePreviewText.js +28 -13
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/commonjs/i18n/en.json +20 -0
- package/lib/commonjs/i18n/es.json +20 -0
- package/lib/commonjs/i18n/fr.json +20 -0
- package/lib/commonjs/i18n/he.json +20 -0
- package/lib/commonjs/i18n/hi.json +20 -0
- package/lib/commonjs/i18n/it.json +20 -0
- package/lib/commonjs/i18n/ja.json +20 -0
- package/lib/commonjs/i18n/ko.json +20 -0
- package/lib/commonjs/i18n/nl.json +20 -0
- package/lib/commonjs/i18n/pt-br.json +20 -0
- package/lib/commonjs/i18n/ru.json +20 -0
- package/lib/commonjs/i18n/tr.json +20 -0
- package/lib/commonjs/icons/arrow-up-right.js +10 -6
- package/lib/commonjs/icons/arrow-up-right.js.map +1 -1
- package/lib/commonjs/icons/audio.js +10 -6
- package/lib/commonjs/icons/audio.js.map +1 -1
- package/lib/commonjs/icons/chevron-left.js +10 -6
- package/lib/commonjs/icons/chevron-left.js.map +1 -1
- package/lib/commonjs/icons/leave.js +10 -6
- package/lib/commonjs/icons/leave.js.map +1 -1
- package/lib/commonjs/icons/message-bubble.js +10 -6
- package/lib/commonjs/icons/message-bubble.js.map +1 -1
- package/lib/commonjs/icons/mute.js +11 -7
- package/lib/commonjs/icons/mute.js.map +1 -1
- package/lib/commonjs/icons/reply.js +10 -6
- package/lib/commonjs/icons/reply.js.map +1 -1
- package/lib/commonjs/icons/search.js +11 -7
- package/lib/commonjs/icons/search.js.map +1 -1
- package/lib/commonjs/icons/send.js +11 -7
- package/lib/commonjs/icons/send.js.map +1 -1
- package/lib/commonjs/icons/thread.js +10 -6
- package/lib/commonjs/icons/thread.js.map +1 -1
- package/lib/commonjs/icons/video-fill.js +2 -0
- package/lib/commonjs/icons/video-fill.js.map +1 -1
- package/lib/commonjs/icons/video.js +10 -6
- package/lib/commonjs/icons/video.js.map +1 -1
- package/lib/commonjs/utils/rtlMirrorSwitchStyle.js +20 -0
- package/lib/commonjs/utils/rtlMirrorSwitchStyle.js.map +1 -0
- 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/Message/MessageItemView/utils/renderText.js +3 -1
- package/lib/module/components/Message/MessageItemView/utils/renderText.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 +8 -4
- 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/MultipleAnswersField.js +5 -3
- package/lib/module/components/Poll/components/MultipleAnswersField.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +5 -3
- package/lib/module/components/Poll/components/MultipleVotesSettings.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/PollInputDialog.js +2 -1
- package/lib/module/components/Poll/components/PollInputDialog.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 +11 -4
- 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/hooks/messagePreview/useMessagePreviewText.js +28 -13
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/module/i18n/en.json +20 -0
- package/lib/module/i18n/es.json +20 -0
- package/lib/module/i18n/fr.json +20 -0
- package/lib/module/i18n/he.json +20 -0
- package/lib/module/i18n/hi.json +20 -0
- package/lib/module/i18n/it.json +20 -0
- package/lib/module/i18n/ja.json +20 -0
- package/lib/module/i18n/ko.json +20 -0
- package/lib/module/i18n/nl.json +20 -0
- package/lib/module/i18n/pt-br.json +20 -0
- package/lib/module/i18n/ru.json +20 -0
- package/lib/module/i18n/tr.json +20 -0
- package/lib/module/icons/arrow-up-right.js +10 -6
- package/lib/module/icons/arrow-up-right.js.map +1 -1
- package/lib/module/icons/audio.js +10 -6
- package/lib/module/icons/audio.js.map +1 -1
- package/lib/module/icons/chevron-left.js +10 -6
- package/lib/module/icons/chevron-left.js.map +1 -1
- package/lib/module/icons/leave.js +10 -6
- package/lib/module/icons/leave.js.map +1 -1
- package/lib/module/icons/message-bubble.js +10 -6
- package/lib/module/icons/message-bubble.js.map +1 -1
- package/lib/module/icons/mute.js +11 -7
- package/lib/module/icons/mute.js.map +1 -1
- package/lib/module/icons/reply.js +10 -6
- package/lib/module/icons/reply.js.map +1 -1
- package/lib/module/icons/search.js +11 -7
- package/lib/module/icons/search.js.map +1 -1
- package/lib/module/icons/send.js +11 -7
- package/lib/module/icons/send.js.map +1 -1
- package/lib/module/icons/thread.js +10 -6
- package/lib/module/icons/thread.js.map +1 -1
- package/lib/module/icons/video-fill.js +2 -0
- package/lib/module/icons/video-fill.js.map +1 -1
- package/lib/module/icons/video.js +10 -6
- package/lib/module/icons/video.js.map +1 -1
- package/lib/module/utils/rtlMirrorSwitchStyle.js +20 -0
- package/lib/module/utils/rtlMirrorSwitchStyle.js.map +1 -0
- 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/Message/MessageItemView/utils/renderText.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/MultipleVotesSettings.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/lib/typescript/hooks/messagePreview/useMessagePreviewText.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +20 -0
- package/lib/typescript/i18n/es.json +20 -0
- package/lib/typescript/i18n/fr.json +20 -0
- package/lib/typescript/i18n/he.json +20 -0
- package/lib/typescript/i18n/hi.json +20 -0
- package/lib/typescript/i18n/it.json +20 -0
- package/lib/typescript/i18n/ja.json +20 -0
- package/lib/typescript/i18n/ko.json +20 -0
- package/lib/typescript/i18n/nl.json +20 -0
- package/lib/typescript/i18n/pt-br.json +20 -0
- package/lib/typescript/i18n/ru.json +20 -0
- package/lib/typescript/i18n/tr.json +20 -0
- package/lib/typescript/icons/arrow-up-right.d.ts.map +1 -1
- package/lib/typescript/icons/audio.d.ts.map +1 -1
- package/lib/typescript/icons/chevron-left.d.ts.map +1 -1
- package/lib/typescript/icons/leave.d.ts.map +1 -1
- package/lib/typescript/icons/message-bubble.d.ts.map +1 -1
- package/lib/typescript/icons/mute.d.ts.map +1 -1
- package/lib/typescript/icons/reply.d.ts.map +1 -1
- package/lib/typescript/icons/search.d.ts.map +1 -1
- package/lib/typescript/icons/send.d.ts.map +1 -1
- package/lib/typescript/icons/thread.d.ts.map +1 -1
- package/lib/typescript/icons/video-fill.d.ts.map +1 -1
- package/lib/typescript/icons/video.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +20 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/rtlMirrorSwitchStyle.d.ts +9 -0
- package/lib/typescript/utils/rtlMirrorSwitchStyle.d.ts.map +1 -0
- 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/Message/MessageItemView/__tests__/__snapshots__/MessageTextContainer.test.tsx.snap +1 -0
- package/src/components/Message/MessageItemView/utils/renderText.tsx +2 -0
- package/src/components/MessageInput/MessageComposer.tsx +16 -76
- package/src/components/MessageInput/MessageInputHeaderView.tsx +3 -3
- package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap +54 -36
- 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 +7 -6
- package/src/components/Poll/Poll.tsx +22 -24
- package/src/components/Poll/components/MultipleAnswersField.tsx +4 -3
- package/src/components/Poll/components/MultipleVotesSettings.tsx +4 -2
- package/src/components/Poll/components/PollAnswersList.tsx +9 -11
- package/src/components/Poll/components/PollInputDialog.tsx +1 -0
- 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 +25 -10
- package/src/components/Thread/Thread.tsx +3 -18
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +31 -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/hooks/messagePreview/useMessagePreviewText.tsx +17 -13
- package/src/i18n/en.json +20 -0
- package/src/i18n/es.json +20 -0
- package/src/i18n/fr.json +20 -0
- package/src/i18n/he.json +20 -0
- package/src/i18n/hi.json +20 -0
- package/src/i18n/it.json +20 -0
- package/src/i18n/ja.json +20 -0
- package/src/i18n/ko.json +20 -0
- package/src/i18n/nl.json +20 -0
- package/src/i18n/pt-br.json +20 -0
- package/src/i18n/ru.json +20 -0
- package/src/i18n/tr.json +20 -0
- package/src/icons/arrow-up-right.tsx +11 -8
- package/src/icons/audio.tsx +11 -8
- package/src/icons/chevron-left.tsx +11 -8
- package/src/icons/leave.tsx +11 -8
- package/src/icons/message-bubble.tsx +11 -8
- package/src/icons/mute.tsx +12 -9
- package/src/icons/reply.tsx +11 -8
- package/src/icons/search.tsx +12 -9
- package/src/icons/send.tsx +12 -9
- package/src/icons/thread.tsx +11 -8
- package/src/icons/video-fill.tsx +5 -1
- package/src/icons/video.tsx +11 -8
- package/src/utils/rtlMirrorSwitchStyle.ts +20 -0
- package/src/version.json +1 -1
|
@@ -4,6 +4,7 @@ import { Text } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { act, cleanup, render, waitFor } from '@testing-library/react-native';
|
|
6
6
|
|
|
7
|
+
import { WithComponents } from '../../../contexts/componentsContext/ComponentsContext';
|
|
7
8
|
import { OverlayProvider } from '../../../contexts/overlayContext/OverlayProvider';
|
|
8
9
|
import { getOrCreateChannelApi } from '../../../mock-builders/api/getOrCreateChannel';
|
|
9
10
|
|
|
@@ -61,17 +62,19 @@ describe('isAttachmentEqualHandler', () => {
|
|
|
61
62
|
return (
|
|
62
63
|
<OverlayProvider>
|
|
63
64
|
<Chat client={chatClient}>
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
<WithComponents
|
|
66
|
+
overrides={{
|
|
67
|
+
UnsupportedAttachment: ({ attachment: { customField, type } }) => {
|
|
68
|
+
if (type === 'test') {
|
|
69
|
+
return <Text testID='attachment-custom-field'>{customField}</Text>;
|
|
70
|
+
}
|
|
71
|
+
},
|
|
69
72
|
}}
|
|
70
|
-
channel={channel}
|
|
71
|
-
isAttachmentEqual={isAttachmentEqualHandler}
|
|
72
73
|
>
|
|
73
|
-
<
|
|
74
|
-
|
|
74
|
+
<Channel channel={channel} isAttachmentEqual={isAttachmentEqualHandler}>
|
|
75
|
+
<MessageList />
|
|
76
|
+
</Channel>
|
|
77
|
+
</WithComponents>
|
|
75
78
|
</Chat>
|
|
76
79
|
</OverlayProvider>
|
|
77
80
|
);
|
|
@@ -6,7 +6,6 @@ export const useCreateChannelContext = ({
|
|
|
6
6
|
channel,
|
|
7
7
|
channelUnreadStateStore,
|
|
8
8
|
disabled,
|
|
9
|
-
EmptyStateIndicator,
|
|
10
9
|
enableMessageGroupingByUser,
|
|
11
10
|
enforceUniqueReaction,
|
|
12
11
|
error,
|
|
@@ -18,19 +17,16 @@ export const useCreateChannelContext = ({
|
|
|
18
17
|
loadChannelAroundMessage,
|
|
19
18
|
loadChannelAtFirstUnreadMessage,
|
|
20
19
|
loading,
|
|
21
|
-
LoadingIndicator,
|
|
22
20
|
markRead,
|
|
23
21
|
maxTimeBetweenGroupedMessages,
|
|
24
22
|
maximumMessageLimit,
|
|
25
23
|
members,
|
|
26
|
-
NetworkDownIndicator,
|
|
27
24
|
read,
|
|
28
25
|
reloadChannel,
|
|
29
26
|
scrollToFirstUnreadThreshold,
|
|
30
27
|
setChannelUnreadState,
|
|
31
28
|
setLastRead,
|
|
32
29
|
setTargetedMessage,
|
|
33
|
-
StickyHeader,
|
|
34
30
|
targetedMessage,
|
|
35
31
|
threadList,
|
|
36
32
|
uploadAbortControllerRef,
|
|
@@ -52,7 +48,6 @@ export const useCreateChannelContext = ({
|
|
|
52
48
|
channel,
|
|
53
49
|
channelUnreadStateStore,
|
|
54
50
|
disabled,
|
|
55
|
-
EmptyStateIndicator,
|
|
56
51
|
enableMessageGroupingByUser,
|
|
57
52
|
enforceUniqueReaction,
|
|
58
53
|
error,
|
|
@@ -64,19 +59,16 @@ export const useCreateChannelContext = ({
|
|
|
64
59
|
loadChannelAroundMessage,
|
|
65
60
|
loadChannelAtFirstUnreadMessage,
|
|
66
61
|
loading,
|
|
67
|
-
LoadingIndicator,
|
|
68
62
|
markRead,
|
|
69
63
|
maximumMessageLimit,
|
|
70
64
|
maxTimeBetweenGroupedMessages,
|
|
71
65
|
members,
|
|
72
|
-
NetworkDownIndicator,
|
|
73
66
|
read,
|
|
74
67
|
reloadChannel,
|
|
75
68
|
scrollToFirstUnreadThreshold,
|
|
76
69
|
setChannelUnreadState,
|
|
77
70
|
setLastRead,
|
|
78
71
|
setTargetedMessage,
|
|
79
|
-
StickyHeader,
|
|
80
72
|
targetedMessage,
|
|
81
73
|
threadList,
|
|
82
74
|
uploadAbortControllerRef,
|
|
@@ -9,62 +9,25 @@ export const useCreateInputMessageInputContext = ({
|
|
|
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
|
channelId,
|
|
28
16
|
compressImageQuality,
|
|
29
|
-
CooldownTimer,
|
|
30
|
-
CreatePollContent,
|
|
31
17
|
createPollOptionGap,
|
|
32
18
|
doFileUploadRequest,
|
|
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
|
-
InputButtons,
|
|
50
|
-
MessageComposerLeadingView,
|
|
51
|
-
MessageComposerTrailingView,
|
|
52
25
|
messageInputFloating,
|
|
53
26
|
messageInputHeightStore,
|
|
54
|
-
MessageInputFooterView,
|
|
55
|
-
MessageInputHeaderView,
|
|
56
|
-
MessageInputLeadingView,
|
|
57
|
-
MessageInputTrailingView,
|
|
58
27
|
openPollCreationDialog,
|
|
59
|
-
SendButton,
|
|
60
28
|
sendMessage,
|
|
61
|
-
SendMessageDisallowedIndicator,
|
|
62
29
|
setInputRef,
|
|
63
30
|
showPollCreationDialog,
|
|
64
|
-
ShowThreadMessageInChannelButton,
|
|
65
|
-
StartAudioRecordingButton,
|
|
66
|
-
StopMessageStreamingButton,
|
|
67
|
-
VideoAttachmentUploadPreview,
|
|
68
31
|
}: InputMessageInputContextValue & {
|
|
69
32
|
/**
|
|
70
33
|
* To ensure we allow re-render, when channel is changed
|
|
@@ -79,70 +42,27 @@ export const useCreateInputMessageInputContext = ({
|
|
|
79
42
|
asyncMessagesMinimumPressDuration,
|
|
80
43
|
asyncMessagesSlideToCancelDistance,
|
|
81
44
|
audioRecordingSendOnComplete,
|
|
82
|
-
AttachButton,
|
|
83
45
|
attachmentPickerBottomSheetHeight,
|
|
84
|
-
AttachmentPickerSelectionBar,
|
|
85
46
|
attachmentSelectionBarHeight,
|
|
86
|
-
AttachmentUploadPreviewList,
|
|
87
|
-
AudioAttachmentUploadPreview,
|
|
88
|
-
AudioRecorder,
|
|
89
47
|
audioRecordingEnabled,
|
|
90
|
-
AudioRecordingInProgress,
|
|
91
|
-
AudioRecordingLockIndicator,
|
|
92
|
-
AudioRecordingPreview,
|
|
93
|
-
AudioRecordingWaveform,
|
|
94
|
-
AutoCompleteSuggestionHeader,
|
|
95
|
-
AutoCompleteSuggestionItem,
|
|
96
|
-
AutoCompleteSuggestionList,
|
|
97
48
|
compressImageQuality,
|
|
98
|
-
CooldownTimer,
|
|
99
|
-
CreatePollContent,
|
|
100
49
|
createPollOptionGap,
|
|
101
50
|
doFileUploadRequest,
|
|
102
51
|
editMessage,
|
|
103
|
-
FileAttachmentUploadPreview,
|
|
104
|
-
FileUploadInProgressIndicator,
|
|
105
|
-
FileUploadRetryIndicator,
|
|
106
|
-
FileUploadNotSupportedIndicator,
|
|
107
|
-
ImageUploadInProgressIndicator,
|
|
108
|
-
ImageUploadRetryIndicator,
|
|
109
|
-
ImageUploadNotSupportedIndicator,
|
|
110
52
|
handleAttachButtonPress,
|
|
111
53
|
hasCameraPicker,
|
|
112
54
|
hasCommands,
|
|
113
55
|
hasFilePicker,
|
|
114
56
|
hasImagePicker,
|
|
115
|
-
ImageAttachmentUploadPreview,
|
|
116
|
-
Input,
|
|
117
|
-
InputView,
|
|
118
|
-
InputButtons,
|
|
119
|
-
MessageComposerLeadingView,
|
|
120
|
-
MessageComposerTrailingView,
|
|
121
57
|
messageInputFloating,
|
|
122
58
|
messageInputHeightStore,
|
|
123
|
-
MessageInputFooterView,
|
|
124
|
-
MessageInputHeaderView,
|
|
125
|
-
MessageInputLeadingView,
|
|
126
|
-
MessageInputTrailingView,
|
|
127
59
|
openPollCreationDialog,
|
|
128
|
-
SendButton,
|
|
129
60
|
sendMessage,
|
|
130
|
-
SendMessageDisallowedIndicator,
|
|
131
61
|
setInputRef,
|
|
132
62
|
showPollCreationDialog,
|
|
133
|
-
ShowThreadMessageInChannelButton,
|
|
134
|
-
StartAudioRecordingButton,
|
|
135
|
-
StopMessageStreamingButton,
|
|
136
|
-
VideoAttachmentUploadPreview,
|
|
137
63
|
}),
|
|
138
64
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
139
|
-
[
|
|
140
|
-
compressImageQuality,
|
|
141
|
-
channelId,
|
|
142
|
-
CreatePollContent,
|
|
143
|
-
showPollCreationDialog,
|
|
144
|
-
allowSendBeforeAttachmentsUpload,
|
|
145
|
-
],
|
|
65
|
+
[compressImageQuality, channelId, showPollCreationDialog, allowSendBeforeAttachmentsUpload],
|
|
146
66
|
);
|
|
147
67
|
|
|
148
68
|
return inputMessageInputContext;
|
|
@@ -4,11 +4,8 @@ import type { MessagesContextValue } from '../../../contexts/messagesContext/Mes
|
|
|
4
4
|
|
|
5
5
|
export const useCreateMessagesContext = ({
|
|
6
6
|
additionalPressableProps,
|
|
7
|
-
Attachment,
|
|
8
|
-
AudioAttachment,
|
|
9
7
|
channelId,
|
|
10
8
|
customMessageSwipeAction,
|
|
11
|
-
DateHeader,
|
|
12
9
|
deletedMessagesVisibilityType,
|
|
13
10
|
deleteMessage,
|
|
14
11
|
deleteReaction,
|
|
@@ -16,15 +13,9 @@ export const useCreateMessagesContext = ({
|
|
|
16
13
|
dismissKeyboardOnMessageTouch,
|
|
17
14
|
enableMessageGroupingByUser,
|
|
18
15
|
enableSwipeToReply,
|
|
19
|
-
FileAttachment,
|
|
20
|
-
FileAttachmentGroup,
|
|
21
|
-
FileAttachmentIcon,
|
|
22
|
-
FilePreview,
|
|
23
16
|
FlatList,
|
|
24
17
|
forceAlignMessages,
|
|
25
|
-
Gallery,
|
|
26
18
|
getMessageGroupStyle,
|
|
27
|
-
Giphy,
|
|
28
19
|
giphyVersion,
|
|
29
20
|
handleBan,
|
|
30
21
|
handleCopy,
|
|
@@ -41,85 +32,29 @@ export const useCreateMessagesContext = ({
|
|
|
41
32
|
handleThreadReply,
|
|
42
33
|
handleBlockUser,
|
|
43
34
|
hasCreatePoll,
|
|
44
|
-
ImageLoadingFailedIndicator,
|
|
45
|
-
ImageLoadingIndicator,
|
|
46
35
|
initialScrollToFirstUnreadMessage,
|
|
47
|
-
InlineDateSeparator,
|
|
48
|
-
InlineUnreadIndicator,
|
|
49
36
|
isAttachmentEqual,
|
|
50
37
|
isMessageAIGenerated,
|
|
51
38
|
markdownRules,
|
|
52
|
-
Message,
|
|
53
|
-
MessageActionList,
|
|
54
|
-
MessageActionListItem,
|
|
55
39
|
messageActions,
|
|
56
|
-
MessageAuthor,
|
|
57
|
-
MessageBlocked,
|
|
58
|
-
MessageBounce,
|
|
59
|
-
MessageContent,
|
|
60
|
-
MessageContentBottomView,
|
|
61
|
-
MessageContentLeadingView,
|
|
62
40
|
messageContentOrder,
|
|
63
|
-
MessageContentTrailingView,
|
|
64
|
-
MessageContentTopView,
|
|
65
|
-
MessageDeleted,
|
|
66
|
-
MessageError,
|
|
67
|
-
MessageFooter,
|
|
68
|
-
MessageHeader,
|
|
69
|
-
MessageList,
|
|
70
|
-
MessageLocation,
|
|
71
|
-
MessageMenu,
|
|
72
|
-
MessagePinnedHeader,
|
|
73
|
-
MessageReminderHeader,
|
|
74
|
-
MessageSavedForLaterHeader,
|
|
75
|
-
SentToChannelHeader,
|
|
76
|
-
MessageReactionPicker,
|
|
77
|
-
MessageReplies,
|
|
78
|
-
MessageRepliesAvatars,
|
|
79
|
-
MessageSpacer,
|
|
80
|
-
MessageItemView,
|
|
81
|
-
MessageStatus,
|
|
82
|
-
MessageSwipeContent,
|
|
83
41
|
messageSwipeToReplyHitSlop,
|
|
84
|
-
MessageSystem,
|
|
85
|
-
MessageText,
|
|
86
42
|
messageTextNumberOfLines,
|
|
87
|
-
MessageTimestamp,
|
|
88
|
-
MessageUserReactions,
|
|
89
|
-
MessageUserReactionsAvatar,
|
|
90
|
-
MessageUserReactionsItem,
|
|
91
43
|
myMessageTheme,
|
|
92
44
|
onLongPressMessage,
|
|
93
45
|
onPressInMessage,
|
|
94
46
|
onPressMessage,
|
|
95
|
-
PollContent,
|
|
96
|
-
ReactionListBottom,
|
|
97
47
|
reactionListPosition,
|
|
98
48
|
reactionListType,
|
|
99
|
-
ReactionListTop,
|
|
100
|
-
ReactionListClustered,
|
|
101
|
-
ReactionListItem,
|
|
102
|
-
ReactionListItemWrapper,
|
|
103
|
-
ReactionListCountItem,
|
|
104
49
|
removeMessage,
|
|
105
|
-
Reply,
|
|
106
50
|
retrySendMessage,
|
|
107
|
-
ScrollToBottomButton,
|
|
108
51
|
selectReaction,
|
|
109
52
|
sendReaction,
|
|
110
53
|
shouldShowUnreadUnderlay,
|
|
111
|
-
StreamingMessageView,
|
|
112
54
|
supportedReactions,
|
|
113
55
|
targetedMessage,
|
|
114
|
-
TypingIndicator,
|
|
115
|
-
TypingIndicatorContainer,
|
|
116
|
-
UnreadMessagesNotification,
|
|
117
56
|
updateMessage,
|
|
118
|
-
UrlPreview,
|
|
119
|
-
URLPreviewCompact,
|
|
120
|
-
VideoThumbnail,
|
|
121
57
|
urlPreviewType,
|
|
122
|
-
UnsupportedAttachment,
|
|
123
58
|
}: MessagesContextValue & {
|
|
124
59
|
/**
|
|
125
60
|
* To ensure we allow re-render, when channel is changed
|
|
@@ -134,10 +69,7 @@ export const useCreateMessagesContext = ({
|
|
|
134
69
|
const messagesContext: MessagesContextValue = useMemo(
|
|
135
70
|
() => ({
|
|
136
71
|
additionalPressableProps,
|
|
137
|
-
Attachment,
|
|
138
|
-
AudioAttachment,
|
|
139
72
|
customMessageSwipeAction,
|
|
140
|
-
DateHeader,
|
|
141
73
|
deletedMessagesVisibilityType,
|
|
142
74
|
deleteMessage,
|
|
143
75
|
deleteReaction,
|
|
@@ -145,15 +77,9 @@ export const useCreateMessagesContext = ({
|
|
|
145
77
|
dismissKeyboardOnMessageTouch,
|
|
146
78
|
enableMessageGroupingByUser,
|
|
147
79
|
enableSwipeToReply,
|
|
148
|
-
FileAttachment,
|
|
149
|
-
FileAttachmentGroup,
|
|
150
|
-
FileAttachmentIcon,
|
|
151
|
-
FilePreview,
|
|
152
80
|
FlatList,
|
|
153
81
|
forceAlignMessages,
|
|
154
|
-
Gallery,
|
|
155
82
|
getMessageGroupStyle,
|
|
156
|
-
Giphy,
|
|
157
83
|
giphyVersion,
|
|
158
84
|
handleBan,
|
|
159
85
|
handleCopy,
|
|
@@ -170,85 +96,29 @@ export const useCreateMessagesContext = ({
|
|
|
170
96
|
handleThreadReply,
|
|
171
97
|
handleBlockUser,
|
|
172
98
|
hasCreatePoll,
|
|
173
|
-
ImageLoadingFailedIndicator,
|
|
174
|
-
ImageLoadingIndicator,
|
|
175
99
|
initialScrollToFirstUnreadMessage,
|
|
176
|
-
InlineDateSeparator,
|
|
177
|
-
InlineUnreadIndicator,
|
|
178
100
|
isAttachmentEqual,
|
|
179
101
|
isMessageAIGenerated,
|
|
180
102
|
markdownRules,
|
|
181
|
-
Message,
|
|
182
|
-
MessageActionList,
|
|
183
|
-
MessageActionListItem,
|
|
184
103
|
messageActions,
|
|
185
|
-
MessageAuthor,
|
|
186
|
-
MessageBlocked,
|
|
187
|
-
MessageBounce,
|
|
188
|
-
MessageContent,
|
|
189
|
-
MessageContentBottomView,
|
|
190
|
-
MessageContentLeadingView,
|
|
191
104
|
messageContentOrder,
|
|
192
|
-
MessageContentTrailingView,
|
|
193
|
-
MessageContentTopView,
|
|
194
|
-
MessageDeleted,
|
|
195
|
-
MessageError,
|
|
196
|
-
MessageFooter,
|
|
197
|
-
MessageHeader,
|
|
198
|
-
MessageList,
|
|
199
|
-
MessageLocation,
|
|
200
|
-
MessageMenu,
|
|
201
|
-
MessagePinnedHeader,
|
|
202
|
-
MessageReminderHeader,
|
|
203
|
-
MessageSavedForLaterHeader,
|
|
204
|
-
SentToChannelHeader,
|
|
205
|
-
MessageReactionPicker,
|
|
206
|
-
MessageReplies,
|
|
207
|
-
MessageRepliesAvatars,
|
|
208
|
-
MessageSpacer,
|
|
209
|
-
MessageItemView,
|
|
210
|
-
MessageStatus,
|
|
211
|
-
MessageSwipeContent,
|
|
212
105
|
messageSwipeToReplyHitSlop,
|
|
213
|
-
MessageSystem,
|
|
214
|
-
MessageText,
|
|
215
106
|
messageTextNumberOfLines,
|
|
216
|
-
MessageTimestamp,
|
|
217
|
-
MessageUserReactions,
|
|
218
|
-
MessageUserReactionsAvatar,
|
|
219
|
-
MessageUserReactionsItem,
|
|
220
107
|
myMessageTheme,
|
|
221
108
|
onLongPressMessage,
|
|
222
109
|
onPressInMessage,
|
|
223
110
|
onPressMessage,
|
|
224
|
-
PollContent,
|
|
225
|
-
ReactionListBottom,
|
|
226
111
|
reactionListPosition,
|
|
227
112
|
reactionListType,
|
|
228
|
-
ReactionListTop,
|
|
229
|
-
ReactionListClustered,
|
|
230
|
-
ReactionListItem,
|
|
231
|
-
ReactionListItemWrapper,
|
|
232
|
-
ReactionListCountItem,
|
|
233
113
|
removeMessage,
|
|
234
|
-
Reply,
|
|
235
114
|
retrySendMessage,
|
|
236
|
-
ScrollToBottomButton,
|
|
237
115
|
selectReaction,
|
|
238
116
|
sendReaction,
|
|
239
117
|
shouldShowUnreadUnderlay,
|
|
240
|
-
StreamingMessageView,
|
|
241
118
|
supportedReactions,
|
|
242
119
|
targetedMessage,
|
|
243
|
-
TypingIndicator,
|
|
244
|
-
TypingIndicatorContainer,
|
|
245
|
-
UnreadMessagesNotification,
|
|
246
120
|
updateMessage,
|
|
247
|
-
UrlPreview,
|
|
248
|
-
URLPreviewCompact,
|
|
249
|
-
VideoThumbnail,
|
|
250
121
|
urlPreviewType,
|
|
251
|
-
UnsupportedAttachment,
|
|
252
122
|
}),
|
|
253
123
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
254
124
|
[
|
|
@@ -11,15 +11,10 @@ import {
|
|
|
11
11
|
QueryChannelsRequestType,
|
|
12
12
|
} from 'stream-chat';
|
|
13
13
|
|
|
14
|
-
import {
|
|
15
|
-
import { ChannelListHeaderErrorIndicator } from './ChannelListHeaderErrorIndicator';
|
|
16
|
-
import { ChannelListHeaderNetworkDownIndicator } from './ChannelListHeaderNetworkDownIndicator';
|
|
17
|
-
import { ChannelListLoadingIndicator } from './ChannelListLoadingIndicator';
|
|
18
|
-
import { ChannelListView, ChannelListViewProps } from './ChannelListView';
|
|
14
|
+
import { ChannelListView } from './ChannelListView';
|
|
19
15
|
import { useChannelUpdated } from './hooks/listeners/useChannelUpdated';
|
|
20
16
|
import { useCreateChannelsContext } from './hooks/useCreateChannelsContext';
|
|
21
17
|
import { usePaginatedChannels } from './hooks/usePaginatedChannels';
|
|
22
|
-
import { Skeleton as SkeletonDefault } from './Skeleton';
|
|
23
18
|
|
|
24
19
|
import {
|
|
25
20
|
ChannelsContextValue,
|
|
@@ -28,38 +23,16 @@ import {
|
|
|
28
23
|
import { useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
29
24
|
import { SwipeRegistryProvider } from '../../contexts/swipeableContext/SwipeRegistryContext';
|
|
30
25
|
import type { ChannelListEventListenerOptions } from '../../types/types';
|
|
31
|
-
import { ChannelPreviewView } from '../ChannelPreview/ChannelPreviewView';
|
|
32
|
-
import { EmptyStateIndicator as EmptyStateIndicatorDefault } from '../Indicators/EmptyStateIndicator';
|
|
33
|
-
import { LoadingErrorIndicator as LoadingErrorIndicatorDefault } from '../Indicators/LoadingErrorIndicator';
|
|
34
26
|
|
|
35
27
|
export type ChannelListProps = Partial<
|
|
36
28
|
Pick<
|
|
37
29
|
ChannelsContextValue,
|
|
38
30
|
| 'additionalFlatListProps'
|
|
39
|
-
| 'EmptyStateIndicator'
|
|
40
|
-
| 'FooterLoadingIndicator'
|
|
41
|
-
| 'HeaderErrorIndicator'
|
|
42
|
-
| 'HeaderNetworkDownIndicator'
|
|
43
|
-
| 'LoadingErrorIndicator'
|
|
44
|
-
| 'LoadingIndicator'
|
|
45
|
-
| 'Preview'
|
|
46
31
|
| 'setFlatListRef'
|
|
47
|
-
| 'ListHeaderComponent'
|
|
48
32
|
| 'onSelect'
|
|
49
|
-
| 'PreviewAvatar'
|
|
50
|
-
| 'PreviewMessage'
|
|
51
|
-
| 'PreviewMutedStatus'
|
|
52
|
-
| 'PreviewStatus'
|
|
53
|
-
| 'PreviewTitle'
|
|
54
|
-
| 'PreviewLastMessage'
|
|
55
|
-
| 'PreviewUnreadCount'
|
|
56
|
-
| 'PreviewTypingIndicator'
|
|
57
|
-
| 'PreviewMessageDeliveryStatus'
|
|
58
|
-
| 'ChannelDetailsBottomSheet'
|
|
59
33
|
| 'getChannelActionItems'
|
|
60
34
|
| 'swipeActionsEnabled'
|
|
61
35
|
| 'loadMoreThreshold'
|
|
62
|
-
| 'Skeleton'
|
|
63
36
|
| 'maxUnreadCount'
|
|
64
37
|
| 'numberOfSkeletons'
|
|
65
38
|
| 'mutedStatusPosition'
|
|
@@ -75,12 +48,6 @@ export type ChannelListProps = Partial<
|
|
|
75
48
|
* @overrideType object
|
|
76
49
|
* */
|
|
77
50
|
filters?: ChannelFilters;
|
|
78
|
-
/**
|
|
79
|
-
* Custom UI component to display the list of channels
|
|
80
|
-
*
|
|
81
|
-
* Default: [ChannelListView](https://getstream.io/chat/docs/sdk/reactnative/ui-components/channel-list-view/)
|
|
82
|
-
*/
|
|
83
|
-
List?: React.ComponentType<ChannelListViewProps>;
|
|
84
51
|
/**
|
|
85
52
|
* If set to true, channels won't dynamically sort by most recent message, defaults to false
|
|
86
53
|
*/
|
|
@@ -247,8 +214,7 @@ const DEFAULT_SORT = {};
|
|
|
247
214
|
|
|
248
215
|
/**
|
|
249
216
|
* This component fetches a list of channels, allowing you to select the channel you want to open.
|
|
250
|
-
* The ChannelList
|
|
251
|
-
* provided to the ChannelList component as a prop. By default, the ChannelListView component is used as the list UI.
|
|
217
|
+
* The ChannelList renders a ChannelListView which provides the UI for the underlying React Native FlatList.
|
|
252
218
|
*
|
|
253
219
|
* @example ./ChannelList.md
|
|
254
220
|
*/
|
|
@@ -256,15 +222,7 @@ export const ChannelList = (props: ChannelListProps) => {
|
|
|
256
222
|
const {
|
|
257
223
|
additionalFlatListProps = {},
|
|
258
224
|
channelRenderFilterFn,
|
|
259
|
-
EmptyStateIndicator = EmptyStateIndicatorDefault,
|
|
260
225
|
filters = DEFAULT_FILTERS,
|
|
261
|
-
FooterLoadingIndicator = ChannelListFooterLoadingIndicator,
|
|
262
|
-
HeaderErrorIndicator = ChannelListHeaderErrorIndicator,
|
|
263
|
-
HeaderNetworkDownIndicator = ChannelListHeaderNetworkDownIndicator,
|
|
264
|
-
List = ChannelListView,
|
|
265
|
-
ListHeaderComponent,
|
|
266
|
-
LoadingErrorIndicator = LoadingErrorIndicatorDefault,
|
|
267
|
-
LoadingIndicator = ChannelListLoadingIndicator,
|
|
268
226
|
// https://stackoverflow.com/a/60666252/10826415
|
|
269
227
|
loadMoreThreshold = 0.1,
|
|
270
228
|
lockChannelOrder = false,
|
|
@@ -282,20 +240,8 @@ export const ChannelList = (props: ChannelListProps) => {
|
|
|
282
240
|
onRemovedFromChannel,
|
|
283
241
|
onSelect,
|
|
284
242
|
options = DEFAULT_OPTIONS,
|
|
285
|
-
Preview = ChannelPreviewView,
|
|
286
243
|
getChannelActionItems,
|
|
287
|
-
PreviewAvatar,
|
|
288
|
-
PreviewMessage,
|
|
289
|
-
PreviewMutedStatus,
|
|
290
|
-
PreviewLastMessage,
|
|
291
|
-
PreviewStatus,
|
|
292
|
-
PreviewTitle,
|
|
293
|
-
PreviewUnreadCount,
|
|
294
|
-
PreviewTypingIndicator,
|
|
295
|
-
PreviewMessageDeliveryStatus,
|
|
296
|
-
ChannelDetailsBottomSheet,
|
|
297
244
|
setFlatListRef,
|
|
298
|
-
Skeleton = SkeletonDefault,
|
|
299
245
|
sort = DEFAULT_SORT,
|
|
300
246
|
queryChannelsOverride,
|
|
301
247
|
mutedStatusPosition = 'inlineTitle',
|
|
@@ -398,35 +344,17 @@ export const ChannelList = (props: ChannelListProps) => {
|
|
|
398
344
|
additionalFlatListProps,
|
|
399
345
|
channelListInitialized,
|
|
400
346
|
channels: channelRenderFilterFn ? channelRenderFilterFn(channels ?? []) : channels,
|
|
401
|
-
EmptyStateIndicator,
|
|
402
347
|
error,
|
|
403
|
-
FooterLoadingIndicator,
|
|
404
348
|
forceUpdate,
|
|
405
349
|
hasNextPage,
|
|
406
|
-
HeaderErrorIndicator,
|
|
407
|
-
HeaderNetworkDownIndicator,
|
|
408
|
-
ListHeaderComponent,
|
|
409
350
|
loadingChannels,
|
|
410
|
-
LoadingErrorIndicator,
|
|
411
|
-
LoadingIndicator,
|
|
412
351
|
loadingNextPage,
|
|
413
352
|
loadMoreThreshold,
|
|
414
353
|
loadNextPage,
|
|
415
354
|
maxUnreadCount,
|
|
416
355
|
numberOfSkeletons,
|
|
417
356
|
onSelect,
|
|
418
|
-
Preview,
|
|
419
357
|
getChannelActionItems,
|
|
420
|
-
PreviewAvatar,
|
|
421
|
-
PreviewMessage,
|
|
422
|
-
PreviewMutedStatus,
|
|
423
|
-
PreviewStatus,
|
|
424
|
-
PreviewTitle,
|
|
425
|
-
PreviewUnreadCount,
|
|
426
|
-
PreviewTypingIndicator,
|
|
427
|
-
PreviewMessageDeliveryStatus,
|
|
428
|
-
ChannelDetailsBottomSheet,
|
|
429
|
-
PreviewLastMessage,
|
|
430
358
|
swipeActionsEnabled,
|
|
431
359
|
refreshing,
|
|
432
360
|
refreshList,
|
|
@@ -436,14 +364,13 @@ export const ChannelList = (props: ChannelListProps) => {
|
|
|
436
364
|
setFlatListRef(ref);
|
|
437
365
|
}
|
|
438
366
|
},
|
|
439
|
-
Skeleton,
|
|
440
367
|
mutedStatusPosition,
|
|
441
368
|
});
|
|
442
369
|
|
|
443
370
|
return (
|
|
444
371
|
<ChannelsProvider value={channelsContext}>
|
|
445
372
|
<SwipeRegistryProvider>
|
|
446
|
-
<
|
|
373
|
+
<ChannelListView />
|
|
447
374
|
</SwipeRegistryProvider>
|
|
448
375
|
</ChannelsProvider>
|
|
449
376
|
);
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { useChannelsContext } from '../../contexts/channelsContext/ChannelsContext';
|
|
5
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
5
6
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
6
7
|
|
|
7
8
|
const styles = StyleSheet.create({
|
|
@@ -16,7 +17,8 @@ export const ChannelListLoadingIndicator = () => {
|
|
|
16
17
|
channelListLoadingIndicator: { container },
|
|
17
18
|
},
|
|
18
19
|
} = useTheme();
|
|
19
|
-
const { numberOfSkeletons
|
|
20
|
+
const { numberOfSkeletons } = useChannelsContext();
|
|
21
|
+
const { Skeleton } = useComponentsContext();
|
|
20
22
|
|
|
21
23
|
return (
|
|
22
24
|
<View style={[styles.container, container]} testID='channel-list-loading-indicator'>
|