stream-chat-react-native-core 9.10.1 → 10.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/a11y/hooks/useA11yLabel.js +2 -1
- package/lib/commonjs/a11y/hooks/useA11yLabel.js.map +1 -1
- package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js +2 -2
- package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -1
- package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js +15 -47
- package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -1
- package/lib/commonjs/components/Accessibility/NotificationAnnouncer.js +9 -7
- package/lib/commonjs/components/Accessibility/NotificationAnnouncer.js.map +1 -1
- package/lib/commonjs/components/Accessibility/hooks/useIncomingMessageAnnouncements.js +10 -10
- package/lib/commonjs/components/Accessibility/hooks/useIncomingMessageAnnouncements.js.map +1 -1
- package/lib/commonjs/components/Attachment/Attachment.js +6 -6
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Audio/AudioAttachment.js +14 -13
- package/lib/commonjs/components/Attachment/Audio/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +4 -4
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FilePreview.js +4 -2
- package/lib/commonjs/components/Attachment/FilePreview.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +9 -5
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js +1 -1
- package/lib/commonjs/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/UnsupportedAttachment.js +3 -3
- package/lib/commonjs/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js +3 -0
- package/lib/commonjs/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +2 -2
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +29 -24
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js +22 -21
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -9
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +8 -9
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +2 -2
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +1 -1
- package/lib/commonjs/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +54 -1410
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/ChannelShell.js +398 -0
- package/lib/commonjs/components/Channel/ChannelShell.js.map +1 -0
- package/lib/commonjs/components/Channel/hooks/useChannelLifecycle.js +120 -0
- package/lib/commonjs/components/Channel/hooks/useChannelLifecycle.js.map +1 -0
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +3 -53
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +1 -9
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +3 -19
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +11 -27
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js +6 -46
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useSupersededChannelSwap.js +28 -0
- package/lib/commonjs/components/Channel/hooks/useSupersededChannelSwap.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsEditButton.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsEditButton.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsMemberSection.js +10 -6
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsMemberSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormContent.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormContent.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js +5 -5
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditName.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditName.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/AddMemberSearchResultItem.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/AddMemberSearchResultItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +3 -3
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +5 -5
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/members/useMemberRoles.js +3 -3
- package/lib/commonjs/components/ChannelDetails/hooks/members/useMemberRoles.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +5 -3
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +5 -4
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useEditChannelImage.js +6 -6
- package/lib/commonjs/components/ChannelDetails/hooks/useEditChannelImage.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js +9 -5
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useUserActivityStatus.js +8 -7
- package/lib/commonjs/components/ChannelDetails/hooks/useUserActivityStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js +23 -98
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListView.js +28 -68
- package/lib/commonjs/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/index.js +0 -11
- package/lib/commonjs/components/ChannelList/hooks/index.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelMembersState.js +32 -9
- package/lib/commonjs/components/ChannelList/hooks/useChannelMembersState.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelOnlineMemberCount.js +6 -15
- package/lib/commonjs/components/ChannelList/hooks/useChannelOnlineMemberCount.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js +20 -44
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useMutedChannels.js +7 -7
- package/lib/commonjs/components/ChannelList/hooks/useMutedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useMutedUsers.js +7 -9
- package/lib/commonjs/components/ChannelList/hooks/useMutedUsers.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +69 -125
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js +12 -3
- package/lib/commonjs/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +19 -11
- package/lib/commonjs/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +6 -5
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +9 -8
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTypingIndicator.js +8 -8
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTypingIndicator.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js +1 -3
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js +25 -118
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +11 -4
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js +14 -5
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +3 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelTypingState.js +2 -37
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelTypingState.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js +6 -29
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelPinned.js +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelPinned.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +53 -59
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/index.js +16 -16
- package/lib/commonjs/components/Chat/hooks/index.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettingsGetter.js +75 -0
- package/lib/commonjs/components/Chat/hooks/useAppSettingsGetter.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useClientUserId.js +17 -0
- package/lib/commonjs/components/Chat/hooks/useClientUserId.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useConnectionLifecycle.js +53 -0
- package/lib/commonjs/components/Chat/hooks/useConnectionLifecycle.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useCreateChatClient.js +15 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatClient.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js +7 -25
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useInitializeOfflineDb.js +11 -4
- package/lib/commonjs/components/Chat/hooks/useInitializeOfflineDb.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useNetworkConnectionState.js +22 -0
- package/lib/commonjs/components/Chat/hooks/useNetworkConnectionState.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/usePendingUploadsDefault.js +24 -0
- package/lib/commonjs/components/Chat/hooks/usePendingUploadsDefault.js.map +1 -0
- package/lib/commonjs/components/Chat/hooks/useWSConnectionState.js +63 -0
- package/lib/commonjs/components/Chat/hooks/useWSConnectionState.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryA11yProbe.js +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryA11yProbe.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +3 -3
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +6 -6
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js +4 -4
- package/lib/commonjs/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js +3 -3
- package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingIndicator.js +3 -3
- package/lib/commonjs/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +64 -195
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js +2 -2
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js +34 -19
- package/lib/commonjs/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageBounce.js +8 -8
- package/lib/commonjs/components/Message/MessageItemView/MessageBounce.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +4 -8
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js +17 -15
- package/lib/commonjs/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js +27 -23
- package/lib/commonjs/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js +14 -19
- package/lib/commonjs/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js +7 -16
- package/lib/commonjs/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js +25 -33
- package/lib/commonjs/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageTimestamp.js +4 -4
- package/lib/commonjs/components/Message/MessageItemView/MessageTimestamp.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js +37 -31
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +3 -3
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js +1 -1
- package/lib/commonjs/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageActionHandlers.js +453 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageActionHandlers.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +5 -12
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useIsMessageDeliveredToOthers.js +25 -0
- package/lib/commonjs/components/Message/hooks/useIsMessageDeliveredToOthers.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useIsMessageReadByOthers.js +25 -0
- package/lib/commonjs/components/Message/hooks/useIsMessageReadByOthers.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +9 -440
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js +59 -87
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js +4 -5
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js +12 -36
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageOperations.js +144 -0
- package/lib/commonjs/components/Message/hooks/useMessageOperations.js.map +1 -0
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js +12 -36
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js +4 -2
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useUserMuteActive.js +15 -7
- package/lib/commonjs/components/Message/hooks/useUserMuteActive.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageComposer.js +25 -18
- package/lib/commonjs/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +1 -1
- package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +10 -12
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +3 -3
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js +6 -6
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +6 -6
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +3 -4
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +6 -5
- package/lib/commonjs/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js +5 -5
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -4
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputButtons/index.js +9 -2
- package/lib/commonjs/components/MessageInput/components/InputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js +3 -3
- package/lib/commonjs/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioRecorder.js +7 -5
- package/lib/commonjs/components/MessageInput/hooks/useAudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js +6 -6
- package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +5 -8
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +5 -8
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +5 -3
- package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageFlashList.js +152 -390
- package/lib/commonjs/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +141 -436
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js +5 -4
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/NetworkDownIndicator.js +8 -16
- package/lib/commonjs/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js +13 -7
- package/lib/commonjs/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/commonjs/components/MessageList/StickyHeader.js +5 -5
- package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +15 -6
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +39 -26
- package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMarkRead.js +50 -0
- package/lib/commonjs/components/MessageList/hooks/useMarkRead.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageDateSeparator.js +4 -3
- package/lib/commonjs/components/MessageList/hooks/useMessageDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +20 -27
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageListFocus.js +41 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListFocus.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListLiveState.js +72 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListLiveState.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListPagination.js +71 -0
- package/lib/commonjs/components/MessageList/hooks/useMessageListPagination.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useOwnUnreadCount.js +22 -0
- package/lib/commonjs/components/MessageList/hooks/useOwnUnreadCount.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useStickyHeaderDate.js +41 -0
- package/lib/commonjs/components/MessageList/hooks/useStickyHeaderDate.js.map +1 -0
- package/lib/commonjs/components/MessageList/hooks/useTypingString.js +2 -2
- package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useTypingUsers.js +21 -8
- package/lib/commonjs/components/MessageList/hooks/useTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useUnreadNotificationVisibility.js +56 -0
- package/lib/commonjs/components/MessageList/hooks/useUnreadNotificationVisibility.js.map +1 -0
- package/lib/commonjs/components/MessageList/utils/buildMessageListWithNeighbours.js +2 -2
- package/lib/commonjs/components/MessageList/utils/buildMessageListWithNeighbours.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js +8 -7
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +2 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageActionListWithActions.js +77 -0
- package/lib/commonjs/components/MessageMenu/MessageActionListWithActions.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js +14 -11
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js +37 -28
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/Notifications/Notification.js +1 -1
- package/lib/commonjs/components/Notifications/Notification.js.map +1 -1
- package/lib/commonjs/components/Notifications/NotificationList.js +1 -1
- package/lib/commonjs/components/Notifications/NotificationList.js.map +1 -1
- package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js +1 -2
- package/lib/commonjs/components/Notifications/hooks/useNotificationTarget.js.map +1 -1
- package/lib/commonjs/components/Notifications/notificationTranslations.js +59 -45
- package/lib/commonjs/components/Notifications/notificationTranslations.js.map +1 -1
- package/lib/commonjs/components/Poll/CreatePollContent.js +9 -9
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/commonjs/components/Poll/Poll.js +7 -5
- package/lib/commonjs/components/Poll/Poll.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js +3 -3
- package/lib/commonjs/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +9 -4
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleAnswersField.js +2 -2
- package/lib/commonjs/components/Poll/components/MultipleAnswersField.js.map +1 -1
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js +4 -4
- package/lib/commonjs/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/commonjs/components/Poll/components/NameField.js +2 -2
- package/lib/commonjs/components/Poll/components/NameField.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +10 -10
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollButtons.js +19 -15
- package/lib/commonjs/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +2 -2
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +1 -1
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +6 -4
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +4 -2
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +7 -5
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js +6 -6
- package/lib/commonjs/components/Poll/components/PollResults/PollVote.js.map +1 -1
- package/lib/commonjs/components/Poll/contexts/PollUIStateContext.js +2 -2
- package/lib/commonjs/components/Poll/contexts/PollUIStateContext.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/useEndVote.js +2 -2
- package/lib/commonjs/components/Poll/hooks/useEndVote.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +8 -7
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +14 -12
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollState.js +21 -18
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +10 -9
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js +77 -104
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +26 -46
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js +17 -18
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js +20 -15
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItemMessagePreview.js +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItemMessagePreview.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js +23 -20
- package/lib/commonjs/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +15 -8
- package/lib/commonjs/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +2 -2
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/commonjs/components/UIComponents/SearchInput.js +2 -2
- package/lib/commonjs/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/commonjs/components/index.js +235 -44
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js +12 -4
- package/lib/commonjs/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/contexts/channelAddMembersContext/ChannelAddMembersContext.js +2 -1
- package/lib/commonjs/contexts/channelAddMembersContext/ChannelAddMembersContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +4 -3
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js +4 -3
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelMemberListContext/ChannelMemberListContext.js +4 -3
- package/lib/commonjs/contexts/channelMemberListContext/ChannelMemberListContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +0 -2
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/contexts/index.js +11 -33
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +2 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
- package/lib/commonjs/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js +5 -6
- package/lib/commonjs/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js.map +1 -1
- package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js +49 -10
- package/lib/commonjs/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +23 -130
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -8
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposer.js +1 -5
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposer.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js +3 -4
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js +16 -0
- package/lib/commonjs/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js.map +1 -0
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +6 -10
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +4 -6
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/index.js +0 -11
- package/lib/commonjs/contexts/translationContext/index.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActionItems.js +21 -21
- package/lib/commonjs/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelActions.js +52 -38
- package/lib/commonjs/hooks/actions/useChannelActions.js.map +1 -1
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js +10 -10
- package/lib/commonjs/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/commonjs/hooks/actions/useUserActions.js +15 -11
- package/lib/commonjs/hooks/actions/useUserActions.js.map +1 -1
- package/lib/commonjs/hooks/index.js +33 -11
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useGroupedAttachments.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js +26 -52
- package/lib/commonjs/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js +34 -22
- package/lib/commonjs/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/commonjs/hooks/useAudioPlayer.js +3 -3
- package/lib/commonjs/hooks/useAudioPlayer.js.map +1 -1
- package/lib/commonjs/hooks/useChannel.js +16 -0
- package/lib/commonjs/hooks/useChannel.js.map +1 -0
- package/lib/commonjs/hooks/useChannelImage.js +8 -10
- package/lib/commonjs/hooks/useChannelImage.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMemberCount.js +6 -11
- package/lib/commonjs/hooks/useChannelMemberCount.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMembershipState.js +6 -8
- package/lib/commonjs/hooks/useChannelMembershipState.js.map +1 -1
- package/lib/commonjs/hooks/useChannelMuteActive.js +3 -6
- package/lib/commonjs/hooks/useChannelMuteActive.js.map +1 -1
- package/lib/commonjs/hooks/useChannelName.js +8 -10
- package/lib/commonjs/hooks/useChannelName.js.map +1 -1
- package/lib/commonjs/hooks/useChannelOwnCapabilities.js +6 -11
- package/lib/commonjs/hooks/useChannelOwnCapabilities.js.map +1 -1
- package/lib/commonjs/hooks/useIsDirectChat.js +9 -3
- package/lib/commonjs/hooks/useIsDirectChat.js.map +1 -1
- package/lib/commonjs/hooks/useIsTargetedMessage.js +20 -0
- package/lib/commonjs/hooks/useIsTargetedMessage.js.map +1 -0
- package/lib/commonjs/hooks/useLoadingImage.js +5 -5
- package/lib/commonjs/hooks/useLoadingImage.js.map +1 -1
- package/lib/commonjs/hooks/useMessagePaginator.js +15 -0
- package/lib/commonjs/hooks/useMessagePaginator.js.map +1 -0
- package/lib/commonjs/hooks/usePrunableMessageList.js +17 -16
- package/lib/commonjs/hooks/usePrunableMessageList.js.map +1 -1
- package/lib/commonjs/hooks/useQueryReminders.js +7 -6
- package/lib/commonjs/hooks/useQueryReminders.js.map +1 -1
- package/lib/commonjs/hooks/useStreami18n.js +13 -44
- package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js +8 -4
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/i18n/index.js +37 -0
- package/lib/commonjs/i18n/index.js.map +1 -0
- package/lib/commonjs/i18n/keys.js +2 -0
- package/lib/commonjs/i18n/keys.js.map +1 -0
- package/lib/commonjs/i18n/runtimeDefaults.js +103 -0
- package/lib/commonjs/i18n/runtimeDefaults.js.map +1 -0
- package/lib/commonjs/i18n/types.js.map +1 -0
- package/lib/commonjs/i18n/utils.js +72 -0
- package/lib/commonjs/i18n/utils.js.map +1 -0
- package/lib/commonjs/index.js +16 -101
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/middlewares/attachments.js +1 -80
- package/lib/commonjs/middlewares/attachments.js.map +1 -1
- package/lib/commonjs/mock-builders/DB/mock.js +5 -4
- package/lib/commonjs/mock-builders/DB/mock.js.map +1 -1
- package/lib/commonjs/mock-builders/api/channelMocks.js +38 -35
- package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/commonjs/mock-builders/api/initiateClientWithChannels.js +6 -1
- package/lib/commonjs/mock-builders/api/initiateClientWithChannels.js.map +1 -1
- package/lib/commonjs/mock-builders/api/queryMembers.js +15 -14
- package/lib/commonjs/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/commonjs/mock-builders/api/useMockedApis.js +31 -1
- package/lib/commonjs/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/commonjs/mock-builders/attachments.js +5 -0
- package/lib/commonjs/mock-builders/attachments.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionChanged.js +13 -6
- package/lib/commonjs/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/commonjs/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageDeleted.js +0 -1
- package/lib/commonjs/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageRead.js +2 -1
- package/lib/commonjs/mock-builders/event/messageRead.js.map +1 -1
- package/lib/commonjs/mock-builders/event/messageUpdated.js +0 -1
- package/lib/commonjs/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js +1 -3
- package/lib/commonjs/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMarkUnread.js +2 -1
- package/lib/commonjs/mock-builders/event/notificationMarkUnread.js.map +1 -1
- package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js +2 -1
- package/lib/commonjs/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/typing.js +1 -3
- package/lib/commonjs/mock-builders/event/typing.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userPresence.js +1 -3
- package/lib/commonjs/mock-builders/event/userPresence.js.map +1 -1
- package/lib/commonjs/mock-builders/event/userUpdated.js +1 -3
- package/lib/commonjs/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/commonjs/mock-builders/event/utils.js +18 -0
- package/lib/commonjs/mock-builders/event/utils.js.map +1 -0
- package/lib/commonjs/mock-builders/generator/attachment.js +11 -3
- package/lib/commonjs/mock-builders/generator/attachment.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/channel.js +5 -4
- package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/channelState.js +53 -0
- package/lib/commonjs/mock-builders/generator/channelState.js.map +1 -0
- package/lib/commonjs/mock-builders/generator/message.js +15 -8
- package/lib/commonjs/mock-builders/generator/message.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/reaction.js +2 -1
- package/lib/commonjs/mock-builders/generator/reaction.js.map +1 -1
- package/lib/commonjs/mock-builders/generator/time.js +13 -0
- package/lib/commonjs/mock-builders/generator/time.js.map +1 -0
- package/lib/commonjs/mock-builders/generator/user.js +3 -2
- package/lib/commonjs/mock-builders/generator/user.js.map +1 -1
- package/lib/commonjs/mock-builders/mock.js +5 -3
- package/lib/commonjs/mock-builders/mock.js.map +1 -1
- package/lib/commonjs/state-store/attachment-picker-store.js +2 -2
- package/lib/commonjs/state-store/attachment-picker-store.js.map +1 -1
- package/lib/commonjs/state-store/audio-player-pool.js +2 -2
- package/lib/commonjs/state-store/audio-player-pool.js.map +1 -1
- package/lib/commonjs/state-store/audio-player.js +2 -2
- package/lib/commonjs/state-store/audio-player.js.map +1 -1
- package/lib/commonjs/state-store/audio-recorder-manager.js +2 -2
- package/lib/commonjs/state-store/audio-recorder-manager.js.map +1 -1
- package/lib/commonjs/state-store/edit-channel-details-store.js +5 -5
- package/lib/commonjs/state-store/edit-channel-details-store.js.map +1 -1
- package/lib/commonjs/state-store/image-gallery-state-store.js +5 -4
- package/lib/commonjs/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/commonjs/state-store/in-app-notifications-store.js +2 -2
- package/lib/commonjs/state-store/in-app-notifications-store.js.map +1 -1
- package/lib/commonjs/state-store/message-input-height-store.js +2 -2
- package/lib/commonjs/state-store/message-input-height-store.js.map +1 -1
- package/lib/commonjs/state-store/message-overlay-store.js +4 -4
- package/lib/commonjs/state-store/message-overlay-store.js.map +1 -1
- package/lib/commonjs/state-store/selection-store.js +2 -2
- package/lib/commonjs/state-store/selection-store.js.map +1 -1
- package/lib/commonjs/state-store/signal-store.js +2 -2
- package/lib/commonjs/state-store/signal-store.js.map +1 -1
- package/lib/commonjs/state-store/video-player-pool.js +2 -2
- package/lib/commonjs/state-store/video-player-pool.js.map +1 -1
- package/lib/commonjs/state-store/video-player.js +2 -2
- package/lib/commonjs/state-store/video-player.js.map +1 -1
- package/lib/commonjs/store/OfflineDB.js +11 -13
- package/lib/commonjs/store/OfflineDB.js.map +1 -1
- package/lib/commonjs/store/SqliteClient.js +1 -1
- package/lib/commonjs/store/apis/channelExists.js +1 -1
- package/lib/commonjs/store/apis/channelExists.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js +2 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -3
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelActiveLocations.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +3 -3
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +7 -6
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +18 -10
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getDraft.js +1 -1
- package/lib/commonjs/store/apis/getDraft.js.map +1 -1
- package/lib/commonjs/store/apis/getDraftsForChannels.js +2 -2
- package/lib/commonjs/store/apis/getDraftsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -3
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/index.js +0 -11
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +6 -2
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectActiveLocationsForChannels.js +2 -1
- package/lib/commonjs/store/apis/queries/selectActiveLocationsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelQueryForFilterSort.js +56 -0
- package/lib/commonjs/store/apis/queries/selectChannelQueryForFilterSort.js.map +1 -0
- package/lib/commonjs/store/apis/queries/selectDraftMessageFromDraftForChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectDraftMessageFromDraftForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +2 -2
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/softDeleteMessage.js +2 -1
- package/lib/commonjs/store/apis/softDeleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updateReaction.js +6 -1
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +3 -3
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +13 -6
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +6 -2
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertDraft.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelDataToStorable.js +8 -11
- package/lib/commonjs/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelToStorable.js +8 -11
- package/lib/commonjs/store/mappers/mapChannelToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapDraftMessageToStorable.js +1 -1
- package/lib/commonjs/store/mappers/mapDraftMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapDraftToStorable.js +2 -2
- package/lib/commonjs/store/mappers/mapDraftToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMemberToStorable.js +7 -7
- package/lib/commonjs/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js +6 -6
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapPollToStorable.js +4 -4
- package/lib/commonjs/store/mappers/mapPollToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReactionToStorable.js +3 -3
- package/lib/commonjs/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReadToStorable.js +3 -3
- package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReminderToStorable.js +4 -4
- package/lib/commonjs/store/mappers/mapReminderToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapSharedLocationToStorable.js +4 -4
- package/lib/commonjs/store/mappers/mapSharedLocationToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToChannel.js +6 -5
- package/lib/commonjs/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToDraft.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToDraft.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMember.js +12 -9
- package/lib/commonjs/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +7 -6
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToPoll.js +9 -6
- package/lib/commonjs/store/mappers/mapStorableToPoll.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToReaction.js +3 -2
- package/lib/commonjs/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToRead.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToReminder.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToReminder.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToSharedLocation.js +4 -3
- package/lib/commonjs/store/mappers/mapStorableToSharedLocation.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToTimestamp.js +13 -0
- package/lib/commonjs/store/mappers/mapStorableToTimestamp.js.map +1 -0
- package/lib/commonjs/store/mappers/mapStorableToUser.js +5 -4
- package/lib/commonjs/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/commonjs/store/mappers/mapTimestampToStorable.js +7 -0
- package/lib/commonjs/store/mappers/mapTimestampToStorable.js.map +1 -0
- package/lib/commonjs/store/mappers/mapUserToStorable.js +4 -3
- package/lib/commonjs/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/commonjs/store/schema.js +33 -32
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js +17 -3
- package/lib/commonjs/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/commonjs/store/sqlite-utils/createUpsertQueryIfParentExists.js +15 -0
- package/lib/commonjs/store/sqlite-utils/createUpsertQueryIfParentExists.js.map +1 -0
- package/lib/commonjs/types/types.js.map +1 -1
- package/lib/commonjs/utils/attachmentUrls.js +15 -0
- package/lib/commonjs/utils/attachmentUrls.js.map +1 -0
- package/lib/commonjs/utils/getUrlOfImageAttachment.js +6 -1
- package/lib/commonjs/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/commonjs/utils/i18n/Streami18n.js +43 -408
- package/lib/commonjs/utils/i18n/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/installNativeMultipartAdapter.js +25 -25
- package/lib/commonjs/utils/installNativeMultipartAdapter.js.map +1 -1
- package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
- package/lib/commonjs/utils/utils.js +16 -54
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/a11y/hooks/useA11yLabel.js +2 -1
- package/lib/module/a11y/hooks/useA11yLabel.js.map +1 -1
- package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js +2 -2
- package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -1
- package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js +15 -47
- package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -1
- package/lib/module/components/Accessibility/NotificationAnnouncer.js +9 -7
- package/lib/module/components/Accessibility/NotificationAnnouncer.js.map +1 -1
- package/lib/module/components/Accessibility/hooks/useIncomingMessageAnnouncements.js +10 -10
- package/lib/module/components/Accessibility/hooks/useIncomingMessageAnnouncements.js.map +1 -1
- package/lib/module/components/Attachment/Attachment.js +6 -6
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/Audio/AudioAttachment.js +14 -13
- package/lib/module/components/Attachment/Audio/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +4 -4
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FilePreview.js +4 -2
- package/lib/module/components/Attachment/FilePreview.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +9 -5
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js +1 -1
- package/lib/module/components/Attachment/Giphy/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/UnsupportedAttachment.js +3 -3
- package/lib/module/components/Attachment/UnsupportedAttachment.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js +2 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/openUrlSafely.js +3 -0
- package/lib/module/components/Attachment/utils/openUrlSafely.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js +2 -2
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js +29 -24
- package/lib/module/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js +22 -21
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerContent.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js +9 -9
- package/lib/module/components/AttachmentPicker/components/AttachmentTypePickerButton.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +8 -9
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js +2 -2
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js +1 -1
- package/lib/module/components/AutoCompleteInput/mentionItems/MentionRoleItem.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +54 -1410
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/ChannelShell.js +398 -0
- package/lib/module/components/Channel/ChannelShell.js.map +1 -0
- package/lib/module/components/Channel/hooks/useChannelLifecycle.js +120 -0
- package/lib/module/components/Channel/hooks/useChannelLifecycle.js.map +1 -0
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js +3 -53
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +1 -9
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +3 -19
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +11 -27
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js +6 -46
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useSupersededChannelSwap.js +28 -0
- package/lib/module/components/Channel/hooks/useSupersededChannelSwap.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/ChannelDetailsEditButton.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsEditButton.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsMemberSection.js +10 -6
- package/lib/module/components/ChannelDetails/components/ChannelDetailsMemberSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormContent.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormContent.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditDetailsFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js +5 -5
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditName.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditName.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/AddMemberSearchResultItem.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/AddMemberSearchResultItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersButton.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormContent.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js +2 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -2
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberList.js +3 -3
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +2 -2
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +3 -3
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +5 -5
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/members/useMemberRoles.js +3 -3
- package/lib/module/components/ChannelDetails/hooks/members/useMemberRoles.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js +5 -3
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +5 -4
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useEditChannelImage.js +6 -6
- package/lib/module/components/ChannelDetails/hooks/useEditChannelImage.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js +9 -5
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useUserActivityStatus.js +8 -7
- package/lib/module/components/ChannelDetails/hooks/useUserActivityStatus.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js +23 -98
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderErrorIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +1 -1
- package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListView.js +28 -68
- package/lib/module/components/ChannelList/ChannelListView.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/index.js +0 -11
- package/lib/module/components/ChannelList/hooks/index.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelMembersState.js +32 -9
- package/lib/module/components/ChannelList/hooks/useChannelMembersState.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelOnlineMemberCount.js +6 -15
- package/lib/module/components/ChannelList/hooks/useChannelOnlineMemberCount.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js +20 -44
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useMutedChannels.js +7 -7
- package/lib/module/components/ChannelList/hooks/useMutedChannels.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useMutedUsers.js +7 -9
- package/lib/module/components/ChannelList/hooks/useMutedUsers.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +69 -125
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js +12 -3
- package/lib/module/components/ChannelPreview/ChannelDetailsBottomSheet.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js +19 -11
- package/lib/module/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -3
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +6 -5
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewPinnedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +9 -8
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTypingIndicator.js +8 -8
- package/lib/module/components/ChannelPreview/ChannelPreviewTypingIndicator.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js +1 -3
- package/lib/module/components/ChannelPreview/ChannelPreviewView.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js +25 -118
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +11 -4
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js +14 -5
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js +3 -3
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewPollLabel.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelTypingState.js +2 -37
- package/lib/module/components/ChannelPreview/hooks/useChannelTypingState.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js +6 -29
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelPinned.js +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelPinned.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +53 -59
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/index.js +16 -16
- package/lib/module/components/Chat/hooks/index.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettingsGetter.js +75 -0
- package/lib/module/components/Chat/hooks/useAppSettingsGetter.js.map +1 -0
- package/lib/module/components/Chat/hooks/useClientUserId.js +17 -0
- package/lib/module/components/Chat/hooks/useClientUserId.js.map +1 -0
- package/lib/module/components/Chat/hooks/useConnectionLifecycle.js +53 -0
- package/lib/module/components/Chat/hooks/useConnectionLifecycle.js.map +1 -0
- package/lib/module/components/Chat/hooks/useCreateChatClient.js +15 -1
- package/lib/module/components/Chat/hooks/useCreateChatClient.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js +7 -25
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useInitializeOfflineDb.js +11 -4
- package/lib/module/components/Chat/hooks/useInitializeOfflineDb.js.map +1 -1
- package/lib/module/components/Chat/hooks/useNetworkConnectionState.js +22 -0
- package/lib/module/components/Chat/hooks/useNetworkConnectionState.js.map +1 -0
- package/lib/module/components/Chat/hooks/usePendingUploadsDefault.js +24 -0
- package/lib/module/components/Chat/hooks/usePendingUploadsDefault.js.map +1 -0
- package/lib/module/components/Chat/hooks/useWSConnectionState.js +63 -0
- package/lib/module/components/Chat/hooks/useWSConnectionState.js.map +1 -0
- package/lib/module/components/ImageGallery/components/ImageGalleryA11yProbe.js +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryA11yProbe.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +3 -3
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +6 -6
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/Indicators/EmptyStateIndicator.js +4 -4
- package/lib/module/components/Indicators/EmptyStateIndicator.js.map +1 -1
- package/lib/module/components/Indicators/LoadingErrorIndicator.js +3 -3
- package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
- package/lib/module/components/Indicators/LoadingIndicator.js +3 -3
- package/lib/module/components/Indicators/LoadingIndicator.js.map +1 -1
- package/lib/module/components/Message/Message.js +64 -195
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js +2 -2
- package/lib/module/components/Message/MessageItemView/Headers/MessageReminderHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js +34 -19
- package/lib/module/components/Message/MessageItemView/Headers/SentToChannelHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageBounce.js +8 -8
- package/lib/module/components/Message/MessageItemView/MessageBounce.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageContent.js +4 -8
- package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js +1 -1
- package/lib/module/components/Message/MessageItemView/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageFooter.js +17 -15
- package/lib/module/components/Message/MessageItemView/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageHeader.js +27 -23
- package/lib/module/components/Message/MessageItemView/MessageHeader.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageItemView.js +14 -19
- package/lib/module/components/Message/MessageItemView/MessageItemView.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageReplies.js +7 -16
- package/lib/module/components/Message/MessageItemView/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageStatus.js +25 -33
- package/lib/module/components/Message/MessageItemView/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageTimestamp.js +4 -4
- package/lib/module/components/Message/MessageItemView/MessageTimestamp.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js +37 -31
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js +3 -3
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListClustered.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js +1 -1
- package/lib/module/components/Message/MessageItemView/ReactionList/ReactionListItem.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageActionHandlers.js +453 -0
- package/lib/module/components/Message/hooks/useCreateMessageActionHandlers.js.map +1 -0
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +5 -12
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useIsMessageDeliveredToOthers.js +25 -0
- package/lib/module/components/Message/hooks/useIsMessageDeliveredToOthers.js.map +1 -0
- package/lib/module/components/Message/hooks/useIsMessageReadByOthers.js +25 -0
- package/lib/module/components/Message/hooks/useIsMessageReadByOthers.js.map +1 -0
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js +9 -440
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js +59 -87
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageData.js +4 -5
- package/lib/module/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js +12 -36
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageOperations.js +144 -0
- package/lib/module/components/Message/hooks/useMessageOperations.js.map +1 -0
- package/lib/module/components/Message/hooks/useMessageReadData.js +12 -36
- package/lib/module/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js +4 -2
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/Message/hooks/useUserMuteActive.js +15 -7
- package/lib/module/components/Message/hooks/useUserMuteActive.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/MessageComposer.js +25 -18
- package/lib/module/components/MessageInput/MessageComposer.js.map +1 -1
- package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +1 -1
- package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +10 -12
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js +3 -3
- package/lib/module/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js +6 -6
- package/lib/module/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js +6 -6
- package/lib/module/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js +3 -4
- package/lib/module/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js +6 -5
- package/lib/module/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js +5 -5
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +4 -4
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputButtons/index.js +9 -2
- package/lib/module/components/MessageInput/components/InputButtons/index.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/EditButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/OutputButtons/index.js +3 -3
- package/lib/module/components/MessageInput/components/OutputButtons/index.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioRecorder.js +7 -5
- package/lib/module/components/MessageInput/hooks/useAudioRecorder.js.map +1 -1
- package/lib/module/components/MessageList/InlineDateSeparator.js +6 -6
- package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +5 -8
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +5 -8
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineUnreadIndicator.js +5 -3
- package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/MessageFlashList.js +152 -390
- package/lib/module/components/MessageList/MessageFlashList.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +141 -436
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js +5 -4
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/NetworkDownIndicator.js +8 -16
- package/lib/module/components/MessageList/NetworkDownIndicator.js.map +1 -1
- package/lib/module/components/MessageList/ScrollToBottomButton.js +13 -7
- package/lib/module/components/MessageList/ScrollToBottomButton.js.map +1 -1
- package/lib/module/components/MessageList/StickyHeader.js +5 -5
- package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicatorContainer.js +15 -6
- package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/module/components/MessageList/UnreadMessagesNotification.js +39 -26
- package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMarkRead.js +50 -0
- package/lib/module/components/MessageList/hooks/useMarkRead.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useMessageDateSeparator.js +4 -3
- package/lib/module/components/MessageList/hooks/useMessageDateSeparator.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +20 -27
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageListFocus.js +41 -0
- package/lib/module/components/MessageList/hooks/useMessageListFocus.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useMessageListLiveState.js +72 -0
- package/lib/module/components/MessageList/hooks/useMessageListLiveState.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useMessageListPagination.js +71 -0
- package/lib/module/components/MessageList/hooks/useMessageListPagination.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useOwnUnreadCount.js +22 -0
- package/lib/module/components/MessageList/hooks/useOwnUnreadCount.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useScrollToBottomAccessibilityAction.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useStickyHeaderDate.js +41 -0
- package/lib/module/components/MessageList/hooks/useStickyHeaderDate.js.map +1 -0
- package/lib/module/components/MessageList/hooks/useTypingString.js +2 -2
- package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useTypingUsers.js +21 -8
- package/lib/module/components/MessageList/hooks/useTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useUnreadNotificationVisibility.js +56 -0
- package/lib/module/components/MessageList/hooks/useUnreadNotificationVisibility.js.map +1 -0
- package/lib/module/components/MessageList/utils/buildMessageListWithNeighbours.js +2 -2
- package/lib/module/components/MessageList/utils/buildMessageListWithNeighbours.js.map +1 -1
- package/lib/module/components/MessageList/utils/filterTypingUsers.js +8 -7
- package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +2 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageActionList.js +1 -1
- package/lib/module/components/MessageMenu/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageActionListWithActions.js +77 -0
- package/lib/module/components/MessageMenu/MessageActionListWithActions.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageReactionPicker.js +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js +14 -11
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js +2 -2
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js +37 -28
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/Notifications/Notification.js +1 -1
- package/lib/module/components/Notifications/Notification.js.map +1 -1
- package/lib/module/components/Notifications/NotificationList.js +1 -1
- package/lib/module/components/Notifications/NotificationList.js.map +1 -1
- package/lib/module/components/Notifications/hooks/useNotificationTarget.js +1 -2
- package/lib/module/components/Notifications/hooks/useNotificationTarget.js.map +1 -1
- package/lib/module/components/Notifications/notificationTranslations.js +59 -45
- package/lib/module/components/Notifications/notificationTranslations.js.map +1 -1
- package/lib/module/components/Poll/CreatePollContent.js +9 -9
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -1
- package/lib/module/components/Poll/Poll.js +7 -5
- package/lib/module/components/Poll/Poll.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollHeader.js +3 -3
- package/lib/module/components/Poll/components/CreatePollHeader.js.map +1 -1
- package/lib/module/components/Poll/components/CreatePollOptions.js +9 -4
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleAnswersField.js +2 -2
- package/lib/module/components/Poll/components/MultipleAnswersField.js.map +1 -1
- package/lib/module/components/Poll/components/MultipleVotesSettings.js +4 -4
- package/lib/module/components/Poll/components/MultipleVotesSettings.js.map +1 -1
- package/lib/module/components/Poll/components/NameField.js +2 -2
- package/lib/module/components/Poll/components/NameField.js.map +1 -1
- package/lib/module/components/Poll/components/PollAnswersList.js +10 -10
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/module/components/Poll/components/PollButtons.js +19 -15
- package/lib/module/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/module/components/Poll/components/PollInputDialog.js +2 -2
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js +1 -1
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +6 -4
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +4 -2
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +7 -5
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResults.js +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollVote.js +6 -6
- package/lib/module/components/Poll/components/PollResults/PollVote.js.map +1 -1
- package/lib/module/components/Poll/contexts/PollUIStateContext.js +2 -2
- package/lib/module/components/Poll/contexts/PollUIStateContext.js.map +1 -1
- package/lib/module/components/Poll/hooks/useEndVote.js +2 -2
- package/lib/module/components/Poll/hooks/useEndVote.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +8 -7
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +14 -12
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollState.js +21 -18
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +10 -9
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/Thread.js +77 -104
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +26 -46
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js +17 -18
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js +20 -15
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItemMessagePreview.js +1 -1
- package/lib/module/components/ThreadList/ThreadListItemMessagePreview.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js +23 -20
- package/lib/module/components/ThreadList/ThreadListUnreadBanner.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js +15 -8
- package/lib/module/components/ThreadList/ThreadMessagePreviewDeliveryStatus.js.map +1 -1
- package/lib/module/components/UIComponents/BottomSheetModal.js +2 -2
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/module/components/UIComponents/SearchInput.js +2 -2
- package/lib/module/components/UIComponents/SearchInput.js.map +1 -1
- package/lib/module/components/index.js +235 -44
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/ui/Avatar/Avatar.js +1 -1
- package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/ui/Avatar/ChannelAvatar.js +12 -4
- package/lib/module/components/ui/Avatar/ChannelAvatar.js.map +1 -1
- package/lib/module/contexts/channelAddMembersContext/ChannelAddMembersContext.js +2 -1
- package/lib/module/contexts/channelAddMembersContext/ChannelAddMembersContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +4 -3
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -1
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js +4 -3
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -1
- package/lib/module/contexts/channelMemberListContext/ChannelMemberListContext.js +4 -3
- package/lib/module/contexts/channelMemberListContext/ChannelMemberListContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/componentsContext/defaultComponents.js +0 -2
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/contexts/index.js +11 -33
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js +2 -1
- package/lib/module/contexts/liveLocationManagerContext/LiveLocationManagerContext.js.map +1 -1
- package/lib/module/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js +5 -6
- package/lib/module/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.js.map +1 -1
- package/lib/module/contexts/messageComposerContext/MessageComposerContext.js +49 -10
- package/lib/module/contexts/messageComposerContext/MessageComposerContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +23 -130
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -8
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposer.js +1 -5
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposer.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js +3 -4
- package/lib/module/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js +16 -0
- package/lib/module/contexts/messageInputContext/hooks/usePendingUploadsEnabled.js.map +1 -0
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +6 -10
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +4 -6
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/translationContext/index.js +0 -11
- package/lib/module/contexts/translationContext/index.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActionItems.js +21 -21
- package/lib/module/hooks/actions/useChannelActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useChannelActions.js +52 -38
- package/lib/module/hooks/actions/useChannelActions.js.map +1 -1
- package/lib/module/hooks/actions/useChannelMemberActionItems.js +10 -10
- package/lib/module/hooks/actions/useChannelMemberActionItems.js.map +1 -1
- package/lib/module/hooks/actions/useUserActions.js +15 -11
- package/lib/module/hooks/actions/useUserActions.js.map +1 -1
- package/lib/module/hooks/index.js +33 -11
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/messagePreview/useGroupedAttachments.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js +26 -52
- package/lib/module/hooks/messagePreview/useMessageDeliveryStatus.js.map +1 -1
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js +34 -22
- package/lib/module/hooks/messagePreview/useMessagePreviewText.js.map +1 -1
- package/lib/module/hooks/useAudioPlayer.js +3 -3
- package/lib/module/hooks/useAudioPlayer.js.map +1 -1
- package/lib/module/hooks/useChannel.js +16 -0
- package/lib/module/hooks/useChannel.js.map +1 -0
- package/lib/module/hooks/useChannelImage.js +8 -10
- package/lib/module/hooks/useChannelImage.js.map +1 -1
- package/lib/module/hooks/useChannelMemberCount.js +6 -11
- package/lib/module/hooks/useChannelMemberCount.js.map +1 -1
- package/lib/module/hooks/useChannelMembershipState.js +6 -8
- package/lib/module/hooks/useChannelMembershipState.js.map +1 -1
- package/lib/module/hooks/useChannelMuteActive.js +3 -6
- package/lib/module/hooks/useChannelMuteActive.js.map +1 -1
- package/lib/module/hooks/useChannelName.js +8 -10
- package/lib/module/hooks/useChannelName.js.map +1 -1
- package/lib/module/hooks/useChannelOwnCapabilities.js +6 -11
- package/lib/module/hooks/useChannelOwnCapabilities.js.map +1 -1
- package/lib/module/hooks/useIsDirectChat.js +9 -3
- package/lib/module/hooks/useIsDirectChat.js.map +1 -1
- package/lib/module/hooks/useIsTargetedMessage.js +20 -0
- package/lib/module/hooks/useIsTargetedMessage.js.map +1 -0
- package/lib/module/hooks/useLoadingImage.js +5 -5
- package/lib/module/hooks/useLoadingImage.js.map +1 -1
- package/lib/module/hooks/useMessagePaginator.js +15 -0
- package/lib/module/hooks/useMessagePaginator.js.map +1 -0
- package/lib/module/hooks/usePrunableMessageList.js +17 -16
- package/lib/module/hooks/usePrunableMessageList.js.map +1 -1
- package/lib/module/hooks/useQueryReminders.js +7 -6
- package/lib/module/hooks/useQueryReminders.js.map +1 -1
- package/lib/module/hooks/useStreami18n.js +13 -44
- package/lib/module/hooks/useStreami18n.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js +8 -4
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/i18n/index.js +37 -0
- package/lib/module/i18n/index.js.map +1 -0
- package/lib/module/i18n/keys.js +2 -0
- package/lib/module/i18n/keys.js.map +1 -0
- package/lib/module/i18n/runtimeDefaults.js +103 -0
- package/lib/module/i18n/runtimeDefaults.js.map +1 -0
- package/lib/module/i18n/types.js.map +1 -0
- package/lib/module/i18n/utils.js +72 -0
- package/lib/module/i18n/utils.js.map +1 -0
- package/lib/module/index.js +16 -101
- package/lib/module/index.js.map +1 -1
- package/lib/module/middlewares/attachments.js +1 -80
- package/lib/module/middlewares/attachments.js.map +1 -1
- package/lib/module/mock-builders/DB/mock.js +5 -4
- package/lib/module/mock-builders/DB/mock.js.map +1 -1
- package/lib/module/mock-builders/api/channelMocks.js +38 -35
- package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/module/mock-builders/api/initiateClientWithChannels.js +6 -1
- package/lib/module/mock-builders/api/initiateClientWithChannels.js.map +1 -1
- package/lib/module/mock-builders/api/queryMembers.js +15 -14
- package/lib/module/mock-builders/api/queryMembers.js.map +1 -1
- package/lib/module/mock-builders/api/useMockedApis.js +31 -1
- package/lib/module/mock-builders/api/useMockedApis.js.map +1 -1
- package/lib/module/mock-builders/attachments.js +5 -0
- package/lib/module/mock-builders/attachments.js.map +1 -1
- package/lib/module/mock-builders/event/connectionChanged.js +13 -6
- package/lib/module/mock-builders/event/connectionChanged.js.map +1 -1
- package/lib/module/mock-builders/event/connectionRecovered.js.map +1 -1
- package/lib/module/mock-builders/event/messageDeleted.js +0 -1
- package/lib/module/mock-builders/event/messageDeleted.js.map +1 -1
- package/lib/module/mock-builders/event/messageRead.js +2 -1
- package/lib/module/mock-builders/event/messageRead.js.map +1 -1
- package/lib/module/mock-builders/event/messageUpdated.js +0 -1
- package/lib/module/mock-builders/event/messageUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js +1 -3
- package/lib/module/mock-builders/event/notificationChannelMutesUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMarkUnread.js +2 -1
- package/lib/module/mock-builders/event/notificationMarkUnread.js.map +1 -1
- package/lib/module/mock-builders/event/notificationMutesUpdated.js +2 -1
- package/lib/module/mock-builders/event/notificationMutesUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/typing.js +1 -3
- package/lib/module/mock-builders/event/typing.js.map +1 -1
- package/lib/module/mock-builders/event/userPresence.js +1 -3
- package/lib/module/mock-builders/event/userPresence.js.map +1 -1
- package/lib/module/mock-builders/event/userUpdated.js +1 -3
- package/lib/module/mock-builders/event/userUpdated.js.map +1 -1
- package/lib/module/mock-builders/event/utils.js +18 -0
- package/lib/module/mock-builders/event/utils.js.map +1 -0
- package/lib/module/mock-builders/generator/attachment.js +11 -3
- package/lib/module/mock-builders/generator/attachment.js.map +1 -1
- package/lib/module/mock-builders/generator/channel.js +5 -4
- package/lib/module/mock-builders/generator/channel.js.map +1 -1
- package/lib/module/mock-builders/generator/channelState.js +53 -0
- package/lib/module/mock-builders/generator/channelState.js.map +1 -0
- package/lib/module/mock-builders/generator/message.js +15 -8
- package/lib/module/mock-builders/generator/message.js.map +1 -1
- package/lib/module/mock-builders/generator/reaction.js +2 -1
- package/lib/module/mock-builders/generator/reaction.js.map +1 -1
- package/lib/module/mock-builders/generator/time.js +13 -0
- package/lib/module/mock-builders/generator/time.js.map +1 -0
- package/lib/module/mock-builders/generator/user.js +3 -2
- package/lib/module/mock-builders/generator/user.js.map +1 -1
- package/lib/module/mock-builders/mock.js +5 -3
- package/lib/module/mock-builders/mock.js.map +1 -1
- package/lib/module/state-store/attachment-picker-store.js +2 -2
- package/lib/module/state-store/attachment-picker-store.js.map +1 -1
- package/lib/module/state-store/audio-player-pool.js +2 -2
- package/lib/module/state-store/audio-player-pool.js.map +1 -1
- package/lib/module/state-store/audio-player.js +2 -2
- package/lib/module/state-store/audio-player.js.map +1 -1
- package/lib/module/state-store/audio-recorder-manager.js +2 -2
- package/lib/module/state-store/audio-recorder-manager.js.map +1 -1
- package/lib/module/state-store/edit-channel-details-store.js +5 -5
- package/lib/module/state-store/edit-channel-details-store.js.map +1 -1
- package/lib/module/state-store/image-gallery-state-store.js +5 -4
- package/lib/module/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/module/state-store/in-app-notifications-store.js +2 -2
- package/lib/module/state-store/in-app-notifications-store.js.map +1 -1
- package/lib/module/state-store/message-input-height-store.js +2 -2
- package/lib/module/state-store/message-input-height-store.js.map +1 -1
- package/lib/module/state-store/message-overlay-store.js +4 -4
- package/lib/module/state-store/message-overlay-store.js.map +1 -1
- package/lib/module/state-store/selection-store.js +2 -2
- package/lib/module/state-store/selection-store.js.map +1 -1
- package/lib/module/state-store/signal-store.js +2 -2
- package/lib/module/state-store/signal-store.js.map +1 -1
- package/lib/module/state-store/video-player-pool.js +2 -2
- package/lib/module/state-store/video-player-pool.js.map +1 -1
- package/lib/module/state-store/video-player.js +2 -2
- package/lib/module/state-store/video-player.js.map +1 -1
- package/lib/module/store/OfflineDB.js +11 -13
- package/lib/module/store/OfflineDB.js.map +1 -1
- package/lib/module/store/SqliteClient.js +1 -1
- package/lib/module/store/apis/channelExists.js +1 -1
- package/lib/module/store/apis/channelExists.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js +2 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -3
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelActiveLocations.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +3 -3
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +7 -6
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +18 -10
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getDraft.js +1 -1
- package/lib/module/store/apis/getDraft.js.map +1 -1
- package/lib/module/store/apis/getDraftsForChannels.js +2 -2
- package/lib/module/store/apis/getDraftsForChannels.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -3
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/index.js +0 -11
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +6 -2
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectActiveLocationsForChannels.js +2 -1
- package/lib/module/store/apis/queries/selectActiveLocationsForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelQueryForFilterSort.js +56 -0
- package/lib/module/store/apis/queries/selectChannelQueryForFilterSort.js.map +1 -0
- package/lib/module/store/apis/queries/selectDraftMessageFromDraftForChannels.js +1 -1
- package/lib/module/store/apis/queries/selectDraftMessageFromDraftForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js +2 -2
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/softDeleteMessage.js +2 -1
- package/lib/module/store/apis/softDeleteMessage.js.map +1 -1
- package/lib/module/store/apis/updateReaction.js +6 -1
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +3 -3
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +13 -6
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +6 -2
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertDraft.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +3 -3
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/store/mappers/mapChannelDataToStorable.js +8 -11
- package/lib/module/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapChannelToStorable.js +8 -11
- package/lib/module/store/mappers/mapChannelToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapDraftMessageToStorable.js +1 -1
- package/lib/module/store/mappers/mapDraftMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapDraftToStorable.js +2 -2
- package/lib/module/store/mappers/mapDraftToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMemberToStorable.js +7 -7
- package/lib/module/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js +6 -6
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapPollToStorable.js +4 -4
- package/lib/module/store/mappers/mapPollToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReactionToStorable.js +3 -3
- package/lib/module/store/mappers/mapReactionToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReadToStorable.js +3 -3
- package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReminderToStorable.js +4 -4
- package/lib/module/store/mappers/mapReminderToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapSharedLocationToStorable.js +4 -4
- package/lib/module/store/mappers/mapSharedLocationToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToChannel.js +6 -5
- package/lib/module/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToDraft.js +4 -3
- package/lib/module/store/mappers/mapStorableToDraft.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMember.js +12 -9
- package/lib/module/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +7 -6
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToPoll.js +9 -6
- package/lib/module/store/mappers/mapStorableToPoll.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToReaction.js +3 -2
- package/lib/module/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToRead.js +4 -3
- package/lib/module/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToReminder.js +4 -3
- package/lib/module/store/mappers/mapStorableToReminder.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToSharedLocation.js +4 -3
- package/lib/module/store/mappers/mapStorableToSharedLocation.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToTimestamp.js +13 -0
- package/lib/module/store/mappers/mapStorableToTimestamp.js.map +1 -0
- package/lib/module/store/mappers/mapStorableToUser.js +5 -4
- package/lib/module/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/module/store/mappers/mapTimestampToStorable.js +7 -0
- package/lib/module/store/mappers/mapTimestampToStorable.js.map +1 -0
- package/lib/module/store/mappers/mapUserToStorable.js +4 -3
- package/lib/module/store/mappers/mapUserToStorable.js.map +1 -1
- package/lib/module/store/schema.js +33 -32
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpsertQuery.js +17 -3
- package/lib/module/store/sqlite-utils/createUpsertQuery.js.map +1 -1
- package/lib/module/store/sqlite-utils/createUpsertQueryIfParentExists.js +15 -0
- package/lib/module/store/sqlite-utils/createUpsertQueryIfParentExists.js.map +1 -0
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/utils/attachmentUrls.js +15 -0
- package/lib/module/utils/attachmentUrls.js.map +1 -0
- package/lib/module/utils/getUrlOfImageAttachment.js +6 -1
- package/lib/module/utils/getUrlOfImageAttachment.js.map +1 -1
- package/lib/module/utils/i18n/Streami18n.js +43 -408
- package/lib/module/utils/i18n/Streami18n.js.map +1 -1
- package/lib/module/utils/installNativeMultipartAdapter.js +25 -25
- package/lib/module/utils/installNativeMultipartAdapter.js.map +1 -1
- package/lib/module/utils/removeReservedFields.js.map +1 -1
- package/lib/module/utils/utils.js +16 -54
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/a11y/hooks/useA11yLabel.d.ts.map +1 -1
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts +2 -8
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts.map +1 -1
- package/lib/typescript/components/Accessibility/NotificationAnnouncer.d.ts.map +1 -1
- package/lib/typescript/components/Accessibility/hooks/useIncomingMessageAnnouncements.d.ts +2 -2
- package/lib/typescript/components/Accessibility/hooks/useIncomingMessageAnnouncements.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Audio/AudioAttachment.d.ts +2 -1
- package/lib/typescript/components/Attachment/Audio/AudioAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FilePreview.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy/Giphy.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/openUrlSafely.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerContent.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +2 -3
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/mentionItems/MentionRoleItem.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +13 -87
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/ChannelShell.d.ts +52 -0
- package/lib/typescript/components/Channel/ChannelShell.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useChannelLifecycle.d.ts +21 -0
- package/lib/typescript/components/Channel/hooks/useChannelLifecycle.d.ts.map +1 -0
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +1 -35
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useSupersededChannelSwap.d.ts +8 -0
- package/lib/typescript/components/Channel/hooks/useSupersededChannelSwap.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsMemberSection.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelEditDetailsFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/AddMemberSearchResultItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormContent.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/members/useMemberRoles.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useEditChannelImage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useFileAttachmentListSections.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useUserActivityStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +7 -129
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelListView.d.ts +37 -2
- package/lib/typescript/components/ChannelList/ChannelListView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/index.d.ts +0 -1
- package/lib/typescript/components/ChannelList/hooks/index.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelMembersState.d.ts +14 -3
- package/lib/typescript/components/ChannelList/hooks/useChannelMembersState.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelOnlineMemberCount.d.ts +5 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelOnlineMemberCount.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useMutedChannels.d.ts +5 -3
- package/lib/typescript/components/ChannelList/hooks/useMutedChannels.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useMutedUsers.d.ts +3 -6
- package/lib/typescript/components/ChannelList/hooks/useMutedUsers.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +8 -19
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelDetailsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTypingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewView.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewPollLabel.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelTypingState.d.ts +8 -2
- package/lib/typescript/components/ChannelPreview/hooks/useChannelTypingState.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts +6 -6
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +11 -42
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/index.d.ts +3 -3
- package/lib/typescript/components/Chat/hooks/index.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useAppSettingsGetter.d.ts +16 -0
- package/lib/typescript/components/Chat/hooks/useAppSettingsGetter.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useClientUserId.d.ts +14 -0
- package/lib/typescript/components/Chat/hooks/useClientUserId.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useConnectionLifecycle.d.ts +42 -0
- package/lib/typescript/components/Chat/hooks/useConnectionLifecycle.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useCreateChatClient.d.ts +7 -3
- package/lib/typescript/components/Chat/hooks/useCreateChatClient.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useInitializeOfflineDb.d.ts +3 -2
- package/lib/typescript/components/Chat/hooks/useInitializeOfflineDb.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useNetworkConnectionState.d.ts +23 -0
- package/lib/typescript/components/Chat/hooks/useNetworkConnectionState.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/usePendingUploadsDefault.d.ts +22 -0
- package/lib/typescript/components/Chat/hooks/usePendingUploadsDefault.d.ts.map +1 -0
- package/lib/typescript/components/Chat/hooks/useWSConnectionState.d.ts +54 -0
- package/lib/typescript/components/Chat/hooks/useWSConnectionState.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/EmptyStateIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
- package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/LoadingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +5 -7
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/MessageReminderHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts +2 -2
- package/lib/typescript/components/Message/MessageItemView/Headers/SentToChannelHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageBounce.d.ts +2 -2
- package/lib/typescript/components/Message/MessageItemView/MessageBounce.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts +1 -2
- package/lib/typescript/components/Message/MessageItemView/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts +2 -1
- package/lib/typescript/components/Message/MessageItemView/MessageItemView.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageReplies.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts +6 -1
- package/lib/typescript/components/Message/MessageItemView/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageActionHandlers.d.ts +30 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageActionHandlers.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useIsMessageDeliveredToOthers.d.ts +15 -0
- package/lib/typescript/components/Message/hooks/useIsMessageDeliveredToOthers.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useIsMessageReadByOthers.d.ts +18 -0
- package/lib/typescript/components/Message/hooks/useIsMessageReadByOthers.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +7 -22
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +8 -13
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts +2 -2
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageDeliveryData.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageDeliveryData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageOperations.d.ts +22 -0
- package/lib/typescript/components/Message/hooks/useMessageOperations.d.ts.map +1 -0
- package/lib/typescript/components/Message/hooks/useMessageReadData.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageReadData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useUserMuteActive.d.ts +11 -1
- package/lib/typescript/components/Message/hooks/useUserMuteActive.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/messageActions.d.ts +2 -2
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageComposer.d.ts +7 -3
- package/lib/typescript/components/MessageInput/MessageComposer.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +1 -4
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/AttachButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputButtons/index.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts +4 -2
- package/lib/typescript/components/MessageInput/components/OutputButtons/index.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioRecorder.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/utils/messageComposerSelectors.d.ts +2 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineUnreadIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts +15 -6
- package/lib/typescript/components/MessageList/MessageFlashList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts +16 -6
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/NetworkDownIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts +2 -3
- package/lib/typescript/components/MessageList/ScrollToBottomButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +5 -3
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts +7 -6
- package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMarkRead.d.ts +16 -0
- package/lib/typescript/components/MessageList/hooks/useMarkRead.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageDateSeparator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +11 -5
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageListFocus.d.ts +18 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListFocus.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListLiveState.d.ts +24 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListLiveState.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListPagination.d.ts +18 -0
- package/lib/typescript/components/MessageList/hooks/useMessageListPagination.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useOwnUnreadCount.d.ts +7 -0
- package/lib/typescript/components/MessageList/hooks/useOwnUnreadCount.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts +2 -3
- package/lib/typescript/components/MessageList/hooks/useScrollToBottomAccessibilityAction.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useStickyHeaderDate.d.ts +13 -0
- package/lib/typescript/components/MessageList/hooks/useStickyHeaderDate.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useTypingUsers.d.ts +13 -0
- package/lib/typescript/components/MessageList/hooks/useTypingUsers.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useUnreadNotificationVisibility.d.ts +25 -0
- package/lib/typescript/components/MessageList/hooks/useUnreadNotificationVisibility.d.ts.map +1 -0
- package/lib/typescript/components/MessageList/utils/buildMessageListWithNeighbours.d.ts +5 -0
- package/lib/typescript/components/MessageList/utils/buildMessageListWithNeighbours.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +6 -5
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageActionListWithActions.d.ts +7 -0
- package/lib/typescript/components/MessageMenu/MessageActionListWithActions.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts +2 -2
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/hooks/useNotificationTarget.d.ts.map +1 -1
- package/lib/typescript/components/Notifications/notificationTranslations.d.ts +2 -2
- package/lib/typescript/components/Notifications/notificationTranslations.d.ts.map +1 -1
- package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -1
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/Button.d.ts +2 -2
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts +2 -1
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleAnswersField.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/MultipleVotesSettings.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +3 -3
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollButtons.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +2 -2
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +4 -4
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollVote.d.ts.map +1 -1
- package/lib/typescript/components/Poll/contexts/PollUIStateContext.d.ts +1 -1
- package/lib/typescript/components/Poll/contexts/PollUIStateContext.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/useEndVote.d.ts +1 -1
- package/lib/typescript/components/Poll/hooks/useEndVote.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts +2 -2
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts +4 -4
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts +7 -7
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts +3 -2
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Thread/Thread.d.ts +24 -38
- package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +8 -1
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListItem.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadListUnreadBanner.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadMessagePreviewDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +5 -8
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/ui/Avatar/ChannelAvatar.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +1 -106
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +5 -34
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +9 -34
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +0 -4
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +1 -3
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/liveLocationManagerContext/LiveLocationManagerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.d.ts.map +1 -1
- package/lib/typescript/contexts/messageComposerContext/MessageComposerContext.d.ts +8 -5
- package/lib/typescript/contexts/messageComposerContext/MessageComposerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +13 -17
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +1 -20
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useActiveCommand.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useActiveCommand.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -2
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageComposer.d.ts +4 -0
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageComposer.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/usePendingUploadsEnabled.d.ts +11 -0
- package/lib/typescript/contexts/messageInputContext/hooks/usePendingUploadsEnabled.d.ts.map +1 -0
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +10 -25
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +8 -28
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts +2 -3
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +11 -3
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/index.d.ts +0 -1
- package/lib/typescript/contexts/translationContext/index.d.ts.map +1 -1
- package/lib/typescript/contexts/translationContext/types.d.ts +20 -8
- package/lib/typescript/contexts/translationContext/types.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelActions.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useChannelMemberActionItems.d.ts.map +1 -1
- package/lib/typescript/hooks/actions/useUserActions.d.ts.map +1 -1
- package/lib/typescript/hooks/index.d.ts +3 -1
- package/lib/typescript/hooks/index.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useGroupedAttachments.d.ts +2 -2
- package/lib/typescript/hooks/messagePreview/useGroupedAttachments.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessageDeliveryStatus.d.ts +9 -2
- package/lib/typescript/hooks/messagePreview/useMessageDeliveryStatus.d.ts.map +1 -1
- package/lib/typescript/hooks/messagePreview/useMessagePreviewText.d.ts.map +1 -1
- package/lib/typescript/hooks/useAudioPlayer.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannel.d.ts +11 -0
- package/lib/typescript/hooks/useChannel.d.ts.map +1 -0
- package/lib/typescript/hooks/useChannelImage.d.ts +3 -0
- package/lib/typescript/hooks/useChannelImage.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelMemberCount.d.ts +4 -0
- package/lib/typescript/hooks/useChannelMemberCount.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelMembershipState.d.ts +4 -0
- package/lib/typescript/hooks/useChannelMembershipState.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelMuteActive.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelName.d.ts +3 -0
- package/lib/typescript/hooks/useChannelName.d.ts.map +1 -1
- package/lib/typescript/hooks/useChannelOwnCapabilities.d.ts +5 -2
- package/lib/typescript/hooks/useChannelOwnCapabilities.d.ts.map +1 -1
- package/lib/typescript/hooks/useIsDirectChat.d.ts.map +1 -1
- package/lib/typescript/hooks/useIsTargetedMessage.d.ts +12 -0
- package/lib/typescript/hooks/useIsTargetedMessage.d.ts.map +1 -0
- package/lib/typescript/hooks/useMessagePaginator.d.ts +6 -0
- package/lib/typescript/hooks/useMessagePaginator.d.ts.map +1 -0
- package/lib/typescript/hooks/usePrunableMessageList.d.ts +18 -6
- package/lib/typescript/hooks/usePrunableMessageList.d.ts.map +1 -1
- package/lib/typescript/hooks/useQueryReminders.d.ts +3 -3
- package/lib/typescript/hooks/useQueryReminders.d.ts.map +1 -1
- package/lib/typescript/hooks/useStateStore.d.ts +1 -1
- package/lib/typescript/hooks/useStateStore.d.ts.map +1 -1
- package/lib/typescript/hooks/useStreami18n.d.ts.map +1 -1
- package/lib/typescript/hooks/useSyncClientEvents.d.ts +5 -5
- package/lib/typescript/hooks/useSyncClientEvents.d.ts.map +1 -1
- package/lib/typescript/hooks/useTranslatedMessage.d.ts +203 -114
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/i18n/index.d.ts +5 -0
- package/lib/typescript/i18n/index.d.ts.map +1 -0
- package/lib/typescript/i18n/keys.d.ts +432 -0
- package/lib/typescript/i18n/keys.d.ts.map +1 -0
- package/lib/typescript/i18n/runtimeDefaults.d.ts +135 -0
- package/lib/typescript/i18n/runtimeDefaults.d.ts.map +1 -0
- package/lib/typescript/i18n/types.d.ts +29 -0
- package/lib/typescript/i18n/types.d.ts.map +1 -0
- package/lib/typescript/i18n/utils.d.ts +33 -0
- package/lib/typescript/i18n/utils.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -13
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/middlewares/attachments.d.ts +1 -4
- package/lib/typescript/middlewares/attachments.d.ts.map +1 -1
- package/lib/typescript/state-store/attachment-picker-store.d.ts +1 -1
- package/lib/typescript/state-store/attachment-picker-store.d.ts.map +1 -1
- package/lib/typescript/state-store/audio-player-pool.d.ts +1 -1
- package/lib/typescript/state-store/audio-player-pool.d.ts.map +1 -1
- package/lib/typescript/state-store/audio-player.d.ts +1 -1
- package/lib/typescript/state-store/audio-player.d.ts.map +1 -1
- package/lib/typescript/state-store/audio-recorder-manager.d.ts +1 -1
- package/lib/typescript/state-store/audio-recorder-manager.d.ts.map +1 -1
- package/lib/typescript/state-store/edit-channel-details-store.d.ts +2 -1
- package/lib/typescript/state-store/edit-channel-details-store.d.ts.map +1 -1
- package/lib/typescript/state-store/image-gallery-state-store.d.ts +5 -4
- package/lib/typescript/state-store/image-gallery-state-store.d.ts.map +1 -1
- package/lib/typescript/state-store/in-app-notifications-store.d.ts +2 -1
- package/lib/typescript/state-store/in-app-notifications-store.d.ts.map +1 -1
- package/lib/typescript/state-store/message-input-height-store.d.ts +1 -1
- package/lib/typescript/state-store/message-input-height-store.d.ts.map +1 -1
- package/lib/typescript/state-store/message-overlay-store.d.ts +1 -1
- package/lib/typescript/state-store/message-overlay-store.d.ts.map +1 -1
- package/lib/typescript/state-store/selection-store.d.ts +1 -1
- package/lib/typescript/state-store/selection-store.d.ts.map +1 -1
- package/lib/typescript/state-store/signal-store.d.ts +1 -1
- package/lib/typescript/state-store/signal-store.d.ts.map +1 -1
- package/lib/typescript/state-store/video-player-pool.d.ts +1 -1
- package/lib/typescript/state-store/video-player-pool.d.ts.map +1 -1
- package/lib/typescript/state-store/video-player.d.ts +1 -1
- package/lib/typescript/state-store/video-player.d.ts.map +1 -1
- package/lib/typescript/store/OfflineDB.d.ts +12 -11
- package/lib/typescript/store/OfflineDB.d.ts.map +1 -1
- package/lib/typescript/store/SqliteClient.d.ts +2 -2
- package/lib/typescript/store/SqliteClient.d.ts.map +1 -1
- package/lib/typescript/store/apis/channelExists.d.ts +9 -0
- package/lib/typescript/store/apis/channelExists.d.ts.map +1 -1
- package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts +3 -1
- package/lib/typescript/store/apis/deleteMessagesForChannel.d.ts.map +1 -1
- package/lib/typescript/store/apis/deleteReaction.d.ts +2 -2
- package/lib/typescript/store/apis/deleteReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/getAppSettings.d.ts +4 -4
- package/lib/typescript/store/apis/getAppSettings.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelActiveLocations.d.ts +2 -2
- package/lib/typescript/store/apis/getChannelActiveLocations.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelMessages.d.ts +2 -2
- package/lib/typescript/store/apis/getChannelMessages.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannels.d.ts +5 -5
- package/lib/typescript/store/apis/getChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts +8 -7
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/getDraftsForChannels.d.ts +2 -2
- package/lib/typescript/store/apis/getDraftsForChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/getLastSyncedAt.d.ts +2 -2
- package/lib/typescript/store/apis/getLastSyncedAt.d.ts.map +1 -1
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts +2 -2
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/getReads.d.ts +2 -2
- package/lib/typescript/store/apis/getReads.d.ts.map +1 -1
- package/lib/typescript/store/apis/index.d.ts +0 -1
- package/lib/typescript/store/apis/index.d.ts.map +1 -1
- package/lib/typescript/store/apis/insertReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/queries/selectActiveLocationsForChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/queries/selectChannelQueryForFilterSort.d.ts +24 -0
- package/lib/typescript/store/apis/queries/selectChannelQueryForFilterSort.d.ts.map +1 -0
- package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts +2 -2
- package/lib/typescript/store/apis/queries/selectReactionsForMessages.d.ts.map +1 -1
- package/lib/typescript/store/apis/softDeleteMessage.d.ts.map +1 -1
- package/lib/typescript/store/apis/updateReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertAppSettings.d.ts +4 -4
- package/lib/typescript/store/apis/upsertAppSettings.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertChannels.d.ts +2 -2
- package/lib/typescript/store/apis/upsertChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertCidsForQuery.d.ts +4 -3
- package/lib/typescript/store/apis/upsertCidsForQuery.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertDraft.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertLocation.d.ts +2 -2
- package/lib/typescript/store/apis/upsertLocation.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertPoll.d.ts +2 -2
- package/lib/typescript/store/apis/upsertPoll.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertReads.d.ts +2 -2
- package/lib/typescript/store/apis/upsertReads.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts +2 -2
- package/lib/typescript/store/apis/upsertUserSyncStatus.d.ts.map +1 -1
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts +2 -2
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapChannelToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapDraftMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapPollToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapPollToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapReminderToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapSharedLocationToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapSharedLocationToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToDraft.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToDraft.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMember.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToPoll.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToPoll.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToReaction.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToReminder.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToReminder.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToSharedLocation.d.ts +2 -2
- package/lib/typescript/store/mappers/mapStorableToSharedLocation.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToTimestamp.d.ts +20 -0
- package/lib/typescript/store/mappers/mapStorableToTimestamp.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapStorableToUser.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapTaskToStorable.d.ts +7 -7
- package/lib/typescript/store/mappers/mapTimestampToStorable.d.ts +14 -0
- package/lib/typescript/store/mappers/mapTimestampToStorable.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapUserToStorable.d.ts.map +1 -1
- package/lib/typescript/store/schema.d.ts +38 -33
- package/lib/typescript/store/schema.d.ts.map +1 -1
- package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts +13 -0
- package/lib/typescript/store/sqlite-utils/createUpsertQuery.d.ts.map +1 -1
- package/lib/typescript/store/sqlite-utils/createUpsertQueryIfParentExists.d.ts +40 -0
- package/lib/typescript/store/sqlite-utils/createUpsertQueryIfParentExists.d.ts.map +1 -0
- package/lib/typescript/store/types.d.ts +4 -4
- package/lib/typescript/store/types.d.ts.map +1 -1
- package/lib/typescript/types/react-native-compat.d.ts +2 -2
- package/lib/typescript/types/types.d.ts +11 -6
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/attachmentUrls.d.ts +13 -0
- package/lib/typescript/utils/attachmentUrls.d.ts.map +1 -0
- package/lib/typescript/utils/getUrlOfImageAttachment.d.ts +1 -1
- package/lib/typescript/utils/getUrlOfImageAttachment.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +60 -632
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/installNativeMultipartAdapter.d.ts +9 -5
- package/lib/typescript/utils/installNativeMultipartAdapter.d.ts.map +1 -1
- package/lib/typescript/utils/removeReservedFields.d.ts +1 -1
- package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -1
- package/lib/typescript/utils/utils.d.ts +13 -32
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/__tests__/instanceConfiguration.test.tsx +287 -0
- package/src/__tests__/offline-support/index.test.ts +6 -0
- package/src/__tests__/offline-support/offline-feature.tsx +149 -69
- package/src/__tests__/offline-support/optimistic-update.tsx +702 -132
- package/src/a11y/hooks/useA11yLabel.ts +3 -1
- package/src/components/AITypingIndicatorView/AITypingIndicatorView.tsx +3 -3
- package/src/components/AITypingIndicatorView/hooks/__tests__/useAIState.test.ts +46 -0
- package/src/components/AITypingIndicatorView/hooks/useAIState.ts +8 -49
- package/src/components/Accessibility/NotificationAnnouncer.tsx +15 -5
- package/src/components/Accessibility/hooks/useIncomingMessageAnnouncements.ts +22 -23
- package/src/components/Attachment/Attachment.tsx +10 -6
- package/src/components/Attachment/Audio/AudioAttachment.tsx +10 -10
- package/src/components/Attachment/FileAttachment.tsx +13 -5
- package/src/components/Attachment/FilePreview.tsx +8 -4
- package/src/components/Attachment/Gallery.tsx +17 -5
- package/src/components/Attachment/Giphy/Giphy.tsx +3 -1
- package/src/components/Attachment/UnsupportedAttachment.tsx +2 -2
- package/src/components/Attachment/__tests__/Attachment.test.tsx +84 -13
- package/src/components/Attachment/__tests__/openUrlSafely.test.ts +13 -0
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +3 -3
- package/src/components/Attachment/utils/openUrlSafely.ts +7 -1
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentMediaPicker.tsx +5 -2
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx +57 -25
- package/src/components/AttachmentPicker/components/AttachmentMediaPicker/__tests__/AttachmentPickerItem.test.tsx +63 -0
- package/src/components/AttachmentPicker/components/AttachmentPickerContent.tsx +24 -16
- package/src/components/AttachmentPicker/components/AttachmentTypePickerButton.tsx +9 -9
- package/src/components/AttachmentPicker/components/__tests__/AttachmentCommandPicker.test.tsx +47 -0
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +17 -7
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +2 -4
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +3 -3
- package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.tsx +12 -3
- package/src/components/AutoCompleteInput/mentionItems/MentionBroadcastItem.tsx +2 -2
- package/src/components/AutoCompleteInput/mentionItems/MentionRoleItem.tsx +3 -1
- package/src/components/AutoCompleteInput/mentionItems/__tests__/MentionItems.test.tsx +5 -5
- package/src/components/Channel/Channel.tsx +60 -1783
- package/src/components/Channel/ChannelShell.tsx +542 -0
- package/src/components/Channel/__tests__/Channel.test.tsx +584 -221
- package/src/components/Channel/__tests__/isAttachmentEqualHandler.test.tsx +7 -2
- package/src/components/Channel/__tests__/ownCapabilities.test.tsx +12 -13
- package/src/components/Channel/__tests__/useCreateChannelContext.test.ts +56 -0
- package/src/components/Channel/hooks/useChannelLifecycle.ts +170 -0
- package/src/components/Channel/hooks/useCreateChannelContext.ts +2 -64
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +1 -9
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -20
- package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +19 -32
- package/src/components/Channel/hooks/useCreateThreadContext.ts +9 -49
- package/src/components/Channel/hooks/useSupersededChannelSwap.ts +25 -0
- package/src/components/ChannelDetails/__tests__/ChannelDetails.test.tsx +3 -2
- package/src/components/ChannelDetails/__tests__/ChannelDetailsActionsSection.test.tsx +15 -10
- package/src/components/ChannelDetails/__tests__/ChannelDetailsEditButton.test.tsx +3 -2
- package/src/components/ChannelDetails/__tests__/ChannelDetailsMemberSection.test.tsx +6 -7
- package/src/components/ChannelDetails/__tests__/ChannelDetailsNavHeader.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/ChannelDetailsNavigationSection.test.tsx +9 -1
- package/src/components/ChannelDetails/__tests__/ChannelDetailsProfile.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/ChannelEditDetailsForm.test.tsx +16 -7
- package/src/components/ChannelDetails/__tests__/ChannelEditDetailsFormContent.test.tsx +13 -10
- package/src/components/ChannelDetails/__tests__/ChannelEditImageSheet.test.tsx +11 -8
- package/src/components/ChannelDetails/__tests__/ChannelEditName.test.tsx +9 -8
- package/src/components/ChannelDetails/__tests__/members/AddMemberSearchResultItem.test.tsx +16 -6
- package/src/components/ChannelDetails/__tests__/members/ChannelAddMembersButton.test.tsx +3 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelAddMembersForm.test.tsx +8 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelAddMembersFormContent.test.tsx +2 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelMemberActionsSheet.test.tsx +2 -2
- package/src/components/ChannelDetails/__tests__/members/ChannelMemberItem.test.tsx +16 -6
- package/src/components/ChannelDetails/__tests__/members/ChannelMemberList.test.tsx +2 -2
- package/src/components/ChannelDetails/__tests__/members/useMemberRoles.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/useChannelDetailsMemberStatusText.test.tsx +22 -3
- package/src/components/ChannelDetails/__tests__/useChannelDetailsMembersPreview.test.tsx +9 -3
- package/src/components/ChannelDetails/__tests__/useEditChannelImage.test.tsx +1 -1
- package/src/components/ChannelDetails/__tests__/useFileAttachmentListSections.test.tsx +11 -7
- package/src/components/ChannelDetails/__tests__/useUserActivityStatus.test.tsx +3 -2
- package/src/components/ChannelDetails/components/ChannelDetailsEditButton.tsx +2 -2
- package/src/components/ChannelDetails/components/ChannelDetailsMemberSection.tsx +12 -4
- package/src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx +6 -2
- package/src/components/ChannelDetails/components/ChannelDetailsProfile.tsx +1 -1
- package/src/components/ChannelDetails/components/ChannelEditDetailsFormContent.tsx +2 -2
- package/src/components/ChannelDetails/components/ChannelEditDetailsFormHeader.tsx +5 -2
- package/src/components/ChannelDetails/components/ChannelEditImageSheet.tsx +5 -5
- package/src/components/ChannelDetails/components/ChannelEditName.tsx +2 -2
- package/src/components/ChannelDetails/components/__tests__/navigation-section/FileAttachmentList.test.tsx +8 -7
- package/src/components/ChannelDetails/components/__tests__/navigation-section/MediaItem.test.tsx +4 -2
- package/src/components/ChannelDetails/components/__tests__/navigation-section/MediaList.test.tsx +2 -2
- package/src/components/ChannelDetails/components/__tests__/navigation-section/PinnedMessageItem.test.tsx +1 -1
- package/src/components/ChannelDetails/components/__tests__/navigation-section/PinnedMessageList.test.tsx +2 -2
- package/src/components/ChannelDetails/components/members/AddMemberSearchResultItem.tsx +9 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersButton.tsx +3 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersFormContent.tsx +6 -3
- package/src/components/ChannelDetails/components/members/ChannelAddMembersFormHeader.tsx +5 -2
- package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +2 -2
- package/src/components/ChannelDetails/components/members/ChannelMemberList.tsx +8 -3
- package/src/components/ChannelDetails/components/modal/ModalHeader.tsx +1 -1
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx +6 -3
- package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +3 -1
- package/src/components/ChannelDetails/components/navigation-section/MediaList.tsx +6 -3
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx +13 -5
- package/src/components/ChannelDetails/hooks/members/useMemberRoles.ts +12 -3
- package/src/components/ChannelDetails/hooks/useChannelDetailsMemberStatusText.ts +4 -2
- package/src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts +9 -4
- package/src/components/ChannelDetails/hooks/useEditChannelImage.ts +19 -8
- package/src/components/ChannelDetails/hooks/useFileAttachmentListSections.ts +9 -5
- package/src/components/ChannelDetails/hooks/useUserActivityStatus.ts +8 -6
- package/src/components/ChannelList/ChannelList.tsx +35 -286
- package/src/components/ChannelList/ChannelListHeaderErrorIndicator.tsx +1 -1
- package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +1 -1
- package/src/components/ChannelList/ChannelListView.tsx +62 -64
- package/src/components/ChannelList/__tests__/ChannelList.test.tsx +383 -339
- package/src/components/ChannelList/__tests__/ChannelListView.test.tsx +92 -55
- package/src/components/ChannelList/hooks/__tests__/useChannelMembersState.test.tsx +66 -0
- package/src/components/ChannelList/hooks/__tests__/useMutedChannels.test.tsx +37 -0
- package/src/components/ChannelList/hooks/index.ts +0 -1
- package/src/components/ChannelList/hooks/useChannelMembersState.ts +58 -17
- package/src/components/ChannelList/hooks/useChannelOnlineMemberCount.ts +8 -10
- package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +24 -49
- package/src/components/ChannelList/hooks/useMutedChannels.ts +11 -14
- package/src/components/ChannelList/hooks/useMutedUsers.ts +6 -11
- package/src/components/ChannelList/hooks/usePaginatedChannels.ts +78 -173
- package/src/components/ChannelPreview/ChannelDetailsBottomSheet.tsx +18 -2
- package/src/components/ChannelPreview/ChannelMessagePreviewDeliveryStatus.tsx +37 -17
- package/src/components/ChannelPreview/ChannelPreview.tsx +9 -17
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +10 -5
- package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +1 -1
- package/src/components/ChannelPreview/ChannelPreviewPinnedStatus.tsx +1 -1
- package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +12 -7
- package/src/components/ChannelPreview/ChannelPreviewTypingIndicator.tsx +30 -14
- package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +4 -1
- package/src/components/ChannelPreview/ChannelPreviewView.tsx +2 -3
- package/src/components/ChannelPreview/__tests__/ChannelDetailsBottomSheet.test.tsx +37 -2
- package/src/components/ChannelPreview/__tests__/ChannelLastMessagePreview.test.tsx +2 -1
- package/src/components/ChannelPreview/__tests__/ChannelPreview.test.tsx +70 -90
- package/src/components/ChannelPreview/__tests__/ChannelPreviewView.test.tsx +1 -1
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +57 -0
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDraftMessage.test.tsx +32 -0
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewMuted.test.tsx +25 -50
- package/src/components/ChannelPreview/hooks/__tests__/useChannelTypingState.test.tsx +57 -0
- package/src/components/ChannelPreview/hooks/__tests__/useIsChannelPinned.test.tsx +21 -12
- package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts +50 -169
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +7 -2
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +2 -2
- package/src/components/ChannelPreview/hooks/useChannelPreviewDraftMessage.ts +16 -13
- package/src/components/ChannelPreview/hooks/useChannelPreviewPollLabel.ts +5 -3
- package/src/components/ChannelPreview/hooks/useChannelTypingState.ts +9 -38
- package/src/components/ChannelPreview/hooks/useIsChannelMuted.ts +11 -37
- package/src/components/ChannelPreview/hooks/useIsChannelPinned.ts +1 -1
- package/src/components/Chat/Chat.tsx +53 -105
- package/src/components/Chat/__tests__/Chat.test.tsx +269 -93
- package/src/components/Chat/hooks/__tests__/connectionStateHooks.test.tsx +314 -0
- package/src/components/Chat/hooks/__tests__/useAppSettingsGetter.test.tsx +104 -0
- package/src/components/Chat/hooks/__tests__/useCreateChatClient.netinfo.test.ts +47 -0
- package/src/components/Chat/hooks/__tests__/useCreateChatClient.userData.test.ts +51 -0
- package/src/components/Chat/hooks/index.ts +3 -3
- package/src/components/Chat/hooks/useAppSettingsGetter.ts +80 -0
- package/src/components/Chat/hooks/useClientUserId.ts +31 -0
- package/src/components/Chat/hooks/useConnectionLifecycle.ts +122 -0
- package/src/components/Chat/hooks/useCreateChatClient.ts +36 -9
- package/src/components/Chat/hooks/useCreateChatContext.ts +5 -33
- package/src/components/Chat/hooks/useInitializeOfflineDb.ts +11 -5
- package/src/components/Chat/hooks/useNetworkConnectionState.ts +39 -0
- package/src/components/Chat/hooks/usePendingUploadsDefault.ts +43 -0
- package/src/components/Chat/hooks/useWSConnectionState.ts +115 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +2 -2
- package/src/components/ImageGallery/components/ImageGalleryA11yProbe.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +3 -3
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +7 -5
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +1 -1
- package/src/components/Indicators/EmptyStateIndicator.tsx +8 -4
- package/src/components/Indicators/LoadingErrorIndicator.tsx +10 -4
- package/src/components/Indicators/LoadingIndicator.tsx +11 -3
- package/src/components/Message/Message.tsx +67 -222
- package/src/components/Message/MessageItemView/Headers/MessagePinnedHeader.tsx +4 -2
- package/src/components/Message/MessageItemView/Headers/MessageReminderHeader.tsx +4 -2
- package/src/components/Message/MessageItemView/Headers/MessageSavedForLaterHeader.tsx +1 -1
- package/src/components/Message/MessageItemView/Headers/SentToChannelHeader.tsx +34 -22
- package/src/components/Message/MessageItemView/MessageBounce.tsx +11 -10
- package/src/components/Message/MessageItemView/MessageContent.tsx +5 -10
- package/src/components/Message/MessageItemView/MessageDeleted.tsx +3 -1
- package/src/components/Message/MessageItemView/MessageFooter.tsx +30 -38
- package/src/components/Message/MessageItemView/MessageHeader.tsx +24 -41
- package/src/components/Message/MessageItemView/MessageItemView.tsx +20 -19
- package/src/components/Message/MessageItemView/MessageReplies.tsx +11 -25
- package/src/components/Message/MessageItemView/MessageStatus.tsx +26 -39
- package/src/components/Message/MessageItemView/MessageTimestamp.tsx +3 -3
- package/src/components/Message/MessageItemView/MessageWrapper.tsx +75 -39
- package/src/components/Message/MessageItemView/ReactionList/ReactionListClustered.tsx +3 -3
- package/src/components/Message/MessageItemView/ReactionList/ReactionListItem.tsx +1 -1
- package/src/components/Message/MessageItemView/__tests__/Message.test.tsx +135 -14
- package/src/components/Message/MessageItemView/__tests__/MessageAuthor.test.tsx +2 -2
- package/src/components/Message/MessageItemView/__tests__/MessageContent.test.tsx +76 -91
- package/src/components/Message/MessageItemView/__tests__/MessageFooter.test.tsx +71 -0
- package/src/components/Message/MessageItemView/__tests__/MessageHeader.test.tsx +78 -0
- package/src/components/Message/MessageItemView/__tests__/MessageItemView.test.tsx +14 -14
- package/src/components/Message/MessageItemView/__tests__/MessageReplies.test.tsx +6 -23
- package/src/components/Message/MessageItemView/__tests__/MessageStatus.test.tsx +115 -56
- package/src/components/Message/MessageItemView/__tests__/MessageTextContainer.test.tsx +7 -4
- package/src/components/Message/MessageItemView/__tests__/ReactionListBottom.test.tsx +5 -9
- package/src/components/Message/MessageItemView/__tests__/ReactionListTop.test.tsx +5 -9
- package/src/components/Message/hooks/__tests__/receiptUserHooks.test.tsx +103 -0
- package/src/components/Message/hooks/__tests__/{useMessageActionHandlers.test.tsx → useCreateMessageActionHandlers.test.tsx} +44 -9
- package/src/components/Message/hooks/__tests__/useMessageOperations.test.tsx +70 -0
- package/src/components/Message/hooks/__tests__/useShouldUseOverlayStyles.test.tsx +0 -4
- package/src/components/Message/hooks/__tests__/useUserMuteActive.test.tsx +49 -0
- package/src/components/Message/hooks/useCreateMessageActionHandlers.ts +434 -0
- package/src/components/Message/hooks/useCreateMessageContext.ts +5 -15
- package/src/components/Message/hooks/useIsMessageDeliveredToOthers.ts +41 -0
- package/src/components/Message/hooks/useIsMessageReadByOthers.ts +41 -0
- package/src/components/Message/hooks/useMessageActionHandlers.ts +13 -393
- package/src/components/Message/hooks/useMessageActions.tsx +64 -130
- package/src/components/Message/hooks/useMessageData.ts +4 -6
- package/src/components/Message/hooks/useMessageDeliveryData.ts +19 -37
- package/src/components/Message/hooks/useMessageOperations.ts +153 -0
- package/src/components/Message/hooks/useMessageReadData.ts +19 -38
- package/src/components/Message/hooks/useProcessReactions.ts +3 -3
- package/src/components/Message/hooks/useUserMuteActive.ts +30 -7
- package/src/components/Message/utils/messageActions.ts +2 -2
- package/src/components/MessageInput/MessageComposer.tsx +37 -20
- package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +3 -1
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +13 -16
- package/src/components/MessageInput/__tests__/AttachmentUploadPreviewList.test.tsx +9 -0
- package/src/components/MessageInput/__tests__/InputButtons.test.tsx +18 -0
- package/src/components/MessageInput/__tests__/MessageComposer.test.tsx +39 -1
- package/src/components/MessageInput/__tests__/SendMessageDisallowedIndicator.test.tsx +37 -6
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentRemoveControl.tsx +1 -1
- package/src/components/MessageInput/components/AttachmentPreview/AttachmentUploadProgressIndicator.tsx +5 -3
- package/src/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.tsx +11 -6
- package/src/components/MessageInput/components/AttachmentPreview/FileAttachmentUploadPreview.tsx +6 -6
- package/src/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.tsx +3 -3
- package/src/components/MessageInput/components/AttachmentPreview/VideoAttachmentUploadPreview.tsx +8 -4
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +5 -5
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +12 -4
- package/src/components/MessageInput/components/InputButtons/AttachButton.tsx +3 -1
- package/src/components/MessageInput/components/InputButtons/index.tsx +8 -0
- package/src/components/MessageInput/components/OutputButtons/EditButton.tsx +1 -1
- package/src/components/MessageInput/components/OutputButtons/SendButton.tsx +1 -1
- package/src/components/MessageInput/components/OutputButtons/index.tsx +9 -6
- package/src/components/MessageInput/hooks/useAudioRecorder.tsx +6 -4
- package/src/components/MessageList/InlineDateSeparator.tsx +4 -4
- package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +5 -6
- package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +5 -6
- package/src/components/MessageList/InlineUnreadIndicator.tsx +7 -1
- package/src/components/MessageList/MessageFlashList.tsx +161 -565
- package/src/components/MessageList/MessageList.tsx +155 -652
- package/src/components/MessageList/MessageSystem.tsx +4 -4
- package/src/components/MessageList/NetworkDownIndicator.tsx +11 -15
- package/src/components/MessageList/ScrollToBottomButton.tsx +13 -6
- package/src/components/MessageList/StickyHeader.tsx +4 -4
- package/src/components/MessageList/TypingIndicatorContainer.tsx +18 -9
- package/src/components/MessageList/UnreadMessagesNotification.tsx +50 -31
- package/src/components/MessageList/__tests__/InlineUnreadIndicator.test.tsx +26 -0
- package/src/components/MessageList/__tests__/MessageFlashList.test.tsx +130 -0
- package/src/components/MessageList/__tests__/MessageList.test.tsx +702 -161
- package/src/components/MessageList/__tests__/MessageSystem.test.tsx +2 -2
- package/src/components/MessageList/__tests__/ScrollToBottomButton.test.tsx +63 -11
- package/src/components/MessageList/__tests__/TypingIndicator.test.tsx +39 -24
- package/src/components/MessageList/__tests__/buildMessageListWithNeighbours.test.ts +33 -0
- package/src/components/MessageList/__tests__/dateSeparatorSystemMessages.test.tsx +23 -18
- package/src/components/MessageList/__tests__/useMessageDateSeparator.test.ts +9 -8
- package/src/components/MessageList/__tests__/useMessageList.test.tsx +19 -52
- package/src/components/MessageList/hooks/__tests__/useMarkRead.test.tsx +108 -0
- package/src/components/MessageList/hooks/__tests__/useMessageListLiveState.test.tsx +160 -0
- package/src/components/MessageList/hooks/__tests__/useMessageListPagination.test.tsx +184 -0
- package/src/components/MessageList/hooks/__tests__/useStickyHeaderDate.test.ts +31 -0
- package/src/components/MessageList/hooks/useMarkRead.ts +82 -0
- package/src/components/MessageList/hooks/useMessageDateSeparator.ts +12 -3
- package/src/components/MessageList/hooks/useMessageList.ts +26 -25
- package/src/components/MessageList/hooks/useMessageListFocus.ts +40 -0
- package/src/components/MessageList/hooks/useMessageListLiveState.ts +101 -0
- package/src/components/MessageList/hooks/useMessageListPagination.ts +71 -0
- package/src/components/MessageList/hooks/useOwnUnreadCount.ts +22 -0
- package/src/components/MessageList/hooks/useScrollToBottomAccessibilityAction.ts +2 -3
- package/src/components/MessageList/hooks/useStickyHeaderDate.ts +41 -0
- package/src/components/MessageList/hooks/useTypingString.ts +11 -5
- package/src/components/MessageList/hooks/useTypingUsers.ts +26 -4
- package/src/components/MessageList/hooks/useUnreadNotificationVisibility.ts +86 -0
- package/src/components/MessageList/utils/buildMessageListWithNeighbours.ts +9 -2
- package/src/components/MessageList/utils/filterTypingUsers.ts +12 -12
- package/src/components/MessageList/utils/getGroupStyles.ts +3 -2
- package/src/components/MessageMenu/MessageActionList.tsx +1 -1
- package/src/components/MessageMenu/MessageActionListWithActions.tsx +69 -0
- package/src/components/MessageMenu/MessageReactionPicker.tsx +1 -1
- package/src/components/MessageMenu/MessageUserReactions.tsx +12 -10
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +2 -2
- package/src/components/MessageMenu/__tests__/MessageReactionPicker.test.tsx +2 -1
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +33 -3
- package/src/components/MessageMenu/__tests__/MessageUserReactionsAvatar.test.tsx +2 -1
- package/src/components/MessageMenu/__tests__/MessageUserReactionsItem.test.tsx +6 -1
- package/src/components/MessageMenu/hooks/__tests__/useFetchReactions.test.ts +107 -1
- package/src/components/MessageMenu/hooks/useFetchReactions.ts +33 -25
- package/src/components/Notifications/Notification.tsx +1 -1
- package/src/components/Notifications/NotificationList.tsx +1 -1
- package/src/components/Notifications/__tests__/notificationTranslations.test.ts +59 -0
- package/src/components/Notifications/hooks/__tests__/useNotificationApi.test.tsx +1 -1
- package/src/components/Notifications/hooks/__tests__/useNotificationTarget.test.tsx +1 -13
- package/src/components/Notifications/hooks/useNotificationTarget.ts +1 -2
- package/src/components/Notifications/notificationTranslations.ts +117 -47
- package/src/components/Poll/CreatePollContent.tsx +15 -8
- package/src/components/Poll/Poll.tsx +9 -5
- package/src/components/Poll/__tests__/Poll.test.tsx +3 -1
- package/src/components/Poll/components/Button.tsx +2 -2
- package/src/components/Poll/components/CreatePollHeader.tsx +3 -3
- package/src/components/Poll/components/CreatePollOptions.tsx +24 -5
- package/src/components/Poll/components/MultipleAnswersField.tsx +4 -2
- package/src/components/Poll/components/MultipleVotesSettings.tsx +6 -4
- package/src/components/Poll/components/NameField.tsx +2 -2
- package/src/components/Poll/components/PollAnswersList.tsx +17 -13
- package/src/components/Poll/components/PollButtons.tsx +36 -13
- package/src/components/Poll/components/PollInputDialog.tsx +2 -2
- package/src/components/Poll/components/PollModalHeader.tsx +1 -1
- package/src/components/Poll/components/PollOption.tsx +14 -4
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +7 -3
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +23 -8
- package/src/components/Poll/components/PollResults/PollResults.tsx +1 -1
- package/src/components/Poll/components/PollResults/PollVote.tsx +8 -9
- package/src/components/Poll/components/__tests__/PollOption.test.tsx +3 -1
- package/src/components/Poll/contexts/PollUIStateContext.tsx +1 -1
- package/src/components/Poll/hooks/__tests__/usePollPagination.test.tsx +71 -0
- package/src/components/Poll/hooks/useEndVote.ts +2 -2
- package/src/components/Poll/hooks/usePollAnswersPagination.ts +8 -8
- package/src/components/Poll/hooks/usePollOptionVotesPagination.ts +20 -14
- package/src/components/Poll/hooks/usePollState.ts +13 -15
- package/src/components/Reply/Reply.tsx +25 -15
- package/src/components/Reply/__tests__/Reply.test.tsx +5 -4
- package/src/components/Thread/Thread.tsx +134 -153
- package/src/components/Thread/__tests__/Thread.test.tsx +444 -53
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +72 -52
- package/src/components/Thread/components/ThreadFooterComponent.tsx +35 -70
- package/src/components/ThreadList/ThreadList.tsx +15 -21
- package/src/components/ThreadList/ThreadListItem.tsx +21 -14
- package/src/components/ThreadList/ThreadListItemMessagePreview.tsx +1 -1
- package/src/components/ThreadList/ThreadListUnreadBanner.tsx +36 -22
- package/src/components/ThreadList/ThreadMessagePreviewDeliveryStatus.tsx +24 -8
- package/src/components/ThreadList/__tests__/ThreadList.test.tsx +182 -0
- package/src/components/UIComponents/BottomSheetModal.tsx +2 -4
- package/src/components/UIComponents/SearchInput.tsx +2 -2
- package/src/components/UIComponents/__tests__/SearchInput.test.tsx +1 -1
- package/src/components/index.ts +6 -8
- package/src/components/ui/Avatar/Avatar.tsx +1 -1
- package/src/components/ui/Avatar/ChannelAvatar.tsx +13 -5
- package/src/components/ui/Avatar/__tests__/ChannelAvatar.test.tsx +60 -24
- package/src/components/ui/Button/__tests__/Button.test.tsx +1 -1
- package/src/contexts/__tests__/index.test.tsx +16 -19
- package/src/contexts/channelAddMembersContext/ChannelAddMembersContext.tsx +1 -1
- package/src/contexts/channelContext/ChannelContext.tsx +1 -119
- package/src/contexts/channelContext/__tests__/publicSurface.test.ts +75 -0
- package/src/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.tsx +1 -1
- package/src/contexts/channelMediaListContext/ChannelMediaListContext.tsx +1 -1
- package/src/contexts/channelMemberListContext/ChannelMemberListContext.tsx +1 -1
- package/src/contexts/channelsContext/ChannelsContext.tsx +5 -40
- package/src/contexts/chatContext/ChatContext.tsx +9 -34
- package/src/contexts/componentsContext/defaultComponents.ts +0 -2
- package/src/contexts/index.ts +1 -3
- package/src/contexts/liveLocationManagerContext/LiveLocationManagerContext.tsx +4 -1
- package/src/contexts/liveLocationManagerContext/__tests__/LiveLocationManagerContext.test.tsx +66 -0
- package/src/contexts/liveLocationManagerContext/hooks/__tests__/useHandleLiveLocationEvents.test.tsx +74 -0
- package/src/contexts/liveLocationManagerContext/hooks/useHandleLiveLocationEvents.ts +8 -8
- package/src/contexts/messageComposerContext/MessageComposerContext.tsx +56 -14
- package/src/contexts/messageComposerContext/__tests__/MessageComposerContext.test.tsx +77 -0
- package/src/contexts/messageContext/MessageContext.tsx +13 -17
- package/src/contexts/messageInputContext/MessageInputContext.tsx +57 -185
- package/src/contexts/messageInputContext/__tests__/filePickers.test.tsx +1 -9
- package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +118 -259
- package/src/contexts/messageInputContext/__tests__/useMessageComposerHasSendableData.test.tsx +44 -0
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -10
- package/src/contexts/messageInputContext/hooks/useMessageComposer.ts +5 -7
- package/src/contexts/messageInputContext/hooks/useMessageComposerHasSendableData.ts +5 -5
- package/src/contexts/messageInputContext/hooks/usePendingUploadsEnabled.ts +20 -0
- package/src/contexts/messagesContext/MessagesContext.tsx +10 -40
- package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +1 -1
- package/src/contexts/pollContext/createPollContentContext.tsx +1 -1
- package/src/contexts/threadContext/ThreadContext.tsx +20 -44
- package/src/contexts/threadsContext/ThreadsContext.tsx +2 -3
- package/src/contexts/translationContext/TranslationContext.tsx +14 -9
- package/src/contexts/translationContext/index.ts +0 -1
- package/src/contexts/translationContext/types.ts +20 -11
- package/src/hooks/__tests__/useChannelMuteActive.test.tsx +40 -17
- package/src/hooks/__tests__/useIsChannelMember.test.tsx +4 -2
- package/src/hooks/__tests__/useIsDirectChat.test.tsx +55 -0
- package/src/hooks/__tests__/usePendingAttachmentUpload.test.tsx +1 -1
- package/src/hooks/__tests__/usePrunableMessageList.test.tsx +175 -0
- package/src/hooks/__tests__/useStreami18n.test.ts +71 -0
- package/src/hooks/actions/__tests__/useChannelActionItems.test.tsx +35 -21
- package/src/hooks/actions/__tests__/useChannelActions.test.tsx +32 -7
- package/src/hooks/actions/__tests__/useChannelMemberActionItems.test.tsx +27 -20
- package/src/hooks/actions/__tests__/useUserActions.test.tsx +15 -15
- package/src/hooks/actions/useChannelActionItems.tsx +54 -29
- package/src/hooks/actions/useChannelActions.ts +46 -36
- package/src/hooks/actions/useChannelMemberActionItems.tsx +21 -11
- package/src/hooks/actions/useUserActions.ts +15 -11
- package/src/hooks/index.ts +3 -1
- package/src/hooks/messagePreview/__tests__/useMessageDeliveryStatus.test.tsx +119 -0
- package/src/hooks/messagePreview/__tests__/useMessagePreviewText.test.tsx +4 -6
- package/src/hooks/messagePreview/useGroupedAttachments.ts +4 -1
- package/src/hooks/messagePreview/useMessageDeliveryStatus.ts +49 -68
- package/src/hooks/messagePreview/useMessagePreviewText.tsx +45 -20
- package/src/hooks/useAudioPlayer.ts +9 -3
- package/src/hooks/useChannel.ts +19 -0
- package/src/hooks/useChannelImage.ts +9 -5
- package/src/hooks/useChannelMemberCount.ts +10 -5
- package/src/hooks/useChannelMembershipState.ts +10 -5
- package/src/hooks/useChannelMuteActive.ts +2 -6
- package/src/hooks/useChannelName.ts +9 -5
- package/src/hooks/useChannelOwnCapabilities.ts +11 -8
- package/src/hooks/useIsDirectChat.ts +4 -2
- package/src/hooks/useIsTargetedMessage.ts +29 -0
- package/src/hooks/useLoadingImage.tsx +4 -4
- package/src/hooks/useMessagePaginator.ts +13 -0
- package/src/hooks/usePrunableMessageList.ts +37 -31
- package/src/hooks/useQueryReminders.ts +19 -17
- package/src/hooks/useStateStore.ts +1 -1
- package/src/hooks/useStreami18n.ts +25 -46
- package/src/hooks/useSyncClientEvents.ts +7 -7
- package/src/hooks/useTranslatedMessage.ts +23 -5
- package/src/i18n/__tests__/callSites.test.ts +346 -0
- package/src/i18n/__tests__/catalog.fixture.json +418 -0
- package/src/i18n/__tests__/catalogRenders.test.ts +88 -0
- package/src/i18n/__tests__/dateNormalization.test.ts +91 -0
- package/src/i18n/__tests__/pluralCategories.test.ts +114 -0
- package/src/i18n/__tests__/publicExports.test.ts +79 -0
- package/src/i18n/index.ts +4 -0
- package/src/i18n/keys.ts +525 -0
- package/src/i18n/runtimeDefaults.ts +148 -0
- package/src/i18n/types.ts +54 -0
- package/src/i18n/utils.ts +69 -0
- package/src/index.ts +2 -14
- package/src/middlewares/__tests__/attachments.test.ts +69 -49
- package/src/middlewares/attachments.ts +7 -110
- package/src/mock-builders/DB/mock.ts +13 -4
- package/src/mock-builders/api/channelMocks.tsx +36 -33
- package/src/mock-builders/api/getOrCreateChannel.ts +2 -2
- package/src/mock-builders/api/initiateClientWithChannels.ts +13 -2
- package/src/mock-builders/api/queryMembers.ts +16 -14
- package/src/mock-builders/api/useMockedApis.ts +63 -5
- package/src/mock-builders/attachments.ts +5 -0
- package/src/mock-builders/event/connectionChanged.ts +29 -9
- package/src/mock-builders/event/connectionRecovered.ts +5 -0
- package/src/mock-builders/event/messageDeleted.ts +0 -1
- package/src/mock-builders/event/messageRead.ts +3 -1
- package/src/mock-builders/event/messageUpdated.ts +0 -1
- package/src/mock-builders/event/notificationChannelMutesUpdated.ts +1 -3
- package/src/mock-builders/event/notificationMarkUnread.ts +3 -1
- package/src/mock-builders/event/notificationMutesUpdated.ts +5 -3
- package/src/mock-builders/event/typing.ts +0 -2
- package/src/mock-builders/event/userPresence.ts +5 -3
- package/src/mock-builders/event/userUpdated.ts +5 -3
- package/src/mock-builders/event/utils.ts +31 -0
- package/src/mock-builders/generator/attachment.ts +14 -4
- package/src/mock-builders/generator/channel.ts +14 -10
- package/src/mock-builders/generator/channelState.ts +56 -0
- package/src/mock-builders/generator/message.ts +22 -15
- package/src/mock-builders/generator/reaction.ts +2 -1
- package/src/mock-builders/generator/time.ts +19 -0
- package/src/mock-builders/generator/user.ts +4 -2
- package/src/mock-builders/mock.ts +19 -9
- package/src/state-store/__tests__/edit-channel-details-store.test.ts +8 -3
- package/src/state-store/__tests__/image-gallery-state-store.test.ts +52 -2
- package/src/state-store/attachment-picker-store.ts +1 -1
- package/src/state-store/audio-player-pool.ts +1 -1
- package/src/state-store/audio-player.ts +1 -1
- package/src/state-store/audio-recorder-manager.ts +1 -1
- package/src/state-store/edit-channel-details-store.ts +4 -3
- package/src/state-store/image-gallery-state-store.ts +4 -3
- package/src/state-store/in-app-notifications-store.ts +2 -1
- package/src/state-store/message-input-height-store.ts +1 -1
- package/src/state-store/message-overlay-store.ts +1 -1
- package/src/state-store/selection-store.ts +1 -1
- package/src/state-store/signal-store.ts +1 -1
- package/src/state-store/video-player-pool.ts +1 -1
- package/src/state-store/video-player.ts +1 -1
- package/src/store/OfflineDB.ts +13 -15
- package/src/store/SqliteClient.ts +3 -3
- package/src/store/__tests__/channelExists.test.ts +44 -0
- package/src/store/__tests__/insertReaction.test.ts +107 -0
- package/src/store/__tests__/mapperRequiredTimestamps.test.ts +64 -0
- package/src/store/__tests__/timestampStorage.test.ts +146 -0
- package/src/store/apis/__tests__/channelQueryCids.test.ts +69 -9
- package/src/store/apis/__tests__/updatePendingTask.test.ts +3 -1
- package/src/store/apis/channelExists.ts +12 -4
- package/src/store/apis/deleteMessagesForChannel.ts +7 -2
- package/src/store/apis/deleteReaction.ts +2 -2
- package/src/store/apis/getAppSettings.ts +6 -6
- package/src/store/apis/getChannelActiveLocations.ts +3 -3
- package/src/store/apis/getChannelMessages.ts +4 -4
- package/src/store/apis/getChannels.ts +10 -9
- package/src/store/apis/getChannelsForFilterSort.ts +27 -16
- package/src/store/apis/getDraft.ts +1 -1
- package/src/store/apis/getDraftsForChannels.ts +3 -3
- package/src/store/apis/getLastSyncedAt.ts +4 -4
- package/src/store/apis/getReactionsforFilterSort.ts +2 -2
- package/src/store/apis/getReads.ts +2 -2
- package/src/store/apis/index.ts +0 -1
- package/src/store/apis/insertReaction.ts +12 -2
- package/src/store/apis/queries/selectActiveLocationsForChannels.ts +5 -2
- package/src/store/apis/queries/selectChannelQueryForFilterSort.ts +90 -0
- package/src/store/apis/queries/selectDraftMessageFromDraftForChannels.ts +1 -1
- package/src/store/apis/queries/selectMembersForChannels.ts +1 -1
- package/src/store/apis/queries/selectReactionsForMessages.ts +6 -8
- package/src/store/apis/softDeleteMessage.ts +2 -2
- package/src/store/apis/updateReaction.ts +8 -1
- package/src/store/apis/upsertAppSettings.ts +6 -6
- package/src/store/apis/upsertChannels.ts +11 -7
- package/src/store/apis/upsertCidsForQuery.ts +12 -2
- package/src/store/apis/upsertDraft.ts +2 -2
- package/src/store/apis/upsertLocation.ts +2 -2
- package/src/store/apis/upsertPoll.ts +2 -2
- package/src/store/apis/upsertReads.ts +2 -2
- package/src/store/apis/upsertUserSyncStatus.ts +4 -4
- package/src/store/apis/utils/__tests__/convertFilterSortToQuery.test.ts +1 -1
- package/src/store/apis/utils/convertFilterSortToQuery.ts +2 -2
- package/src/store/mappers/mapChannelDataToStorable.ts +7 -10
- package/src/store/mappers/mapChannelToStorable.ts +7 -10
- package/src/store/mappers/mapDraftMessageToStorable.ts +2 -2
- package/src/store/mappers/mapDraftToStorable.ts +2 -2
- package/src/store/mappers/mapMemberToStorable.ts +7 -7
- package/src/store/mappers/mapMessageToStorable.ts +7 -7
- package/src/store/mappers/mapPollToStorable.ts +6 -6
- package/src/store/mappers/mapReactionToStorable.ts +3 -3
- package/src/store/mappers/mapReadToStorable.ts +6 -5
- package/src/store/mappers/mapReminderToStorable.ts +6 -6
- package/src/store/mappers/mapSharedLocationToStorable.ts +6 -6
- package/src/store/mappers/mapStorableToChannel.ts +12 -7
- package/src/store/mappers/mapStorableToDraft.ts +5 -4
- package/src/store/mappers/mapStorableToMember.ts +12 -9
- package/src/store/mappers/mapStorableToMessage.ts +8 -7
- package/src/store/mappers/mapStorableToPoll.ts +14 -8
- package/src/store/mappers/mapStorableToReaction.ts +3 -2
- package/src/store/mappers/mapStorableToRead.ts +6 -5
- package/src/store/mappers/mapStorableToReminder.ts +7 -5
- package/src/store/mappers/mapStorableToSharedLocation.ts +9 -5
- package/src/store/mappers/mapStorableToTimestamp.ts +24 -0
- package/src/store/mappers/mapStorableToUser.ts +6 -4
- package/src/store/mappers/mapTimestampToStorable.ts +14 -0
- package/src/store/mappers/mapUserToStorable.ts +5 -3
- package/src/store/schema.ts +70 -64
- package/src/store/sqlite-utils/createUpsertQuery.ts +35 -9
- package/src/store/sqlite-utils/createUpsertQueryIfParentExists.ts +58 -0
- package/src/store/types.ts +4 -4
- package/src/types/react-native-compat.ts +2 -2
- package/src/types/types.ts +13 -10
- package/src/utils/__tests__/Streami18n.test.ts +248 -255
- package/src/utils/__tests__/installNativeMultipartAdapter.test.ts +125 -22
- package/src/utils/attachmentUrls.ts +19 -0
- package/src/utils/getUrlOfImageAttachment.ts +9 -2
- package/src/utils/i18n/Streami18n.ts +115 -725
- package/src/utils/installNativeMultipartAdapter.ts +46 -39
- package/src/utils/removeReservedFields.ts +2 -4
- package/src/utils/utils.ts +32 -98
- package/src/version.json +1 -1
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js +0 -187
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js +0 -36
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js +0 -16
- package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +0 -292
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +0 -1
- package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js +0 -50
- package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js +0 -43
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/utils/index.js +0 -115
- package/lib/commonjs/components/ChannelList/hooks/utils/index.js.map +0 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +0 -69
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +0 -1
- package/lib/commonjs/components/Chat/hooks/useClientMutedUsers.js +0 -26
- package/lib/commonjs/components/Chat/hooks/useClientMutedUsers.js.map +0 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js +0 -100
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +0 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js +0 -55
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js.map +0 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js +0 -19
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +0 -1
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +0 -22
- package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +0 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +0 -67
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +0 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +0 -47
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +0 -1
- package/lib/commonjs/contexts/debugContext/DebugContext.js +0 -42
- package/lib/commonjs/contexts/debugContext/DebugContext.js.map +0 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageComposer.js +0 -68
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageComposer.js.map +0 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js +0 -14
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js.map +0 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +0 -28
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +0 -1
- package/lib/commonjs/contexts/translationContext/isDayOrMoment.js +0 -7
- package/lib/commonjs/contexts/translationContext/isDayOrMoment.js.map +0 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +0 -28
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +0 -1
- package/lib/commonjs/hooks/useSelectedChannelState.js +0 -30
- package/lib/commonjs/hooks/useSelectedChannelState.js.map +0 -1
- package/lib/commonjs/i18n/ar.json +0 -471
- package/lib/commonjs/i18n/en.json +0 -471
- package/lib/commonjs/i18n/es.json +0 -471
- package/lib/commonjs/i18n/fr.json +0 -471
- package/lib/commonjs/i18n/he.json +0 -471
- package/lib/commonjs/i18n/hi.json +0 -471
- package/lib/commonjs/i18n/it.json +0 -471
- package/lib/commonjs/i18n/ja.json +0 -471
- package/lib/commonjs/i18n/ko.json +0 -471
- package/lib/commonjs/i18n/nl.json +0 -471
- package/lib/commonjs/i18n/pt-br.json +0 -471
- package/lib/commonjs/i18n/ru.json +0 -471
- package/lib/commonjs/i18n/tr.json +0 -471
- package/lib/commonjs/state-store/channel-unread-state.js +0 -25
- package/lib/commonjs/state-store/channel-unread-state.js.map +0 -1
- package/lib/commonjs/state-store/message-list-prev-next-state.js +0 -40
- package/lib/commonjs/state-store/message-list-prev-next-state.js.map +0 -1
- package/lib/commonjs/store/apis/deleteReactions.js +0 -30
- package/lib/commonjs/store/apis/deleteReactions.js.map +0 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +0 -35
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +0 -1
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +0 -29
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +0 -1
- package/lib/commonjs/store/mappers/mapDateTimeToStorable.js +0 -12
- package/lib/commonjs/store/mappers/mapDateTimeToStorable.js.map +0 -1
- package/lib/commonjs/store/sqlite-utils/printRow.js +0 -18
- package/lib/commonjs/store/sqlite-utils/printRow.js.map +0 -1
- package/lib/commonjs/utils/addReactionToLocalState.js +0 -51
- package/lib/commonjs/utils/addReactionToLocalState.js.map +0 -1
- package/lib/commonjs/utils/date.js +0 -8
- package/lib/commonjs/utils/date.js.map +0 -1
- package/lib/commonjs/utils/i18n/calendarFormats.js +0 -111
- package/lib/commonjs/utils/i18n/calendarFormats.js.map +0 -1
- package/lib/commonjs/utils/i18n/getDateString.js +0 -75
- package/lib/commonjs/utils/i18n/getDateString.js.map +0 -1
- package/lib/commonjs/utils/i18n/predefinedFormatters.js +0 -83
- package/lib/commonjs/utils/i18n/predefinedFormatters.js.map +0 -1
- package/lib/commonjs/utils/i18n/types.js.map +0 -1
- package/lib/commonjs/utils/patchMessageTextCommand.js +0 -20
- package/lib/commonjs/utils/patchMessageTextCommand.js.map +0 -1
- package/lib/commonjs/utils/removeReactionFromLocalState.js +0 -33
- package/lib/commonjs/utils/removeReactionFromLocalState.js.map +0 -1
- package/lib/module/components/Channel/hooks/useChannelDataState.js +0 -187
- package/lib/module/components/Channel/hooks/useChannelDataState.js.map +0 -1
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js +0 -36
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +0 -1
- package/lib/module/components/Channel/hooks/useCreateTypingContext.js +0 -16
- package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +0 -1
- package/lib/module/components/Channel/hooks/useMessageListPagination.js +0 -292
- package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +0 -1
- package/lib/module/components/Channel/hooks/useTargetedMessage.js +0 -50
- package/lib/module/components/Channel/hooks/useTargetedMessage.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js +0 -43
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/utils/index.js +0 -115
- package/lib/module/components/ChannelList/hooks/utils/index.js.map +0 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +0 -69
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +0 -1
- package/lib/module/components/Chat/hooks/useClientMutedUsers.js +0 -26
- package/lib/module/components/Chat/hooks/useClientMutedUsers.js.map +0 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js +0 -100
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +0 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js +0 -55
- package/lib/module/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js.map +0 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js +0 -19
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +0 -1
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +0 -22
- package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +0 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +0 -67
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +0 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js +0 -47
- package/lib/module/contexts/channelsStateContext/useChannelState.js.map +0 -1
- package/lib/module/contexts/debugContext/DebugContext.js +0 -42
- package/lib/module/contexts/debugContext/DebugContext.js.map +0 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageComposer.js +0 -68
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageComposer.js.map +0 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js +0 -14
- package/lib/module/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.js.map +0 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +0 -28
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +0 -1
- package/lib/module/contexts/translationContext/isDayOrMoment.js +0 -7
- package/lib/module/contexts/translationContext/isDayOrMoment.js.map +0 -1
- package/lib/module/contexts/typingContext/TypingContext.js +0 -28
- package/lib/module/contexts/typingContext/TypingContext.js.map +0 -1
- package/lib/module/hooks/useSelectedChannelState.js +0 -30
- package/lib/module/hooks/useSelectedChannelState.js.map +0 -1
- package/lib/module/i18n/ar.json +0 -471
- package/lib/module/i18n/en.json +0 -471
- package/lib/module/i18n/es.json +0 -471
- package/lib/module/i18n/fr.json +0 -471
- package/lib/module/i18n/he.json +0 -471
- package/lib/module/i18n/hi.json +0 -471
- package/lib/module/i18n/it.json +0 -471
- package/lib/module/i18n/ja.json +0 -471
- package/lib/module/i18n/ko.json +0 -471
- package/lib/module/i18n/nl.json +0 -471
- package/lib/module/i18n/pt-br.json +0 -471
- package/lib/module/i18n/ru.json +0 -471
- package/lib/module/i18n/tr.json +0 -471
- package/lib/module/state-store/channel-unread-state.js +0 -25
- package/lib/module/state-store/channel-unread-state.js.map +0 -1
- package/lib/module/state-store/message-list-prev-next-state.js +0 -40
- package/lib/module/state-store/message-list-prev-next-state.js.map +0 -1
- package/lib/module/store/apis/deleteReactions.js +0 -30
- package/lib/module/store/apis/deleteReactions.js.map +0 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +0 -35
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +0 -1
- package/lib/module/store/apis/upsertChannelDataFromChannel.js +0 -29
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +0 -1
- package/lib/module/store/mappers/mapDateTimeToStorable.js +0 -12
- package/lib/module/store/mappers/mapDateTimeToStorable.js.map +0 -1
- package/lib/module/store/sqlite-utils/printRow.js +0 -18
- package/lib/module/store/sqlite-utils/printRow.js.map +0 -1
- package/lib/module/utils/addReactionToLocalState.js +0 -51
- package/lib/module/utils/addReactionToLocalState.js.map +0 -1
- package/lib/module/utils/date.js +0 -8
- package/lib/module/utils/date.js.map +0 -1
- package/lib/module/utils/i18n/calendarFormats.js +0 -111
- package/lib/module/utils/i18n/calendarFormats.js.map +0 -1
- package/lib/module/utils/i18n/getDateString.js +0 -75
- package/lib/module/utils/i18n/getDateString.js.map +0 -1
- package/lib/module/utils/i18n/predefinedFormatters.js +0 -83
- package/lib/module/utils/i18n/predefinedFormatters.js.map +0 -1
- package/lib/module/utils/i18n/types.js.map +0 -1
- package/lib/module/utils/patchMessageTextCommand.js +0 -20
- package/lib/module/utils/patchMessageTextCommand.js.map +0 -1
- package/lib/module/utils/removeReactionFromLocalState.js +0 -33
- package/lib/module/utils/removeReactionFromLocalState.js.map +0 -1
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +0 -74
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +0 -5
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +0 -3
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +0 -29
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +0 -1
- package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts +0 -7
- package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +0 -9
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/utils/index.d.ts +0 -21
- package/lib/typescript/components/ChannelList/hooks/utils/index.d.ts.map +0 -1
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts +0 -3
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +0 -1
- package/lib/typescript/components/Chat/hooks/useClientMutedUsers.d.ts +0 -3
- package/lib/typescript/components/Chat/hooks/useClientMutedUsers.d.ts.map +0 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +0 -12
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentThreadIndicator.d.ts +0 -7
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentThreadIndicator.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +0 -3
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +0 -1
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +0 -8
- package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts.map +0 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +0 -24
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +0 -1
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +0 -14
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +0 -1
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts +0 -26
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +0 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageComposer.d.ts +0 -4
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageComposer.d.ts.map +0 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.d.ts +0 -2
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.d.ts.map +0 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +0 -52
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +0 -1
- package/lib/typescript/contexts/translationContext/isDayOrMoment.d.ts +0 -5
- package/lib/typescript/contexts/translationContext/isDayOrMoment.d.ts.map +0 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +0 -11
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +0 -1
- package/lib/typescript/hooks/useSelectedChannelState.d.ts +0 -12
- package/lib/typescript/hooks/useSelectedChannelState.d.ts.map +0 -1
- package/lib/typescript/i18n/ar.json +0 -471
- package/lib/typescript/i18n/en.json +0 -471
- package/lib/typescript/i18n/es.json +0 -471
- package/lib/typescript/i18n/fr.json +0 -471
- package/lib/typescript/i18n/he.json +0 -471
- package/lib/typescript/i18n/hi.json +0 -471
- package/lib/typescript/i18n/it.json +0 -471
- package/lib/typescript/i18n/ja.json +0 -471
- package/lib/typescript/i18n/ko.json +0 -471
- package/lib/typescript/i18n/nl.json +0 -471
- package/lib/typescript/i18n/pt-br.json +0 -471
- package/lib/typescript/i18n/ru.json +0 -471
- package/lib/typescript/i18n/tr.json +0 -471
- package/lib/typescript/state-store/channel-unread-state.d.ts +0 -12
- package/lib/typescript/state-store/channel-unread-state.d.ts.map +0 -1
- package/lib/typescript/state-store/message-list-prev-next-state.d.ts +0 -16
- package/lib/typescript/state-store/message-list-prev-next-state.d.ts.map +0 -1
- package/lib/typescript/store/apis/deleteReactions.d.ts +0 -5
- package/lib/typescript/store/apis/deleteReactions.d.ts.map +0 -1
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts +0 -16
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts.map +0 -1
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts +0 -6
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts.map +0 -1
- package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts +0 -2
- package/lib/typescript/store/mappers/mapDateTimeToStorable.d.ts.map +0 -1
- package/lib/typescript/store/sqlite-utils/printRow.d.ts +0 -3
- package/lib/typescript/store/sqlite-utils/printRow.d.ts.map +0 -1
- package/lib/typescript/utils/addReactionToLocalState.d.ts +0 -9
- package/lib/typescript/utils/addReactionToLocalState.d.ts.map +0 -1
- package/lib/typescript/utils/date.d.ts +0 -3
- package/lib/typescript/utils/date.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/calendarFormats.d.ts +0 -6
- package/lib/typescript/utils/i18n/calendarFormats.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/getDateString.d.ts +0 -44
- package/lib/typescript/utils/i18n/getDateString.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/predefinedFormatters.d.ts +0 -3
- package/lib/typescript/utils/i18n/predefinedFormatters.d.ts.map +0 -1
- package/lib/typescript/utils/i18n/types.d.ts +0 -69
- package/lib/typescript/utils/i18n/types.d.ts.map +0 -1
- package/lib/typescript/utils/patchMessageTextCommand.d.ts +0 -10
- package/lib/typescript/utils/patchMessageTextCommand.d.ts.map +0 -1
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts +0 -8
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts.map +0 -1
- package/src/components/Channel/__tests__/useMessageListPagination.test.tsx +0 -692
- package/src/components/Channel/hooks/useChannelDataState.ts +0 -220
- package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +0 -42
- package/src/components/Channel/hooks/useCreateTypingContext.ts +0 -17
- package/src/components/Channel/hooks/useMessageListPagination.tsx +0 -330
- package/src/components/Channel/hooks/useTargetedMessage.ts +0 -44
- package/src/components/ChannelList/hooks/listeners/__tests__/useChannelUpdated.test.tsx +0 -87
- package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +0 -49
- package/src/components/ChannelList/hooks/utils/index.ts +0 -125
- package/src/components/Chat/hooks/__tests__/useAppSettings.test.tsx +0 -37
- package/src/components/Chat/hooks/useAppSettings.ts +0 -65
- package/src/components/Chat/hooks/useClientMutedUsers.ts +0 -19
- package/src/components/Chat/hooks/useIsOnline.ts +0 -104
- package/src/components/MessageList/InlineLoadingMoreRecentThreadIndicator.tsx +0 -61
- package/src/components/MessageList/utils/getLastReceivedMessage.ts +0 -16
- package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +0 -15
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +0 -107
- package/src/contexts/channelsStateContext/useChannelState.ts +0 -66
- package/src/contexts/debugContext/DebugContext.tsx +0 -68
- package/src/contexts/messageInputContext/hooks/useCreateMessageComposer.ts +0 -97
- package/src/contexts/messageInputContext/hooks/useMessageCompositionIsEmpty.ts +0 -13
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +0 -83
- package/src/contexts/translationContext/isDayOrMoment.ts +0 -8
- package/src/contexts/typingContext/TypingContext.tsx +0 -36
- package/src/hooks/useSelectedChannelState.ts +0 -53
- package/src/i18n/ar.json +0 -471
- package/src/i18n/en.json +0 -471
- package/src/i18n/es.json +0 -471
- package/src/i18n/fr.json +0 -471
- package/src/i18n/he.json +0 -471
- package/src/i18n/hi.json +0 -471
- package/src/i18n/it.json +0 -471
- package/src/i18n/ja.json +0 -471
- package/src/i18n/ko.json +0 -471
- package/src/i18n/nl.json +0 -471
- package/src/i18n/pt-br.json +0 -471
- package/src/i18n/ru.json +0 -471
- package/src/i18n/tr.json +0 -471
- package/src/state-store/channel-unread-state.ts +0 -28
- package/src/state-store/message-list-prev-next-state.ts +0 -58
- package/src/store/apis/deleteReactions.ts +0 -23
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +0 -42
- package/src/store/apis/upsertChannelDataFromChannel.ts +0 -24
- package/src/store/mappers/mapDateTimeToStorable.ts +0 -7
- package/src/store/sqlite-utils/printRow.ts +0 -19
- package/src/utils/__tests__/patchMessageTextCommand.test.ts +0 -14
- package/src/utils/addReactionToLocalState.ts +0 -52
- package/src/utils/date.ts +0 -4
- package/src/utils/i18n/calendarFormats.ts +0 -111
- package/src/utils/i18n/getDateString.ts +0 -133
- package/src/utils/i18n/predefinedFormatters.ts +0 -98
- package/src/utils/i18n/types.ts +0 -82
- package/src/utils/patchMessageTextCommand.ts +0 -36
- package/src/utils/removeReactionFromLocalState.ts +0 -49
- /package/lib/commonjs/{utils/i18n → i18n}/types.js +0 -0
- /package/lib/module/{utils/i18n → i18n}/types.js +0 -0
|
@@ -1,212 +1,117 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
ChannelFilters,
|
|
5
|
-
ChannelManager,
|
|
6
|
-
ChannelManagerState,
|
|
7
|
-
ChannelOptions,
|
|
8
|
-
ChannelSort,
|
|
9
|
-
} from 'stream-chat';
|
|
3
|
+
import type { ChannelPaginator, ChannelPaginatorState } from 'stream-chat';
|
|
10
4
|
|
|
11
|
-
import { useActiveChannelsRefContext } from '../../../contexts/activeChannelsRefContext/ActiveChannelsRefContext';
|
|
12
5
|
import { useChatContext } from '../../../contexts/chatContext/ChatContext';
|
|
13
6
|
import { useStateStore } from '../../../hooks';
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
type Parameters = {
|
|
17
|
-
channelManager: ChannelManager;
|
|
18
|
-
enableOfflineSupport: boolean;
|
|
19
|
-
filters: ChannelFilters;
|
|
20
|
-
options: ChannelOptions;
|
|
21
|
-
setForceUpdate: React.Dispatch<React.SetStateAction<number>>;
|
|
22
|
-
sort: ChannelSort;
|
|
23
|
-
};
|
|
7
|
+
import { useStableCallback } from '../../../hooks/useStableCallback';
|
|
8
|
+
import { useClientUserId } from '../../Chat/hooks/useClientUserId';
|
|
24
9
|
|
|
25
10
|
const RETRY_INTERVAL_IN_MS = 5000;
|
|
26
11
|
|
|
27
|
-
type QueryType = '
|
|
28
|
-
|
|
29
|
-
export type QueryChannels = (queryType?: QueryType, retryCount?: number) => Promise<void>;
|
|
12
|
+
type QueryType = 'reload' | 'refresh' | 'loadChannels' | 'backgroundRefresh';
|
|
30
13
|
|
|
31
|
-
const selector = (nextValue:
|
|
14
|
+
const selector = (nextValue: ChannelPaginatorState) =>
|
|
32
15
|
({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
channels: nextValue.items,
|
|
17
|
+
hasNextPage: nextValue.hasMoreTail,
|
|
18
|
+
isLoading: nextValue.isLoading,
|
|
19
|
+
lastQueryError: nextValue.lastQueryError,
|
|
37
20
|
}) as const;
|
|
38
21
|
|
|
39
|
-
export const usePaginatedChannels = ({
|
|
40
|
-
|
|
41
|
-
enableOfflineSupport,
|
|
42
|
-
filters = {},
|
|
43
|
-
options = {},
|
|
44
|
-
sort = {},
|
|
45
|
-
}: Parameters) => {
|
|
46
|
-
const [staticChannelsActive, setStaticChannelsActive] = useState<boolean>(false);
|
|
47
|
-
const [activeQueryType, setActiveQueryType] = useState<QueryType | null>('queryLocalDB');
|
|
48
|
-
const activeChannels = useActiveChannelsRefContext();
|
|
49
|
-
const isMountedRef = useIsMountedRef();
|
|
22
|
+
export const usePaginatedChannels = ({ paginator }: { paginator: ChannelPaginator }) => {
|
|
23
|
+
const [activeQueryType, setActiveQueryType] = useState<QueryType | null>(null);
|
|
50
24
|
const { client } = useChatContext();
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
const isQueryingRef = useRef(false);
|
|
25
|
+
|
|
26
|
+
const { channels, hasNextPage, isLoading, lastQueryError } =
|
|
27
|
+
useStateStore(paginator.state, selector) ?? {};
|
|
28
|
+
|
|
29
|
+
const channelListInitialized = channels !== undefined;
|
|
30
|
+
const error = lastQueryError;
|
|
31
|
+
|
|
32
|
+
const isMountedRef = useRef(true);
|
|
60
33
|
const lastRefresh = useRef(Date.now());
|
|
61
34
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const hasUpdatedData =
|
|
70
|
-
queryType === 'loadChannels' ||
|
|
71
|
-
queryType === 'refresh' ||
|
|
72
|
-
queryType === 'backgroundRefresh' ||
|
|
73
|
-
JSON.stringify(filtersRef.current) !== JSON.stringify(filters) ||
|
|
74
|
-
JSON.stringify(optionsRef.current) !== JSON.stringify(options) ||
|
|
75
|
-
JSON.stringify(sortRef.current) !== JSON.stringify(sort);
|
|
76
|
-
|
|
77
|
-
const isQueryStale = () => !isMountedRef || activeRequestId.current !== currentRequestId;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* We don't need to make another call to query channels if we don't
|
|
81
|
-
* have new data for the query to include
|
|
82
|
-
* */
|
|
83
|
-
if (!hasUpdatedData) {
|
|
84
|
-
if (activeQueryType === null) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
filtersRef.current = filters;
|
|
90
|
-
optionsRef.current = options;
|
|
91
|
-
sortRef.current = sort;
|
|
92
|
-
isQueryingRef.current = true;
|
|
93
|
-
activeRequestId.current++;
|
|
94
|
-
const currentRequestId = activeRequestId.current;
|
|
95
|
-
setActiveQueryType(queryType);
|
|
96
|
-
|
|
97
|
-
const newOptions = {
|
|
98
|
-
offset: 0,
|
|
99
|
-
...options,
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
isMountedRef.current = true;
|
|
37
|
+
return () => {
|
|
38
|
+
isMountedRef.current = false;
|
|
100
39
|
};
|
|
40
|
+
}, []);
|
|
101
41
|
|
|
102
|
-
|
|
103
|
-
|
|
42
|
+
const queryChannels = useStableCallback(
|
|
43
|
+
async (queryType: QueryType = 'loadChannels'): Promise<void> => {
|
|
44
|
+
if (!client || !isMountedRef.current) {
|
|
104
45
|
return;
|
|
105
46
|
}
|
|
106
|
-
/**
|
|
107
|
-
* We skipInitialization here for handling race condition between ChannelList, Channel (and Thread)
|
|
108
|
-
* when they all (may) update the channel state at the same time (when connection state recovers)
|
|
109
|
-
* TODO: if we move the channel state to a single context and share it between ChannelList, Channel and Thread we can remove this
|
|
110
|
-
*/
|
|
111
|
-
if (queryType === 'loadChannels') {
|
|
112
|
-
await channelManager.loadNext();
|
|
113
|
-
} else {
|
|
114
|
-
await channelManager.queryChannels(filters, sort, newOptions, {
|
|
115
|
-
skipInitialization: enableOfflineSupport ? undefined : activeChannels.current,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
47
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
48
|
+
setActiveQueryType(queryType);
|
|
49
|
+
|
|
50
|
+
try {
|
|
51
|
+
if (queryType === 'loadChannels') {
|
|
52
|
+
// Next page — append toward the tail, keeping the current list.
|
|
53
|
+
await paginator.toTail();
|
|
54
|
+
} else if (queryType === 'reload') {
|
|
55
|
+
// First page from scratch (blanks to the skeleton).
|
|
56
|
+
await paginator.reload();
|
|
57
|
+
} else {
|
|
58
|
+
await paginator.toTail({ keepPreviousItems: true, reset: 'yes' });
|
|
59
|
+
}
|
|
60
|
+
} catch (err: unknown) {
|
|
61
|
+
console.warn(err);
|
|
62
|
+
}
|
|
123
63
|
|
|
124
|
-
if (
|
|
64
|
+
if (isMountedRef.current) {
|
|
65
|
+
setActiveQueryType(null);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
const refreshList = useStableCallback(
|
|
71
|
+
async ({ isBackground = false }: { isBackground?: boolean } = {}) => {
|
|
72
|
+
const now = Date.now();
|
|
73
|
+
// Only allow pull-to-refresh 5 seconds after the last successful refresh. This throttle is now
|
|
74
|
+
// purely about the user pulling repeatedly: reconnect refreshes no longer come through here at
|
|
75
|
+
// all — `client.connectionRecovery` owns them and re-runs each list's own query directly on the
|
|
76
|
+
// paginator, so they can never be swallowed by this window.
|
|
77
|
+
if (now - lastRefresh.current < RETRY_INTERVAL_IN_MS && error === undefined) {
|
|
125
78
|
return;
|
|
126
79
|
}
|
|
127
80
|
|
|
128
|
-
|
|
129
|
-
|
|
81
|
+
lastRefresh.current = Date.now();
|
|
82
|
+
await queryChannels(isBackground ? 'backgroundRefresh' : 'refresh');
|
|
83
|
+
},
|
|
84
|
+
);
|
|
130
85
|
|
|
131
|
-
|
|
132
|
-
};
|
|
86
|
+
const reloadList = useStableCallback(() => queryChannels('reload'));
|
|
133
87
|
|
|
134
|
-
const
|
|
135
|
-
force = false,
|
|
136
|
-
isBackground = false,
|
|
137
|
-
}: { force?: boolean; isBackground?: boolean } = {}) => {
|
|
138
|
-
const now = Date.now();
|
|
139
|
-
// Only allow pull-to-refresh 5 seconds after last successful refresh, unless the request
|
|
140
|
-
// is invoked with force: true.
|
|
141
|
-
if (!force && now - lastRefresh.current < RETRY_INTERVAL_IN_MS && error === undefined) {
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
lastRefresh.current = Date.now();
|
|
146
|
-
await queryChannels(isBackground ? 'backgroundRefresh' : 'refresh');
|
|
147
|
-
};
|
|
88
|
+
const refreshListWithDefaults = useStableCallback(() => refreshList());
|
|
148
89
|
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Equality check using stringified filters/options/sort ensure that we don't make un-necessary queryChannels api calls
|
|
155
|
-
* for the scenario:
|
|
156
|
-
*
|
|
157
|
-
* <ChannelList
|
|
158
|
-
* filters={{
|
|
159
|
-
* members: { $in: ['vishal'] }
|
|
160
|
-
* }}
|
|
161
|
-
* ...
|
|
162
|
-
* />
|
|
163
|
-
*
|
|
164
|
-
* Here we have passed filters as inline object, which means on every re-render of
|
|
165
|
-
* parent component, ChannelList will receive new object reference (even though value is same), which
|
|
166
|
-
* in return will trigger useEffect. To avoid this, we can add a value check.
|
|
167
|
-
*/
|
|
168
|
-
const filterStr = useMemo(() => JSON.stringify(filters), [filters]);
|
|
169
|
-
const optionsStr = useMemo(() => JSON.stringify(options), [options]);
|
|
170
|
-
const sortStr = useMemo(() => JSON.stringify(sort), [sort]);
|
|
90
|
+
const loadNextPage = useStableCallback(async () => {
|
|
91
|
+
if (!paginator.isInitialized) return;
|
|
92
|
+
await queryChannels('loadChannels');
|
|
93
|
+
});
|
|
171
94
|
|
|
95
|
+
// Load the first page whenever the paginator has none: on the first mount, after the app swaps in a
|
|
96
|
+
// new paginator, and after `client.disconnectUser` resets it. A paginator that already has channels
|
|
97
|
+
// is shown as is, and a load already in flight is left alone.
|
|
98
|
+
const userId = useClientUserId(client);
|
|
99
|
+
const isUnloaded = channels === undefined;
|
|
172
100
|
useEffect(() => {
|
|
173
|
-
|
|
174
|
-
'connection.changed',
|
|
175
|
-
async (event) => {
|
|
176
|
-
if (event.online) {
|
|
177
|
-
// Reconnection refreshes stay silent but must NOT be throttled by the
|
|
178
|
-
// pull-to-refresh debounce. This is the query that rewatches the
|
|
179
|
-
// channels on the fresh socket.
|
|
180
|
-
await refreshList({ force: true, isBackground: true });
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
);
|
|
101
|
+
if (!isUnloaded || !userId || paginator.isLoading) return;
|
|
184
102
|
reloadList();
|
|
185
|
-
|
|
186
|
-
return () => listener?.unsubscribe?.();
|
|
187
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
188
|
-
}, [filterStr, optionsStr, sortStr, channelManager]);
|
|
103
|
+
}, [isUnloaded, paginator, reloadList, userId]);
|
|
189
104
|
|
|
190
105
|
return {
|
|
191
106
|
channelListInitialized,
|
|
192
107
|
channels,
|
|
193
108
|
error,
|
|
194
109
|
hasNextPage,
|
|
195
|
-
loadingChannels:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
: // Although channels.length === 0 should come as a given when we have !channelListInitialized,
|
|
199
|
-
// due to the way offline storage works currently we have to do this additional
|
|
200
|
-
// check to make sure channels were not populated before the reactive list becomes
|
|
201
|
-
// ready. I do not like providing a way to set the ready state, as it should be managed
|
|
202
|
-
// in the LLC entirely. Once we move offline support to the LLC, we can remove this check
|
|
203
|
-
// too as it'll be redundant.
|
|
204
|
-
pagination?.isLoading || (!channelListInitialized && channels.length === 0 && !error),
|
|
205
|
-
loadingNextPage: pagination?.isLoadingNext,
|
|
206
|
-
loadNextPage: channelManager.loadNext,
|
|
110
|
+
loadingChannels: channels === undefined && !error,
|
|
111
|
+
loadingNextPage: activeQueryType === 'loadChannels' && !!isLoading,
|
|
112
|
+
loadNextPage,
|
|
207
113
|
refreshing: activeQueryType === 'refresh',
|
|
208
|
-
refreshList:
|
|
114
|
+
refreshList: refreshListWithDefaults,
|
|
209
115
|
reloadList,
|
|
210
|
-
staticChannelsActive,
|
|
211
116
|
};
|
|
212
117
|
};
|
|
@@ -10,6 +10,7 @@ import { ChannelPreviewMutedStatus } from './ChannelPreviewMutedStatus';
|
|
|
10
10
|
import { ChannelPreviewTitle } from './ChannelPreviewTitle';
|
|
11
11
|
|
|
12
12
|
import { useBottomSheetContext } from '../../contexts/bottomSheetContext/BottomSheetContext';
|
|
13
|
+
import { useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
13
14
|
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
14
15
|
import { useSwipeRegistryContext } from '../../contexts/swipeableContext/SwipeRegistryContext';
|
|
15
16
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
@@ -34,20 +35,31 @@ export type ChannelDetailsBottomSheetProps = {
|
|
|
34
35
|
|
|
35
36
|
export const ChannelDetailsHeader = ({ channel }: ChannelDetailsHeaderProps) => {
|
|
36
37
|
const styles = useStyles();
|
|
38
|
+
const { client } = useChatContext();
|
|
37
39
|
const { t } = useTranslationContext();
|
|
38
40
|
const members = useChannelMembersState(channel);
|
|
39
41
|
const memberCount = useMemo(() => Object.keys(members).length, [members]);
|
|
40
42
|
const onlineCount = useChannelOnlineMemberCount(channel);
|
|
41
43
|
const isDirectChat = useIsDirectChat(channel);
|
|
44
|
+
// The watcher count includes the current user, so a DM reads the other member's presence.
|
|
45
|
+
const isOtherMemberOnline = useMemo(
|
|
46
|
+
() =>
|
|
47
|
+
Object.values(members).some(
|
|
48
|
+
(member) => member.user?.id !== client.userID && member.user?.online,
|
|
49
|
+
),
|
|
50
|
+
[client, members],
|
|
51
|
+
);
|
|
42
52
|
const muted = useChannelMuteActive(channel);
|
|
43
53
|
const displayedMemberCount = memberCount > 9 ? '9+' : `${memberCount}`;
|
|
44
54
|
const displayedOnlineCount = onlineCount > 9 ? '9+' : `${onlineCount}`;
|
|
45
55
|
const membersAndOnlineLabel = useMemo(
|
|
46
56
|
() =>
|
|
47
|
-
t('
|
|
57
|
+
t('channelDetails.presence.membersOnline.label', {
|
|
48
58
|
count: memberCount,
|
|
49
59
|
memberCount: displayedMemberCount,
|
|
50
60
|
onlineCount: displayedOnlineCount,
|
|
61
|
+
defaultValue_one: '{{memberCount}} member, {{onlineCount}} online',
|
|
62
|
+
defaultValue_other: '{{memberCount}} members, {{onlineCount}} online',
|
|
51
63
|
}),
|
|
52
64
|
[displayedMemberCount, displayedOnlineCount, memberCount, t],
|
|
53
65
|
);
|
|
@@ -61,7 +73,11 @@ export const ChannelDetailsHeader = ({ channel }: ChannelDetailsHeaderProps) =>
|
|
|
61
73
|
{muted ? <ChannelPreviewMutedStatus /> : null}
|
|
62
74
|
</View>
|
|
63
75
|
<Text style={styles.headerMeta}>
|
|
64
|
-
{isDirectChat
|
|
76
|
+
{isDirectChat
|
|
77
|
+
? isOtherMemberOnline
|
|
78
|
+
? t('common.presence.online.label', 'Online')
|
|
79
|
+
: t('common.presence.offline.label', 'Offline')
|
|
80
|
+
: membersAndOnlineLabel}
|
|
65
81
|
</Text>
|
|
66
82
|
</View>
|
|
67
83
|
</View>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { LocalMessage, MessageResponse } from 'stream-chat';
|
|
4
|
+
import { ChannelConfig, LocalMessage, MessageResponse } from 'stream-chat';
|
|
5
5
|
|
|
6
6
|
import { ChannelPreviewProps } from './ChannelPreview';
|
|
7
7
|
|
|
@@ -11,10 +11,18 @@ import { useComponentsContext } from '../../contexts/componentsContext/Component
|
|
|
11
11
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
12
12
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
13
13
|
import { MessageDeliveryStatus, useMessageDeliveryStatus } from '../../hooks';
|
|
14
|
+
import { useStateStore } from '../../hooks/useStateStore';
|
|
14
15
|
import { primitives } from '../../theme';
|
|
15
16
|
import { MessageStatusTypes } from '../../utils/utils';
|
|
16
17
|
import { CompositeAccessibilityProbe } from '../Accessibility/CompositeAccessibilityProbe';
|
|
17
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Module scope so the reference stays stable — an inline selector re-subscribes on every render.
|
|
21
|
+
*/
|
|
22
|
+
const readEventsSelector = ({ readEvents }: ChannelConfig) => ({
|
|
23
|
+
readEventsEnabled: readEvents.enabled,
|
|
24
|
+
});
|
|
25
|
+
|
|
18
26
|
export type ChannelMessagePreviewDeliveryStatusProps = Pick<ChannelPreviewProps, 'channel'> & {
|
|
19
27
|
message: MessageResponse | LocalMessage;
|
|
20
28
|
};
|
|
@@ -26,7 +34,11 @@ export const ChannelMessagePreviewDeliveryStatus = ({
|
|
|
26
34
|
const { client } = useChatContext();
|
|
27
35
|
const { icons } = useComponentsContext();
|
|
28
36
|
const { t } = useTranslationContext();
|
|
29
|
-
|
|
37
|
+
// `configState` is absent on the partial channel mocks some tests pass in; a real channel always
|
|
38
|
+
// has one. Resolved configuration, so `read_events` is already ANDed with anything registered
|
|
39
|
+
// through `client.config.set({ channel: { readEvents } })`.
|
|
40
|
+
const configState = channel?.configState;
|
|
41
|
+
const { readEventsEnabled } = useStateStore(configState, readEventsSelector) ?? {};
|
|
30
42
|
const styles = useStyles();
|
|
31
43
|
const {
|
|
32
44
|
theme: {
|
|
@@ -48,35 +60,43 @@ export const ChannelMessagePreviewDeliveryStatus = ({
|
|
|
48
60
|
}, [message, client.user?.id]);
|
|
49
61
|
|
|
50
62
|
const readEvents = useMemo(() => {
|
|
51
|
-
if (!
|
|
63
|
+
if (!configState) {
|
|
52
64
|
return true;
|
|
53
65
|
}
|
|
54
|
-
const read_events = !channel.
|
|
66
|
+
const read_events = !channel.pendingDisposal && !!channel?.id && readEventsEnabled;
|
|
55
67
|
if (typeof read_events !== 'boolean') {
|
|
56
68
|
return true;
|
|
57
69
|
}
|
|
58
70
|
return read_events;
|
|
59
|
-
}, [
|
|
71
|
+
}, [configState, readEventsEnabled, channel]);
|
|
72
|
+
|
|
73
|
+
// `status` only exists on optimistic/local messages (`LocalMessage`); a delivered
|
|
74
|
+
// `MessageResponse` won't carry it. Read it through a guard instead of asserting the shape.
|
|
75
|
+
const messageStatus = 'status' in message ? message.status : undefined;
|
|
60
76
|
|
|
61
77
|
const { status } = useMessageDeliveryStatus({
|
|
62
78
|
channel,
|
|
63
|
-
lastMessage: message
|
|
79
|
+
lastMessage: message,
|
|
64
80
|
isReadEventsEnabled: readEvents,
|
|
65
81
|
});
|
|
66
82
|
|
|
67
83
|
const statusLabel = useA11yLabel(
|
|
68
|
-
|
|
69
|
-
? '
|
|
70
|
-
:
|
|
71
|
-
? '
|
|
84
|
+
messageStatus === MessageStatusTypes.SENDING
|
|
85
|
+
? 'message.status.sending.accessibilityLabel'
|
|
86
|
+
: messageStatus === MessageStatusTypes.RECEIVED && status === MessageDeliveryStatus.READ
|
|
87
|
+
? 'channelPreview.deliveryStatus.read.accessibilityLabel'
|
|
72
88
|
: status === MessageDeliveryStatus.DELIVERED
|
|
73
|
-
? '
|
|
89
|
+
? 'channelPreview.deliveryStatus.delivered.accessibilityLabel'
|
|
74
90
|
: status === MessageDeliveryStatus.SENT
|
|
75
|
-
? '
|
|
76
|
-
: '
|
|
91
|
+
? 'channelPreview.deliveryStatus.sent.accessibilityLabel'
|
|
92
|
+
: 'message.status.sending.accessibilityLabel',
|
|
77
93
|
);
|
|
78
94
|
|
|
79
|
-
if (
|
|
95
|
+
if (
|
|
96
|
+
!channel.data?.custom?.name &&
|
|
97
|
+
membersWithoutSelf.length === 1 &&
|
|
98
|
+
!isLastMessageByCurrentUser
|
|
99
|
+
) {
|
|
80
100
|
return null;
|
|
81
101
|
}
|
|
82
102
|
|
|
@@ -87,9 +107,9 @@ export const ChannelMessagePreviewDeliveryStatus = ({
|
|
|
87
107
|
return (
|
|
88
108
|
<CompositeAccessibilityProbe label={statusLabel}>
|
|
89
109
|
<View style={styles.container}>
|
|
90
|
-
{
|
|
110
|
+
{messageStatus === MessageStatusTypes.SENDING ? (
|
|
91
111
|
<icons.Time stroke={semantics.chatTextTimestamp} height={16} width={16} {...timeIcon} />
|
|
92
|
-
) :
|
|
112
|
+
) : messageStatus === MessageStatusTypes.RECEIVED &&
|
|
93
113
|
status === MessageDeliveryStatus.READ ? (
|
|
94
114
|
<icons.CheckAll
|
|
95
115
|
stroke={semantics.accentPrimary}
|
|
@@ -107,7 +127,7 @@ export const ChannelMessagePreviewDeliveryStatus = ({
|
|
|
107
127
|
) : status === MessageDeliveryStatus.SENT ? (
|
|
108
128
|
<icons.Check stroke={semantics.chatTextTimestamp} height={16} width={16} {...checkIcon} />
|
|
109
129
|
) : null}
|
|
110
|
-
<Text style={styles.text}>{t('You')}:</Text>
|
|
130
|
+
<Text style={styles.text}>{t('common.you.label', 'You')}:</Text>
|
|
111
131
|
</View>
|
|
112
132
|
</CompositeAccessibilityProbe>
|
|
113
133
|
);
|
|
@@ -5,24 +5,20 @@ import type { Channel } from 'stream-chat';
|
|
|
5
5
|
import { ChannelSwipableWrapper } from './ChannelSwipableWrapper';
|
|
6
6
|
import { useChannelPreviewData } from './hooks/useChannelPreviewData';
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
ChannelsContextValue,
|
|
10
|
-
useChannelsContext,
|
|
11
|
-
} from '../../contexts/channelsContext/ChannelsContext';
|
|
8
|
+
import { useChannelsContext } from '../../contexts/channelsContext/ChannelsContext';
|
|
12
9
|
import { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
13
10
|
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
14
11
|
import { useTranslatedMessage } from '../../hooks/useTranslatedMessage';
|
|
15
12
|
|
|
16
|
-
export type ChannelPreviewProps = Partial<Pick<ChatContextValue, 'client'>> &
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
13
|
+
export type ChannelPreviewProps = Partial<Pick<ChatContextValue, 'client'>> & {
|
|
14
|
+
/**
|
|
15
|
+
* Instance of Channel from stream-chat package.
|
|
16
|
+
*/
|
|
17
|
+
channel: Channel;
|
|
18
|
+
};
|
|
23
19
|
|
|
24
20
|
export const ChannelPreview = (props: ChannelPreviewProps) => {
|
|
25
|
-
const { channel, client: propClient
|
|
21
|
+
const { channel, client: propClient } = props;
|
|
26
22
|
|
|
27
23
|
const { client: contextClient } = useChatContext();
|
|
28
24
|
const { getChannelActionItems, swipeActionsEnabled } = useChannelsContext();
|
|
@@ -30,11 +26,7 @@ export const ChannelPreview = (props: ChannelPreviewProps) => {
|
|
|
30
26
|
|
|
31
27
|
const client = propClient || contextClient;
|
|
32
28
|
|
|
33
|
-
const { muted, pinned, unread, lastMessage } = useChannelPreviewData(
|
|
34
|
-
channel,
|
|
35
|
-
client,
|
|
36
|
-
propForceUpdate,
|
|
37
|
-
);
|
|
29
|
+
const { muted, pinned, unread, lastMessage } = useChannelPreviewData(channel, client);
|
|
38
30
|
|
|
39
31
|
const translatedLastMessage = useTranslatedMessage(lastMessage);
|
|
40
32
|
|
|
@@ -51,8 +51,11 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
|
|
|
51
51
|
);
|
|
52
52
|
}, [channel.state.members, client.user?.id]);
|
|
53
53
|
|
|
54
|
+
// `status` only exists on optimistic/local messages (`LocalMessage`), so read it via a
|
|
55
|
+
// guard rather than asserting `lastMessage` (a `LocalMessage | MessageResponse`) is local.
|
|
56
|
+
const lastMessageStatus = lastMessage && 'status' in lastMessage ? lastMessage.status : undefined;
|
|
54
57
|
const isFailedMessage =
|
|
55
|
-
|
|
58
|
+
lastMessageStatus === MessageStatusTypes.FAILED || lastMessage?.type === 'error';
|
|
56
59
|
const showMessageDeliveryStatus = !isMessageDeleted;
|
|
57
60
|
|
|
58
61
|
if (usersTyping.length > 0) {
|
|
@@ -62,7 +65,7 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
|
|
|
62
65
|
if (draftMessage) {
|
|
63
66
|
return (
|
|
64
67
|
<View style={styles.container}>
|
|
65
|
-
<Text style={styles.draftText}>{t('Draft')}:</Text>
|
|
68
|
+
<Text style={styles.draftText}>{t('common.draft.label', 'Draft')}:</Text>
|
|
66
69
|
<ChannelPreviewLastMessage message={draftMessage} />
|
|
67
70
|
</View>
|
|
68
71
|
);
|
|
@@ -72,7 +75,7 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
|
|
|
72
75
|
if (!lastMessage) {
|
|
73
76
|
return (
|
|
74
77
|
<Text style={[styles.subtitle, { color: semantics.textTertiary }]}>
|
|
75
|
-
{t('No messages yet')}
|
|
78
|
+
{t('channelPreview.noMessages.text', 'No messages yet')}
|
|
76
79
|
</Text>
|
|
77
80
|
);
|
|
78
81
|
}
|
|
@@ -92,12 +95,14 @@ export const ChannelPreviewMessage = (props: ChannelPreviewMessageProps) => {
|
|
|
92
95
|
return (
|
|
93
96
|
<View style={styles.container}>
|
|
94
97
|
<ErrorBadge size='xs' />
|
|
95
|
-
<Text style={styles.errorText}>
|
|
98
|
+
<Text style={styles.errorText}>
|
|
99
|
+
{t('channelPreview.messageFailed.error', 'Message failed to send')}
|
|
100
|
+
</Text>
|
|
96
101
|
</View>
|
|
97
102
|
);
|
|
98
103
|
}
|
|
99
104
|
|
|
100
|
-
if (channel.data?.name || membersWithoutSelf.length > 1) {
|
|
105
|
+
if (channel.data?.custom?.name || membersWithoutSelf.length > 1) {
|
|
101
106
|
return (
|
|
102
107
|
<View style={styles.container}>
|
|
103
108
|
{showMessageDeliveryStatus ? (
|
|
@@ -16,7 +16,7 @@ export const ChannelPreviewMutedStatus = () => {
|
|
|
16
16
|
},
|
|
17
17
|
} = useTheme();
|
|
18
18
|
const { icons } = useComponentsContext();
|
|
19
|
-
const accessibilityLabel = useA11yLabel('
|
|
19
|
+
const accessibilityLabel = useA11yLabel('channelPreview.muted.accessibilityLabel');
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
22
|
<CompositeAccessibilityProbe label={accessibilityLabel}>
|
|
@@ -16,7 +16,7 @@ export const ChannelPreviewPinnedStatus = () => {
|
|
|
16
16
|
},
|
|
17
17
|
} = useTheme();
|
|
18
18
|
const { icons } = useComponentsContext();
|
|
19
|
-
const accessibilityLabel = useA11yLabel('
|
|
19
|
+
const accessibilityLabel = useA11yLabel('channelPreview.pinned.accessibilityLabel');
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
22
|
<CompositeAccessibilityProbe label={accessibilityLabel}>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, Text } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { convertTimestampToDate } from 'stream-chat';
|
|
5
|
+
|
|
4
6
|
import type { ChannelPreviewProps } from './ChannelPreview';
|
|
5
7
|
import type { ChannelPreviewViewPropsWithContext } from './ChannelPreviewView';
|
|
6
8
|
|
|
@@ -8,8 +10,8 @@ import { useA11yLabel } from '../../a11y/hooks/useA11yLabel';
|
|
|
8
10
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
9
11
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
10
12
|
|
|
13
|
+
import { getCalendarDateStringForA11y, getDateString } from '../../i18n/utils';
|
|
11
14
|
import { primitives } from '../../theme';
|
|
12
|
-
import { getDateString, getDateStringForA11y } from '../../utils/i18n/getDateString';
|
|
13
15
|
|
|
14
16
|
export type ChannelPreviewStatusProps = Pick<
|
|
15
17
|
ChannelPreviewViewPropsWithContext,
|
|
@@ -23,24 +25,24 @@ export const ChannelPreviewStatus = (props: ChannelPreviewStatusProps) => {
|
|
|
23
25
|
const styles = useStyles();
|
|
24
26
|
|
|
25
27
|
const created_at = lastMessage?.created_at;
|
|
26
|
-
const latestMessageDate =
|
|
28
|
+
const latestMessageDate = convertTimestampToDate(created_at);
|
|
27
29
|
|
|
28
30
|
const formattedDate = useMemo(
|
|
29
31
|
() =>
|
|
30
32
|
getDateString({
|
|
31
|
-
|
|
33
|
+
messageCreatedAt: convertTimestampToDate(created_at),
|
|
32
34
|
t,
|
|
33
35
|
tDateTimeParser,
|
|
34
|
-
timestampTranslationKey: 'timestamp
|
|
36
|
+
timestampTranslationKey: 'timestamp.ChannelPreviewStatus',
|
|
35
37
|
}),
|
|
36
38
|
[created_at, t, tDateTimeParser],
|
|
37
39
|
);
|
|
38
40
|
|
|
39
41
|
const a11yDate = useMemo(
|
|
40
42
|
() =>
|
|
41
|
-
|
|
43
|
+
getCalendarDateStringForA11y({
|
|
42
44
|
calendarFormatOverrides: { sameDay: 'LT' },
|
|
43
|
-
|
|
45
|
+
messageCreatedAt: convertTimestampToDate(created_at),
|
|
44
46
|
tDateTimeParser,
|
|
45
47
|
userLanguage,
|
|
46
48
|
}),
|
|
@@ -55,7 +57,10 @@ export const ChannelPreviewStatus = (props: ChannelPreviewStatusProps) => {
|
|
|
55
57
|
() => ({ date: a11yDate ?? visibleDate ?? '' }),
|
|
56
58
|
[a11yDate, visibleDate],
|
|
57
59
|
);
|
|
58
|
-
const accessibilityLabel = useA11yLabel(
|
|
60
|
+
const accessibilityLabel = useA11yLabel(
|
|
61
|
+
'channelPreview.lastMessage.accessibilityLabel',
|
|
62
|
+
labelParams,
|
|
63
|
+
);
|
|
59
64
|
|
|
60
65
|
return (
|
|
61
66
|
<Text accessibilityLabel={accessibilityLabel} style={styles.date}>
|