stream-chat-react-native-core 9.8.0 → 9.8.1-beta.2
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/a11y/a11yUtils.js +7 -2
- package/lib/commonjs/a11y/a11yUtils.js.map +1 -1
- package/lib/commonjs/a11y/hooks/useAccessibilityActivateAction.js.map +1 -1
- package/lib/commonjs/a11y/hooks/useAccessibilityServiceEnabled.js +3 -3
- package/lib/commonjs/a11y/hooks/useAccessibilityServiceEnabled.js.map +1 -1
- package/lib/commonjs/a11y/hooks/useReducedMotionPreference.js +2 -2
- package/lib/commonjs/a11y/hooks/useReducedMotionPreference.js.map +1 -1
- package/lib/commonjs/a11y/hooks/useSetAccessibilityFocus.js +2 -1
- package/lib/commonjs/a11y/hooks/useSetAccessibilityFocus.js.map +1 -1
- package/lib/commonjs/components/Accessibility/hooks/useIncomingMessageAnnouncements.js +6 -2
- package/lib/commonjs/components/Accessibility/hooks/useIncomingMessageAnnouncements.js.map +1 -1
- package/lib/commonjs/components/Attachment/Attachment.js +8 -5
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/AttachmentFileUploadProgressIndicator.js +1 -1
- package/lib/commonjs/components/Attachment/AttachmentFileUploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/Attachment/Audio/AudioAttachment.js +11 -10
- package/lib/commonjs/components/Attachment/Audio/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +2 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileIcon.js +14 -7
- package/lib/commonjs/components/Attachment/FileIcon.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +10 -9
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js +1 -1
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/UnsupportedAttachment.js +2 -1
- package/lib/commonjs/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js +1 -1
- package/lib/commonjs/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +2 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -3
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +2 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +8 -4
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +8 -4
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +9 -8
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/EnhancedMentionIcon.js +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/EnhancedMentionIcon.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +101 -77
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js +3 -2
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +5 -2
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +12 -7
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js +3 -2
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +12 -8
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/ChannelDetails.js +2 -2
- package/lib/commonjs/components/ChannelDetails/ChannelDetails.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsActionsSection.js +2 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsActionsSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsMemberSection.js +2 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsMemberSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +10 -7
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsForm.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsForm.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/AddMemberSearchResultItem.js +2 -1
- package/lib/commonjs/components/ChannelDetails/components/members/AddMemberSearchResultItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersForm.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersForm.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +3 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberList.js +6 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +10 -6
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +3 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js +3 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/members/useMemberRoles.js +7 -5
- package/lib/commonjs/components/ChannelDetails/hooks/members/useMemberRoles.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsActionItems.js +2 -2
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsActionItems.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +6 -2
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useEditChannelImage.js +3 -2
- package/lib/commonjs/components/ChannelDetails/hooks/useEditChannelImage.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js +10 -3
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useMediaList.js +7 -2
- package/lib/commonjs/components/ChannelDetails/hooks/useMediaList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useUserActivityStatus.js +3 -3
- package/lib/commonjs/components/ChannelDetails/hooks/useUserActivityStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +2 -2
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListView.js +2 -2
- package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js +9 -5
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelOnlineMemberCount.js +2 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelOnlineMemberCount.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +7 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +6 -5
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/utils/index.js +12 -6
- package/lib/commonjs/components/ChannelList/hooks/utils/index.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelLastMessagePreview.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelLastMessagePreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +16 -8
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +10 -6
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +7 -4
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTypingIndicator.js +13 -8
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTypingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +3 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js +10 -7
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +9 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +6 -2
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +10 -8
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelTypingState.js +15 -6
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelTypingState.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js +3 -2
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelPinned.js +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelPinned.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +9 -5
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +2 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useClientMutedUsers.js +7 -4
- package/lib/commonjs/components/Chat/hooks/useClientMutedUsers.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useInitializeOfflineDb.js +5 -2
- package/lib/commonjs/components/Chat/hooks/useInitializeOfflineDb.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +5 -4
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +5 -2
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +5 -4
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useCurrentImageHeight.js +2 -2
- package/lib/commonjs/components/ImageGallery/hooks/useCurrentImageHeight.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js +238 -247
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +32 -21
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +3 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -3
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +3 -3
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageAuthor.js +4 -3
- package/lib/commonjs/components/Message/MessageItemView/MessageAuthor.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +23 -12
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js +2 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +10 -5
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageRepliesAvatars.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageRepliesAvatars.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js +7 -3
- package/lib/commonjs/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js +11 -7
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListBottom.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListBottom.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +9 -8
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +2 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListTop.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListTop.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/generateMarkdownText.js +5 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/generateMarkdownText.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/parseLinks.test.js +2 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/parseLinks.test.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js +72 -48
- package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/Message/MessageOverlayWrapper.js +3 -2
- package/lib/commonjs/components/Message/MessageOverlayWrapper.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +14 -7
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +11 -6
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js +3 -2
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js +7 -5
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js +7 -5
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js +12 -5
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/Message/utils/measureInWindow.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js +2 -1
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposer.js +4 -2
- package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +4 -2
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -2
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +2 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js +1 -1
- package/lib/commonjs/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +2 -2
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioRecorder.js +2 -2
- package/lib/commonjs/components/MessageInput/hooks/useAudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCooldownRemaining.js +2 -1
- package/lib/commonjs/components/MessageInput/hooks/useCooldownRemaining.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageFlashList.js +55 -38
- package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +57 -40
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +7 -4
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageDateSeparator.js +3 -3
- package/lib/commonjs/components/MessageList/hooks/useMessageDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +5 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js +1 -1
- package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js +4 -2
- package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js +4 -3
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +4 -3
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +6 -2
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +7 -6
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +8 -5
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +25 -14
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsAvatar.js +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsAvatar.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +2 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/ReactionButton.js +2 -2
- package/lib/commonjs/components/MessageMenu/ReactionButton.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js +2 -2
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/hooks/useMessageOwnReactions.js +7 -3
- package/lib/commonjs/components/MessageMenu/hooks/useMessageOwnReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/utils/toUnicodeScalarString.js +7 -1
- package/lib/commonjs/components/MessageMenu/utils/toUnicodeScalarString.js.map +1 -1
- package/lib/commonjs/components/Notifications/Notification.js +7 -3
- package/lib/commonjs/components/Notifications/Notification.js.map +1 -1
- package/lib/commonjs/components/Notifications/NotificationList.js +7 -3
- package/lib/commonjs/components/Notifications/NotificationList.js.map +1 -1
- package/lib/commonjs/components/Notifications/NotificationTargetContext.js +1 -1
- package/lib/commonjs/components/Notifications/NotificationTargetContext.js.map +1 -1
- package/lib/commonjs/components/Notifications/hooks/useNotificationApi.js +20 -14
- package/lib/commonjs/components/Notifications/hooks/useNotificationApi.js.map +1 -1
- package/lib/commonjs/components/Notifications/hooks/useNotificationListController.js +6 -4
- package/lib/commonjs/components/Notifications/hooks/useNotificationListController.js.map +1 -1
- package/lib/commonjs/components/Notifications/hooks/useNotifications.js +4 -4
- package/lib/commonjs/components/Notifications/hooks/useNotifications.js.map +1 -1
- package/lib/commonjs/components/Notifications/hooks/useSystemNotifications.js +2 -2
- package/lib/commonjs/components/Notifications/hooks/useSystemNotifications.js.map +1 -1
- package/lib/commonjs/components/Notifications/notificationFilters.js +4 -1
- package/lib/commonjs/components/Notifications/notificationFilters.js.map +1 -1
- package/lib/commonjs/components/Notifications/notificationTarget.js +24 -10
- package/lib/commonjs/components/Notifications/notificationTarget.js.map +1 -1
- package/lib/commonjs/components/Notifications/notificationTranslations.js +5 -3
- package/lib/commonjs/components/Notifications/notificationTranslations.js.map +1 -1
- package/lib/commonjs/components/Poll/CreatePollContent.js +4 -3
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/commonjs/components/Poll/Poll.js +2 -1
- package/lib/commonjs/components/Poll/Poll.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +21 -16
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +10 -7
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +6 -4
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollButtons.js +3 -2
- package/lib/commonjs/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +4 -3
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +15 -12
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +5 -4
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +4 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js +2 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js.map +1 -1
- package/lib/commonjs/components/Poll/hook/useIsPollCreatedByCurrentUser.js +1 -1
- package/lib/commonjs/components/Poll/hook/useIsPollCreatedByCurrentUser.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +8 -6
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +8 -6
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollVoteToggle.js +2 -1
- package/lib/commonjs/components/Poll/hooks/usePollVoteToggle.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js +3 -3
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +27 -19
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js +7 -7
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +8 -4
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js +2 -2
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js +19 -16
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItemMessagePreview.js +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItemMessagePreview.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +16 -8
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/commonjs/components/UIComponents/ImageBackground.js +2 -2
- package/lib/commonjs/components/UIComponents/ImageBackground.js.map +1 -1
- package/lib/commonjs/components/UIComponents/PortalWhileClosingView.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SafeAreaViewWrapper.js +1 -1
- package/lib/commonjs/components/UIComponents/SafeAreaViewWrapper.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SearchInput.js +4 -3
- package/lib/commonjs/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/commonjs/components/UIComponents/StreamBottomSheetModalFlatList.js +6 -3
- package/lib/commonjs/components/UIComponents/StreamBottomSheetModalFlatList.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SvgAwareImage.js +5 -5
- package/lib/commonjs/components/UIComponents/SvgAwareImage.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SwipableWrapper.js +9 -8
- package/lib/commonjs/components/UIComponents/SwipableWrapper.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/Avatar.js +2 -2
- package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js +10 -6
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js +5 -5
- package/lib/commonjs/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/commonjs/components/ui/Button/Button.js +3 -3
- package/lib/commonjs/components/ui/Button/Button.js.map +1 -1
- package/lib/commonjs/components/ui/GiphyChip.js +2 -1
- package/lib/commonjs/components/ui/GiphyChip.js.map +1 -1
- package/lib/commonjs/components/ui/Input/Input.js +4 -3
- package/lib/commonjs/components/ui/Input/Input.js.map +1 -1
- package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js +5 -2
- package/lib/commonjs/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/audioPlayerContext/AudioPlayerContext.js +3 -2
- package/lib/commonjs/contexts/audioPlayerContext/AudioPlayerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +1 -1
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js +1 -1
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelMemberListContext/ChannelMemberListContext.js +1 -1
- package/lib/commonjs/contexts/channelMemberListContext/ChannelMemberListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js +1 -1
- package/lib/commonjs/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +5 -3
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +17 -8
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageComposer.js +2 -2
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageComposer.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +3 -3
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/screenReaderContext/ScreenReaderContext.js +1 -1
- package/lib/commonjs/contexts/screenReaderContext/ScreenReaderContext.js.map +1 -1
- package/lib/commonjs/contexts/swipeableContext/SwipeRegistryContext.js +20 -8
- package/lib/commonjs/contexts/swipeableContext/SwipeRegistryContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/ThemeContext.js +1 -1
- package/lib/commonjs/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActionItems.js +41 -30
- package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActions.js +44 -37
- package/lib/commonjs/hooks/actions/useChannelActions.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +21 -14
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useUserActions.js +8 -8
- package/lib/commonjs/hooks/actions/useUserActions.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useGroupedAttachments.js +1 -1
- package/lib/commonjs/hooks/messagePreview/useGroupedAttachments.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js +13 -6
- package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js +10 -9
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js +30 -26
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/commonjs/hooks/useAfterKeyboardOpenCallback.js +2 -1
- package/lib/commonjs/hooks/useAfterKeyboardOpenCallback.js.map +1 -1
- package/lib/commonjs/hooks/useAppStateListener.js +5 -4
- package/lib/commonjs/hooks/useAppStateListener.js.map +1 -1
- package/lib/commonjs/hooks/useAttachmentPickerBottomSheet.js +4 -2
- package/lib/commonjs/hooks/useAttachmentPickerBottomSheet.js.map +1 -1
- package/lib/commonjs/hooks/useAudioPlayer.js +9 -9
- package/lib/commonjs/hooks/useAudioPlayer.js.map +1 -1
- package/lib/commonjs/hooks/useCanAddMembersToChannel.js +4 -1
- package/lib/commonjs/hooks/useCanAddMembersToChannel.js.map +1 -1
- package/lib/commonjs/hooks/useCanEditChannel.js +4 -1
- package/lib/commonjs/hooks/useCanEditChannel.js.map +1 -1
- package/lib/commonjs/hooks/useChannelImage.js +4 -1
- package/lib/commonjs/hooks/useChannelImage.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMemberCount.js +4 -1
- package/lib/commonjs/hooks/useChannelMemberCount.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMuteActive.js +6 -2
- package/lib/commonjs/hooks/useChannelMuteActive.js.map +1 -1
- package/lib/commonjs/hooks/useChannelName.js +4 -1
- package/lib/commonjs/hooks/useChannelName.js.map +1 -1
- package/lib/commonjs/hooks/useChannelOwnCapabilities.js +4 -1
- package/lib/commonjs/hooks/useChannelOwnCapabilities.js.map +1 -1
- package/lib/commonjs/hooks/useIsChannelMember.js +4 -1
- package/lib/commonjs/hooks/useIsChannelMember.js.map +1 -1
- package/lib/commonjs/hooks/useIsDirectChat.js +4 -1
- package/lib/commonjs/hooks/useIsDirectChat.js.map +1 -1
- package/lib/commonjs/hooks/usePendingAttachmentUpload.js +4 -3
- package/lib/commonjs/hooks/usePendingAttachmentUpload.js.map +1 -1
- package/lib/commonjs/hooks/usePrunableMessageList.js +6 -2
- package/lib/commonjs/hooks/usePrunableMessageList.js.map +1 -1
- package/lib/commonjs/hooks/useQueryReminders.js +29 -12
- package/lib/commonjs/hooks/useQueryReminders.js.map +1 -1
- package/lib/commonjs/hooks/useStateStore.js +3 -3
- package/lib/commonjs/hooks/useStateStore.js.map +1 -1
- package/lib/commonjs/icons/Retry.js +4 -3
- package/lib/commonjs/icons/Retry.js.map +1 -1
- package/lib/commonjs/icons/archive.js +2 -2
- package/lib/commonjs/icons/archive.js.map +1 -1
- package/lib/commonjs/icons/arrow-up-right.js +3 -2
- package/lib/commonjs/icons/arrow-up-right.js.map +1 -1
- package/lib/commonjs/icons/arrow-up.js +4 -4
- package/lib/commonjs/icons/arrow-up.js.map +1 -1
- package/lib/commonjs/icons/audio.js +4 -3
- package/lib/commonjs/icons/audio.js.map +1 -1
- package/lib/commonjs/icons/bell.js +3 -2
- package/lib/commonjs/icons/bell.js.map +1 -1
- package/lib/commonjs/icons/bolt.js +4 -3
- package/lib/commonjs/icons/bolt.js.map +1 -1
- package/lib/commonjs/icons/camera.js +2 -2
- package/lib/commonjs/icons/camera.js.map +1 -1
- package/lib/commonjs/icons/checkmark-1.js +4 -3
- package/lib/commonjs/icons/checkmark-1.js.map +1 -1
- package/lib/commonjs/icons/checkmark.js +4 -3
- package/lib/commonjs/icons/checkmark.js.map +1 -1
- package/lib/commonjs/icons/checks.js +4 -3
- package/lib/commonjs/icons/checks.js.map +1 -1
- package/lib/commonjs/icons/chevron-left.js +2 -2
- package/lib/commonjs/icons/chevron-left.js.map +1 -1
- package/lib/commonjs/icons/chevron-right.js +2 -2
- package/lib/commonjs/icons/chevron-right.js.map +1 -1
- package/lib/commonjs/icons/clock.js +4 -3
- package/lib/commonjs/icons/clock.js.map +1 -1
- package/lib/commonjs/icons/command.js +2 -2
- package/lib/commonjs/icons/command.js.map +1 -1
- package/lib/commonjs/icons/copy.js +2 -2
- package/lib/commonjs/icons/copy.js.map +1 -1
- package/lib/commonjs/icons/delete.js +4 -3
- package/lib/commonjs/icons/delete.js.map +1 -1
- package/lib/commonjs/icons/edit.js +4 -3
- package/lib/commonjs/icons/edit.js.map +1 -1
- package/lib/commonjs/icons/emoji-add-1.js +4 -3
- package/lib/commonjs/icons/emoji-add-1.js.map +1 -1
- package/lib/commonjs/icons/emoji.js +4 -3
- package/lib/commonjs/icons/emoji.js.map +1 -1
- package/lib/commonjs/icons/exclamation-circle-fill.js +4 -3
- package/lib/commonjs/icons/exclamation-circle-fill.js.map +1 -1
- package/lib/commonjs/icons/exclamation-mark-fill.js +4 -3
- package/lib/commonjs/icons/exclamation-mark-fill.js.map +1 -1
- package/lib/commonjs/icons/exclamation-triangle-fill.js +4 -3
- package/lib/commonjs/icons/exclamation-triangle-fill.js.map +1 -1
- package/lib/commonjs/icons/file.js +4 -3
- package/lib/commonjs/icons/file.js.map +1 -1
- package/lib/commonjs/icons/flag.js +2 -2
- package/lib/commonjs/icons/flag.js.map +1 -1
- package/lib/commonjs/icons/folder.js +4 -3
- package/lib/commonjs/icons/folder.js.map +1 -1
- package/lib/commonjs/icons/gallery.js +4 -3
- package/lib/commonjs/icons/gallery.js.map +1 -1
- package/lib/commonjs/icons/image.js +4 -3
- package/lib/commonjs/icons/image.js.map +1 -1
- package/lib/commonjs/icons/info.js +4 -3
- package/lib/commonjs/icons/info.js.map +1 -1
- package/lib/commonjs/icons/link.js +2 -2
- package/lib/commonjs/icons/link.js.map +1 -1
- package/lib/commonjs/icons/loading.js +3 -2
- package/lib/commonjs/icons/loading.js.map +1 -1
- package/lib/commonjs/icons/location.js +4 -3
- package/lib/commonjs/icons/location.js.map +1 -1
- package/lib/commonjs/icons/lock.js +4 -3
- package/lib/commonjs/icons/lock.js.map +1 -1
- package/lib/commonjs/icons/megaphone.js +4 -3
- package/lib/commonjs/icons/megaphone.js.map +1 -1
- package/lib/commonjs/icons/message-bubble.js +2 -2
- package/lib/commonjs/icons/message-bubble.js.map +1 -1
- package/lib/commonjs/icons/minus-circle.js +4 -3
- package/lib/commonjs/icons/minus-circle.js.map +1 -1
- package/lib/commonjs/icons/minus.js +2 -2
- package/lib/commonjs/icons/minus.js.map +1 -1
- package/lib/commonjs/icons/more.js +4 -3
- package/lib/commonjs/icons/more.js.map +1 -1
- package/lib/commonjs/icons/mute.js +4 -3
- package/lib/commonjs/icons/mute.js.map +1 -1
- package/lib/commonjs/icons/no-sign.js +4 -3
- package/lib/commonjs/icons/no-sign.js.map +1 -1
- package/lib/commonjs/icons/pause-fill.js +4 -3
- package/lib/commonjs/icons/pause-fill.js.map +1 -1
- package/lib/commonjs/icons/pin.js +4 -3
- package/lib/commonjs/icons/pin.js.map +1 -1
- package/lib/commonjs/icons/play-fill.js +2 -2
- package/lib/commonjs/icons/play-fill.js.map +1 -1
- package/lib/commonjs/icons/plus.js +2 -2
- package/lib/commonjs/icons/plus.js.map +1 -1
- package/lib/commonjs/icons/poll.js +4 -3
- package/lib/commonjs/icons/poll.js.map +1 -1
- package/lib/commonjs/icons/refresh.js +4 -3
- package/lib/commonjs/icons/refresh.js.map +1 -1
- package/lib/commonjs/icons/reorder.js +4 -3
- package/lib/commonjs/icons/reorder.js.map +1 -1
- package/lib/commonjs/icons/save.js +4 -3
- package/lib/commonjs/icons/save.js.map +1 -1
- package/lib/commonjs/icons/search.js +4 -3
- package/lib/commonjs/icons/search.js.map +1 -1
- package/lib/commonjs/icons/send.js +4 -3
- package/lib/commonjs/icons/send.js.map +1 -1
- package/lib/commonjs/icons/shield.js +4 -3
- package/lib/commonjs/icons/shield.js.map +1 -1
- package/lib/commonjs/icons/stop-fill.js +4 -3
- package/lib/commonjs/icons/stop-fill.js.map +1 -1
- package/lib/commonjs/icons/thread.js +4 -3
- package/lib/commonjs/icons/thread.js.map +1 -1
- package/lib/commonjs/icons/unlock.js +4 -3
- package/lib/commonjs/icons/unlock.js.map +1 -1
- package/lib/commonjs/icons/unpin.js +4 -3
- package/lib/commonjs/icons/unpin.js.map +1 -1
- package/lib/commonjs/icons/user-add.js +4 -3
- package/lib/commonjs/icons/user-add.js.map +1 -1
- package/lib/commonjs/icons/user-remove.js +4 -3
- package/lib/commonjs/icons/user-remove.js.map +1 -1
- package/lib/commonjs/icons/users.js +4 -3
- package/lib/commonjs/icons/users.js.map +1 -1
- package/lib/commonjs/icons/utils/base.js +3 -2
- package/lib/commonjs/icons/utils/base.js.map +1 -1
- package/lib/commonjs/icons/video-fill.js +4 -3
- package/lib/commonjs/icons/video-fill.js.map +1 -1
- package/lib/commonjs/icons/video.js +4 -3
- package/lib/commonjs/icons/video.js.map +1 -1
- package/lib/commonjs/icons/voice.js +4 -3
- package/lib/commonjs/icons/voice.js.map +1 -1
- package/lib/commonjs/icons/x-circle.js +4 -3
- package/lib/commonjs/icons/x-circle.js.map +1 -1
- package/lib/commonjs/icons/xmark-1.js +4 -3
- package/lib/commonjs/icons/xmark-1.js.map +1 -1
- package/lib/commonjs/icons/xmark.js +4 -3
- package/lib/commonjs/icons/xmark.js.map +1 -1
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/middlewares/attachments.js +7 -5
- package/lib/commonjs/middlewares/attachments.js.map +1 -1
- package/lib/commonjs/middlewares/emojiControl.js +55 -70
- package/lib/commonjs/middlewares/emojiControl.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +8 -3
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/mock-builders/api/initiateClientWithChannels.js +1 -1
- package/lib/commonjs/mock-builders/api/initiateClientWithChannels.js.map +1 -1
- package/lib/commonjs/mock-builders/attachments.js +12 -9
- package/lib/commonjs/mock-builders/attachments.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/channel.js +3 -2
- package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
- package/lib/commonjs/native.js +8 -2
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/nativeMultipartUpload.js +15 -13
- package/lib/commonjs/nativeMultipartUpload.js.map +1 -1
- package/lib/commonjs/state-store/attachment-picker-store.js +14 -22
- package/lib/commonjs/state-store/attachment-picker-store.js.map +1 -1
- package/lib/commonjs/state-store/audio-player-pool.js +64 -80
- package/lib/commonjs/state-store/audio-player-pool.js.map +1 -1
- package/lib/commonjs/state-store/audio-player.js +276 -300
- package/lib/commonjs/state-store/audio-player.js.map +1 -1
- package/lib/commonjs/state-store/audio-recorder-manager.js +121 -140
- package/lib/commonjs/state-store/audio-recorder-manager.js.map +1 -1
- package/lib/commonjs/state-store/channel-unread-state.js +14 -20
- package/lib/commonjs/state-store/channel-unread-state.js.map +1 -1
- package/lib/commonjs/state-store/edit-channel-details-store.js +22 -31
- package/lib/commonjs/state-store/edit-channel-details-store.js.map +1 -1
- package/lib/commonjs/state-store/image-gallery-state-store.js +148 -162
- package/lib/commonjs/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/commonjs/state-store/message-input-height-store.js +10 -16
- package/lib/commonjs/state-store/message-input-height-store.js.map +1 -1
- package/lib/commonjs/state-store/message-list-prev-next-state.js +27 -33
- package/lib/commonjs/state-store/message-list-prev-next-state.js.map +1 -1
- package/lib/commonjs/state-store/message-overlay-store.js +23 -11
- package/lib/commonjs/state-store/message-overlay-store.js.map +1 -1
- package/lib/commonjs/state-store/selection-store.js +42 -54
- package/lib/commonjs/state-store/selection-store.js.map +1 -1
- package/lib/commonjs/state-store/signal-store.js +11 -19
- package/lib/commonjs/state-store/signal-store.js.map +1 -1
- package/lib/commonjs/state-store/video-player-pool.js +61 -77
- package/lib/commonjs/state-store/video-player-pool.js.map +1 -1
- package/lib/commonjs/state-store/video-player.js +119 -148
- package/lib/commonjs/state-store/video-player.js.map +1 -1
- package/lib/commonjs/store/OfflineDB.js +86 -94
- package/lib/commonjs/store/OfflineDB.js.map +1 -1
- package/lib/commonjs/store/SqliteClient.js +224 -236
- package/lib/commonjs/store/SqliteClient.js.map +1 -1
- package/lib/commonjs/store/apis/addPendingTask.js +2 -2
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/channelExists.js +1 -1
- package/lib/commonjs/store/apis/channelExists.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteDraft.js +1 -1
- package/lib/commonjs/store/apis/deleteDraft.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js +1 -1
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/dropPendingTasks.js +1 -1
- package/lib/commonjs/store/apis/dropPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -2
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +1 -1
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getDraft.js +3 -3
- package/lib/commonjs/store/apis/getDraft.js.map +1 -1
- package/lib/commonjs/store/apis/getDraftsForChannels.js +7 -3
- package/lib/commonjs/store/apis/getDraftsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -2
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js +1 -1
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReactions.js +1 -1
- package/lib/commonjs/store/apis/getReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js +1 -1
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js +1 -1
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +1 -1
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectActiveLocationsForChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectActiveLocationsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -2
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectDraftMessageFromDraft.js +1 -1
- package/lib/commonjs/store/apis/queries/selectDraftMessageFromDraft.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectDraftMessageFromDraftForChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectDraftMessageFromDraftForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessageById.js +1 -1
- package/lib/commonjs/store/apis/queries/selectMessageById.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +5 -4
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/softDeleteMessage.js +1 -1
- package/lib/commonjs/store/apis/softDeleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updateMessage.js +1 -1
- package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updatePendingTask.js +1 -1
- package/lib/commonjs/store/apis/updatePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/updateReaction.js +1 -1
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +12 -4
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertDraft.js +1 -1
- package/lib/commonjs/store/apis/upsertDraft.js.map +1 -1
- package/lib/commonjs/store/apis/upsertLocation.js +1 -1
- package/lib/commonjs/store/apis/upsertLocation.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js +2 -2
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js +2 -2
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertPoll.js +1 -1
- package/lib/commonjs/store/apis/upsertPoll.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js +2 -2
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js +1 -1
- package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/commonjs/store/mappers/mapDraftToStorable.js +1 -1
- package/lib/commonjs/store/mappers/mapDraftToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReactionToStorable.js +1 -1
- package/lib/commonjs/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReadToStorable.js +1 -1
- package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +5 -2
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js +3 -2
- package/lib/commonjs/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
- package/lib/commonjs/test-utils/BetterSqlite.js +35 -34
- package/lib/commonjs/test-utils/BetterSqlite.js.map +1 -1
- package/lib/commonjs/theme/topologicalResolution.js +2 -1
- package/lib/commonjs/theme/topologicalResolution.js.map +1 -1
- package/lib/commonjs/types/react-native-compat.js +4 -0
- package/lib/commonjs/types/react-native-compat.js.map +1 -0
- package/lib/commonjs/utils/addReactionToLocalState.js +1 -1
- package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
- package/lib/commonjs/utils/createGenerateVideoThumbnails.js +2 -1
- package/lib/commonjs/utils/createGenerateVideoThumbnails.js.map +1 -1
- package/lib/commonjs/utils/getResizedImageUrl.js +1 -1
- package/lib/commonjs/utils/getResizedImageUrl.js.map +1 -1
- package/lib/commonjs/utils/getUrlOfImageAttachment.js +2 -1
- package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/commonjs/utils/i18n/Streami18n.js +187 -214
- package/lib/commonjs/utils/i18n/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/installNativeMultipartAdapter.js +18 -9
- package/lib/commonjs/utils/installNativeMultipartAdapter.js.map +1 -1
- package/lib/commonjs/utils/isRNVersionGreaterThanOrEqualTo.js +5 -3
- package/lib/commonjs/utils/isRNVersionGreaterThanOrEqualTo.js.map +1 -1
- package/lib/commonjs/utils/patchMessageTextCommand.js +2 -1
- package/lib/commonjs/utils/patchMessageTextCommand.js.map +1 -1
- package/lib/commonjs/utils/removeReactionFromLocalState.js +5 -4
- package/lib/commonjs/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/commonjs/utils/utils.js +18 -10
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/a11y/a11yUtils.js +7 -2
- package/lib/module/a11y/a11yUtils.js.map +1 -1
- package/lib/module/a11y/hooks/useAccessibilityActivateAction.js.map +1 -1
- package/lib/module/a11y/hooks/useAccessibilityServiceEnabled.js +3 -3
- package/lib/module/a11y/hooks/useAccessibilityServiceEnabled.js.map +1 -1
- package/lib/module/a11y/hooks/useReducedMotionPreference.js +2 -2
- package/lib/module/a11y/hooks/useReducedMotionPreference.js.map +1 -1
- package/lib/module/a11y/hooks/useSetAccessibilityFocus.js +2 -1
- package/lib/module/a11y/hooks/useSetAccessibilityFocus.js.map +1 -1
- package/lib/module/components/Accessibility/hooks/useIncomingMessageAnnouncements.js +6 -2
- package/lib/module/components/Accessibility/hooks/useIncomingMessageAnnouncements.js.map +1 -1
- package/lib/module/components/Attachment/Attachment.js +8 -5
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/AttachmentFileUploadProgressIndicator.js +1 -1
- package/lib/module/components/Attachment/AttachmentFileUploadProgressIndicator.js.map +1 -1
- package/lib/module/components/Attachment/Audio/AudioAttachment.js +11 -10
- package/lib/module/components/Attachment/Audio/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +2 -1
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/FileIcon.js +14 -7
- package/lib/module/components/Attachment/FileIcon.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +10 -9
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/UnsupportedAttachment.js +2 -1
- package/lib/module/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreview.js.map +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js +1 -1
- package/lib/module/components/Attachment/UrlPreview/URLPreviewCompact.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +2 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +4 -3
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +2 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +8 -4
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +8 -4
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +9 -8
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/EnhancedMentionIcon.js +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/EnhancedMentionIcon.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +101 -77
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useChannelDataState.js +3 -2
- package/lib/module/components/Channel/hooks/useChannelDataState.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +5 -2
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +12 -7
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js +3 -2
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useMessageListPagination.js +12 -8
- package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/module/components/ChannelDetails/ChannelDetails.js +2 -2
- package/lib/module/components/ChannelDetails/ChannelDetails.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsActionsSection.js +2 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsActionsSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsMemberSection.js +2 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsMemberSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +10 -7
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsForm.js +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsForm.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/AddMemberSearchResultItem.js +2 -1
- package/lib/module/components/ChannelDetails/components/members/AddMemberSearchResultItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersForm.js +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersForm.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +3 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberList.js +6 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +10 -6
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +3 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js +3 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/members/useMemberRoles.js +7 -5
- package/lib/module/components/ChannelDetails/hooks/members/useMemberRoles.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsActionItems.js +2 -2
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsActionItems.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +6 -2
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useEditChannelImage.js +3 -2
- package/lib/module/components/ChannelDetails/hooks/useEditChannelImage.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js +10 -3
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useMediaList.js +7 -2
- package/lib/module/components/ChannelDetails/hooks/useMediaList.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useUserActivityStatus.js +3 -3
- package/lib/module/components/ChannelDetails/hooks/useUserActivityStatus.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +2 -2
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListView.js +2 -2
- package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js +9 -5
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelOnlineMemberCount.js +2 -1
- package/lib/module/components/ChannelList/hooks/useChannelOnlineMemberCount.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +7 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +6 -5
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/utils/index.js +12 -6
- package/lib/module/components/ChannelList/hooks/utils/index.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelLastMessagePreview.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelLastMessagePreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +16 -8
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +10 -6
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +7 -4
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTypingIndicator.js +13 -8
- package/lib/module/components/ChannelPreview/ChannelPreviewTypingIndicator.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js +3 -3
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelSwipableWrapper.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js +10 -7
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +9 -3
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +6 -2
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +10 -8
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelTypingState.js +15 -6
- package/lib/module/components/ChannelPreview/hooks/useChannelTypingState.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js +3 -2
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelPinned.js +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelPinned.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +9 -5
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +2 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/module/components/Chat/hooks/useClientMutedUsers.js +7 -4
- package/lib/module/components/Chat/hooks/useClientMutedUsers.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useInitializeOfflineDb.js +5 -2
- package/lib/module/components/Chat/hooks/useInitializeOfflineDb.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +5 -4
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +5 -2
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +5 -4
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useCurrentImageHeight.js +2 -2
- package/lib/module/components/ImageGallery/hooks/useCurrentImageHeight.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js +238 -247
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleView.js.map +1 -1
- package/lib/module/components/Message/Message.js +32 -21
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +3 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +4 -3
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +3 -3
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageAuthor.js +4 -3
- package/lib/module/components/Message/MessageItemView/MessageAuthor.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageContent.js +23 -12
- package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageFooter.js +2 -1
- package/lib/module/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageHeader.js +2 -2
- package/lib/module/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageItemView.js +10 -5
- package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageRepliesAvatars.js +1 -1
- package/lib/module/components/Message/MessageItemView/MessageRepliesAvatars.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageTextContainer.js +7 -3
- package/lib/module/components/Message/MessageItemView/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js +11 -7
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js +2 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListBottom.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +9 -8
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +2 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js +2 -2
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListTop.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/utils/generateMarkdownText.js +5 -1
- package/lib/module/components/Message/MessageItemView/utils/generateMarkdownText.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/utils/parseLinks.test.js +2 -1
- package/lib/module/components/Message/MessageItemView/utils/parseLinks.test.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/utils/renderText.js +72 -48
- package/lib/module/components/Message/MessageItemView/utils/renderText.js.map +1 -1
- package/lib/module/components/Message/MessageOverlayWrapper.js +3 -2
- package/lib/module/components/Message/MessageOverlayWrapper.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js +14 -7
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +11 -6
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageData.js +3 -2
- package/lib/module/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js +7 -5
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageReadData.js +7 -5
- package/lib/module/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js +12 -5
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/Message/utils/measureInWindow.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js +2 -1
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/MessageComposer.js +4 -2
- package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js +4 -2
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +2 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js +2 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +2 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +2 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +2 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -2
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +2 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/LinkPreviewList.js +1 -1
- package/lib/module/components/MessageInput/components/LinkPreviewList.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/index.js +2 -2
- package/lib/module/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioRecorder.js +2 -2
- package/lib/module/components/MessageInput/hooks/useAudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCooldownRemaining.js +2 -1
- package/lib/module/components/MessageInput/hooks/useCooldownRemaining.js.map +1 -1
- package/lib/module/components/MessageList/MessageFlashList.js +55 -38
- package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +57 -40
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/UnreadMessagesNotification.js +7 -4
- package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageDateSeparator.js +3 -3
- package/lib/module/components/MessageList/hooks/useMessageDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +5 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js +1 -1
- package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js +4 -2
- package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/module/components/MessageList/utils/filterTypingUsers.js +4 -3
- package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +4 -3
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +6 -2
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +7 -6
- package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +8 -5
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +25 -14
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsAvatar.js +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsAvatar.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +2 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/MessageMenu/ReactionButton.js +2 -2
- package/lib/module/components/MessageMenu/ReactionButton.js.map +1 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js +2 -2
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/hooks/useMessageOwnReactions.js +7 -3
- package/lib/module/components/MessageMenu/hooks/useMessageOwnReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/utils/toUnicodeScalarString.js +7 -1
- package/lib/module/components/MessageMenu/utils/toUnicodeScalarString.js.map +1 -1
- package/lib/module/components/Notifications/Notification.js +7 -3
- package/lib/module/components/Notifications/Notification.js.map +1 -1
- package/lib/module/components/Notifications/NotificationList.js +7 -3
- package/lib/module/components/Notifications/NotificationList.js.map +1 -1
- package/lib/module/components/Notifications/NotificationTargetContext.js +1 -1
- package/lib/module/components/Notifications/NotificationTargetContext.js.map +1 -1
- package/lib/module/components/Notifications/hooks/useNotificationApi.js +20 -14
- package/lib/module/components/Notifications/hooks/useNotificationApi.js.map +1 -1
- package/lib/module/components/Notifications/hooks/useNotificationListController.js +6 -4
- package/lib/module/components/Notifications/hooks/useNotificationListController.js.map +1 -1
- package/lib/module/components/Notifications/hooks/useNotifications.js +4 -4
- package/lib/module/components/Notifications/hooks/useNotifications.js.map +1 -1
- package/lib/module/components/Notifications/hooks/useSystemNotifications.js +2 -2
- package/lib/module/components/Notifications/hooks/useSystemNotifications.js.map +1 -1
- package/lib/module/components/Notifications/notificationFilters.js +4 -1
- package/lib/module/components/Notifications/notificationFilters.js.map +1 -1
- package/lib/module/components/Notifications/notificationTarget.js +24 -10
- package/lib/module/components/Notifications/notificationTarget.js.map +1 -1
- package/lib/module/components/Notifications/notificationTranslations.js +5 -3
- package/lib/module/components/Notifications/notificationTranslations.js.map +1 -1
- package/lib/module/components/Poll/CreatePollContent.js +4 -3
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/module/components/Poll/Poll.js +2 -1
- package/lib/module/components/Poll/Poll.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollOptions.js +21 -16
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +10 -7
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/PollAnswersList.js +6 -4
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/module/components/Poll/components/PollButtons.js +3 -2
- package/lib/module/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +4 -3
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +15 -12
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +5 -4
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResults.js +4 -1
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollVote.js +2 -1
- package/lib/module/components/Poll/components/PollResults/PollVote.js.map +1 -1
- package/lib/module/components/Poll/hook/useIsPollCreatedByCurrentUser.js +1 -1
- package/lib/module/components/Poll/hook/useIsPollCreatedByCurrentUser.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +8 -6
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +8 -6
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollVoteToggle.js +2 -1
- package/lib/module/components/Poll/hooks/usePollVoteToggle.js.map +1 -1
- package/lib/module/components/ProgressControl/WaveProgressBar.js +3 -3
- package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +27 -19
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/Thread.js +7 -7
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +8 -4
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js +2 -2
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js +19 -16
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItemMessagePreview.js +1 -1
- package/lib/module/components/ThreadList/ThreadListItemMessagePreview.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +16 -8
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/module/components/UIComponents/ImageBackground.js +2 -2
- package/lib/module/components/UIComponents/ImageBackground.js.map +1 -1
- package/lib/module/components/UIComponents/PortalWhileClosingView.js.map +1 -1
- package/lib/module/components/UIComponents/SafeAreaViewWrapper.js +1 -1
- package/lib/module/components/UIComponents/SafeAreaViewWrapper.js.map +1 -1
- package/lib/module/components/UIComponents/SearchInput.js +4 -3
- package/lib/module/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/module/components/UIComponents/StreamBottomSheetModalFlatList.js +6 -3
- package/lib/module/components/UIComponents/StreamBottomSheetModalFlatList.js.map +1 -1
- package/lib/module/components/UIComponents/SvgAwareImage.js +5 -5
- package/lib/module/components/UIComponents/SvgAwareImage.js.map +1 -1
- package/lib/module/components/UIComponents/SwipableWrapper.js +9 -8
- package/lib/module/components/UIComponents/SwipableWrapper.js.map +1 -1
- package/lib/module/components/ui/Avatar/Avatar.js +2 -2
- package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/ui/Avatar/ChannelAvatar.js +10 -6
- package/lib/module/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/module/components/ui/Avatar/UserAvatar.js +5 -5
- package/lib/module/components/ui/Avatar/UserAvatar.js.map +1 -1
- package/lib/module/components/ui/Button/Button.js +3 -3
- package/lib/module/components/ui/Button/Button.js.map +1 -1
- package/lib/module/components/ui/GiphyChip.js +2 -1
- package/lib/module/components/ui/GiphyChip.js.map +1 -1
- package/lib/module/components/ui/Input/Input.js +4 -3
- package/lib/module/components/ui/Input/Input.js.map +1 -1
- package/lib/module/contexts/accessibilityContext/AccessibilityContext.js +5 -2
- package/lib/module/contexts/accessibilityContext/AccessibilityContext.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/audioPlayerContext/AudioPlayerContext.js +3 -2
- package/lib/module/contexts/audioPlayerContext/AudioPlayerContext.js.map +1 -1
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +1 -1
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -1
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js +1 -1
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -1
- package/lib/module/contexts/channelMemberListContext/ChannelMemberListContext.js +1 -1
- package/lib/module/contexts/channelMemberListContext/ChannelMemberListContext.js.map +1 -1
- package/lib/module/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js +1 -1
- package/lib/module/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js +5 -3
- package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +1 -1
- package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
- package/lib/module/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js +1 -1
- package/lib/module/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +17 -8
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageComposer.js +2 -2
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageComposer.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +3 -3
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/screenReaderContext/ScreenReaderContext.js +1 -1
- package/lib/module/contexts/screenReaderContext/ScreenReaderContext.js.map +1 -1
- package/lib/module/contexts/swipeableContext/SwipeRegistryContext.js +20 -8
- package/lib/module/contexts/swipeableContext/SwipeRegistryContext.js.map +1 -1
- package/lib/module/contexts/themeContext/ThemeContext.js +1 -1
- package/lib/module/contexts/themeContext/ThemeContext.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActionItems.js +41 -30
- package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActions.js +44 -37
- package/lib/module/hooks/actions/useChannelActions.js.map +1 -1
- package/lib/module/hooks/actions/useChannelMemberActionItems.js +21 -14
- package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useUserActions.js +8 -8
- package/lib/module/hooks/actions/useUserActions.js.map +1 -1
- package/lib/module/hooks/messagePreview/useGroupedAttachments.js +1 -1
- package/lib/module/hooks/messagePreview/useGroupedAttachments.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js +13 -6
- package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js +10 -9
- package/lib/module/hooks/messagePreview/useMessagePreviewIcon.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js +30 -26
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/module/hooks/useAfterKeyboardOpenCallback.js +2 -1
- package/lib/module/hooks/useAfterKeyboardOpenCallback.js.map +1 -1
- package/lib/module/hooks/useAppStateListener.js +5 -4
- package/lib/module/hooks/useAppStateListener.js.map +1 -1
- package/lib/module/hooks/useAttachmentPickerBottomSheet.js +4 -2
- package/lib/module/hooks/useAttachmentPickerBottomSheet.js.map +1 -1
- package/lib/module/hooks/useAudioPlayer.js +9 -9
- package/lib/module/hooks/useAudioPlayer.js.map +1 -1
- package/lib/module/hooks/useCanAddMembersToChannel.js +4 -1
- package/lib/module/hooks/useCanAddMembersToChannel.js.map +1 -1
- package/lib/module/hooks/useCanEditChannel.js +4 -1
- package/lib/module/hooks/useCanEditChannel.js.map +1 -1
- package/lib/module/hooks/useChannelImage.js +4 -1
- package/lib/module/hooks/useChannelImage.js.map +1 -1
- package/lib/module/hooks/useChannelMemberCount.js +4 -1
- package/lib/module/hooks/useChannelMemberCount.js.map +1 -1
- package/lib/module/hooks/useChannelMuteActive.js +6 -2
- package/lib/module/hooks/useChannelMuteActive.js.map +1 -1
- package/lib/module/hooks/useChannelName.js +4 -1
- package/lib/module/hooks/useChannelName.js.map +1 -1
- package/lib/module/hooks/useChannelOwnCapabilities.js +4 -1
- package/lib/module/hooks/useChannelOwnCapabilities.js.map +1 -1
- package/lib/module/hooks/useIsChannelMember.js +4 -1
- package/lib/module/hooks/useIsChannelMember.js.map +1 -1
- package/lib/module/hooks/useIsDirectChat.js +4 -1
- package/lib/module/hooks/useIsDirectChat.js.map +1 -1
- package/lib/module/hooks/usePendingAttachmentUpload.js +4 -3
- package/lib/module/hooks/usePendingAttachmentUpload.js.map +1 -1
- package/lib/module/hooks/usePrunableMessageList.js +6 -2
- package/lib/module/hooks/usePrunableMessageList.js.map +1 -1
- package/lib/module/hooks/useQueryReminders.js +29 -12
- package/lib/module/hooks/useQueryReminders.js.map +1 -1
- package/lib/module/hooks/useStateStore.js +3 -3
- package/lib/module/hooks/useStateStore.js.map +1 -1
- package/lib/module/icons/Retry.js +4 -3
- package/lib/module/icons/Retry.js.map +1 -1
- package/lib/module/icons/archive.js +2 -2
- package/lib/module/icons/archive.js.map +1 -1
- package/lib/module/icons/arrow-up-right.js +3 -2
- package/lib/module/icons/arrow-up-right.js.map +1 -1
- package/lib/module/icons/arrow-up.js +4 -4
- package/lib/module/icons/arrow-up.js.map +1 -1
- package/lib/module/icons/audio.js +4 -3
- package/lib/module/icons/audio.js.map +1 -1
- package/lib/module/icons/bell.js +3 -2
- package/lib/module/icons/bell.js.map +1 -1
- package/lib/module/icons/bolt.js +4 -3
- package/lib/module/icons/bolt.js.map +1 -1
- package/lib/module/icons/camera.js +2 -2
- package/lib/module/icons/camera.js.map +1 -1
- package/lib/module/icons/checkmark-1.js +4 -3
- package/lib/module/icons/checkmark-1.js.map +1 -1
- package/lib/module/icons/checkmark.js +4 -3
- package/lib/module/icons/checkmark.js.map +1 -1
- package/lib/module/icons/checks.js +4 -3
- package/lib/module/icons/checks.js.map +1 -1
- package/lib/module/icons/chevron-left.js +2 -2
- package/lib/module/icons/chevron-left.js.map +1 -1
- package/lib/module/icons/chevron-right.js +2 -2
- package/lib/module/icons/chevron-right.js.map +1 -1
- package/lib/module/icons/clock.js +4 -3
- package/lib/module/icons/clock.js.map +1 -1
- package/lib/module/icons/command.js +2 -2
- package/lib/module/icons/command.js.map +1 -1
- package/lib/module/icons/copy.js +2 -2
- package/lib/module/icons/copy.js.map +1 -1
- package/lib/module/icons/delete.js +4 -3
- package/lib/module/icons/delete.js.map +1 -1
- package/lib/module/icons/edit.js +4 -3
- package/lib/module/icons/edit.js.map +1 -1
- package/lib/module/icons/emoji-add-1.js +4 -3
- package/lib/module/icons/emoji-add-1.js.map +1 -1
- package/lib/module/icons/emoji.js +4 -3
- package/lib/module/icons/emoji.js.map +1 -1
- package/lib/module/icons/exclamation-circle-fill.js +4 -3
- package/lib/module/icons/exclamation-circle-fill.js.map +1 -1
- package/lib/module/icons/exclamation-mark-fill.js +4 -3
- package/lib/module/icons/exclamation-mark-fill.js.map +1 -1
- package/lib/module/icons/exclamation-triangle-fill.js +4 -3
- package/lib/module/icons/exclamation-triangle-fill.js.map +1 -1
- package/lib/module/icons/file.js +4 -3
- package/lib/module/icons/file.js.map +1 -1
- package/lib/module/icons/flag.js +2 -2
- package/lib/module/icons/flag.js.map +1 -1
- package/lib/module/icons/folder.js +4 -3
- package/lib/module/icons/folder.js.map +1 -1
- package/lib/module/icons/gallery.js +4 -3
- package/lib/module/icons/gallery.js.map +1 -1
- package/lib/module/icons/image.js +4 -3
- package/lib/module/icons/image.js.map +1 -1
- package/lib/module/icons/info.js +4 -3
- package/lib/module/icons/info.js.map +1 -1
- package/lib/module/icons/link.js +2 -2
- package/lib/module/icons/link.js.map +1 -1
- package/lib/module/icons/loading.js +3 -2
- package/lib/module/icons/loading.js.map +1 -1
- package/lib/module/icons/location.js +4 -3
- package/lib/module/icons/location.js.map +1 -1
- package/lib/module/icons/lock.js +4 -3
- package/lib/module/icons/lock.js.map +1 -1
- package/lib/module/icons/megaphone.js +4 -3
- package/lib/module/icons/megaphone.js.map +1 -1
- package/lib/module/icons/message-bubble.js +2 -2
- package/lib/module/icons/message-bubble.js.map +1 -1
- package/lib/module/icons/minus-circle.js +4 -3
- package/lib/module/icons/minus-circle.js.map +1 -1
- package/lib/module/icons/minus.js +2 -2
- package/lib/module/icons/minus.js.map +1 -1
- package/lib/module/icons/more.js +4 -3
- package/lib/module/icons/more.js.map +1 -1
- package/lib/module/icons/mute.js +4 -3
- package/lib/module/icons/mute.js.map +1 -1
- package/lib/module/icons/no-sign.js +4 -3
- package/lib/module/icons/no-sign.js.map +1 -1
- package/lib/module/icons/pause-fill.js +4 -3
- package/lib/module/icons/pause-fill.js.map +1 -1
- package/lib/module/icons/pin.js +4 -3
- package/lib/module/icons/pin.js.map +1 -1
- package/lib/module/icons/play-fill.js +2 -2
- package/lib/module/icons/play-fill.js.map +1 -1
- package/lib/module/icons/plus.js +2 -2
- package/lib/module/icons/plus.js.map +1 -1
- package/lib/module/icons/poll.js +4 -3
- package/lib/module/icons/poll.js.map +1 -1
- package/lib/module/icons/refresh.js +4 -3
- package/lib/module/icons/refresh.js.map +1 -1
- package/lib/module/icons/reorder.js +4 -3
- package/lib/module/icons/reorder.js.map +1 -1
- package/lib/module/icons/save.js +4 -3
- package/lib/module/icons/save.js.map +1 -1
- package/lib/module/icons/search.js +4 -3
- package/lib/module/icons/search.js.map +1 -1
- package/lib/module/icons/send.js +4 -3
- package/lib/module/icons/send.js.map +1 -1
- package/lib/module/icons/shield.js +4 -3
- package/lib/module/icons/shield.js.map +1 -1
- package/lib/module/icons/stop-fill.js +4 -3
- package/lib/module/icons/stop-fill.js.map +1 -1
- package/lib/module/icons/thread.js +4 -3
- package/lib/module/icons/thread.js.map +1 -1
- package/lib/module/icons/unlock.js +4 -3
- package/lib/module/icons/unlock.js.map +1 -1
- package/lib/module/icons/unpin.js +4 -3
- package/lib/module/icons/unpin.js.map +1 -1
- package/lib/module/icons/user-add.js +4 -3
- package/lib/module/icons/user-add.js.map +1 -1
- package/lib/module/icons/user-remove.js +4 -3
- package/lib/module/icons/user-remove.js.map +1 -1
- package/lib/module/icons/users.js +4 -3
- package/lib/module/icons/users.js.map +1 -1
- package/lib/module/icons/utils/base.js +3 -2
- package/lib/module/icons/utils/base.js.map +1 -1
- package/lib/module/icons/video-fill.js +4 -3
- package/lib/module/icons/video-fill.js.map +1 -1
- package/lib/module/icons/video.js +4 -3
- package/lib/module/icons/video.js.map +1 -1
- package/lib/module/icons/voice.js +4 -3
- package/lib/module/icons/voice.js.map +1 -1
- package/lib/module/icons/x-circle.js +4 -3
- package/lib/module/icons/x-circle.js.map +1 -1
- package/lib/module/icons/xmark-1.js +4 -3
- package/lib/module/icons/xmark-1.js.map +1 -1
- package/lib/module/icons/xmark.js +4 -3
- package/lib/module/icons/xmark.js.map +1 -1
- package/lib/module/index.js +12 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/middlewares/attachments.js +7 -5
- package/lib/module/middlewares/attachments.js.map +1 -1
- package/lib/module/middlewares/emojiControl.js +55 -70
- package/lib/module/middlewares/emojiControl.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +8 -3
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/mock-builders/api/initiateClientWithChannels.js +1 -1
- package/lib/module/mock-builders/api/initiateClientWithChannels.js.map +1 -1
- package/lib/module/mock-builders/attachments.js +12 -9
- package/lib/module/mock-builders/attachments.js.map +1 -1
- package/lib/module/mock-builders/generator/channel.js +3 -2
- package/lib/module/mock-builders/generator/channel.js.map +1 -1
- package/lib/module/native.js +8 -2
- package/lib/module/native.js.map +1 -1
- package/lib/module/nativeMultipartUpload.js +15 -13
- package/lib/module/nativeMultipartUpload.js.map +1 -1
- package/lib/module/state-store/attachment-picker-store.js +14 -22
- package/lib/module/state-store/attachment-picker-store.js.map +1 -1
- package/lib/module/state-store/audio-player-pool.js +64 -80
- package/lib/module/state-store/audio-player-pool.js.map +1 -1
- package/lib/module/state-store/audio-player.js +276 -300
- package/lib/module/state-store/audio-player.js.map +1 -1
- package/lib/module/state-store/audio-recorder-manager.js +121 -140
- package/lib/module/state-store/audio-recorder-manager.js.map +1 -1
- package/lib/module/state-store/channel-unread-state.js +14 -20
- package/lib/module/state-store/channel-unread-state.js.map +1 -1
- package/lib/module/state-store/edit-channel-details-store.js +22 -31
- package/lib/module/state-store/edit-channel-details-store.js.map +1 -1
- package/lib/module/state-store/image-gallery-state-store.js +148 -162
- package/lib/module/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/module/state-store/message-input-height-store.js +10 -16
- package/lib/module/state-store/message-input-height-store.js.map +1 -1
- package/lib/module/state-store/message-list-prev-next-state.js +27 -33
- package/lib/module/state-store/message-list-prev-next-state.js.map +1 -1
- package/lib/module/state-store/message-overlay-store.js +23 -11
- package/lib/module/state-store/message-overlay-store.js.map +1 -1
- package/lib/module/state-store/selection-store.js +42 -54
- package/lib/module/state-store/selection-store.js.map +1 -1
- package/lib/module/state-store/signal-store.js +11 -19
- package/lib/module/state-store/signal-store.js.map +1 -1
- package/lib/module/state-store/video-player-pool.js +61 -77
- package/lib/module/state-store/video-player-pool.js.map +1 -1
- package/lib/module/state-store/video-player.js +119 -148
- package/lib/module/state-store/video-player.js.map +1 -1
- package/lib/module/store/OfflineDB.js +86 -94
- package/lib/module/store/OfflineDB.js.map +1 -1
- package/lib/module/store/SqliteClient.js +224 -236
- package/lib/module/store/SqliteClient.js.map +1 -1
- package/lib/module/store/apis/addPendingTask.js +2 -2
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/channelExists.js +1 -1
- package/lib/module/store/apis/channelExists.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js +1 -1
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteDraft.js +1 -1
- package/lib/module/store/apis/deleteDraft.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js +1 -1
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js +1 -1
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js +1 -1
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js +1 -1
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/dropPendingTasks.js +1 -1
- package/lib/module/store/apis/dropPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js +1 -1
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -2
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +1 -1
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +1 -1
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +2 -2
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getDraft.js +3 -3
- package/lib/module/store/apis/getDraft.js.map +1 -1
- package/lib/module/store/apis/getDraftsForChannels.js +7 -3
- package/lib/module/store/apis/getDraftsForChannels.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -2
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js +1 -1
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js +1 -1
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReactions.js +1 -1
- package/lib/module/store/apis/getReactions.js.map +1 -1
- package/lib/module/store/apis/getReactionsforFilterSort.js +1 -1
- package/lib/module/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/module/store/apis/getReads.js +1 -1
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +1 -1
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectActiveLocationsForChannels.js +1 -1
- package/lib/module/store/apis/queries/selectActiveLocationsForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -2
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannels.js +1 -1
- package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectDraftMessageFromDraft.js +1 -1
- package/lib/module/store/apis/queries/selectDraftMessageFromDraft.js.map +1 -1
- package/lib/module/store/apis/queries/selectDraftMessageFromDraftForChannels.js +1 -1
- package/lib/module/store/apis/queries/selectDraftMessageFromDraftForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMessageById.js +1 -1
- package/lib/module/store/apis/queries/selectMessageById.js.map +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js +5 -4
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/queries/selectReadsForChannels.js +1 -1
- package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/module/store/apis/softDeleteMessage.js +1 -1
- package/lib/module/store/apis/softDeleteMessage.js.map +1 -1
- package/lib/module/store/apis/updateMessage.js +1 -1
- package/lib/module/store/apis/updateMessage.js.map +1 -1
- package/lib/module/store/apis/updatePendingTask.js +1 -1
- package/lib/module/store/apis/updatePendingTask.js.map +1 -1
- package/lib/module/store/apis/updateReaction.js +1 -1
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +1 -1
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js +1 -1
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +12 -4
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertDraft.js +1 -1
- package/lib/module/store/apis/upsertDraft.js.map +1 -1
- package/lib/module/store/apis/upsertLocation.js +1 -1
- package/lib/module/store/apis/upsertLocation.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js +2 -2
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js +2 -2
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertPoll.js +1 -1
- package/lib/module/store/apis/upsertPoll.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js +2 -2
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/store/apis/utils/convertFilterSortToQuery.js +1 -1
- package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/module/store/mappers/mapDraftToStorable.js +1 -1
- package/lib/module/store/mappers/mapDraftToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReactionToStorable.js +1 -1
- package/lib/module/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReadToStorable.js +1 -1
- package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +5 -2
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/sqlite-utils/createCreateTableQuery.js +3 -2
- package/lib/module/store/sqlite-utils/createCreateTableQuery.js.map +1 -1
- package/lib/module/test-utils/BetterSqlite.js +35 -34
- package/lib/module/test-utils/BetterSqlite.js.map +1 -1
- package/lib/module/theme/topologicalResolution.js +2 -1
- package/lib/module/theme/topologicalResolution.js.map +1 -1
- package/lib/module/types/react-native-compat.js +4 -0
- package/lib/module/types/react-native-compat.js.map +1 -0
- package/lib/module/utils/addReactionToLocalState.js +1 -1
- package/lib/module/utils/addReactionToLocalState.js.map +1 -1
- package/lib/module/utils/createGenerateVideoThumbnails.js +2 -1
- package/lib/module/utils/createGenerateVideoThumbnails.js.map +1 -1
- package/lib/module/utils/getResizedImageUrl.js +1 -1
- package/lib/module/utils/getResizedImageUrl.js.map +1 -1
- package/lib/module/utils/getUrlOfImageAttachment.js +2 -1
- package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/module/utils/i18n/Streami18n.js +187 -214
- package/lib/module/utils/i18n/Streami18n.js.map +1 -1
- package/lib/module/utils/installNativeMultipartAdapter.js +18 -9
- package/lib/module/utils/installNativeMultipartAdapter.js.map +1 -1
- package/lib/module/utils/isRNVersionGreaterThanOrEqualTo.js +5 -3
- package/lib/module/utils/isRNVersionGreaterThanOrEqualTo.js.map +1 -1
- package/lib/module/utils/patchMessageTextCommand.js +2 -1
- package/lib/module/utils/patchMessageTextCommand.js.map +1 -1
- package/lib/module/utils/removeReactionFromLocalState.js +5 -4
- package/lib/module/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/module/utils/utils.js +18 -10
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/a11y/hooks/useAccessibilityActivateAction.d.ts +3 -3
- package/lib/typescript/a11y/hooks/useAccessibilityActivateAction.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +2 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +2 -3
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/hooks/useAnimatedGalleryStyle.d.ts +8 -24
- package/lib/typescript/components/ImageGallery/hooks/useAnimatedGalleryStyle.d.ts.map +1 -1
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts +3 -2
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleView.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/utils/renderText.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageOverlayWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/measureInWindow.d.ts +2 -2
- package/lib/typescript/components/Message/utils/measureInWindow.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts +15 -10
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/PortalWhileClosingView.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SafeAreaViewWrapper.d.ts +13 -2
- package/lib/typescript/components/UIComponents/SafeAreaViewWrapper.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/SearchInput.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/StreamBottomSheetModalFlatList.d.ts.map +1 -1
- package/lib/typescript/components/ui/Input/Input.d.ts +3 -14
- package/lib/typescript/components/ui/Input/Input.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +3 -3
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +4 -3
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +14 -3
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppStateListener.d.ts.map +1 -1
- package/lib/typescript/hooks/usePrunableMessageList.d.ts +1 -1
- package/lib/typescript/hooks/usePrunableMessageList.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/nativeMultipartUpload.d.ts.map +1 -1
- package/lib/typescript/store/SqliteClient.d.ts.map +1 -1
- package/lib/typescript/types/react-native-compat.d.ts +71 -0
- package/lib/typescript/types/react-native-compat.d.ts.map +1 -0
- package/package.json +8 -8
- package/src/a11y/hooks/useAccessibilityActivateAction.ts +4 -4
- package/src/a11y/hooks/useSetAccessibilityFocus.ts +1 -1
- package/src/components/Attachment/Gallery.tsx +2 -1
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +5 -4
- package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.tsx +2 -3
- package/src/components/ChannelDetails/components/members/ChannelMemberList.tsx +1 -1
- package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +7 -2
- package/src/components/ChannelList/ChannelListView.tsx +1 -1
- package/src/components/Chat/Chat.tsx +3 -4
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +15 -3
- package/src/components/ImageGallery/hooks/useAnimatedGalleryStyle.tsx +9 -2
- package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx +3 -3
- package/src/components/Message/Message.tsx +4 -3
- package/src/components/Message/MessageItemView/MessageContent.tsx +5 -3
- package/src/components/Message/MessageItemView/__tests__/MessageAuthor.test.tsx +3 -5
- package/src/components/Message/MessageItemView/__tests__/MessagePinnedHeader.test.tsx +3 -5
- package/src/components/Message/MessageItemView/__tests__/MessageReplies.test.tsx +4 -6
- package/src/components/Message/MessageItemView/utils/renderText.tsx +5 -1
- package/src/components/Message/MessageOverlayWrapper.tsx +2 -1
- package/src/components/Message/utils/__tests__/measureInWindow.test.ts +5 -3
- package/src/components/Message/utils/measureInWindow.ts +5 -2
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadPreviewList.tsx +2 -1
- package/src/components/MessageList/MessageFlashList.tsx +99 -90
- package/src/components/MessageList/MessageList.tsx +100 -83
- package/src/components/MessageList/hooks/useScrollToBottomAccessibilityAction.ts +16 -4
- package/src/components/MessageMenu/MessageUserReactions.tsx +3 -1
- package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +2 -4
- package/src/components/Poll/components/CreatePollOptions.tsx +3 -1
- package/src/components/Poll/components/MultipleVotesSettings.tsx +2 -1
- package/src/components/ThreadList/ThreadList.tsx +1 -1
- package/src/components/UIComponents/PortalWhileClosingView.tsx +2 -1
- package/src/components/UIComponents/SafeAreaViewWrapper.tsx +13 -1
- package/src/components/UIComponents/SearchInput.tsx +3 -2
- package/src/components/UIComponents/StreamBottomSheetModalFlatList.tsx +3 -1
- package/src/components/UIComponents/SvgAwareImage.tsx +1 -1
- package/src/components/ui/Input/Input.tsx +6 -1
- package/src/contexts/messageContext/MessageContext.tsx +3 -3
- package/src/contexts/messageInputContext/MessageInputContext.tsx +4 -3
- package/src/contexts/themeContext/ThemeContext.tsx +15 -3
- package/src/hooks/useAppStateListener.ts +6 -1
- package/src/hooks/usePrunableMessageList.ts +1 -2
- package/src/index.ts +1 -0
- package/src/nativeMultipartUpload.ts +6 -1
- package/src/store/SqliteClient.ts +38 -37
- package/src/types/react-native-compat.ts +83 -0
- package/src/version.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_useNotificationListController","_ComponentsContext","_ThemeContext","_TranslationContext","_theme","_transitions","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","isEnterFrom","value","getNotificationEnterFrom","notification","fallbackEnterFrom","metadataEnterFrom","metadata","entryDirection","originEnterFrom","origin","context","getStringValue","undefined","getNotificationPresentationKey","type","dedupeKey","emitter","severity","message","filter","Boolean","join","NotificationList","bottomOffset","enterFrom","hostId","panel","topOffset","verticalAlignment","_useComponentsContext","useComponentsContext","NotificationComponent","Notification","styles","useStyles","_useTranslationContex","useTranslationContext","_useNotificationListC","useNotificationListController","dismissNotification","notificationEnterFrom","notificationPresentationKey","jsx","View","accessibilityLabel","pointerEvents","layout","transitions","layout200","style","container","testID","children","entering","boundedZoomIn200","exiting","boundedZoomOut200","notificationWrapper","onDismiss","showClose","duration","exports","_useTheme","useTheme","notificationListContainer","theme","notificationList","useMemo","containerAlignmentStyle","bottom","primitives","spacingMd","top","containerOffsetStyle","StyleSheet","create","alignItems","left","maxHeight","position","right","zIndex","alignSelf","maxWidth"],"sourceRoot":"../../../../src","sources":["components/Notifications/NotificationList.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAIA,IAAAI,8BAAA,GAAAJ,OAAA;AAGA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AAAiE,IAAAU,WAAA,GAAAV,OAAA;AAAA,IAAAW,YAAA;AAAA,SAAAZ,wBAAAa,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAa,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,EAAAc,EAAA,OAAAP,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAM,EAAA,EAAAP,CAAA,IAAAC,CAAA,CAAAM,EAAA,IAAAd,CAAA,CAAAc,EAAA,WAAAN,CAAA,KAAAR,CAAA,EAAAC,CAAA;AA0BjE,IAAMmB,WAAW,GAAIC,KAAc,IACjCA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,MAAM,IAAIA,KAAK,KAAK,OAAO,IAAIA,KAAK,KAAK,KAAK;AAEhF,IAAMC,wBAAwB,GAAGA,CAC/BC,YAA8B,EAC9BC,iBAA4C,KACzC;EACH,IAAMC,iBAAiB,GAAGF,YAAY,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_interopRequireDefault","_useNotificationListController","_ComponentsContext","_ThemeContext","_TranslationContext","_theme","_transitions","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","isEnterFrom","value","getNotificationEnterFrom","notification","fallbackEnterFrom","_notification$metadat","_notification$origin$","metadataEnterFrom","metadata","entryDirection","originEnterFrom","origin","context","getStringValue","undefined","getNotificationPresentationKey","_ref","_ref2","_notification$type","_notification$metadat2","_notification$origin$2","type","dedupeKey","emitter","severity","message","filter","Boolean","join","NotificationList","bottomOffset","enterFrom","hostId","panel","topOffset","verticalAlignment","_useComponentsContext","useComponentsContext","NotificationComponent","Notification","styles","useStyles","_useTranslationContex","useTranslationContext","_useNotificationListC","useNotificationListController","dismissNotification","notificationEnterFrom","notificationPresentationKey","jsx","View","accessibilityLabel","pointerEvents","layout","transitions","layout200","style","container","testID","children","entering","boundedZoomIn200","exiting","boundedZoomOut200","notificationWrapper","onDismiss","showClose","duration","exports","_useTheme","useTheme","notificationListContainer","theme","notificationList","useMemo","containerAlignmentStyle","bottom","primitives","spacingMd","top","containerOffsetStyle","StyleSheet","create","alignItems","left","maxHeight","position","right","zIndex","alignSelf","maxWidth"],"sourceRoot":"../../../../src","sources":["components/Notifications/NotificationList.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAIA,IAAAI,8BAAA,GAAAJ,OAAA;AAGA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AAAiE,IAAAU,WAAA,GAAAV,OAAA;AAAA,IAAAW,YAAA;AAAA,SAAAZ,wBAAAa,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAa,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAA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AAE8C,MAAM,EAAEC,iBAAU,CAACC,SAAS,GAAGhD;IAAa,CAAC,GAC/CK,iBAAiB,KAAK,KAAK,IAAI,OAAOD,SAAS,KAAK,QAAQ,GAC1D;MAAE6C,GAAG,EAAEF,iBAAU,CAACC,SAAS,GAAG5C;IAAU,CAAC,GACzCpB,SAAS;IAEjB,OAAOmE,uBAAU,CAACC,MAAM,CAAC;MACvBzB,SAAS,EAAE;QACT0B,UAAU,EAAE,QAAQ;QACpBC,IAAI,EAAEP,iBAAU,CAACC,SAAS;QAC1BO,SAAS,EAAE,MAAM;QACjBC,QAAQ,EAAE,UAAU;QACpBC,KAAK,EAAEV,iBAAU,CAACC,SAAS;QAC3BU,MAAM,EAAE,EAAE;QACV,GAAGb,uBAAuB;QAC1B,GAAGJ,yBAAyB;QAC5B,GAAGS;MACL,CAAC;MACDhB,mBAAmB,EAAE;QACnByB,SAAS,EAAE,QAAQ;QACnBC,QAAQ,EAAE;MACZ;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAAC5D,YAAY,EAAEyC,yBAAyB,EAAErC,SAAS,EAAEC,iBAAiB,CAAC,CAAC;AAC7E,CAAC","ignoreList":[]}
|
|
@@ -35,7 +35,7 @@ var useResolvedNotificationTarget = ({
|
|
|
35
35
|
panel
|
|
36
36
|
};
|
|
37
37
|
if (!hostId && !panel) return contextTarget;
|
|
38
|
-
if (panel && contextTarget
|
|
38
|
+
if (panel && (contextTarget == null ? void 0 : contextTarget.panel) === panel) return contextTarget;
|
|
39
39
|
return undefined;
|
|
40
40
|
}, [contextTarget, hostId, panel]);
|
|
41
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NotificationTargetContext","createContext","undefined","NotificationTargetProvider","children","hostId","panel","value","useMemo","jsx","Provider","exports","useNotificationTargetContext","useContext","useResolvedNotificationTarget","contextTarget"],"sourceRoot":"../../../../src","sources":["components/Notifications/NotificationTargetContext.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAqF,IAAAC,WAAA,GAAAD,OAAA;AAAA,IAAAE,YAAA;AAAA,SAAAH,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,EAAAc,EAAA,OAAAP,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAM,EAAA,EAAAP,CAAA,IAAAC,CAAA,CAAAM,EAAA,IAAAd,CAAA,CAAAc,EAAA,WAAAN,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAOrF,IAAMmB,yBAAyB,GAAG,IAAAC,oBAAa,EAAiCC,SAAS,CAAC;AAGnF,IAAMC,0BAA0B,GAAGA,CAAC;EACzCC,QAAQ;EACRC,MAAM;EACNC;AAC+B,CAAC,KAAK;EACrC,IAAMC,KAAK,GAAG,IAAAC,cAAO,EAAC,OAAO;IAAEH,MAAM;IAAEC;EAAM,CAAC,CAAC,EAAE,CAACD,MAAM,EAAEC,KAAK,CAAC,CAAC;EAEjE,OACE,IAAA5B,WAAA,CAAA+B,GAAA,EAACT,yBAAyB,CAACU,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAAH,QAAA,EAC9CA;EAAQ,CACyB,CAAC;AAEzC,CAAC;AAACO,OAAA,CAAAR,0BAAA,GAAAA,0BAAA;AAGK,IAAMS,4BAA4B,GAAGA,CAAA,KAAM,IAAAC,iBAAU,EAACb,yBAAyB,CAAC;AAACW,OAAA,CAAAC,4BAAA,GAAAA,4BAAA;AAGjF,IAAME,6BAA6B,GAAGA,CAAC;EAC5CT,MAAM;EACNC;AAIF,CAAC,GAAG,CAAC,CAAC,KAAK;EACT,IAAMS,aAAa,GAAGH,4BAA4B,CAAC,CAAC;EAEpD,OAAO,IAAAJ,cAAO,EAAC,MAAM;IACnB,IAAIH,MAAM,IAAIC,KAAK,EAAE,OAAO;MAAED,MAAM;MAAEC;IAAM,CAAC;IAC7C,IAAI,CAACD,MAAM,IAAI,CAACC,KAAK,EAAE,OAAOS,aAAa;IAC3C,IAAIT,KAAK,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NotificationTargetContext","createContext","undefined","NotificationTargetProvider","children","hostId","panel","value","useMemo","jsx","Provider","exports","useNotificationTargetContext","useContext","useResolvedNotificationTarget","contextTarget"],"sourceRoot":"../../../../src","sources":["components/Notifications/NotificationTargetContext.tsx"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAqF,IA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C,EAAE,CAACD,MAAM,EAAEC,KAAK,CAAC,CAAC;EAEjE,OACE,IAAA5B,WAAA,CAAA+B,GAAA,EAACT,yBAAyB,CAACU,QAAQ;IAACH,KAAK,EAAEA,KAAM;IAAAH,QAAA,EAC9CA;EAAQ,CACyB,CAAC;AAEzC,CAAC;AAACO,OAAA,CAAAR,0BAAA,GAAAA,0BAAA;AAGK,IAAMS,4BAA4B,GAAGA,CAAA,KAAM,IAAAC,iBAAU,EAACb,yBAAyB,CAAC;AAACW,OAAA,CAAAC,4BAAA,GAAAA,4BAAA;AAGjF,IAAME,6BAA6B,GAAGA,CAAC;EAC5CT,MAAM;EACNC;AAIF,CAAC,GAAG,CAAC,CAAC,KAAK;EACT,IAAMS,aAAa,GAAGH,4BAA4B,CAAC,CAAC;EAEpD,OAAO,IAAAJ,cAAO,EAAC,MAAM;IACnB,IAAIH,MAAM,IAAIC,KAAK,EAAE,OAAO;MAAED,MAAM;MAAEC;IAAM,CAAC;IAC7C,IAAI,CAACD,MAAM,IAAI,CAACC,KAAK,EAAE,OAAOS,aAAa;IAC3C,IAAIT,KAAK,IAAI,CAAAS,aAAa,oBAAbA,aAAa,CAAET,KAAK,MAAKA,KAAK,EAAE,OAAOS,aAAa;IAEjE,OAAOb,SAAS;EAClB,CAAC,EAAE,CAACa,aAAa,EAAEV,MAAM,EAAEC,KAAK,CAAC,CAAC;AACpC,CAAC;AAACK,OAAA,CAAAG,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -9,25 +9,29 @@ var _ChatContext = require("../../../contexts/chatContext/ChatContext");
|
|
|
9
9
|
var _notificationTarget = require("../notificationTarget");
|
|
10
10
|
var _NotificationTargetContext = require("../NotificationTargetContext");
|
|
11
11
|
var SYSTEM_NOTIFICATION_TAG = exports.SYSTEM_NOTIFICATION_TAG = 'system';
|
|
12
|
-
var hasSystemNotificationTag = notification =>
|
|
12
|
+
var hasSystemNotificationTag = notification => {
|
|
13
|
+
var _notification$tags$in, _notification$tags;
|
|
14
|
+
return (_notification$tags$in = (_notification$tags = notification.tags) == null ? void 0 : _notification$tags.includes(SYSTEM_NOTIFICATION_TAG)) != null ? _notification$tags$in : false;
|
|
15
|
+
};
|
|
13
16
|
exports.hasSystemNotificationTag = hasSystemNotificationTag;
|
|
14
17
|
var getTargetTags = (target, targetPanels, tags) => {
|
|
15
18
|
if (targetPanels) {
|
|
16
|
-
return Array.from(new Set([...targetPanels.map(panel => (0, _notificationTarget.getNotificationTargetTag)(panel)), ...(tags
|
|
19
|
+
return Array.from(new Set([...targetPanels.map(panel => (0, _notificationTarget.getNotificationTargetTag)(panel)), ...(tags != null ? tags : [])]));
|
|
17
20
|
}
|
|
18
21
|
if (target) {
|
|
19
22
|
return (0, _notificationTarget.addExactNotificationTargetTag)(target, tags);
|
|
20
23
|
}
|
|
21
|
-
return tags
|
|
24
|
+
return tags != null ? tags : [];
|
|
22
25
|
};
|
|
23
26
|
var getTypeFromIncident = ({
|
|
24
27
|
incident,
|
|
25
28
|
severity,
|
|
26
29
|
type
|
|
27
30
|
}) => {
|
|
31
|
+
var _incident$status;
|
|
28
32
|
if (type) return type;
|
|
29
33
|
if (!incident) return undefined;
|
|
30
|
-
var status = incident.status
|
|
34
|
+
var status = (_incident$status = incident.status) != null ? _incident$status : severity === 'error' ? 'failed' : severity === 'success' ? 'success' : severity;
|
|
31
35
|
return [incident.domain, incident.entity, incident.operation, status].filter(segment => !!segment).join(':');
|
|
32
36
|
};
|
|
33
37
|
var mergeNotificationOptions = (payload, options) => {
|
|
@@ -47,15 +51,16 @@ var useNotificationApi = () => {
|
|
|
47
51
|
var _useChatContext = (0, _ChatContext.useChatContext)(),
|
|
48
52
|
client = _useChatContext.client;
|
|
49
53
|
var contextTarget = (0, _NotificationTargetContext.useNotificationTargetContext)();
|
|
50
|
-
var notificationManager = client
|
|
54
|
+
var notificationManager = client == null ? void 0 : client.notifications;
|
|
51
55
|
var addNotification = (0, _react.useCallback)((payload, options) => {
|
|
56
|
+
var _options$target, _payload$options, _payload$options2, _payload$options3, _payload$options4;
|
|
52
57
|
if (!notificationManager) return;
|
|
53
|
-
var target = options
|
|
54
|
-
var notificationTags = getTargetTags(target, options
|
|
58
|
+
var target = (_options$target = options == null ? void 0 : options.target) != null ? _options$target : options != null && options.targetPanels || (0, _notificationTarget.hasNotificationTargetTag)((_payload$options = payload.options) == null ? void 0 : _payload$options.tags) ? undefined : contextTarget;
|
|
59
|
+
var notificationTags = getTargetTags(target, options == null ? void 0 : options.targetPanels, (_payload$options2 = payload.options) == null ? void 0 : _payload$options2.tags);
|
|
55
60
|
var resolvedType = getTypeFromIncident({
|
|
56
|
-
incident: options
|
|
57
|
-
severity: payload.options
|
|
58
|
-
type: payload.options
|
|
61
|
+
incident: options == null ? void 0 : options.incident,
|
|
62
|
+
severity: (_payload$options3 = payload.options) == null ? void 0 : _payload$options3.severity,
|
|
63
|
+
type: (_payload$options4 = payload.options) == null ? void 0 : _payload$options4.type
|
|
59
64
|
});
|
|
60
65
|
notificationManager.add(mergeNotificationOptions(payload, {
|
|
61
66
|
...(notificationTags.length > 0 ? {
|
|
@@ -67,12 +72,13 @@ var useNotificationApi = () => {
|
|
|
67
72
|
}));
|
|
68
73
|
}, [contextTarget, notificationManager]);
|
|
69
74
|
var addSystemNotification = (0, _react.useCallback)((payload, options) => {
|
|
75
|
+
var _payload$options$tags, _payload$options5, _payload$options6, _payload$options7;
|
|
70
76
|
if (!notificationManager) return '';
|
|
71
|
-
var notificationTags = Array.from(new Set([SYSTEM_NOTIFICATION_TAG, ...(payload.options
|
|
77
|
+
var notificationTags = Array.from(new Set([SYSTEM_NOTIFICATION_TAG, ...((_payload$options$tags = (_payload$options5 = payload.options) == null ? void 0 : _payload$options5.tags) != null ? _payload$options$tags : [])]));
|
|
72
78
|
var resolvedType = getTypeFromIncident({
|
|
73
|
-
incident: options
|
|
74
|
-
severity: payload.options
|
|
75
|
-
type: payload.options
|
|
79
|
+
incident: options == null ? void 0 : options.incident,
|
|
80
|
+
severity: (_payload$options6 = payload.options) == null ? void 0 : _payload$options6.severity,
|
|
81
|
+
type: (_payload$options7 = payload.options) == null ? void 0 : _payload$options7.type
|
|
76
82
|
});
|
|
77
83
|
return notificationManager.add(mergeNotificationOptions(payload, {
|
|
78
84
|
...(notificationTags.length > 0 ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_ChatContext","_notificationTarget","_NotificationTargetContext","SYSTEM_NOTIFICATION_TAG","exports","hasSystemNotificationTag","notification","tags","includes","getTargetTags","target","targetPanels","Array","from","Set","map","panel","getNotificationTargetTag","addExactNotificationTargetTag","getTypeFromIncident","incident","severity","type","undefined","status","domain","entity","operation","filter","segment","join","mergeNotificationOptions","payload","options","mergedOptions","Object","keys","length","useNotificationApi","_useChatContext","useChatContext","client","contextTarget","useNotificationTargetContext","notificationManager","notifications","addNotification","useCallback","hasNotificationTargetTag","notificationTags","resolvedType","add","addSystemNotification","removeNotification","id","remove","removeNotificationsForCurrentPanel","notificationIds","isNotificationForTarget","forEach","runWithNotificationTarget","_ref","_asyncToGenerator2","default","callback","unregisterActionTarget","registerNotificationActionTarget","_x","apply","arguments","startNotificationTimeout","durationOverride","startTimeout"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useNotificationApi.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AAEO,IAAMI,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,QAAiB;AAGjD,IAAME,wBAAwB,GAAIC,YAA0B,
|
|
1
|
+
{"version":3,"names":["_react","require","_ChatContext","_notificationTarget","_NotificationTargetContext","SYSTEM_NOTIFICATION_TAG","exports","hasSystemNotificationTag","notification","_notification$tags$in","_notification$tags","tags","includes","getTargetTags","target","targetPanels","Array","from","Set","map","panel","getNotificationTargetTag","addExactNotificationTargetTag","getTypeFromIncident","incident","severity","type","_incident$status","undefined","status","domain","entity","operation","filter","segment","join","mergeNotificationOptions","payload","options","mergedOptions","Object","keys","length","useNotificationApi","_useChatContext","useChatContext","client","contextTarget","useNotificationTargetContext","notificationManager","notifications","addNotification","useCallback","_options$target","_payload$options","_payload$options2","_payload$options3","_payload$options4","hasNotificationTargetTag","notificationTags","resolvedType","add","addSystemNotification","_payload$options$tags","_payload$options5","_payload$options6","_payload$options7","removeNotification","id","remove","removeNotificationsForCurrentPanel","notificationIds","isNotificationForTarget","forEach","runWithNotificationTarget","_ref","_asyncToGenerator2","default","callback","unregisterActionTarget","registerNotificationActionTarget","_x","apply","arguments","startNotificationTimeout","durationOverride","startTimeout"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useNotificationApi.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AASA,IAAAG,0BAAA,GAAAH,OAAA;AAEO,IAAMI,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,QAAiB;AAGjD,IAAME,wBAAwB,GAAIC,YAA0B;EAAA,IAAAC,qBAAA,EAAAC,kBAAA;EAAA,QAAAD,qBAAA,IAAAC,kBAAA,GACjEF,YAAY,CAACG,IAAI,qBAAjBD,kBAAA,CAAmBE,QAAQ,CAACP,uBAAuB,CAAC,YAAAI,qBAAA,GAAI,KAAK;AAAA;AAACH,OAAA,CAAAC,wBAAA,GAAAA,wBAAA;AAwDhE,IAAMM,aAAa,GAAGA,CACpBC,MAAsC,EACtCC,YAAmD,EACnDJ,IAA0B,KACvB;EACH,IAAII,YAAY,EAAE;IAChB,OAAOC,KAAK,CAACC,IAAI,CACf,IAAIC,GAAG,CAAC,CAAC,GAAGH,YAAY,CAACI,GAAG,CAAEC,KAAK,IAAK,IAAAC,4CAAwB,EAACD,KAAK,CAAC,CAAC,EAAE,IAAIT,IAAI,WAAJA,IA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EAAEiB,gBAAgB,KAAK;IACxB,IAAI,CAACpC,mBAAmB,EAAE;IAE1B,IAAI,OAAOoC,gBAAgB,KAAK,QAAQ,EAAE;MACxCpC,mBAAmB,CAACqC,YAAY,CAAClB,EAAE,EAAEiB,gBAAgB,CAAC;MACtD;IACF;IAEApC,mBAAmB,CAACqC,YAAY,CAAClB,EAAE,CAAC;EACtC,CAAC,EACD,CAACnB,mBAAmB,CACtB,CAAC;EAED,OAAO;IACLE,eAAe;IACfW,qBAAqB;IACrBK,kBAAkB;IAClBG,kCAAkC;IAClCI,yBAAyB;IACzBU;EACF,CAAC;AACH,CAAC;AAAC9E,OAAA,CAAAqC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -18,9 +18,10 @@ var getActiveNotification = notifications => {
|
|
|
18
18
|
return getNewestNotification(persistentNotifications.length > 0 ? persistentNotifications : notifications);
|
|
19
19
|
};
|
|
20
20
|
var getNotificationDurationOverride = notification => {
|
|
21
|
+
var _notification$actions, _notification$duratio;
|
|
21
22
|
if (isPersistentNotification(notification)) return undefined;
|
|
22
|
-
if (!notification.actions
|
|
23
|
-
return Math.max(notification.duration
|
|
23
|
+
if (!((_notification$actions = notification.actions) != null && _notification$actions.length)) return undefined;
|
|
24
|
+
return Math.max((_notification$duratio = notification.duration) != null ? _notification$duratio : 0, ACTION_NOTIFICATION_DURATION);
|
|
24
25
|
};
|
|
25
26
|
var useNotificationListController = ({
|
|
26
27
|
filter,
|
|
@@ -61,9 +62,10 @@ var useNotificationListController = ({
|
|
|
61
62
|
});
|
|
62
63
|
(0, _react.useEffect)(() => {
|
|
63
64
|
return client.notifications.store.addPreprocessor((nextState, previousState) => {
|
|
64
|
-
var
|
|
65
|
+
var _previousState$notifi;
|
|
66
|
+
var previousNotificationIds = new Set((_previousState$notifi = previousState == null ? void 0 : previousState.notifications.map(({
|
|
65
67
|
id
|
|
66
|
-
}) => id)
|
|
68
|
+
}) => id)) != null ? _previousState$notifi : []);
|
|
67
69
|
nextState.notifications.forEach(notification => {
|
|
68
70
|
if (previousNotificationIds.has(notification.id)) return;
|
|
69
71
|
if ((0, _useNotificationApi2.hasSystemNotificationTag)(notification)) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_useNotificationApi2","_useNotifications","_ChatContext","_useLazyRef","_useStableCallback","_notificationTarget","_NotificationTargetContext","ACTION_NOTIFICATION_DURATION","getNewestNotification","notifications","reduce","newest","notification","createdAt","isPersistentNotification","duration","getActiveNotification","persistentNotifications","filter","length","getNotificationDurationOverride","undefined","actions","Math","max","useNotificationListController","hostId","panel","_useChatContext","useChatContext","client","_useNotificationApi","useNotificationApi","removeNotification","startNotificationTimeout","target","useResolvedNotificationTarget","startedTimeoutIdsRef","useLazyRef","Set","combinedFilter","useStableCallback","hasSystemNotificationTag","useNotifications","requireTarget","dismissNotification","current","delete","id","removeCurrentPanelNotifications","clear","isNotificationForTarget","forEach","useEffect","store","addPreprocessor","nextState","previousState","previousNotificationIds","map","has","resolveNotificationTargetTagIfNeeded","registerActiveNotificationTarget","notificationIds","add","durationOverride","exports"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useNotificationListController.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AAMA,IAAAO,0BAAA,GAAAP,OAAA;AAaA,IAAMQ,4BAA4B,GAAG,IAAI;AAEzC,IAAMC,qBAAqB,GAAIC,aAAiC,IAC9DA,aAAa,CAACC,MAAM,CAClB,CAACC,MAAM,EAAEC,YAAY,KACnB,CAACD,MAAM,IAAIC,YAAY,CAACC,SAAS,IAAIF,MAAM,CAACE,SAAS,GAAGD,YAAY,GAAGD,MAAM,EAC/E,IACF,CAAC;AAEH,IAAMG,wBAAwB,GAAIF,YAA8B,IAAK,CAACA,YAAY,CAACG,QAAQ;AAE3F,IAAMC,qBAAqB,GAAIP,aAAiC,IAAK;EACnE,IAAMQ,uBAAuB,GAAGR,aAAa,CAACS,MAAM,CAACJ,wBAAwB,CAAC;EAC9E,OAAON,qBAAqB,CAC1BS,uBAAuB,CAACE,MAAM,GAAG,CAAC,GAAGF,uBAAuB,GAAGR,aACjE,CAAC;AACH,CAAC;AAED,IAAMW,+BAA+B,GAAIR,YAA8B,IAAK;EAC1E,
|
|
1
|
+
{"version":3,"names":["_react","require","_useNotificationApi2","_useNotifications","_ChatContext","_useLazyRef","_useStableCallback","_notificationTarget","_NotificationTargetContext","ACTION_NOTIFICATION_DURATION","getNewestNotification","notifications","reduce","newest","notification","createdAt","isPersistentNotification","duration","getActiveNotification","persistentNotifications","filter","length","getNotificationDurationOverride","_notification$actions","_notification$duratio","undefined","actions","Math","max","useNotificationListController","hostId","panel","_useChatContext","useChatContext","client","_useNotificationApi","useNotificationApi","removeNotification","startNotificationTimeout","target","useResolvedNotificationTarget","startedTimeoutIdsRef","useLazyRef","Set","combinedFilter","useStableCallback","hasSystemNotificationTag","useNotifications","requireTarget","dismissNotification","current","delete","id","removeCurrentPanelNotifications","clear","isNotificationForTarget","forEach","useEffect","store","addPreprocessor","nextState","previousState","_previousState$notifi","previousNotificationIds","map","has","resolveNotificationTargetTagIfNeeded","registerActiveNotificationTarget","notificationIds","add","durationOverride","exports"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useNotificationListController.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AAMA,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,OAAO;IACLJ,mBAAmB;IACnBnC;EACF,CAAC;AACH,CAAC;AAACyD,OAAA,CAAA1C,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -11,12 +11,12 @@ var useNotifications = options => {
|
|
|
11
11
|
client = _useChatContext.client;
|
|
12
12
|
var selector = (0, _react.useCallback)(state => {
|
|
13
13
|
var notifications = state.notifications;
|
|
14
|
-
var target = options
|
|
15
|
-
var byTarget = target ? notifications.filter(notification => (0, _notificationTarget.isNotificationForTarget)(notification, target)) : options
|
|
14
|
+
var target = options == null ? void 0 : options.target;
|
|
15
|
+
var byTarget = target ? notifications.filter(notification => (0, _notificationTarget.isNotificationForTarget)(notification, target)) : options != null && options.requireTarget ? [] : notifications;
|
|
16
16
|
return {
|
|
17
|
-
notifications: options
|
|
17
|
+
notifications: options != null && options.filter ? byTarget.filter(options.filter) : byTarget
|
|
18
18
|
};
|
|
19
|
-
}, [options
|
|
19
|
+
}, [options == null ? void 0 : options.filter, options == null ? void 0 : options.requireTarget, options == null ? void 0 : options.target]);
|
|
20
20
|
var _useStateStore = (0, _useStateStore2.useStateStore)(client.notifications.store, selector),
|
|
21
21
|
notifications = _useStateStore.notifications;
|
|
22
22
|
return notifications;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_ChatContext","_useStateStore2","_notificationTarget","useNotifications","options","_useChatContext","useChatContext","client","selector","useCallback","state","notifications","target","byTarget","filter","notification","isNotificationForTarget","requireTarget","_useStateStore","useStateStore","store","exports"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useNotifications.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAcO,IAAMI,gBAAgB,GAAIC,OAAiC,IAAqB;EACrF,IAAAC,eAAA,GAAmB,IAAAC,2BAAc,EAAC,CAAC;IAA3BC,MAAM,GAAAF,eAAA,CAANE,MAAM;EACd,IAAMC,QAAQ,GAAG,IAAAC,kBAAW,EACzBC,KAA+B,IAAK;IACnC,IAAMC,aAAa,GAAGD,KAAK,CAACC,aAAa;IACzC,IAAMC,MAAM,GAAGR,OAAO,
|
|
1
|
+
{"version":3,"names":["_react","require","_ChatContext","_useStateStore2","_notificationTarget","useNotifications","options","_useChatContext","useChatContext","client","selector","useCallback","state","notifications","target","byTarget","filter","notification","isNotificationForTarget","requireTarget","_useStateStore","useStateStore","store","exports"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useNotifications.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAcO,IAAMI,gBAAgB,GAAIC,OAAiC,IAAqB;EACrF,IAAAC,eAAA,GAAmB,IAAAC,2BAAc,EAAC,CAAC;IAA3BC,MAAM,GAAAF,eAAA,CAANE,MAAM;EACd,IAAMC,QAAQ,GAAG,IAAAC,kBAAW,EACzBC,KAA+B,IAAK;IACnC,IAAMC,aAAa,GAAGD,KAAK,CAACC,aAAa;IACzC,IAAMC,MAAM,GAAGR,OAAO,oBAAPA,OAAO,CAAEQ,MAAM;IAC9B,IAAMC,QAAQ,GAAGD,MAAM,GACnBD,aAAa,CAACG,MAAM,CAAEC,YAAY,IAAK,IAAAC,2CAAuB,EAACD,YAAY,EAAEH,MAAM,CAAC,CAAC,GACrFR,OAAO,YAAPA,OAAO,CAAEa,aAAa,GACpB,EAAE,GACFN,aAAa;IAEnB,OAAO;MACLA,aAAa,EAAEP,OAAO,YAAPA,OAAO,CAAEU,MAAM,GAAGD,QAAQ,CAACC,MAAM,CAACV,OAAO,CAACU,MAAM,CAAC,GAAGD;IACrE,CAAC;EACH,CAAC,EACD,CAACT,OAAO,oBAAPA,OAAO,CAAEU,MAAM,EAAEV,OAAO,oBAAPA,OAAO,CAAEa,aAAa,EAAEb,OAAO,oBAAPA,OAAO,CAAEQ,MAAM,CAC3D,CAAC;EAED,IAAAM,cAAA,GAA0B,IAAAC,6BAAa,EAACZ,MAAM,CAACI,aAAa,CAACS,KAAK,EAAEZ,QAAQ,CAAC;IAArEG,aAAa,GAAAO,cAAA,CAAbP,aAAa;EAErB,OAAOA,aAAa;AACtB,CAAC;AAACU,OAAA,CAAAlB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -12,9 +12,9 @@ var useSystemNotifications = options => {
|
|
|
12
12
|
var selector = (0, _react.useCallback)(state => {
|
|
13
13
|
var withSystemTag = state.notifications.filter(_useNotificationApi.hasSystemNotificationTag);
|
|
14
14
|
return {
|
|
15
|
-
notifications: options
|
|
15
|
+
notifications: options != null && options.filter ? withSystemTag.filter(options.filter) : withSystemTag
|
|
16
16
|
};
|
|
17
|
-
}, [options
|
|
17
|
+
}, [options == null ? void 0 : options.filter]);
|
|
18
18
|
var _useStateStore = (0, _useStateStore2.useStateStore)(client.notifications.store, selector),
|
|
19
19
|
notifications = _useStateStore.notifications;
|
|
20
20
|
return notifications;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_useNotificationApi","_ChatContext","_useStateStore2","useSystemNotifications","options","_useChatContext","useChatContext","client","selector","useCallback","state","withSystemTag","notifications","filter","hasSystemNotificationTag","_useStateStore","useStateStore","store","exports"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useSystemNotifications.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,mBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAUO,IAAMI,sBAAsB,GAAIC,OAAuC,IAAqB;EACjG,IAAAC,eAAA,GAAmB,IAAAC,2BAAc,EAAC,CAAC;IAA3BC,MAAM,GAAAF,eAAA,CAANE,MAAM;EACd,IAAMC,QAAQ,GAAG,IAAAC,kBAAW,EACzBC,KAA+B,IAAK;IACnC,IAAMC,aAAa,GAAGD,KAAK,CAACE,aAAa,CAACC,MAAM,CAACC,4CAAwB,CAAC;IAC1E,OAAO;MACLF,aAAa,EAAER,OAAO,
|
|
1
|
+
{"version":3,"names":["_react","require","_useNotificationApi","_ChatContext","_useStateStore2","useSystemNotifications","options","_useChatContext","useChatContext","client","selector","useCallback","state","withSystemTag","notifications","filter","hasSystemNotificationTag","_useStateStore","useStateStore","store","exports"],"sourceRoot":"../../../../../src","sources":["components/Notifications/hooks/useSystemNotifications.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,mBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAUO,IAAMI,sBAAsB,GAAIC,OAAuC,IAAqB;EACjG,IAAAC,eAAA,GAAmB,IAAAC,2BAAc,EAAC,CAAC;IAA3BC,MAAM,GAAAF,eAAA,CAANE,MAAM;EACd,IAAMC,QAAQ,GAAG,IAAAC,kBAAW,EACzBC,KAA+B,IAAK;IACnC,IAAMC,aAAa,GAAGD,KAAK,CAACE,aAAa,CAACC,MAAM,CAACC,4CAAwB,CAAC;IAC1E,OAAO;MACLF,aAAa,EAAER,OAAO,YAAPA,OAAO,CAAES,MAAM,GAAGF,aAAa,CAACE,MAAM,CAACT,OAAO,CAACS,MAAM,CAAC,GAAGF;IAC1E,CAAC;EACH,CAAC,EACD,CAACP,OAAO,oBAAPA,OAAO,CAAES,MAAM,CAClB,CAAC;EAED,IAAAE,cAAA,GAA0B,IAAAC,6BAAa,EAACT,MAAM,CAACK,aAAa,CAACK,KAAK,EAAET,QAAQ,CAAC;IAArEI,aAAa,GAAAG,cAAA,CAAbH,aAAa;EAErB,OAAOA,aAAa;AACtB,CAAC;AAACM,OAAA,CAAAf,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
});
|
|
4
4
|
exports.excludeCanceledUploadNotifications = void 0;
|
|
5
5
|
var ATTACHMENT_UPLOAD_FAILED_TYPE = 'api:attachment:upload:failed';
|
|
6
|
-
var isCanceledAttachmentUpload = notification =>
|
|
6
|
+
var isCanceledAttachmentUpload = notification => {
|
|
7
|
+
var _notification$origina, _notification$origina2;
|
|
8
|
+
return notification.type === ATTACHMENT_UPLOAD_FAILED_TYPE && (((_notification$origina = notification.originalError) == null ? void 0 : _notification$origina.name) === 'CanceledError' || ((_notification$origina2 = notification.originalError) == null ? void 0 : _notification$origina2.name) === 'AbortError');
|
|
9
|
+
};
|
|
7
10
|
var excludeCanceledUploadNotifications = notification => !isCanceledAttachmentUpload(notification);
|
|
8
11
|
exports.excludeCanceledUploadNotifications = excludeCanceledUploadNotifications;
|
|
9
12
|
//# sourceMappingURL=notificationFilters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ATTACHMENT_UPLOAD_FAILED_TYPE","isCanceledAttachmentUpload","notification","type","originalError","name","excludeCanceledUploadNotifications","exports"],"sourceRoot":"../../../../src","sources":["components/Notifications/notificationFilters.ts"],"mappings":";;;;AAIA,IAAMA,6BAA6B,GAAG,8BAA8B;AAQpE,IAAMC,0BAA0B,GAAIC,YAA0B,
|
|
1
|
+
{"version":3,"names":["ATTACHMENT_UPLOAD_FAILED_TYPE","isCanceledAttachmentUpload","notification","_notification$origina","_notification$origina2","type","originalError","name","excludeCanceledUploadNotifications","exports"],"sourceRoot":"../../../../src","sources":["components/Notifications/notificationFilters.ts"],"mappings":";;;;AAIA,IAAMA,6BAA6B,GAAG,8BAA8B;AAQpE,IAAMC,0BAA0B,GAAIC,YAA0B;EAAA,IAAAC,qBAAA,EAAAC,sBAAA;EAAA,OAC5DF,YAAY,CAACG,IAAI,KAAKL,6BAA6B,KAClD,EAAAG,qBAAA,GAAAD,YAAY,CAACI,aAAa,qBAA1BH,qBAAA,CAA4BI,IAAI,MAAK,eAAe,IACnD,EAAAH,sBAAA,GAAAF,YAAY,CAACI,aAAa,qBAA1BF,sBAAA,CAA4BG,IAAI,MAAK,YAAY,CAAC;AAAA;AAS/C,IAAMC,kCAA0D,GAAIN,YAAY,IACrF,CAACD,0BAA0B,CAACC,YAAY,CAAC;AAACO,OAAA,CAAAD,kCAAA,GAAAA,kCAAA","ignoreList":[]}
|
|
@@ -13,8 +13,8 @@ exports.isBuiltInNotificationTargetPanel = isBuiltInNotificationTargetPanel;
|
|
|
13
13
|
var getNotificationTargetTag = (panel, hostId) => `${NOTIFICATION_TARGET_TAG_PREFIX}${panel}${hostId ? `:${hostId}` : ''}`;
|
|
14
14
|
exports.getNotificationTargetTag = getNotificationTargetTag;
|
|
15
15
|
var addNotificationTargetTag = (panel, tags, hostId) => {
|
|
16
|
-
if (!panel) return tags
|
|
17
|
-
return Array.from(new Set([getNotificationTargetTag(panel, hostId), ...(tags
|
|
16
|
+
if (!panel) return tags != null ? tags : [];
|
|
17
|
+
return Array.from(new Set([getNotificationTargetTag(panel, hostId), ...(tags != null ? tags : [])]));
|
|
18
18
|
};
|
|
19
19
|
exports.addNotificationTargetTag = addNotificationTargetTag;
|
|
20
20
|
var addExactNotificationTargetTag = (target, tags) => addNotificationTargetTag(target.panel, tags, target.hostId);
|
|
@@ -41,13 +41,20 @@ var parseNotificationTargetTag = tag => {
|
|
|
41
41
|
panel
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
var getNotificationTargetTags = notification =>
|
|
45
|
-
var
|
|
44
|
+
var getNotificationTargetTags = notification => {
|
|
45
|
+
var _notification$tags;
|
|
46
|
+
return ((_notification$tags = notification.tags) != null ? _notification$tags : []).map(parseNotificationTargetTag).filter(target => !!target);
|
|
47
|
+
};
|
|
48
|
+
var hasNotificationTargetTag = tags => {
|
|
49
|
+
var _tags$some;
|
|
50
|
+
return (_tags$some = tags == null ? void 0 : tags.some(tag => !!parseNotificationTargetTag(tag))) != null ? _tags$some : false;
|
|
51
|
+
};
|
|
46
52
|
exports.hasNotificationTargetTag = hasNotificationTargetTag;
|
|
47
53
|
var getExactNotificationTargetTags = notification => getNotificationTargetTags(notification).filter(target => !!target.hostId);
|
|
48
54
|
var getNotificationTargetFromTags = notification => getExactNotificationTargetTags(notification)[0];
|
|
49
55
|
var getNotificationTargetFromComposer = notification => {
|
|
50
|
-
var
|
|
56
|
+
var _notification$origin$;
|
|
57
|
+
var composer = (_notification$origin$ = notification.origin.context) == null ? void 0 : _notification$origin$.composer;
|
|
51
58
|
if (!isRecord(composer)) return undefined;
|
|
52
59
|
var threadId = getStringValue(composer.threadId);
|
|
53
60
|
if (threadId) {
|
|
@@ -64,22 +71,27 @@ var getNotificationTargetFromComposer = notification => {
|
|
|
64
71
|
panel: 'channel'
|
|
65
72
|
} : undefined;
|
|
66
73
|
};
|
|
67
|
-
var getNotificationTarget = notification =>
|
|
74
|
+
var getNotificationTarget = notification => {
|
|
75
|
+
var _getNotificationTarge;
|
|
76
|
+
return (_getNotificationTarge = getNotificationTargetFromTags(notification)) != null ? _getNotificationTarge : getNotificationTargetFromComposer(notification);
|
|
77
|
+
};
|
|
68
78
|
exports.getNotificationTarget = getNotificationTarget;
|
|
69
79
|
var getExplicitNotificationTargetPanels = notification => {
|
|
80
|
+
var _notification$origin$2;
|
|
70
81
|
var targetPanels = getNotificationTargetTags(notification).map(({
|
|
71
82
|
panel
|
|
72
83
|
}) => panel);
|
|
73
84
|
if (targetPanels.length > 0) {
|
|
74
85
|
return Array.from(new Set(targetPanels));
|
|
75
86
|
}
|
|
76
|
-
var panel = notification.origin.context
|
|
87
|
+
var panel = (_notification$origin$2 = notification.origin.context) == null ? void 0 : _notification$origin$2.panel;
|
|
77
88
|
return isNotificationTargetPanel(panel) ? [panel] : [];
|
|
78
89
|
};
|
|
79
90
|
var getNotificationTargetPanel = notification => {
|
|
91
|
+
var _getNotificationTarge2;
|
|
80
92
|
var explicitPanels = getExplicitNotificationTargetPanels(notification);
|
|
81
93
|
if (explicitPanels.length > 0) return explicitPanels[0];
|
|
82
|
-
return getNotificationTarget(notification)
|
|
94
|
+
return (_getNotificationTarge2 = getNotificationTarget(notification)) == null ? void 0 : _getNotificationTarge2.panel;
|
|
83
95
|
};
|
|
84
96
|
exports.getNotificationTargetPanel = getNotificationTargetPanel;
|
|
85
97
|
var getNotificationTargetPanels = notification => {
|
|
@@ -90,7 +102,8 @@ var getNotificationTargetPanels = notification => {
|
|
|
90
102
|
};
|
|
91
103
|
exports.getNotificationTargetPanels = getNotificationTargetPanels;
|
|
92
104
|
var getNotificationTargetStack = (stackMap, owner) => {
|
|
93
|
-
var
|
|
105
|
+
var _stackMap$get;
|
|
106
|
+
var stack = (_stackMap$get = stackMap.get(owner)) != null ? _stackMap$get : [];
|
|
94
107
|
stackMap.set(owner, stack);
|
|
95
108
|
return stack;
|
|
96
109
|
};
|
|
@@ -114,8 +127,9 @@ var registerNotificationTarget = (stackMap, owner, target) => {
|
|
|
114
127
|
};
|
|
115
128
|
};
|
|
116
129
|
var getLastNotificationTarget = (stackMap, owner) => {
|
|
130
|
+
var _stack;
|
|
117
131
|
var stack = stackMap.get(owner);
|
|
118
|
-
return stack
|
|
132
|
+
return stack == null || (_stack = stack[stack.length - 1]) == null ? void 0 : _stack.target;
|
|
119
133
|
};
|
|
120
134
|
var registerActiveNotificationTarget = (owner, target) => registerNotificationTarget(activeNotificationTargets, owner, target);
|
|
121
135
|
exports.registerActiveNotificationTarget = registerActiveNotificationTarget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NOTIFICATION_TARGET_PANELS","NOTIFICATION_TARGET_TAG_PREFIX","activeNotificationTargets","WeakMap","actionNotificationTargets","isNotificationTargetPanel","value","length","includes","exports","isBuiltInNotificationTargetPanel","getNotificationTargetTag","panel","hostId","addNotificationTargetTag","tags","Array","from","Set","addExactNotificationTargetTag","target","getChannelNotificationHostId","cid","getThreadNotificationHostId","threadId","isNotificationTargetEqual","left","right","isRecord","getStringValue","undefined","parseNotificationTargetTag","tag","startsWith","tagValue","slice","hostSeparatorIndex","indexOf","getNotificationTargetTags","notification","map","filter","hasNotificationTargetTag","some","getExactNotificationTargetTags","getNotificationTargetFromTags","getNotificationTargetFromComposer","composer","origin","context","channel","getNotificationTarget","getExplicitNotificationTargetPanels","targetPanels","getNotificationTargetPanel","explicitPanels","getNotificationTargetPanels","getNotificationTargetStack","stackMap","owner","stack","get","set","registerNotificationTarget","token","Symbol","push","currentStack","itemIndex","findIndex","item","splice","delete","getLastNotificationTarget","registerActiveNotificationTarget","registerNotificationActionTarget","getActiveNotificationTarget","getNotificationActionTarget","hasExactNotificationTargetTag","hasExplicitNotificationTargetPanel","setNotificationTargetTag","resolveNotificationTargetTagIfNeeded","composerTarget","actionTarget","activeTarget","isNotificationForTarget","exactTargets","exactTarget","explicitTargetPanels","inferredTarget","isNotificationForPanel"],"sourceRoot":"../../../../src","sources":["components/Notifications/notificationTarget.ts"],"mappings":";;;;AAEA,IAAMA,0BAA0B,GAAG,CACjC,SAAS,EACT,QAAQ,EACR,cAAc,EACd,aAAa,EACb,iBAAiB,CACT;AACV,IAAMC,8BAA8B,GAAG,SAAkB;AA0BzD,IAAMC,yBAAyB,GAAG,IAAIC,OAAO,CAG3C,CAAC;AACH,IAAMC,yBAAyB,GAAG,IAAID,OAAO,CAG3C,CAAC;AAGI,IAAME,yBAAyB,GAAIC,KAAc,IACtD,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,MAAM,GAAG,CAAC,IAAI,CAACD,KAAK,CAACE,QAAQ,CAAC,GAAG,CAAC;AAACC,OAAA,CAAAJ,yBAAA,GAAAA,yBAAA;AAGjE,IAAMK,gCAAgC,GAC3CJ,KAAc,IAEd,OAAOA,KAAK,KAAK,QAAQ,IAAKN,0BAA0B,CAAuBQ,QAAQ,CAACF,KAAK,CAAC;AAACG,OAAA,CAAAC,gCAAA,GAAAA,gCAAA;AAG1F,IAAMC,wBAAwB,GAAGA,CAACC,KAA8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AA,oCAAA;AAGK,IAAMI,uBAAuB,GAAGA,CAAC9C,YAA0B,EAAEnB,MAA0B,KAAK;EACjG,IAAMkE,YAAY,GAAG1C,8BAA8B,CAACL,YAAY,CAAC;EACjE,IAAI+C,YAAY,CAAC/E,MAAM,GAAG,CAAC,EAAE;IAC3B,OAAO+E,YAAY,CAAC3C,IAAI,CAAE4C,WAAW,IAAK9D,yBAAyB,CAAC8D,WAAW,EAAEnE,MAAM,CAAC,CAAC;EAC3F;EAEA,IAAMoE,oBAAoB,GAAGpC,mCAAmC,CAACb,YAAY,CAAC;EAC9E,IAAIiD,oBAAoB,CAACjF,MAAM,GAAG,CAAC,EAAE;IACnC,OAAOiF,oBAAoB,CAAChF,QAAQ,CAACY,MAAM,CAACR,KAAK,CAAC;EACpD;EAEA,IAAM6E,cAAc,GAAG3C,iCAAiC,CAACP,YAAY,CAAC;EACtE,IAAIkD,cAAc,EAAE;IAClB,OAAOhE,yBAAyB,CAACgE,cAAc,EAAErE,MAAM,CAAC;EAC1D;EAEA,OAAO,KAAK;AACd,CAAC;AAACX,OAAA,CAAA4E,uBAAA,GAAAA,uBAAA;AAGK,IAAMK,sBAAsB,GAAGA,CACpCnD,YAA0B,EAC1B3B,KAA8B,KAC3B;EACH,IAAM4E,oBAAoB,GAAGhC,2BAA2B,CAACjB,YAAY,CAAC;EACtE,IAAIiD,oBAAoB,CAACjF,MAAM,GAAG,CAAC,EAAE;IACnC,OAAOiF,oBAAoB,CAAChF,QAAQ,CAACI,KAAK,CAAC;EAC7C;EAEA,OAAO,KAAK;AACd,CAAC;AAACH,OAAA,CAAAiF,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["NOTIFICATION_TARGET_PANELS","NOTIFICATION_TARGET_TAG_PREFIX","activeNotificationTargets","WeakMap","actionNotificationTargets","isNotificationTargetPanel","value","length","includes","exports","isBuiltInNotificationTargetPanel","getNotificationTargetTag","panel","hostId","addNotificationTargetTag","tags","Array","from","Set","addExactNotificationTargetTag","target","getChannelNotificationHostId","cid","getThreadNotificationHostId","threadId","isNotificationTargetEqual","left","right","isRecord","getStringValue","undefined","parseNotificationTargetTag","tag","startsWith","tagValue","slice","hostSeparatorIndex","indexOf","getNotificationTargetTags","notification","_notification$tags","map","filter","hasNotificationTargetTag","_tags$some","some","getExactNotificationTargetTags","getNotificationTargetFromTags","getNotificationTargetFromComposer","_notification$origin$","composer","origin","context","channel","getNotificationTarget","_getNotificationTarge","getExplicitNotificationTargetPanels","_notification$origin$2","targetPanels","getNotificationTargetPanel","_getNotificationTarge2","explicitPanels","getNotificationTargetPanels","getNotificationTargetStack","stackMap","owner","_stackMap$get","stack","get","set","registerNotificationTarget","token","Symbol","push","currentStack","itemIndex","findIndex","item","splice","delete","getLastNotificationTarget","_stack","registerActiveNotificationTarget","registerNotificationActionTarget","getActiveNotificationTarget","getNotificationActionTarget","hasExactNotificationTargetTag","hasExplicitNotificationTargetPanel","setNotificationTargetTag","resolveNotificationTargetTagIfNeeded","composerTarget","actionTarget","activeTarget","isNotificationForTarget","exactTargets","exactTarget","explicitTargetPanels","inferredTarget","isNotificationForPanel"],"sourceRoot":"../../../../src","sources":["components/Notifications/notificationTarget.ts"],"mappings":";;;;AAEA,IAAMA,0BAA0B,GAAG,CACjC,SAAS,EACT,QAAQ,EACR,cAAc,EACd,aAAa,EACb,iBAAiB,CACT;AACV,IAAMC,8BAA8B,GAAG,SAAkB;AA0BzD,IAAMC,yBAAyB,GAAG,IAAIC,OAAO,CAG3C,CAAC;AACH,IAAMC,yBAAyB,GAAG,IAAID,OAAO,CAG3C,CAAC;AAGI,IAAME,yBAAyB,GAAIC,KAAc,IACtD,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,MAAM,GAAG,CAAC,IAAI,CAACD,KAAK,CAACE,QAAQ,CAAC,GAAG,CAAC;AAACC,OAAA,CAAAJ,yBAAA,GAAAA,yBAAA;AAGjE,IAAMK,gCAAgC,GAC3CJ,KAAc,IAEd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,OAAOxE,yBAAyB,CAACwE,cAAc,EAAE7E,MAAM,CAAC;EAC1D;EAEA,OAAO,KAAK;AACd,CAAC;AAACX,OAAA,CAAAoF,uBAAA,GAAAA,uBAAA;AAGK,IAAMK,sBAAsB,GAAGA,CACpC3D,YAA0B,EAC1B3B,KAA8B,KAC3B;EACH,IAAMoF,oBAAoB,GAAGlC,2BAA2B,CAACvB,YAAY,CAAC;EACtE,IAAIyD,oBAAoB,CAACzF,MAAM,GAAG,CAAC,EAAE;IACnC,OAAOyF,oBAAoB,CAACxF,QAAQ,CAACI,KAAK,CAAC;EAC7C;EAEA,OAAO,KAAK;AACd,CAAC;AAACH,OAAA,CAAAyF,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3
3
|
});
|
|
4
4
|
exports.getNotificationDisplayMessage = void 0;
|
|
5
5
|
var normalizeReason = notification => {
|
|
6
|
-
var
|
|
6
|
+
var _notification$metadat;
|
|
7
|
+
var reason = notification == null || (_notification$metadat = notification.metadata) == null ? void 0 : _notification$metadat.reason;
|
|
7
8
|
if (typeof reason !== 'string' || !reason.length) return undefined;
|
|
8
9
|
return reason.toLowerCase();
|
|
9
10
|
};
|
|
@@ -23,7 +24,8 @@ var translateAttachmentUploadBlocked = ({
|
|
|
23
24
|
notification,
|
|
24
25
|
t
|
|
25
26
|
}) => {
|
|
26
|
-
var
|
|
27
|
+
var _notification$metadat2;
|
|
28
|
+
var rawReason = notification == null || (_notification$metadat2 = notification.metadata) == null ? void 0 : _notification$metadat2.reason;
|
|
27
29
|
var reason = t('unsupported file type');
|
|
28
30
|
if (typeof rawReason !== 'string') reason = t('unknown error');
|
|
29
31
|
if (rawReason === 'size_limit') reason = t('size limit');
|
|
@@ -69,7 +71,7 @@ var translateCommandDisabled = ({
|
|
|
69
71
|
if (reason === 'quoted_message') {
|
|
70
72
|
return t('Command not available while replying');
|
|
71
73
|
}
|
|
72
|
-
return t(notification
|
|
74
|
+
return t((notification == null ? void 0 : notification.message) || 'Command not available');
|
|
73
75
|
};
|
|
74
76
|
var notificationTranslatorsByType = {
|
|
75
77
|
'api:attachment:upload:failed': translateAttachmentUploadFailed,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["normalizeReason","notification","reason","metadata","length","undefined","toLowerCase","withReasonFallback","fallbackTranslationKey","reasonTranslationKey","t","translateAttachmentUploadBlocked","rawReason","translateAttachmentUploadFailed","translatePollCreateFailed","translatePollEndFailed","translateCommandDisabled","message","notificationTranslatorsByType","api:location:create:failed","api:location:share:failed","api:poll:end:success","api:reply:search:failed","browser:audio:playback:error","browser:location:get:failed","channel:jumpToFirstUnread:failed","validation:attachment:file:missing","validation:attachment:id:missing","validation:attachment:upload:in-progress","validation:poll:castVote:limit","getNotificationDisplayMessage","translator","type","exports"],"sourceRoot":"../../../../src","sources":["components/Notifications/notificationTranslations.ts"],"mappings":";;;;AAGA,IAAMA,eAAe,GAAIC,YAA2B,IAAK;EACvD,IAAMC,MAAM,
|
|
1
|
+
{"version":3,"names":["normalizeReason","notification","_notification$metadat","reason","metadata","length","undefined","toLowerCase","withReasonFallback","fallbackTranslationKey","reasonTranslationKey","t","translateAttachmentUploadBlocked","_notification$metadat2","rawReason","translateAttachmentUploadFailed","translatePollCreateFailed","translatePollEndFailed","translateCommandDisabled","message","notificationTranslatorsByType","api:location:create:failed","api:location:share:failed","api:poll:end:success","api:reply:search:failed","browser:audio:playback:error","browser:location:get:failed","channel:jumpToFirstUnread:failed","validation:attachment:file:missing","validation:attachment:id:missing","validation:attachment:upload:in-progress","validation:poll:castVote:limit","getNotificationDisplayMessage","translator","type","exports"],"sourceRoot":"../../../../src","sources":["components/Notifications/notificationTranslations.ts"],"mappings":";;;;AAGA,IAAMA,eAAe,GAAIC,YAA2B,IAAK;EAAA,IAAAC,qBAAA;EACvD,IAAMC,MAAM,GAAGF,YAAY,aAAAC,qBAAA,GAAZD,YAAY,CAAEG,QAAQ,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AAY,CAACkB,OAAO,CAAC,GAAGR,CAAC,CAAC,iCAAiC,CAAC;EACvF,6BAA6B,EAAEe,CAAC;IAAEf;EAAE,CAAC,KAAKA,CAAC,CAAC,6BAA6B,CAAC;EAC1E,kCAAkC,EAAEgB,CAAC;IAAEhB;EAAE,CAAC,KAAKA,CAAC,CAAC,4CAA4C,CAAC;EAC9F,oCAAoC,EAAEiB,CAAC;IAAEjB;EAAE,CAAC,KAAKA,CAAC,CAAC,wCAAwC,CAAC;EAC5F,kCAAkC,EAAEkB,CAAC;IAAElB;EAAE,CAAC,KAAKA,CAAC,CAAC,0CAA0C,CAAC;EAC5F,sCAAsC,EAAEC,gCAAgC;EACxE,0CAA0C,EAAEkB,CAAC;IAAEnB;EAAE,CAAC,KAChDA,CAAC,CAAC,0CAA0C,CAAC;EAC/C,6BAA6B,EAAEO,wBAAwB;EACvD,gCAAgC,EAAEa,CAAC;IAAEpB;EAAE,CAAC,KACtCA,CAAC,CAAC,wDAAwD;AAC9D,CAAC;AAEM,IAAMqB,6BAA6B,GAAGA,CAAC;EAC5C/B,YAAY;EACZU;AAIF,CAAC,KAAK;EACJ,IAAMsB,UAAU,GAAGhC,YAAY,CAACiC,IAAI,GAChCd,6BAA6B,CAACnB,YAAY,CAACiC,IAAI,CAAC,GAChD5B,SAAS;EAEb,OAAO2B,UAAU,GAAGA,UAAU,CAAC;IAAEhC,YAAY;IAAEU;EAAE,CAAC,CAAC,GAAGA,CAAC,CAACV,YAAY,CAACkB,OAAO,CAAC;AAC/E,CAAC;AAACgB,OAAA,CAAAH,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -82,7 +82,8 @@ var CreatePollContent = () => {
|
|
|
82
82
|
};
|
|
83
83
|
var runningTop = 0;
|
|
84
84
|
latestOptions.forEach((option, index) => {
|
|
85
|
-
var
|
|
85
|
+
var _previousPositionCach, _previousPositionCach2;
|
|
86
|
+
var preservedHeight = (_previousPositionCach = (_previousPositionCach2 = previousPositionCache[option.id]) == null ? void 0 : _previousPositionCach2.updatedHeight) != null ? _previousPositionCach : 0;
|
|
86
87
|
newCurrentOptionPositions.inverseIndexCache[index] = option.id;
|
|
87
88
|
newCurrentOptionPositions.positionCache[option.id] = {
|
|
88
89
|
updatedHeight: preservedHeight,
|
|
@@ -96,7 +97,7 @@ var CreatePollContent = () => {
|
|
|
96
97
|
currentOptionPositions.value = newCurrentOptionPositions;
|
|
97
98
|
}, [currentOptionPositions, normalizedCreatePollOptionGap, optionIdsKey]);
|
|
98
99
|
var onBackPressHandler = (0, _react.useCallback)(() => {
|
|
99
|
-
closePollCreationDialog
|
|
100
|
+
closePollCreationDialog == null || closePollCreationDialog();
|
|
100
101
|
}, [closePollCreationDialog]);
|
|
101
102
|
var onCreatePollPressHandler = (0, _react.useCallback)((0, _asyncToGenerator2.default)(function* () {
|
|
102
103
|
yield createAndSendPoll();
|
|
@@ -227,7 +228,7 @@ var CreatePoll = ({
|
|
|
227
228
|
});
|
|
228
229
|
closeFrameRef.current = requestAnimationFrame(() => {
|
|
229
230
|
closeFrameRef.current = null;
|
|
230
|
-
closePollCreationDialog
|
|
231
|
+
closePollCreationDialog == null || closePollCreationDialog();
|
|
231
232
|
});
|
|
232
233
|
}, [closePollCreationDialog, modalStateStore]);
|
|
233
234
|
(0, _react.useEffect)(() => {
|