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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_ChannelsContext","_ChatContext","_DebugContext","_ThemeContext","_hooks","_ChannelPreview","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StatusIndicator","_useChatContext","useChatContext","isOnline","styles","useStyles","_useChannelsContext","useChannelsContext","error","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_ChannelsContext","_ChatContext","_ComponentsContext","_DebugContext","_ThemeContext","_hooks","_ChannelPreview","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StatusIndicator","_useChatContext","useChatContext","isOnline","styles","useStyles","_useChannelsContext","useChannelsContext","error","loadingChannels","refreshList","_useComponentsContext","useComponentsContext","HeaderErrorIndicator","HeaderNetworkDownIndicator","jsx","View","style","statusIndicator","children","onPress","renderItem","_ref","item","ChannelPreview","channel","keyExtractor","cid","ChannelListViewWithContext","props","onEndReachedCalledDuringCurrentScrollRef","useRef","additionalFlatListProps","channelListInitialized","channels","forceUpdate","hasNextPage","loadingNextPage","loadMoreThreshold","loadNextPage","refreshing","reloadList","setFlatListRef","_useComponentsContext2","EmptyStateIndicator","FooterLoadingIndicator","ListHeaderComponent","LoadingErrorIndicator","LoadingIndicator","ChannelListLoadingIndicator","_useState","useState","_useState2","_slicedToArray2","loading","setLoading","debugRef","useDebugContext","useEffect","isDebugModeEnabled","__DEV__","current","setEventType","setSendEventParams","action","data","map","members","state","onEndReached","useStableCallback","listType","retry","jsxs","Fragment","FlatList","assign","contentContainerStyle","flatListContentContainer","extraData","ListEmptyComponent","ListFooterComponent","undefined","onEndReachedThreshold","onMomentumScrollBegin","onRefresh","ref","flatList","testID","ChannelListView","exports","_useChannelsContext2","displayName","_useTheme","useTheme","_useTheme$theme$chann","theme","channelListView","flatListContent","useMemo","StyleSheet","create","flex","flexGrow","left","position","right","top"],"sourceRoot":"../../../../src","sources":["components/ChannelList/ChannelListView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,gBAAA,GAAAF,OAAA;AAIA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AAAkE,IAAAS,WAAA,GAAAT,OAAA;AAAA,IAAAU,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAd,wBAAAc,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,e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,EAAC,YAAM;IACnB,OAAOC,uBAAU,CAACC,MAAM,CAAC;MACvBd,QAAQ,EAAA/F,MAAA,CAAAoF,MAAA;QAAI0B,IAAI,EAAE;MAAC,GAAKf,QAAQ,CAAE;MAClCT,wBAAwB,EAAAtF,MAAA,CAAAoF,MAAA;QACtB2B,QAAQ,EAAE;MAAC,GACRL,eAAe,CACnB;MACDhF,eAAe,EAAE;QAAEsF,IAAI,EAAE,CAAC;QAAEC,QAAQ,EAAE,UAAU;QAAEC,KAAK,EAAE,CAAC;QAAEC,GAAG,EAAE;MAAE;IACrE,CAAC,CAAC;EACJ,CAAC,EAAE,CAACpB,QAAQ,EAAEW,eAAe,CAAC,CAAC;AACjC,CAAC","ignoreList":[]}
|
|
@@ -7,41 +7,22 @@ var useCreateChannelsContext = exports.useCreateChannelsContext = function useCr
|
|
|
7
7
|
var additionalFlatListProps = _ref.additionalFlatListProps,
|
|
8
8
|
channelListInitialized = _ref.channelListInitialized,
|
|
9
9
|
channels = _ref.channels,
|
|
10
|
-
EmptyStateIndicator = _ref.EmptyStateIndicator,
|
|
11
10
|
error = _ref.error,
|
|
12
|
-
FooterLoadingIndicator = _ref.FooterLoadingIndicator,
|
|
13
11
|
forceUpdate = _ref.forceUpdate,
|
|
14
12
|
hasNextPage = _ref.hasNextPage,
|
|
15
|
-
HeaderErrorIndicator = _ref.HeaderErrorIndicator,
|
|
16
|
-
HeaderNetworkDownIndicator = _ref.HeaderNetworkDownIndicator,
|
|
17
|
-
ListHeaderComponent = _ref.ListHeaderComponent,
|
|
18
13
|
loadingChannels = _ref.loadingChannels,
|
|
19
|
-
LoadingErrorIndicator = _ref.LoadingErrorIndicator,
|
|
20
|
-
LoadingIndicator = _ref.LoadingIndicator,
|
|
21
14
|
loadingNextPage = _ref.loadingNextPage,
|
|
22
15
|
loadMoreThreshold = _ref.loadMoreThreshold,
|
|
23
16
|
loadNextPage = _ref.loadNextPage,
|
|
24
17
|
maxUnreadCount = _ref.maxUnreadCount,
|
|
25
18
|
numberOfSkeletons = _ref.numberOfSkeletons,
|
|
26
19
|
onSelect = _ref.onSelect,
|
|
27
|
-
Preview = _ref.Preview,
|
|
28
20
|
getChannelActionItems = _ref.getChannelActionItems,
|
|
29
|
-
PreviewAvatar = _ref.PreviewAvatar,
|
|
30
|
-
PreviewMessage = _ref.PreviewMessage,
|
|
31
|
-
PreviewMutedStatus = _ref.PreviewMutedStatus,
|
|
32
|
-
PreviewStatus = _ref.PreviewStatus,
|
|
33
|
-
PreviewTitle = _ref.PreviewTitle,
|
|
34
|
-
PreviewLastMessage = _ref.PreviewLastMessage,
|
|
35
|
-
PreviewTypingIndicator = _ref.PreviewTypingIndicator,
|
|
36
|
-
PreviewMessageDeliveryStatus = _ref.PreviewMessageDeliveryStatus,
|
|
37
|
-
PreviewUnreadCount = _ref.PreviewUnreadCount,
|
|
38
|
-
ChannelDetailsBottomSheet = _ref.ChannelDetailsBottomSheet,
|
|
39
21
|
swipeActionsEnabled = _ref.swipeActionsEnabled,
|
|
40
22
|
refreshing = _ref.refreshing,
|
|
41
23
|
refreshList = _ref.refreshList,
|
|
42
24
|
reloadList = _ref.reloadList,
|
|
43
25
|
setFlatListRef = _ref.setFlatListRef,
|
|
44
|
-
Skeleton = _ref.Skeleton,
|
|
45
26
|
mutedStatusPosition = _ref.mutedStatusPosition;
|
|
46
27
|
var channelValueString = channels == null ? void 0 : channels.map(function (channel) {
|
|
47
28
|
var _channel$data$name, _channel$data, _channel$id, _channel$state$unread, _channel$state;
|
|
@@ -55,44 +36,25 @@ var useCreateChannelsContext = exports.useCreateChannelsContext = function useCr
|
|
|
55
36
|
additionalFlatListProps: additionalFlatListProps,
|
|
56
37
|
channelListInitialized: channelListInitialized,
|
|
57
38
|
channels: channels,
|
|
58
|
-
EmptyStateIndicator: EmptyStateIndicator,
|
|
59
39
|
error: error,
|
|
60
|
-
FooterLoadingIndicator: FooterLoadingIndicator,
|
|
61
40
|
forceUpdate: forceUpdate,
|
|
62
41
|
hasNextPage: hasNextPage,
|
|
63
|
-
HeaderErrorIndicator: HeaderErrorIndicator,
|
|
64
|
-
HeaderNetworkDownIndicator: HeaderNetworkDownIndicator,
|
|
65
|
-
ListHeaderComponent: ListHeaderComponent,
|
|
66
42
|
loadingChannels: loadingChannels,
|
|
67
|
-
LoadingErrorIndicator: LoadingErrorIndicator,
|
|
68
|
-
LoadingIndicator: LoadingIndicator,
|
|
69
43
|
loadingNextPage: loadingNextPage,
|
|
70
44
|
loadMoreThreshold: loadMoreThreshold,
|
|
71
45
|
loadNextPage: loadNextPage,
|
|
72
46
|
maxUnreadCount: maxUnreadCount,
|
|
73
47
|
numberOfSkeletons: numberOfSkeletons,
|
|
74
48
|
onSelect: onSelect,
|
|
75
|
-
Preview: Preview,
|
|
76
49
|
getChannelActionItems: getChannelActionItems,
|
|
77
|
-
PreviewAvatar: PreviewAvatar,
|
|
78
|
-
PreviewMessage: PreviewMessage,
|
|
79
|
-
PreviewMutedStatus: PreviewMutedStatus,
|
|
80
|
-
PreviewStatus: PreviewStatus,
|
|
81
|
-
PreviewTitle: PreviewTitle,
|
|
82
|
-
PreviewUnreadCount: PreviewUnreadCount,
|
|
83
|
-
PreviewTypingIndicator: PreviewTypingIndicator,
|
|
84
|
-
PreviewMessageDeliveryStatus: PreviewMessageDeliveryStatus,
|
|
85
|
-
PreviewLastMessage: PreviewLastMessage,
|
|
86
|
-
ChannelDetailsBottomSheet: ChannelDetailsBottomSheet,
|
|
87
50
|
swipeActionsEnabled: swipeActionsEnabled,
|
|
88
51
|
refreshing: refreshing,
|
|
89
52
|
refreshList: refreshList,
|
|
90
53
|
reloadList: reloadList,
|
|
91
54
|
setFlatListRef: setFlatListRef,
|
|
92
|
-
Skeleton: Skeleton,
|
|
93
55
|
mutedStatusPosition: mutedStatusPosition
|
|
94
56
|
};
|
|
95
|
-
}, [channelValueString, error, forceUpdate, hasNextPage, loadingChannels, loadingNextPage, channelListInitialized,
|
|
57
|
+
}, [channelValueString, error, forceUpdate, hasNextPage, loadingChannels, loadingNextPage, channelListInitialized, swipeActionsEnabled, refreshing, mutedStatusPosition]);
|
|
96
58
|
return channelsContext;
|
|
97
59
|
};
|
|
98
60
|
//# sourceMappingURL=useCreateChannelsContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","useCreateChannelsContext","exports","_ref","additionalFlatListProps","channelListInitialized","channels","
|
|
1
|
+
{"version":3,"names":["_react","require","useCreateChannelsContext","exports","_ref","additionalFlatListProps","channelListInitialized","channels","error","forceUpdate","hasNextPage","loadingChannels","loadingNextPage","loadMoreThreshold","loadNextPage","maxUnreadCount","numberOfSkeletons","onSelect","getChannelActionItems","swipeActionsEnabled","refreshing","refreshList","reloadList","setFlatListRef","mutedStatusPosition","channelValueString","map","channel","_channel$data$name","_channel$data","_channel$id","_channel$state$unread","_channel$state","data","name","id","state","unreadCount","Object","values","members","member","_member$user","user","online","join","channelsContext","useMemo"],"sourceRoot":"../../../../../src","sources":["components/ChannelList/hooks/useCreateChannelsContext.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIO,IAAMC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAG,SAA3BA,wBAAwBA,CAAAE,IAAA,EAqBT;EAAA,IApB1BC,uBAAuB,GAAAD,IAAA,CAAvBC,uBAAuB;IACvBC,sBAAsB,GAAAF,IAAA,CAAtBE,sBAAsB;IACtBC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IACRC,KAAK,GAAAJ,IAAA,CAALI,KAAK;IACLC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IACXC,WAAW,GAAAN,IAAA,CAAXM,WAAW;IACXC,eAAe,GAAAP,IAAA,CAAfO,eAAe;IACfC,eAAe,GAAAR,IAAA,CAAfQ,eAAe;IACfC,iBAAiB,GAAAT,IAAA,CAAjBS,iBAAiB;IACjBC,YAAY,GAAAV,IAAA,CAAZU,YAAY;IACZC,cAAc,GAAAX,IAAA,CAAdW,cAAc;IACdC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EAAtBA,sBAAsB;MACtBC,QAAQ,EAARA,QAAQ;MACRC,KAAK,EAALA,KAAK;MACLC,WAAW,EAAXA,WAAW;MACXC,WAAW,EAAXA,WAAW;MACXC,eAAe,EAAfA,eAAe;MACfC,eAAe,EAAfA,eAAe;MACfC,iBAAiB,EAAjBA,iBAAiB;MACjBC,YAAY,EAAZA,YAAY;MACZC,cAAc,EAAdA,cAAc;MACdC,iBAAiB,EAAjBA,iBAAiB;MACjBC,QAAQ,EAARA,QAAQ;MACRC,qBAAqB,EAArBA,qBAAqB;MACrBC,mBAAmB,EAAnBA,mBAAmB;MACnBC,UAAU,EAAVA,UAAU;MACVC,WAAW,EAAXA,WAAW;MACXC,UAAU,EAAVA,UAAU;MACVC,cAAc,EAAdA,cAAc;MACdC,mBAAmB,EAAnBA;IACF,CAAC;EAAA,CAAC,EAEF,CACEC,kBAAkB,EAClBjB,KAAK,EACLC,WAAW,EACXC,WAAW,EACXC,eAAe,EACfC,eAAe,EACfN,sBAAsB,EACtBa,mBAAmB,EACnBC,UAAU,EACVI,mBAAmB,CAEvB,CAAC;EAED,OAAOsB,eAAe;AACxB,CAAC","ignoreList":[]}
|
|
@@ -9,6 +9,7 @@ var _ChannelPreviewMutedStatus = require("./ChannelPreviewMutedStatus");
|
|
|
9
9
|
var _ChannelPreviewTitle = require("./ChannelPreviewTitle");
|
|
10
10
|
var _useIsChannelMuted2 = require("./hooks/useIsChannelMuted");
|
|
11
11
|
var _BottomSheetContext = require("../../contexts/bottomSheetContext/BottomSheetContext");
|
|
12
|
+
var _ComponentsContext = require("../../contexts/componentsContext/ComponentsContext");
|
|
12
13
|
var _SwipeRegistryContext = require("../../contexts/swipeableContext/SwipeRegistryContext");
|
|
13
14
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
14
15
|
var _TranslationContext = require("../../contexts/translationContext/TranslationContext");
|
|
@@ -106,10 +107,10 @@ var keyExtractor = function keyExtractor(item) {
|
|
|
106
107
|
};
|
|
107
108
|
var ChannelDetailsBottomSheet = exports.ChannelDetailsBottomSheet = function ChannelDetailsBottomSheet(_ref4) {
|
|
108
109
|
var additionalFlatListProps = _ref4.additionalFlatListProps,
|
|
109
|
-
_ref4$ChannelDetailsH = _ref4.ChannelDetailsHeader,
|
|
110
|
-
ChannelDetailsHeaderComponent = _ref4$ChannelDetailsH === void 0 ? ChannelDetailsHeader : _ref4$ChannelDetailsH,
|
|
111
110
|
items = _ref4.items,
|
|
112
111
|
channel = _ref4.channel;
|
|
112
|
+
var _useComponentsContext = (0, _ComponentsContext.useComponentsContext)(),
|
|
113
|
+
ChannelDetailsHeaderComponent = _useComponentsContext.ChannelDetailsHeader;
|
|
113
114
|
var styles = useStyles();
|
|
114
115
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
115
116
|
children: [(0, _jsxRuntime.jsx)(ChannelDetailsHeaderComponent, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_ChannelPreviewMutedStatus","_ChannelPreviewTitle","_useIsChannelMuted2","_BottomSheetContext","_SwipeRegistryContext","_ThemeContext","_TranslationContext","_useStableCallback","_theme","_useChannelMembersState","_useChannelMuteActive","_useChannelOnlineMemberCount","_useIsDirectChat","_ChannelAvatar","_StreamBottomSheetModalFlatList","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChannelDetailsHeader","exports","_ref","channel","styles","useStyles","_useTranslationContex","useTranslationContext","members","useChannelMembersState","memberCount","useMemo","keys","length","onlineCount","useChannelOnlineMemberCount","isDirectChat","useIsDirectChat","_useIsChannelMuted","useIsChannelMuted","channelMuted","muted","directChatUserMuted","useChannelMuteActive","displayedMemberCount","displayedOnlineCount","membersAndOnlineLabel","count","jsxs","View","style","headerContainer","children","jsx","ChannelAvatar","size","metaContainer","titleContainer","ChannelPreviewTitle","ChannelPreviewMutedStatus","Text","headerMeta","ChannelActionItemView","_ref2","item","action","Icon","label","_useBottomSheetContex","useBottomSheetContext","close","swipableRegistry","useSwipeRegistryContext","_useTheme","useTheme","semantics","theme","onPress","useStableCallback","closeAll","Pressable","itemContainer","stroke","type","textSecondary","accentError","itemTextStandard","itemTextDestructive","renderChannelActionItem","_ref3","keyExtractor","id","ChannelDetailsBottomSheet","_ref4","additionalFlatListProps","_ref4$ChannelDetailsH","ChannelDetailsHeaderComponent","items","Fragment","StreamBottomSheetModalFlatList","assign","data","renderItem","contentContainerStyle","contentContainer","_useTheme2","_useTheme2$theme","_useTheme2$theme$chan","channelDetailsMenu","header","StyleSheet","create","flexGrow","backgroundColor","backgroundCoreElevation1","flexDirection","padding","primitives","spacingSm","gap","container","fontSize","typographyFontSizeSm","lineHeight","typographyLineHeightNormal","color","textTertiary","metaText","spacingXxs","alignItems","spacingXs","typographyFontSizeMd","textPrimary","standardText","destructiveText"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelDetailsBottomSheet.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAEA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,qBAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,mBAAA,GAAAT,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AAEA,IAAAY,uBAAA,GAAAZ,OAAA;AACA,IAAAa,qBAAA,GAAAb,OAAA;AACA,IAAAc,4BAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAf,OAAA;AAC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lC,gBAAgB,EAAA1E,MAAA,CAAAwF,MAAA;QACdqB,QAAQ,EAAEJ,iBAAU,CAACc,oBAAoB;QACzCR,UAAU,EAAEN,iBAAU,CAACO,0BAA0B;QACjDC,KAAK,EAAElD,SAAS,CAACyD;MAAW,GACzBpE,IAAI,CAACqE,YAAY,CACrB;MACD9C,mBAAmB,EAAA3E,MAAA,CAAAwF,MAAA;QACjBqB,QAAQ,EAAEJ,iBAAU,CAACc,oBAAoB;QACzCR,UAAU,EAAEN,iBAAU,CAACO,0BAA0B;QACjDC,KAAK,EAAElD,SAAS,CAACU;MAAW,GACzBrB,IAAI,CAACsE,eAAe;IAE3B,CAAC,CAAC;EAAA,GACJ,CACE9B,gBAAgB,EAChBK,MAAM,CAACW,SAAS,EAChBX,MAAM,CAACrD,aAAa,EACpBqD,MAAM,CAACkB,QAAQ,EACf/D,IAAI,CAACwD,SAAS,EACdxD,IAAI,CAACsE,eAAe,EACpBtE,IAAI,CAACqE,YAAY,EACjB1D,SAAS,CAACU,WAAW,EACrBV,SAAS,CAACuC,wBAAwB,EAClCvC,SAAS,CAACyD,WAAW,EACrBzD,SAAS,CAACmD,YAAY,CAE1B,CAAC;AACH,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_ChannelPreviewMutedStatus","_ChannelPreviewTitle","_useIsChannelMuted2","_BottomSheetContext","_ComponentsContext","_SwipeRegistryContext","_ThemeContext","_TranslationContext","_useStableCallback","_theme","_useChannelMembersState","_useChannelMuteActive","_useChannelOnlineMemberCount","_useIsDirectChat","_ChannelAvatar","_StreamBottomSheetModalFlatList","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChannelDetailsHeader","exports","_ref","channel","styles","useStyles","_useTranslationContex","useTranslationContext","members","useChannelMembersState","memberCount","useMemo","keys","length","onlineCount","useChannelOnlineMemberCount","isDirectChat","useIsDirectChat","_useIsChannelMuted","useIsChannelMuted","channelMuted","muted","directChatUserMuted","useChannelMuteActive","displayedMemberCount","displayedOnlineCount","membersAndOnlineLabel","count","jsxs","View","style","headerContainer","children","jsx","ChannelAvatar","size","metaContainer","titleContainer","ChannelPreviewTitle","ChannelPreviewMutedStatus","Text","headerMeta","ChannelActionItemView","_ref2","item","action","Icon","label","_useBottomSheetContex","useBottomSheetContext","close","swipableRegistry","useSwipeRegistryContext","_useTheme","useTheme","semantics","theme","onPress","useStableCallback","closeAll","Pressable","itemContainer","stroke","type","textSecondary","accentError","itemTextStandard","itemTextDestructive","renderChannelActionItem","_ref3","keyExtractor","id","ChannelDetailsBottomSheet","_ref4","additionalFlatListProps","items","_useComponentsContext","useComponentsContext","ChannelDetailsHeaderComponent","Fragment","StreamBottomSheetModalFlatList","assign","data","renderItem","contentContainerStyle","contentContainer","_useTheme2","_useTheme2$theme","_useTheme2$theme$chan","channelDetailsMenu","header","StyleSheet","create","flexGrow","backgroundColor","backgroundCoreElevation1","flexDirection","padding","primitives","spacingSm","gap","container","fontSize","typographyFontSizeSm","lineHeight","typographyLineHeightNormal","color","textTertiary","metaText","spacingXxs","alignItems","spacingXs","typographyFontSizeMd","textPrimary","standardText","destructiveText"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelDetailsBottomSheet.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,0BAAA,GAAAF,OAAA;AAIA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAEA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,qBAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AAC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AU,CAACW;MAClB,CAAC;MACDhD,aAAa,EAAArE,MAAA,CAAAyF,MAAA;QACXe,aAAa,EAAE,KAAK;QACpBc,UAAU,EAAE,QAAQ;QACpBb,OAAO,EAAEC,iBAAU,CAACC,SAAS;QAC7BC,GAAG,EAAEF,iBAAU,CAACa;MAAS,GACtBnE,IAAI,CAACyD,SAAS,CAClB;MACDnC,gBAAgB,EAAA1E,MAAA,CAAAyF,MAAA;QACdqB,QAAQ,EAAEJ,iBAAU,CAACc,oBAAoB;QACzCR,UAAU,EAAEN,iBAAU,CAACO,0BAA0B;QACjDC,KAAK,EAAEnD,SAAS,CAAC0D;MAAW,GACzBrE,IAAI,CAACsE,YAAY,CACrB;MACD/C,mBAAmB,EAAA3E,MAAA,CAAAyF,MAAA;QACjBqB,QAAQ,EAAEJ,iBAAU,CAACc,oBAAoB;QACzCR,UAAU,EAAEN,iBAAU,CAACO,0BAA0B;QACjDC,KAAK,EAAEnD,SAAS,CAACU;MAAW,GACzBrB,IAAI,CAACuE,eAAe;IAE3B,CAAC,CAAC;EAAA,GACJ,CACE9B,gBAAgB,EAChBK,MAAM,CAACW,SAAS,EAChBX,MAAM,CAACtD,aAAa,EACpBsD,MAAM,CAACkB,QAAQ,EACfhE,IAAI,CAACyD,SAAS,EACdzD,IAAI,CAACuE,eAAe,EACpBvE,IAAI,CAACsE,YAAY,EACjB3D,SAAS,CAACU,WAAW,EACrBV,SAAS,CAACwC,wBAAwB,EAClCxC,SAAS,CAAC0D,WAAW,EACrB1D,SAAS,CAACoD,YAAY,CAE1B,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ var _ChannelSwipableWrapper = require("./ChannelSwipableWrapper");
|
|
|
8
8
|
var _useChannelPreviewData = require("./hooks/useChannelPreviewData");
|
|
9
9
|
var _ChannelsContext = require("../../contexts/channelsContext/ChannelsContext");
|
|
10
10
|
var _ChatContext = require("../../contexts/chatContext/ChatContext");
|
|
11
|
+
var _ComponentsContext = require("../../contexts/componentsContext/ComponentsContext");
|
|
11
12
|
var _useTranslatedMessage = require("../../hooks/useTranslatedMessage");
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
var _this = this,
|
|
@@ -15,17 +16,15 @@ var _this = this,
|
|
|
15
16
|
var ChannelPreview = exports.ChannelPreview = function ChannelPreview(props) {
|
|
16
17
|
var channel = props.channel,
|
|
17
18
|
propClient = props.client,
|
|
18
|
-
propForceUpdate = props.forceUpdate
|
|
19
|
-
propPreview = props.Preview;
|
|
19
|
+
propForceUpdate = props.forceUpdate;
|
|
20
20
|
var _useChatContext = (0, _ChatContext.useChatContext)(),
|
|
21
21
|
contextClient = _useChatContext.client;
|
|
22
22
|
var _useChannelsContext = (0, _ChannelsContext.useChannelsContext)(),
|
|
23
|
-
contextPreview = _useChannelsContext.Preview,
|
|
24
|
-
ChannelDetailsBottomSheet = _useChannelsContext.ChannelDetailsBottomSheet,
|
|
25
23
|
getChannelActionItems = _useChannelsContext.getChannelActionItems,
|
|
26
24
|
swipeActionsEnabled = _useChannelsContext.swipeActionsEnabled;
|
|
25
|
+
var _useComponentsContext = (0, _ComponentsContext.useComponentsContext)(),
|
|
26
|
+
Preview = _useComponentsContext.Preview;
|
|
27
27
|
var client = propClient || contextClient;
|
|
28
|
-
var Preview = propPreview || contextPreview;
|
|
29
28
|
var _useChannelPreviewDat = (0, _useChannelPreviewData.useChannelPreviewData)(channel, client, propForceUpdate),
|
|
30
29
|
muted = _useChannelPreviewDat.muted,
|
|
31
30
|
unread = _useChannelPreviewDat.unread,
|
|
@@ -42,7 +41,6 @@ var ChannelPreview = exports.ChannelPreview = function ChannelPreview(props) {
|
|
|
42
41
|
}
|
|
43
42
|
return (0, _jsxRuntime.jsx)(_ChannelSwipableWrapper.ChannelSwipableWrapper, {
|
|
44
43
|
channel: channel,
|
|
45
|
-
ChannelDetailsBottomSheet: ChannelDetailsBottomSheet,
|
|
46
44
|
getChannelActionItems: getChannelActionItems,
|
|
47
45
|
children: (0, _jsxRuntime.jsx)(Preview, {
|
|
48
46
|
channel: channel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_ChannelSwipableWrapper","_useChannelPreviewData","_ChannelsContext","_ChatContext","_useTranslatedMessage","_jsxRuntime","_this","_jsxFileName","ChannelPreview","exports","props","channel","propClient","client","propForceUpdate","forceUpdate","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_ChannelSwipableWrapper","_useChannelPreviewData","_ChannelsContext","_ChatContext","_ComponentsContext","_useTranslatedMessage","_jsxRuntime","_this","_jsxFileName","ChannelPreview","exports","props","channel","propClient","client","propForceUpdate","forceUpdate","_useChatContext","useChatContext","contextClient","_useChannelsContext","useChannelsContext","getChannelActionItems","swipeActionsEnabled","_useComponentsContext","useComponentsContext","Preview","_useChannelPreviewDat","useChannelPreviewData","muted","unread","lastMessage","translatedLastMessage","useTranslatedMessage","message","jsx","ChannelSwipableWrapper","children"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreview.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAEA,IAAAG,gBAAA,GAAAH,OAAA;AAIA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAAwE,IAAAO,WAAA,GAAAP,OAAA;AAAA,IAAAQ,KAAA;EAAAC,YAAA;AAUjE,IAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAIE,KAA0B,EAAK;EAC5D,IAAQC,OAAO,GAAuDD,KAAK,CAAnEC,OAAO;IAAUC,UAAU,GAAmCF,KAAK,CAA1DG,MAAM;IAA2BC,eAAe,GAAKJ,KAAK,CAAtCK,WAAW;EAEhD,IAAAC,eAAA,G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AC;AAE7B,CAAC","ignoreList":[]}
|
|
@@ -4,14 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
exports.ChannelPreviewMessage = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _reactNative = require("react-native");
|
|
7
|
-
var _ChannelLastMessagePreview = require("./ChannelLastMessagePreview");
|
|
8
|
-
var _ChannelMessagePreviewDeliveryStatus = require("./ChannelMessagePreviewDeliveryStatus");
|
|
9
|
-
var _ChannelPreviewTypingIndicator = require("./ChannelPreviewTypingIndicator");
|
|
10
7
|
var _useChannelPreviewDraftMessage = require("./hooks/useChannelPreviewDraftMessage");
|
|
11
8
|
var _useChannelPreviewPollLabel = require("./hooks/useChannelPreviewPollLabel");
|
|
12
9
|
var _useChannelTypingState = require("./hooks/useChannelTypingState");
|
|
13
|
-
var _ChannelsContext = require("../../contexts/channelsContext/ChannelsContext");
|
|
14
10
|
var _ChatContext = require("../../contexts/chatContext/ChatContext");
|
|
11
|
+
var _ComponentsContext = require("../../contexts/componentsContext/ComponentsContext");
|
|
15
12
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
16
13
|
var _TranslationContext = require("../../contexts/translationContext/TranslationContext");
|
|
17
14
|
var _poll = require("../../icons/poll");
|
|
@@ -26,20 +23,11 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
26
23
|
var ChannelPreviewMessage = exports.ChannelPreviewMessage = function ChannelPreviewMessage(props) {
|
|
27
24
|
var _lastMessage$poll_id, _client$user2, _channel$data;
|
|
28
25
|
var channel = props.channel,
|
|
29
|
-
lastMessage = props.lastMessage
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
_props$PreviewLastMes = props.PreviewLastMessage,
|
|
35
|
-
PreviewLastMessageProp = _props$PreviewLastMes === void 0 ? _ChannelLastMessagePreview.ChannelLastMessagePreview : _props$PreviewLastMes;
|
|
36
|
-
var _useChannelsContext = (0, _ChannelsContext.useChannelsContext)(),
|
|
37
|
-
PreviewTypingIndicatorContext = _useChannelsContext.PreviewTypingIndicator,
|
|
38
|
-
PreviewMessageDeliveryStatusContext = _useChannelsContext.PreviewMessageDeliveryStatus,
|
|
39
|
-
PreviewLastMessageContext = _useChannelsContext.PreviewLastMessage;
|
|
40
|
-
var PreviewTypingIndicator = PreviewTypingIndicatorProp || PreviewTypingIndicatorContext;
|
|
41
|
-
var PreviewMessageDeliveryStatus = PreviewMessageDeliveryStatusProp || PreviewMessageDeliveryStatusContext;
|
|
42
|
-
var PreviewLastMessage = PreviewLastMessageProp || PreviewLastMessageContext;
|
|
26
|
+
lastMessage = props.lastMessage;
|
|
27
|
+
var _useComponentsContext = (0, _ComponentsContext.useComponentsContext)(),
|
|
28
|
+
PreviewTypingIndicator = _useComponentsContext.PreviewTypingIndicator,
|
|
29
|
+
PreviewMessageDeliveryStatus = _useComponentsContext.PreviewMessageDeliveryStatus,
|
|
30
|
+
PreviewLastMessage = _useComponentsContext.PreviewLastMessage;
|
|
43
31
|
var _useTheme = (0, _ThemeContext.useTheme)(),
|
|
44
32
|
semantics = _useTheme.theme.semantics;
|
|
45
33
|
var isMessageDeleted = (lastMessage == null ? void 0 : lastMessage.type) === 'deleted';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useChannelPreviewDraftMessage","_useChannelPreviewPollLabel","_useChannelTypingState","_ChatContext","_ComponentsContext","_ThemeContext","_TranslationContext","_poll","_theme","_utils","_ui","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChannelPreviewMessage","exports","props","_lastMessage$poll_id","_client$user2","_channel$data","channel","lastMessage","_useComponentsContext","useComponentsContext","PreviewTypingIndicator","PreviewMessageDeliveryStatus","PreviewLastMessage","_useTheme","useTheme","semantics","theme","isMessageDeleted","type","styles","useStyles","_useChatContext","useChatContext","client","_useTranslationContex","useTranslationContext","_useChannelTypingStat","useChannelTypingState","usersTyping","draftMessage","useChannelPreviewDraftMessage","pollLabel","useChannelPreviewPollLabel","pollId","poll_id","membersWithoutSelf","useMemo","values","state","members","filter","member","_member$user","_client$user","user","id","isFailedMessage","status","MessageStatusTypes","FAILED","showMessageDeliveryStatus","length","jsx","jsxs","View","style","container","children","Text","draftText","message","subtitle","color","textTertiary","PollIcon","height","width","stroke","textSecondary","ellipsizeMode","numberOfLines","ErrorBadge","size","errorText","data","name","_ref","_ref$isMessageDeleted","_useTheme2","_useTheme2$theme","channelPreview","StyleSheet","create","assign","flexDirection","alignItems","gap","primitives","spacingXxs","flexShrink","fontSize","typographyFontSizeSm","fontWeight","typographyFontWeightRegular","includeFontPadding","lineHeight","typographyLineHeightNormal","accentPrimary","typographyFontWeightSemiBold","accentError"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewMessage.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,8BAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAEA,IAAAI,sBAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AAEA,IAAAS,KAAA,GAAAT,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,GAAA,GAAAZ,OAAA;AAAmC,IAAAa,WAAA,GAAAb,OAAA;AAAA,IAAAc,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OA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List":[]}
|
|
@@ -4,17 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
exports.ChannelPreviewView = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _reactNative = require("react-native");
|
|
7
|
-
var _ChannelPreviewMessage = require("./ChannelPreviewMessage");
|
|
8
|
-
var _ChannelPreviewMutedStatus = require("./ChannelPreviewMutedStatus");
|
|
9
|
-
var _ChannelPreviewStatus = require("./ChannelPreviewStatus");
|
|
10
|
-
var _ChannelPreviewTitle = require("./ChannelPreviewTitle");
|
|
11
|
-
var _ChannelPreviewUnreadCount = require("./ChannelPreviewUnreadCount");
|
|
12
7
|
var _ChannelsContext = require("../../contexts/channelsContext/ChannelsContext");
|
|
8
|
+
var _ComponentsContext = require("../../contexts/componentsContext/ComponentsContext");
|
|
13
9
|
var _SwipeRegistryContext = require("../../contexts/swipeableContext/SwipeRegistryContext");
|
|
14
10
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
15
11
|
var _hooks = require("../../hooks");
|
|
16
12
|
var _theme = require("../../theme");
|
|
17
|
-
var _ChannelAvatar = require("../ui/Avatar/ChannelAvatar");
|
|
18
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
14
|
var _this = this,
|
|
20
15
|
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/ChannelPreview/ChannelPreviewView.tsx";
|
|
@@ -26,21 +21,16 @@ var ChannelPreviewViewWithContext = function ChannelPreviewViewWithContext(props
|
|
|
26
21
|
maxUnreadCount = props.maxUnreadCount,
|
|
27
22
|
muted = props.muted,
|
|
28
23
|
onSelect = props.onSelect,
|
|
29
|
-
_props$PreviewAvatar = props.PreviewAvatar,
|
|
30
|
-
PreviewAvatar = _props$PreviewAvatar === void 0 ? _ChannelAvatar.ChannelAvatar : _props$PreviewAvatar,
|
|
31
|
-
_props$PreviewMessage = props.PreviewMessage,
|
|
32
|
-
PreviewMessage = _props$PreviewMessage === void 0 ? _ChannelPreviewMessage.ChannelPreviewMessage : _props$PreviewMessage,
|
|
33
|
-
_props$PreviewMutedSt = props.PreviewMutedStatus,
|
|
34
|
-
PreviewMutedStatus = _props$PreviewMutedSt === void 0 ? _ChannelPreviewMutedStatus.ChannelPreviewMutedStatus : _props$PreviewMutedSt,
|
|
35
|
-
_props$PreviewStatus = props.PreviewStatus,
|
|
36
|
-
PreviewStatus = _props$PreviewStatus === void 0 ? _ChannelPreviewStatus.ChannelPreviewStatus : _props$PreviewStatus,
|
|
37
|
-
_props$PreviewTitle = props.PreviewTitle,
|
|
38
|
-
PreviewTitle = _props$PreviewTitle === void 0 ? _ChannelPreviewTitle.ChannelPreviewTitle : _props$PreviewTitle,
|
|
39
|
-
_props$PreviewUnreadC = props.PreviewUnreadCount,
|
|
40
|
-
PreviewUnreadCount = _props$PreviewUnreadC === void 0 ? _ChannelPreviewUnreadCount.ChannelPreviewUnreadCount : _props$PreviewUnreadC,
|
|
41
24
|
unread = props.unread,
|
|
42
25
|
mutedStatusPosition = props.mutedStatusPosition,
|
|
43
26
|
lastMessage = props.lastMessage;
|
|
27
|
+
var _useComponentsContext = (0, _ComponentsContext.useComponentsContext)(),
|
|
28
|
+
PreviewAvatar = _useComponentsContext.PreviewAvatar,
|
|
29
|
+
PreviewMessage = _useComponentsContext.PreviewMessage,
|
|
30
|
+
PreviewMutedStatus = _useComponentsContext.PreviewMutedStatus,
|
|
31
|
+
PreviewStatus = _useComponentsContext.PreviewStatus,
|
|
32
|
+
PreviewTitle = _useComponentsContext.PreviewTitle,
|
|
33
|
+
PreviewUnreadCount = _useComponentsContext.PreviewUnreadCount;
|
|
44
34
|
var _useTheme = (0, _ThemeContext.useTheme)(),
|
|
45
35
|
_useTheme$theme = _useTheme.theme,
|
|
46
36
|
_useTheme$theme$chann = _useTheme$theme.channelPreview,
|
|
@@ -116,21 +106,11 @@ var ChannelPreviewView = exports.ChannelPreviewView = function ChannelPreviewVie
|
|
|
116
106
|
forceUpdate = _useChannelsContext.forceUpdate,
|
|
117
107
|
maxUnreadCount = _useChannelsContext.maxUnreadCount,
|
|
118
108
|
onSelect = _useChannelsContext.onSelect,
|
|
119
|
-
PreviewMessage = _useChannelsContext.PreviewMessage,
|
|
120
|
-
PreviewMutedStatus = _useChannelsContext.PreviewMutedStatus,
|
|
121
|
-
PreviewStatus = _useChannelsContext.PreviewStatus,
|
|
122
|
-
PreviewTitle = _useChannelsContext.PreviewTitle,
|
|
123
|
-
PreviewUnreadCount = _useChannelsContext.PreviewUnreadCount,
|
|
124
109
|
mutedStatusPosition = _useChannelsContext.mutedStatusPosition;
|
|
125
110
|
return (0, _jsxRuntime.jsx)(MemoizedChannelPreviewViewWithContext, Object.assign({
|
|
126
111
|
forceUpdate: forceUpdate,
|
|
127
112
|
maxUnreadCount: maxUnreadCount,
|
|
128
113
|
onSelect: onSelect,
|
|
129
|
-
PreviewMessage: PreviewMessage,
|
|
130
|
-
PreviewMutedStatus: PreviewMutedStatus,
|
|
131
|
-
PreviewStatus: PreviewStatus,
|
|
132
|
-
PreviewTitle: PreviewTitle,
|
|
133
|
-
PreviewUnreadCount: PreviewUnreadCount,
|
|
134
114
|
mutedStatusPosition: mutedStatusPosition
|
|
135
115
|
}, props));
|
|
136
116
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_ChannelsContext","_ComponentsContext","_SwipeRegistryContext","_ThemeContext","_hooks","_theme","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChannelPreviewViewWithContext","props","channel","formatLatestMessageDate","maxUnreadCount","muted","onSelect","unread","mutedStatusPosition","lastMessage","_useComponentsContext","useComponentsContext","PreviewAvatar","PreviewMessage","PreviewMutedStatus","PreviewStatus","PreviewTitle","PreviewUnreadCount","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","container","contentContainer","lowerRow","statusContainer","upperRow","titleContainer","wrapper","semantics","styles","useStyles","swipeRegistry","useSwipeRegistryContext","onPress","useStableCallback","hasOpen","closeAll","jsx","View","style","children","jsxs","Pressable","_ref","pressed","backgroundColor","backgroundUtilityPressed","testID","size","id","MemoizedChannelPreviewViewWithContext","React","memo","ChannelPreviewView","exports","_useChannelsContext","useChannelsContext","forceUpdate","assign","displayName","_useTheme2","useMemo","StyleSheet","create","alignItems","flexDirection","padding","primitives","spacingSm","borderRadius","radiusLg","gap","spacingMd","flex","spacingXxs","justifyContent","innerRow","spacingXs","flexShrink","borderBottomWidth","borderBottomColor","borderCoreSubtle"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewView.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,gBAAA,GAAAF,OAAA;AAIA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAAyC,IAAAQ,WAAA,GAAAR,OAAA;AAAA,IAAAS,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,O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MACDlD,eAAe,EAAE;QACfwC,UAAU,EAAE,QAAQ;QACpBC,aAAa,EAAE,KAAK;QACpBM,GAAG,EAAEJ,iBAAU,CAACU;MAClB,CAAC;MACDnD,cAAc,EAAE;QACduC,aAAa,EAAE,KAAK;QACpBD,UAAU,EAAE,QAAQ;QACpBO,GAAG,EAAEJ,iBAAU,CAACO,UAAU;QAC1BI,UAAU,EAAE;MACd,CAAC;MACDnD,OAAO,EAAE;QACP8C,IAAI,EAAE,CAAC;QACPP,OAAO,EAAEC,iBAAU,CAACO,UAAU;QAC9BK,iBAAiB,EAAE,CAAC;QACpBC,iBAAiB,EAAEpD,SAAS,CAACqD;MAC/B;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACrD,SAAS,CAAC,CAAC;AACjB,CAAC","ignoreList":[]}
|
|
@@ -6,8 +6,8 @@ exports.OpenChannelDetailsButton = exports.ChannelSwipableWrapper = void 0;
|
|
|
6
6
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _ChannelDetailsBottomSheet = require("./ChannelDetailsBottomSheet");
|
|
10
9
|
var _useIsChannelMuted = require("./hooks/useIsChannelMuted");
|
|
10
|
+
var _ComponentsContext = require("../../contexts/componentsContext/ComponentsContext");
|
|
11
11
|
var _SwipeRegistryContext = require("../../contexts/swipeableContext/SwipeRegistryContext");
|
|
12
12
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
13
13
|
var _icons = require("../../icons");
|
|
@@ -30,10 +30,10 @@ var OpenChannelDetailsButton = exports.OpenChannelDetailsButton = function OpenC
|
|
|
30
30
|
var ChannelSwipableWrapper = exports.ChannelSwipableWrapper = function ChannelSwipableWrapper(_ref) {
|
|
31
31
|
var channel = _ref.channel,
|
|
32
32
|
getChannelActionItems = _ref.getChannelActionItems,
|
|
33
|
-
_ref$ChannelDetailsBo = _ref.ChannelDetailsBottomSheet,
|
|
34
|
-
ChannelDetailsBottomSheetComponent = _ref$ChannelDetailsBo === void 0 ? _ChannelDetailsBottomSheet.ChannelDetailsBottomSheet : _ref$ChannelDetailsBo,
|
|
35
33
|
_swipableProps = _ref.swipableProps,
|
|
36
34
|
children = _ref.children;
|
|
35
|
+
var _useComponentsContext = (0, _ComponentsContext.useComponentsContext)(),
|
|
36
|
+
ChannelDetailsBottomSheetComponent = _useComponentsContext.ChannelDetailsBottomSheet;
|
|
37
37
|
var _useState = (0, _react.useState)(false),
|
|
38
38
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
39
|
channelDetailSheetOpen = _useState2[0],
|