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
|
@@ -9,7 +9,8 @@ import { LinkPreviewsManager } from 'stream-chat';
|
|
|
9
9
|
|
|
10
10
|
import { AttachmentRemoveControl } from './AttachmentPreview/AttachmentRemoveControl';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { useMessageComposer, useTheme } from '../../../contexts';
|
|
13
|
+
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
13
14
|
import { Link } from '../../../icons/link';
|
|
14
15
|
import { components, primitives } from '../../../theme';
|
|
15
16
|
import { useLinkPreviews } from '../hooks/useLinkPreviews';
|
|
@@ -38,7 +39,7 @@ type LinkPreviewProps = {
|
|
|
38
39
|
|
|
39
40
|
export const LinkPreviewCard = ({ linkPreview }: LinkPreviewProps) => {
|
|
40
41
|
const styles = useStyles();
|
|
41
|
-
const { ImageComponent } =
|
|
42
|
+
const { ImageComponent } = useComponentsContext();
|
|
42
43
|
const { linkPreviewsManager } = useMessageComposer();
|
|
43
44
|
const { image_url, thumb_url, title, text, og_scrape_url } = linkPreview;
|
|
44
45
|
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
useMessageComposerHasSendableData,
|
|
15
15
|
useTheme,
|
|
16
16
|
} from '../../../../contexts';
|
|
17
|
+
import { useComponentsContext } from '../../../../contexts/componentsContext/ComponentsContext';
|
|
17
18
|
import { useHasAttachments } from '../../../../contexts/messageInputContext/hooks/useHasAttachments';
|
|
18
19
|
import { useMessageComposer } from '../../../../contexts/messageInputContext/hooks/useMessageComposer';
|
|
19
20
|
import {
|
|
@@ -36,10 +37,6 @@ export type OutputButtonsWithContextProps = Pick<ChatContextValue, 'isOnline'> &
|
|
|
36
37
|
| 'asyncMessagesLockDistance'
|
|
37
38
|
| 'audioRecordingSendOnComplete'
|
|
38
39
|
| 'audioRecordingEnabled'
|
|
39
|
-
| 'CooldownTimer'
|
|
40
|
-
| 'SendButton'
|
|
41
|
-
| 'StopMessageStreamingButton'
|
|
42
|
-
| 'StartAudioRecordingButton'
|
|
43
40
|
> & {
|
|
44
41
|
cooldownIsActive: boolean;
|
|
45
42
|
hasAttachments: boolean;
|
|
@@ -51,17 +48,9 @@ const textComposerStateSelector = (state: TextComposerState) => ({
|
|
|
51
48
|
});
|
|
52
49
|
|
|
53
50
|
export const OutputButtonsWithContext = (props: OutputButtonsWithContextProps) => {
|
|
54
|
-
const {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
CooldownTimer,
|
|
58
|
-
cooldownIsActive,
|
|
59
|
-
isOnline,
|
|
60
|
-
SendButton,
|
|
61
|
-
StopMessageStreamingButton,
|
|
62
|
-
StartAudioRecordingButton,
|
|
63
|
-
hasAttachments,
|
|
64
|
-
} = props;
|
|
51
|
+
const { audioRecordingEnabled, channel, cooldownIsActive, isOnline, hasAttachments } = props;
|
|
52
|
+
const { CooldownTimer, SendButton, StartAudioRecordingButton, StopMessageStreamingButton } =
|
|
53
|
+
useComponentsContext();
|
|
65
54
|
const {
|
|
66
55
|
theme: {
|
|
67
56
|
messageComposer: {
|
|
@@ -180,10 +169,6 @@ export const OutputButtons = (props: OutputButtonsProps) => {
|
|
|
180
169
|
asyncMessagesSlideToCancelDistance,
|
|
181
170
|
asyncMessagesLockDistance,
|
|
182
171
|
audioRecordingSendOnComplete,
|
|
183
|
-
CooldownTimer,
|
|
184
|
-
SendButton,
|
|
185
|
-
StopMessageStreamingButton,
|
|
186
|
-
StartAudioRecordingButton,
|
|
187
172
|
} = useMessageInputContext();
|
|
188
173
|
const cooldownIsActive = useIsCooldownActive();
|
|
189
174
|
const hasAttachments = useHasAttachments();
|
|
@@ -198,11 +183,7 @@ export const OutputButtons = (props: OutputButtonsProps) => {
|
|
|
198
183
|
audioRecordingEnabled,
|
|
199
184
|
channel,
|
|
200
185
|
cooldownIsActive,
|
|
201
|
-
CooldownTimer,
|
|
202
186
|
isOnline,
|
|
203
|
-
SendButton,
|
|
204
|
-
StartAudioRecordingButton,
|
|
205
|
-
StopMessageStreamingButton,
|
|
206
187
|
hasAttachments,
|
|
207
188
|
}}
|
|
208
189
|
{...props}
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
useChannelContext,
|
|
30
30
|
} from '../../contexts/channelContext/ChannelContext';
|
|
31
31
|
import { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
32
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
32
33
|
import {
|
|
33
34
|
MessageInputContextValue,
|
|
34
35
|
useMessageInputContext,
|
|
@@ -121,19 +122,15 @@ type MessageFlashListPropsWithContext = Pick<
|
|
|
121
122
|
| 'channel'
|
|
122
123
|
| 'channelUnreadStateStore'
|
|
123
124
|
| 'disabled'
|
|
124
|
-
| 'EmptyStateIndicator'
|
|
125
125
|
| 'hideStickyDateHeader'
|
|
126
126
|
| 'highlightedMessageId'
|
|
127
127
|
| 'loadChannelAroundMessage'
|
|
128
128
|
| 'loading'
|
|
129
|
-
| 'LoadingIndicator'
|
|
130
129
|
| 'markRead'
|
|
131
|
-
| 'NetworkDownIndicator'
|
|
132
130
|
| 'reloadChannel'
|
|
133
131
|
| 'scrollToFirstUnreadThreshold'
|
|
134
132
|
| 'setChannelUnreadState'
|
|
135
133
|
| 'setTargetedMessage'
|
|
136
|
-
| 'StickyHeader'
|
|
137
134
|
| 'targetedMessage'
|
|
138
135
|
| 'threadList'
|
|
139
136
|
| 'maximumMessageLimit'
|
|
@@ -143,19 +140,7 @@ type MessageFlashListPropsWithContext = Pick<
|
|
|
143
140
|
Pick<PaginatedMessageListContextValue, 'loadMore' | 'loadMoreRecent'> &
|
|
144
141
|
Pick<
|
|
145
142
|
MessagesContextValue,
|
|
146
|
-
| '
|
|
147
|
-
| 'disableTypingIndicator'
|
|
148
|
-
| 'FlatList'
|
|
149
|
-
| 'InlineDateSeparator'
|
|
150
|
-
| 'InlineUnreadIndicator'
|
|
151
|
-
| 'Message'
|
|
152
|
-
| 'ScrollToBottomButton'
|
|
153
|
-
| 'MessageSystem'
|
|
154
|
-
| 'myMessageTheme'
|
|
155
|
-
| 'shouldShowUnreadUnderlay'
|
|
156
|
-
| 'TypingIndicator'
|
|
157
|
-
| 'TypingIndicatorContainer'
|
|
158
|
-
| 'UnreadMessagesNotification'
|
|
143
|
+
'disableTypingIndicator' | 'FlatList' | 'myMessageTheme' | 'shouldShowUnreadUnderlay'
|
|
159
144
|
> &
|
|
160
145
|
Pick<
|
|
161
146
|
ThreadContextValue,
|
|
@@ -277,10 +262,8 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
|
|
|
277
262
|
channelUnreadStateStore,
|
|
278
263
|
client,
|
|
279
264
|
closePicker,
|
|
280
|
-
DateHeader,
|
|
281
265
|
disabled,
|
|
282
266
|
disableTypingIndicator,
|
|
283
|
-
EmptyStateIndicator,
|
|
284
267
|
// FlatList,
|
|
285
268
|
FooterComponent,
|
|
286
269
|
HeaderComponent = InlineLoadingMoreIndicator,
|
|
@@ -288,7 +271,6 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
|
|
|
288
271
|
isLiveStreaming = false,
|
|
289
272
|
loadChannelAroundMessage,
|
|
290
273
|
loading,
|
|
291
|
-
LoadingIndicator,
|
|
292
274
|
loadMore,
|
|
293
275
|
loadMoreRecent,
|
|
294
276
|
loadMoreRecentThread,
|
|
@@ -299,24 +281,28 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
|
|
|
299
281
|
messageInputHeightStore,
|
|
300
282
|
myMessageTheme,
|
|
301
283
|
readEvents,
|
|
302
|
-
NetworkDownIndicator,
|
|
303
284
|
noGroupByUser,
|
|
304
285
|
onListScroll,
|
|
305
286
|
onThreadSelect,
|
|
306
287
|
reloadChannel,
|
|
307
|
-
ScrollToBottomButton,
|
|
308
288
|
setChannelUnreadState,
|
|
309
289
|
setFlatListRef,
|
|
310
290
|
setTargetedMessage,
|
|
311
|
-
StickyHeader,
|
|
312
291
|
targetedMessage,
|
|
313
292
|
thread,
|
|
314
293
|
threadInstance,
|
|
315
294
|
threadList = false,
|
|
295
|
+
} = props;
|
|
296
|
+
const {
|
|
297
|
+
EmptyStateIndicator,
|
|
298
|
+
MessageListLoadingIndicator: LoadingIndicator,
|
|
299
|
+
NetworkDownIndicator,
|
|
300
|
+
ScrollToBottomButton,
|
|
301
|
+
StickyHeader,
|
|
316
302
|
TypingIndicator,
|
|
317
303
|
TypingIndicatorContainer,
|
|
318
304
|
UnreadMessagesNotification,
|
|
319
|
-
} =
|
|
305
|
+
} = useComponentsContext();
|
|
320
306
|
const flashListRef = useRef<FlashListRef<LocalMessage> | null>(null);
|
|
321
307
|
|
|
322
308
|
const { height: messageInputHeight } = useStateStore(
|
|
@@ -1091,7 +1077,7 @@ const MessageFlashListWithContext = (props: MessageFlashListPropsWithContext) =>
|
|
|
1091
1077
|
)}
|
|
1092
1078
|
<View style={styles.stickyHeaderContainer}>
|
|
1093
1079
|
{messageListLengthAfterUpdate && StickyHeader ? (
|
|
1094
|
-
<StickyHeader date={stickyHeaderDate}
|
|
1080
|
+
<StickyHeader date={stickyHeaderDate} />
|
|
1095
1081
|
) : null}
|
|
1096
1082
|
</View>
|
|
1097
1083
|
<Animated.View
|
|
@@ -1181,7 +1167,6 @@ export const MessageFlashList = (props: MessageFlashListProps) => {
|
|
|
1181
1167
|
channel,
|
|
1182
1168
|
channelUnreadStateStore,
|
|
1183
1169
|
disabled,
|
|
1184
|
-
EmptyStateIndicator,
|
|
1185
1170
|
enableMessageGroupingByUser,
|
|
1186
1171
|
error,
|
|
1187
1172
|
hideStickyDateHeader,
|
|
@@ -1189,34 +1174,18 @@ export const MessageFlashList = (props: MessageFlashListProps) => {
|
|
|
1189
1174
|
isChannelActive,
|
|
1190
1175
|
loadChannelAroundMessage,
|
|
1191
1176
|
loading,
|
|
1192
|
-
LoadingIndicator,
|
|
1193
1177
|
markRead,
|
|
1194
1178
|
maximumMessageLimit,
|
|
1195
|
-
NetworkDownIndicator,
|
|
1196
1179
|
reloadChannel,
|
|
1197
1180
|
scrollToFirstUnreadThreshold,
|
|
1198
1181
|
setChannelUnreadState,
|
|
1199
1182
|
setTargetedMessage,
|
|
1200
|
-
StickyHeader,
|
|
1201
1183
|
targetedMessage,
|
|
1202
1184
|
threadList,
|
|
1203
1185
|
} = useChannelContext();
|
|
1204
1186
|
const { client } = useChatContext();
|
|
1205
|
-
const {
|
|
1206
|
-
|
|
1207
|
-
disableTypingIndicator,
|
|
1208
|
-
FlatList,
|
|
1209
|
-
InlineDateSeparator,
|
|
1210
|
-
InlineUnreadIndicator,
|
|
1211
|
-
Message,
|
|
1212
|
-
MessageSystem,
|
|
1213
|
-
myMessageTheme,
|
|
1214
|
-
ScrollToBottomButton,
|
|
1215
|
-
shouldShowUnreadUnderlay,
|
|
1216
|
-
TypingIndicator,
|
|
1217
|
-
TypingIndicatorContainer,
|
|
1218
|
-
UnreadMessagesNotification,
|
|
1219
|
-
} = useMessagesContext();
|
|
1187
|
+
const { disableTypingIndicator, FlatList, myMessageTheme, shouldShowUnreadUnderlay } =
|
|
1188
|
+
useMessagesContext();
|
|
1220
1189
|
const { loadMore, loadMoreRecent } = usePaginatedMessageListContext();
|
|
1221
1190
|
const { loadMoreRecentThread, loadMoreThread, thread, threadInstance } = useThreadContext();
|
|
1222
1191
|
const { readEvents } = useOwnCapabilitiesContext();
|
|
@@ -1230,48 +1199,35 @@ export const MessageFlashList = (props: MessageFlashListProps) => {
|
|
|
1230
1199
|
channelUnreadStateStore,
|
|
1231
1200
|
client,
|
|
1232
1201
|
closePicker,
|
|
1233
|
-
DateHeader,
|
|
1234
1202
|
disabled,
|
|
1235
1203
|
disableTypingIndicator,
|
|
1236
|
-
EmptyStateIndicator,
|
|
1237
1204
|
enableMessageGroupingByUser,
|
|
1238
1205
|
error,
|
|
1239
1206
|
FlatList,
|
|
1240
1207
|
hideStickyDateHeader,
|
|
1241
1208
|
highlightedMessageId,
|
|
1242
|
-
InlineDateSeparator,
|
|
1243
|
-
InlineUnreadIndicator,
|
|
1244
1209
|
isListActive: isChannelActive,
|
|
1245
1210
|
loadChannelAroundMessage,
|
|
1246
1211
|
loading,
|
|
1247
|
-
LoadingIndicator,
|
|
1248
1212
|
loadMore,
|
|
1249
1213
|
loadMoreRecent,
|
|
1250
1214
|
loadMoreRecentThread,
|
|
1251
1215
|
loadMoreThread,
|
|
1252
1216
|
markRead,
|
|
1253
1217
|
maximumMessageLimit,
|
|
1254
|
-
Message,
|
|
1255
1218
|
messageInputFloating,
|
|
1256
1219
|
messageInputHeightStore,
|
|
1257
|
-
MessageSystem,
|
|
1258
1220
|
myMessageTheme,
|
|
1259
|
-
NetworkDownIndicator,
|
|
1260
1221
|
readEvents,
|
|
1261
1222
|
reloadChannel,
|
|
1262
|
-
ScrollToBottomButton,
|
|
1263
1223
|
scrollToFirstUnreadThreshold,
|
|
1264
1224
|
setChannelUnreadState,
|
|
1265
1225
|
setTargetedMessage,
|
|
1266
1226
|
shouldShowUnreadUnderlay,
|
|
1267
|
-
StickyHeader,
|
|
1268
1227
|
targetedMessage,
|
|
1269
1228
|
thread,
|
|
1270
1229
|
threadInstance,
|
|
1271
1230
|
threadList,
|
|
1272
|
-
TypingIndicator,
|
|
1273
|
-
TypingIndicatorContainer,
|
|
1274
|
-
UnreadMessagesNotification,
|
|
1275
1231
|
}}
|
|
1276
1232
|
{...props}
|
|
1277
1233
|
noGroupByUser={!enableMessageGroupingByUser || props.noGroupByUser}
|
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
useChannelContext,
|
|
39
39
|
} from '../../contexts/channelContext/ChannelContext';
|
|
40
40
|
import { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
41
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
41
42
|
import { useDebugContext } from '../../contexts/debugContext/DebugContext';
|
|
42
43
|
|
|
43
44
|
import {
|
|
@@ -196,18 +197,14 @@ type MessageListPropsWithContext = Pick<
|
|
|
196
197
|
| 'channel'
|
|
197
198
|
| 'channelUnreadStateStore'
|
|
198
199
|
| 'disabled'
|
|
199
|
-
| 'EmptyStateIndicator'
|
|
200
200
|
| 'hideStickyDateHeader'
|
|
201
201
|
| 'loadChannelAroundMessage'
|
|
202
202
|
| 'loading'
|
|
203
|
-
| 'LoadingIndicator'
|
|
204
203
|
| 'markRead'
|
|
205
|
-
| 'NetworkDownIndicator'
|
|
206
204
|
| 'reloadChannel'
|
|
207
205
|
| 'scrollToFirstUnreadThreshold'
|
|
208
206
|
| 'setChannelUnreadState'
|
|
209
207
|
| 'setTargetedMessage'
|
|
210
|
-
| 'StickyHeader'
|
|
211
208
|
| 'targetedMessage'
|
|
212
209
|
| 'threadList'
|
|
213
210
|
| 'maximumMessageLimit'
|
|
@@ -216,17 +213,7 @@ type MessageListPropsWithContext = Pick<
|
|
|
216
213
|
Pick<PaginatedMessageListContextValue, 'loadMore' | 'loadMoreRecent' | 'hasMore'> &
|
|
217
214
|
Pick<
|
|
218
215
|
MessagesContextValue,
|
|
219
|
-
| '
|
|
220
|
-
| 'disableTypingIndicator'
|
|
221
|
-
| 'FlatList'
|
|
222
|
-
| 'InlineDateSeparator'
|
|
223
|
-
| 'InlineUnreadIndicator'
|
|
224
|
-
| 'Message'
|
|
225
|
-
| 'ScrollToBottomButton'
|
|
226
|
-
| 'myMessageTheme'
|
|
227
|
-
| 'TypingIndicator'
|
|
228
|
-
| 'TypingIndicatorContainer'
|
|
229
|
-
| 'UnreadMessagesNotification'
|
|
216
|
+
'disableTypingIndicator' | 'FlatList' | 'myMessageTheme' | 'shouldShowUnreadUnderlay'
|
|
230
217
|
> &
|
|
231
218
|
Pick<MessageInputContextValue, 'messageInputFloating' | 'messageInputHeightStore'> &
|
|
232
219
|
Pick<
|
|
@@ -326,10 +313,8 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
|
|
|
326
313
|
channelUnreadStateStore,
|
|
327
314
|
client,
|
|
328
315
|
closePicker,
|
|
329
|
-
DateHeader,
|
|
330
316
|
disabled,
|
|
331
317
|
disableTypingIndicator,
|
|
332
|
-
EmptyStateIndicator,
|
|
333
318
|
FlatList,
|
|
334
319
|
FooterComponent = InlineLoadingMoreIndicator,
|
|
335
320
|
HeaderComponent,
|
|
@@ -338,7 +323,6 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
|
|
|
338
323
|
isLiveStreaming = false,
|
|
339
324
|
loadChannelAroundMessage,
|
|
340
325
|
loading,
|
|
341
|
-
LoadingIndicator,
|
|
342
326
|
loadMore,
|
|
343
327
|
loadMoreRecent,
|
|
344
328
|
loadMoreRecentThread,
|
|
@@ -348,27 +332,31 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
|
|
|
348
332
|
messageInputFloating,
|
|
349
333
|
messageInputHeightStore,
|
|
350
334
|
myMessageTheme,
|
|
351
|
-
NetworkDownIndicator,
|
|
352
335
|
noGroupByUser,
|
|
353
336
|
onListScroll,
|
|
354
337
|
onThreadSelect,
|
|
355
338
|
readEvents,
|
|
356
339
|
reloadChannel,
|
|
357
|
-
ScrollToBottomButton,
|
|
358
340
|
setChannelUnreadState,
|
|
359
341
|
setFlatListRef,
|
|
360
342
|
setTargetedMessage,
|
|
361
|
-
StickyHeader,
|
|
362
343
|
targetedMessage,
|
|
363
344
|
thread,
|
|
364
345
|
threadInstance,
|
|
365
346
|
threadList = false,
|
|
366
|
-
TypingIndicator,
|
|
367
|
-
TypingIndicatorContainer,
|
|
368
|
-
UnreadMessagesNotification,
|
|
369
347
|
hasMore,
|
|
370
348
|
threadHasMore,
|
|
371
349
|
} = props;
|
|
350
|
+
const {
|
|
351
|
+
EmptyStateIndicator,
|
|
352
|
+
MessageListLoadingIndicator: LoadingIndicator,
|
|
353
|
+
NetworkDownIndicator,
|
|
354
|
+
ScrollToBottomButton,
|
|
355
|
+
StickyHeader,
|
|
356
|
+
TypingIndicator,
|
|
357
|
+
TypingIndicatorContainer,
|
|
358
|
+
UnreadMessagesNotification,
|
|
359
|
+
} = useComponentsContext();
|
|
372
360
|
const [isUnreadNotificationOpen, setIsUnreadNotificationOpen] = useState<boolean>(false);
|
|
373
361
|
const { theme } = useTheme();
|
|
374
362
|
const styles = useStyles();
|
|
@@ -1306,7 +1294,7 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
|
|
|
1306
1294
|
)}
|
|
1307
1295
|
<View style={styles.stickyHeaderContainer}>
|
|
1308
1296
|
{messageListLengthAfterUpdate && StickyHeader ? (
|
|
1309
|
-
<StickyHeader date={stickyHeaderDate}
|
|
1297
|
+
<StickyHeader date={stickyHeaderDate} />
|
|
1310
1298
|
) : null}
|
|
1311
1299
|
</View>
|
|
1312
1300
|
{scrollToBottomButtonVisible ? (
|
|
@@ -1350,42 +1338,25 @@ export const MessageList = (props: MessageListProps) => {
|
|
|
1350
1338
|
channel,
|
|
1351
1339
|
channelUnreadStateStore,
|
|
1352
1340
|
disabled,
|
|
1353
|
-
EmptyStateIndicator,
|
|
1354
1341
|
enableMessageGroupingByUser,
|
|
1355
1342
|
error,
|
|
1356
1343
|
hideStickyDateHeader,
|
|
1357
1344
|
highlightedMessageId,
|
|
1358
1345
|
loadChannelAroundMessage,
|
|
1359
1346
|
loading,
|
|
1360
|
-
LoadingIndicator,
|
|
1361
1347
|
maximumMessageLimit,
|
|
1362
1348
|
markRead,
|
|
1363
|
-
NetworkDownIndicator,
|
|
1364
1349
|
reloadChannel,
|
|
1365
1350
|
scrollToFirstUnreadThreshold,
|
|
1366
1351
|
setChannelUnreadState,
|
|
1367
1352
|
setTargetedMessage,
|
|
1368
|
-
StickyHeader,
|
|
1369
1353
|
targetedMessage,
|
|
1370
1354
|
threadList,
|
|
1371
1355
|
} = useChannelContext();
|
|
1372
1356
|
const { client } = useChatContext();
|
|
1373
1357
|
const { readEvents } = useOwnCapabilitiesContext();
|
|
1374
|
-
const {
|
|
1375
|
-
|
|
1376
|
-
disableTypingIndicator,
|
|
1377
|
-
FlatList,
|
|
1378
|
-
InlineDateSeparator,
|
|
1379
|
-
InlineUnreadIndicator,
|
|
1380
|
-
Message,
|
|
1381
|
-
MessageSystem,
|
|
1382
|
-
myMessageTheme,
|
|
1383
|
-
ScrollToBottomButton,
|
|
1384
|
-
shouldShowUnreadUnderlay,
|
|
1385
|
-
TypingIndicator,
|
|
1386
|
-
TypingIndicatorContainer,
|
|
1387
|
-
UnreadMessagesNotification,
|
|
1388
|
-
} = useMessagesContext();
|
|
1358
|
+
const { disableTypingIndicator, FlatList, myMessageTheme, shouldShowUnreadUnderlay } =
|
|
1359
|
+
useMessagesContext();
|
|
1389
1360
|
const { messageInputFloating, messageInputHeightStore } = useMessageInputContext();
|
|
1390
1361
|
const { loadMore, loadMoreRecent, hasMore } = usePaginatedMessageListContext();
|
|
1391
1362
|
const { loadMoreRecentThread, loadMoreThread, threadHasMore, thread, threadInstance } =
|
|
@@ -1399,47 +1370,34 @@ export const MessageList = (props: MessageListProps) => {
|
|
|
1399
1370
|
channelUnreadStateStore,
|
|
1400
1371
|
client,
|
|
1401
1372
|
closePicker,
|
|
1402
|
-
DateHeader,
|
|
1403
1373
|
disabled,
|
|
1404
1374
|
disableTypingIndicator,
|
|
1405
|
-
EmptyStateIndicator,
|
|
1406
1375
|
enableMessageGroupingByUser,
|
|
1407
1376
|
error,
|
|
1408
1377
|
FlatList,
|
|
1409
1378
|
hideStickyDateHeader,
|
|
1410
1379
|
highlightedMessageId,
|
|
1411
|
-
InlineDateSeparator,
|
|
1412
|
-
InlineUnreadIndicator,
|
|
1413
1380
|
loadChannelAroundMessage,
|
|
1414
1381
|
loading,
|
|
1415
|
-
LoadingIndicator,
|
|
1416
1382
|
loadMore,
|
|
1417
1383
|
loadMoreRecent,
|
|
1418
1384
|
loadMoreRecentThread,
|
|
1419
1385
|
loadMoreThread,
|
|
1420
1386
|
markRead,
|
|
1421
1387
|
maximumMessageLimit,
|
|
1422
|
-
Message,
|
|
1423
1388
|
messageInputFloating,
|
|
1424
1389
|
messageInputHeightStore,
|
|
1425
|
-
MessageSystem,
|
|
1426
1390
|
myMessageTheme,
|
|
1427
|
-
NetworkDownIndicator,
|
|
1428
1391
|
readEvents,
|
|
1429
1392
|
reloadChannel,
|
|
1430
|
-
ScrollToBottomButton,
|
|
1431
1393
|
scrollToFirstUnreadThreshold,
|
|
1432
1394
|
setChannelUnreadState,
|
|
1433
1395
|
setTargetedMessage,
|
|
1434
1396
|
shouldShowUnreadUnderlay,
|
|
1435
|
-
StickyHeader,
|
|
1436
1397
|
targetedMessage,
|
|
1437
1398
|
thread,
|
|
1438
1399
|
threadInstance,
|
|
1439
1400
|
threadList,
|
|
1440
|
-
TypingIndicator,
|
|
1441
|
-
TypingIndicatorContainer,
|
|
1442
|
-
UnreadMessagesNotification,
|
|
1443
1401
|
hasMore,
|
|
1444
1402
|
threadHasMore,
|
|
1445
1403
|
}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
4
4
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
5
5
|
|
|
6
6
|
import { getDateString } from '../../utils/i18n/getDateString';
|
|
@@ -8,7 +8,7 @@ import { getDateString } from '../../utils/i18n/getDateString';
|
|
|
8
8
|
/**
|
|
9
9
|
* Props for the StickyHeader component.
|
|
10
10
|
*/
|
|
11
|
-
export type StickyHeaderProps =
|
|
11
|
+
export type StickyHeaderProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Date to be displayed in the sticky header.
|
|
14
14
|
*/
|
|
@@ -19,7 +19,8 @@ export type StickyHeaderProps = Pick<MessagesContextValue, 'DateHeader'> & {
|
|
|
19
19
|
dateString?: string | number;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const StickyHeader = ({ date,
|
|
22
|
+
export const StickyHeader = ({ date, dateString }: StickyHeaderProps) => {
|
|
23
|
+
const { DateHeader } = useComponentsContext();
|
|
23
24
|
const { t, tDateTimeParser } = useTranslationContext();
|
|
24
25
|
|
|
25
26
|
const stickyHeaderDateString = useMemo(() => {
|
|
@@ -5,11 +5,11 @@ import { ScrollView } from 'react-native-gesture-handler';
|
|
|
5
5
|
|
|
6
6
|
import { MessageActionType } from './MessageActionListItem';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
9
9
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
10
10
|
import { primitives } from '../../theme';
|
|
11
11
|
|
|
12
|
-
export type MessageActionListProps =
|
|
12
|
+
export type MessageActionListProps = {
|
|
13
13
|
/**
|
|
14
14
|
* Function to close the message actions bottom sheet
|
|
15
15
|
* @returns void
|
|
@@ -22,7 +22,8 @@ export type MessageActionListProps = Pick<MessagesContextValue, 'MessageActionLi
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export const MessageActionList = (props: MessageActionListProps) => {
|
|
25
|
-
const {
|
|
25
|
+
const { messageActions } = props;
|
|
26
|
+
const { MessageActionListItem } = useComponentsContext();
|
|
26
27
|
const {
|
|
27
28
|
theme: {
|
|
28
29
|
messageMenu: {
|
|
@@ -5,58 +5,46 @@ import { useWindowDimensions } from 'react-native';
|
|
|
5
5
|
import { MessageActionType } from './MessageActionListItem';
|
|
6
6
|
|
|
7
7
|
import { MessageContextValue } from '../../contexts/messageContext/MessageContext';
|
|
8
|
-
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
9
8
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
10
9
|
import { BottomSheetModal } from '../UIComponents/BottomSheetModal';
|
|
11
10
|
|
|
12
11
|
export type MessageMenuProps = PropsWithChildren<
|
|
13
|
-
Partial<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
visible: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Function to handle reaction on press
|
|
44
|
-
* @param reactionType
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
handleReaction?: (reactionType: string) => Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* The selected reaction
|
|
50
|
-
*/
|
|
51
|
-
selectedReaction?: string;
|
|
12
|
+
Partial<Pick<MessageContextValue, 'message'>> & {
|
|
13
|
+
/**
|
|
14
|
+
* Function to close the message actions bottom sheet
|
|
15
|
+
* @returns void
|
|
16
|
+
*/
|
|
17
|
+
dismissOverlay: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* An array of message actions to render
|
|
20
|
+
*/
|
|
21
|
+
messageActions: MessageActionType[];
|
|
22
|
+
/**
|
|
23
|
+
* Boolean to determine if there are message actions
|
|
24
|
+
*/
|
|
25
|
+
showMessageReactions: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Boolean to determine if the overlay is visible.
|
|
28
|
+
*/
|
|
29
|
+
visible: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Function to handle reaction on press
|
|
32
|
+
* @param reactionType
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
handleReaction?: (reactionType: string) => Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* The selected reaction
|
|
38
|
+
*/
|
|
39
|
+
selectedReaction?: string;
|
|
52
40
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
41
|
+
layout: {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
w: number;
|
|
45
|
+
h: number;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
60
48
|
>;
|
|
61
49
|
|
|
62
50
|
// TODO: V9: Either remove this or refactor it so that it's useful again, as its logic
|