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
|
@@ -10,20 +10,26 @@ import {
|
|
|
10
10
|
waitFor,
|
|
11
11
|
within,
|
|
12
12
|
} from '@testing-library/react-native';
|
|
13
|
-
import
|
|
13
|
+
import { ChannelPaginator } from 'stream-chat';
|
|
14
|
+
import type {
|
|
15
|
+
Channel as ChannelType,
|
|
16
|
+
ChannelPaginatorOptions,
|
|
17
|
+
StreamChat,
|
|
18
|
+
UserResponse,
|
|
19
|
+
} from 'stream-chat';
|
|
14
20
|
|
|
15
21
|
import { useChannelsContext } from '../../../contexts/channelsContext/ChannelsContext';
|
|
16
22
|
import {
|
|
17
23
|
useComponentsContext,
|
|
18
24
|
WithComponents,
|
|
19
25
|
} from '../../../contexts/componentsContext/ComponentsContext';
|
|
26
|
+
import { useChannelName } from '../../../hooks/useChannelName';
|
|
20
27
|
import { getOrCreateChannelApi } from '../../../mock-builders/api/getOrCreateChannel';
|
|
21
28
|
|
|
22
29
|
import { queryChannelsApi } from '../../../mock-builders/api/queryChannels';
|
|
23
30
|
import { useMockedApis } from '../../../mock-builders/api/useMockedApis';
|
|
24
31
|
import dispatchChannelDeletedEvent from '../../../mock-builders/event/channelDeleted';
|
|
25
32
|
import dispatchChannelHiddenEvent from '../../../mock-builders/event/channelHidden';
|
|
26
|
-
import dispatchChannelTruncatedEvent from '../../../mock-builders/event/channelTruncated';
|
|
27
33
|
import dispatchChannelUpdatedEvent from '../../../mock-builders/event/channelUpdated';
|
|
28
34
|
import dispatchConnectionChangedEvent from '../../../mock-builders/event/connectionChanged';
|
|
29
35
|
import dispatchConnectionRecoveredEvent from '../../../mock-builders/event/connectionRecovered';
|
|
@@ -31,10 +37,10 @@ import dispatchMessageNewEvent from '../../../mock-builders/event/messageNew';
|
|
|
31
37
|
import dispatchNotificationAddedToChannelEvent from '../../../mock-builders/event/notificationAddedToChannel';
|
|
32
38
|
import dispatchNotificationMessageNewEvent from '../../../mock-builders/event/notificationMessageNew';
|
|
33
39
|
import dispatchNotificationRemovedFromChannel from '../../../mock-builders/event/notificationRemovedFromChannel';
|
|
34
|
-
import {
|
|
40
|
+
import { generateChannelResponse } from '../../../mock-builders/generator/channel';
|
|
35
41
|
import { generateMessage } from '../../../mock-builders/generator/message';
|
|
36
42
|
import { generateUser } from '../../../mock-builders/generator/user';
|
|
37
|
-
import { getTestClientWithUser } from '../../../mock-builders/mock';
|
|
43
|
+
import { getTestClientWithUser, setUser } from '../../../mock-builders/mock';
|
|
38
44
|
import { Chat } from '../../Chat/Chat';
|
|
39
45
|
import { ChannelList } from '../ChannelList';
|
|
40
46
|
|
|
@@ -51,12 +57,15 @@ jest.mock('../../ChannelPreview/ChannelSwipableWrapper', () => ({
|
|
|
51
57
|
* Custom ChannelPreview component used via WithComponents to verify channel rendering.
|
|
52
58
|
* Receives { channel, muted, unread, lastMessage } from ChannelPreview.
|
|
53
59
|
*/
|
|
54
|
-
const ChannelPreviewComponent = ({ channel }: { channel: ChannelType }) =>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
const ChannelPreviewComponent = ({ channel }: { channel: ChannelType }) => {
|
|
61
|
+
const name = useChannelName(channel);
|
|
62
|
+
return (
|
|
63
|
+
<View accessibilityLabel='list-item' testID={channel.id}>
|
|
64
|
+
<Text>{name}</Text>
|
|
65
|
+
<Text>{channel.messagePaginator.headItems[0]?.text}</Text>
|
|
66
|
+
</View>
|
|
67
|
+
);
|
|
68
|
+
};
|
|
60
69
|
|
|
61
70
|
/**
|
|
62
71
|
* Probe that reads swipeActionsEnabled from ChannelsContext.
|
|
@@ -68,12 +77,9 @@ const SwipeActionsProbe = () => {
|
|
|
68
77
|
};
|
|
69
78
|
|
|
70
79
|
/**
|
|
71
|
-
* Probe that
|
|
80
|
+
* Probe that renders once the list has loaded.
|
|
72
81
|
*/
|
|
73
|
-
const
|
|
74
|
-
const { refreshing } = useChannelsContext();
|
|
75
|
-
return <Text testID='refreshing'>{`${refreshing}`}</Text>;
|
|
76
|
-
};
|
|
82
|
+
const LoadedProbe = () => <Text testID='loaded'>loaded</Text>;
|
|
77
83
|
|
|
78
84
|
/**
|
|
79
85
|
* Probe that captures the context `refreshList` (the public, non-forced pull-to-refresh handler) so a
|
|
@@ -81,11 +87,13 @@ const RefreshingProbe = () => {
|
|
|
81
87
|
*/
|
|
82
88
|
let capturedRefreshList: (() => void | Promise<void>) | undefined;
|
|
83
89
|
const RefreshListProbe = () => {
|
|
84
|
-
const {
|
|
90
|
+
const { refreshList } = useChannelsContext();
|
|
85
91
|
capturedRefreshList = refreshList;
|
|
86
|
-
return <Text testID='
|
|
92
|
+
return <Text testID='loaded'>loaded</Text>;
|
|
87
93
|
};
|
|
88
94
|
|
|
95
|
+
const isRefreshing = () => screen.getByTestId('channel-list-view').props.refreshing;
|
|
96
|
+
|
|
89
97
|
const ChannelPreviewContent = ({ unread }: { unread?: number }) => (
|
|
90
98
|
<Text testID='preview-unread'>{`${unread}`}</Text>
|
|
91
99
|
);
|
|
@@ -118,14 +126,27 @@ describe('ChannelList', () => {
|
|
|
118
126
|
let testChannel1: ReturnType<typeof generateChannelResponse>;
|
|
119
127
|
let testChannel2: ReturnType<typeof generateChannelResponse>;
|
|
120
128
|
let testChannel3: ReturnType<typeof generateChannelResponse>;
|
|
121
|
-
|
|
122
|
-
|
|
129
|
+
let props: React.ComponentProps<typeof ChannelList>;
|
|
130
|
+
let paginatorCount = 0;
|
|
131
|
+
|
|
132
|
+
// The app owns the list's paginator: it creates it and registers it on the channel manager.
|
|
133
|
+
const createPaginator = (options: Omit<ChannelPaginatorOptions, 'client'> = {}) => {
|
|
134
|
+
paginatorCount += 1;
|
|
135
|
+
const paginator = new ChannelPaginator({
|
|
136
|
+
client: chatClient,
|
|
137
|
+
filters: {},
|
|
138
|
+
id: `channels:test-${paginatorCount}`,
|
|
139
|
+
...options,
|
|
140
|
+
});
|
|
141
|
+
chatClient.channelManager.insertPaginator({ paginator });
|
|
142
|
+
return paginator;
|
|
123
143
|
};
|
|
124
144
|
|
|
125
145
|
beforeEach(async () => {
|
|
126
146
|
jest.clearAllMocks();
|
|
127
147
|
expectedChannelDetailsBottomSheetOverride = undefined;
|
|
128
|
-
chatClient = await getTestClientWithUser({ id: 'dan' });
|
|
148
|
+
chatClient = await getTestClientWithUser({ id: 'dan' } as UserResponse);
|
|
149
|
+
props = { paginator: createPaginator() };
|
|
129
150
|
testChannel1 = generateChannelResponse();
|
|
130
151
|
testChannel2 = generateChannelResponse();
|
|
131
152
|
testChannel3 = generateChannelResponse();
|
|
@@ -161,7 +182,7 @@ describe('ChannelList', () => {
|
|
|
161
182
|
await waitFor(() => expect(getByTestId(testChannel1.channel.id)).toBeTruthy());
|
|
162
183
|
});
|
|
163
184
|
|
|
164
|
-
it('should
|
|
185
|
+
it('should load a new paginator when the paginator prop changes', async () => {
|
|
165
186
|
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
166
187
|
|
|
167
188
|
render(
|
|
@@ -184,7 +205,9 @@ describe('ChannelList', () => {
|
|
|
184
205
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
185
206
|
<ChannelList
|
|
186
207
|
{...props}
|
|
187
|
-
|
|
208
|
+
paginator={createPaginator({
|
|
209
|
+
filters: { dummyFilter: true } as ChannelPaginatorOptions['filters'],
|
|
210
|
+
})}
|
|
188
211
|
/>
|
|
189
212
|
</WithComponents>
|
|
190
213
|
</Chat>,
|
|
@@ -195,7 +218,7 @@ describe('ChannelList', () => {
|
|
|
195
218
|
});
|
|
196
219
|
});
|
|
197
220
|
|
|
198
|
-
it('should
|
|
221
|
+
it('should query with the paginator request options and load a swapped-in paginator', async () => {
|
|
199
222
|
const queryChannelsSpy = jest.spyOn(chatClient, 'queryChannels');
|
|
200
223
|
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
201
224
|
|
|
@@ -204,10 +227,12 @@ describe('ChannelList', () => {
|
|
|
204
227
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
205
228
|
<ChannelList
|
|
206
229
|
{...props}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
230
|
+
paginator={createPaginator({
|
|
231
|
+
requestOptions: {
|
|
232
|
+
filter_values: { user_id: 'dan' },
|
|
233
|
+
predefined_filter: 'user_messaging',
|
|
234
|
+
},
|
|
235
|
+
})}
|
|
211
236
|
/>
|
|
212
237
|
</WithComponents>
|
|
213
238
|
</Chat>,
|
|
@@ -217,16 +242,20 @@ describe('ChannelList', () => {
|
|
|
217
242
|
expect(screen.getByTestId(testChannel1.channel.id)).toBeTruthy();
|
|
218
243
|
});
|
|
219
244
|
|
|
245
|
+
// v10: the orchestrator's `ChannelPaginator` issues a single v10-shaped request object to
|
|
246
|
+
// `client.queryChannels(request)` (was the legacy `(filters, sort, options, ...)` positional form).
|
|
247
|
+
// `filter_values` / `predefined_filter` now travel inside that one request object. The trailing
|
|
248
|
+
// `undefined` is the optional per-request `requestOptions` (abort signal) arg the paginator threads
|
|
249
|
+
// through `queryChannelsAndHydrate` (LLC #1828); the channel list never passes one.
|
|
220
250
|
expect(queryChannelsSpy).toHaveBeenNthCalledWith(
|
|
221
251
|
1,
|
|
222
|
-
{},
|
|
223
|
-
expect.anything(),
|
|
224
252
|
expect.objectContaining({
|
|
253
|
+
filter_conditions: {},
|
|
225
254
|
filter_values: { user_id: 'dan' },
|
|
226
255
|
offset: 0,
|
|
227
256
|
predefined_filter: 'user_messaging',
|
|
228
257
|
}),
|
|
229
|
-
|
|
258
|
+
undefined,
|
|
230
259
|
);
|
|
231
260
|
|
|
232
261
|
useMockedApis(chatClient, [queryChannelsApi([testChannel2])]);
|
|
@@ -236,10 +265,12 @@ describe('ChannelList', () => {
|
|
|
236
265
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
237
266
|
<ChannelList
|
|
238
267
|
{...props}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
268
|
+
paginator={createPaginator({
|
|
269
|
+
requestOptions: {
|
|
270
|
+
filter_values: { user_id: 'sara' },
|
|
271
|
+
predefined_filter: 'user_messaging',
|
|
272
|
+
},
|
|
273
|
+
})}
|
|
243
274
|
/>
|
|
244
275
|
</WithComponents>
|
|
245
276
|
</Chat>,
|
|
@@ -252,72 +283,67 @@ describe('ChannelList', () => {
|
|
|
252
283
|
|
|
253
284
|
expect(queryChannelsSpy).toHaveBeenNthCalledWith(
|
|
254
285
|
2,
|
|
255
|
-
{},
|
|
256
|
-
expect.anything(),
|
|
257
286
|
expect.objectContaining({
|
|
287
|
+
filter_conditions: {},
|
|
258
288
|
filter_values: { user_id: 'sara' },
|
|
259
289
|
offset: 0,
|
|
260
290
|
predefined_filter: 'user_messaging',
|
|
261
291
|
}),
|
|
262
|
-
|
|
292
|
+
undefined,
|
|
263
293
|
);
|
|
264
294
|
});
|
|
265
295
|
|
|
266
|
-
it('should
|
|
296
|
+
it('should swap results when a paginator with other filters replaces the current one', async () => {
|
|
267
297
|
const deferredCallForStaleFilter = new DeferredPromise();
|
|
268
298
|
const deferredCallForFreshFilter = new DeferredPromise();
|
|
269
299
|
const staleFilter = { 'initial-filter': { a: { $gt: 'c' } } };
|
|
270
300
|
const freshFilter = { 'new-filter': { a: { $gt: 'c' } } };
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
} as unknown as Parameters<typeof generateChannel>[0]) as unknown as {
|
|
277
|
-
countUnread: () => number;
|
|
278
|
-
messageComposer: { registerDraftEventSubscriptions: () => () => void };
|
|
279
|
-
muteStatus: () => { muted: boolean };
|
|
280
|
-
on: jest.Mock;
|
|
281
|
-
};
|
|
282
|
-
channel.countUnread = () => 0;
|
|
283
|
-
channel.muteStatus = () => ({ muted: false });
|
|
284
|
-
channel.on = jest.fn(() => ({ unsubscribe: jest.fn() }));
|
|
285
|
-
channel.messageComposer = {
|
|
286
|
-
registerDraftEventSubscriptions: jest.fn(() => jest.fn()),
|
|
287
|
-
};
|
|
288
|
-
return channel;
|
|
289
|
-
};
|
|
290
|
-
const staleChannel = [createMockChannel('stale-channel')];
|
|
291
|
-
const freshChannel = [createMockChannel('new-channel')];
|
|
301
|
+
// v10: the orchestrator hydrates REAL `Channel` instances from the `queryChannels` response, so the
|
|
302
|
+
// mock must resolve the actual response shape (`{ channels: ChannelResponse[] }`) rather than the
|
|
303
|
+
// hand-rolled channel stubs the legacy `setChannels` array accepted.
|
|
304
|
+
const staleChannel = generateChannelResponse({ id: 'stale-channel' });
|
|
305
|
+
const freshChannel = generateChannelResponse({ id: 'new-channel' });
|
|
292
306
|
const spy = jest.spyOn(chatClient, 'queryChannels');
|
|
293
|
-
|
|
294
|
-
|
|
307
|
+
// v10: `client.queryChannels(request)` receives a single v10-shaped request object, so the filter to
|
|
308
|
+
// discriminate on now lives under `request.filter_conditions` (was the positional `filters` arg).
|
|
309
|
+
spy.mockImplementation(((request: Parameters<typeof chatClient.queryChannels>[0] = {}) => {
|
|
310
|
+
const filterConditions = request.filter_conditions ?? {};
|
|
311
|
+
if (Object.prototype.hasOwnProperty.call(filterConditions, 'new-filter')) {
|
|
295
312
|
return deferredCallForFreshFilter.promise;
|
|
296
313
|
}
|
|
297
314
|
return deferredCallForStaleFilter.promise;
|
|
298
|
-
}) as typeof chatClient.queryChannels);
|
|
315
|
+
}) as unknown as typeof chatClient.queryChannels);
|
|
299
316
|
|
|
300
317
|
const { rerender, queryByTestId } = render(
|
|
301
318
|
<Chat client={chatClient}>
|
|
302
319
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
303
320
|
<ChannelList
|
|
304
321
|
{...props}
|
|
305
|
-
|
|
322
|
+
paginator={createPaginator({
|
|
323
|
+
filters: staleFilter as ChannelPaginatorOptions['filters'],
|
|
324
|
+
})}
|
|
306
325
|
/>
|
|
307
326
|
</WithComponents>
|
|
308
327
|
</Chat>,
|
|
309
328
|
);
|
|
310
329
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
expect.
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
330
|
+
// The paginator issues its query asynchronously (on the post-render effect), so wait for the call
|
|
331
|
+
// instead of asserting synchronously as the legacy synchronous `queryChannels` allowed.
|
|
332
|
+
await waitFor(() => {
|
|
333
|
+
expect(spy).toHaveBeenNthCalledWith(
|
|
334
|
+
1,
|
|
335
|
+
expect.objectContaining({ filter_conditions: staleFilter }),
|
|
336
|
+
undefined,
|
|
337
|
+
);
|
|
338
|
+
});
|
|
318
339
|
|
|
340
|
+
// Settle the first paginator's query before swapping in the second one.
|
|
341
|
+
await act(async () => {
|
|
342
|
+
deferredCallForStaleFilter.resolve({ channels: [staleChannel] });
|
|
343
|
+
await deferredCallForStaleFilter.promise;
|
|
344
|
+
});
|
|
319
345
|
await waitFor(() => {
|
|
320
|
-
expect(queryByTestId('channel
|
|
346
|
+
expect(queryByTestId('stale-channel')).toBeTruthy();
|
|
321
347
|
});
|
|
322
348
|
|
|
323
349
|
rerender(
|
|
@@ -325,27 +351,31 @@ describe('ChannelList', () => {
|
|
|
325
351
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
326
352
|
<ChannelList
|
|
327
353
|
{...props}
|
|
328
|
-
|
|
354
|
+
paginator={createPaginator({
|
|
355
|
+
filters: freshFilter as ChannelPaginatorOptions['filters'],
|
|
356
|
+
})}
|
|
329
357
|
/>
|
|
330
358
|
</WithComponents>
|
|
331
359
|
</Chat>,
|
|
332
360
|
);
|
|
333
361
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
362
|
+
// The new paginator loads its first page; its response is still awaiting at this point.
|
|
363
|
+
await waitFor(() => {
|
|
364
|
+
expect(spy).toHaveBeenNthCalledWith(
|
|
365
|
+
2,
|
|
366
|
+
expect.objectContaining({ filter_conditions: freshFilter }),
|
|
367
|
+
undefined,
|
|
368
|
+
);
|
|
369
|
+
});
|
|
341
370
|
|
|
342
|
-
await act(() => {
|
|
343
|
-
|
|
344
|
-
deferredCallForFreshFilter.
|
|
371
|
+
await act(async () => {
|
|
372
|
+
deferredCallForFreshFilter.resolve({ channels: [freshChannel] });
|
|
373
|
+
await deferredCallForFreshFilter.promise;
|
|
345
374
|
});
|
|
375
|
+
// Once it resolves the list shows the new paginator's channels instead of the old ones.
|
|
346
376
|
await waitFor(() => {
|
|
347
|
-
expect(queryByTestId('channel-list-view')).toBeTruthy();
|
|
348
377
|
expect(queryByTestId('new-channel')).toBeTruthy();
|
|
378
|
+
expect(queryByTestId('stale-channel')).toBeNull();
|
|
349
379
|
});
|
|
350
380
|
});
|
|
351
381
|
|
|
@@ -481,19 +511,43 @@ describe('ChannelList', () => {
|
|
|
481
511
|
|
|
482
512
|
describe('Event handling', () => {
|
|
483
513
|
describe('message.new', () => {
|
|
514
|
+
// The message must carry the target channel's `cid`: v10's `MessageIntervalPaginator` filters
|
|
515
|
+
// ingested messages by `cid` (`buildMatchFilters`), so a message without one is dropped and never
|
|
516
|
+
// reaches the channel's `messagePaginator.headItems` that the preview reads.
|
|
484
517
|
const sendNewMessageOnChannel3 = () => {
|
|
485
518
|
const newMessage = generateMessage({
|
|
519
|
+
cid: testChannel3.channel.cid,
|
|
486
520
|
user: generateUser(),
|
|
487
521
|
});
|
|
488
522
|
act(() => dispatchMessageNewEvent(chatClient, newMessage, testChannel3.channel));
|
|
489
523
|
return newMessage;
|
|
490
524
|
};
|
|
491
525
|
|
|
526
|
+
const getRenderedOrder = () =>
|
|
527
|
+
screen.getAllByLabelText('list-item').map((item) => item.props.testID);
|
|
528
|
+
|
|
529
|
+
// Settle the list to its loaded channels (past the skeleton→channels swap) before reading order.
|
|
530
|
+
const waitForRenderedChannels = async (length: number) => {
|
|
531
|
+
let order: string[] = [];
|
|
532
|
+
await waitFor(() => {
|
|
533
|
+
order = getRenderedOrder();
|
|
534
|
+
expect(order).toHaveLength(length);
|
|
535
|
+
});
|
|
536
|
+
return order;
|
|
537
|
+
};
|
|
538
|
+
|
|
492
539
|
beforeEach(() => {
|
|
493
540
|
useMockedApis(chatClient, [queryChannelsApi([testChannel1, testChannel2, testChannel3])]);
|
|
494
541
|
});
|
|
495
542
|
|
|
496
|
-
|
|
543
|
+
// v10 removed the implicit "float to top" on events: the `ChannelManager` no longer boosts a
|
|
544
|
+
// channel on `message.new`, so nothing relocates a channel except `sort` itself. (To force a
|
|
545
|
+
// channel to the top regardless of the sort an integrator now calls `paginator.boost(cid)`.)
|
|
546
|
+
// `ChannelList`'s default `sort` is `[]`, which the paginator reads as "unspecified" and
|
|
547
|
+
// resolves to the backend default — `last_message_at` descending — so the receiving channel does
|
|
548
|
+
// rise to the top here, on recency rather than on an event-driven boost. These mock channels
|
|
549
|
+
// carry no messages, so every other channel stays tied and keeps its cid order.
|
|
550
|
+
it('should float the channel to the top on a new message with the default sort', async () => {
|
|
497
551
|
render(
|
|
498
552
|
<Chat client={chatClient}>
|
|
499
553
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
@@ -503,6 +557,7 @@ describe('ChannelList', () => {
|
|
|
503
557
|
);
|
|
504
558
|
|
|
505
559
|
await waitFor(() => expect(screen.getByTestId('channel-list-view')).toBeTruthy());
|
|
560
|
+
const orderBefore = await waitForRenderedChannels(3);
|
|
506
561
|
|
|
507
562
|
const newMessage = sendNewMessageOnChannel3();
|
|
508
563
|
|
|
@@ -510,14 +565,21 @@ describe('ChannelList', () => {
|
|
|
510
565
|
expect(screen.getByText(newMessage.text as string)).toBeTruthy();
|
|
511
566
|
});
|
|
512
567
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
568
|
+
// The new message renders inside the receiving channel's own row (its preview updated)…
|
|
569
|
+
expect(
|
|
570
|
+
within(screen.getByTestId(testChannel3.channel.id)).getByText(newMessage.text as string),
|
|
571
|
+
).toBeTruthy();
|
|
572
|
+
// …and that channel is now the most recent one, so it leads the list while the rest hold
|
|
573
|
+
// their relative order.
|
|
574
|
+
expect(getRenderedOrder()).toEqual([
|
|
575
|
+
testChannel3.channel.id,
|
|
576
|
+
...orderBefore.filter((id) => id !== testChannel3.channel.id),
|
|
577
|
+
]);
|
|
518
578
|
});
|
|
519
579
|
|
|
520
|
-
|
|
580
|
+
// The server unhides a channel on any new message without sending `channel.visible`, so a hidden
|
|
581
|
+
// channel comes back to the list with the new message, leading it as the most recent one.
|
|
582
|
+
it('should bring a hidden channel back to the list on a new message', async () => {
|
|
521
583
|
render(
|
|
522
584
|
<Chat client={chatClient}>
|
|
523
585
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
@@ -527,31 +589,35 @@ describe('ChannelList', () => {
|
|
|
527
589
|
);
|
|
528
590
|
|
|
529
591
|
await waitFor(() => expect(screen.getByTestId('channel-list-view')).toBeTruthy());
|
|
530
|
-
|
|
592
|
+
const orderBefore = await waitForRenderedChannels(3);
|
|
531
593
|
|
|
532
|
-
|
|
594
|
+
act(() => dispatchChannelHiddenEvent(chatClient, testChannel3.channel));
|
|
533
595
|
await waitFor(() => {
|
|
534
|
-
expect(
|
|
596
|
+
expect(getRenderedOrder()).toHaveLength(2);
|
|
535
597
|
});
|
|
536
598
|
|
|
537
599
|
const newMessage = sendNewMessageOnChannel3();
|
|
538
600
|
|
|
539
601
|
await waitFor(() => {
|
|
540
|
-
expect(
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
await waitFor(() => {
|
|
546
|
-
expect(within(items[0]).getByText(newMessage.text as string)).toBeTruthy();
|
|
602
|
+
expect(
|
|
603
|
+
within(screen.getByTestId(testChannel3.channel.id)).getByText(
|
|
604
|
+
newMessage.text as string,
|
|
605
|
+
),
|
|
606
|
+
).toBeTruthy();
|
|
547
607
|
});
|
|
608
|
+
expect(getRenderedOrder()).toEqual([
|
|
609
|
+
testChannel3.channel.id,
|
|
610
|
+
...orderBefore.filter((id) => id !== testChannel3.channel.id),
|
|
611
|
+
]);
|
|
548
612
|
});
|
|
549
613
|
|
|
550
|
-
it('should not alter order if
|
|
614
|
+
it('should not alter order if the paginator locks its item order', async () => {
|
|
551
615
|
render(
|
|
552
616
|
<Chat client={chatClient}>
|
|
553
617
|
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
554
|
-
<ChannelList
|
|
618
|
+
<ChannelList
|
|
619
|
+
paginator={createPaginator({ paginatorOptions: { lockItemOrder: true } })}
|
|
620
|
+
/>
|
|
555
621
|
</WithComponents>
|
|
556
622
|
</Chat>,
|
|
557
623
|
);
|
|
@@ -559,6 +625,7 @@ describe('ChannelList', () => {
|
|
|
559
625
|
await waitFor(() => {
|
|
560
626
|
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
561
627
|
});
|
|
628
|
+
const orderBefore = await waitForRenderedChannels(3);
|
|
562
629
|
|
|
563
630
|
const newMessage = sendNewMessageOnChannel3();
|
|
564
631
|
|
|
@@ -566,36 +633,11 @@ describe('ChannelList', () => {
|
|
|
566
633
|
expect(screen.getByText(newMessage.text as string)).toBeTruthy();
|
|
567
634
|
});
|
|
568
635
|
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
});
|
|
575
|
-
it('should call the `onNewMessage` function prop, if provided', async () => {
|
|
576
|
-
const onNewMessage = jest.fn();
|
|
577
|
-
render(
|
|
578
|
-
<Chat client={chatClient}>
|
|
579
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
580
|
-
<ChannelList {...props} onNewMessage={onNewMessage} />
|
|
581
|
-
</WithComponents>
|
|
582
|
-
</Chat>,
|
|
583
|
-
);
|
|
584
|
-
|
|
585
|
-
await waitFor(() => {
|
|
586
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
587
|
-
});
|
|
588
|
-
|
|
589
|
-
act(() =>
|
|
590
|
-
dispatchMessageNewEvent(
|
|
591
|
-
chatClient,
|
|
592
|
-
testChannel2.channel as unknown as Parameters<typeof dispatchMessageNewEvent>[1],
|
|
593
|
-
),
|
|
594
|
-
);
|
|
595
|
-
|
|
596
|
-
await waitFor(() => {
|
|
597
|
-
expect(onNewMessage).toHaveBeenCalledTimes(1);
|
|
598
|
-
});
|
|
636
|
+
// Order is preserved and the new message renders in the receiving channel's row.
|
|
637
|
+
expect(getRenderedOrder()).toEqual(orderBefore);
|
|
638
|
+
expect(
|
|
639
|
+
within(screen.getByTestId(testChannel3.channel.id)).getByText(newMessage.text as string),
|
|
640
|
+
).toBeTruthy();
|
|
599
641
|
});
|
|
600
642
|
});
|
|
601
643
|
|
|
@@ -629,53 +671,6 @@ describe('ChannelList', () => {
|
|
|
629
671
|
expect(within(items[0]).getByTestId(testChannel3.channel.id)).toBeTruthy();
|
|
630
672
|
});
|
|
631
673
|
});
|
|
632
|
-
|
|
633
|
-
it('should call the `onNewMessage` function prop, if provided', async () => {
|
|
634
|
-
const onNewMessage = jest.fn();
|
|
635
|
-
render(
|
|
636
|
-
<Chat client={chatClient}>
|
|
637
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
638
|
-
<ChannelList {...props} onNewMessage={onNewMessage} />
|
|
639
|
-
</WithComponents>
|
|
640
|
-
</Chat>,
|
|
641
|
-
);
|
|
642
|
-
|
|
643
|
-
await waitFor(() => {
|
|
644
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
645
|
-
});
|
|
646
|
-
|
|
647
|
-
act(() =>
|
|
648
|
-
dispatchMessageNewEvent(
|
|
649
|
-
chatClient,
|
|
650
|
-
testChannel2.channel as unknown as Parameters<typeof dispatchMessageNewEvent>[1],
|
|
651
|
-
),
|
|
652
|
-
);
|
|
653
|
-
|
|
654
|
-
await waitFor(() => {
|
|
655
|
-
expect(onNewMessage).toHaveBeenCalledTimes(1);
|
|
656
|
-
});
|
|
657
|
-
});
|
|
658
|
-
|
|
659
|
-
it('should call the `onNewMessageNotification` function prop, if provided', async () => {
|
|
660
|
-
const onNewMessageNotification = jest.fn();
|
|
661
|
-
render(
|
|
662
|
-
<Chat client={chatClient}>
|
|
663
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
664
|
-
<ChannelList {...props} onNewMessageNotification={onNewMessageNotification} />
|
|
665
|
-
</WithComponents>
|
|
666
|
-
</Chat>,
|
|
667
|
-
);
|
|
668
|
-
|
|
669
|
-
await waitFor(() => {
|
|
670
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
671
|
-
});
|
|
672
|
-
|
|
673
|
-
act(() => dispatchNotificationMessageNewEvent(chatClient, testChannel2.channel));
|
|
674
|
-
|
|
675
|
-
await waitFor(() => {
|
|
676
|
-
expect(onNewMessageNotification).toHaveBeenCalledTimes(1);
|
|
677
|
-
});
|
|
678
|
-
});
|
|
679
674
|
});
|
|
680
675
|
|
|
681
676
|
describe('notification.added_to_channel', () => {
|
|
@@ -711,27 +706,6 @@ describe('ChannelList', () => {
|
|
|
711
706
|
expect(within(items[0]).getByTestId(testChannel3.channel.id)).toBeTruthy();
|
|
712
707
|
});
|
|
713
708
|
});
|
|
714
|
-
|
|
715
|
-
it('should call the `onAddedToChannel` function prop, if provided', async () => {
|
|
716
|
-
const onAddedToChannel = jest.fn();
|
|
717
|
-
render(
|
|
718
|
-
<Chat client={chatClient}>
|
|
719
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
720
|
-
<ChannelList {...props} onAddedToChannel={onAddedToChannel} />
|
|
721
|
-
</WithComponents>
|
|
722
|
-
</Chat>,
|
|
723
|
-
);
|
|
724
|
-
|
|
725
|
-
await waitFor(() => {
|
|
726
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
727
|
-
});
|
|
728
|
-
|
|
729
|
-
act(() => dispatchNotificationAddedToChannelEvent(chatClient, testChannel3.channel));
|
|
730
|
-
|
|
731
|
-
await waitFor(() => {
|
|
732
|
-
expect(onAddedToChannel).toHaveBeenCalledTimes(1);
|
|
733
|
-
});
|
|
734
|
-
});
|
|
735
709
|
});
|
|
736
710
|
|
|
737
711
|
describe('notification.removed_from_channel', () => {
|
|
@@ -752,37 +726,21 @@ describe('ChannelList', () => {
|
|
|
752
726
|
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
753
727
|
});
|
|
754
728
|
|
|
755
|
-
const items = screen.getAllByLabelText('list-item');
|
|
756
729
|
await waitFor(() => {
|
|
757
|
-
expect(
|
|
730
|
+
expect(screen.getAllByLabelText('list-item')).toHaveLength(3);
|
|
758
731
|
});
|
|
759
732
|
|
|
760
733
|
act(() => dispatchNotificationRemovedFromChannel(chatClient, testChannel3.channel));
|
|
761
734
|
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
it('should call the `onRemovedFromChannel` function prop, if provided', async () => {
|
|
769
|
-
const onRemovedFromChannel = jest.fn();
|
|
770
|
-
render(
|
|
771
|
-
<Chat client={chatClient}>
|
|
772
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
773
|
-
<ChannelList {...props} onRemovedFromChannel={onRemovedFromChannel} />
|
|
774
|
-
</WithComponents>
|
|
775
|
-
</Chat>,
|
|
776
|
-
);
|
|
777
|
-
|
|
778
|
-
await waitFor(() => {
|
|
779
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
735
|
+
// v10 routes the event through the `ChannelManager`'s async handler pipeline, so the removal
|
|
736
|
+
// lands after `act()` returns. Flush the pipeline (and the FlatList's deferred cell teardown)
|
|
737
|
+
// on a real timer, then re-query — asserting on a snapshot taken before this would see the old
|
|
738
|
+
// count.
|
|
739
|
+
await act(async () => {
|
|
740
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
780
741
|
});
|
|
781
|
-
|
|
782
|
-
act(() => dispatchNotificationRemovedFromChannel(chatClient, testChannel3.channel));
|
|
783
|
-
|
|
784
742
|
await waitFor(() => {
|
|
785
|
-
expect(
|
|
743
|
+
expect(screen.getAllByLabelText('list-item')).toHaveLength(2);
|
|
786
744
|
});
|
|
787
745
|
});
|
|
788
746
|
});
|
|
@@ -808,7 +766,7 @@ describe('ChannelList', () => {
|
|
|
808
766
|
act(() =>
|
|
809
767
|
dispatchChannelUpdatedEvent(chatClient, {
|
|
810
768
|
...testChannel2.channel,
|
|
811
|
-
name: 'updated',
|
|
769
|
+
custom: { name: 'updated' },
|
|
812
770
|
}),
|
|
813
771
|
);
|
|
814
772
|
|
|
@@ -816,32 +774,6 @@ describe('ChannelList', () => {
|
|
|
816
774
|
expect(screen.getByText('updated')).toBeTruthy();
|
|
817
775
|
});
|
|
818
776
|
});
|
|
819
|
-
|
|
820
|
-
it('should call the `onChannelUpdated` function prop, if provided', async () => {
|
|
821
|
-
const onChannelUpdated = jest.fn();
|
|
822
|
-
render(
|
|
823
|
-
<Chat client={chatClient}>
|
|
824
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
825
|
-
<ChannelList {...props} onChannelUpdated={onChannelUpdated} />
|
|
826
|
-
</WithComponents>
|
|
827
|
-
</Chat>,
|
|
828
|
-
);
|
|
829
|
-
|
|
830
|
-
await waitFor(() => {
|
|
831
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
832
|
-
});
|
|
833
|
-
|
|
834
|
-
act(() =>
|
|
835
|
-
dispatchChannelUpdatedEvent(chatClient, {
|
|
836
|
-
...testChannel2.channel,
|
|
837
|
-
name: 'updated',
|
|
838
|
-
}),
|
|
839
|
-
);
|
|
840
|
-
|
|
841
|
-
await waitFor(() => {
|
|
842
|
-
expect(onChannelUpdated).toHaveBeenCalledTimes(1);
|
|
843
|
-
});
|
|
844
|
-
});
|
|
845
777
|
});
|
|
846
778
|
|
|
847
779
|
describe('channel.deleted', () => {
|
|
@@ -862,37 +794,19 @@ describe('ChannelList', () => {
|
|
|
862
794
|
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
863
795
|
});
|
|
864
796
|
|
|
865
|
-
const items = screen.getAllByLabelText('list-item');
|
|
866
797
|
await waitFor(() => {
|
|
867
|
-
expect(
|
|
798
|
+
expect(screen.getAllByLabelText('list-item')).toHaveLength(2);
|
|
868
799
|
});
|
|
869
800
|
|
|
870
801
|
act(() => dispatchChannelDeletedEvent(chatClient, testChannel2.channel));
|
|
871
802
|
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
});
|
|
877
|
-
|
|
878
|
-
it('should call the `onChannelDeleted` function prop, if provided', async () => {
|
|
879
|
-
const onChannelDeleted = jest.fn();
|
|
880
|
-
render(
|
|
881
|
-
<Chat client={chatClient}>
|
|
882
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
883
|
-
<ChannelList {...props} onChannelDeleted={onChannelDeleted} />
|
|
884
|
-
</WithComponents>
|
|
885
|
-
</Chat>,
|
|
886
|
-
);
|
|
887
|
-
|
|
888
|
-
await waitFor(() => {
|
|
889
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
803
|
+
// The `ChannelManager` removes the channel via its async handler pipeline; flush it (and the
|
|
804
|
+
// FlatList's deferred cell teardown) on a real timer before re-querying.
|
|
805
|
+
await act(async () => {
|
|
806
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
890
807
|
});
|
|
891
|
-
|
|
892
|
-
act(() => dispatchChannelDeletedEvent(chatClient, testChannel2.channel));
|
|
893
|
-
|
|
894
808
|
await waitFor(() => {
|
|
895
|
-
expect(
|
|
809
|
+
expect(screen.getAllByLabelText('list-item')).toHaveLength(1);
|
|
896
810
|
});
|
|
897
811
|
});
|
|
898
812
|
});
|
|
@@ -915,37 +829,19 @@ describe('ChannelList', () => {
|
|
|
915
829
|
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
916
830
|
});
|
|
917
831
|
|
|
918
|
-
const items = screen.getAllByLabelText('list-item');
|
|
919
832
|
await waitFor(() => {
|
|
920
|
-
expect(
|
|
833
|
+
expect(screen.getAllByLabelText('list-item')).toHaveLength(2);
|
|
921
834
|
});
|
|
922
835
|
|
|
923
836
|
act(() => dispatchChannelHiddenEvent(chatClient, testChannel2.channel));
|
|
924
837
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
});
|
|
930
|
-
|
|
931
|
-
it('should call the `onChannelHidden` function prop, if provided', async () => {
|
|
932
|
-
const onChannelHidden = jest.fn();
|
|
933
|
-
render(
|
|
934
|
-
<Chat client={chatClient}>
|
|
935
|
-
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
936
|
-
<ChannelList {...props} onChannelHidden={onChannelHidden} />
|
|
937
|
-
</WithComponents>
|
|
938
|
-
</Chat>,
|
|
939
|
-
);
|
|
940
|
-
|
|
941
|
-
await waitFor(() => {
|
|
942
|
-
expect(screen.getByTestId('channel-list-view')).toBeTruthy();
|
|
838
|
+
// The `ChannelManager` drops the hidden channel via its async handler pipeline; flush it (and
|
|
839
|
+
// the FlatList's deferred cell teardown) on a real timer before re-querying.
|
|
840
|
+
await act(async () => {
|
|
841
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
943
842
|
});
|
|
944
|
-
|
|
945
|
-
act(() => dispatchChannelHiddenEvent(chatClient, testChannel2.channel));
|
|
946
|
-
|
|
947
843
|
await waitFor(() => {
|
|
948
|
-
expect(
|
|
844
|
+
expect(screen.getAllByLabelText('list-item')).toHaveLength(1);
|
|
949
845
|
});
|
|
950
846
|
});
|
|
951
847
|
});
|
|
@@ -976,20 +872,24 @@ describe('ChannelList', () => {
|
|
|
976
872
|
});
|
|
977
873
|
|
|
978
874
|
describe('connection.changed', () => {
|
|
979
|
-
it('
|
|
980
|
-
// Regression guard: a reconnect is the
|
|
981
|
-
// socket, so
|
|
982
|
-
//
|
|
983
|
-
//
|
|
875
|
+
it('refreshes on every reconnect, however close together, without surfacing in the refreshing UI', async () => {
|
|
876
|
+
// Regression guard for a shipped freeze bug: a reconnect is the trigger that re-watches
|
|
877
|
+
// channels on the fresh socket, so dropping one leaves its channels un-watched and their
|
|
878
|
+
// per-channel state (last message / unread) frozen until the next reconnect or an app reload.
|
|
879
|
+
// The list reorders anyway off member-level `notification.message_new`, which is what made it
|
|
880
|
+
// look like the connection was fine.
|
|
881
|
+
//
|
|
882
|
+
// Recovery is now owned by `client.connectionRecovery`, which has no throttle at all — the
|
|
883
|
+
// 5s window this used to have to be forced past belongs to pull-to-refresh only and is no
|
|
884
|
+
// longer on the reconnect path. The behaviour asserted here is unchanged.
|
|
984
885
|
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
985
|
-
const createChannelManagerSpy = jest.spyOn(chatClient, 'createChannelManager');
|
|
986
886
|
// Freeze the clock at t=0 for the whole mount so `lastRefresh` is seeded to 0 regardless of
|
|
987
887
|
// how many `Date.now()` calls the render makes.
|
|
988
888
|
const dateNowSpy = jest.spyOn(Date, 'now').mockReturnValue(0);
|
|
989
889
|
|
|
990
890
|
render(
|
|
991
891
|
<Chat client={chatClient}>
|
|
992
|
-
<WithComponents overrides={{ ChannelPreview:
|
|
892
|
+
<WithComponents overrides={{ ChannelPreview: LoadedProbe }}>
|
|
993
893
|
<ChannelList {...props} />
|
|
994
894
|
</WithComponents>
|
|
995
895
|
</Chat>,
|
|
@@ -997,15 +897,14 @@ describe('ChannelList', () => {
|
|
|
997
897
|
|
|
998
898
|
// The probe only renders once the mount query populates the list.
|
|
999
899
|
await waitFor(() => {
|
|
1000
|
-
expect(screen.getByTestId('
|
|
900
|
+
expect(screen.getByTestId('loaded')).toBeTruthy();
|
|
1001
901
|
});
|
|
902
|
+
expect(isRefreshing()).toBe(false);
|
|
1002
903
|
|
|
1003
904
|
// Advance the clock 6s past mount so both reconnects observe t=6000.
|
|
1004
905
|
dateNowSpy.mockReturnValue(6000);
|
|
1005
906
|
|
|
1006
|
-
const channelManager =
|
|
1007
|
-
typeof chatClient.createChannelManager
|
|
1008
|
-
>;
|
|
907
|
+
const channelManager = chatClient.channelManager;
|
|
1009
908
|
// Spy (not replace) so reconnect queries still hydrate through the mocked axios response and
|
|
1010
909
|
// keep the list — and therefore the refreshing probe — mounted.
|
|
1011
910
|
const querySpy = jest.spyOn(chatClient, 'queryChannels');
|
|
@@ -1019,11 +918,13 @@ describe('ChannelList', () => {
|
|
|
1019
918
|
// Let query #1 settle so the ChannelManager's in-flight guard (isLoading) clears; otherwise it,
|
|
1020
919
|
// not the debounce, would be what drops the second query.
|
|
1021
920
|
await waitFor(() => {
|
|
1022
|
-
expect(
|
|
921
|
+
expect(
|
|
922
|
+
channelManager.state.getLatestValue().paginators[0].state.getLatestValue().isLoading,
|
|
923
|
+
).toBe(false);
|
|
1023
924
|
});
|
|
1024
925
|
|
|
1025
|
-
// Reconnect #2 at t=6000, i.e. 0ms after reconnect #1
|
|
1026
|
-
//
|
|
926
|
+
// Reconnect #2 at t=6000, i.e. 0ms after reconnect #1 — well inside what used to be the
|
|
927
|
+
// debounce window. It must still fire a fresh query.
|
|
1027
928
|
act(() => dispatchConnectionChangedEvent(chatClient, false));
|
|
1028
929
|
act(() => dispatchConnectionChangedEvent(chatClient, true));
|
|
1029
930
|
await waitFor(() => {
|
|
@@ -1031,10 +932,12 @@ describe('ChannelList', () => {
|
|
|
1031
932
|
});
|
|
1032
933
|
|
|
1033
934
|
// Background reconnection refreshes never surface in the pull-to-refresh UI.
|
|
1034
|
-
expect(
|
|
935
|
+
expect(isRefreshing()).toBe(false);
|
|
1035
936
|
|
|
1036
937
|
await waitFor(() => {
|
|
1037
|
-
expect(
|
|
938
|
+
expect(
|
|
939
|
+
channelManager.state.getLatestValue().paginators[0].state.getLatestValue().isLoading,
|
|
940
|
+
).toBe(false);
|
|
1038
941
|
});
|
|
1039
942
|
dateNowSpy.mockRestore();
|
|
1040
943
|
});
|
|
@@ -1046,7 +949,6 @@ describe('ChannelList', () => {
|
|
|
1046
949
|
// 5s debounce must still hold — a second pull within the window of the last successful refresh
|
|
1047
950
|
// is a no-op and fires no query.
|
|
1048
951
|
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
1049
|
-
const createChannelManagerSpy = jest.spyOn(chatClient, 'createChannelManager');
|
|
1050
952
|
const dateNowSpy = jest.spyOn(Date, 'now').mockReturnValue(0); // mount seeds `lastRefresh` to 0
|
|
1051
953
|
|
|
1052
954
|
render(
|
|
@@ -1058,12 +960,11 @@ describe('ChannelList', () => {
|
|
|
1058
960
|
);
|
|
1059
961
|
|
|
1060
962
|
await waitFor(() => {
|
|
1061
|
-
expect(screen.getByTestId('
|
|
963
|
+
expect(screen.getByTestId('loaded')).toBeTruthy();
|
|
1062
964
|
});
|
|
965
|
+
expect(isRefreshing()).toBe(false);
|
|
1063
966
|
|
|
1064
|
-
const channelManager =
|
|
1065
|
-
typeof chatClient.createChannelManager
|
|
1066
|
-
>;
|
|
967
|
+
const channelManager = chatClient.channelManager;
|
|
1067
968
|
const querySpy = jest.spyOn(chatClient, 'queryChannels');
|
|
1068
969
|
|
|
1069
970
|
// First pull at t=6000 (6s after mount → outside the window) fires a query.
|
|
@@ -1075,7 +976,9 @@ describe('ChannelList', () => {
|
|
|
1075
976
|
expect(querySpy).toHaveBeenCalledTimes(1);
|
|
1076
977
|
});
|
|
1077
978
|
await waitFor(() => {
|
|
1078
|
-
expect(
|
|
979
|
+
expect(
|
|
980
|
+
channelManager.state.getLatestValue().paginators[0].state.getLatestValue().isLoading,
|
|
981
|
+
).toBe(false);
|
|
1079
982
|
});
|
|
1080
983
|
|
|
1081
984
|
// Second pull at t=6000 (0ms later → inside the window) is throttled: no additional query.
|
|
@@ -1087,29 +990,170 @@ describe('ChannelList', () => {
|
|
|
1087
990
|
dateNowSpy.mockRestore();
|
|
1088
991
|
});
|
|
1089
992
|
});
|
|
993
|
+
});
|
|
1090
994
|
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
<ChannelList {...props} onChannelTruncated={onChannelTruncated} />
|
|
1099
|
-
</WithComponents>
|
|
1100
|
-
</Chat>,
|
|
1101
|
-
);
|
|
995
|
+
describe('rows', () => {
|
|
996
|
+
const previewRenders: Record<string, number> = {};
|
|
997
|
+
const CountingPreview = ({ channel }: { channel: ChannelType }) => {
|
|
998
|
+
const id = channel.id ?? '';
|
|
999
|
+
previewRenders[id] = (previewRenders[id] ?? 0) + 1;
|
|
1000
|
+
return <View accessibilityLabel='list-item' testID={id} />;
|
|
1001
|
+
};
|
|
1102
1002
|
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1003
|
+
it('re-renders only the row of the channel that received a message', async () => {
|
|
1004
|
+
useMockedApis(chatClient, [queryChannelsApi([testChannel1, testChannel2, testChannel3])]);
|
|
1005
|
+
|
|
1006
|
+
render(
|
|
1007
|
+
<Chat client={chatClient}>
|
|
1008
|
+
<WithComponents overrides={{ ChannelPreview: CountingPreview }}>
|
|
1009
|
+
<ChannelList {...props} />
|
|
1010
|
+
</WithComponents>
|
|
1011
|
+
</Chat>,
|
|
1012
|
+
);
|
|
1013
|
+
|
|
1014
|
+
await waitFor(() => expect(screen.getAllByLabelText('list-item')).toHaveLength(3));
|
|
1015
|
+
const [firstId, ...otherIds] = screen
|
|
1016
|
+
.getAllByLabelText('list-item')
|
|
1017
|
+
.map((item) => item.props.testID);
|
|
1018
|
+
const firstChannel = [testChannel1, testChannel2, testChannel3].find(
|
|
1019
|
+
({ channel }) => channel.id === firstId,
|
|
1020
|
+
)?.channel;
|
|
1021
|
+
Object.keys(previewRenders).forEach((id) => {
|
|
1022
|
+
previewRenders[id] = 0;
|
|
1023
|
+
});
|
|
1106
1024
|
|
|
1107
|
-
|
|
1025
|
+
act(() =>
|
|
1026
|
+
dispatchMessageNewEvent(
|
|
1027
|
+
chatClient,
|
|
1028
|
+
generateMessage({ cid: firstChannel?.cid, user: generateUser() }),
|
|
1029
|
+
firstChannel,
|
|
1030
|
+
),
|
|
1031
|
+
);
|
|
1108
1032
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1033
|
+
await waitFor(() => expect(previewRenders[firstId]).toBeGreaterThan(0));
|
|
1034
|
+
otherIds.forEach((id) => expect(previewRenders[id]).toBe(0));
|
|
1035
|
+
});
|
|
1036
|
+
|
|
1037
|
+
it('selects with the latest onSelect', async () => {
|
|
1038
|
+
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
1039
|
+
const firstOnSelect = jest.fn();
|
|
1040
|
+
const secondOnSelect = jest.fn();
|
|
1041
|
+
|
|
1042
|
+
render(
|
|
1043
|
+
<Chat client={chatClient}>
|
|
1044
|
+
<ChannelList {...props} onSelect={firstOnSelect} />
|
|
1045
|
+
</Chat>,
|
|
1046
|
+
);
|
|
1047
|
+
await waitFor(() => expect(screen.getByTestId('channel-preview-button')).toBeTruthy());
|
|
1048
|
+
|
|
1049
|
+
screen.rerender(
|
|
1050
|
+
<Chat client={chatClient}>
|
|
1051
|
+
<ChannelList {...props} onSelect={secondOnSelect} />
|
|
1052
|
+
</Chat>,
|
|
1053
|
+
);
|
|
1054
|
+
fireEvent.press(screen.getByTestId('channel-preview-button'));
|
|
1055
|
+
|
|
1056
|
+
expect(firstOnSelect).not.toHaveBeenCalled();
|
|
1057
|
+
expect(secondOnSelect).toHaveBeenCalledTimes(1);
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
it('does not load a next page before the first page', async () => {
|
|
1061
|
+
jest.spyOn(chatClient, 'queryChannels').mockReturnValue(new Promise(() => {}));
|
|
1062
|
+
let loadNextPage: (() => Promise<void>) | undefined;
|
|
1063
|
+
const LoadNextPageProbe = () => {
|
|
1064
|
+
loadNextPage = useChannelsContext().loadNextPage;
|
|
1065
|
+
return null;
|
|
1066
|
+
};
|
|
1067
|
+
const executeQuery = jest.spyOn(ChannelPaginator.prototype, 'executeQuery');
|
|
1068
|
+
|
|
1069
|
+
render(
|
|
1070
|
+
<Chat client={chatClient}>
|
|
1071
|
+
<WithComponents overrides={{ ChannelListLoadingIndicator: LoadNextPageProbe }}>
|
|
1072
|
+
<ChannelList {...props} />
|
|
1073
|
+
</WithComponents>
|
|
1074
|
+
</Chat>,
|
|
1075
|
+
);
|
|
1076
|
+
// the mount query, which never resolves
|
|
1077
|
+
await waitFor(() => expect(executeQuery).toHaveBeenCalledTimes(1));
|
|
1078
|
+
|
|
1079
|
+
await act(async () => {
|
|
1080
|
+
await loadNextPage?.();
|
|
1112
1081
|
});
|
|
1082
|
+
|
|
1083
|
+
expect(executeQuery).toHaveBeenCalledTimes(1);
|
|
1084
|
+
executeQuery.mockRestore();
|
|
1085
|
+
});
|
|
1086
|
+
|
|
1087
|
+
it('shows the channels it already has when it mounts again, without a query', async () => {
|
|
1088
|
+
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
1089
|
+
|
|
1090
|
+
const { unmount } = render(
|
|
1091
|
+
<Chat client={chatClient}>
|
|
1092
|
+
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
1093
|
+
<ChannelList {...props} />
|
|
1094
|
+
</WithComponents>
|
|
1095
|
+
</Chat>,
|
|
1096
|
+
);
|
|
1097
|
+
await waitFor(() => expect(screen.getByTestId(testChannel1.channel.id)).toBeTruthy());
|
|
1098
|
+
unmount();
|
|
1099
|
+
|
|
1100
|
+
const querySpy = jest.spyOn(chatClient, 'queryChannels');
|
|
1101
|
+
render(
|
|
1102
|
+
<Chat client={chatClient}>
|
|
1103
|
+
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
1104
|
+
<ChannelList {...props} />
|
|
1105
|
+
</WithComponents>
|
|
1106
|
+
</Chat>,
|
|
1107
|
+
);
|
|
1108
|
+
|
|
1109
|
+
expect(screen.getByTestId(testChannel1.channel.id)).toBeTruthy();
|
|
1110
|
+
expect(querySpy).not.toHaveBeenCalled();
|
|
1111
|
+
});
|
|
1112
|
+
|
|
1113
|
+
it('leaves the paginator registered and loaded when it unmounts', async () => {
|
|
1114
|
+
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
1115
|
+
|
|
1116
|
+
const { unmount } = render(
|
|
1117
|
+
<Chat client={chatClient}>
|
|
1118
|
+
<ChannelList {...props} />
|
|
1119
|
+
</Chat>,
|
|
1120
|
+
);
|
|
1121
|
+
await waitFor(() => expect(props.paginator.items?.length).toBe(1));
|
|
1122
|
+
unmount();
|
|
1123
|
+
|
|
1124
|
+
expect(chatClient.channelManager.getPaginatorById(props.paginator.id)).toBe(props.paginator);
|
|
1125
|
+
expect(props.paginator.items?.map((channel) => channel.id)).toEqual([
|
|
1126
|
+
testChannel1.channel.id,
|
|
1127
|
+
]);
|
|
1128
|
+
});
|
|
1129
|
+
|
|
1130
|
+
it('loads the list again once a user connects after a disconnect', async () => {
|
|
1131
|
+
useMockedApis(chatClient, [queryChannelsApi([testChannel1])]);
|
|
1132
|
+
|
|
1133
|
+
render(
|
|
1134
|
+
<Chat client={chatClient}>
|
|
1135
|
+
<WithComponents overrides={{ ChannelPreview: ChannelPreviewComponent }}>
|
|
1136
|
+
<ChannelList {...props} />
|
|
1137
|
+
</WithComponents>
|
|
1138
|
+
</Chat>,
|
|
1139
|
+
);
|
|
1140
|
+
await waitFor(() => expect(screen.getByTestId(testChannel1.channel.id)).toBeTruthy());
|
|
1141
|
+
|
|
1142
|
+
const querySpy = jest.spyOn(chatClient, 'queryChannels');
|
|
1143
|
+
await act(async () => {
|
|
1144
|
+
await chatClient.disconnectUser();
|
|
1145
|
+
// The mocked socket does not report its own close.
|
|
1146
|
+
chatClient.wsConnection.state.partialNext({ isHealthy: false });
|
|
1147
|
+
});
|
|
1148
|
+
|
|
1149
|
+
expect(screen.queryByTestId(testChannel1.channel.id)).toBeNull();
|
|
1150
|
+
expect(querySpy).not.toHaveBeenCalled();
|
|
1151
|
+
|
|
1152
|
+
useMockedApis(chatClient, [queryChannelsApi([testChannel2])]);
|
|
1153
|
+
await act(() => setUser(chatClient, { id: 'dan' }));
|
|
1154
|
+
|
|
1155
|
+
await waitFor(() => expect(screen.getByTestId(testChannel2.channel.id)).toBeTruthy());
|
|
1156
|
+
expect(querySpy).toHaveBeenCalledTimes(1);
|
|
1113
1157
|
});
|
|
1114
1158
|
});
|
|
1115
1159
|
});
|