stream-chat-react-native-core 9.10.1 → 10.0.0-rc.1
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/hooks/useA11yLabel.js +2 -1
- package/lib/commonjs/a11y/hooks/useA11yLabel.js.map +1 -1
- package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js +2 -2
- package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -1
- package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js +15 -47
- package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -1
- package/lib/commonjs/components/Accessibility/NotificationAnnouncer.js +9 -7
- package/lib/commonjs/components/Accessibility/NotificationAnnouncer.js.map +1 -1
- package/lib/commonjs/components/Accessibility/hooks/useIncomingMessageAnnouncements.js +10 -10
- package/lib/commonjs/components/Accessibility/hooks/useIncomingMessageAnnouncements.js.map +1 -1
- package/lib/commonjs/components/Attachment/Attachment.js +6 -6
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Audio/AudioAttachment.js +14 -13
- package/lib/commonjs/components/Attachment/Audio/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +4 -4
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FilePreview.js +4 -2
- package/lib/commonjs/components/Attachment/FilePreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +9 -5
- 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 +3 -3
- package/lib/commonjs/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js +3 -0
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +2 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +29 -24
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +22 -21
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -9
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +8 -9
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +2 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +54 -1410
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/ChannelShell.js +398 -0
- package/lib/commonjs/components/Channel/ChannelShell.js.map +1 -0
- package/lib/commonjs/components/Channel/hooks/useChannelLifecycle.js +120 -0
- package/lib/commonjs/components/Channel/hooks/useChannelLifecycle.js.map +1 -0
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +3 -53
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +1 -9
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +3 -19
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +11 -27
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js +6 -46
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useSupersededChannelSwap.js +28 -0
- package/lib/commonjs/components/Channel/hooks/useSupersededChannelSwap.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsEditButton.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsEditButton.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsMemberSection.js +10 -6
- 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/ChannelDetailsProfile.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormContent.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormContent.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js +5 -5
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditName.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditName.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/AddMemberSearchResultItem.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/AddMemberSearchResultItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +5 -5
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/members/useMemberRoles.js +3 -3
- package/lib/commonjs/components/ChannelDetails/hooks/members/useMemberRoles.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +5 -3
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +5 -4
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useEditChannelImage.js +6 -6
- package/lib/commonjs/components/ChannelDetails/hooks/useEditChannelImage.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js +9 -5
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useUserActivityStatus.js +8 -7
- package/lib/commonjs/components/ChannelDetails/hooks/useUserActivityStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +23 -98
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListView.js +28 -68
- package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/index.js +0 -11
- package/lib/commonjs/components/ChannelList/hooks/index.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelMembersState.js +32 -9
- package/lib/commonjs/components/ChannelList/hooks/useChannelMembersState.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelOnlineMemberCount.js +6 -15
- package/lib/commonjs/components/ChannelList/hooks/useChannelOnlineMemberCount.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +20 -44
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useMutedChannels.js +7 -7
- package/lib/commonjs/components/ChannelList/hooks/useMutedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useMutedUsers.js +7 -9
- package/lib/commonjs/components/ChannelList/hooks/useMutedUsers.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +69 -125
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +12 -3
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +19 -11
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +6 -5
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +9 -8
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTypingIndicator.js +8 -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 +1 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js +25 -118
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +11 -4
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js +14 -5
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +3 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelTypingState.js +2 -37
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelTypingState.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js +6 -29
- 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 +53 -59
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/index.js +16 -16
- package/lib/commonjs/components/Chat/hooks/index.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettingsGetter.js +75 -0
- package/lib/commonjs/components/Chat/hooks/useAppSettingsGetter.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useClientUserId.js +17 -0
- package/lib/commonjs/components/Chat/hooks/useClientUserId.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useConnectionLifecycle.js +53 -0
- package/lib/commonjs/components/Chat/hooks/useConnectionLifecycle.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatClient.js +15 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatClient.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +7 -25
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useInitializeOfflineDb.js +11 -4
- package/lib/commonjs/components/Chat/hooks/useInitializeOfflineDb.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useNetworkConnectionState.js +22 -0
- package/lib/commonjs/components/Chat/hooks/useNetworkConnectionState.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/usePendingUploadsDefault.js +24 -0
- package/lib/commonjs/components/Chat/hooks/usePendingUploadsDefault.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useWSConnectionState.js +63 -0
- package/lib/commonjs/components/Chat/hooks/useWSConnectionState.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryA11yProbe.js +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryA11yProbe.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +3 -3
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +6 -6
- 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/Indicators/EmptyStateIndicator.js +4 -4
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js +3 -3
- package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js +3 -3
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +64 -195
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +34 -19
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageBounce.js +8 -8
- package/lib/commonjs/components/Message/MessageItemView/MessageBounce.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +4 -8
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js +17 -15
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js +27 -23
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +14 -19
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +7 -16
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +25 -33
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageTimestamp.js +4 -4
- package/lib/commonjs/components/Message/MessageItemView/MessageTimestamp.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js +37 -31
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +3 -3
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageActionHandlers.js +453 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageActionHandlers.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +5 -12
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useIsMessageDeliveredToOthers.js +25 -0
- package/lib/commonjs/components/Message/hooks/useIsMessageDeliveredToOthers.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useIsMessageReadByOthers.js +25 -0
- package/lib/commonjs/components/Message/hooks/useIsMessageReadByOthers.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +9 -440
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +59 -87
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js +4 -5
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js +12 -36
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageOperations.js +144 -0
- package/lib/commonjs/components/Message/hooks/useMessageOperations.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js +12 -36
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js +4 -2
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useUserMuteActive.js +15 -7
- package/lib/commonjs/components/Message/hooks/useUserMuteActive.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposer.js +25 -18
- package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +1 -1
- package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +10 -12
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +3 -3
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js +6 -6
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +6 -6
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +3 -4
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +6 -5
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +5 -5
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -4
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/index.js +9 -2
- package/lib/commonjs/components/MessageInput/components/InputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +3 -3
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioRecorder.js +7 -5
- package/lib/commonjs/components/MessageInput/hooks/useAudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js +6 -6
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +5 -8
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +5 -8
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +5 -3
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageFlashList.js +152 -390
- package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +141 -436
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js +5 -4
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/NetworkDownIndicator.js +8 -16
- package/lib/commonjs/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +13 -7
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/StickyHeader.js +5 -5
- package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +15 -6
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +39 -26
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMarkRead.js +50 -0
- package/lib/commonjs/components/MessageList/hooks/useMarkRead.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageDateSeparator.js +4 -3
- package/lib/commonjs/components/MessageList/hooks/useMessageDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +20 -27
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageListFocus.js +41 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListFocus.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListLiveState.js +72 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListLiveState.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListPagination.js +71 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListPagination.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useOwnUnreadCount.js +22 -0
- package/lib/commonjs/components/MessageList/hooks/useOwnUnreadCount.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useStickyHeaderDate.js +41 -0
- package/lib/commonjs/components/MessageList/hooks/useStickyHeaderDate.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useTypingString.js +2 -2
- package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useTypingUsers.js +21 -8
- package/lib/commonjs/components/MessageList/hooks/useTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useUnreadNotificationVisibility.js +56 -0
- package/lib/commonjs/components/MessageList/hooks/useUnreadNotificationVisibility.js.map +1 -0
- package/lib/commonjs/components/MessageList/utils/buildMessageListWithNeighbours.js +2 -2
- package/lib/commonjs/components/MessageList/utils/buildMessageListWithNeighbours.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js +8 -7
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +2 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionListWithActions.js +77 -0
- package/lib/commonjs/components/MessageMenu/MessageActionListWithActions.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +14 -11
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js +37 -28
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/Notifications/Notification.js +1 -1
- package/lib/commonjs/components/Notifications/Notification.js.map +1 -1
- package/lib/commonjs/components/Notifications/NotificationList.js +1 -1
- package/lib/commonjs/components/Notifications/NotificationList.js.map +1 -1
- package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js +1 -2
- package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js.map +1 -1
- package/lib/commonjs/components/Notifications/notificationTranslations.js +59 -45
- package/lib/commonjs/components/Notifications/notificationTranslations.js.map +1 -1
- package/lib/commonjs/components/Poll/CreatePollContent.js +9 -9
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/commonjs/components/Poll/Poll.js +7 -5
- package/lib/commonjs/components/Poll/Poll.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js +3 -3
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +9 -4
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleAnswersField.js +2 -2
- package/lib/commonjs/components/Poll/components/MultipleAnswersField.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +4 -4
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/NameField.js +2 -2
- package/lib/commonjs/components/Poll/components/NameField.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +10 -10
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollButtons.js +19 -15
- package/lib/commonjs/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +2 -2
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +6 -4
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +4 -2
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +7 -5
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js +6 -6
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js.map +1 -1
- package/lib/commonjs/components/Poll/contexts/PollUIStateContext.js +2 -2
- package/lib/commonjs/components/Poll/contexts/PollUIStateContext.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/useEndVote.js +2 -2
- package/lib/commonjs/components/Poll/hooks/useEndVote.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +8 -7
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +14 -12
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollState.js +21 -18
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +10 -9
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js +77 -104
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +26 -46
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js +17 -18
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js +20 -15
- 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/ThreadListUnreadBanner.js +23 -20
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +15 -8
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +2 -2
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SearchInput.js +2 -2
- package/lib/commonjs/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/commonjs/components/index.js +235 -44
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js +12 -4
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/contexts/channelAddMembersContext/ChannelAddMembersContext.js +2 -1
- package/lib/commonjs/contexts/channelAddMembersContext/ChannelAddMembersContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +4 -3
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js +4 -3
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelMemberListContext/ChannelMemberListContext.js +4 -3
- package/lib/commonjs/contexts/channelMemberListContext/ChannelMemberListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +0 -2
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/contexts/index.js +11 -33
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +2 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js +5 -6
- package/lib/commonjs/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js.map +1 -1
- package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js +49 -10
- package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +23 -130
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -8
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposer.js +1 -5
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposer.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js +3 -4
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js +16 -0
- package/lib/commonjs/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js.map +1 -0
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +6 -10
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +4 -6
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/index.js +0 -11
- package/lib/commonjs/contexts/translationContext/index.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActionItems.js +21 -21
- package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActions.js +52 -38
- package/lib/commonjs/hooks/actions/useChannelActions.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +10 -10
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useUserActions.js +15 -11
- package/lib/commonjs/hooks/actions/useUserActions.js.map +1 -1
- package/lib/commonjs/hooks/index.js +33 -11
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useGroupedAttachments.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js +26 -52
- package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js +34 -22
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/commonjs/hooks/useAudioPlayer.js +3 -3
- package/lib/commonjs/hooks/useAudioPlayer.js.map +1 -1
- package/lib/commonjs/hooks/useChannel.js +16 -0
- package/lib/commonjs/hooks/useChannel.js.map +1 -0
- package/lib/commonjs/hooks/useChannelImage.js +8 -10
- package/lib/commonjs/hooks/useChannelImage.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMemberCount.js +6 -11
- package/lib/commonjs/hooks/useChannelMemberCount.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMembershipState.js +6 -8
- package/lib/commonjs/hooks/useChannelMembershipState.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMuteActive.js +3 -6
- package/lib/commonjs/hooks/useChannelMuteActive.js.map +1 -1
- package/lib/commonjs/hooks/useChannelName.js +8 -10
- package/lib/commonjs/hooks/useChannelName.js.map +1 -1
- package/lib/commonjs/hooks/useChannelOwnCapabilities.js +6 -11
- package/lib/commonjs/hooks/useChannelOwnCapabilities.js.map +1 -1
- package/lib/commonjs/hooks/useIsDirectChat.js +9 -3
- package/lib/commonjs/hooks/useIsDirectChat.js.map +1 -1
- package/lib/commonjs/hooks/useIsTargetedMessage.js +20 -0
- package/lib/commonjs/hooks/useIsTargetedMessage.js.map +1 -0
- package/lib/commonjs/hooks/useLoadingImage.js +5 -5
- package/lib/commonjs/hooks/useLoadingImage.js.map +1 -1
- package/lib/commonjs/hooks/useMessagePaginator.js +15 -0
- package/lib/commonjs/hooks/useMessagePaginator.js.map +1 -0
- package/lib/commonjs/hooks/usePrunableMessageList.js +17 -16
- package/lib/commonjs/hooks/usePrunableMessageList.js.map +1 -1
- package/lib/commonjs/hooks/useQueryReminders.js +7 -6
- package/lib/commonjs/hooks/useQueryReminders.js.map +1 -1
- package/lib/commonjs/hooks/useStreami18n.js +13 -44
- package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js +8 -4
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/i18n/index.js +37 -0
- package/lib/commonjs/i18n/index.js.map +1 -0
- package/lib/commonjs/i18n/keys.js +2 -0
- package/lib/commonjs/i18n/keys.js.map +1 -0
- package/lib/commonjs/i18n/runtimeDefaults.js +103 -0
- package/lib/commonjs/i18n/runtimeDefaults.js.map +1 -0
- package/lib/commonjs/i18n/types.js.map +1 -0
- package/lib/commonjs/i18n/utils.js +72 -0
- package/lib/commonjs/i18n/utils.js.map +1 -0
- package/lib/commonjs/index.js +16 -101
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/middlewares/attachments.js +1 -80
- package/lib/commonjs/middlewares/attachments.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +5 -4
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/mock-builders/api/channelMocks.js +38 -35
- package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/commonjs/mock-builders/api/initiateClientWithChannels.js +6 -1
- package/lib/commonjs/mock-builders/api/initiateClientWithChannels.js.map +1 -1
- package/lib/commonjs/mock-builders/api/queryMembers.js +15 -14
- package/lib/commonjs/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/commonjs/mock-builders/api/useMockedApis.js +31 -1
- package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/commonjs/mock-builders/attachments.js +5 -0
- package/lib/commonjs/mock-builders/attachments.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionChanged.js +13 -6
- package/lib/commonjs/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageDeleted.js +0 -1
- package/lib/commonjs/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageRead.js +2 -1
- package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageUpdated.js +0 -1
- package/lib/commonjs/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js +1 -3
- package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMarkUnread.js +2 -1
- package/lib/commonjs/mock-builders/event/notificationMarkUnread.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js +2 -1
- package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/typing.js +1 -3
- package/lib/commonjs/mock-builders/event/typing.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userPresence.js +1 -3
- package/lib/commonjs/mock-builders/event/userPresence.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userUpdated.js +1 -3
- package/lib/commonjs/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/utils.js +18 -0
- package/lib/commonjs/mock-builders/event/utils.js.map +1 -0
- package/lib/commonjs/mock-builders/generator/attachment.js +11 -3
- package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/channel.js +5 -4
- package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/channelState.js +53 -0
- package/lib/commonjs/mock-builders/generator/channelState.js.map +1 -0
- package/lib/commonjs/mock-builders/generator/message.js +15 -8
- package/lib/commonjs/mock-builders/generator/message.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/reaction.js +2 -1
- package/lib/commonjs/mock-builders/generator/reaction.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/time.js +13 -0
- package/lib/commonjs/mock-builders/generator/time.js.map +1 -0
- package/lib/commonjs/mock-builders/generator/user.js +3 -2
- package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
- package/lib/commonjs/mock-builders/mock.js +5 -3
- package/lib/commonjs/mock-builders/mock.js.map +1 -1
- package/lib/commonjs/state-store/attachment-picker-store.js +2 -2
- package/lib/commonjs/state-store/attachment-picker-store.js.map +1 -1
- package/lib/commonjs/state-store/audio-player-pool.js +2 -2
- package/lib/commonjs/state-store/audio-player-pool.js.map +1 -1
- package/lib/commonjs/state-store/audio-player.js +2 -2
- package/lib/commonjs/state-store/audio-player.js.map +1 -1
- package/lib/commonjs/state-store/audio-recorder-manager.js +2 -2
- package/lib/commonjs/state-store/audio-recorder-manager.js.map +1 -1
- package/lib/commonjs/state-store/edit-channel-details-store.js +5 -5
- package/lib/commonjs/state-store/edit-channel-details-store.js.map +1 -1
- package/lib/commonjs/state-store/image-gallery-state-store.js +5 -4
- package/lib/commonjs/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/commonjs/state-store/in-app-notifications-store.js +2 -2
- package/lib/commonjs/state-store/in-app-notifications-store.js.map +1 -1
- package/lib/commonjs/state-store/message-input-height-store.js +2 -2
- package/lib/commonjs/state-store/message-input-height-store.js.map +1 -1
- package/lib/commonjs/state-store/message-overlay-store.js +4 -4
- package/lib/commonjs/state-store/message-overlay-store.js.map +1 -1
- package/lib/commonjs/state-store/selection-store.js +2 -2
- package/lib/commonjs/state-store/selection-store.js.map +1 -1
- package/lib/commonjs/state-store/signal-store.js +2 -2
- package/lib/commonjs/state-store/signal-store.js.map +1 -1
- package/lib/commonjs/state-store/video-player-pool.js +2 -2
- package/lib/commonjs/state-store/video-player-pool.js.map +1 -1
- package/lib/commonjs/state-store/video-player.js +2 -2
- package/lib/commonjs/state-store/video-player.js.map +1 -1
- package/lib/commonjs/store/OfflineDB.js +11 -13
- package/lib/commonjs/store/OfflineDB.js.map +1 -1
- package/lib/commonjs/store/SqliteClient.js +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/deleteMessagesForChannel.js +2 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -3
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelActiveLocations.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +3 -3
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +7 -6
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +18 -10
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getDraft.js +1 -1
- package/lib/commonjs/store/apis/getDraft.js.map +1 -1
- package/lib/commonjs/store/apis/getDraftsForChannels.js +2 -2
- package/lib/commonjs/store/apis/getDraftsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -3
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/index.js +0 -11
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +6 -2
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectActiveLocationsForChannels.js +2 -1
- package/lib/commonjs/store/apis/queries/selectActiveLocationsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelQueryForFilterSort.js +56 -0
- package/lib/commonjs/store/apis/queries/selectChannelQueryForFilterSort.js.map +1 -0
- 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/selectReactionsForMessages.js +2 -2
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/softDeleteMessage.js +2 -1
- package/lib/commonjs/store/apis/softDeleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updateReaction.js +6 -1
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +3 -3
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +13 -6
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +6 -2
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertDraft.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelDataToStorable.js +8 -11
- package/lib/commonjs/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelToStorable.js +8 -11
- package/lib/commonjs/store/mappers/mapChannelToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapDraftMessageToStorable.js +1 -1
- package/lib/commonjs/store/mappers/mapDraftMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapDraftToStorable.js +2 -2
- package/lib/commonjs/store/mappers/mapDraftToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMemberToStorable.js +7 -7
- package/lib/commonjs/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js +6 -6
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapPollToStorable.js +4 -4
- package/lib/commonjs/store/mappers/mapPollToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReactionToStorable.js +3 -3
- package/lib/commonjs/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReadToStorable.js +3 -3
- package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReminderToStorable.js +4 -4
- package/lib/commonjs/store/mappers/mapReminderToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapSharedLocationToStorable.js +4 -4
- package/lib/commonjs/store/mappers/mapSharedLocationToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToChannel.js +6 -5
- package/lib/commonjs/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToDraft.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToDraft.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMember.js +12 -9
- package/lib/commonjs/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +7 -6
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToPoll.js +9 -6
- package/lib/commonjs/store/mappers/mapStorableToPoll.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToReaction.js +3 -2
- package/lib/commonjs/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToRead.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToReminder.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToReminder.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToSharedLocation.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToSharedLocation.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToTimestamp.js +13 -0
- package/lib/commonjs/store/mappers/mapStorableToTimestamp.js.map +1 -0
- package/lib/commonjs/store/mappers/mapStorableToUser.js +5 -4
- package/lib/commonjs/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/commonjs/store/mappers/mapTimestampToStorable.js +7 -0
- package/lib/commonjs/store/mappers/mapTimestampToStorable.js.map +1 -0
- package/lib/commonjs/store/mappers/mapUserToStorable.js +4 -3
- package/lib/commonjs/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/commonjs/store/schema.js +33 -32
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js +17 -3
- package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpsertQueryIfParentExists.js +15 -0
- package/lib/commonjs/store/sqlite-utils/createUpsertQueryIfParentExists.js.map +1 -0
- package/lib/commonjs/types/types.js.map +1 -1
- package/lib/commonjs/utils/attachmentUrls.js +15 -0
- package/lib/commonjs/utils/attachmentUrls.js.map +1 -0
- package/lib/commonjs/utils/getUrlOfImageAttachment.js +6 -1
- package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/commonjs/utils/i18n/Streami18n.js +43 -408
- package/lib/commonjs/utils/i18n/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/installNativeMultipartAdapter.js +25 -25
- package/lib/commonjs/utils/installNativeMultipartAdapter.js.map +1 -1
- package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
- package/lib/commonjs/utils/utils.js +16 -54
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/a11y/hooks/useA11yLabel.js +2 -1
- package/lib/module/a11y/hooks/useA11yLabel.js.map +1 -1
- package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js +2 -2
- package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -1
- package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js +15 -47
- package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -1
- package/lib/module/components/Accessibility/NotificationAnnouncer.js +9 -7
- package/lib/module/components/Accessibility/NotificationAnnouncer.js.map +1 -1
- package/lib/module/components/Accessibility/hooks/useIncomingMessageAnnouncements.js +10 -10
- package/lib/module/components/Accessibility/hooks/useIncomingMessageAnnouncements.js.map +1 -1
- package/lib/module/components/Attachment/Attachment.js +6 -6
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/Audio/AudioAttachment.js +14 -13
- package/lib/module/components/Attachment/Audio/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +4 -4
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FilePreview.js +4 -2
- package/lib/module/components/Attachment/FilePreview.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +9 -5
- 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 +3 -3
- package/lib/module/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/openUrlSafely.js +3 -0
- package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +2 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +29 -24
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +22 -21
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -9
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +8 -9
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +2 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +54 -1410
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/ChannelShell.js +398 -0
- package/lib/module/components/Channel/ChannelShell.js.map +1 -0
- package/lib/module/components/Channel/hooks/useChannelLifecycle.js +120 -0
- package/lib/module/components/Channel/hooks/useChannelLifecycle.js.map +1 -0
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +3 -53
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +1 -9
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +3 -19
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +11 -27
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js +6 -46
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useSupersededChannelSwap.js +28 -0
- package/lib/module/components/Channel/hooks/useSupersededChannelSwap.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/ChannelDetailsEditButton.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsEditButton.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsMemberSection.js +10 -6
- 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/ChannelDetailsProfile.js +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormContent.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormContent.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js +5 -5
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditName.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditName.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/AddMemberSearchResultItem.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/AddMemberSearchResultItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +2 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberList.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +5 -5
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/members/useMemberRoles.js +3 -3
- package/lib/module/components/ChannelDetails/hooks/members/useMemberRoles.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +5 -3
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +5 -4
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useEditChannelImage.js +6 -6
- package/lib/module/components/ChannelDetails/hooks/useEditChannelImage.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js +9 -5
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useUserActivityStatus.js +8 -7
- package/lib/module/components/ChannelDetails/hooks/useUserActivityStatus.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +23 -98
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListView.js +28 -68
- package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/index.js +0 -11
- package/lib/module/components/ChannelList/hooks/index.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelMembersState.js +32 -9
- package/lib/module/components/ChannelList/hooks/useChannelMembersState.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelOnlineMemberCount.js +6 -15
- package/lib/module/components/ChannelList/hooks/useChannelOnlineMemberCount.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +20 -44
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useMutedChannels.js +7 -7
- package/lib/module/components/ChannelList/hooks/useMutedChannels.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useMutedUsers.js +7 -9
- package/lib/module/components/ChannelList/hooks/useMutedUsers.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +69 -125
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +12 -3
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +19 -11
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -3
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +6 -5
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +9 -8
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTypingIndicator.js +8 -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 +1 -3
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js +25 -118
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +11 -4
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js +14 -5
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +3 -3
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelTypingState.js +2 -37
- package/lib/module/components/ChannelPreview/hooks/useChannelTypingState.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js +6 -29
- 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 +53 -59
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/index.js +16 -16
- package/lib/module/components/Chat/hooks/index.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettingsGetter.js +75 -0
- package/lib/module/components/Chat/hooks/useAppSettingsGetter.js.map +1 -0
- package/lib/module/components/Chat/hooks/useClientUserId.js +17 -0
- package/lib/module/components/Chat/hooks/useClientUserId.js.map +1 -0
- package/lib/module/components/Chat/hooks/useConnectionLifecycle.js +53 -0
- package/lib/module/components/Chat/hooks/useConnectionLifecycle.js.map +1 -0
- package/lib/module/components/Chat/hooks/useCreateChatClient.js +15 -1
- package/lib/module/components/Chat/hooks/useCreateChatClient.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +7 -25
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useInitializeOfflineDb.js +11 -4
- package/lib/module/components/Chat/hooks/useInitializeOfflineDb.js.map +1 -1
- package/lib/module/components/Chat/hooks/useNetworkConnectionState.js +22 -0
- package/lib/module/components/Chat/hooks/useNetworkConnectionState.js.map +1 -0
- package/lib/module/components/Chat/hooks/usePendingUploadsDefault.js +24 -0
- package/lib/module/components/Chat/hooks/usePendingUploadsDefault.js.map +1 -0
- package/lib/module/components/Chat/hooks/useWSConnectionState.js +63 -0
- package/lib/module/components/Chat/hooks/useWSConnectionState.js.map +1 -0
- package/lib/module/components/ImageGallery/components/ImageGalleryA11yProbe.js +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryA11yProbe.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +3 -3
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +6 -6
- 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/Indicators/EmptyStateIndicator.js +4 -4
- package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/module/components/Indicators/LoadingErrorIndicator.js +3 -3
- package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js +3 -3
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/Message/Message.js +64 -195
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +2 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +34 -19
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageBounce.js +8 -8
- package/lib/module/components/Message/MessageItemView/MessageBounce.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageContent.js +4 -8
- package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageFooter.js +17 -15
- package/lib/module/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageHeader.js +27 -23
- package/lib/module/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageItemView.js +14 -19
- package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js +7 -16
- package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js +25 -33
- package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageTimestamp.js +4 -4
- package/lib/module/components/Message/MessageItemView/MessageTimestamp.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js +37 -31
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +3 -3
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageActionHandlers.js +453 -0
- package/lib/module/components/Message/hooks/useCreateMessageActionHandlers.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +5 -12
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useIsMessageDeliveredToOthers.js +25 -0
- package/lib/module/components/Message/hooks/useIsMessageDeliveredToOthers.js.map +1 -0
- package/lib/module/components/Message/hooks/useIsMessageReadByOthers.js +25 -0
- package/lib/module/components/Message/hooks/useIsMessageReadByOthers.js.map +1 -0
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js +9 -440
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +59 -87
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageData.js +4 -5
- package/lib/module/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js +12 -36
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageOperations.js +144 -0
- package/lib/module/components/Message/hooks/useMessageOperations.js.map +1 -0
- package/lib/module/components/Message/hooks/useMessageReadData.js +12 -36
- package/lib/module/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js +4 -2
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/Message/hooks/useUserMuteActive.js +15 -7
- package/lib/module/components/Message/hooks/useUserMuteActive.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/MessageComposer.js +25 -18
- package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +1 -1
- package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +10 -12
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +3 -3
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js +6 -6
- package/lib/module/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +6 -6
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +3 -4
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +6 -5
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +5 -5
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -4
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/index.js +9 -2
- package/lib/module/components/MessageInput/components/InputButtons/index.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/index.js +3 -3
- package/lib/module/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioRecorder.js +7 -5
- package/lib/module/components/MessageInput/hooks/useAudioRecorder.js.map +1 -1
- package/lib/module/components/MessageList/InlineDateSeparator.js +6 -6
- package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +5 -8
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +5 -8
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineUnreadIndicator.js +5 -3
- package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/MessageFlashList.js +152 -390
- package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +141 -436
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js +5 -4
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/NetworkDownIndicator.js +8 -16
- package/lib/module/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +13 -7
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/StickyHeader.js +5 -5
- package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicatorContainer.js +15 -6
- package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/module/components/MessageList/UnreadMessagesNotification.js +39 -26
- package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMarkRead.js +50 -0
- package/lib/module/components/MessageList/hooks/useMarkRead.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useMessageDateSeparator.js +4 -3
- package/lib/module/components/MessageList/hooks/useMessageDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +20 -27
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageListFocus.js +41 -0
- package/lib/module/components/MessageList/hooks/useMessageListFocus.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useMessageListLiveState.js +72 -0
- package/lib/module/components/MessageList/hooks/useMessageListLiveState.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useMessageListPagination.js +71 -0
- package/lib/module/components/MessageList/hooks/useMessageListPagination.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useOwnUnreadCount.js +22 -0
- package/lib/module/components/MessageList/hooks/useOwnUnreadCount.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useStickyHeaderDate.js +41 -0
- package/lib/module/components/MessageList/hooks/useStickyHeaderDate.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useTypingString.js +2 -2
- package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useTypingUsers.js +21 -8
- package/lib/module/components/MessageList/hooks/useTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useUnreadNotificationVisibility.js +56 -0
- package/lib/module/components/MessageList/hooks/useUnreadNotificationVisibility.js.map +1 -0
- package/lib/module/components/MessageList/utils/buildMessageListWithNeighbours.js +2 -2
- package/lib/module/components/MessageList/utils/buildMessageListWithNeighbours.js.map +1 -1
- package/lib/module/components/MessageList/utils/filterTypingUsers.js +8 -7
- package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +2 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +1 -1
- package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageActionListWithActions.js +77 -0
- package/lib/module/components/MessageMenu/MessageActionListWithActions.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +14 -11
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js +37 -28
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/Notifications/Notification.js +1 -1
- package/lib/module/components/Notifications/Notification.js.map +1 -1
- package/lib/module/components/Notifications/NotificationList.js +1 -1
- package/lib/module/components/Notifications/NotificationList.js.map +1 -1
- package/lib/module/components/Notifications/hooks/useNotificationTarget.js +1 -2
- package/lib/module/components/Notifications/hooks/useNotificationTarget.js.map +1 -1
- package/lib/module/components/Notifications/notificationTranslations.js +59 -45
- package/lib/module/components/Notifications/notificationTranslations.js.map +1 -1
- package/lib/module/components/Poll/CreatePollContent.js +9 -9
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/module/components/Poll/Poll.js +7 -5
- package/lib/module/components/Poll/Poll.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollHeader.js +3 -3
- package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollOptions.js +9 -4
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleAnswersField.js +2 -2
- package/lib/module/components/Poll/components/MultipleAnswersField.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +4 -4
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/NameField.js +2 -2
- package/lib/module/components/Poll/components/NameField.js.map +1 -1
- package/lib/module/components/Poll/components/PollAnswersList.js +10 -10
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/module/components/Poll/components/PollButtons.js +19 -15
- package/lib/module/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/module/components/Poll/components/PollInputDialog.js +2 -2
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +6 -4
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +4 -2
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +7 -5
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResults.js +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollVote.js +6 -6
- package/lib/module/components/Poll/components/PollResults/PollVote.js.map +1 -1
- package/lib/module/components/Poll/contexts/PollUIStateContext.js +2 -2
- package/lib/module/components/Poll/contexts/PollUIStateContext.js.map +1 -1
- package/lib/module/components/Poll/hooks/useEndVote.js +2 -2
- package/lib/module/components/Poll/hooks/useEndVote.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +8 -7
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +14 -12
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollState.js +21 -18
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +10 -9
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/Thread.js +77 -104
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +26 -46
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js +17 -18
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js +20 -15
- 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/ThreadListUnreadBanner.js +23 -20
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +15 -8
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +2 -2
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/module/components/UIComponents/SearchInput.js +2 -2
- package/lib/module/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/module/components/index.js +235 -44
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/ui/Avatar/Avatar.js +1 -1
- package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/ui/Avatar/ChannelAvatar.js +12 -4
- package/lib/module/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/module/contexts/channelAddMembersContext/ChannelAddMembersContext.js +2 -1
- package/lib/module/contexts/channelAddMembersContext/ChannelAddMembersContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +4 -3
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -1
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js +4 -3
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -1
- package/lib/module/contexts/channelMemberListContext/ChannelMemberListContext.js +4 -3
- package/lib/module/contexts/channelMemberListContext/ChannelMemberListContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js +0 -2
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/contexts/index.js +11 -33
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +2 -1
- package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
- package/lib/module/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js +5 -6
- package/lib/module/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js.map +1 -1
- package/lib/module/contexts/messageComposerContext/MessageComposerContext.js +49 -10
- package/lib/module/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +23 -130
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -8
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposer.js +1 -5
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposer.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js +3 -4
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js +16 -0
- package/lib/module/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js.map +1 -0
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +6 -10
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +4 -6
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/translationContext/index.js +0 -11
- package/lib/module/contexts/translationContext/index.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActionItems.js +21 -21
- package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActions.js +52 -38
- package/lib/module/hooks/actions/useChannelActions.js.map +1 -1
- package/lib/module/hooks/actions/useChannelMemberActionItems.js +10 -10
- package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useUserActions.js +15 -11
- package/lib/module/hooks/actions/useUserActions.js.map +1 -1
- package/lib/module/hooks/index.js +33 -11
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/messagePreview/useGroupedAttachments.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js +26 -52
- package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js +34 -22
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/module/hooks/useAudioPlayer.js +3 -3
- package/lib/module/hooks/useAudioPlayer.js.map +1 -1
- package/lib/module/hooks/useChannel.js +16 -0
- package/lib/module/hooks/useChannel.js.map +1 -0
- package/lib/module/hooks/useChannelImage.js +8 -10
- package/lib/module/hooks/useChannelImage.js.map +1 -1
- package/lib/module/hooks/useChannelMemberCount.js +6 -11
- package/lib/module/hooks/useChannelMemberCount.js.map +1 -1
- package/lib/module/hooks/useChannelMembershipState.js +6 -8
- package/lib/module/hooks/useChannelMembershipState.js.map +1 -1
- package/lib/module/hooks/useChannelMuteActive.js +3 -6
- package/lib/module/hooks/useChannelMuteActive.js.map +1 -1
- package/lib/module/hooks/useChannelName.js +8 -10
- package/lib/module/hooks/useChannelName.js.map +1 -1
- package/lib/module/hooks/useChannelOwnCapabilities.js +6 -11
- package/lib/module/hooks/useChannelOwnCapabilities.js.map +1 -1
- package/lib/module/hooks/useIsDirectChat.js +9 -3
- package/lib/module/hooks/useIsDirectChat.js.map +1 -1
- package/lib/module/hooks/useIsTargetedMessage.js +20 -0
- package/lib/module/hooks/useIsTargetedMessage.js.map +1 -0
- package/lib/module/hooks/useLoadingImage.js +5 -5
- package/lib/module/hooks/useLoadingImage.js.map +1 -1
- package/lib/module/hooks/useMessagePaginator.js +15 -0
- package/lib/module/hooks/useMessagePaginator.js.map +1 -0
- package/lib/module/hooks/usePrunableMessageList.js +17 -16
- package/lib/module/hooks/usePrunableMessageList.js.map +1 -1
- package/lib/module/hooks/useQueryReminders.js +7 -6
- package/lib/module/hooks/useQueryReminders.js.map +1 -1
- package/lib/module/hooks/useStreami18n.js +13 -44
- package/lib/module/hooks/useStreami18n.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js +8 -4
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/i18n/index.js +37 -0
- package/lib/module/i18n/index.js.map +1 -0
- package/lib/module/i18n/keys.js +2 -0
- package/lib/module/i18n/keys.js.map +1 -0
- package/lib/module/i18n/runtimeDefaults.js +103 -0
- package/lib/module/i18n/runtimeDefaults.js.map +1 -0
- package/lib/module/i18n/types.js.map +1 -0
- package/lib/module/i18n/utils.js +72 -0
- package/lib/module/i18n/utils.js.map +1 -0
- package/lib/module/index.js +16 -101
- package/lib/module/index.js.map +1 -1
- package/lib/module/middlewares/attachments.js +1 -80
- package/lib/module/middlewares/attachments.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +5 -4
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/mock-builders/api/channelMocks.js +38 -35
- package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/module/mock-builders/api/initiateClientWithChannels.js +6 -1
- package/lib/module/mock-builders/api/initiateClientWithChannels.js.map +1 -1
- package/lib/module/mock-builders/api/queryMembers.js +15 -14
- package/lib/module/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/module/mock-builders/api/useMockedApis.js +31 -1
- package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/module/mock-builders/attachments.js +5 -0
- package/lib/module/mock-builders/attachments.js.map +1 -1
- package/lib/module/mock-builders/event/connectionChanged.js +13 -6
- package/lib/module/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/module/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/module/mock-builders/event/messageDeleted.js +0 -1
- package/lib/module/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/messageRead.js +2 -1
- package/lib/module/mock-builders/event/messageRead.js.map +1 -1
- package/lib/module/mock-builders/event/messageUpdated.js +0 -1
- package/lib/module/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js +1 -3
- package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMarkUnread.js +2 -1
- package/lib/module/mock-builders/event/notificationMarkUnread.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMutesUpdated.js +2 -1
- package/lib/module/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/typing.js +1 -3
- package/lib/module/mock-builders/event/typing.js.map +1 -1
- package/lib/module/mock-builders/event/userPresence.js +1 -3
- package/lib/module/mock-builders/event/userPresence.js.map +1 -1
- package/lib/module/mock-builders/event/userUpdated.js +1 -3
- package/lib/module/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/utils.js +18 -0
- package/lib/module/mock-builders/event/utils.js.map +1 -0
- package/lib/module/mock-builders/generator/attachment.js +11 -3
- package/lib/module/mock-builders/generator/attachment.js.map +1 -1
- package/lib/module/mock-builders/generator/channel.js +5 -4
- package/lib/module/mock-builders/generator/channel.js.map +1 -1
- package/lib/module/mock-builders/generator/channelState.js +53 -0
- package/lib/module/mock-builders/generator/channelState.js.map +1 -0
- package/lib/module/mock-builders/generator/message.js +15 -8
- package/lib/module/mock-builders/generator/message.js.map +1 -1
- package/lib/module/mock-builders/generator/reaction.js +2 -1
- package/lib/module/mock-builders/generator/reaction.js.map +1 -1
- package/lib/module/mock-builders/generator/time.js +13 -0
- package/lib/module/mock-builders/generator/time.js.map +1 -0
- package/lib/module/mock-builders/generator/user.js +3 -2
- package/lib/module/mock-builders/generator/user.js.map +1 -1
- package/lib/module/mock-builders/mock.js +5 -3
- package/lib/module/mock-builders/mock.js.map +1 -1
- package/lib/module/state-store/attachment-picker-store.js +2 -2
- package/lib/module/state-store/attachment-picker-store.js.map +1 -1
- package/lib/module/state-store/audio-player-pool.js +2 -2
- package/lib/module/state-store/audio-player-pool.js.map +1 -1
- package/lib/module/state-store/audio-player.js +2 -2
- package/lib/module/state-store/audio-player.js.map +1 -1
- package/lib/module/state-store/audio-recorder-manager.js +2 -2
- package/lib/module/state-store/audio-recorder-manager.js.map +1 -1
- package/lib/module/state-store/edit-channel-details-store.js +5 -5
- package/lib/module/state-store/edit-channel-details-store.js.map +1 -1
- package/lib/module/state-store/image-gallery-state-store.js +5 -4
- package/lib/module/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/module/state-store/in-app-notifications-store.js +2 -2
- package/lib/module/state-store/in-app-notifications-store.js.map +1 -1
- package/lib/module/state-store/message-input-height-store.js +2 -2
- package/lib/module/state-store/message-input-height-store.js.map +1 -1
- package/lib/module/state-store/message-overlay-store.js +4 -4
- package/lib/module/state-store/message-overlay-store.js.map +1 -1
- package/lib/module/state-store/selection-store.js +2 -2
- package/lib/module/state-store/selection-store.js.map +1 -1
- package/lib/module/state-store/signal-store.js +2 -2
- package/lib/module/state-store/signal-store.js.map +1 -1
- package/lib/module/state-store/video-player-pool.js +2 -2
- package/lib/module/state-store/video-player-pool.js.map +1 -1
- package/lib/module/state-store/video-player.js +2 -2
- package/lib/module/state-store/video-player.js.map +1 -1
- package/lib/module/store/OfflineDB.js +11 -13
- package/lib/module/store/OfflineDB.js.map +1 -1
- package/lib/module/store/SqliteClient.js +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/deleteMessagesForChannel.js +2 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -3
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelActiveLocations.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +3 -3
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +7 -6
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +18 -10
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getDraft.js +1 -1
- package/lib/module/store/apis/getDraft.js.map +1 -1
- package/lib/module/store/apis/getDraftsForChannels.js +2 -2
- package/lib/module/store/apis/getDraftsForChannels.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -3
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/index.js +0 -11
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +6 -2
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectActiveLocationsForChannels.js +2 -1
- package/lib/module/store/apis/queries/selectActiveLocationsForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelQueryForFilterSort.js +56 -0
- package/lib/module/store/apis/queries/selectChannelQueryForFilterSort.js.map +1 -0
- 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/selectReactionsForMessages.js +2 -2
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/softDeleteMessage.js +2 -1
- package/lib/module/store/apis/softDeleteMessage.js.map +1 -1
- package/lib/module/store/apis/updateReaction.js +6 -1
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +3 -3
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +13 -6
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +6 -2
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertDraft.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/store/mappers/mapChannelDataToStorable.js +8 -11
- package/lib/module/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapChannelToStorable.js +8 -11
- package/lib/module/store/mappers/mapChannelToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapDraftMessageToStorable.js +1 -1
- package/lib/module/store/mappers/mapDraftMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapDraftToStorable.js +2 -2
- package/lib/module/store/mappers/mapDraftToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMemberToStorable.js +7 -7
- package/lib/module/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js +6 -6
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapPollToStorable.js +4 -4
- package/lib/module/store/mappers/mapPollToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReactionToStorable.js +3 -3
- package/lib/module/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReadToStorable.js +3 -3
- package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReminderToStorable.js +4 -4
- package/lib/module/store/mappers/mapReminderToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapSharedLocationToStorable.js +4 -4
- package/lib/module/store/mappers/mapSharedLocationToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToChannel.js +6 -5
- package/lib/module/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToDraft.js +4 -3
- package/lib/module/store/mappers/mapStorableToDraft.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMember.js +12 -9
- package/lib/module/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +7 -6
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToPoll.js +9 -6
- package/lib/module/store/mappers/mapStorableToPoll.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToReaction.js +3 -2
- package/lib/module/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToRead.js +4 -3
- package/lib/module/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToReminder.js +4 -3
- package/lib/module/store/mappers/mapStorableToReminder.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToSharedLocation.js +4 -3
- package/lib/module/store/mappers/mapStorableToSharedLocation.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToTimestamp.js +13 -0
- package/lib/module/store/mappers/mapStorableToTimestamp.js.map +1 -0
- package/lib/module/store/mappers/mapStorableToUser.js +5 -4
- package/lib/module/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/module/store/mappers/mapTimestampToStorable.js +7 -0
- package/lib/module/store/mappers/mapTimestampToStorable.js.map +1 -0
- package/lib/module/store/mappers/mapUserToStorable.js +4 -3
- package/lib/module/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/module/store/schema.js +33 -32
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpsertQuery.js +17 -3
- package/lib/module/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpsertQueryIfParentExists.js +15 -0
- package/lib/module/store/sqlite-utils/createUpsertQueryIfParentExists.js.map +1 -0
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/utils/attachmentUrls.js +15 -0
- package/lib/module/utils/attachmentUrls.js.map +1 -0
- package/lib/module/utils/getUrlOfImageAttachment.js +6 -1
- package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/module/utils/i18n/Streami18n.js +43 -408
- package/lib/module/utils/i18n/Streami18n.js.map +1 -1
- package/lib/module/utils/installNativeMultipartAdapter.js +25 -25
- package/lib/module/utils/installNativeMultipartAdapter.js.map +1 -1
- package/lib/module/utils/removeReservedFields.js.map +1 -1
- package/lib/module/utils/utils.js +16 -54
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/a11y/hooks/useA11yLabel.d.ts.map +1 -1
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts +2 -8
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts.map +1 -1
- package/lib/typescript/components/Accessibility/NotificationAnnouncer.d.ts.map +1 -1
- package/lib/typescript/components/Accessibility/hooks/useIncomingMessageAnnouncements.d.ts +2 -2
- package/lib/typescript/components/Accessibility/hooks/useIncomingMessageAnnouncements.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Audio/AudioAttachment.d.ts +2 -1
- package/lib/typescript/components/Attachment/Audio/AudioAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FilePreview.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +2 -3
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionRoleItem.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +13 -87
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/ChannelShell.d.ts +52 -0
- package/lib/typescript/components/Channel/ChannelShell.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useChannelLifecycle.d.ts +21 -0
- package/lib/typescript/components/Channel/hooks/useChannelLifecycle.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +1 -35
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useSupersededChannelSwap.d.ts +8 -0
- package/lib/typescript/components/Channel/hooks/useSupersededChannelSwap.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsMemberSection.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditDetailsFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/AddMemberSearchResultItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormContent.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/members/useMemberRoles.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useEditChannelImage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useFileAttachmentListSections.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useUserActivityStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +7 -129
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelListView.d.ts +37 -2
- package/lib/typescript/components/ChannelList/ChannelListView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/index.d.ts +0 -1
- package/lib/typescript/components/ChannelList/hooks/index.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelMembersState.d.ts +14 -3
- package/lib/typescript/components/ChannelList/hooks/useChannelMembersState.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelOnlineMemberCount.d.ts +5 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelOnlineMemberCount.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useMutedChannels.d.ts +5 -3
- package/lib/typescript/components/ChannelList/hooks/useMutedChannels.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useMutedUsers.d.ts +3 -6
- package/lib/typescript/components/ChannelList/hooks/useMutedUsers.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +8 -19
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTypingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewPollLabel.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelTypingState.d.ts +8 -2
- package/lib/typescript/components/ChannelPreview/hooks/useChannelTypingState.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts +6 -6
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +11 -42
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/index.d.ts +3 -3
- package/lib/typescript/components/Chat/hooks/index.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useAppSettingsGetter.d.ts +16 -0
- package/lib/typescript/components/Chat/hooks/useAppSettingsGetter.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useClientUserId.d.ts +14 -0
- package/lib/typescript/components/Chat/hooks/useClientUserId.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useConnectionLifecycle.d.ts +42 -0
- package/lib/typescript/components/Chat/hooks/useConnectionLifecycle.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useCreateChatClient.d.ts +7 -3
- package/lib/typescript/components/Chat/hooks/useCreateChatClient.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useInitializeOfflineDb.d.ts +3 -2
- package/lib/typescript/components/Chat/hooks/useInitializeOfflineDb.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useNetworkConnectionState.d.ts +23 -0
- package/lib/typescript/components/Chat/hooks/useNetworkConnectionState.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/usePendingUploadsDefault.d.ts +22 -0
- package/lib/typescript/components/Chat/hooks/usePendingUploadsDefault.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useWSConnectionState.d.ts +54 -0
- package/lib/typescript/components/Chat/hooks/useWSConnectionState.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
- package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/LoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +5 -7
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageReminderHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts +2 -2
- package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageBounce.d.ts +2 -2
- package/lib/typescript/components/Message/MessageItemView/MessageBounce.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts +1 -2
- package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts +2 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts +6 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageActionHandlers.d.ts +30 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageActionHandlers.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useIsMessageDeliveredToOthers.d.ts +15 -0
- package/lib/typescript/components/Message/hooks/useIsMessageDeliveredToOthers.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useIsMessageReadByOthers.d.ts +18 -0
- package/lib/typescript/components/Message/hooks/useIsMessageReadByOthers.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +7 -22
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +8 -13
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts +2 -2
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageDeliveryData.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageDeliveryData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageOperations.d.ts +22 -0
- package/lib/typescript/components/Message/hooks/useMessageOperations.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useMessageReadData.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageReadData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useUserMuteActive.d.ts +11 -1
- package/lib/typescript/components/Message/hooks/useUserMuteActive.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/messageActions.d.ts +2 -2
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageComposer.d.ts +7 -3
- package/lib/typescript/components/MessageInput/MessageComposer.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +1 -4
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts +4 -2
- package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioRecorder.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/utils/messageComposerSelectors.d.ts +2 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineUnreadIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts +15 -6
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts +16 -6
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/NetworkDownIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +2 -3
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +5 -3
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts +7 -6
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMarkRead.d.ts +16 -0
- package/lib/typescript/components/MessageList/hooks/useMarkRead.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageDateSeparator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +11 -5
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageListFocus.d.ts +18 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListFocus.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListLiveState.d.ts +24 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListLiveState.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListPagination.d.ts +18 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListPagination.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useOwnUnreadCount.d.ts +7 -0
- package/lib/typescript/components/MessageList/hooks/useOwnUnreadCount.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts +2 -3
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useStickyHeaderDate.d.ts +13 -0
- package/lib/typescript/components/MessageList/hooks/useStickyHeaderDate.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useTypingUsers.d.ts +13 -0
- package/lib/typescript/components/MessageList/hooks/useTypingUsers.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useUnreadNotificationVisibility.d.ts +25 -0
- package/lib/typescript/components/MessageList/hooks/useUnreadNotificationVisibility.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/utils/buildMessageListWithNeighbours.d.ts +5 -0
- package/lib/typescript/components/MessageList/utils/buildMessageListWithNeighbours.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +6 -5
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageActionListWithActions.d.ts +7 -0
- package/lib/typescript/components/MessageMenu/MessageActionListWithActions.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts +2 -2
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/notificationTranslations.d.ts +2 -2
- package/lib/typescript/components/Notifications/notificationTranslations.d.ts.map +1 -1
- package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -1
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/Button.d.ts +2 -2
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts +2 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleAnswersField.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +3 -3
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollButtons.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +2 -2
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +4 -4
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts.map +1 -1
- package/lib/typescript/components/Poll/contexts/PollUIStateContext.d.ts +1 -1
- package/lib/typescript/components/Poll/contexts/PollUIStateContext.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/useEndVote.d.ts +1 -1
- package/lib/typescript/components/Poll/hooks/useEndVote.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts +2 -2
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts +4 -4
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts +7 -7
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts +3 -2
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Thread/Thread.d.ts +24 -38
- package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +8 -1
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +5 -8
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/ChannelAvatar.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -106
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +5 -34
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +9 -34
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +0 -4
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +1 -3
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/liveLocationManagerContext/LiveLocationManagerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.d.ts.map +1 -1
- package/lib/typescript/contexts/messageComposerContext/MessageComposerContext.d.ts +8 -5
- package/lib/typescript/contexts/messageComposerContext/MessageComposerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +13 -17
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +1 -20
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useActiveCommand.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useActiveCommand.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -2
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageComposer.d.ts +4 -0
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageComposer.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/usePendingUploadsEnabled.d.ts +11 -0
- package/lib/typescript/contexts/messageInputContext/hooks/usePendingUploadsEnabled.d.ts.map +1 -0
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +10 -25
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +8 -28
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts +2 -3
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +11 -3
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/index.d.ts +0 -1
- package/lib/typescript/contexts/translationContext/index.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/types.d.ts +20 -8
- package/lib/typescript/contexts/translationContext/types.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelActions.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useUserActions.d.ts.map +1 -1
- package/lib/typescript/hooks/index.d.ts +3 -1
- package/lib/typescript/hooks/index.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useGroupedAttachments.d.ts +2 -2
- package/lib/typescript/hooks/messagePreview/useGroupedAttachments.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessageDeliveryStatus.d.ts +9 -2
- package/lib/typescript/hooks/messagePreview/useMessageDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessagePreviewText.d.ts.map +1 -1
- package/lib/typescript/hooks/useAudioPlayer.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannel.d.ts +11 -0
- package/lib/typescript/hooks/useChannel.d.ts.map +1 -0
- package/lib/typescript/hooks/useChannelImage.d.ts +3 -0
- package/lib/typescript/hooks/useChannelImage.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelMemberCount.d.ts +4 -0
- package/lib/typescript/hooks/useChannelMemberCount.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelMembershipState.d.ts +4 -0
- package/lib/typescript/hooks/useChannelMembershipState.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelMuteActive.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelName.d.ts +3 -0
- package/lib/typescript/hooks/useChannelName.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelOwnCapabilities.d.ts +5 -2
- package/lib/typescript/hooks/useChannelOwnCapabilities.d.ts.map +1 -1
- package/lib/typescript/hooks/useIsDirectChat.d.ts.map +1 -1
- package/lib/typescript/hooks/useIsTargetedMessage.d.ts +12 -0
- package/lib/typescript/hooks/useIsTargetedMessage.d.ts.map +1 -0
- package/lib/typescript/hooks/useMessagePaginator.d.ts +6 -0
- package/lib/typescript/hooks/useMessagePaginator.d.ts.map +1 -0
- package/lib/typescript/hooks/usePrunableMessageList.d.ts +18 -6
- package/lib/typescript/hooks/usePrunableMessageList.d.ts.map +1 -1
- package/lib/typescript/hooks/useQueryReminders.d.ts +3 -3
- package/lib/typescript/hooks/useQueryReminders.d.ts.map +1 -1
- package/lib/typescript/hooks/useStateStore.d.ts +1 -1
- package/lib/typescript/hooks/useStateStore.d.ts.map +1 -1
- package/lib/typescript/hooks/useStreami18n.d.ts.map +1 -1
- package/lib/typescript/hooks/useSyncClientEvents.d.ts +5 -5
- package/lib/typescript/hooks/useSyncClientEvents.d.ts.map +1 -1
- package/lib/typescript/hooks/useTranslatedMessage.d.ts +203 -114
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/index.d.ts +5 -0
- package/lib/typescript/i18n/index.d.ts.map +1 -0
- package/lib/typescript/i18n/keys.d.ts +432 -0
- package/lib/typescript/i18n/keys.d.ts.map +1 -0
- package/lib/typescript/i18n/runtimeDefaults.d.ts +135 -0
- package/lib/typescript/i18n/runtimeDefaults.d.ts.map +1 -0
- package/lib/typescript/i18n/types.d.ts +29 -0
- package/lib/typescript/i18n/types.d.ts.map +1 -0
- package/lib/typescript/i18n/utils.d.ts +33 -0
- package/lib/typescript/i18n/utils.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -13
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/middlewares/attachments.d.ts +1 -4
- package/lib/typescript/middlewares/attachments.d.ts.map +1 -1
- package/lib/typescript/state-store/attachment-picker-store.d.ts +1 -1
- package/lib/typescript/state-store/attachment-picker-store.d.ts.map +1 -1
- package/lib/typescript/state-store/audio-player-pool.d.ts +1 -1
- package/lib/typescript/state-store/audio-player-pool.d.ts.map +1 -1
- package/lib/typescript/state-store/audio-player.d.ts +1 -1
- package/lib/typescript/state-store/audio-player.d.ts.map +1 -1
- package/lib/typescript/state-store/audio-recorder-manager.d.ts +1 -1
- package/lib/typescript/state-store/audio-recorder-manager.d.ts.map +1 -1
- package/lib/typescript/state-store/edit-channel-details-store.d.ts +2 -1
- package/lib/typescript/state-store/edit-channel-details-store.d.ts.map +1 -1
- package/lib/typescript/state-store/image-gallery-state-store.d.ts +5 -4
- package/lib/typescript/state-store/image-gallery-state-store.d.ts.map +1 -1
- package/lib/typescript/state-store/in-app-notifications-store.d.ts +2 -1
- package/lib/typescript/state-store/in-app-notifications-store.d.ts.map +1 -1
- package/lib/typescript/state-store/message-input-height-store.d.ts +1 -1
- package/lib/typescript/state-store/message-input-height-store.d.ts.map +1 -1
- package/lib/typescript/state-store/message-overlay-store.d.ts +1 -1
- package/lib/typescript/state-store/message-overlay-store.d.ts.map +1 -1
- package/lib/typescript/state-store/selection-store.d.ts +1 -1
- package/lib/typescript/state-store/selection-store.d.ts.map +1 -1
- package/lib/typescript/state-store/signal-store.d.ts +1 -1
- package/lib/typescript/state-store/signal-store.d.ts.map +1 -1
- package/lib/typescript/state-store/video-player-pool.d.ts +1 -1
- package/lib/typescript/state-store/video-player-pool.d.ts.map +1 -1
- package/lib/typescript/state-store/video-player.d.ts +1 -1
- package/lib/typescript/state-store/video-player.d.ts.map +1 -1
- package/lib/typescript/store/OfflineDB.d.ts +12 -11
- package/lib/typescript/store/OfflineDB.d.ts.map +1 -1
- package/lib/typescript/store/SqliteClient.d.ts +2 -2
- package/lib/typescript/store/SqliteClient.d.ts.map +1 -1
- package/lib/typescript/store/apis/channelExists.d.ts +9 -0
- package/lib/typescript/store/apis/channelExists.d.ts.map +1 -1
- package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts +3 -1
- package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts.map +1 -1
- package/lib/typescript/store/apis/deleteReaction.d.ts +2 -2
- package/lib/typescript/store/apis/deleteReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/getAppSettings.d.ts +4 -4
- package/lib/typescript/store/apis/getAppSettings.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelActiveLocations.d.ts +2 -2
- package/lib/typescript/store/apis/getChannelActiveLocations.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelMessages.d.ts +2 -2
- package/lib/typescript/store/apis/getChannelMessages.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannels.d.ts +5 -5
- package/lib/typescript/store/apis/getChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts +8 -7
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/getDraftsForChannels.d.ts +2 -2
- package/lib/typescript/store/apis/getDraftsForChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/getLastSyncedAt.d.ts +2 -2
- package/lib/typescript/store/apis/getLastSyncedAt.d.ts.map +1 -1
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts +2 -2
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/getReads.d.ts +2 -2
- package/lib/typescript/store/apis/getReads.d.ts.map +1 -1
- package/lib/typescript/store/apis/index.d.ts +0 -1
- package/lib/typescript/store/apis/index.d.ts.map +1 -1
- package/lib/typescript/store/apis/insertReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/queries/selectActiveLocationsForChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/queries/selectChannelQueryForFilterSort.d.ts +24 -0
- package/lib/typescript/store/apis/queries/selectChannelQueryForFilterSort.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts +2 -2
- package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts.map +1 -1
- package/lib/typescript/store/apis/softDeleteMessage.d.ts.map +1 -1
- package/lib/typescript/store/apis/updateReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertAppSettings.d.ts +4 -4
- package/lib/typescript/store/apis/upsertAppSettings.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertChannels.d.ts +2 -2
- package/lib/typescript/store/apis/upsertChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertCidsForQuery.d.ts +4 -3
- package/lib/typescript/store/apis/upsertCidsForQuery.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertDraft.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertLocation.d.ts +2 -2
- package/lib/typescript/store/apis/upsertLocation.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertPoll.d.ts +2 -2
- package/lib/typescript/store/apis/upsertPoll.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertReads.d.ts +2 -2
- package/lib/typescript/store/apis/upsertReads.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts +2 -2
- package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts.map +1 -1
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts +2 -2
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapChannelToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapDraftMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapPollToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapPollToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapReminderToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapSharedLocationToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapSharedLocationToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToDraft.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToDraft.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMember.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToPoll.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToPoll.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToReaction.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToReminder.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToReminder.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToSharedLocation.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToSharedLocation.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToTimestamp.d.ts +20 -0
- package/lib/typescript/store/mappers/mapStorableToTimestamp.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToUser.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapTaskToStorable.d.ts +7 -7
- package/lib/typescript/store/mappers/mapTimestampToStorable.d.ts +14 -0
- package/lib/typescript/store/mappers/mapTimestampToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapUserToStorable.d.ts.map +1 -1
- package/lib/typescript/store/schema.d.ts +38 -33
- package/lib/typescript/store/schema.d.ts.map +1 -1
- package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts +13 -0
- package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts.map +1 -1
- package/lib/typescript/store/sqlite-utils/createUpsertQueryIfParentExists.d.ts +40 -0
- package/lib/typescript/store/sqlite-utils/createUpsertQueryIfParentExists.d.ts.map +1 -0
- package/lib/typescript/store/types.d.ts +4 -4
- package/lib/typescript/store/types.d.ts.map +1 -1
- package/lib/typescript/types/react-native-compat.d.ts +2 -2
- package/lib/typescript/types/types.d.ts +11 -6
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/attachmentUrls.d.ts +13 -0
- package/lib/typescript/utils/attachmentUrls.d.ts.map +1 -0
- package/lib/typescript/utils/getUrlOfImageAttachment.d.ts +1 -1
- package/lib/typescript/utils/getUrlOfImageAttachment.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +60 -632
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/installNativeMultipartAdapter.d.ts +9 -5
- package/lib/typescript/utils/installNativeMultipartAdapter.d.ts.map +1 -1
- package/lib/typescript/utils/removeReservedFields.d.ts +1 -1
- package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -1
- package/lib/typescript/utils/utils.d.ts +13 -32
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/__tests__/instanceConfiguration.test.tsx +287 -0
- package/src/__tests__/offline-support/index.test.ts +6 -0
- package/src/__tests__/offline-support/offline-feature.tsx +149 -69
- package/src/__tests__/offline-support/optimistic-update.tsx +702 -132
- package/src/a11y/hooks/useA11yLabel.ts +3 -1
- package/src/components/AITypingIndicatorView/AITypingIndicatorView.tsx +3 -3
- package/src/components/AITypingIndicatorView/hooks/__tests__/useAIState.test.ts +46 -0
- package/src/components/AITypingIndicatorView/hooks/useAIState.ts +8 -49
- package/src/components/Accessibility/NotificationAnnouncer.tsx +15 -5
- package/src/components/Accessibility/hooks/useIncomingMessageAnnouncements.ts +22 -23
- package/src/components/Attachment/Attachment.tsx +10 -6
- package/src/components/Attachment/Audio/AudioAttachment.tsx +10 -10
- package/src/components/Attachment/FileAttachment.tsx +13 -5
- package/src/components/Attachment/FilePreview.tsx +8 -4
- package/src/components/Attachment/Gallery.tsx +17 -5
- package/src/components/Attachment/Giphy/Giphy.tsx +3 -1
- package/src/components/Attachment/UnsupportedAttachment.tsx +2 -2
- package/src/components/Attachment/__tests__/Attachment.test.tsx +84 -13
- package/src/components/Attachment/__tests__/openUrlSafely.test.ts +13 -0
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +3 -3
- package/src/components/Attachment/utils/openUrlSafely.ts +7 -1
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +5 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +57 -25
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/__tests__/AttachmentPickerItem.test.tsx +63 -0
- package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +24 -16
- package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +9 -9
- package/src/components/AttachmentPicker/components/__tests__/AttachmentCommandPicker.test.tsx +47 -0
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +17 -7
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +2 -4
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +3 -3
- package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.tsx +12 -3
- package/src/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.tsx +2 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionRoleItem.tsx +3 -1
- package/src/components/AutoCompleteInput/mentionItems/__tests__/MentionItems.test.tsx +5 -5
- package/src/components/Channel/Channel.tsx +60 -1783
- package/src/components/Channel/ChannelShell.tsx +542 -0
- package/src/components/Channel/__tests__/Channel.test.tsx +584 -221
- package/src/components/Channel/__tests__/isAttachmentEqualHandler.test.tsx +7 -2
- package/src/components/Channel/__tests__/ownCapabilities.test.tsx +12 -13
- package/src/components/Channel/__tests__/useCreateChannelContext.test.ts +56 -0
- package/src/components/Channel/hooks/useChannelLifecycle.ts +170 -0
- package/src/components/Channel/hooks/useCreateChannelContext.ts +2 -64
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +1 -9
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -20
- package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +19 -32
- package/src/components/Channel/hooks/useCreateThreadContext.ts +9 -49
- package/src/components/Channel/hooks/useSupersededChannelSwap.ts +25 -0
- package/src/components/ChannelDetails/__tests__/ChannelDetails.test.tsx +3 -2
- package/src/components/ChannelDetails/__tests__/ChannelDetailsActionsSection.test.tsx +15 -10
- package/src/components/ChannelDetails/__tests__/ChannelDetailsEditButton.test.tsx +3 -2
- package/src/components/ChannelDetails/__tests__/ChannelDetailsMemberSection.test.tsx +6 -7
- package/src/components/ChannelDetails/__tests__/ChannelDetailsNavHeader.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/ChannelDetailsNavigationSection.test.tsx +9 -1
- package/src/components/ChannelDetails/__tests__/ChannelDetailsProfile.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/ChannelEditDetailsForm.test.tsx +16 -7
- package/src/components/ChannelDetails/__tests__/ChannelEditDetailsFormContent.test.tsx +13 -10
- package/src/components/ChannelDetails/__tests__/ChannelEditImageSheet.test.tsx +11 -8
- package/src/components/ChannelDetails/__tests__/ChannelEditName.test.tsx +9 -8
- package/src/components/ChannelDetails/__tests__/members/AddMemberSearchResultItem.test.tsx +16 -6
- package/src/components/ChannelDetails/__tests__/members/ChannelAddMembersButton.test.tsx +3 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelAddMembersForm.test.tsx +8 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelAddMembersFormContent.test.tsx +2 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelMemberActionsSheet.test.tsx +2 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelMemberItem.test.tsx +16 -6
- package/src/components/ChannelDetails/__tests__/members/ChannelMemberList.test.tsx +2 -2
- package/src/components/ChannelDetails/__tests__/members/useMemberRoles.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/useChannelDetailsMemberStatusText.test.tsx +22 -3
- package/src/components/ChannelDetails/__tests__/useChannelDetailsMembersPreview.test.tsx +9 -3
- package/src/components/ChannelDetails/__tests__/useEditChannelImage.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/useFileAttachmentListSections.test.tsx +11 -7
- package/src/components/ChannelDetails/__tests__/useUserActivityStatus.test.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelDetailsEditButton.tsx +2 -2
- package/src/components/ChannelDetails/components/ChannelDetailsMemberSection.tsx +12 -4
- package/src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx +6 -2
- package/src/components/ChannelDetails/components/ChannelDetailsProfile.tsx +1 -1
- package/src/components/ChannelDetails/components/ChannelEditDetailsFormContent.tsx +2 -2
- package/src/components/ChannelDetails/components/ChannelEditDetailsFormHeader.tsx +5 -2
- package/src/components/ChannelDetails/components/ChannelEditImageSheet.tsx +5 -5
- package/src/components/ChannelDetails/components/ChannelEditName.tsx +2 -2
- package/src/components/ChannelDetails/components/__tests__/navigation-section/FileAttachmentList.test.tsx +8 -7
- package/src/components/ChannelDetails/components/__tests__/navigation-section/MediaItem.test.tsx +4 -2
- package/src/components/ChannelDetails/components/__tests__/navigation-section/MediaList.test.tsx +2 -2
- package/src/components/ChannelDetails/components/__tests__/navigation-section/PinnedMessageItem.test.tsx +1 -1
- package/src/components/ChannelDetails/components/__tests__/navigation-section/PinnedMessageList.test.tsx +2 -2
- package/src/components/ChannelDetails/components/members/AddMemberSearchResultItem.tsx +9 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersButton.tsx +3 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersFormContent.tsx +6 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.tsx +5 -2
- package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +2 -2
- package/src/components/ChannelDetails/components/members/ChannelMemberList.tsx +8 -3
- package/src/components/ChannelDetails/components/modal/ModalHeader.tsx +1 -1
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx +6 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +3 -1
- package/src/components/ChannelDetails/components/navigation-section/MediaList.tsx +6 -3
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx +13 -5
- package/src/components/ChannelDetails/hooks/members/useMemberRoles.ts +12 -3
- package/src/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.ts +4 -2
- package/src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts +9 -4
- package/src/components/ChannelDetails/hooks/useEditChannelImage.ts +19 -8
- package/src/components/ChannelDetails/hooks/useFileAttachmentListSections.ts +9 -5
- package/src/components/ChannelDetails/hooks/useUserActivityStatus.ts +8 -6
- package/src/components/ChannelList/ChannelList.tsx +35 -286
- package/src/components/ChannelList/ChannelListHeaderErrorIndicator.tsx +1 -1
- package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +1 -1
- package/src/components/ChannelList/ChannelListView.tsx +62 -64
- package/src/components/ChannelList/__tests__/ChannelList.test.tsx +383 -339
- package/src/components/ChannelList/__tests__/ChannelListView.test.tsx +92 -55
- package/src/components/ChannelList/hooks/__tests__/useChannelMembersState.test.tsx +66 -0
- package/src/components/ChannelList/hooks/__tests__/useMutedChannels.test.tsx +37 -0
- package/src/components/ChannelList/hooks/index.ts +0 -1
- package/src/components/ChannelList/hooks/useChannelMembersState.ts +58 -17
- package/src/components/ChannelList/hooks/useChannelOnlineMemberCount.ts +8 -10
- package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +24 -49
- package/src/components/ChannelList/hooks/useMutedChannels.ts +11 -14
- package/src/components/ChannelList/hooks/useMutedUsers.ts +6 -11
- package/src/components/ChannelList/hooks/usePaginatedChannels.ts +78 -173
- package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +18 -2
- package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +37 -17
- package/src/components/ChannelPreview/ChannelPreview.tsx +9 -17
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +10 -5
- package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +1 -1
- package/src/components/ChannelPreview/ChannelPreviewPinnedStatus.tsx +1 -1
- package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +12 -7
- package/src/components/ChannelPreview/ChannelPreviewTypingIndicator.tsx +30 -14
- package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +4 -1
- package/src/components/ChannelPreview/ChannelPreviewView.tsx +2 -3
- package/src/components/ChannelPreview/__tests__/ChannelDetailsBottomSheet.test.tsx +37 -2
- package/src/components/ChannelPreview/__tests__/ChannelLastMessagePreview.test.tsx +2 -1
- package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +70 -90
- package/src/components/ChannelPreview/__tests__/ChannelPreviewView.test.tsx +1 -1
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +57 -0
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDraftMessage.test.tsx +32 -0
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewMuted.test.tsx +25 -50
- package/src/components/ChannelPreview/hooks/__tests__/useChannelTypingState.test.tsx +57 -0
- package/src/components/ChannelPreview/hooks/__tests__/useIsChannelPinned.test.tsx +21 -12
- package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts +50 -169
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +7 -2
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +2 -2
- package/src/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.ts +16 -13
- package/src/components/ChannelPreview/hooks/useChannelPreviewPollLabel.ts +5 -3
- package/src/components/ChannelPreview/hooks/useChannelTypingState.ts +9 -38
- package/src/components/ChannelPreview/hooks/useIsChannelMuted.ts +11 -37
- package/src/components/ChannelPreview/hooks/useIsChannelPinned.ts +1 -1
- package/src/components/Chat/Chat.tsx +53 -105
- package/src/components/Chat/__tests__/Chat.test.tsx +269 -93
- package/src/components/Chat/hooks/__tests__/connectionStateHooks.test.tsx +314 -0
- package/src/components/Chat/hooks/__tests__/useAppSettingsGetter.test.tsx +104 -0
- package/src/components/Chat/hooks/__tests__/useCreateChatClient.netinfo.test.ts +47 -0
- package/src/components/Chat/hooks/__tests__/useCreateChatClient.userData.test.ts +51 -0
- package/src/components/Chat/hooks/index.ts +3 -3
- package/src/components/Chat/hooks/useAppSettingsGetter.ts +80 -0
- package/src/components/Chat/hooks/useClientUserId.ts +31 -0
- package/src/components/Chat/hooks/useConnectionLifecycle.ts +122 -0
- package/src/components/Chat/hooks/useCreateChatClient.ts +36 -9
- package/src/components/Chat/hooks/useCreateChatContext.ts +5 -33
- package/src/components/Chat/hooks/useInitializeOfflineDb.ts +11 -5
- package/src/components/Chat/hooks/useNetworkConnectionState.ts +39 -0
- package/src/components/Chat/hooks/usePendingUploadsDefault.ts +43 -0
- package/src/components/Chat/hooks/useWSConnectionState.ts +115 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +2 -2
- package/src/components/ImageGallery/components/ImageGalleryA11yProbe.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +3 -3
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +7 -5
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +1 -1
- package/src/components/Indicators/EmptyStateIndicator.tsx +8 -4
- package/src/components/Indicators/LoadingErrorIndicator.tsx +10 -4
- package/src/components/Indicators/LoadingIndicator.tsx +11 -3
- package/src/components/Message/Message.tsx +67 -222
- package/src/components/Message/MessageItemView/Headers/MessagePinnedHeader.tsx +4 -2
- package/src/components/Message/MessageItemView/Headers/MessageReminderHeader.tsx +4 -2
- package/src/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.tsx +1 -1
- package/src/components/Message/MessageItemView/Headers/SentToChannelHeader.tsx +34 -22
- package/src/components/Message/MessageItemView/MessageBounce.tsx +11 -10
- package/src/components/Message/MessageItemView/MessageContent.tsx +5 -10
- package/src/components/Message/MessageItemView/MessageDeleted.tsx +3 -1
- package/src/components/Message/MessageItemView/MessageFooter.tsx +30 -38
- package/src/components/Message/MessageItemView/MessageHeader.tsx +24 -41
- package/src/components/Message/MessageItemView/MessageItemView.tsx +20 -19
- package/src/components/Message/MessageItemView/MessageReplies.tsx +11 -25
- package/src/components/Message/MessageItemView/MessageStatus.tsx +26 -39
- package/src/components/Message/MessageItemView/MessageTimestamp.tsx +3 -3
- package/src/components/Message/MessageItemView/MessageWrapper.tsx +75 -39
- package/src/components/Message/MessageItemView/ReactionList/ReactionListClustered.tsx +3 -3
- package/src/components/Message/MessageItemView/ReactionList/ReactionListItem.tsx +1 -1
- package/src/components/Message/MessageItemView/__tests__/Message.test.tsx +135 -14
- package/src/components/Message/MessageItemView/__tests__/MessageAuthor.test.tsx +2 -2
- package/src/components/Message/MessageItemView/__tests__/MessageContent.test.tsx +76 -91
- package/src/components/Message/MessageItemView/__tests__/MessageFooter.test.tsx +71 -0
- package/src/components/Message/MessageItemView/__tests__/MessageHeader.test.tsx +78 -0
- package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.tsx +14 -14
- package/src/components/Message/MessageItemView/__tests__/MessageReplies.test.tsx +6 -23
- package/src/components/Message/MessageItemView/__tests__/MessageStatus.test.tsx +115 -56
- package/src/components/Message/MessageItemView/__tests__/MessageTextContainer.test.tsx +7 -4
- package/src/components/Message/MessageItemView/__tests__/ReactionListBottom.test.tsx +5 -9
- package/src/components/Message/MessageItemView/__tests__/ReactionListTop.test.tsx +5 -9
- package/src/components/Message/hooks/__tests__/receiptUserHooks.test.tsx +103 -0
- package/src/components/Message/hooks/__tests__/{useMessageActionHandlers.test.tsx → useCreateMessageActionHandlers.test.tsx} +44 -9
- package/src/components/Message/hooks/__tests__/useMessageOperations.test.tsx +70 -0
- package/src/components/Message/hooks/__tests__/useShouldUseOverlayStyles.test.tsx +0 -4
- package/src/components/Message/hooks/__tests__/useUserMuteActive.test.tsx +49 -0
- package/src/components/Message/hooks/useCreateMessageActionHandlers.ts +434 -0
- package/src/components/Message/hooks/useCreateMessageContext.ts +5 -15
- package/src/components/Message/hooks/useIsMessageDeliveredToOthers.ts +41 -0
- package/src/components/Message/hooks/useIsMessageReadByOthers.ts +41 -0
- package/src/components/Message/hooks/useMessageActionHandlers.ts +13 -393
- package/src/components/Message/hooks/useMessageActions.tsx +64 -130
- package/src/components/Message/hooks/useMessageData.ts +4 -6
- package/src/components/Message/hooks/useMessageDeliveryData.ts +19 -37
- package/src/components/Message/hooks/useMessageOperations.ts +153 -0
- package/src/components/Message/hooks/useMessageReadData.ts +19 -38
- package/src/components/Message/hooks/useProcessReactions.ts +3 -3
- package/src/components/Message/hooks/useUserMuteActive.ts +30 -7
- package/src/components/Message/utils/messageActions.ts +2 -2
- package/src/components/MessageInput/MessageComposer.tsx +37 -20
- package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +3 -1
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +13 -16
- package/src/components/MessageInput/__tests__/AttachmentUploadPreviewList.test.tsx +9 -0
- package/src/components/MessageInput/__tests__/InputButtons.test.tsx +18 -0
- package/src/components/MessageInput/__tests__/MessageComposer.test.tsx +39 -1
- package/src/components/MessageInput/__tests__/SendMessageDisallowedIndicator.test.tsx +37 -6
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +1 -1
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.tsx +5 -3
- package/src/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.tsx +11 -6
- package/src/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.tsx +6 -6
- package/src/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.tsx +3 -3
- package/src/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.tsx +8 -4
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +5 -5
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +12 -4
- package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +3 -1
- package/src/components/MessageInput/components/InputButtons/index.tsx +8 -0
- package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +1 -1
- package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +1 -1
- package/src/components/MessageInput/components/OutputButtons/index.tsx +9 -6
- package/src/components/MessageInput/hooks/useAudioRecorder.tsx +6 -4
- package/src/components/MessageList/InlineDateSeparator.tsx +4 -4
- package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +5 -6
- package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +5 -6
- package/src/components/MessageList/InlineUnreadIndicator.tsx +7 -1
- package/src/components/MessageList/MessageFlashList.tsx +161 -565
- package/src/components/MessageList/MessageList.tsx +155 -652
- package/src/components/MessageList/MessageSystem.tsx +4 -4
- package/src/components/MessageList/NetworkDownIndicator.tsx +11 -15
- package/src/components/MessageList/ScrollToBottomButton.tsx +13 -6
- package/src/components/MessageList/StickyHeader.tsx +4 -4
- package/src/components/MessageList/TypingIndicatorContainer.tsx +18 -9
- package/src/components/MessageList/UnreadMessagesNotification.tsx +50 -31
- package/src/components/MessageList/__tests__/InlineUnreadIndicator.test.tsx +26 -0
- package/src/components/MessageList/__tests__/MessageFlashList.test.tsx +130 -0
- package/src/components/MessageList/__tests__/MessageList.test.tsx +702 -161
- package/src/components/MessageList/__tests__/MessageSystem.test.tsx +2 -2
- package/src/components/MessageList/__tests__/ScrollToBottomButton.test.tsx +63 -11
- package/src/components/MessageList/__tests__/TypingIndicator.test.tsx +39 -24
- package/src/components/MessageList/__tests__/buildMessageListWithNeighbours.test.ts +33 -0
- package/src/components/MessageList/__tests__/dateSeparatorSystemMessages.test.tsx +23 -18
- package/src/components/MessageList/__tests__/useMessageDateSeparator.test.ts +9 -8
- package/src/components/MessageList/__tests__/useMessageList.test.tsx +19 -52
- package/src/components/MessageList/hooks/__tests__/useMarkRead.test.tsx +108 -0
- package/src/components/MessageList/hooks/__tests__/useMessageListLiveState.test.tsx +160 -0
- package/src/components/MessageList/hooks/__tests__/useMessageListPagination.test.tsx +184 -0
- package/src/components/MessageList/hooks/__tests__/useStickyHeaderDate.test.ts +31 -0
- package/src/components/MessageList/hooks/useMarkRead.ts +82 -0
- package/src/components/MessageList/hooks/useMessageDateSeparator.ts +12 -3
- package/src/components/MessageList/hooks/useMessageList.ts +26 -25
- package/src/components/MessageList/hooks/useMessageListFocus.ts +40 -0
- package/src/components/MessageList/hooks/useMessageListLiveState.ts +101 -0
- package/src/components/MessageList/hooks/useMessageListPagination.ts +71 -0
- package/src/components/MessageList/hooks/useOwnUnreadCount.ts +22 -0
- package/src/components/MessageList/hooks/useScrollToBottomAccessibilityAction.ts +2 -3
- package/src/components/MessageList/hooks/useStickyHeaderDate.ts +41 -0
- package/src/components/MessageList/hooks/useTypingString.ts +11 -5
- package/src/components/MessageList/hooks/useTypingUsers.ts +26 -4
- package/src/components/MessageList/hooks/useUnreadNotificationVisibility.ts +86 -0
- package/src/components/MessageList/utils/buildMessageListWithNeighbours.ts +9 -2
- package/src/components/MessageList/utils/filterTypingUsers.ts +12 -12
- package/src/components/MessageList/utils/getGroupStyles.ts +3 -2
- package/src/components/MessageMenu/MessageActionList.tsx +1 -1
- package/src/components/MessageMenu/MessageActionListWithActions.tsx +69 -0
- package/src/components/MessageMenu/MessageReactionPicker.tsx +1 -1
- package/src/components/MessageMenu/MessageUserReactions.tsx +12 -10
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +2 -2
- package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +2 -1
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +33 -3
- package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +2 -1
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +6 -1
- package/src/components/MessageMenu/hooks/__tests__/useFetchReactions.test.ts +107 -1
- package/src/components/MessageMenu/hooks/useFetchReactions.ts +33 -25
- package/src/components/Notifications/Notification.tsx +1 -1
- package/src/components/Notifications/NotificationList.tsx +1 -1
- package/src/components/Notifications/__tests__/notificationTranslations.test.ts +59 -0
- package/src/components/Notifications/hooks/__tests__/useNotificationApi.test.tsx +1 -1
- package/src/components/Notifications/hooks/__tests__/useNotificationTarget.test.tsx +1 -13
- package/src/components/Notifications/hooks/useNotificationTarget.ts +1 -2
- package/src/components/Notifications/notificationTranslations.ts +117 -47
- package/src/components/Poll/CreatePollContent.tsx +15 -8
- package/src/components/Poll/Poll.tsx +9 -5
- package/src/components/Poll/__tests__/Poll.test.tsx +3 -1
- package/src/components/Poll/components/Button.tsx +2 -2
- package/src/components/Poll/components/CreatePollHeader.tsx +3 -3
- package/src/components/Poll/components/CreatePollOptions.tsx +24 -5
- package/src/components/Poll/components/MultipleAnswersField.tsx +4 -2
- package/src/components/Poll/components/MultipleVotesSettings.tsx +6 -4
- package/src/components/Poll/components/NameField.tsx +2 -2
- package/src/components/Poll/components/PollAnswersList.tsx +17 -13
- package/src/components/Poll/components/PollButtons.tsx +36 -13
- package/src/components/Poll/components/PollInputDialog.tsx +2 -2
- package/src/components/Poll/components/PollModalHeader.tsx +1 -1
- package/src/components/Poll/components/PollOption.tsx +14 -4
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +7 -3
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +23 -8
- package/src/components/Poll/components/PollResults/PollResults.tsx +1 -1
- package/src/components/Poll/components/PollResults/PollVote.tsx +8 -9
- package/src/components/Poll/components/__tests__/PollOption.test.tsx +3 -1
- package/src/components/Poll/contexts/PollUIStateContext.tsx +1 -1
- package/src/components/Poll/hooks/__tests__/usePollPagination.test.tsx +71 -0
- package/src/components/Poll/hooks/useEndVote.ts +2 -2
- package/src/components/Poll/hooks/usePollAnswersPagination.ts +8 -8
- package/src/components/Poll/hooks/usePollOptionVotesPagination.ts +20 -14
- package/src/components/Poll/hooks/usePollState.ts +13 -15
- package/src/components/Reply/Reply.tsx +25 -15
- package/src/components/Reply/__tests__/Reply.test.tsx +5 -4
- package/src/components/Thread/Thread.tsx +134 -153
- package/src/components/Thread/__tests__/Thread.test.tsx +444 -53
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +72 -52
- package/src/components/Thread/components/ThreadFooterComponent.tsx +35 -70
- package/src/components/ThreadList/ThreadList.tsx +15 -21
- package/src/components/ThreadList/ThreadListItem.tsx +21 -14
- package/src/components/ThreadList/ThreadListItemMessagePreview.tsx +1 -1
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +36 -22
- package/src/components/ThreadList/ThreadMessagePreviewDeliveryStatus.tsx +24 -8
- package/src/components/ThreadList/__tests__/ThreadList.test.tsx +182 -0
- package/src/components/UIComponents/BottomSheetModal.tsx +2 -4
- package/src/components/UIComponents/SearchInput.tsx +2 -2
- package/src/components/UIComponents/__tests__/SearchInput.test.tsx +1 -1
- package/src/components/index.ts +6 -8
- package/src/components/ui/Avatar/Avatar.tsx +1 -1
- package/src/components/ui/Avatar/ChannelAvatar.tsx +13 -5
- package/src/components/ui/Avatar/__tests__/ChannelAvatar.test.tsx +60 -24
- package/src/components/ui/Button/__tests__/Button.test.tsx +1 -1
- package/src/contexts/__tests__/index.test.tsx +16 -19
- package/src/contexts/channelAddMembersContext/ChannelAddMembersContext.tsx +1 -1
- package/src/contexts/channelContext/ChannelContext.tsx +1 -119
- package/src/contexts/channelContext/__tests__/publicSurface.test.ts +75 -0
- package/src/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.tsx +1 -1
- package/src/contexts/channelMediaListContext/ChannelMediaListContext.tsx +1 -1
- package/src/contexts/channelMemberListContext/ChannelMemberListContext.tsx +1 -1
- package/src/contexts/channelsContext/ChannelsContext.tsx +5 -40
- package/src/contexts/chatContext/ChatContext.tsx +9 -34
- package/src/contexts/componentsContext/defaultComponents.ts +0 -2
- package/src/contexts/index.ts +1 -3
- package/src/contexts/liveLocationManagerContext/LiveLocationManagerContext.tsx +4 -1
- package/src/contexts/liveLocationManagerContext/__tests__/LiveLocationManagerContext.test.tsx +66 -0
- package/src/contexts/liveLocationManagerContext/hooks/__tests__/useHandleLiveLocationEvents.test.tsx +74 -0
- package/src/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.ts +8 -8
- package/src/contexts/messageComposerContext/MessageComposerContext.tsx +56 -14
- package/src/contexts/messageComposerContext/__tests__/MessageComposerContext.test.tsx +77 -0
- package/src/contexts/messageContext/MessageContext.tsx +13 -17
- package/src/contexts/messageInputContext/MessageInputContext.tsx +57 -185
- package/src/contexts/messageInputContext/__tests__/filePickers.test.tsx +1 -9
- package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +118 -259
- package/src/contexts/messageInputContext/__tests__/useMessageComposerHasSendableData.test.tsx +44 -0
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -10
- package/src/contexts/messageInputContext/hooks/useMessageComposer.ts +5 -7
- package/src/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.ts +5 -5
- package/src/contexts/messageInputContext/hooks/usePendingUploadsEnabled.ts +20 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +10 -40
- package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +1 -1
- package/src/contexts/pollContext/createPollContentContext.tsx +1 -1
- package/src/contexts/threadContext/ThreadContext.tsx +20 -44
- package/src/contexts/threadsContext/ThreadsContext.tsx +2 -3
- package/src/contexts/translationContext/TranslationContext.tsx +14 -9
- package/src/contexts/translationContext/index.ts +0 -1
- package/src/contexts/translationContext/types.ts +20 -11
- package/src/hooks/__tests__/useChannelMuteActive.test.tsx +40 -17
- package/src/hooks/__tests__/useIsChannelMember.test.tsx +4 -2
- package/src/hooks/__tests__/useIsDirectChat.test.tsx +55 -0
- package/src/hooks/__tests__/usePendingAttachmentUpload.test.tsx +1 -1
- package/src/hooks/__tests__/usePrunableMessageList.test.tsx +175 -0
- package/src/hooks/__tests__/useStreami18n.test.ts +71 -0
- package/src/hooks/actions/__tests__/useChannelActionItems.test.tsx +35 -21
- package/src/hooks/actions/__tests__/useChannelActions.test.tsx +32 -7
- package/src/hooks/actions/__tests__/useChannelMemberActionItems.test.tsx +27 -20
- package/src/hooks/actions/__tests__/useUserActions.test.tsx +15 -15
- package/src/hooks/actions/useChannelActionItems.tsx +54 -29
- package/src/hooks/actions/useChannelActions.ts +46 -36
- package/src/hooks/actions/useChannelMemberActionItems.tsx +21 -11
- package/src/hooks/actions/useUserActions.ts +15 -11
- package/src/hooks/index.ts +3 -1
- package/src/hooks/messagePreview/__tests__/useMessageDeliveryStatus.test.tsx +119 -0
- package/src/hooks/messagePreview/__tests__/useMessagePreviewText.test.tsx +4 -6
- package/src/hooks/messagePreview/useGroupedAttachments.ts +4 -1
- package/src/hooks/messagePreview/useMessageDeliveryStatus.ts +49 -68
- package/src/hooks/messagePreview/useMessagePreviewText.tsx +45 -20
- package/src/hooks/useAudioPlayer.ts +9 -3
- package/src/hooks/useChannel.ts +19 -0
- package/src/hooks/useChannelImage.ts +9 -5
- package/src/hooks/useChannelMemberCount.ts +10 -5
- package/src/hooks/useChannelMembershipState.ts +10 -5
- package/src/hooks/useChannelMuteActive.ts +2 -6
- package/src/hooks/useChannelName.ts +9 -5
- package/src/hooks/useChannelOwnCapabilities.ts +11 -8
- package/src/hooks/useIsDirectChat.ts +4 -2
- package/src/hooks/useIsTargetedMessage.ts +29 -0
- package/src/hooks/useLoadingImage.tsx +4 -4
- package/src/hooks/useMessagePaginator.ts +13 -0
- package/src/hooks/usePrunableMessageList.ts +37 -31
- package/src/hooks/useQueryReminders.ts +19 -17
- package/src/hooks/useStateStore.ts +1 -1
- package/src/hooks/useStreami18n.ts +25 -46
- package/src/hooks/useSyncClientEvents.ts +7 -7
- package/src/hooks/useTranslatedMessage.ts +23 -5
- package/src/i18n/__tests__/callSites.test.ts +346 -0
- package/src/i18n/__tests__/catalog.fixture.json +418 -0
- package/src/i18n/__tests__/catalogRenders.test.ts +88 -0
- package/src/i18n/__tests__/dateNormalization.test.ts +91 -0
- package/src/i18n/__tests__/pluralCategories.test.ts +114 -0
- package/src/i18n/__tests__/publicExports.test.ts +79 -0
- package/src/i18n/index.ts +4 -0
- package/src/i18n/keys.ts +525 -0
- package/src/i18n/runtimeDefaults.ts +148 -0
- package/src/i18n/types.ts +54 -0
- package/src/i18n/utils.ts +69 -0
- package/src/index.ts +2 -14
- package/src/middlewares/__tests__/attachments.test.ts +69 -49
- package/src/middlewares/attachments.ts +7 -110
- package/src/mock-builders/DB/mock.ts +13 -4
- package/src/mock-builders/api/channelMocks.tsx +36 -33
- package/src/mock-builders/api/getOrCreateChannel.ts +2 -2
- package/src/mock-builders/api/initiateClientWithChannels.ts +13 -2
- package/src/mock-builders/api/queryMembers.ts +16 -14
- package/src/mock-builders/api/useMockedApis.ts +63 -5
- package/src/mock-builders/attachments.ts +5 -0
- package/src/mock-builders/event/connectionChanged.ts +29 -9
- package/src/mock-builders/event/connectionRecovered.ts +5 -0
- package/src/mock-builders/event/messageDeleted.ts +0 -1
- package/src/mock-builders/event/messageRead.ts +3 -1
- package/src/mock-builders/event/messageUpdated.ts +0 -1
- package/src/mock-builders/event/notificationChannelMutesUpdated.ts +1 -3
- package/src/mock-builders/event/notificationMarkUnread.ts +3 -1
- package/src/mock-builders/event/notificationMutesUpdated.ts +5 -3
- package/src/mock-builders/event/typing.ts +0 -2
- package/src/mock-builders/event/userPresence.ts +5 -3
- package/src/mock-builders/event/userUpdated.ts +5 -3
- package/src/mock-builders/event/utils.ts +31 -0
- package/src/mock-builders/generator/attachment.ts +14 -4
- package/src/mock-builders/generator/channel.ts +14 -10
- package/src/mock-builders/generator/channelState.ts +56 -0
- package/src/mock-builders/generator/message.ts +22 -15
- package/src/mock-builders/generator/reaction.ts +2 -1
- package/src/mock-builders/generator/time.ts +19 -0
- package/src/mock-builders/generator/user.ts +4 -2
- package/src/mock-builders/mock.ts +19 -9
- package/src/state-store/__tests__/edit-channel-details-store.test.ts +8 -3
- package/src/state-store/__tests__/image-gallery-state-store.test.ts +52 -2
- package/src/state-store/attachment-picker-store.ts +1 -1
- package/src/state-store/audio-player-pool.ts +1 -1
- package/src/state-store/audio-player.ts +1 -1
- package/src/state-store/audio-recorder-manager.ts +1 -1
- package/src/state-store/edit-channel-details-store.ts +4 -3
- package/src/state-store/image-gallery-state-store.ts +4 -3
- package/src/state-store/in-app-notifications-store.ts +2 -1
- package/src/state-store/message-input-height-store.ts +1 -1
- package/src/state-store/message-overlay-store.ts +1 -1
- package/src/state-store/selection-store.ts +1 -1
- package/src/state-store/signal-store.ts +1 -1
- package/src/state-store/video-player-pool.ts +1 -1
- package/src/state-store/video-player.ts +1 -1
- package/src/store/OfflineDB.ts +13 -15
- package/src/store/SqliteClient.ts +3 -3
- package/src/store/__tests__/channelExists.test.ts +44 -0
- package/src/store/__tests__/insertReaction.test.ts +107 -0
- package/src/store/__tests__/mapperRequiredTimestamps.test.ts +64 -0
- package/src/store/__tests__/timestampStorage.test.ts +146 -0
- package/src/store/apis/__tests__/channelQueryCids.test.ts +69 -9
- package/src/store/apis/__tests__/updatePendingTask.test.ts +3 -1
- package/src/store/apis/channelExists.ts +12 -4
- package/src/store/apis/deleteMessagesForChannel.ts +7 -2
- package/src/store/apis/deleteReaction.ts +2 -2
- package/src/store/apis/getAppSettings.ts +6 -6
- package/src/store/apis/getChannelActiveLocations.ts +3 -3
- package/src/store/apis/getChannelMessages.ts +4 -4
- package/src/store/apis/getChannels.ts +10 -9
- package/src/store/apis/getChannelsForFilterSort.ts +27 -16
- package/src/store/apis/getDraft.ts +1 -1
- package/src/store/apis/getDraftsForChannels.ts +3 -3
- package/src/store/apis/getLastSyncedAt.ts +4 -4
- package/src/store/apis/getReactionsforFilterSort.ts +2 -2
- package/src/store/apis/getReads.ts +2 -2
- package/src/store/apis/index.ts +0 -1
- package/src/store/apis/insertReaction.ts +12 -2
- package/src/store/apis/queries/selectActiveLocationsForChannels.ts +5 -2
- package/src/store/apis/queries/selectChannelQueryForFilterSort.ts +90 -0
- package/src/store/apis/queries/selectDraftMessageFromDraftForChannels.ts +1 -1
- package/src/store/apis/queries/selectMembersForChannels.ts +1 -1
- package/src/store/apis/queries/selectReactionsForMessages.ts +6 -8
- package/src/store/apis/softDeleteMessage.ts +2 -2
- package/src/store/apis/updateReaction.ts +8 -1
- package/src/store/apis/upsertAppSettings.ts +6 -6
- package/src/store/apis/upsertChannels.ts +11 -7
- package/src/store/apis/upsertCidsForQuery.ts +12 -2
- package/src/store/apis/upsertDraft.ts +2 -2
- package/src/store/apis/upsertLocation.ts +2 -2
- package/src/store/apis/upsertPoll.ts +2 -2
- package/src/store/apis/upsertReads.ts +2 -2
- package/src/store/apis/upsertUserSyncStatus.ts +4 -4
- package/src/store/apis/utils/__tests__/convertFilterSortToQuery.test.ts +1 -1
- package/src/store/apis/utils/convertFilterSortToQuery.ts +2 -2
- package/src/store/mappers/mapChannelDataToStorable.ts +7 -10
- package/src/store/mappers/mapChannelToStorable.ts +7 -10
- package/src/store/mappers/mapDraftMessageToStorable.ts +2 -2
- package/src/store/mappers/mapDraftToStorable.ts +2 -2
- package/src/store/mappers/mapMemberToStorable.ts +7 -7
- package/src/store/mappers/mapMessageToStorable.ts +7 -7
- package/src/store/mappers/mapPollToStorable.ts +6 -6
- package/src/store/mappers/mapReactionToStorable.ts +3 -3
- package/src/store/mappers/mapReadToStorable.ts +6 -5
- package/src/store/mappers/mapReminderToStorable.ts +6 -6
- package/src/store/mappers/mapSharedLocationToStorable.ts +6 -6
- package/src/store/mappers/mapStorableToChannel.ts +12 -7
- package/src/store/mappers/mapStorableToDraft.ts +5 -4
- package/src/store/mappers/mapStorableToMember.ts +12 -9
- package/src/store/mappers/mapStorableToMessage.ts +8 -7
- package/src/store/mappers/mapStorableToPoll.ts +14 -8
- package/src/store/mappers/mapStorableToReaction.ts +3 -2
- package/src/store/mappers/mapStorableToRead.ts +6 -5
- package/src/store/mappers/mapStorableToReminder.ts +7 -5
- package/src/store/mappers/mapStorableToSharedLocation.ts +9 -5
- package/src/store/mappers/mapStorableToTimestamp.ts +24 -0
- package/src/store/mappers/mapStorableToUser.ts +6 -4
- package/src/store/mappers/mapTimestampToStorable.ts +14 -0
- package/src/store/mappers/mapUserToStorable.ts +5 -3
- package/src/store/schema.ts +70 -64
- package/src/store/sqlite-utils/createUpsertQuery.ts +35 -9
- package/src/store/sqlite-utils/createUpsertQueryIfParentExists.ts +58 -0
- package/src/store/types.ts +4 -4
- package/src/types/react-native-compat.ts +2 -2
- package/src/types/types.ts +13 -10
- package/src/utils/__tests__/Streami18n.test.ts +248 -255
- package/src/utils/__tests__/installNativeMultipartAdapter.test.ts +125 -22
- package/src/utils/attachmentUrls.ts +19 -0
- package/src/utils/getUrlOfImageAttachment.ts +9 -2
- package/src/utils/i18n/Streami18n.ts +115 -725
- package/src/utils/installNativeMultipartAdapter.ts +46 -39
- package/src/utils/removeReservedFields.ts +2 -4
- package/src/utils/utils.ts +32 -98
- package/src/version.json +1 -1
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js +0 -187
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js +0 -36
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js +0 -16
- package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +0 -292
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js +0 -50
- package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js +0 -43
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/utils/index.js +0 -115
- package/lib/commonjs/components/ChannelList/hooks/utils/index.js.map +0 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +0 -69
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +0 -1
- package/lib/commonjs/components/Chat/hooks/useClientMutedUsers.js +0 -26
- package/lib/commonjs/components/Chat/hooks/useClientMutedUsers.js.map +0 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +0 -100
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +0 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js +0 -55
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js.map +0 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +0 -19
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +0 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +0 -22
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +0 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +0 -67
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +0 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +0 -47
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +0 -1
- package/lib/commonjs/contexts/debugContext/DebugContext.js +0 -42
- package/lib/commonjs/contexts/debugContext/DebugContext.js.map +0 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageComposer.js +0 -68
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageComposer.js.map +0 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js +0 -14
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js.map +0 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +0 -28
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +0 -1
- package/lib/commonjs/contexts/translationContext/isDayOrMoment.js +0 -7
- package/lib/commonjs/contexts/translationContext/isDayOrMoment.js.map +0 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +0 -28
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +0 -1
- package/lib/commonjs/hooks/useSelectedChannelState.js +0 -30
- package/lib/commonjs/hooks/useSelectedChannelState.js.map +0 -1
- package/lib/commonjs/i18n/ar.json +0 -471
- package/lib/commonjs/i18n/en.json +0 -471
- package/lib/commonjs/i18n/es.json +0 -471
- package/lib/commonjs/i18n/fr.json +0 -471
- package/lib/commonjs/i18n/he.json +0 -471
- package/lib/commonjs/i18n/hi.json +0 -471
- package/lib/commonjs/i18n/it.json +0 -471
- package/lib/commonjs/i18n/ja.json +0 -471
- package/lib/commonjs/i18n/ko.json +0 -471
- package/lib/commonjs/i18n/nl.json +0 -471
- package/lib/commonjs/i18n/pt-br.json +0 -471
- package/lib/commonjs/i18n/ru.json +0 -471
- package/lib/commonjs/i18n/tr.json +0 -471
- package/lib/commonjs/state-store/channel-unread-state.js +0 -25
- package/lib/commonjs/state-store/channel-unread-state.js.map +0 -1
- package/lib/commonjs/state-store/message-list-prev-next-state.js +0 -40
- package/lib/commonjs/state-store/message-list-prev-next-state.js.map +0 -1
- package/lib/commonjs/store/apis/deleteReactions.js +0 -30
- package/lib/commonjs/store/apis/deleteReactions.js.map +0 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +0 -35
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +0 -1
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +0 -29
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +0 -1
- package/lib/commonjs/store/mappers/mapDateTimeToStorable.js +0 -12
- package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +0 -1
- package/lib/commonjs/store/sqlite-utils/printRow.js +0 -18
- package/lib/commonjs/store/sqlite-utils/printRow.js.map +0 -1
- package/lib/commonjs/utils/addReactionToLocalState.js +0 -51
- package/lib/commonjs/utils/addReactionToLocalState.js.map +0 -1
- package/lib/commonjs/utils/date.js +0 -8
- package/lib/commonjs/utils/date.js.map +0 -1
- package/lib/commonjs/utils/i18n/calendarFormats.js +0 -111
- package/lib/commonjs/utils/i18n/calendarFormats.js.map +0 -1
- package/lib/commonjs/utils/i18n/getDateString.js +0 -75
- package/lib/commonjs/utils/i18n/getDateString.js.map +0 -1
- package/lib/commonjs/utils/i18n/predefinedFormatters.js +0 -83
- package/lib/commonjs/utils/i18n/predefinedFormatters.js.map +0 -1
- package/lib/commonjs/utils/i18n/types.js.map +0 -1
- package/lib/commonjs/utils/patchMessageTextCommand.js +0 -20
- package/lib/commonjs/utils/patchMessageTextCommand.js.map +0 -1
- package/lib/commonjs/utils/removeReactionFromLocalState.js +0 -33
- package/lib/commonjs/utils/removeReactionFromLocalState.js.map +0 -1
- package/lib/module/components/Channel/hooks/useChannelDataState.js +0 -187
- package/lib/module/components/Channel/hooks/useChannelDataState.js.map +0 -1
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js +0 -36
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +0 -1
- package/lib/module/components/Channel/hooks/useCreateTypingContext.js +0 -16
- package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +0 -1
- package/lib/module/components/Channel/hooks/useMessageListPagination.js +0 -292
- package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +0 -1
- package/lib/module/components/Channel/hooks/useTargetedMessage.js +0 -50
- package/lib/module/components/Channel/hooks/useTargetedMessage.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js +0 -43
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/utils/index.js +0 -115
- package/lib/module/components/ChannelList/hooks/utils/index.js.map +0 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +0 -69
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +0 -1
- package/lib/module/components/Chat/hooks/useClientMutedUsers.js +0 -26
- package/lib/module/components/Chat/hooks/useClientMutedUsers.js.map +0 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +0 -100
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +0 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js +0 -55
- package/lib/module/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js.map +0 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +0 -19
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +0 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +0 -22
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +0 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +0 -67
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +0 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js +0 -47
- package/lib/module/contexts/channelsStateContext/useChannelState.js.map +0 -1
- package/lib/module/contexts/debugContext/DebugContext.js +0 -42
- package/lib/module/contexts/debugContext/DebugContext.js.map +0 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageComposer.js +0 -68
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageComposer.js.map +0 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js +0 -14
- package/lib/module/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js.map +0 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +0 -28
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +0 -1
- package/lib/module/contexts/translationContext/isDayOrMoment.js +0 -7
- package/lib/module/contexts/translationContext/isDayOrMoment.js.map +0 -1
- package/lib/module/contexts/typingContext/TypingContext.js +0 -28
- package/lib/module/contexts/typingContext/TypingContext.js.map +0 -1
- package/lib/module/hooks/useSelectedChannelState.js +0 -30
- package/lib/module/hooks/useSelectedChannelState.js.map +0 -1
- package/lib/module/i18n/ar.json +0 -471
- package/lib/module/i18n/en.json +0 -471
- package/lib/module/i18n/es.json +0 -471
- package/lib/module/i18n/fr.json +0 -471
- package/lib/module/i18n/he.json +0 -471
- package/lib/module/i18n/hi.json +0 -471
- package/lib/module/i18n/it.json +0 -471
- package/lib/module/i18n/ja.json +0 -471
- package/lib/module/i18n/ko.json +0 -471
- package/lib/module/i18n/nl.json +0 -471
- package/lib/module/i18n/pt-br.json +0 -471
- package/lib/module/i18n/ru.json +0 -471
- package/lib/module/i18n/tr.json +0 -471
- package/lib/module/state-store/channel-unread-state.js +0 -25
- package/lib/module/state-store/channel-unread-state.js.map +0 -1
- package/lib/module/state-store/message-list-prev-next-state.js +0 -40
- package/lib/module/state-store/message-list-prev-next-state.js.map +0 -1
- package/lib/module/store/apis/deleteReactions.js +0 -30
- package/lib/module/store/apis/deleteReactions.js.map +0 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +0 -35
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +0 -1
- package/lib/module/store/apis/upsertChannelDataFromChannel.js +0 -29
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +0 -1
- package/lib/module/store/mappers/mapDateTimeToStorable.js +0 -12
- package/lib/module/store/mappers/mapDateTimeToStorable.js.map +0 -1
- package/lib/module/store/sqlite-utils/printRow.js +0 -18
- package/lib/module/store/sqlite-utils/printRow.js.map +0 -1
- package/lib/module/utils/addReactionToLocalState.js +0 -51
- package/lib/module/utils/addReactionToLocalState.js.map +0 -1
- package/lib/module/utils/date.js +0 -8
- package/lib/module/utils/date.js.map +0 -1
- package/lib/module/utils/i18n/calendarFormats.js +0 -111
- package/lib/module/utils/i18n/calendarFormats.js.map +0 -1
- package/lib/module/utils/i18n/getDateString.js +0 -75
- package/lib/module/utils/i18n/getDateString.js.map +0 -1
- package/lib/module/utils/i18n/predefinedFormatters.js +0 -83
- package/lib/module/utils/i18n/predefinedFormatters.js.map +0 -1
- package/lib/module/utils/i18n/types.js.map +0 -1
- package/lib/module/utils/patchMessageTextCommand.js +0 -20
- package/lib/module/utils/patchMessageTextCommand.js.map +0 -1
- package/lib/module/utils/removeReactionFromLocalState.js +0 -33
- package/lib/module/utils/removeReactionFromLocalState.js.map +0 -1
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +0 -74
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +0 -5
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +0 -3
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +0 -29
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts +0 -7
- package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +0 -9
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/utils/index.d.ts +0 -21
- package/lib/typescript/components/ChannelList/hooks/utils/index.d.ts.map +0 -1
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts +0 -3
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +0 -1
- package/lib/typescript/components/Chat/hooks/useClientMutedUsers.d.ts +0 -3
- package/lib/typescript/components/Chat/hooks/useClientMutedUsers.d.ts.map +0 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +0 -12
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentThreadIndicator.d.ts +0 -7
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentThreadIndicator.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +0 -3
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +0 -1
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +0 -8
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +0 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +0 -24
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +0 -1
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +0 -14
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +0 -1
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts +0 -26
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +0 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageComposer.d.ts +0 -4
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageComposer.d.ts.map +0 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.d.ts +0 -2
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.d.ts.map +0 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +0 -52
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +0 -1
- package/lib/typescript/contexts/translationContext/isDayOrMoment.d.ts +0 -5
- package/lib/typescript/contexts/translationContext/isDayOrMoment.d.ts.map +0 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +0 -11
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +0 -1
- package/lib/typescript/hooks/useSelectedChannelState.d.ts +0 -12
- package/lib/typescript/hooks/useSelectedChannelState.d.ts.map +0 -1
- package/lib/typescript/i18n/ar.json +0 -471
- package/lib/typescript/i18n/en.json +0 -471
- package/lib/typescript/i18n/es.json +0 -471
- package/lib/typescript/i18n/fr.json +0 -471
- package/lib/typescript/i18n/he.json +0 -471
- package/lib/typescript/i18n/hi.json +0 -471
- package/lib/typescript/i18n/it.json +0 -471
- package/lib/typescript/i18n/ja.json +0 -471
- package/lib/typescript/i18n/ko.json +0 -471
- package/lib/typescript/i18n/nl.json +0 -471
- package/lib/typescript/i18n/pt-br.json +0 -471
- package/lib/typescript/i18n/ru.json +0 -471
- package/lib/typescript/i18n/tr.json +0 -471
- package/lib/typescript/state-store/channel-unread-state.d.ts +0 -12
- package/lib/typescript/state-store/channel-unread-state.d.ts.map +0 -1
- package/lib/typescript/state-store/message-list-prev-next-state.d.ts +0 -16
- package/lib/typescript/state-store/message-list-prev-next-state.d.ts.map +0 -1
- package/lib/typescript/store/apis/deleteReactions.d.ts +0 -5
- package/lib/typescript/store/apis/deleteReactions.d.ts.map +0 -1
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts +0 -16
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts.map +0 -1
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts +0 -6
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts.map +0 -1
- package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts +0 -2
- package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts.map +0 -1
- package/lib/typescript/store/sqlite-utils/printRow.d.ts +0 -3
- package/lib/typescript/store/sqlite-utils/printRow.d.ts.map +0 -1
- package/lib/typescript/utils/addReactionToLocalState.d.ts +0 -9
- package/lib/typescript/utils/addReactionToLocalState.d.ts.map +0 -1
- package/lib/typescript/utils/date.d.ts +0 -3
- package/lib/typescript/utils/date.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/calendarFormats.d.ts +0 -6
- package/lib/typescript/utils/i18n/calendarFormats.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/getDateString.d.ts +0 -44
- package/lib/typescript/utils/i18n/getDateString.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/predefinedFormatters.d.ts +0 -3
- package/lib/typescript/utils/i18n/predefinedFormatters.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/types.d.ts +0 -69
- package/lib/typescript/utils/i18n/types.d.ts.map +0 -1
- package/lib/typescript/utils/patchMessageTextCommand.d.ts +0 -10
- package/lib/typescript/utils/patchMessageTextCommand.d.ts.map +0 -1
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts +0 -8
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts.map +0 -1
- package/src/components/Channel/__tests__/useMessageListPagination.test.tsx +0 -692
- package/src/components/Channel/hooks/useChannelDataState.ts +0 -220
- package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +0 -42
- package/src/components/Channel/hooks/useCreateTypingContext.ts +0 -17
- package/src/components/Channel/hooks/useMessageListPagination.tsx +0 -330
- package/src/components/Channel/hooks/useTargetedMessage.ts +0 -44
- package/src/components/ChannelList/hooks/listeners/__tests__/useChannelUpdated.test.tsx +0 -87
- package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +0 -49
- package/src/components/ChannelList/hooks/utils/index.ts +0 -125
- package/src/components/Chat/hooks/__tests__/useAppSettings.test.tsx +0 -37
- package/src/components/Chat/hooks/useAppSettings.ts +0 -65
- package/src/components/Chat/hooks/useClientMutedUsers.ts +0 -19
- package/src/components/Chat/hooks/useIsOnline.ts +0 -104
- package/src/components/MessageList/InlineLoadingMoreRecentThreadIndicator.tsx +0 -61
- package/src/components/MessageList/utils/getLastReceivedMessage.ts +0 -16
- package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +0 -15
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +0 -107
- package/src/contexts/channelsStateContext/useChannelState.ts +0 -66
- package/src/contexts/debugContext/DebugContext.tsx +0 -68
- package/src/contexts/messageInputContext/hooks/useCreateMessageComposer.ts +0 -97
- package/src/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.ts +0 -13
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +0 -83
- package/src/contexts/translationContext/isDayOrMoment.ts +0 -8
- package/src/contexts/typingContext/TypingContext.tsx +0 -36
- package/src/hooks/useSelectedChannelState.ts +0 -53
- package/src/i18n/ar.json +0 -471
- package/src/i18n/en.json +0 -471
- package/src/i18n/es.json +0 -471
- package/src/i18n/fr.json +0 -471
- package/src/i18n/he.json +0 -471
- package/src/i18n/hi.json +0 -471
- package/src/i18n/it.json +0 -471
- package/src/i18n/ja.json +0 -471
- package/src/i18n/ko.json +0 -471
- package/src/i18n/nl.json +0 -471
- package/src/i18n/pt-br.json +0 -471
- package/src/i18n/ru.json +0 -471
- package/src/i18n/tr.json +0 -471
- package/src/state-store/channel-unread-state.ts +0 -28
- package/src/state-store/message-list-prev-next-state.ts +0 -58
- package/src/store/apis/deleteReactions.ts +0 -23
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +0 -42
- package/src/store/apis/upsertChannelDataFromChannel.ts +0 -24
- package/src/store/mappers/mapDateTimeToStorable.ts +0 -7
- package/src/store/sqlite-utils/printRow.ts +0 -19
- package/src/utils/__tests__/patchMessageTextCommand.test.ts +0 -14
- package/src/utils/addReactionToLocalState.ts +0 -52
- package/src/utils/date.ts +0 -4
- package/src/utils/i18n/calendarFormats.ts +0 -111
- package/src/utils/i18n/getDateString.ts +0 -133
- package/src/utils/i18n/predefinedFormatters.ts +0 -98
- package/src/utils/i18n/types.ts +0 -82
- package/src/utils/patchMessageTextCommand.ts +0 -36
- package/src/utils/removeReactionFromLocalState.ts +0 -49
- /package/lib/commonjs/{utils/i18n → i18n}/types.js +0 -0
- /package/lib/module/{utils/i18n → i18n}/types.js +0 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { FlatList } from 'react-native';
|
|
3
|
+
import { FlatList, StyleSheet } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import { act, cleanup, fireEvent, render,
|
|
5
|
+
import { act, cleanup, fireEvent, render, waitFor, within } from '@testing-library/react-native';
|
|
6
|
+
import type { LocalMessage, StreamChat as StreamChatClient, UserResponse } from 'stream-chat';
|
|
6
7
|
|
|
8
|
+
import { msToNs, Thread } from 'stream-chat';
|
|
9
|
+
|
|
10
|
+
import { WithComponents } from '../../../contexts/componentsContext/ComponentsContext';
|
|
7
11
|
import { OverlayProvider } from '../../../contexts/overlayContext/OverlayProvider';
|
|
8
12
|
import { getOrCreateChannelApi } from '../../../mock-builders/api/getOrCreateChannel';
|
|
9
13
|
|
|
@@ -15,11 +19,11 @@ import { generateMember } from '../../../mock-builders/generator/member';
|
|
|
15
19
|
import { generateMessage } from '../../../mock-builders/generator/message';
|
|
16
20
|
import { generateUser } from '../../../mock-builders/generator/user';
|
|
17
21
|
import { getTestClientWithUser } from '../../../mock-builders/mock';
|
|
22
|
+
import { primitives } from '../../../theme';
|
|
18
23
|
import { Channel } from '../../Channel/Channel';
|
|
19
|
-
import { channelInitialState } from '../../Channel/hooks/useChannelDataState';
|
|
20
|
-
import * as MessageListPaginationHook from '../../Channel/hooks/useMessageListPagination';
|
|
21
24
|
import { Chat } from '../../Chat/Chat';
|
|
22
25
|
|
|
26
|
+
import { Thread as ThreadComponent } from '../../Thread/Thread';
|
|
23
27
|
import { SCROLL_TO_BOTTOM_ACCESSIBILITY_ACTION_NAME } from '../hooks/useScrollToBottomAccessibilityAction';
|
|
24
28
|
import { MessageList } from '../MessageList';
|
|
25
29
|
|
|
@@ -32,12 +36,18 @@ describe('MessageList', () => {
|
|
|
32
36
|
it('should add new message at bottom of the list', async () => {
|
|
33
37
|
const user1 = generateUser();
|
|
34
38
|
const user2 = generateUser();
|
|
39
|
+
// Time-ordered seed so the channel opens at its latest set (hasMoreHead=false) and the
|
|
40
|
+
// scroll-to-bottom button stays hidden — a random-order page can leave it unsettled.
|
|
41
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
35
42
|
const mockedChannel = generateChannelResponse({
|
|
36
43
|
members: [generateMember({ user: user1 }), generateMember({ user: user2 })],
|
|
37
|
-
messages: [
|
|
44
|
+
messages: [
|
|
45
|
+
generateMessage({ timestamp: new Date(base), user: user1 }),
|
|
46
|
+
generateMessage({ timestamp: new Date(base + 1000), user: user1 }),
|
|
47
|
+
],
|
|
38
48
|
});
|
|
39
49
|
|
|
40
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
50
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
41
51
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
42
52
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
43
53
|
await channel.watch();
|
|
@@ -52,7 +62,9 @@ describe('MessageList', () => {
|
|
|
52
62
|
</OverlayProvider>,
|
|
53
63
|
);
|
|
54
64
|
|
|
55
|
-
|
|
65
|
+
// The message paginator's ingest filter keys on the message's `cid`, so a cid-less message.new
|
|
66
|
+
// is dropped and never reaches the list. Stamp the channel cid onto the new message.
|
|
67
|
+
const newMessage = generateMessage({ cid: channel.cid, user: user2 });
|
|
56
68
|
act(() => dispatchMessageNewEvent(chatClient, newMessage, mockedChannel.channel));
|
|
57
69
|
|
|
58
70
|
await waitFor(() => {
|
|
@@ -61,6 +73,54 @@ describe('MessageList', () => {
|
|
|
61
73
|
});
|
|
62
74
|
}, 10000);
|
|
63
75
|
|
|
76
|
+
// Only the newest row in the list carries the last-bubble spacing, so a message arriving below it
|
|
77
|
+
// takes the spacing over.
|
|
78
|
+
it('moves the last-bubble spacing to a newly arrived message', async () => {
|
|
79
|
+
const user1 = generateUser();
|
|
80
|
+
const user2 = generateUser();
|
|
81
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
82
|
+
const first = generateMessage({ timestamp: new Date(base), user: user1 });
|
|
83
|
+
const second = generateMessage({ timestamp: new Date(base + 1000), user: user1 });
|
|
84
|
+
const mockedChannel = generateChannelResponse({
|
|
85
|
+
members: [generateMember({ user: user1 }), generateMember({ user: user2 })],
|
|
86
|
+
messages: [first, second],
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
90
|
+
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
91
|
+
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
92
|
+
await channel.watch();
|
|
93
|
+
|
|
94
|
+
const { getByTestId } = render(
|
|
95
|
+
<OverlayProvider>
|
|
96
|
+
<Chat client={chatClient}>
|
|
97
|
+
<Channel channel={channel}>
|
|
98
|
+
<MessageList />
|
|
99
|
+
</Channel>
|
|
100
|
+
</Chat>
|
|
101
|
+
</OverlayProvider>,
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const lastBubbleSpacing = (messageId: string) =>
|
|
105
|
+
StyleSheet.flatten(
|
|
106
|
+
within(getByTestId(`message-list-item-${messageId}`)).getByTestId('message-wrapper').props
|
|
107
|
+
.style,
|
|
108
|
+
).marginBottom;
|
|
109
|
+
|
|
110
|
+
await waitFor(() => expect(lastBubbleSpacing(second.id)).toBe(primitives.spacingSm));
|
|
111
|
+
expect(lastBubbleSpacing(first.id)).not.toBe(primitives.spacingSm);
|
|
112
|
+
|
|
113
|
+
const third = generateMessage({
|
|
114
|
+
cid: channel.cid,
|
|
115
|
+
timestamp: new Date(base + 2000),
|
|
116
|
+
user: user2,
|
|
117
|
+
});
|
|
118
|
+
act(() => dispatchMessageNewEvent(chatClient, third, mockedChannel.channel));
|
|
119
|
+
|
|
120
|
+
await waitFor(() => expect(lastBubbleSpacing(third.id)).toBe(primitives.spacingSm));
|
|
121
|
+
expect(lastBubbleSpacing(second.id)).not.toBe(primitives.spacingSm);
|
|
122
|
+
}, 10000);
|
|
123
|
+
|
|
64
124
|
it('should render a system message in the list', async () => {
|
|
65
125
|
const user1 = generateUser();
|
|
66
126
|
const mockedChannel = generateChannelResponse({
|
|
@@ -72,7 +132,7 @@ describe('MessageList', () => {
|
|
|
72
132
|
],
|
|
73
133
|
});
|
|
74
134
|
|
|
75
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
135
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
76
136
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
77
137
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
78
138
|
await channel.watch();
|
|
@@ -104,7 +164,7 @@ describe('MessageList', () => {
|
|
|
104
164
|
],
|
|
105
165
|
});
|
|
106
166
|
|
|
107
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
167
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
108
168
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
109
169
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
110
170
|
await channel.watch();
|
|
@@ -132,7 +192,7 @@ describe('MessageList', () => {
|
|
|
132
192
|
messages: [generateMessage({ user: user1 })],
|
|
133
193
|
});
|
|
134
194
|
|
|
135
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
195
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
136
196
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
137
197
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
138
198
|
await channel.watch();
|
|
@@ -164,7 +224,7 @@ describe('MessageList', () => {
|
|
|
164
224
|
messages: [],
|
|
165
225
|
});
|
|
166
226
|
|
|
167
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
227
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
168
228
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
169
229
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
170
230
|
await channel.watch();
|
|
@@ -191,7 +251,7 @@ describe('MessageList', () => {
|
|
|
191
251
|
messages: [generateMessage({ user: user1 })],
|
|
192
252
|
});
|
|
193
253
|
|
|
194
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
254
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
195
255
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
196
256
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
197
257
|
await channel.watch();
|
|
@@ -219,19 +279,122 @@ describe('MessageList', () => {
|
|
|
219
279
|
});
|
|
220
280
|
});
|
|
221
281
|
|
|
222
|
-
|
|
282
|
+
describe('the connection banner', () => {
|
|
283
|
+
const renderConnected = async () => {
|
|
284
|
+
const user1 = generateUser();
|
|
285
|
+
const mockedChannel = generateChannelResponse({
|
|
286
|
+
members: [generateMember({ user: user1 })],
|
|
287
|
+
messages: [generateMessage({ user: user1 })],
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
291
|
+
// A socket drop is held back by `offlineNotificationDisplayDelayMs` (5s by default) so a
|
|
292
|
+
// sub-second flap never reaches the screen. These tests are about WHICH banner renders, not
|
|
293
|
+
// about the wait, so they opt out of it — the wait itself is covered in
|
|
294
|
+
// `useSettledWSConnectionHealth`'s own tests.
|
|
295
|
+
chatClient.config.set({
|
|
296
|
+
client: { wsConnection: { offlineNotificationDisplayDelayMs: 0 } },
|
|
297
|
+
});
|
|
298
|
+
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
299
|
+
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
300
|
+
await channel.watch();
|
|
301
|
+
|
|
302
|
+
const utils = render(
|
|
303
|
+
<OverlayProvider>
|
|
304
|
+
<Chat client={chatClient}>
|
|
305
|
+
<Channel channel={channel}>
|
|
306
|
+
<MessageList />
|
|
307
|
+
</Channel>
|
|
308
|
+
</Chat>
|
|
309
|
+
</OverlayProvider>,
|
|
310
|
+
);
|
|
311
|
+
|
|
312
|
+
return { chatClient, ...utils };
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
it('shows nothing while the socket is up and the network is merely unknown', async () => {
|
|
316
|
+
// `undefined` network is the normal React Native state until NetInfo reports. A guard written
|
|
317
|
+
// as `!isOnline` would render the banner here and never clear it.
|
|
318
|
+
const { queryByTestId } = await renderConnected();
|
|
319
|
+
|
|
320
|
+
await waitFor(() => expect(queryByTestId('error-notification')).toBeNull());
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
it('says Reconnecting when the socket drops on a working network', async () => {
|
|
324
|
+
const { chatClient, getByTestId, getByText } = await renderConnected();
|
|
325
|
+
|
|
326
|
+
act(() => {
|
|
327
|
+
chatClient.networkConnection.setStatus(true);
|
|
328
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
329
|
+
chatClient.wsConnection._setStatus({ isHealthy: false });
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
await waitFor(() => {
|
|
333
|
+
expect(getByTestId('error-notification')).toBeTruthy();
|
|
334
|
+
expect(getByText('Reconnecting...')).toBeTruthy();
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
it('says Waiting for network when the device itself is offline', async () => {
|
|
339
|
+
// The whole point of the split: this used to read as "Reconnecting" too, blaming the socket
|
|
340
|
+
// for something the device did.
|
|
341
|
+
const { chatClient, getByTestId, getByText } = await renderConnected();
|
|
342
|
+
|
|
343
|
+
act(() => {
|
|
344
|
+
chatClient.networkConnection.setStatus(false);
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
await waitFor(() => {
|
|
348
|
+
expect(getByTestId('error-notification')).toBeTruthy();
|
|
349
|
+
expect(getByText('Waiting for network...')).toBeTruthy();
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
it('should scroll to a message even if out of the loaded window', async () => {
|
|
223
355
|
const user1 = generateUser();
|
|
356
|
+
|
|
357
|
+
// A long, time-ordered list so a target near the oldest end sits far outside the FlatList's
|
|
358
|
+
// initially rendered window. Ordered timestamps keep the paginator's position deterministic (a
|
|
359
|
+
// tight `new Date()` loop yields near-identical timestamps and a scrambled sort order).
|
|
360
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
361
|
+
const mockedLongMessagesList = Array.from({ length: 151 }, (_, i) =>
|
|
362
|
+
generateMessage({
|
|
363
|
+
id: `${i}`,
|
|
364
|
+
text: `message-${i}`,
|
|
365
|
+
timestamp: new Date(base + i * 1000),
|
|
366
|
+
user: user1,
|
|
367
|
+
}),
|
|
368
|
+
);
|
|
369
|
+
// An old message (near the oldest end) — index 3 lands at index 147 of the newest-first list,
|
|
370
|
+
// deep outside the ~10 rows the headless FlatList renders on mount.
|
|
371
|
+
const targetedMessageId = mockedLongMessagesList[3].id;
|
|
372
|
+
|
|
224
373
|
const mockedChannel = generateChannelResponse({
|
|
225
374
|
members: [generateMember({ user: user1 })],
|
|
226
|
-
messages:
|
|
375
|
+
messages: mockedLongMessagesList,
|
|
227
376
|
});
|
|
228
377
|
|
|
229
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
378
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
230
379
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
231
380
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
232
381
|
await channel.watch();
|
|
233
382
|
|
|
234
|
-
|
|
383
|
+
// The paginator's focus signal (emitted by jump-to-message) drives the scroll. Spy on the
|
|
384
|
+
// FlatList's scrollToIndex — a no-op in the headless renderer — to assert the list positions
|
|
385
|
+
// itself on the far-off target rather than checking rendered rows (v10 scrolls to the target
|
|
386
|
+
// after render; it no longer seeds it into the initial window).
|
|
387
|
+
const scrollToIndexMock = jest
|
|
388
|
+
.spyOn(FlatList.prototype, 'scrollToIndex')
|
|
389
|
+
.mockImplementation(() => {});
|
|
390
|
+
|
|
391
|
+
channel.messagePaginator.emitMessageFocusSignal({
|
|
392
|
+
messageId: targetedMessageId,
|
|
393
|
+
reason: 'jump-to-message',
|
|
394
|
+
ttlMs: 3000,
|
|
395
|
+
});
|
|
396
|
+
|
|
397
|
+
render(
|
|
235
398
|
<OverlayProvider>
|
|
236
399
|
<Chat client={chatClient}>
|
|
237
400
|
<Channel channel={channel}>
|
|
@@ -242,81 +405,104 @@ describe('MessageList', () => {
|
|
|
242
405
|
);
|
|
243
406
|
|
|
244
407
|
await waitFor(() => {
|
|
245
|
-
expect(
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
408
|
+
expect(scrollToIndexMock).toHaveBeenCalledWith({
|
|
409
|
+
animated: true,
|
|
410
|
+
index: 147,
|
|
411
|
+
viewPosition: 0.5,
|
|
412
|
+
});
|
|
249
413
|
});
|
|
250
414
|
});
|
|
251
415
|
|
|
252
|
-
it(
|
|
416
|
+
it("should render the unread messages notification when there's unread messages", async () => {
|
|
253
417
|
const user1 = generateUser();
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
//
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
const latestMessageText = mockedLongMessagesList[0].text;
|
|
262
|
-
const { id: targetedMessageId, text: targetedMessageText } =
|
|
263
|
-
mockedLongMessagesList[mockedLongMessagesList.length - 4];
|
|
264
|
-
|
|
418
|
+
const user2 = generateUser();
|
|
419
|
+
// Time-ordered messages so the paginator seed reaches its own head/tail (matching a real server
|
|
420
|
+
// response); a randomly-ordered page leaves hasMore* flags unsettled.
|
|
421
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
422
|
+
const messages = Array.from({ length: 10 }, (_, i) =>
|
|
423
|
+
generateMessage({ id: `${i}`, text: `message-${i}`, timestamp: new Date(base + i * 1000) }),
|
|
424
|
+
);
|
|
265
425
|
const mockedChannel = generateChannelResponse({
|
|
266
|
-
members: [generateMember({ user: user1 })],
|
|
267
|
-
messages
|
|
426
|
+
members: [generateMember({ user: user1 }), generateMember({ user: user2 })],
|
|
427
|
+
messages,
|
|
428
|
+
// Own read boundary: last read at message '5', five messages unread. The paginator derives its
|
|
429
|
+
// `unreadStateSnapshot` (the v10 source of truth for unread UI) from this on channel open.
|
|
430
|
+
read: [
|
|
431
|
+
{
|
|
432
|
+
user: user1,
|
|
433
|
+
last_read: msToNs(base + 5000),
|
|
434
|
+
last_read_message_id: '5',
|
|
435
|
+
unread_messages: 5,
|
|
436
|
+
},
|
|
437
|
+
] as unknown as NonNullable<Parameters<typeof generateChannelResponse>[0]>['read'],
|
|
268
438
|
});
|
|
269
439
|
|
|
270
|
-
const chatClient = await getTestClientWithUser({ id:
|
|
440
|
+
const chatClient = await getTestClientWithUser({ id: user1.id } as UserResponse);
|
|
271
441
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
272
442
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
273
443
|
await channel.watch();
|
|
274
444
|
|
|
275
|
-
|
|
276
|
-
|
|
445
|
+
// Accessibility enabled so the notification's affordances expose their a11y labels (the SDK skips
|
|
446
|
+
// the i18n lookup for those when accessibility is off).
|
|
447
|
+
const { getByTestId, queryByLabelText } = render(
|
|
448
|
+
<OverlayProvider accessibility={{ enabled: true }}>
|
|
277
449
|
<Chat client={chatClient}>
|
|
278
450
|
<Channel channel={channel}>
|
|
279
|
-
<MessageList
|
|
451
|
+
<MessageList />
|
|
280
452
|
</Channel>
|
|
281
453
|
</Chat>
|
|
282
454
|
</OverlayProvider>,
|
|
283
455
|
);
|
|
284
456
|
|
|
457
|
+
// The sticky unread notification opens from viewability (the last-read message scrolled out of
|
|
458
|
+
// view with newer messages below). The headless FlatList never fires viewability on its own, so
|
|
459
|
+
// drive it directly with a window of messages newer than the last-read boundary.
|
|
460
|
+
act(() => {
|
|
461
|
+
getByTestId('message-flat-list').props.onViewableItemsChanged({
|
|
462
|
+
viewableItems: [
|
|
463
|
+
{ item: { message: messages[6] } },
|
|
464
|
+
{ item: { message: messages[7] } },
|
|
465
|
+
{ item: { message: messages[8] } },
|
|
466
|
+
],
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
|
|
285
470
|
await waitFor(() => {
|
|
286
|
-
expect(
|
|
287
|
-
expect(() => screen.getByText(latestMessageText as string)).toThrow();
|
|
471
|
+
expect(queryByLabelText('Dismiss unread messages')).toBeTruthy();
|
|
288
472
|
});
|
|
289
473
|
});
|
|
290
474
|
|
|
291
475
|
it("should render the InlineUnreadIndicator when there's unread messages", async () => {
|
|
292
476
|
const user1 = generateUser();
|
|
293
477
|
const user2 = generateUser();
|
|
478
|
+
// Time-ordered messages so the paginator seeds a settled head/tail and the unread boundary is
|
|
479
|
+
// derived from real created_at ordering (matching a server response).
|
|
480
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
294
481
|
const messages = Array.from({ length: 10 }, (_, i) =>
|
|
295
|
-
generateMessage({ id: `${i}`, text: `message-${i}
|
|
482
|
+
generateMessage({ id: `${i}`, text: `message-${i}`, timestamp: new Date(base + i * 1000) }),
|
|
296
483
|
);
|
|
297
|
-
const read_data = {
|
|
298
|
-
[user1.id]: {
|
|
299
|
-
last_read: new Date(),
|
|
300
|
-
last_read_message_id: '5',
|
|
301
|
-
unread_messages: 5,
|
|
302
|
-
},
|
|
303
|
-
};
|
|
304
484
|
const mockedChannel = generateChannelResponse({
|
|
305
485
|
members: [generateMember({ user: user1 }), generateMember({ user: user2 })],
|
|
486
|
+
messages,
|
|
487
|
+
// Own read boundary at message '5': everything created after it is unread-from-another. The
|
|
488
|
+
// paginator derives its `unreadStateSnapshot` from this on channel open, which drives the
|
|
489
|
+
// inline separator above the first unread row — independent of viewability (unlike the floating
|
|
490
|
+
// notification test above, which must scroll the last-read message out of view).
|
|
491
|
+
read: [
|
|
492
|
+
{
|
|
493
|
+
user: user1,
|
|
494
|
+
last_read: msToNs(base + 5000),
|
|
495
|
+
last_read_message_id: '5',
|
|
496
|
+
unread_messages: 4,
|
|
497
|
+
},
|
|
498
|
+
] as unknown as NonNullable<Parameters<typeof generateChannelResponse>[0]>['read'],
|
|
306
499
|
});
|
|
307
500
|
|
|
308
|
-
const chatClient = await getTestClientWithUser({ id: user1.id });
|
|
501
|
+
const chatClient = await getTestClientWithUser({ id: user1.id } as UserResponse);
|
|
309
502
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
310
503
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
311
504
|
await channel.watch();
|
|
312
505
|
|
|
313
|
-
channel.state = {
|
|
314
|
-
...channelInitialState,
|
|
315
|
-
latestMessages: [],
|
|
316
|
-
messages,
|
|
317
|
-
read: read_data,
|
|
318
|
-
} as unknown as typeof channel.state;
|
|
319
|
-
|
|
320
506
|
const { queryByLabelText } = render(
|
|
321
507
|
<OverlayProvider>
|
|
322
508
|
<Chat client={chatClient}>
|
|
@@ -332,6 +518,78 @@ describe('MessageList', () => {
|
|
|
332
518
|
});
|
|
333
519
|
});
|
|
334
520
|
|
|
521
|
+
// Messages 0-5 are read (boundary at '5'); `authors` sets who wrote 6, 7 and 8.
|
|
522
|
+
const renderWithUnreadAfterOwn = async (authors: Array<'own' | 'other'>) => {
|
|
523
|
+
const user1 = generateUser();
|
|
524
|
+
const user2 = generateUser();
|
|
525
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
526
|
+
const messages = Array.from({ length: 6 + authors.length }, (_, i) =>
|
|
527
|
+
generateMessage({
|
|
528
|
+
id: `${i}`,
|
|
529
|
+
text: `message-${i}`,
|
|
530
|
+
timestamp: new Date(base + i * 1000),
|
|
531
|
+
user: i > 5 && authors[i - 6] === 'own' ? user1 : user2,
|
|
532
|
+
}),
|
|
533
|
+
);
|
|
534
|
+
const mockedChannel = generateChannelResponse({
|
|
535
|
+
members: [generateMember({ user: user1 }), generateMember({ user: user2 })],
|
|
536
|
+
messages,
|
|
537
|
+
read: [
|
|
538
|
+
{
|
|
539
|
+
user: user1,
|
|
540
|
+
last_read: msToNs(base + 5000),
|
|
541
|
+
last_read_message_id: '5',
|
|
542
|
+
unread_messages: authors.filter((a) => a === 'other').length,
|
|
543
|
+
},
|
|
544
|
+
] as unknown as NonNullable<Parameters<typeof generateChannelResponse>[0]>['read'],
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
const chatClient = await getTestClientWithUser({ id: user1.id } as UserResponse);
|
|
548
|
+
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
549
|
+
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
550
|
+
await channel.watch();
|
|
551
|
+
|
|
552
|
+
return render(
|
|
553
|
+
<OverlayProvider>
|
|
554
|
+
<Chat client={chatClient}>
|
|
555
|
+
<Channel channel={channel}>
|
|
556
|
+
<MessageList />
|
|
557
|
+
</Channel>
|
|
558
|
+
</Chat>
|
|
559
|
+
</OverlayProvider>,
|
|
560
|
+
);
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
it('should render the InlineUnreadIndicator after the last read message when own messages sent elsewhere follow it', async () => {
|
|
564
|
+
const { getAllByLabelText, getByTestId } = await renderWithUnreadAfterOwn([
|
|
565
|
+
'own',
|
|
566
|
+
'other',
|
|
567
|
+
'other',
|
|
568
|
+
]);
|
|
569
|
+
|
|
570
|
+
await waitFor(() => {
|
|
571
|
+
expect(getAllByLabelText('Inline unread indicator')).toHaveLength(1);
|
|
572
|
+
expect(
|
|
573
|
+
within(getByTestId('message-list-item-5')).queryByLabelText('Inline unread indicator'),
|
|
574
|
+
).toBeTruthy();
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
it('should render a single InlineUnreadIndicator when own messages sit between unread ones', async () => {
|
|
579
|
+
const { getAllByLabelText, getByTestId } = await renderWithUnreadAfterOwn([
|
|
580
|
+
'other',
|
|
581
|
+
'own',
|
|
582
|
+
'other',
|
|
583
|
+
]);
|
|
584
|
+
|
|
585
|
+
await waitFor(() => {
|
|
586
|
+
expect(getAllByLabelText('Inline unread indicator')).toHaveLength(1);
|
|
587
|
+
expect(
|
|
588
|
+
within(getByTestId('message-list-item-5')).queryByLabelText('Inline unread indicator'),
|
|
589
|
+
).toBeTruthy();
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
|
|
335
593
|
it("should not render the UnreadMessagesIndicator when there's no unread messages", async () => {
|
|
336
594
|
const user1 = generateUser();
|
|
337
595
|
const user2 = generateUser();
|
|
@@ -342,16 +600,13 @@ describe('MessageList', () => {
|
|
|
342
600
|
members: [generateMember({ user: user1 }), generateMember({ user: user2 })],
|
|
343
601
|
});
|
|
344
602
|
|
|
345
|
-
const chatClient = await getTestClientWithUser({ id: user1.id });
|
|
603
|
+
const chatClient = await getTestClientWithUser({ id: user1.id } as UserResponse);
|
|
346
604
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
347
605
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
348
606
|
await channel.watch();
|
|
349
607
|
|
|
350
|
-
channel.state
|
|
351
|
-
|
|
352
|
-
latestMessages: [],
|
|
353
|
-
messages,
|
|
354
|
-
} as unknown as typeof channel.state;
|
|
608
|
+
channel.state.partialNext({ read: {} });
|
|
609
|
+
channel.messagePaginator.state.partialNext({ items: messages });
|
|
355
610
|
|
|
356
611
|
const { queryByLabelText } = render(
|
|
357
612
|
<OverlayProvider>
|
|
@@ -370,11 +625,17 @@ describe('MessageList', () => {
|
|
|
370
625
|
|
|
371
626
|
it('should call markRead function when message.new event is dispatched and new messages are received', async () => {
|
|
372
627
|
const user = generateUser();
|
|
628
|
+
// Seed a small initial page so the paginator has a live head interval; the source's markRead gate
|
|
629
|
+
// (`!hasReadLastMessage`) compares the latest loaded message id against the own read boundary.
|
|
630
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
373
631
|
const mockedChannel = generateChannelResponse({
|
|
374
632
|
members: [generateMember({ user })],
|
|
633
|
+
messages: Array.from({ length: 3 }, (_, i) =>
|
|
634
|
+
generateMessage({ id: `${i}`, timestamp: new Date(base + i * 1000), user }),
|
|
635
|
+
),
|
|
375
636
|
});
|
|
376
637
|
|
|
377
|
-
const chatClient = await getTestClientWithUser({ id: user.id });
|
|
638
|
+
const chatClient = await getTestClientWithUser({ id: user.id } as UserResponse);
|
|
378
639
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
379
640
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
380
641
|
await channel.watch();
|
|
@@ -394,6 +655,11 @@ describe('MessageList', () => {
|
|
|
394
655
|
</OverlayProvider>,
|
|
395
656
|
);
|
|
396
657
|
|
|
658
|
+
// Auto-mark-read only fires while the user is viewing the live (latest) window. Viewability — the
|
|
659
|
+
// signal that sets this — never fires in the headless renderer, so mark it explicitly.
|
|
660
|
+
act(() => {
|
|
661
|
+
channel.messagePaginator.setViewingLive(true);
|
|
662
|
+
});
|
|
397
663
|
act(() => dispatchMessageNewEvent(chatClient, newMessage, mockedChannel.channel));
|
|
398
664
|
|
|
399
665
|
await waitFor(() => {
|
|
@@ -411,28 +677,33 @@ describe('MessageList', () => {
|
|
|
411
677
|
generateMessage({ id: `${i}`, text: `message-${i}` }),
|
|
412
678
|
);
|
|
413
679
|
|
|
414
|
-
const chatClient = await getTestClientWithUser({ id: user.id });
|
|
680
|
+
const chatClient = await getTestClientWithUser({ id: user.id } as UserResponse);
|
|
415
681
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
416
682
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
417
683
|
await channel.watch();
|
|
418
684
|
|
|
419
685
|
const targetedMessage = messages[15].id;
|
|
420
686
|
|
|
421
|
-
channel.state
|
|
422
|
-
|
|
423
|
-
latestMessages: [],
|
|
424
|
-
messages,
|
|
425
|
-
} as unknown as typeof channel.state;
|
|
687
|
+
channel.state.partialNext({ read: {} });
|
|
688
|
+
channel.messagePaginator.state.partialNext({ items: messages });
|
|
426
689
|
|
|
427
690
|
const flatListRefMock = jest
|
|
428
691
|
.spyOn(FlatList.prototype, 'scrollToIndex')
|
|
429
692
|
.mockImplementation(() => {});
|
|
430
693
|
|
|
694
|
+
// Targeting is driven by the paginator's messageFocusSignal now (not a prop): emitting it makes
|
|
695
|
+
// the list scroll to the focused message.
|
|
696
|
+
channel.messagePaginator.emitMessageFocusSignal({
|
|
697
|
+
messageId: targetedMessage,
|
|
698
|
+
reason: 'jump-to-message',
|
|
699
|
+
ttlMs: 3000,
|
|
700
|
+
});
|
|
701
|
+
|
|
431
702
|
render(
|
|
432
703
|
<OverlayProvider>
|
|
433
704
|
<Chat client={chatClient}>
|
|
434
705
|
<Channel channel={channel}>
|
|
435
|
-
<MessageList
|
|
706
|
+
<MessageList />
|
|
436
707
|
</Channel>
|
|
437
708
|
</Chat>
|
|
438
709
|
</OverlayProvider>,
|
|
@@ -446,53 +717,143 @@ describe('MessageList', () => {
|
|
|
446
717
|
});
|
|
447
718
|
});
|
|
448
719
|
});
|
|
720
|
+
});
|
|
449
721
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
722
|
+
describe('MessageList loading state', () => {
|
|
723
|
+
afterEach(() => {
|
|
724
|
+
cleanup();
|
|
725
|
+
jest.clearAllMocks();
|
|
726
|
+
});
|
|
455
727
|
|
|
456
|
-
|
|
457
|
-
|
|
728
|
+
const renderList = (channel: ReturnType<StreamChatClient['channel']>) =>
|
|
729
|
+
render(
|
|
730
|
+
<OverlayProvider>
|
|
731
|
+
<Chat client={channel.getClient()}>
|
|
732
|
+
<Channel channel={channel}>
|
|
733
|
+
<MessageList />
|
|
734
|
+
</Channel>
|
|
735
|
+
</Chat>
|
|
736
|
+
</OverlayProvider>,
|
|
458
737
|
);
|
|
459
738
|
|
|
460
|
-
|
|
739
|
+
const setup = async () => {
|
|
740
|
+
const user1 = generateUser();
|
|
741
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
742
|
+
const mockedChannel = generateChannelResponse({
|
|
743
|
+
members: [generateMember({ user: user1 })],
|
|
744
|
+
messages: Array.from({ length: 5 }, (_, i) =>
|
|
745
|
+
generateMessage({ text: `message-${i}`, timestamp: new Date(base + i * 1000) }),
|
|
746
|
+
),
|
|
747
|
+
});
|
|
748
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
461
749
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
462
750
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
463
751
|
await channel.watch();
|
|
752
|
+
return channel;
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
// `loading` is selected off the paginator inside the list now, not handed down from <Channel>.
|
|
756
|
+
// It means "querying with nothing to show yet", so a query over a loaded list must NOT blank it.
|
|
757
|
+
it('shows the loading indicator while querying an empty list', async () => {
|
|
758
|
+
const channel = await setup();
|
|
759
|
+
channel.messagePaginator.state.partialNext({ isLoading: true, items: undefined });
|
|
760
|
+
|
|
761
|
+
const { queryByTestId } = await renderList(channel);
|
|
762
|
+
|
|
763
|
+
await waitFor(() => expect(queryByTestId('loading')).toBeTruthy());
|
|
764
|
+
});
|
|
765
|
+
|
|
766
|
+
it('keeps the list rendered while querying over loaded messages', async () => {
|
|
767
|
+
const channel = await setup();
|
|
768
|
+
|
|
769
|
+
const { getByTestId, queryByTestId } = await renderList(channel);
|
|
770
|
+
await waitFor(() => expect(getByTestId('message-flat-list')).toBeTruthy());
|
|
771
|
+
|
|
772
|
+
act(() => {
|
|
773
|
+
channel.messagePaginator.state.partialNext({ isLoading: true });
|
|
774
|
+
});
|
|
775
|
+
|
|
776
|
+
await waitFor(() => expect(getByTestId('message-flat-list')).toBeTruthy());
|
|
777
|
+
expect(queryByTestId('loading')).toBeNull();
|
|
778
|
+
});
|
|
779
|
+
});
|
|
464
780
|
|
|
465
|
-
|
|
466
|
-
|
|
781
|
+
describe('MessageList message targeting', () => {
|
|
782
|
+
afterEach(() => {
|
|
783
|
+
cleanup();
|
|
784
|
+
jest.clearAllMocks();
|
|
785
|
+
});
|
|
467
786
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
787
|
+
it('highlights only the focused row, and follows the signal when it moves', async () => {
|
|
788
|
+
const user1 = generateUser();
|
|
789
|
+
const messages = Array.from({ length: 5 }, (_, i) =>
|
|
790
|
+
generateMessage({ text: `message-${i}`, user: user1 }),
|
|
791
|
+
);
|
|
792
|
+
const mockedChannel = generateChannelResponse({
|
|
793
|
+
members: [generateMember({ user: user1 })],
|
|
471
794
|
messages,
|
|
472
|
-
}
|
|
795
|
+
});
|
|
473
796
|
|
|
474
|
-
const
|
|
797
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
798
|
+
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
799
|
+
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
800
|
+
await channel.watch();
|
|
801
|
+
channel.state.partialNext({ read: {} });
|
|
802
|
+
channel.messagePaginator.state.partialNext({ items: messages });
|
|
803
|
+
|
|
804
|
+
// `isTargetedMessage` is read per-row off the paginator's focus signal now, not handed down
|
|
805
|
+
// through ChannelContext — so capture it at the component that actually consumes it.
|
|
806
|
+
const targeted = new Map<string, boolean>();
|
|
807
|
+
// `isTargetedMessage` reaches `Message` as a PROP from MessageWrapper, so swap the component
|
|
808
|
+
// out and read the prop — a MessageContext consumer would need the real Message to provide it.
|
|
809
|
+
const CaptureMessage = ({
|
|
810
|
+
isTargetedMessage,
|
|
811
|
+
message,
|
|
812
|
+
}: {
|
|
813
|
+
isTargetedMessage?: boolean;
|
|
814
|
+
message: LocalMessage;
|
|
815
|
+
}) => {
|
|
816
|
+
targeted.set(message.id, !!isTargetedMessage);
|
|
817
|
+
return null;
|
|
818
|
+
};
|
|
475
819
|
|
|
476
820
|
render(
|
|
477
821
|
<OverlayProvider>
|
|
478
822
|
<Chat client={chatClient}>
|
|
479
|
-
<
|
|
480
|
-
<
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
/>
|
|
485
|
-
</Channel>
|
|
823
|
+
<WithComponents overrides={{ Message: CaptureMessage }}>
|
|
824
|
+
<Channel channel={channel}>
|
|
825
|
+
<MessageList />
|
|
826
|
+
</Channel>
|
|
827
|
+
</WithComponents>
|
|
486
828
|
</Chat>
|
|
487
829
|
</OverlayProvider>,
|
|
488
830
|
);
|
|
489
831
|
|
|
490
|
-
await waitFor(() =>
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
832
|
+
await waitFor(() => expect(targeted.size).toBeGreaterThan(0));
|
|
833
|
+
expect([...targeted.values()].every((value) => value === false)).toBe(true);
|
|
834
|
+
|
|
835
|
+
act(() => {
|
|
836
|
+
channel.messagePaginator.emitMessageFocusSignal({
|
|
837
|
+
messageId: messages[2].id,
|
|
838
|
+
reason: 'jump-to-message',
|
|
839
|
+
ttlMs: 3000,
|
|
840
|
+
});
|
|
841
|
+
});
|
|
842
|
+
|
|
843
|
+
await waitFor(() => expect(targeted.get(messages[2].id)).toBe(true));
|
|
844
|
+
expect(targeted.get(messages[1].id)).toBe(false);
|
|
845
|
+
expect(targeted.get(messages[3].id)).toBe(false);
|
|
846
|
+
|
|
847
|
+
act(() => {
|
|
848
|
+
channel.messagePaginator.emitMessageFocusSignal({
|
|
849
|
+
messageId: messages[4].id,
|
|
850
|
+
reason: 'jump-to-message',
|
|
851
|
+
ttlMs: 3000,
|
|
494
852
|
});
|
|
495
853
|
});
|
|
854
|
+
|
|
855
|
+
await waitFor(() => expect(targeted.get(messages[4].id)).toBe(true));
|
|
856
|
+
expect(targeted.get(messages[2].id)).toBe(false);
|
|
496
857
|
});
|
|
497
858
|
});
|
|
498
859
|
|
|
@@ -502,27 +863,6 @@ describe('MessageList pagination', () => {
|
|
|
502
863
|
jest.clearAllMocks();
|
|
503
864
|
});
|
|
504
865
|
|
|
505
|
-
const mockedHook = (
|
|
506
|
-
values: Partial<ReturnType<typeof MessageListPaginationHook.useMessageListPagination>>,
|
|
507
|
-
) => {
|
|
508
|
-
const messages = Array.from({ length: 100 }, (_, i) =>
|
|
509
|
-
generateMessage({ text: `message-${i}` }),
|
|
510
|
-
);
|
|
511
|
-
return jest
|
|
512
|
-
.spyOn(MessageListPaginationHook, 'useMessageListPagination')
|
|
513
|
-
.mockImplementation(() => ({
|
|
514
|
-
copyMessagesStateFromChannel: jest.fn(),
|
|
515
|
-
loadChannelAroundMessage: jest.fn(),
|
|
516
|
-
loadChannelAtFirstUnreadMessage: jest.fn(),
|
|
517
|
-
loadInitialMessagesStateFromChannel: jest.fn(),
|
|
518
|
-
loadLatestMessages: jest.fn(),
|
|
519
|
-
loadMore: jest.fn(),
|
|
520
|
-
loadMoreRecent: jest.fn(),
|
|
521
|
-
state: { ...channelInitialState, messages },
|
|
522
|
-
...values,
|
|
523
|
-
}));
|
|
524
|
-
};
|
|
525
|
-
|
|
526
866
|
const renderMessageListForScrollToBottom = async ({
|
|
527
867
|
additionalFlatListProps,
|
|
528
868
|
accessibility = { enabled: true },
|
|
@@ -533,37 +873,49 @@ describe('MessageList pagination', () => {
|
|
|
533
873
|
staleChannelState?: boolean;
|
|
534
874
|
} = {}) => {
|
|
535
875
|
const user1 = generateUser();
|
|
876
|
+
// Time-ordered so the seeded page reaches its own head (hasMoreHead=false): the channel opens at
|
|
877
|
+
// the latest set, so the scroll-to-bottom button starts hidden (a random-order page leaves
|
|
878
|
+
// hasMoreHead unsettled and the button would show on open).
|
|
879
|
+
const base = new Date('2020-01-01T00:00:00.000Z').getTime();
|
|
536
880
|
const mockedChannel = generateChannelResponse({
|
|
537
881
|
members: [generateMember({ user: user1 })],
|
|
538
|
-
messages: Array.from({ length: 10 }, (_, i) =>
|
|
882
|
+
messages: Array.from({ length: 10 }, (_, i) =>
|
|
883
|
+
generateMessage({ text: `message-${i}`, timestamp: new Date(base + i * 1000) }),
|
|
884
|
+
),
|
|
539
885
|
});
|
|
540
886
|
|
|
541
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
887
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
542
888
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
543
889
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
544
890
|
await channel.watch();
|
|
545
891
|
|
|
546
892
|
if (staleChannelState) {
|
|
547
|
-
channel.state
|
|
548
|
-
...channelInitialState,
|
|
549
|
-
latestMessages: [],
|
|
893
|
+
channel.state.partialNext({
|
|
550
894
|
members: Object.fromEntries(
|
|
551
895
|
Array.from({ length: 10 }, (_, i) => [i, generateMember({ user_id: String(i) })]),
|
|
552
896
|
),
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
897
|
+
});
|
|
898
|
+
// hasMoreHead:true = the loaded window is NOT the latest set (the user jumped to an older
|
|
899
|
+
// window), so "go to latest" reloads the channel (loadLatestMessages) instead of just
|
|
900
|
+
// scrolling — that reload is what these accessibility-action tests assert.
|
|
901
|
+
channel.messagePaginator.state.partialNext({
|
|
902
|
+
hasMoreHead: true,
|
|
903
|
+
items: Array.from({ length: 10 }, (_, i) => generateMessage({ id: String(i) })),
|
|
904
|
+
});
|
|
556
905
|
}
|
|
557
906
|
|
|
558
|
-
return
|
|
559
|
-
|
|
560
|
-
<
|
|
561
|
-
<
|
|
562
|
-
<
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
907
|
+
return {
|
|
908
|
+
...render(
|
|
909
|
+
<OverlayProvider accessibility={accessibility}>
|
|
910
|
+
<Chat client={chatClient}>
|
|
911
|
+
<Channel channel={channel}>
|
|
912
|
+
<MessageList additionalFlatListProps={additionalFlatListProps} />
|
|
913
|
+
</Channel>
|
|
914
|
+
</Chat>
|
|
915
|
+
</OverlayProvider>,
|
|
916
|
+
),
|
|
917
|
+
channel,
|
|
918
|
+
};
|
|
567
919
|
};
|
|
568
920
|
|
|
569
921
|
it('should load more recent messages when the user scrolls to the start of the list', async () => {
|
|
@@ -573,13 +925,14 @@ describe('MessageList pagination', () => {
|
|
|
573
925
|
messages: Array.from({ length: 100 }, (_, i) => generateMessage({ text: `message-${i}` })),
|
|
574
926
|
});
|
|
575
927
|
|
|
576
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
928
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
577
929
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
578
930
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
579
931
|
await channel.watch();
|
|
580
932
|
|
|
581
|
-
|
|
582
|
-
|
|
933
|
+
// Newer messages exist past the loaded window, so the newest edge has something to load.
|
|
934
|
+
act(() => channel.messagePaginator.state.partialNext({ hasMoreHead: true }));
|
|
935
|
+
const toHead = jest.spyOn(channel.messagePaginator, 'toHead').mockResolvedValue(undefined);
|
|
583
936
|
|
|
584
937
|
const { getByTestId } = render(
|
|
585
938
|
<OverlayProvider>
|
|
@@ -604,7 +957,7 @@ describe('MessageList pagination', () => {
|
|
|
604
957
|
});
|
|
605
958
|
|
|
606
959
|
await waitFor(() => {
|
|
607
|
-
expect(
|
|
960
|
+
expect(toHead).toHaveBeenCalledTimes(1);
|
|
608
961
|
});
|
|
609
962
|
});
|
|
610
963
|
|
|
@@ -615,13 +968,13 @@ describe('MessageList pagination', () => {
|
|
|
615
968
|
messages: Array.from({ length: 100 }, (_, i) => generateMessage({ text: `message-${i}` })),
|
|
616
969
|
});
|
|
617
970
|
|
|
618
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
971
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
619
972
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
620
973
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
621
974
|
await channel.watch();
|
|
622
975
|
|
|
623
|
-
|
|
624
|
-
|
|
976
|
+
act(() => channel.messagePaginator.state.partialNext({ hasMoreTail: true }));
|
|
977
|
+
const toTail = jest.spyOn(channel.messagePaginator, 'toTail').mockResolvedValue(undefined);
|
|
625
978
|
|
|
626
979
|
const { getByTestId } = render(
|
|
627
980
|
<OverlayProvider>
|
|
@@ -646,10 +999,64 @@ describe('MessageList pagination', () => {
|
|
|
646
999
|
});
|
|
647
1000
|
|
|
648
1001
|
await waitFor(() => {
|
|
649
|
-
expect(
|
|
1002
|
+
expect(toTail).toHaveBeenCalledTimes(1);
|
|
1003
|
+
});
|
|
1004
|
+
});
|
|
1005
|
+
|
|
1006
|
+
// The list used to remember each list length it had requested older messages at, so a page that
|
|
1007
|
+
// failed left the top edge dead until a new message changed the length.
|
|
1008
|
+
it('requests older messages again at the same list length after a failed page', async () => {
|
|
1009
|
+
const mockedChannel = generateChannelResponse({
|
|
1010
|
+
messages: Array.from({ length: 20 }, (_, i) => generateMessage({ text: `message-${i}` })),
|
|
1011
|
+
});
|
|
1012
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
1013
|
+
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
1014
|
+
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
1015
|
+
await channel.watch();
|
|
1016
|
+
|
|
1017
|
+
act(() => channel.messagePaginator.state.partialNext({ hasMoreTail: true }));
|
|
1018
|
+
const toTail = jest
|
|
1019
|
+
.spyOn(channel.messagePaginator, 'toTail')
|
|
1020
|
+
.mockRejectedValueOnce(new Error('network'))
|
|
1021
|
+
.mockResolvedValue(undefined);
|
|
1022
|
+
|
|
1023
|
+
const { getByTestId } = render(
|
|
1024
|
+
<OverlayProvider>
|
|
1025
|
+
<Chat client={chatClient}>
|
|
1026
|
+
<Channel channel={channel}>
|
|
1027
|
+
<MessageList />
|
|
1028
|
+
</Channel>
|
|
1029
|
+
</Chat>
|
|
1030
|
+
</OverlayProvider>,
|
|
1031
|
+
);
|
|
1032
|
+
|
|
1033
|
+
const scrollToOldestEnd = () =>
|
|
1034
|
+
fireEvent(getByTestId('message-flat-list'), 'momentumScrollEnd', {
|
|
1035
|
+
nativeEvent: {
|
|
1036
|
+
contentOffset: { y: 1900 },
|
|
1037
|
+
contentSize: { height: 2000, width: 200 },
|
|
1038
|
+
layoutMeasurement: { height: 400, width: 200 },
|
|
1039
|
+
},
|
|
1040
|
+
});
|
|
1041
|
+
|
|
1042
|
+
act(scrollToOldestEnd);
|
|
1043
|
+
await waitFor(() => expect(toTail).toHaveBeenCalledTimes(1));
|
|
1044
|
+
// Let the failed request settle before reaching the edge again.
|
|
1045
|
+
await act(async () => {
|
|
1046
|
+
await Promise.resolve();
|
|
650
1047
|
});
|
|
1048
|
+
|
|
1049
|
+
act(scrollToOldestEnd);
|
|
1050
|
+
await waitFor(() => expect(toTail).toHaveBeenCalledTimes(2));
|
|
651
1051
|
});
|
|
652
1052
|
|
|
1053
|
+
// FLAKY (~20% of runs, pre-existing on V10 — this body is byte-identical there). Fails as
|
|
1054
|
+
// "Exceeded timeout of 5000 ms": the test intermittently stalls 5-15s and then completes, so a
|
|
1055
|
+
// raised timeout makes it pass (measured: 16s vs a 1.9s baseline). Ruled out: cold jest cache (a
|
|
1056
|
+
// 15.9s cold run passed all 21) and network retries (no retry/error noise in the logs). Also note
|
|
1057
|
+
// the `fireEvent.press` below sits inside `waitFor`, whose callback is retried — hoisting the
|
|
1058
|
+
// press out is correct but did NOT change the failure rate, so it is not the cause. Not skipped
|
|
1059
|
+
// on purpose: it should keep failing visibly until the stall is understood.
|
|
653
1060
|
it('should call load latest messages when the scroll to bottom button is pressed', async () => {
|
|
654
1061
|
const user1 = generateUser();
|
|
655
1062
|
const messages = Array.from({ length: 10 }, (_, i) =>
|
|
@@ -660,23 +1067,25 @@ describe('MessageList pagination', () => {
|
|
|
660
1067
|
messages,
|
|
661
1068
|
});
|
|
662
1069
|
|
|
663
|
-
const chatClient = await getTestClientWithUser({ id: 'testID' });
|
|
1070
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
664
1071
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
665
1072
|
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
666
1073
|
await channel.watch();
|
|
667
1074
|
|
|
668
|
-
channel.state
|
|
669
|
-
...channelInitialState,
|
|
670
|
-
latestMessages: [],
|
|
1075
|
+
channel.state.partialNext({
|
|
671
1076
|
members: Object.fromEntries(
|
|
672
1077
|
Array.from({ length: 10 }, (_, i) => [i, generateMember({ user_id: String(i) })]),
|
|
673
1078
|
),
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
1079
|
+
});
|
|
1080
|
+
channel.messagePaginator.state.partialNext({
|
|
1081
|
+
items: Array.from({ length: 10 }, (_, i) => generateMessage({ id: String(i) })),
|
|
1082
|
+
});
|
|
677
1083
|
|
|
678
|
-
|
|
679
|
-
|
|
1084
|
+
// "Go to latest" is the paginator's own jump now — the list calls it directly rather than
|
|
1085
|
+
// going through a callback handed down from <Channel>.
|
|
1086
|
+
const jumpToTheLatestMessage = jest
|
|
1087
|
+
.spyOn(channel.messagePaginator, 'jumpToTheLatestMessage')
|
|
1088
|
+
.mockResolvedValue(undefined as never);
|
|
680
1089
|
|
|
681
1090
|
const { getByTestId } = render(
|
|
682
1091
|
<OverlayProvider>
|
|
@@ -706,7 +1115,7 @@ describe('MessageList pagination', () => {
|
|
|
706
1115
|
|
|
707
1116
|
fireEvent.press(scrollToBottomButton);
|
|
708
1117
|
|
|
709
|
-
expect(
|
|
1118
|
+
expect(jumpToTheLatestMessage).toHaveBeenCalledTimes(1);
|
|
710
1119
|
});
|
|
711
1120
|
});
|
|
712
1121
|
|
|
@@ -763,12 +1172,12 @@ describe('MessageList pagination', () => {
|
|
|
763
1172
|
});
|
|
764
1173
|
|
|
765
1174
|
it('should expose scroll to bottom as a message list accessibility action when visible', async () => {
|
|
766
|
-
const
|
|
767
|
-
mockedHook({ loadLatestMessages });
|
|
768
|
-
|
|
769
|
-
const { getByTestId } = await renderMessageListForScrollToBottom({
|
|
1175
|
+
const { channel, getByTestId } = await renderMessageListForScrollToBottom({
|
|
770
1176
|
staleChannelState: true,
|
|
771
1177
|
});
|
|
1178
|
+
const jumpToTheLatestMessage = jest
|
|
1179
|
+
.spyOn(channel.messagePaginator, 'jumpToTheLatestMessage')
|
|
1180
|
+
.mockResolvedValue(undefined as never);
|
|
772
1181
|
|
|
773
1182
|
act(() => {
|
|
774
1183
|
fireEvent(getByTestId('message-flat-list'), 'scroll', {
|
|
@@ -797,21 +1206,22 @@ describe('MessageList pagination', () => {
|
|
|
797
1206
|
});
|
|
798
1207
|
});
|
|
799
1208
|
|
|
800
|
-
expect(
|
|
1209
|
+
expect(jumpToTheLatestMessage).toHaveBeenCalledTimes(1);
|
|
801
1210
|
});
|
|
802
1211
|
|
|
803
1212
|
it('should preserve additional message list accessibility actions', async () => {
|
|
804
|
-
const loadLatestMessages = jest.fn(() => Promise.resolve());
|
|
805
1213
|
const onAccessibilityAction = jest.fn();
|
|
806
|
-
mockedHook({ loadLatestMessages });
|
|
807
1214
|
|
|
808
|
-
const { getByTestId } = await renderMessageListForScrollToBottom({
|
|
1215
|
+
const { channel, getByTestId } = await renderMessageListForScrollToBottom({
|
|
809
1216
|
additionalFlatListProps: {
|
|
810
1217
|
accessibilityActions: [{ label: 'Custom action', name: 'customAction' }],
|
|
811
1218
|
onAccessibilityAction,
|
|
812
1219
|
},
|
|
813
1220
|
staleChannelState: true,
|
|
814
1221
|
});
|
|
1222
|
+
const jumpToTheLatestMessage = jest
|
|
1223
|
+
.spyOn(channel.messagePaginator, 'jumpToTheLatestMessage')
|
|
1224
|
+
.mockResolvedValue(undefined as never);
|
|
815
1225
|
|
|
816
1226
|
act(() => {
|
|
817
1227
|
fireEvent(getByTestId('message-flat-list'), 'scroll', {
|
|
@@ -848,7 +1258,138 @@ describe('MessageList pagination', () => {
|
|
|
848
1258
|
});
|
|
849
1259
|
});
|
|
850
1260
|
|
|
851
|
-
expect(
|
|
1261
|
+
expect(jumpToTheLatestMessage).toHaveBeenCalledTimes(1);
|
|
852
1262
|
expect(onAccessibilityAction).toHaveBeenCalledTimes(1);
|
|
853
1263
|
});
|
|
854
1264
|
});
|
|
1265
|
+
|
|
1266
|
+
// A thread list renders the thread's replies, so everything it reads or drives has to be the
|
|
1267
|
+
// thread's paginator. It used to drive the channel's, moving the hidden channel list and leaving the
|
|
1268
|
+
// channel's unread state wrong after the thread closed.
|
|
1269
|
+
describe('MessageList in a thread', () => {
|
|
1270
|
+
afterEach(() => {
|
|
1271
|
+
cleanup();
|
|
1272
|
+
jest.restoreAllMocks();
|
|
1273
|
+
});
|
|
1274
|
+
|
|
1275
|
+
const setup = async () => {
|
|
1276
|
+
const mockedChannel = generateChannelResponse({
|
|
1277
|
+
messages: Array.from({ length: 5 }, (_, i) => generateMessage({ text: `message-${i}` })),
|
|
1278
|
+
});
|
|
1279
|
+
const chatClient = await getTestClientWithUser({ id: 'testID' } as UserResponse);
|
|
1280
|
+
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
1281
|
+
const channel = chatClient.channel('messaging', mockedChannel.channel.id);
|
|
1282
|
+
await channel.watch();
|
|
1283
|
+
|
|
1284
|
+
const parentMessage = channel.state.formatMessage(generateMessage({ text: 'parent' }));
|
|
1285
|
+
const threadInstance = new Thread({ channel, client: chatClient, parentMessage });
|
|
1286
|
+
const replies = Array.from({ length: 5 }, (_, i) =>
|
|
1287
|
+
channel.state.formatMessage(
|
|
1288
|
+
generateMessage({ parent_id: parentMessage.id, text: `reply-${i}` }),
|
|
1289
|
+
),
|
|
1290
|
+
) as LocalMessage[];
|
|
1291
|
+
act(() =>
|
|
1292
|
+
threadInstance.messagePaginator.state.partialNext({
|
|
1293
|
+
hasMoreHead: false,
|
|
1294
|
+
hasMoreTail: false,
|
|
1295
|
+
isLoading: false,
|
|
1296
|
+
items: replies,
|
|
1297
|
+
}),
|
|
1298
|
+
);
|
|
1299
|
+
|
|
1300
|
+
const utils = render(
|
|
1301
|
+
<OverlayProvider>
|
|
1302
|
+
<Chat client={chatClient}>
|
|
1303
|
+
<ThreadComponent thread={threadInstance}>
|
|
1304
|
+
<MessageList />
|
|
1305
|
+
</ThreadComponent>
|
|
1306
|
+
</Chat>
|
|
1307
|
+
</OverlayProvider>,
|
|
1308
|
+
);
|
|
1309
|
+
await waitFor(() => expect(utils.getByText('reply-4')).toBeTruthy());
|
|
1310
|
+
|
|
1311
|
+
return { ...utils, channel, chatClient, replies, threadInstance };
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
it("leaves the channel's viewing-live flag as the channel list reported it", async () => {
|
|
1315
|
+
const { channel, unmount } = await setup();
|
|
1316
|
+
act(() => channel.messagePaginator.setViewingLive(true));
|
|
1317
|
+
|
|
1318
|
+
unmount();
|
|
1319
|
+
|
|
1320
|
+
expect(channel.messagePaginator.isViewingLive).toBe(true);
|
|
1321
|
+
});
|
|
1322
|
+
|
|
1323
|
+
it('jumps the thread, not the channel, to its latest replies from the scroll to bottom button', async () => {
|
|
1324
|
+
const { channel, getByTestId, threadInstance } = await setup();
|
|
1325
|
+
// The thread was opened at an older reply, so newer replies exist past its loaded window.
|
|
1326
|
+
act(() => threadInstance.messagePaginator.state.partialNext({ hasMoreHead: true }));
|
|
1327
|
+
const jumpThread = jest
|
|
1328
|
+
.spyOn(threadInstance.messagePaginator, 'jumpToTheLatestMessage')
|
|
1329
|
+
.mockResolvedValue(true);
|
|
1330
|
+
const jumpChannel = jest
|
|
1331
|
+
.spyOn(channel.messagePaginator, 'jumpToTheLatestMessage')
|
|
1332
|
+
.mockResolvedValue(true);
|
|
1333
|
+
|
|
1334
|
+
act(() => {
|
|
1335
|
+
fireEvent(getByTestId('message-flat-list'), 'scroll', {
|
|
1336
|
+
nativeEvent: {
|
|
1337
|
+
contentOffset: { y: 1900 },
|
|
1338
|
+
contentSize: { height: 2000, width: 200 },
|
|
1339
|
+
layoutMeasurement: { height: 400, width: 200 },
|
|
1340
|
+
},
|
|
1341
|
+
});
|
|
1342
|
+
});
|
|
1343
|
+
const button = await waitFor(() => getByTestId('scroll-to-bottom-button'));
|
|
1344
|
+
await act(() => {
|
|
1345
|
+
fireEvent.press(button);
|
|
1346
|
+
return Promise.resolve();
|
|
1347
|
+
});
|
|
1348
|
+
|
|
1349
|
+
await waitFor(() => expect(jumpThread).toHaveBeenCalledTimes(1));
|
|
1350
|
+
expect(jumpChannel).not.toHaveBeenCalled();
|
|
1351
|
+
});
|
|
1352
|
+
it('does not mark the channel read from the scroll to bottom button', async () => {
|
|
1353
|
+
const { channel, chatClient, getByTestId } = await setup();
|
|
1354
|
+
const throttledMarkRead = jest.spyOn(chatClient.messageDeliveryReporter, 'throttledMarkRead');
|
|
1355
|
+
const markReadLocally = jest.spyOn(channel, 'markReadLocally');
|
|
1356
|
+
|
|
1357
|
+
act(() => {
|
|
1358
|
+
fireEvent(getByTestId('message-flat-list'), 'scroll', {
|
|
1359
|
+
nativeEvent: {
|
|
1360
|
+
contentOffset: { y: 1900 },
|
|
1361
|
+
contentSize: { height: 2000, width: 200 },
|
|
1362
|
+
layoutMeasurement: { height: 400, width: 200 },
|
|
1363
|
+
},
|
|
1364
|
+
});
|
|
1365
|
+
});
|
|
1366
|
+
const button = await waitFor(() => getByTestId('scroll-to-bottom-button'));
|
|
1367
|
+
await act(async () => {
|
|
1368
|
+
fireEvent.press(button);
|
|
1369
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
1370
|
+
});
|
|
1371
|
+
|
|
1372
|
+
expect(throttledMarkRead).not.toHaveBeenCalledWith(channel);
|
|
1373
|
+
expect(markReadLocally).not.toHaveBeenCalled();
|
|
1374
|
+
});
|
|
1375
|
+
|
|
1376
|
+
it("places the unread separator from the thread's unread state, not the channel's", async () => {
|
|
1377
|
+
const { channel, queryAllByLabelText, replies, threadInstance } = await setup();
|
|
1378
|
+
|
|
1379
|
+
act(() =>
|
|
1380
|
+
channel.messagePaginator.unreadStateSnapshot.partialNext({
|
|
1381
|
+
firstUnreadMessageId: replies[2].id,
|
|
1382
|
+
unreadCount: 3,
|
|
1383
|
+
}),
|
|
1384
|
+
);
|
|
1385
|
+
expect(queryAllByLabelText('Inline unread indicator')).toHaveLength(0);
|
|
1386
|
+
|
|
1387
|
+
act(() =>
|
|
1388
|
+
threadInstance.messagePaginator.unreadStateSnapshot.partialNext({
|
|
1389
|
+
firstUnreadMessageId: replies[3].id,
|
|
1390
|
+
unreadCount: 2,
|
|
1391
|
+
}),
|
|
1392
|
+
);
|
|
1393
|
+
await waitFor(() => expect(queryAllByLabelText('Inline unread indicator')).toHaveLength(1));
|
|
1394
|
+
});
|
|
1395
|
+
});
|