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":["_axios","_interopRequireDefault","require","_native","DEFAULT_COMPLETION_PROGRESS_CAP","installedAdapters","WeakSet","getFormDataEntries","data","entries","Array","from","parts","Reflect","get","isArray","normalizeHeaders","headers","rawHeaders","toJSON","normalizedHeaders","Object","forEach","key","value","join","String","getFileNameFromUri","uri","split","filter","Boolean","pop","getNativeProgressOptions","progress","undefined","nativeProgressOptions","completionProgressCap","keys","length","createNativeMultipartRequest","client","config","_ref","_ref2","_slicedToArray2","default","fieldName","push","kind","fileName","name","mimeType","type","contentType","some","part","method","toUpperCase","uploadProgressOptions","signal","timeoutMs","timeout","url","axiosInstance","getUri","toFiniteNumber","Number","isFinite","trim","parsed","getCompletionProgressCap","cap","Math","min","max","getDisplayLoaded","loaded","total","getUploadProgressCallbacks","callbacks","onUploadProgress","uploadProgress","callback","Set","createUploadProgressEvent","bytes","normalizedBytes","normalizedLoaded","normalizedTotal","download","event","lengthComputable","upload","nativeMultipartAxiosAdapter","_ref3","_asyncToGenerator2","request","uploadProgressCallbacks","lastLoaded","response","NativeHandlers","multipartUpload","onProgress","displayLoaded","Error","body","status","statusText","_x","_x2","apply","arguments","resolveAxiosAdapter","adapter","axios","getAdapter","createNativeMultipartAwareAdapter","fallbackAdapter","resolvedFallbackAdapter","nativeMultipartRequest","wrapAxiosAdapterWithNativeMultipart","isNativeMultipartUploadAvailable","exports","installNativeMultipartAdapter","has","previousAdapter","defaults","add"],"sourceRoot":"../../../src","sources":["utils/installNativeMultipartAdapter.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAwBA,IAAME,+BAA+B,GAAG,EAAE;AAE1C,IAAMC,iBAAiB,GAAG,IAAIC,OAAO,CAAa,CAAC;AAEnD,IAAMC,kBAAkB,GAAIC,IAAa,IAA2C;EAClF,IAAI,CAACA,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IACrC,OAAO,IAAI;EACb;EAEA,IAAI,SAAS,IAAIA,IAAI,IAAI,OAAOA,IAAI,CAACC,OAAO,KAAK,UAAU,EAAE;IAC3D,OAAOC,KAAK,CAACC,IAAI,CAACH,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EACnC;EAEA,IAAMG,KAAK,GAAGC,OAAO,CAACC,GAAG,CAACN,IAAI,EAAE,QAAQ,CAAC;EAEzC,IAAIE,KAAK,CAACK,OAAO,CAACH,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK;EACd;EAEA,OAAO,IAAI;AACb,CAAC;AAED,IAAMI,gBAAgB,GACpBC,OAAqD,IAC1B;EAC3B,IAAMC,UAAU,GAAGD,OAAO,EAAEE,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;EAC1C,IAAMC,iBAAyC,GAAG,CAAC,CAAC;EAEpDC,MAAM,CAACZ,OAAO,CAACS,UAAU,IAAI,CAAC,CAAC,CAAC,CAACI,OAAO,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;IACzD,IAAIA,KAAK,IAAI,IAAI,EAAE;MACjB;IACF;IAEAJ,iBAAiB,CAACG,GAAG,CAAC,GAA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,OAAOT,mBAAmB,CAACK,eAAe,CAAC;EAC7C;EAEA,OAAOD,iCAAiC,CAAC5E,MAAM,EAAE6E,eAAe,CAAC;AACnE,CAAC;AAACK,OAAA,CAAAF,mCAAA,GAAAA,mCAAA;AAEK,IAAMG,6BAA6B,GAAInF,MAAkB,IAAK;EACnE,IAAI,CAAC,IAAAiF,wCAAgC,EAAC,CAAC,EAAE;IACvC;EACF;EAEA,IAAIrH,iBAAiB,CAACwH,GAAG,CAACpF,MAAM,CAAC,EAAE;IACjC;EACF;EAEA,IAAMqF,eAAe,GAAGrF,MAAM,CAACuB,aAAa,CAAC+D,QAAQ,CAACb,OAAO;EAC7DzE,MAAM,CAACuB,aAAa,CAAC+D,QAAQ,CAACb,OAAO,GAAGO,mCAAmC,CACzEhF,MAAM,EACNqF,eACF,CAAC;EACDzH,iBAAiB,CAAC2H,GAAG,CAACvF,MAAM,CAAC;AAC/B,CAAC;AAACkF,OAAA,CAAAC,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_axios","_interopRequireDefault","require","_native","_createForOfIteratorHelperLoose","r","e","t","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","o","done","value","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","from","test","n","DEFAULT_COMPLETION_PROGRESS_CAP","installedAdapters","WeakSet","getFormDataEntries","data","entries","parts","Reflect","get","normalizeHeaders","headers","_headers$toJSON","rawHeaders","toJSON","normalizedHeaders","Object","forEach","key","join","String","getFileNameFromUri","uri","split","filter","Boolean","pop","getNativeProgressOptions","progress","undefined","nativeProgressOptions","completionProgressCap","keys","createNativeMultipartRequest","client","config","_iterator","_step","_ref","_ref2","_slicedToArray2","default","fieldName","push","kind","fileName","mimeType","type","contentType","some","part","method","toUpperCase","uploadProgressOptions","signal","timeoutMs","timeout","url","axiosInstance","getUri","toFiniteNumber","Number","isFinite","trim","parsed","getCompletionProgressCap","_config$uploadProgres","cap","Math","min","max","getDisplayLoaded","loaded","total","getUploadProgressCallbacks","callbacks","onUploadProgress","uploadProgress","callback","Set","createUploadProgressEvent","bytes","_toFiniteNumber","_toFiniteNumber2","normalizedBytes","normalizedLoaded","normalizedTotal","download","event","lengthComputable","upload","nativeMultipartAxiosAdapter","_ref3","_asyncToGenerator2","request","_response$headers","_response$statusText","uploadProgressCallbacks","lastLoaded","response","NativeHandlers","multipartUpload","onProgress","_toFiniteNumber3","displayLoaded","Error","body","status","statusText","_x","_x2","apply","arguments","resolveAxiosAdapter","adapter","axios","getAdapter","createNativeMultipartAwareAdapter","fallbackAdapter","resolvedFallbackAdapter","nativeMultipartRequest","wrapAxiosAdapterWithNativeMultipart","isNativeMultipartUploadAvailable","exports","installNativeMultipartAdapter","has","previousAdapter","defaults","add"],"sourceRoot":"../../../src","sources":["utils/installNativeMultipartAdapter.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAKmB,SAAAE,gCAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,yBAAAC,MAAA,IAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,oBAAAE,CAAA,UAAAA,CAAA,GAAAA,CAAA,CAAAG,IAAA,CAAAL,CAAA,GAAAM,IAAA,CAAAC,IAAA,CAAAL,CAAA,OAAAM,KAAA,CAAAC,OAAA,CAAAT,CAAA,MAAAE,CAAA,GAAAQ,2BAAA,CAAAV,CAAA,MAAAC,CAAA,IAAAD,CAAA,uBAAAA,CAAA,CAAAW,MAAA,IAAAT,CAAA,KAAAF,CAAA,GAAAE,CAAA,OAAAU,CAAA,kCAAAA,CAAA,IAAAZ,CAAA,CAAAW,MAAA,KAAAE,IAAA,WAAAA,IAAA,MAAAC,KAAA,EAAAd,CAAA,CAAAY,CAAA,sBAAAG,SAAA;AAAA,SAAAL,4BAAAV,CAAA,EAAAgB,CAAA,QAAAhB,CAAA,2BAAAA,CAAA,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e,GAAG5F,MAAM,CAACwB,aAAa,CAACqE,QAAQ,CAACb,OAAO;EAC7DhF,MAAM,CAACwB,aAAa,CAACqE,QAAQ,CAACb,OAAO,GAAGO,mCAAmC,CACzEvF,MAAM,EACN4F,eACF,CAAC;EACD5H,iBAAiB,CAAC8H,GAAG,CAAC9F,MAAM,CAAC;AAC/B,CAAC;AAACyF,OAAA,CAAAC,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -4,14 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
exports.isRNVersionGreaterThanOrEqualTo = void 0;
|
|
5
5
|
var _reactNative = require("react-native");
|
|
6
6
|
var isRNVersionGreaterThanOrEqualTo = version => {
|
|
7
|
-
var
|
|
7
|
+
var _Platform$constants, _runtime$patch;
|
|
8
|
+
var runtime = (_Platform$constants = _reactNative.Platform.constants) == null ? void 0 : _Platform$constants.reactNativeVersion;
|
|
8
9
|
if (!runtime) {
|
|
9
10
|
return false;
|
|
10
11
|
}
|
|
11
|
-
var current = [runtime.major, runtime.minor, runtime.patch
|
|
12
|
+
var current = [runtime.major, runtime.minor, (_runtime$patch = runtime.patch) != null ? _runtime$patch : 0];
|
|
12
13
|
var target = version.split('.').map(part => parseInt(part, 10) || 0);
|
|
13
14
|
for (var i = 0; i < current.length; i++) {
|
|
14
|
-
var
|
|
15
|
+
var _target$i;
|
|
16
|
+
var wanted = (_target$i = target[i]) != null ? _target$i : 0;
|
|
15
17
|
if (current[i] !== wanted) {
|
|
16
18
|
return current[i] > wanted;
|
|
17
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","isRNVersionGreaterThanOrEqualTo","version","runtime","Platform","constants","reactNativeVersion","current","major","minor","patch","target","split","map","part","parseInt","i","length","wanted","exports"],"sourceRoot":"../../../src","sources":["utils/isRNVersionGreaterThanOrEqualTo.ts"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AASO,IAAMC,+BAA+B,GAAIC,OAAe,IAAc;EAC3E,IAAMC,OAAO,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","isRNVersionGreaterThanOrEqualTo","version","_Platform$constants","_runtime$patch","runtime","Platform","constants","reactNativeVersion","current","major","minor","patch","target","split","map","part","parseInt","i","length","_target$i","wanted","exports"],"sourceRoot":"../../../src","sources":["utils/isRNVersionGreaterThanOrEqualTo.ts"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AASO,IAAMC,+BAA+B,GAAIC,OAAe,IAAc;EAAA,IAAAC,mBAAA,EAAAC,cAAA;EAC3E,IAAMC,OAAO,IAAAF,mBAAA,GAAGG,qBAAQ,CAACC,SAAS,qBAAlBJ,mBAAA,CAAoBK,kBAAkB;EACtD,IAAI,CAACH,OAAO,EAAE;IACZ,OAAO,KAAK;EACd;EAEA,IAAMI,OAAO,GAAG,CAACJ,OAAO,CAACK,KAAK,EAAEL,OAAO,CAACM,KAAK,GAAAP,cAAA,GAAEC,OAAO,CAACO,KAAK,YAAAR,cAAA,GAAI,CAAC,CAAC;EAClE,IAAMS,MAAM,GAAGX,OAAO,CAACY,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAEC,IAAI,IAAKC,QAAQ,CAACD,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;EAExE,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,OAAO,CAACU,MAAM,EAAED,CAAC,EAAE,EAAE;IAAA,IAAAE,SAAA;IACvC,IAAMC,MAAM,IAAAD,SAAA,GAAGP,MAAM,CAACK,CAAC,CAAC,YAAAE,SAAA,GAAI,CAAC;IAC7B,IAAIX,OAAO,CAACS,CAAC,CAAC,KAAKG,MAAM,EAAE;MACzB,OAAOZ,OAAO,CAACS,CAAC,CAAC,GAAGG,MAAM;IAC5B;EACF;EAEA,OAAO,IAAI;AACb,CAAC;AAACC,OAAA,CAAArB,+BAAA,GAAAA,+BAAA","ignoreList":[]}
|
|
@@ -11,7 +11,8 @@ function patchMessageTextCommand(messageText, mentionedUserIds) {
|
|
|
11
11
|
return trimmedMessageText.replace(/@.+/, `@${mentionedUserIds[0]}`);
|
|
12
12
|
}
|
|
13
13
|
if (trimmedMessageText.startsWith('/ban ')) {
|
|
14
|
-
var
|
|
14
|
+
var _trimmedMessageText$s;
|
|
15
|
+
var reasonText = (_trimmedMessageText$s = trimmedMessageText.split(' ').pop()) != null ? _trimmedMessageText$s : '';
|
|
15
16
|
return `/ban @${mentionedUserIds[0]} ${reasonText}`.trim();
|
|
16
17
|
}
|
|
17
18
|
return messageText;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["patchMessageTextCommand","messageText","mentionedUserIds","length","trimmedMessageText","trim","startsWith","replace","reasonText","split","pop"],"sourceRoot":"../../../src","sources":["utils/patchMessageTextCommand.ts"],"mappings":";;;;AAQO,SAASA,uBAAuBA,CAACC,WAAmB,EAAEC,gBAA0B,EAAU;EAC/F,IAAIA,gBAAgB,CAACC,MAAM,KAAK,CAAC,EAAE;IACjC,OAAOF,WAAW;EACpB;EACA,IAAMG,kBAAkB,GAAGH,WAAW,CAACI,IAAI,CAAC,CAAC;EAK7C,IACED,kBAAkB,CAACE,UAAU,CAAC,QAAQ,CAAC,IACvCF,kBAAkB,CAACE,UAAU,CAAC,UAAU,CAAC,IACzCF,kBAAkB,CAACE,UAAU,CAAC,SAAS,CAAC,EACxC;IACA,OAAOF,kBAAkB,CAACG,OAAO,CAAC,KAAK,EAAE,IAAIL,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;EACrE;EAKA,IAAIE,kBAAkB,CAACE,UAAU,CAAC,OAAO,CAAC,EAAE;IAE1C,
|
|
1
|
+
{"version":3,"names":["patchMessageTextCommand","messageText","mentionedUserIds","length","trimmedMessageText","trim","startsWith","replace","_trimmedMessageText$s","reasonText","split","pop"],"sourceRoot":"../../../src","sources":["utils/patchMessageTextCommand.ts"],"mappings":";;;;AAQO,SAASA,uBAAuBA,CAACC,WAAmB,EAAEC,gBAA0B,EAAU;EAC/F,IAAIA,gBAAgB,CAACC,MAAM,KAAK,CAAC,EAAE;IACjC,OAAOF,WAAW;EACpB;EACA,IAAMG,kBAAkB,GAAGH,WAAW,CAACI,IAAI,CAAC,CAAC;EAK7C,IACED,kBAAkB,CAACE,UAAU,CAAC,QAAQ,CAAC,IACvCF,kBAAkB,CAACE,UAAU,CAAC,UAAU,CAAC,IACzCF,kBAAkB,CAACE,UAAU,CAAC,SAAS,CAAC,EACxC;IACA,OAAOF,kBAAkB,CAACG,OAAO,CAAC,KAAK,EAAE,IAAIL,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;EACrE;EAKA,IAAIE,kBAAkB,CAACE,UAAU,CAAC,OAAO,CAAC,EAAE;IAAA,IAAAE,qBAAA;IAE1C,IAAMC,UAAU,IAAAD,qBAAA,GAAGJ,kBAAkB,CAACM,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,YAAAH,qBAAA,GAAI,EAAE;IAC5D,OAAO,SAASN,gBAAgB,CAAC,CAAC,CAAC,IAAIO,UAAU,EAAE,CAACJ,IAAI,CAAC,CAAC;EAC5D;EAEA,OAAOJ,WAAW;AACpB","ignoreList":[]}
|
|
@@ -8,15 +8,16 @@ var removeReactionFromLocalState = ({
|
|
|
8
8
|
reactionType,
|
|
9
9
|
user
|
|
10
10
|
}) => {
|
|
11
|
+
var _message$own_reaction, _message$latest_react, _message$reaction_gro;
|
|
11
12
|
var message = channel.state.messages.find(({
|
|
12
13
|
id
|
|
13
14
|
}) => id === messageId);
|
|
14
|
-
if (!message || !channel
|
|
15
|
+
if (!message || !(channel != null && channel.id) || !(user != null && user.id)) {
|
|
15
16
|
return;
|
|
16
17
|
}
|
|
17
|
-
message.own_reactions = message.own_reactions
|
|
18
|
-
message.latest_reactions = message.latest_reactions
|
|
19
|
-
if (message.reaction_groups
|
|
18
|
+
message.own_reactions = (_message$own_reaction = message.own_reactions) == null ? void 0 : _message$own_reaction.filter(reaction => reaction.type !== reactionType);
|
|
19
|
+
message.latest_reactions = (_message$latest_react = message.latest_reactions) == null ? void 0 : _message$latest_react.filter(r => !(r.user_id === (user == null ? void 0 : user.id) && r.type === reactionType));
|
|
20
|
+
if ((_message$reaction_gro = message.reaction_groups) != null && _message$reaction_gro[reactionType]) {
|
|
20
21
|
if (message.reaction_groups[reactionType].count > 0 || message.reaction_groups[reactionType].sum_scores > 0) {
|
|
21
22
|
message.reaction_groups[reactionType].count = Math.max(0, message.reaction_groups[reactionType].count - 1);
|
|
22
23
|
message.reaction_groups[reactionType].sum_scores = Math.max(0, message.reaction_groups[reactionType].sum_scores - 1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["removeReactionFromLocalState","channel","messageId","reactionType","user","message","state","messages","find","id","own_reactions","filter","reaction","type","latest_reactions","r","user_id","reaction_groups","count","sum_scores","Math","max","exports"],"sourceRoot":"../../../src","sources":["utils/removeReactionFromLocalState.ts"],"mappings":";;;;AAEO,IAAMA,4BAA4B,GAAGA,CAAC;EAC3CC,OAAO;EACPC,SAAS;EACTC,YAAY;EACZC;AAMF,CAAC,KAAK;EACJ,IAAMC,OAAO,
|
|
1
|
+
{"version":3,"names":["removeReactionFromLocalState","channel","messageId","reactionType","user","_message$own_reaction","_message$latest_react","_message$reaction_gro","message","state","messages","find","id","own_reactions","filter","reaction","type","latest_reactions","r","user_id","reaction_groups","count","sum_scores","Math","max","exports"],"sourceRoot":"../../../src","sources":["utils/removeReactionFromLocalState.ts"],"mappings":";;;;AAEO,IAAMA,4BAA4B,GAAGA,CAAC;EAC3CC,OAAO;EACPC,SAAS;EACTC,YAAY;EACZC;AAMF,CAAC,KAAK;EAAA,IAAAC,qBAAA,EAAAC,qBAAA,EAAAC,qBAAA;EACJ,IAAMC,OAAO,GAAGP,OAAO,CAACQ,KAAK,CAACC,QAAQ,CAACC,IAAI,CAAC,CAAC;IAAEC;EAAG,CAAC,KAAKA,EAAE,KAAKV,SAAS,C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AACmB,UAAU,KAAK,CAAC,EACtD;QACA,OAAOd,OAAO,CAACY,eAAe,CAACjB,YAAY,CAAC;MAC9C;IACF,CAAC,MAAM;MACL,OAAOK,OAAO,CAACY,eAAe,CAACjB,YAAY,CAAC;IAC9C;EACF;AACF,CAAC;AAACsB,OAAA,CAAAzB,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|
|
@@ -39,10 +39,14 @@ var getIndicatorTypeForFileState = (fileState, allowSendBeforeAttachmentsUpload)
|
|
|
39
39
|
};
|
|
40
40
|
exports.getIndicatorTypeForFileState = getIndicatorTypeForFileState;
|
|
41
41
|
var isBlockedMessage = message => {
|
|
42
|
-
|
|
42
|
+
var _message$moderation_d, _message$moderation;
|
|
43
|
+
return message.type === 'error' && (((_message$moderation_d = message.moderation_details) == null ? void 0 : _message$moderation_d.action) === 'MESSAGE_RESPONSE_ACTION_REMOVE' || ((_message$moderation = message.moderation) == null ? void 0 : _message$moderation.action) === 'remove');
|
|
43
44
|
};
|
|
44
45
|
exports.isBlockedMessage = isBlockedMessage;
|
|
45
|
-
var isBouncedMessage = message =>
|
|
46
|
+
var isBouncedMessage = message => {
|
|
47
|
+
var _message$moderation_d2, _message$moderation2;
|
|
48
|
+
return message.type === 'error' && ((message == null || (_message$moderation_d2 = message.moderation_details) == null ? void 0 : _message$moderation_d2.action) === 'MESSAGE_RESPONSE_ACTION_BOUNCE' || (message == null || (_message$moderation2 = message.moderation) == null ? void 0 : _message$moderation2.action) === 'bounce');
|
|
49
|
+
};
|
|
46
50
|
exports.isBouncedMessage = isBouncedMessage;
|
|
47
51
|
var isEditedMessage = message => !!message.message_text_updated_at;
|
|
48
52
|
exports.isEditedMessage = isEditedMessage;
|
|
@@ -87,21 +91,21 @@ var stringifyMessage = ({
|
|
|
87
91
|
text = message.text,
|
|
88
92
|
type = message.type,
|
|
89
93
|
updated_at = message.updated_at;
|
|
90
|
-
var baseFieldsString = `${type}${deleted_at}${text}${reply_count}${status}${updated_at}${JSON.stringify(i18n)}${attachments
|
|
94
|
+
var baseFieldsString = `${type}${deleted_at}${text}${reply_count}${status}${updated_at}${JSON.stringify(i18n)}${attachments == null ? void 0 : attachments.length}`;
|
|
91
95
|
if (!includeReactions) {
|
|
92
96
|
return baseFieldsString;
|
|
93
97
|
}
|
|
94
98
|
return `${latest_reactions ? latest_reactions.map(({
|
|
95
99
|
type,
|
|
96
100
|
user
|
|
97
|
-
}) => `${type}${user
|
|
101
|
+
}) => `${type}${user == null ? void 0 : user.id}`).join() : ''}${reaction_groups ? Object.entries(reaction_groups).flatMap(([type, {
|
|
98
102
|
count,
|
|
99
103
|
first_reaction_at,
|
|
100
104
|
last_reaction_at
|
|
101
105
|
}]) => `${type}${count}${first_reaction_at}${last_reaction_at}`).join() : ''}${baseFieldsString}`;
|
|
102
106
|
};
|
|
103
107
|
exports.stringifyMessage = stringifyMessage;
|
|
104
|
-
var reduceMessagesToString = messages => messages.map(message => message
|
|
108
|
+
var reduceMessagesToString = messages => messages.map(message => message != null && message.quoted_message ? `${stringifyMessage({
|
|
105
109
|
message
|
|
106
110
|
})}_${message.quoted_message.type}_${message.quoted_message.deleted_at}_${message.quoted_message.text}_${message.quoted_message.updated_at}` : stringifyMessage({
|
|
107
111
|
message
|
|
@@ -154,10 +158,11 @@ var findInMessagesByDate = (messages, targetDate) => {
|
|
|
154
158
|
var right = messages.length - 1;
|
|
155
159
|
var middle = 0;
|
|
156
160
|
while (left <= right) {
|
|
161
|
+
var _messages, _messages2;
|
|
157
162
|
middle = Math.floor(left + (right - left) / 2);
|
|
158
163
|
var middleTimestamp = new Date(messages[middle].created_at).getTime();
|
|
159
|
-
var middleLeftTimestamp = messages[middle - 1]
|
|
160
|
-
var middleRightTimestamp = messages[middle + 1]
|
|
164
|
+
var middleLeftTimestamp = ((_messages = messages[middle - 1]) == null ? void 0 : _messages.created_at) && new Date(messages[middle - 1].created_at).getTime();
|
|
165
|
+
var middleRightTimestamp = ((_messages2 = messages[middle + 1]) == null ? void 0 : _messages2.created_at) && new Date(messages[middle + 1].created_at).getTime();
|
|
161
166
|
if (middleTimestamp === targetTimestamp || middleLeftTimestamp && middleRightTimestamp && middleLeftTimestamp < targetTimestamp && middleRightTimestamp > targetTimestamp) {
|
|
162
167
|
return {
|
|
163
168
|
index: middle,
|
|
@@ -175,6 +180,7 @@ var findInMessagesByDate = (messages, targetDate) => {
|
|
|
175
180
|
};
|
|
176
181
|
exports.findInMessagesByDate = findInMessagesByDate;
|
|
177
182
|
var checkMessageEquality = (prevMessage, nextMessage) => {
|
|
183
|
+
var _prevMessage$updated_, _nextMessage$updated_, _prevMessage$deleted_, _nextMessage$deleted_;
|
|
178
184
|
var prevMessageExists = !!prevMessage;
|
|
179
185
|
var nextMessageExists = !!nextMessage;
|
|
180
186
|
if (!prevMessageExists && !nextMessageExists) {
|
|
@@ -183,11 +189,12 @@ var checkMessageEquality = (prevMessage, nextMessage) => {
|
|
|
183
189
|
if (prevMessageExists !== nextMessageExists) {
|
|
184
190
|
return false;
|
|
185
191
|
}
|
|
186
|
-
var messageEqual = prevMessage
|
|
192
|
+
var messageEqual = (prevMessage == null ? void 0 : prevMessage.status) === (nextMessage == null ? void 0 : nextMessage.status) && (prevMessage == null ? void 0 : prevMessage.type) === (nextMessage == null ? void 0 : nextMessage.type) && (prevMessage == null ? void 0 : prevMessage.text) === (nextMessage == null ? void 0 : nextMessage.text) && (prevMessage == null ? void 0 : prevMessage.pinned) === (nextMessage == null ? void 0 : nextMessage.pinned) && (prevMessage == null ? void 0 : prevMessage.i18n) === (nextMessage == null ? void 0 : nextMessage.i18n) && (prevMessage == null ? void 0 : prevMessage.reply_count) === (nextMessage == null ? void 0 : nextMessage.reply_count) && (prevMessage == null || (_prevMessage$updated_ = prevMessage.updated_at) == null || _prevMessage$updated_.getTime == null ? void 0 : _prevMessage$updated_.getTime()) === (nextMessage == null || (_nextMessage$updated_ = nextMessage.updated_at) == null || _nextMessage$updated_.getTime == null ? void 0 : _nextMessage$updated_.getTime()) && (prevMessage == null || (_prevMessage$deleted_ = prevMessage.deleted_at) == null || _prevMessage$deleted_.getTime == null ? void 0 : _prevMessage$deleted_.getTime()) === (nextMessage == null || (_nextMessage$deleted_ = nextMessage.deleted_at) == null || _nextMessage$deleted_.getTime == null ? void 0 : _nextMessage$deleted_.getTime());
|
|
187
193
|
return messageEqual;
|
|
188
194
|
};
|
|
189
195
|
exports.checkMessageEquality = checkMessageEquality;
|
|
190
196
|
var checkQuotedMessageEquality = (prevQuotedMessage, nextQuotedMessage) => {
|
|
197
|
+
var _prevQuotedMessage$up, _nextQuotedMessage$up, _prevQuotedMessage$de, _nextQuotedMessage$de;
|
|
191
198
|
var prevQuotedMessageExists = !!prevQuotedMessage;
|
|
192
199
|
var nextQuotedMessageExists = !!nextQuotedMessage;
|
|
193
200
|
if (!prevQuotedMessageExists && !nextQuotedMessageExists) {
|
|
@@ -196,7 +203,7 @@ var checkQuotedMessageEquality = (prevQuotedMessage, nextQuotedMessage) => {
|
|
|
196
203
|
if (prevQuotedMessageExists !== nextQuotedMessageExists) {
|
|
197
204
|
return false;
|
|
198
205
|
}
|
|
199
|
-
var quotedMessageEqual = prevQuotedMessage
|
|
206
|
+
var quotedMessageEqual = (prevQuotedMessage == null ? void 0 : prevQuotedMessage.type) === (nextQuotedMessage == null ? void 0 : nextQuotedMessage.type) && (prevQuotedMessage == null ? void 0 : prevQuotedMessage.text) === (nextQuotedMessage == null ? void 0 : nextQuotedMessage.text) && (prevQuotedMessage == null || (_prevQuotedMessage$up = prevQuotedMessage.updated_at) == null || _prevQuotedMessage$up.getTime == null ? void 0 : _prevQuotedMessage$up.getTime()) === (nextQuotedMessage == null || (_nextQuotedMessage$up = nextQuotedMessage.updated_at) == null || _nextQuotedMessage$up.getTime == null ? void 0 : _nextQuotedMessage$up.getTime()) && (prevQuotedMessage == null || (_prevQuotedMessage$de = prevQuotedMessage.deleted_at) == null || _prevQuotedMessage$de.getTime == null ? void 0 : _prevQuotedMessage$de.getTime()) === (nextQuotedMessage == null || (_nextQuotedMessage$de = nextQuotedMessage.deleted_at) == null || _nextQuotedMessage$de.getTime == null ? void 0 : _nextQuotedMessage$de.getTime());
|
|
200
207
|
return quotedMessageEqual;
|
|
201
208
|
};
|
|
202
209
|
exports.checkQuotedMessageEquality = checkQuotedMessageEquality;
|
|
@@ -208,12 +215,13 @@ var getInitialsFromName = (name, numberOfInitials = 2) => {
|
|
|
208
215
|
};
|
|
209
216
|
exports.getInitialsFromName = getInitialsFromName;
|
|
210
217
|
var hashStringToNumber = str => {
|
|
218
|
+
var _Math$abs;
|
|
211
219
|
var hash = 0;
|
|
212
220
|
for (var i = 0; i < str.length; i++) {
|
|
213
221
|
hash = (hash << 5) - hash + str.charCodeAt(i);
|
|
214
222
|
hash |= 0;
|
|
215
223
|
}
|
|
216
|
-
return Math.abs(hash)
|
|
224
|
+
return (_Math$abs = Math.abs(hash)) != null ? _Math$abs : 0;
|
|
217
225
|
};
|
|
218
226
|
exports.hashStringToNumber = hashStringToNumber;
|
|
219
227
|
var getFileSizeDisplayText = size => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_dayjs","_interopRequireDefault","require","_emojiRegex","FileState","exports","Object","freeze","BLOCKED","FAILED","FINISHED","PENDING","UPLOADING","ProgressIndicatorTypes","IN_PROGRESS","INACTIVE","NOT_SUPPORTED","RETRY","MessageStatusTypes","DELIVERED","RECEIVED","SENDING","getIndicatorTypeForFileState","fileState","allowSendBeforeAttachmentsUpload","indicatorMap","isBlockedMessage","message","type","moderation_details","action","moderation","isBouncedMessage","isEditedMessage","message_text_updated_at","makeImageCompatibleUrl","url","indexOf","trim","getUrlWithoutParams","indexOfQuestion","substring","isLocalUrl","includes","generateRandomId","a","Number","Math","random","toString","replace","hasOnlyEmojis","text","emojiOnlyString","matchAll","EmojiRegex","join","originalTextWithNoSpaces","replaceAll","length","e","stringifyMessage","includeReactions","attachments","deleted_at","i18n","latest_reactions","reaction_groups","reply_count","status","updated_at","baseFieldsString","JSON","stringify","map","user","id","entries","flatMap","count","first_reaction_at","last_reaction_at","reduceMessagesToString","messages","quoted_message","getFileNameFromPath","path","pattern","match","getDurationLabelFromDuration","duration","ONE_HOUR_IN_SECONDS","ONE_HOUR_IN_MILLISECONDS","durationLabel","isDurationLongerThanHour","formattedDurationParam","formattedVideoDuration","dayjs","format","formatMsToMinSec","ms","totalSeconds","max","floor","totalMinutes","totalHours","escapeRegExp","findInMessagesById","targetId","idx","findIndex","findInMessagesByDate","targetDate","targetTimestamp","getTime","left","right","middle","middleTimestamp","Date","created_at","middleLeftTimestamp","middleRightTimestamp","index","checkMessageEquality","prevMessage","nextMessage","prevMessageExists","nextMessageExists","messageEqual","pinned","checkQuotedMessageEquality","prevQuotedMessage","nextQuotedMessage","prevQuotedMessageExists","nextQuotedMessageExists","quotedMessageEqual","getInitialsFromName","name","numberOfInitials","trimmed","split","slice","n","charAt","toUpperCase","hashStringToNumber","str","hash","i","charCodeAt","abs","getFileSizeDisplayText","size","parseFloat"],"sourceRoot":"../../../src","sources":["utils/utils.ts"],"mappings":";;;;;;;AAEA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAsBO,IAAME,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,MAAM,CAACC,MAAM,CAAC;EACrCC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,SAAS,EAAE;AACb,CAAC,CAAC;AAEK,IAAMC,sBAMZ,GAAAR,OAAA,CAAAQ,sBAAA,GAAGP,MAAM,CAACC,MAAM,CAAC;EAChBO,WAAW,EAAE,aAAa;EAC1BC,QAAQ,EAAE,UAAU;EACpBC,aAAa,EAAE,eAAe;EAC9BL,OAAO,EAAE,SAAS;EAClBM,KAAK,EAAE;AACT,CAAC,CAAC;AAEK,IAAMC,kBAAkB,GAAAb,OAAA,CAAAa,kBA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I,CAAC,EAAE,CAAC;AACb,CAAC;AAACnD,OAAA,CAAAoI,mBAAA,GAAAA,mBAAA;AAGK,IAAMS,kBAAkB,GAAIC,GAAW,IAAK;EACjD,IAAIC,IAAI,GAAG,CAAC;EAEZ,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,GAAG,CAACxF,MAAM,EAAE0F,CAAC,EAAE,EAAE;IACnCD,IAAI,GAAG,CAACA,IAAI,IAAI,CAAC,IAAIA,IAAI,GAAGD,GAAG,CAACG,UAAU,CAACD,CAAC,CAAC;IAC7CD,IAAI,IAAI,CAAC;EACX;EAEA,OAAOrG,IAAI,CAACwG,GAAG,CAACH,IAAI,CAAC,IAAI,CAAC;AAC5B,CAAC;AAAC/I,OAAA,CAAA6I,kBAAA,GAAAA,kBAAA;AAEK,IAAMM,sBAAsB,GAAIC,IAAsB,IAAK;EAChE,IAAI,CAACA,IAAI,EAAE;IACT;EACF;EACA,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5BA,IAAI,GAAGC,UAAU,CAACD,IAAI,CAAC;EACzB;EAEA,IAAIA,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE;IACtB,OAAO,GAAG1G,IAAI,CAACwD,KAAK,CAACxD,IAAI,CAACwD,KAAK,CAACkD,IAAI,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,KAAK;EACxD;EAEA,OAAO,GAAG1G,IAAI,CAACwD,KAAK,CAACxD,IAAI,CAACwD,KAAK,CAACkD,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK;AAC3D,CAAC;AAACpJ,OAAA,CAAAmJ,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_dayjs","_interopRequireDefault","require","_emojiRegex","FileState","exports","Object","freeze","BLOCKED","FAILED","FINISHED","PENDING","UPLOADING","ProgressIndicatorTypes","IN_PROGRESS","INACTIVE","NOT_SUPPORTED","RETRY","MessageStatusTypes","DELIVERED","RECEIVED","SENDING","getIndicatorTypeForFileState","fileState","allowSendBeforeAttachmentsUpload","indicatorMap","isBlockedMessage","message","_message$moderation_d","_message$moderation","type","moderation_details","action","moderation","isBouncedMessage","_message$moderation_d2","_message$moderation2","isEditedMessage","message_text_updated_at","makeImageCompatibleUrl","url","indexOf","trim","getUrlWithoutParams","indexOfQuestion","substring","isLocalUrl","includes","generateRandomId","a","Number","Math","random","toString","replace","hasOnlyEmojis","text","emojiOnlyString","matchAll","EmojiRegex","join","originalTextWithNoSpaces","replaceAll","length","e","stringifyMessage","includeReactions","attachments","deleted_at","i18n","latest_reactions","reaction_groups","reply_count","status","updated_at","baseFieldsString","JSON","stringify","map","user","id","entries","flatMap","count","first_reaction_at","last_reaction_at","reduceMessagesToString","messages","quoted_message","getFileNameFromPath","path","pattern","match","getDurationLabelFromDuration","duration","ONE_HOUR_IN_SECONDS","ONE_HOUR_IN_MILLISECONDS","durationLabel","isDurationLongerThanHour","formattedDurationParam","formattedVideoDuration","dayjs","format","formatMsToMinSec","ms","totalSeconds","max","floor","totalMinutes","totalHours","escapeRegExp","findInMessagesById","targetId","idx","findIndex","findInMessagesByDate","targetDate","targetTimestamp","getTime","left","right","middle","_messages","_messages2","middleTimestamp","Date","created_at","middleLeftTimestamp","middleRightTimestamp","index","checkMessageEquality","prevMessage","nextMessage","_prevMessage$updated_","_nextMessage$updated_","_prevMessage$deleted_","_nextMessage$deleted_","prevMessageExists","nextMessageExists","messageEqual","pinned","checkQuotedMessageEquality","prevQuotedMessage","nextQuotedMessage","_prevQuotedMessage$up","_nextQuotedMessage$up","_prevQuotedMessage$de","_nextQuotedMessage$de","prevQuotedMessageExists","nextQuotedMessageExists","quotedMessageEqual","getInitialsFromName","name","numberOfInitials","trimmed","split","slice","n","charAt","toUpperCase","hashStringToNumber","str","_Math$abs","hash","i","charCodeAt","abs","getFileSizeDisplayText","size","parseFloat"],"sourceRoot":"../../../src","sources":["utils/utils.ts"],"mappings":";;;;;;;AAEA,IAAA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AAC;IAC7CD,IAAI,IAAI,CAAC;EACX;EAEA,QAAAD,SAAA,GAAO/G,IAAI,CAACmH,GAAG,CAACH,IAAI,CAAC,YAAAD,SAAA,GAAI,CAAC;AAC5B,CAAC;AAAC7J,OAAA,CAAA2J,kBAAA,GAAAA,kBAAA;AAEK,IAAMO,sBAAsB,GAAIC,IAAsB,IAAK;EAChE,IAAI,CAACA,IAAI,EAAE;IACT;EACF;EACA,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IAC5BA,IAAI,GAAGC,UAAU,CAACD,IAAI,CAAC;EACzB;EAEA,IAAIA,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE;IACtB,OAAO,GAAGrH,IAAI,CAACwD,KAAK,CAACxD,IAAI,CAACwD,KAAK,CAAC6D,IAAI,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,KAAK;EACxD;EAEA,OAAO,GAAGrH,IAAI,CAACwD,KAAK,CAACxD,IAAI,CAACwD,KAAK,CAAC6D,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK;AAC3D,CAAC;AAACnK,OAAA,CAAAkK,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -2,6 +2,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2
2
|
value: true
|
|
3
3
|
});
|
|
4
4
|
exports.mergeAccessibilityActions = exports.formatAccessibilityValue = exports.composeAccessibilityLabel = void 0;
|
|
5
|
+
function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
7
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
8
|
var composeAccessibilityLabel = (...parts) => parts.filter(p => typeof p === 'string' && p.length > 0).join(', ');
|
|
6
9
|
exports.composeAccessibilityLabel = composeAccessibilityLabel;
|
|
7
10
|
var formatAccessibilityValue = ({
|
|
@@ -21,9 +24,11 @@ var formatAccessibilityValue = ({
|
|
|
21
24
|
exports.formatAccessibilityValue = formatAccessibilityValue;
|
|
22
25
|
var mergeAccessibilityActions = (...actionLists) => {
|
|
23
26
|
var byName = new Map();
|
|
24
|
-
for (var
|
|
27
|
+
for (var _i = 0, _actionLists = actionLists; _i < _actionLists.length; _i++) {
|
|
28
|
+
var list = _actionLists[_i];
|
|
25
29
|
if (!list) continue;
|
|
26
|
-
for (var
|
|
30
|
+
for (var _iterator = _createForOfIteratorHelperLoose(list), _step; !(_step = _iterator()).done;) {
|
|
31
|
+
var action = _step.value;
|
|
27
32
|
byName.set(action.name, action);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["composeAccessibilityLabel","parts","filter","p","length","join","exports","formatAccessibilityValue","max","min","now","text","value","Math","mergeAccessibilityActions","actionLists","byName","Map","list","action","set","name","Array","from","values"],"sourceRoot":"../../../src","sources":["a11y/a11yUtils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["composeAccessibilityLabel","parts","filter","p","length","join","exports","formatAccessibilityValue","max","min","now","text","value","Math","mergeAccessibilityActions","actionLists","byName","Map","_i","_actionLists","list","_iterator","_createForOfIteratorHelperLoose","_step","done","action","set","name","Array","from","values"],"sourceRoot":"../../../src","sources":["a11y/a11yUtils.ts"],"mappings":";;;;;;;AAKO,IAAMA,yBAAyB,GAAGA,CACvC,GAAGC,KAA+C,KACvCA,KAAK,CAACC,MAAM,CAAEC,CAAC,IAAkB,OAAOA,CAAC,KAAK,QAAQ,IAAIA,CAAC,CAACC,MAAM,GAAG,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;AAACC,OAAA,CAAAN,yBAAA,GAAAA,yBAAA;AAMzF,IAAMO,wBAAwB,GAAGA,CAAC;EACvCC,GAAG;EACHC,GAAG,GAAG,CAAC;EACPC,GAAG;EACHC;AAMF,CAAC,KAA+D;EAC9D,IAAMC,KAA+D,GAAG;IACtEJ,GAAG;IACHC,GAAG;IACHC,GAAG,EAAEG,IAAI,CAACJ,GAAG,CAACI,IAAI,CAACL,GAAG,CAACC,GAAG,EAAEC,GAAG,CAAC,EAAEF,GAAG;EACvC,CAAC;EACD,IAAIG,IAAI,EAAEC,KAAK,CAACD,IAAI,GAAGA,IAAI;EAC3B,OAAOC,KAAK;AACd,CAAC;AAACN,OAAA,CAAAC,wBAAA,GAAAA,wBAAA;AAOK,IAAMO,yBAAyB,GAAGA,CACvC,GAAGC,WAAyD,KAC3C;EACjB,IAAMC,MAAM,GAAG,IAAIC,GAAG,CAAqB,CAAC;EAC5C,SAAAC,EAAA,MAAAC,YAAA,GAAmBJ,WAAW,EAAAG,EAAA,GAAAC,YAAA,CAAAf,MAAA,EAAAc,EAAA,IAAE;IAA3B,IAAME,IAAI,GAAAD,YAAA,CAAAD,EAAA;IACb,IAAI,CAACE,IAAI,EAAE;IACX,SAAAC,SAAA,GAAAC,+BAAA,CAAqBF,IAAI,GAAAG,KAAA,IAAAA,KAAA,GAAAF,SAAA,IAAAG,IAAA,GAAE;MAAA,IAAhBC,MAAM,GAAAF,KAAA,CAAAX,KAAA;MACfI,MAAM,CAACU,GAAG,CAACD,MAAM,CAACE,IAAI,EAAEF,MAAM,CAAC;IACjC;EACF;EACA,OAAOG,KAAK,CAACC,IAAI,CAACb,MAAM,CAACc,MAAM,CAAC,CAAC,CAAC;AACpC,CAAC;AAACxB,OAAA,CAAAQ,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_AccessibilityContext","require","accessibilityActivateActions","name","useAccessibilityActivateAction","onPress","shouldHandleActivate","_useAccessibilityCont","useAccessibilityContext","enabled","shouldHandleAccessibilityActivate","undefined","accessibilityActions","onAccessibilityAction","event","nativeEvent","actionName","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useAccessibilityActivateAction.ts"],"mappings":";;;;AAEA,IAAAA,qBAAA,GAAAC,OAAA;AAcA,IAAMC,
|
|
1
|
+
{"version":3,"names":["_AccessibilityContext","require","accessibilityActivateActions","name","useAccessibilityActivateAction","onPress","shouldHandleActivate","_useAccessibilityCont","useAccessibilityContext","enabled","shouldHandleAccessibilityActivate","undefined","accessibilityActions","onAccessibilityAction","event","nativeEvent","actionName","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useAccessibilityActivateAction.ts"],"mappings":";;;;AAEA,IAAAA,qBAAA,GAAAC,OAAA;AAcA,IAAMC,4BAA4E,GAAG,CACnF;EAAEC,IAAI,EAAE;AAAW,CAAC,CACrB;AAQM,IAAMC,8BAA8B,GAAGA,CAAc;EAC1DC,OAAO;EACPC,oBAAoB,GAAG;AACyB,CAAC,KAA2C;EAC5F,IAAAC,qBAAA,GAAoB,IAAAC,6CAAuB,EAAC,CAAC;IAArCC,OAAO,GAAAF,qBAAA,CAAPE,OAAO;EACf,IAAMC,iCAAiC,GAAGD,OAAO,IAAIH,oBAAoB,IAAI,CAAC,CAACD,OAAO;EAEtF,IAAI,CAACK,iCAAiC,EAAE,OAAOC,SAAS;EAExD,OAAO;IACLC,oBAAoB,EAAEV,4BAA4B;IAClDW,qBAAqB,EAAGC,KAA+B,IAAK;MAC1D,IAAIA,KAAK,CAACC,WAAW,CAACC,UAAU,KAAK,UAAU,EAAE;MAEjDX,OAAO,CAACS,KAA+B,CAAC;IAC1C;EACF,CAAC;AACH,CAAC;AAACG,OAAA,CAAAb,8BAAA,GAAAA,8BAAA","ignoreList":[]}
|
|
@@ -21,7 +21,7 @@ var useAccessibilityServiceEnabled = () => {
|
|
|
21
21
|
}
|
|
22
22
|
var cancelled = false;
|
|
23
23
|
var refresh = () => {
|
|
24
|
-
_reactNative.AccessibilityInfo.isAccessibilityServiceEnabled
|
|
24
|
+
_reactNative.AccessibilityInfo.isAccessibilityServiceEnabled == null || _reactNative.AccessibilityInfo.isAccessibilityServiceEnabled().then(value => {
|
|
25
25
|
if (!cancelled) setIsEnabled(value);
|
|
26
26
|
}).catch(() => {});
|
|
27
27
|
};
|
|
@@ -32,8 +32,8 @@ var useAccessibilityServiceEnabled = () => {
|
|
|
32
32
|
});
|
|
33
33
|
return () => {
|
|
34
34
|
cancelled = true;
|
|
35
|
-
screenReaderSubscription
|
|
36
|
-
appStateSubscription
|
|
35
|
+
screenReaderSubscription == null || screenReaderSubscription.remove == null || screenReaderSubscription.remove();
|
|
36
|
+
appStateSubscription == null || appStateSubscription.remove == null || appStateSubscription.remove();
|
|
37
37
|
};
|
|
38
38
|
}, [enabled]);
|
|
39
39
|
if (_reactNative.Platform.OS !== 'android' || !enabled) return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_AccessibilityContext","useAccessibilityServiceEnabled","_useAccessibilityCont","useAccessibilityContext","enabled","_useState","useState","_useState2","_slicedToArray2","default","isEnabled","setIsEnabled","useEffect","Platform","OS","cancelled","refresh","AccessibilityInfo","isAccessibilityServiceEnabled","then","value","catch","screenReaderSubscription","addEventListener","appStateSubscription","AppState","state","remove","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useAccessibilityServiceEnabled.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,qBAAA,GAAAF,OAAA;AAoBO,IAAMG,8BAA8B,GAAGA,CAAA,KAAe;EAC3D,IAAAC,qBAAA,GAAoB,IAAAC,6CAAuB,EAAC,CAAC;IAArCC,OAAO,GAAAF,qBAAA,CAAPE,OAAO;EACf,IAAAC,SAAA,GAAkC,IAAAC,eAAQ,EAAU,KAAK,CAAC;IAAAC,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAAnDK,SAAS,GAAAH,UAAA;IAAEI,YAAY,GAAAJ,UAAA;EAE9B,IAAAK,gBAAS,EAAC,MAAM;IACd,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,IAAI,CAACV,OAAO,EAAE;MACzCO,YAAY,CAAC,KAAK,CAAC;MACnB;IACF;IAEA,IAAII,SAAS,GAAG,KAAK;IAErB,IAAMC,OAAO,GAAGA,CAAA,KAAM;MACpBC,8BAAiB,CAACC,6BAA6B,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_AccessibilityContext","useAccessibilityServiceEnabled","_useAccessibilityCont","useAccessibilityContext","enabled","_useState","useState","_useState2","_slicedToArray2","default","isEnabled","setIsEnabled","useEffect","Platform","OS","cancelled","refresh","AccessibilityInfo","isAccessibilityServiceEnabled","then","value","catch","screenReaderSubscription","addEventListener","appStateSubscription","AppState","state","remove","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useAccessibilityServiceEnabled.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,qBAAA,GAAAF,OAAA;AAoBO,IAAMG,8BAA8B,GAAGA,CAAA,KAAe;EAC3D,IAAAC,qBAAA,GAAoB,IAAAC,6CAAuB,EAAC,CAAC;IAArCC,OAAO,GAAAF,qBAAA,CAAPE,OAAO;EACf,IAAAC,SAAA,GAAkC,IAAAC,eAAQ,EAAU,KAAK,CAAC;IAAAC,UAAA,OAAA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","ignoreList":[]}
|
|
@@ -20,13 +20,13 @@ var useReducedMotionPreference = () => {
|
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
22
|
var cancelled = false;
|
|
23
|
-
_reactNative.AccessibilityInfo.isReduceMotionEnabled
|
|
23
|
+
_reactNative.AccessibilityInfo.isReduceMotionEnabled == null || _reactNative.AccessibilityInfo.isReduceMotionEnabled().then(value => {
|
|
24
24
|
if (!cancelled) setReduceMotion(value);
|
|
25
25
|
}).catch(() => {});
|
|
26
26
|
var subscription = _reactNative.AccessibilityInfo.addEventListener('reduceMotionChanged', setReduceMotion);
|
|
27
27
|
return () => {
|
|
28
28
|
cancelled = true;
|
|
29
|
-
subscription
|
|
29
|
+
subscription == null || subscription.remove == null || subscription.remove();
|
|
30
30
|
};
|
|
31
31
|
}, [enabled]);
|
|
32
32
|
return enabled && reduceMotion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_AccessibilityContext","useReducedMotionPreference","_useAccessibilityCont","useAccessibilityContext","enabled","_useState","useState","_useState2","_slicedToArray2","default","reduceMotion","setReduceMotion","useEffect","cancelled","AccessibilityInfo","isReduceMotionEnabled","then","value","catch","subscription","addEventListener","remove","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useReducedMotionPreference.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,qBAAA,GAAAF,OAAA;AAMO,IAAMG,0BAA0B,GAAGA,CAAA,KAAe;EACvD,IAAAC,qBAAA,GAAoB,IAAAC,6CAAuB,EAAC,CAAC;IAArCC,OAAO,GAAAF,qBAAA,CAAPE,OAAO;EACf,IAAAC,SAAA,GAAwC,IAAAC,eAAQ,EAAU,KAAK,CAAC;IAAAC,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAAzDK,YAAY,GAAAH,UAAA;IAAEI,eAAe,GAAAJ,UAAA;EAEpC,IAAAK,gBAAS,EAAC,MAAM;IACd,IAAI,CAACR,OAAO,EAAE;MACZO,eAAe,CAAC,KAAK,CAAC;MACtB;IACF;IAEA,IAAIE,SAAS,GAAG,KAAK;IACrBC,8BAAiB,CAACC,qBAAqB,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_AccessibilityContext","useReducedMotionPreference","_useAccessibilityCont","useAccessibilityContext","enabled","_useState","useState","_useState2","_slicedToArray2","default","reduceMotion","setReduceMotion","useEffect","cancelled","AccessibilityInfo","isReduceMotionEnabled","then","value","catch","subscription","addEventListener","remove","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useReducedMotionPreference.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,qBAAA,GAAAF,OAAA;AAMO,IAAMG,0BAA0B,GAAGA,CAAA,KAAe;EACvD,IAAAC,qBAAA,GAAoB,IAAAC,6CAAuB,EAAC,CAAC;IAArCC,OAAO,GAAAF,qBAAA,CAAPE,OAAO;EACf,IAAAC,SAAA,GAAwC,IAAAC,eAAQ,EAAU,KAAK,CAAC;IAAAC,UAAA,OAAAC,eAAA,CAAAC,OAAA,EAAAJ,SAAA;IAAzDK,YAAY,GAAAH,UAAA;IAAEI,eAAe,GAAAJ,UAAA;EAEpC,IAAAK,gBAAS,EAAC,MAAM;IACd,IAAI,CAACR,OAAO,EAAE;MACZO,eAAe,CAAC,KAAK,CAAC;MACtB;IACF;IAEA,IAAIE,SAAS,GAAG,KAAK;IACrBC,8BAAiB,CAACC,qBAAqB,YAAvCD,8BAAiB,CAACC,qBAAqB,CAAG,CAAC,CACxCC,IAAI,CAAEC,KAAK,IAAK;MACf,IAAI,CAACJ,SAAS,EAAEF,eAAe,CAACM,KAAK,CAAC;IACxC,CAAC,CAAC,CACDC,KAAK,CAAC,MAAM,CAEb,CAAC,CAAC;IAEJ,IAAMC,YAAY,GAAGL,8BAAiB,CAACM,gBAAgB,CAAC,qBAAqB,EAAET,eAAe,CAAC;IAE/F,OAAO,MAAM;MACXE,SAAS,GAAG,IAAI;MAChBM,YAAY,YAAZA,YAAY,CAAEE,MAAM,YAApBF,YAAY,CAAEE,MAAM,CAAG,CAAC;IAC1B,CAAC;EACH,CAAC,EAAE,CAACjB,OAAO,CAAC,CAAC;EAEb,OAAOA,OAAO,IAAIM,YAAY;AAChC,CAAC;AAACY,OAAA,CAAArB,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@ var _react = require("react");
|
|
|
6
6
|
var _reactNative = require("react-native");
|
|
7
7
|
var _useScreenReaderEnabled = require("./useScreenReaderEnabled");
|
|
8
8
|
var resolveNode = target => {
|
|
9
|
+
var _findNodeHandle;
|
|
9
10
|
if (target == null) {
|
|
10
11
|
return null;
|
|
11
12
|
}
|
|
@@ -13,7 +14,7 @@ var resolveNode = target => {
|
|
|
13
14
|
return target;
|
|
14
15
|
}
|
|
15
16
|
var current = target.current;
|
|
16
|
-
return current == null ? null : (0, _reactNative.findNodeHandle)(current);
|
|
17
|
+
return current == null ? null : (_findNodeHandle = (0, _reactNative.findNodeHandle)(current)) != null ? _findNodeHandle : null;
|
|
17
18
|
};
|
|
18
19
|
var useSetAccessibilityFocus = () => {
|
|
19
20
|
var screenReaderEnabled = (0, _useScreenReaderEnabled.useScreenReaderEnabled)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_useScreenReaderEnabled","resolveNode","target","current","findNodeHandle","useSetAccessibilityFocus","screenReaderEnabled","useScreenReaderEnabled","screenReaderEnabledRef","useRef","rafRef","useEffect","cancelAnimationFrame","useCallback","node","requestAnimationFrame","AccessibilityInfo","setAccessibilityFocus","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useSetAccessibilityFocus.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,uBAAA,GAAAF,OAAA;AAUA,IAAMG,WAAW,GAAIC,MAAgC,IAAoB;EACvE,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_useScreenReaderEnabled","resolveNode","target","_findNodeHandle","current","findNodeHandle","useSetAccessibilityFocus","screenReaderEnabled","useScreenReaderEnabled","screenReaderEnabledRef","useRef","rafRef","useEffect","cancelAnimationFrame","useCallback","node","requestAnimationFrame","AccessibilityInfo","setAccessibilityFocus","exports"],"sourceRoot":"../../../../src","sources":["a11y/hooks/useSetAccessibilityFocus.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,uBAAA,GAAAF,OAAA;AAUA,IAAMG,WAAW,GAAIC,MAAgC,IAAoB;EAAA,IAAAC,eAAA;EACvE,IAAID,MAAM,IAAI,IAAI,EAAE;IAClB,OAAO,IAAI;EACb;EACA,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAOA,MAAM;EACf;EACA,IAAME,OAAO,GAAGF,MAAM,CAACE,OAAO;EAC9B,OAAOA,OAAO,IAAI,IAAI,GAAG,IAAI,IAAAD,eAAA,GAAI,IAAAE,2BAAc,EAACD,OAA4B,CAAC,YAAAD,eAAA,GAAI,IAAK;AACxF,CAAC;AAsBM,IAAMG,wBAAwB,GAAGA,CAAA,KAAM;EAC5C,IAAMC,mBAAmB,GAAG,IAAAC,8CAAsB,EAAC,CAAC;EAGpD,IAAMC,sBAAsB,GAAG,IAAAC,aAAM,EAACH,mBAAmB,CAAC;EAC1DE,sBAAsB,CAACL,OAAO,GAAGG,mBAAmB;EAEpD,IAAMI,MAAM,GAAG,IAAAD,aAAM,EAAgB,IAAI,CAAC;EAE1C,IAAAE,gBAAS,EACP,MAAM,MAAM;IACV,IAAID,MAAM,CAACP,OAAO,IAAI,IAAI,EAAE;MAC1BS,oBAAoB,CAACF,MAAM,CAACP,OAAO,CAAC;IACtC;EACF,CAAC,EACD,EACF,CAAC;EAED,OAAO,IAAAU,kBAAW,EAAEZ,MAAgC,IAAK;IACvD,IAAI,CAACO,sBAAsB,CAACL,OAAO,EAAE;MACnC;IACF;IACA,IAAMW,IAAI,GAAGd,WAAW,CAACC,MAAM,CAAC;IAChC,IAAIa,IAAI,IAAI,IAAI,EAAE;MAChB;IACF;IACA,IAAIJ,MAAM,CAACP,OAAO,IAAI,IAAI,EAAE;MAC1BS,oBAAoB,CAACF,MAAM,CAACP,OAAO,CAAC;IACtC;IAEAO,MAAM,CAACP,OAAO,GAAGY,qBAAqB,CAAC,MAAM;MAC3CL,MAAM,CAACP,OAAO,GAAG,IAAI;MACrBa,8BAAiB,CAACC,qBAAqB,CAACH,IAAI,CAAC;IAC/C,CAAC,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAACI,OAAA,CAAAb,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -8,11 +8,15 @@ var _TranslationContext = require("../../../contexts/translationContext/Translat
|
|
|
8
8
|
var _useAccessibilityAnnouncer = require("../useAccessibilityAnnouncer");
|
|
9
9
|
var MESSAGE_ANNOUNCEMENT_THROTTLE_MS = 1000;
|
|
10
10
|
var isAnnounceableIncomingMessage = (message, ownUserId) => {
|
|
11
|
-
var
|
|
11
|
+
var _message$user;
|
|
12
|
+
var messageUserId = (_message$user = message.user) == null ? void 0 : _message$user.id;
|
|
12
13
|
if (!message.id || !messageUserId || messageUserId === ownUserId) return false;
|
|
13
14
|
return message.type !== 'deleted' && message.type !== 'ephemeral' && message.type !== 'error' && message.type !== 'system' && message.status !== 'failed' && message.status !== 'sending';
|
|
14
15
|
};
|
|
15
|
-
var getSenderName = (message, t) =>
|
|
16
|
+
var getSenderName = (message, t) => {
|
|
17
|
+
var _message$user2, _message$user3;
|
|
18
|
+
return ((_message$user2 = message.user) == null || (_message$user2 = _message$user2.name) == null ? void 0 : _message$user2.trim()) || ((_message$user3 = message.user) == null ? void 0 : _message$user3.id) || t('Anonymous');
|
|
19
|
+
};
|
|
16
20
|
var useIncomingMessageAnnouncements = ({
|
|
17
21
|
activeThreadId,
|
|
18
22
|
channel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_AccessibilityContext","_TranslationContext","_useAccessibilityAnnouncer","MESSAGE_ANNOUNCEMENT_THROTTLE_MS","isAnnounceableIncomingMessage","message","ownUserId","messageUserId","user","id","type","status","getSenderName","t","name","trim","useIncomingMessageAnnouncements","activeThreadId","channel","threadList","_useAccessibilityCont","useAccessibilityContext","announceNewMessages","enabled","announce","useAccessibilityAnnouncer","_useTranslationContex","useTranslationContext","lastAnnouncementTimestampRef","useRef","flushTimeoutRef","undefined","announcedMessageIdsRef","Set","pendingAnnouncementBatchRef","count","firstSender","flushPendingAnnouncements","useCallback","pending","current","Date","now","scheduleFlush","elapsed","setTimeout","useEffect","clearTimeout","handleMessageNew","event","cid","isReply","parent_id","belongsToActiveThread","shouldAnnounceInThreadList","shouldAnnounceInMainList","has","size","clear","add","subscription","on","unsubscribe","exports"],"sourceRoot":"../../../../../src","sources":["components/Accessibility/hooks/useIncomingMessageAnnouncements.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AAEA,IAAMI,gCAAgC,GAAG,IAAI;AAE7C,IAAMC,6BAA6B,GAAGA,CAACC,OAAwB,EAAEC,SAAkB,KAAc;EAC/F,IAAMC,aAAa,GAAGF,OAAO,
|
|
1
|
+
{"version":3,"names":["_react","require","_AccessibilityContext","_TranslationContext","_useAccessibilityAnnouncer","MESSAGE_ANNOUNCEMENT_THROTTLE_MS","isAnnounceableIncomingMessage","message","ownUserId","_message$user","messageUserId","user","id","type","status","getSenderName","t","_message$user2","_message$user3","name","trim","useIncomingMessageAnnouncements","activeThreadId","channel","threadList","_useAccessibilityCont","useAccessibilityContext","announceNewMessages","enabled","announce","useAccessibilityAnnouncer","_useTranslationContex","useTranslationContext","lastAnnouncementTimestampRef","useRef","flushTimeoutRef","undefined","announcedMessageIdsRef","Set","pendingAnnouncementBatchRef","count","firstSender","flushPendingAnnouncements","useCallback","pending","current","Date","now","scheduleFlush","elapsed","setTimeout","useEffect","clearTimeout","handleMessageNew","event","cid","isReply","parent_id","belongsToActiveThread","shouldAnnounceInThreadList","shouldAnnounceInMainList","has","size","clear","add","subscription","on","unsubscribe","exports"],"sourceRoot":"../../../../../src","sources":["components/Accessibility/hooks/useIncomingMessageAnnouncements.ts"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AAEA,IAAMI,gCAAgC,GAAG,IAAI;AAE7C,IAAMC,6BAA6B,GAAGA,CAACC,OAAwB,EAAEC,SAAkB,KAAc;EAAA,IAAAC,aAAA;EAC/F,IAAMC,aAAa,IAAAD,aAAA,GAAGF,OAAO,CAACI,IAAI,qBAAZF,aAAA,CAAcG,EAAE;EACtC,IAAI,CAACL,OAAO,CAACK,EAAE,IAAI,CAACF,aAAa,IAAIA,aAAa,KAAKF,SAAS,EAAE,OAAO,KAAK;EAC9E,OACED,OAAO,CAACM,IAAI,KAAK,SAAS,IAC1BN,OAAO,CAACM,IAAI,KAAK,WAAW,IAC5BN,OAAO,CAACM,IAAI,KAAK,OAAO,IACxBN,OAAO,CAACM,IAAI,KAAK,QAAQ,IACzBN,OAAO,CAACO,MAAM,KAAK,QAAQ,IAC3BP,OAAO,CAACO,MAAM,KAAK,SAAS;AAEhC,CAAC;AAED,IAAMC,aAAa,GAAGA,CACpBR,OAAwB,EACxBS,CAAgD;EAAA,IAAAC,cAAA,EAAAC,cAAA;EAAA,OAC7C,EAAAD,cAAA,GAAAV,OAAO,CAACI,IAAI,cAAAM,cAAA,GAAZA,cAAA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,OAAO,GAAGT,SAAS;MACrC;IACF,CAAC;EACH,CAAC,EAAE,CACDd,cAAc,EACdK,mBAAmB,EACnBJ,OAAO,EACPK,OAAO,EACPpB,SAAS,EACTwC,aAAa,EACbhC,CAAC,EACDQ,UAAU,CACX,CAAC;AACJ,CAAC;AAAC4C,OAAA,CAAA/C,+BAAA,GAAAA,+BAAA","ignoreList":[]}
|
|
@@ -83,12 +83,13 @@ var AttachmentWithContext = props => {
|
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
85
|
var areEqual = (prevProps, nextProps) => {
|
|
86
|
+
var _prevAttachment$actio, _nextAttachment$actio;
|
|
86
87
|
var prevAttachment = prevProps.attachment,
|
|
87
88
|
isAttachmentEqual = prevProps.isAttachmentEqual,
|
|
88
89
|
prevMyMessageTheme = prevProps.myMessageTheme;
|
|
89
90
|
var nextAttachment = nextProps.attachment,
|
|
90
91
|
nextMyMessageTheme = nextProps.myMessageTheme;
|
|
91
|
-
var attachmentEqual = prevAttachment.actions
|
|
92
|
+
var attachmentEqual = ((_prevAttachment$actio = prevAttachment.actions) == null ? void 0 : _prevAttachment$actio.length) === ((_nextAttachment$actio = nextAttachment.actions) == null ? void 0 : _nextAttachment$actio.length) && prevAttachment.image_url === nextAttachment.image_url && prevAttachment.thumb_url === nextAttachment.thumb_url && prevAttachment.type === nextAttachment.type;
|
|
92
93
|
if (!attachmentEqual) {
|
|
93
94
|
return false;
|
|
94
95
|
}
|
|
@@ -129,8 +130,9 @@ var MessageAudioAttachment = ({
|
|
|
129
130
|
index,
|
|
130
131
|
message
|
|
131
132
|
}) => {
|
|
133
|
+
var _attachment$asset_url, _attachment$originalF, _index$toString;
|
|
132
134
|
var localId = attachment.localId;
|
|
133
|
-
var sourceUrl = attachment.asset_url
|
|
135
|
+
var sourceUrl = (_attachment$asset_url = attachment.asset_url) != null ? _attachment$asset_url : (_attachment$originalF = attachment.originalFile) == null ? void 0 : _attachment$originalF.uri;
|
|
134
136
|
var shouldTrackPendingUpload = !!localId && !!sourceUrl && (0, _utils.isLocalUrl)(sourceUrl);
|
|
135
137
|
var pendingUpload = (0, _usePendingAttachmentUpload.usePendingAttachmentUpload)(shouldTrackPendingUpload ? localId : undefined);
|
|
136
138
|
var indicator = pendingUpload.isUploading ? (0, _jsxRuntime.jsx)(_AttachmentFileUploadProgressIndicator.AttachmentFileUploadProgressIndicator, {
|
|
@@ -143,7 +145,7 @@ var MessageAudioAttachment = ({
|
|
|
143
145
|
indicator: indicator,
|
|
144
146
|
item: {
|
|
145
147
|
...attachment,
|
|
146
|
-
id: index
|
|
148
|
+
id: (_index$toString = index == null ? void 0 : index.toString()) != null ? _index$toString : '',
|
|
147
149
|
type: audioItemType
|
|
148
150
|
},
|
|
149
151
|
message: message,
|
|
@@ -153,14 +155,15 @@ var MessageAudioAttachment = ({
|
|
|
153
155
|
});
|
|
154
156
|
};
|
|
155
157
|
var useAudioAttachmentStyles = () => {
|
|
158
|
+
var _message$attachments, _message$text;
|
|
156
159
|
var _useTheme = (0, _contexts.useTheme)(),
|
|
157
160
|
semantics = _useTheme.theme.semantics;
|
|
158
161
|
var _useMessageContext2 = (0, _MessageContext.useMessageContext)(),
|
|
159
162
|
isMyMessage = _useMessageContext2.isMyMessage,
|
|
160
163
|
message = _useMessageContext2.message,
|
|
161
164
|
messageHasOnlySingleAttachment = _useMessageContext2.messageHasOnlySingleAttachment;
|
|
162
|
-
var messageHasSingleAttachment = message.attachments
|
|
163
|
-
var messageHasCaption = !!message.text
|
|
165
|
+
var messageHasSingleAttachment = ((_message$attachments = message.attachments) == null ? void 0 : _message$attachments.length) === 1;
|
|
166
|
+
var messageHasCaption = !!((_message$text = message.text) != null && _message$text.trim());
|
|
164
167
|
var messageIsQuotedReply = !!(message.quoted_message || message.quoted_message_id);
|
|
165
168
|
var shouldRemoveAudioAttachmentPadding = messageIsQuotedReply && messageHasSingleAttachment && !messageHasCaption;
|
|
166
169
|
var showBackgroundTransparent = messageHasOnlySingleAttachment || shouldRemoveAudioAttachmentPadding;
|