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,13 +1,11 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
PollAnswer,
|
|
7
|
-
PollOption,
|
|
4
|
+
PollOptionResponseData,
|
|
5
|
+
PollResponse,
|
|
8
6
|
PollState,
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
PollVoteResponse,
|
|
8
|
+
PollVoteResponseData,
|
|
11
9
|
UserResponse,
|
|
12
10
|
VotingVisibility,
|
|
13
11
|
} from 'stream-chat';
|
|
@@ -24,40 +22,40 @@ export type UsePollStateSelectorReturnType = {
|
|
|
24
22
|
createdBy: UserResponse | null;
|
|
25
23
|
enforceUniqueVote: boolean;
|
|
26
24
|
isClosed: boolean | undefined;
|
|
27
|
-
latestVotesByOption: Record<string,
|
|
25
|
+
latestVotesByOption: Record<string, PollVoteResponseData[]>;
|
|
28
26
|
maxVotedOptionIds: string[];
|
|
29
27
|
maxVotesAllowed: number;
|
|
30
28
|
name: string;
|
|
31
|
-
options:
|
|
32
|
-
ownAnswer:
|
|
33
|
-
ownVotesByOptionId: Record<string,
|
|
29
|
+
options: PollOptionResponseData[];
|
|
30
|
+
ownAnswer: PollVoteResponseData | undefined;
|
|
31
|
+
ownVotesByOptionId: Record<string, PollVoteResponseData>;
|
|
34
32
|
voteCountsByOption: Record<string, number>;
|
|
35
33
|
votingVisibility: VotingVisibility | undefined;
|
|
36
34
|
voteCount: number;
|
|
37
35
|
};
|
|
38
36
|
|
|
39
37
|
export type UsePollStateReturnType = UsePollStateSelectorReturnType & {
|
|
40
|
-
addComment: (answerText: string) => Promise<
|
|
38
|
+
addComment: (answerText: string) => Promise<PollVoteResponse>;
|
|
41
39
|
addOption: (optionText: string) => Promise<void>;
|
|
42
|
-
endVote: () => Promise<
|
|
40
|
+
endVote: () => Promise<PollResponse | undefined>;
|
|
43
41
|
};
|
|
44
42
|
|
|
45
43
|
const selector = (nextValue: PollState): UsePollStateSelectorReturnType => ({
|
|
46
44
|
allowAnswers: nextValue.allow_answers,
|
|
47
45
|
allowUserSuggestedOptions: nextValue.allow_user_suggested_options,
|
|
48
46
|
answersCount: nextValue.answers_count,
|
|
49
|
-
createdBy: nextValue.created_by,
|
|
47
|
+
createdBy: nextValue.created_by ?? null,
|
|
50
48
|
enforceUniqueVote: nextValue.enforce_unique_vote,
|
|
51
49
|
isClosed: nextValue.is_closed,
|
|
52
50
|
latestVotesByOption: nextValue.latest_votes_by_option,
|
|
53
51
|
maxVotedOptionIds: nextValue.maxVotedOptionIds,
|
|
54
|
-
maxVotesAllowed: nextValue.max_votes_allowed,
|
|
52
|
+
maxVotesAllowed: nextValue.max_votes_allowed ?? 0,
|
|
55
53
|
name: nextValue.name,
|
|
56
54
|
options: nextValue.options,
|
|
57
55
|
ownAnswer: nextValue.ownAnswer,
|
|
58
56
|
ownVotesByOptionId: nextValue.ownVotesByOptionId,
|
|
59
57
|
voteCountsByOption: nextValue.vote_counts_by_option,
|
|
60
|
-
votingVisibility: nextValue.voting_visibility,
|
|
58
|
+
votingVisibility: nextValue.voting_visibility as VotingVisibility,
|
|
61
59
|
voteCount: nextValue.vote_count,
|
|
62
60
|
});
|
|
63
61
|
|
|
@@ -12,9 +12,11 @@ import {
|
|
|
12
12
|
} from 'react-native';
|
|
13
13
|
|
|
14
14
|
import {
|
|
15
|
+
getAttachmentPreviewUrl,
|
|
15
16
|
isFileAttachment,
|
|
16
17
|
isImageAttachment,
|
|
17
18
|
isVideoAttachment,
|
|
19
|
+
LocalMessage,
|
|
18
20
|
MessageComposerState,
|
|
19
21
|
} from 'stream-chat';
|
|
20
22
|
|
|
@@ -28,7 +30,6 @@ import {
|
|
|
28
30
|
useMessageContext,
|
|
29
31
|
} from '../../contexts/messageContext/MessageContext';
|
|
30
32
|
import { useMessageComposer } from '../../contexts/messageInputContext/hooks/useMessageComposer';
|
|
31
|
-
import { MessagesContextValue } from '../../contexts/messagesContext/MessagesContext';
|
|
32
33
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
33
34
|
import { useTranslationContext } from '../../contexts/translationContext/TranslationContext';
|
|
34
35
|
import { useStateStore } from '../../hooks';
|
|
@@ -56,7 +57,7 @@ const RightContent = React.memo(
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
const attachment = attachments?.[0];
|
|
59
|
-
const uri = attachment?.image_url
|
|
60
|
+
const uri = getAttachmentPreviewUrl(attachment, attachment?.image_url, attachment?.thumb_url);
|
|
60
61
|
|
|
61
62
|
if (
|
|
62
63
|
attachment &&
|
|
@@ -86,7 +87,7 @@ const RightContent = React.memo(
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
if (attachment && isFileAttachment(attachment)) {
|
|
89
|
-
return <FileIcon mimeType={attachment.mime_type} />;
|
|
90
|
+
return <FileIcon mimeType={attachment.custom?.mime_type} />;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
return null;
|
|
@@ -96,8 +97,8 @@ const RightContent = React.memo(
|
|
|
96
97
|
export type ReplyPropsWithContext = { ImageComponent: React.ComponentType<ImageProps> } & Pick<
|
|
97
98
|
MessageContextValue,
|
|
98
99
|
'message'
|
|
99
|
-
> &
|
|
100
|
-
|
|
100
|
+
> & {
|
|
101
|
+
quotedMessage?: LocalMessage | null;
|
|
101
102
|
isMyMessage: boolean;
|
|
102
103
|
isParentMessageMine?: boolean;
|
|
103
104
|
onDismiss?: () => void;
|
|
@@ -142,12 +143,12 @@ export const ReplyWithContext = (props: ReplyPropsWithContext) => {
|
|
|
142
143
|
const title = useMemo(
|
|
143
144
|
() =>
|
|
144
145
|
mode === 'edit'
|
|
145
|
-
? t('Edit Message')
|
|
146
|
+
? t('message.editMessage.label', 'Edit Message')
|
|
146
147
|
: isMyMessage
|
|
147
|
-
? t('You')
|
|
148
|
+
? t('common.you.label', 'You')
|
|
148
149
|
: quotedMessage?.user?.name
|
|
149
|
-
? t('Reply to {{name}}', { name: quotedMessage?.user?.name })
|
|
150
|
-
: t('Reply'),
|
|
150
|
+
? t('reply.replyTo.title', 'Reply to {{name}}', { name: quotedMessage?.user?.name })
|
|
151
|
+
: t('message.reply.label', 'Reply'),
|
|
151
152
|
[mode, isMyMessage, quotedMessage?.user?.name, t],
|
|
152
153
|
);
|
|
153
154
|
|
|
@@ -177,7 +178,11 @@ export const ReplyWithContext = (props: ReplyPropsWithContext) => {
|
|
|
177
178
|
{onDismiss ? (
|
|
178
179
|
<View style={[styles.dismissWrapper, dismissWrapper, stylesProp?.dismissWrapper]}>
|
|
179
180
|
<AttachmentRemoveControl
|
|
180
|
-
accessibilityLabelKey={
|
|
181
|
+
accessibilityLabelKey={
|
|
182
|
+
mode === 'edit'
|
|
183
|
+
? 'reply.removeEdit.accessibilityLabel'
|
|
184
|
+
: 'reply.removeReply.accessibilityLabel'
|
|
185
|
+
}
|
|
181
186
|
onPress={onDismiss}
|
|
182
187
|
/>
|
|
183
188
|
</View>
|
|
@@ -271,14 +276,19 @@ const ReplyComposerAnnouncer = ({
|
|
|
271
276
|
const announcement = useMemo(() => {
|
|
272
277
|
if (mode === 'edit') {
|
|
273
278
|
return truncatedText
|
|
274
|
-
? t('
|
|
275
|
-
|
|
279
|
+
? t('reply.editingMessage.withText.accessibilityLabel', 'Editing message: {{text}}', {
|
|
280
|
+
text: truncatedText,
|
|
281
|
+
})
|
|
282
|
+
: t('reply.editingMessage.accessibilityLabel', 'Editing message');
|
|
276
283
|
}
|
|
277
284
|
const name = message?.user?.name;
|
|
278
285
|
if (!name) return undefined;
|
|
279
286
|
return truncatedText
|
|
280
|
-
? t('
|
|
281
|
-
|
|
287
|
+
? t('reply.replying.withUserAndText.accessibilityLabel', 'Replying to {{user}}: {{text}}', {
|
|
288
|
+
text: truncatedText,
|
|
289
|
+
user: name,
|
|
290
|
+
})
|
|
291
|
+
: t('reply.replying.withUser.accessibilityLabel', 'Replying to {{user}}', { user: name });
|
|
282
292
|
}, [mode, message?.user?.name, truncatedText, t]);
|
|
283
293
|
|
|
284
294
|
useAnnounceOnShow(true, announcement);
|
|
@@ -297,7 +307,7 @@ export const Reply = (props: ReplyProps) => {
|
|
|
297
307
|
);
|
|
298
308
|
|
|
299
309
|
const quotedMessage = messageFromContext
|
|
300
|
-
? (messageFromContext.quoted_message as
|
|
310
|
+
? (messageFromContext.quoted_message as ReplyPropsWithContext['quotedMessage'])
|
|
301
311
|
: quotedMessageFromComposer;
|
|
302
312
|
|
|
303
313
|
// `mode='edit'` supplies the edited message via `props.quotedMessage` and leaves
|
|
@@ -4,6 +4,7 @@ import { StyleSheet } from 'react-native';
|
|
|
4
4
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
5
5
|
|
|
6
6
|
import { render, screen, waitFor } from '@testing-library/react-native';
|
|
7
|
+
import type { UserResponse } from 'stream-chat';
|
|
7
8
|
|
|
8
9
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
9
10
|
import { MessageProvider } from '../../../contexts/messageContext/MessageContext';
|
|
@@ -24,7 +25,7 @@ describe('<Reply/>', () => {
|
|
|
24
25
|
const oldEnvironment = process.env;
|
|
25
26
|
process.env.NODE_ENV = 'not_test';
|
|
26
27
|
|
|
27
|
-
const chatClient = await getTestClientWithUser({ id: 'neil' });
|
|
28
|
+
const chatClient = await getTestClientWithUser({ id: 'neil' } as UserResponse);
|
|
28
29
|
|
|
29
30
|
const mockedChannel = generateChannelResponse();
|
|
30
31
|
useMockedApis(chatClient, [getOrCreateChannelApi(mockedChannel)]);
|
|
@@ -83,11 +84,11 @@ describe('<Reply/>', () => {
|
|
|
83
84
|
quotedMessageUser,
|
|
84
85
|
}: { isMyMessage: boolean; quotedMessageUser: { id: string; name?: string } },
|
|
85
86
|
) => {
|
|
86
|
-
const quotedMessage = generateMessage({ user: quotedMessageUser });
|
|
87
|
+
const quotedMessage = generateMessage({ user: quotedMessageUser as UserResponse });
|
|
87
88
|
const message = generateMessage({
|
|
88
89
|
quoted_message: quotedMessage,
|
|
89
90
|
quoted_message_id: quotedMessage.id,
|
|
90
|
-
user: isMyMessage ? { id: 'neil' } : generateUser(),
|
|
91
|
+
user: isMyMessage ? ({ id: 'neil' } as UserResponse) : generateUser(),
|
|
91
92
|
});
|
|
92
93
|
|
|
93
94
|
render(
|
|
@@ -140,7 +141,7 @@ describe('<Reply/>', () => {
|
|
|
140
141
|
|
|
141
142
|
// `mode='edit'` supplies the message through props and leaves the
|
|
142
143
|
// composer's quoted message empty - you can only ever edit your own message.
|
|
143
|
-
const editedMessage = generateMessage({ user: { id: 'neil' } });
|
|
144
|
+
const editedMessage = generateMessage({ user: { id: 'neil' } as UserResponse });
|
|
144
145
|
|
|
145
146
|
render(
|
|
146
147
|
<GestureHandlerRootView>
|
|
@@ -1,190 +1,171 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { PropsWithChildren, useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { LocalMessage, Thread as ThreadInstance } from 'stream-chat';
|
|
4
4
|
|
|
5
|
-
import { useChannelContext } from '../../contexts/channelContext/ChannelContext';
|
|
6
|
-
import { ChatContextValue, useChatContext } from '../../contexts/chatContext/ChatContext';
|
|
7
5
|
import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext';
|
|
8
|
-
import { ThreadContextValue,
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
6
|
+
import { ThreadContextValue, ThreadProvider } from '../../contexts/threadContext/ThreadContext';
|
|
7
|
+
import { useStableCallback } from '../../hooks';
|
|
8
|
+
import { useStateStore } from '../../hooks/useStateStore';
|
|
9
|
+
import { ChannelConfigProps, ChannelShell } from '../Channel/ChannelShell';
|
|
10
|
+
import { useCreateThreadContext } from '../Channel/hooks/useCreateThreadContext';
|
|
13
11
|
import { getThreadNotificationHostId } from '../Notifications/notificationTarget';
|
|
14
12
|
import { NotificationTargetProvider } from '../Notifications/NotificationTargetContext';
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
try {
|
|
19
|
-
FlashList = require('@shopify/flash-list').FlashList;
|
|
20
|
-
} catch {
|
|
21
|
-
FlashList = undefined;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
type ThreadPropsWithContext = Pick<ChatContextValue, 'client'> &
|
|
25
|
-
Pick<
|
|
26
|
-
ThreadContextValue,
|
|
27
|
-
| 'closeThread'
|
|
28
|
-
| 'loadMoreThread'
|
|
29
|
-
| 'parentMessagePreventPress'
|
|
30
|
-
| 'reloadThread'
|
|
31
|
-
| 'thread'
|
|
32
|
-
| 'threadInstance'
|
|
33
|
-
> & {
|
|
34
|
-
/**
|
|
35
|
-
* Additional props for underlying MessageComposer component.
|
|
36
|
-
* Available props - https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-input/#props
|
|
37
|
-
* */
|
|
38
|
-
additionalMessageComposerProps?: Partial<MessageComposerProps>;
|
|
14
|
+
export type ThreadProps = ChannelConfigProps &
|
|
15
|
+
Partial<Pick<ThreadContextValue, 'allowThreadMessagesInChannel'>> & {
|
|
39
16
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
|
|
43
|
-
|
|
17
|
+
* The thread to render. Pass the instance a thread was opened with (`onThreadSelect` on the
|
|
18
|
+
* message and thread lists), or one from `client.threads.ensure({ channel, parentMessage })`.
|
|
19
|
+
*/
|
|
20
|
+
thread: ThreadInstance;
|
|
44
21
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* Additional props for underlying MessageListFlashList component.
|
|
48
|
-
* Available props - https://shopify.github.io/flash-list/docs/usage
|
|
22
|
+
* The notification host this thread's notifications are routed to. Defaults to the thread's
|
|
23
|
+
* own host, derived from its id.
|
|
49
24
|
*/
|
|
50
|
-
|
|
51
|
-
/** Make input focus on mounting thread */
|
|
52
|
-
autoFocus?: boolean;
|
|
53
|
-
/** Closes thread on dismount, defaults to true */
|
|
54
|
-
closeThreadOnDismount?: boolean;
|
|
55
|
-
/** Disables the thread UI. So MessageComposer and MessageList will be disabled. */
|
|
56
|
-
disabled?: boolean;
|
|
25
|
+
notificationHostId?: string;
|
|
57
26
|
/**
|
|
58
|
-
*
|
|
27
|
+
* Called when the thread unmounts, e.g. to clear the app's record of the open thread.
|
|
59
28
|
*/
|
|
60
29
|
onThreadDismount?: () => void;
|
|
61
|
-
notificationHostId?: string;
|
|
62
|
-
shouldUseFlashList?: boolean;
|
|
63
30
|
};
|
|
64
31
|
|
|
65
|
-
|
|
32
|
+
type ThreadReplyPaginatorState = {
|
|
33
|
+
isLoading: boolean;
|
|
34
|
+
items?: LocalMessage[];
|
|
35
|
+
lastQueryError?: Error;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const paginatorSelector = (state: ThreadReplyPaginatorState) => ({
|
|
39
|
+
// `hasItems`, not the array: every use below is an `items === undefined` test ("has the reply
|
|
40
|
+
// paginator loaded yet"), so selecting the array re-renders this component on every reply.
|
|
41
|
+
hasItems: state.items !== undefined,
|
|
42
|
+
isLoading: state.isLoading,
|
|
43
|
+
lastQueryError: state.lastQueryError,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const threadStaleSelector = (state: { isLoading: boolean; isStateStale: boolean }) => ({
|
|
47
|
+
isStateStale: state.isStateStale,
|
|
48
|
+
isThreadReloading: state.isLoading,
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Thread - binds its children to a thread's replies. Render it next to `<Channel>`, not inside it,
|
|
53
|
+
* and compose the thread UI as children:
|
|
54
|
+
*
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <Thread thread={thread}>
|
|
57
|
+
* <MessageList />
|
|
58
|
+
* <MessageComposer />
|
|
59
|
+
* </Thread>
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* It takes the same configuration props as `<Channel>`. The message list renders the parent message
|
|
63
|
+
* above the replies.
|
|
64
|
+
*/
|
|
65
|
+
export const Thread = (props: PropsWithChildren<ThreadProps>) => {
|
|
66
66
|
const {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
additionalMessageFlashListProps,
|
|
70
|
-
autoFocus = false,
|
|
71
|
-
closeThread,
|
|
72
|
-
closeThreadOnDismount = true,
|
|
73
|
-
disabled,
|
|
74
|
-
loadMoreThread,
|
|
75
|
-
onThreadDismount,
|
|
67
|
+
allowThreadMessagesInChannel = true,
|
|
68
|
+
children,
|
|
76
69
|
notificationHostId: notificationHostIdProp,
|
|
77
|
-
|
|
70
|
+
onThreadDismount,
|
|
78
71
|
thread,
|
|
79
|
-
|
|
80
|
-
shouldUseFlashList = false,
|
|
72
|
+
...shellProps
|
|
81
73
|
} = props;
|
|
82
|
-
const {
|
|
74
|
+
const { LoadingErrorIndicator } = useComponentsContext();
|
|
75
|
+
const threadContext = useCreateThreadContext({ allowThreadMessagesInChannel, thread });
|
|
76
|
+
|
|
77
|
+
const { hasItems, isLoading, lastQueryError } =
|
|
78
|
+
useStateStore(thread.messagePaginator.state, paginatorSelector) ?? {};
|
|
79
|
+
const { isStateStale, isThreadReloading } =
|
|
80
|
+
useStateStore(thread.state, threadStaleSelector) ?? {};
|
|
83
81
|
|
|
84
82
|
useEffect(() => {
|
|
85
|
-
if (
|
|
86
|
-
|
|
83
|
+
if (isStateStale) {
|
|
84
|
+
void thread.reload().catch((err) => console.warn('Thread reload failed', err));
|
|
87
85
|
}
|
|
88
|
-
|
|
89
|
-
await loadMoreThread();
|
|
90
|
-
};
|
|
86
|
+
}, [isStateStale, thread]);
|
|
91
87
|
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
// A thread opened from the thread list can belong to a channel nothing has queried yet. `queryThreads`
|
|
89
|
+
// watches that channel but returns no `own_capabilities` for it, so the menu, the reactions and the
|
|
90
|
+
// composer would act as if the user could do nothing. Querying the channel once fills them in; its
|
|
91
|
+
// messages and read state are left alone.
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
const { channel } = thread;
|
|
94
|
+
if (channel.initialized || channel.isProvisional) {
|
|
95
|
+
return;
|
|
94
96
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
channel.watch().catch((err: unknown) => console.warn('Thread channel watch failed', err));
|
|
98
|
+
}, [thread]);
|
|
99
|
+
|
|
100
|
+
// Activating registers the thread with `client.threads` for the session, which keeps it subscribed
|
|
101
|
+
// (incoming replies, read state, thread.updated) whether or not the thread list holds it. While
|
|
102
|
+
// active, the thread marks itself read. `activate()` returns the release of this activation.
|
|
103
|
+
useEffect(() => thread.activate(), [thread]);
|
|
104
|
+
|
|
105
|
+
// Load the first reply page, but only when the paginator hasn't already been seeded from the
|
|
106
|
+
// thread's `latest_replies` (managed/queried threads seed on construction) or loaded/loading. A
|
|
107
|
+
// seeded paginator already holds its first page, so we skip the fetch and let scroll-up load older
|
|
108
|
+
// replies — mirroring stream-chat-react, whose thread list has no mount-time fetch. The `hasItems`
|
|
109
|
+
// guard makes this fire at most once (an unseeded thread fetches, and the fetch defines `items`).
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (isLoading || hasItems || lastQueryError) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
// A reload in flight (a stale thread's, started by the effect above in this same commit) seeds the
|
|
115
|
+
// replies itself; read live, as this commit's render predates it. If it fails, this runs again.
|
|
116
|
+
if (isThreadReloading || thread.state.getLatestValue().isLoading) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
void thread.messagePaginator.toTail();
|
|
120
|
+
// `lastQueryError` is load-bearing here, not decorative: a failed query flips `isLoading` back to
|
|
121
|
+
// false with `hasItems` still false, which would re-run this effect and refetch forever. The
|
|
122
|
+
// retry is the user's to make, through the error indicator below.
|
|
123
|
+
}, [thread, hasItems, isLoading, lastQueryError, isThreadReloading]);
|
|
124
|
+
|
|
125
|
+
// Deactivation is the activation effect's cleanup; this only notifies the integrator.
|
|
126
|
+
useEffect(
|
|
127
|
+
() => () => {
|
|
103
128
|
if (onThreadDismount) {
|
|
104
129
|
onThreadDismount();
|
|
105
130
|
}
|
|
106
|
-
}
|
|
131
|
+
},
|
|
107
132
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const MemoizedThreadFooterComponent = useCallback(
|
|
111
|
-
() => <ThreadFooterComponent parentMessagePreventPress={parentMessagePreventPress} />,
|
|
112
|
-
[parentMessagePreventPress],
|
|
133
|
+
[],
|
|
113
134
|
);
|
|
114
135
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}),
|
|
120
|
-
[disabled, autoFocus],
|
|
136
|
+
// A jump into the replies (e.g. to a targeted reply) leaves a focus signal behind; the list reads
|
|
137
|
+
// this to keep its initial anchor from overriding the jump.
|
|
138
|
+
const hasPendingInitialTargetLoad = useStableCallback(
|
|
139
|
+
() => !!thread.messagePaginator.messageFocusSignal.getLatestValue().signal,
|
|
121
140
|
);
|
|
122
141
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
142
|
+
// The thread's own query error: the failure belongs to the reply paginator, and the retry is a
|
|
143
|
+
// first-page `toTail`.
|
|
144
|
+
if (lastQueryError && !hasItems) {
|
|
145
|
+
const retry = () =>
|
|
146
|
+
thread.messagePaginator
|
|
147
|
+
.toTail()
|
|
148
|
+
.catch((err: unknown) => console.warn('Reloading the thread replies failed:', err));
|
|
128
149
|
|
|
129
|
-
|
|
130
|
-
<React.Fragment key={`thread-${thread.id}`}>
|
|
131
|
-
<NotificationTargetProvider hostId={notificationHostId} panel='thread'>
|
|
132
|
-
{FlashList && shouldUseFlashList ? (
|
|
133
|
-
<MessageFlashList
|
|
134
|
-
HeaderComponent={MemoizedThreadFooterComponent}
|
|
135
|
-
threadList
|
|
136
|
-
{...additionalMessageFlashListProps}
|
|
137
|
-
/>
|
|
138
|
-
) : (
|
|
139
|
-
<MessageList
|
|
140
|
-
FooterComponent={MemoizedThreadFooterComponent}
|
|
141
|
-
threadList
|
|
142
|
-
{...additionalMessageListProps}
|
|
143
|
-
/>
|
|
144
|
-
)}
|
|
145
|
-
<MessageComposer
|
|
146
|
-
additionalTextInputProps={additionalTextInputProps}
|
|
147
|
-
threadList
|
|
148
|
-
{...additionalMessageComposerProps}
|
|
149
|
-
/>
|
|
150
|
-
</NotificationTargetProvider>
|
|
151
|
-
</React.Fragment>
|
|
152
|
-
);
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
export type ThreadProps = Partial<ThreadPropsWithContext>;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Thread - The Thread renders a parent message with a list of replies. Use the standard message list of the main channel's messages.
|
|
159
|
-
* The thread is only used for the list of replies to a message.
|
|
160
|
-
*
|
|
161
|
-
* Thread is a consumer of [channel context](https://getstream.io/chat/docs/sdk/reactnative/contexts/channel-context/)
|
|
162
|
-
* Underlying MessageList, MessageComposer and Message components can be customized using props:
|
|
163
|
-
* - additionalMessageListProps
|
|
164
|
-
* - additionalMessageComposerProps
|
|
165
|
-
*/
|
|
166
|
-
export const Thread = (props: ThreadProps) => {
|
|
167
|
-
const { client } = useChatContext();
|
|
168
|
-
const { threadList } = useChannelContext();
|
|
169
|
-
const { closeThread, loadMoreThread, reloadThread, thread, threadInstance } = useThreadContext();
|
|
170
|
-
|
|
171
|
-
if (thread?.id && !threadList) {
|
|
172
|
-
throw new Error(
|
|
173
|
-
'Please add a threadList prop to your Channel component when rendering a thread list. Check our Channel documentation for more info: https://getstream.io/chat/docs/sdk/reactnative/core-components/channel/#threadlist',
|
|
174
|
-
);
|
|
150
|
+
return <LoadingErrorIndicator error={lastQueryError} listType='message' retry={retry} />;
|
|
175
151
|
}
|
|
176
152
|
|
|
177
153
|
return (
|
|
178
|
-
<
|
|
179
|
-
{
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
154
|
+
<NotificationTargetProvider
|
|
155
|
+
hostId={notificationHostIdProp ?? getThreadNotificationHostId(thread.id)}
|
|
156
|
+
key={`thread-${thread.id}`}
|
|
157
|
+
panel='thread'
|
|
158
|
+
>
|
|
159
|
+
<ThreadProvider value={threadContext}>
|
|
160
|
+
<ChannelShell
|
|
161
|
+
{...shellProps}
|
|
162
|
+
channel={thread.channel}
|
|
163
|
+
hasPendingInitialTargetLoad={hasPendingInitialTargetLoad}
|
|
164
|
+
thread={thread}
|
|
165
|
+
>
|
|
166
|
+
{children}
|
|
167
|
+
</ChannelShell>
|
|
168
|
+
</ThreadProvider>
|
|
169
|
+
</NotificationTargetProvider>
|
|
189
170
|
);
|
|
190
171
|
};
|