stream-chat-react-native-core 6.7.4 → 7.0.0-beta.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/README.md +1 -1
- package/lib/commonjs/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -1
- package/lib/commonjs/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -1
- package/lib/commonjs/components/Attachment/Attachment.js +3 -3
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/commonjs/components/Attachment/Card.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +4 -2
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/commonjs/components/Attachment/utils/getAspectRatio.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +2 -2
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js +7 -24
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +1 -1
- 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/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +4 -6
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useChannelMembershipState.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/utils/index.js.map +1 -1
- package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +1 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- 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/useIsChannelMuted.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatClient.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +8 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +0 -21
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +2 -2
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +12 -6
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +14 -6
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/StreamingMessageView.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +3 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useStreamingMessage.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +25 -39
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +81 -66
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputGiphySearch.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js +4 -4
- package/lib/commonjs/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +9 -7
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +18 -24
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +1 -1
- package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getReadState.js +20 -0
- package/lib/commonjs/components/MessageList/utils/getReadState.js.map +1 -0
- package/lib/commonjs/components/MessageMenu/MessageMenu.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/commonjs/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/Poll/Poll.js.map +1 -1
- package/lib/commonjs/components/Poll/components/Button.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +2 -2
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +1 -0
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/commonjs/components/index.js +4 -103
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/debugContext/DebugContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +95 -74
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -5
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +27 -32
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/utils/utils.js +4 -4
- package/lib/commonjs/contexts/messageInputContext/utils/utils.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/threadsContext/ThreadListItemContext.js.map +1 -1
- package/lib/commonjs/contexts/threadsContext/ThreadsContext.js +1 -1
- package/lib/commonjs/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/hooks/useSelectedChannelState.js.map +1 -1
- package/lib/commonjs/hooks/useSyncClientEvents.js.map +1 -1
- package/lib/commonjs/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/updatePollMessage.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/commonjs/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapChannelToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToPoll.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/commonjs/types/stream-chat-common-custom-data.d.js +2 -0
- package/lib/commonjs/types/stream-chat-common-custom-data.d.js.map +1 -0
- package/lib/commonjs/types/types.js.map +1 -1
- package/lib/commonjs/utils/ACITriggerSettings.js.map +1 -1
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
- package/lib/commonjs/utils/compressImage.js +1 -1
- package/lib/commonjs/utils/compressImage.js.map +1 -1
- package/lib/commonjs/utils/i18n/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/queryMembers.js.map +1 -1
- package/lib/commonjs/utils/queryUsers.js.map +1 -1
- package/lib/commonjs/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
- package/lib/commonjs/utils/utils.js +38 -24
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AITypingIndicatorView/AITypingIndicatorView.js.map +1 -1
- package/lib/module/components/AITypingIndicatorView/hooks/useAIState.js.map +1 -1
- package/lib/module/components/Attachment/Attachment.js +3 -3
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/module/components/Attachment/Card.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -2
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/GalleryImage.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGallery.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnail.js.map +1 -1
- package/lib/module/components/Attachment/utils/buildGallery/buildThumbnailGrid.js.map +1 -1
- package/lib/module/components/Attachment/utils/getAspectRatio.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js +2 -2
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js +7 -24
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +1 -1
- 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/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +4 -6
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useChannelDataState.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListMessenger.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useChannelMembershipState.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/utils/index.js.map +1 -1
- package/lib/module/components/ChannelList/utils.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +1 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewData.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- 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/useIsChannelMuted.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatClient.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
- package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +8 -0
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +0 -21
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +2 -2
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/module/components/Message/Message.js +12 -6
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageBounce.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageEditedTimestamp.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageStatus.js +14 -6
- package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListBottom.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList/ReactionListTop.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/StreamingMessageView.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js +3 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageData.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/Message/hooks/useStreamingMessage.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +25 -39
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +81 -66
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/module/components/MessageInput/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecorder.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js +2 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingButton.js.map +1 -1
- package/lib/module/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputEditingStateHeader.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputGiphySearch.js.map +1 -1
- package/lib/module/components/MessageInput/components/InputReplyStateHeader.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useAudioController.js +4 -4
- package/lib/module/components/MessageInput/hooks/useAudioController.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentThreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +9 -7
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +18 -24
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useTypingString.js.map +1 -1
- package/lib/module/components/MessageList/utils/filterTypingUsers.js.map +1 -1
- package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js +1 -1
- package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/module/components/MessageList/utils/getReadState.js +20 -0
- package/lib/module/components/MessageList/utils/getReadState.js.map +1 -0
- package/lib/module/components/MessageMenu/MessageMenu.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageReactionPicker.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactions.js.map +1 -1
- package/lib/module/components/MessageMenu/MessageUserReactionsItem.js.map +1 -1
- package/lib/module/components/MessageMenu/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/Poll/Poll.js.map +1 -1
- package/lib/module/components/Poll/components/Button.js.map +1 -1
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -1
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +2 -2
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +1 -0
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadListItem.js.map +1 -1
- package/lib/module/components/index.js +4 -103
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/debugContext/DebugContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +95 -74
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -5
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +27 -32
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/module/contexts/messageInputContext/utils/utils.js +4 -4
- package/lib/module/contexts/messageInputContext/utils/utils.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/threadsContext/ThreadListItemContext.js.map +1 -1
- package/lib/module/contexts/threadsContext/ThreadsContext.js +1 -1
- package/lib/module/contexts/threadsContext/ThreadsContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/hooks/useSelectedChannelState.js.map +1 -1
- package/lib/module/hooks/useSyncClientEvents.js.map +1 -1
- package/lib/module/hooks/useTranslatedMessage.js.map +1 -1
- package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/module/native.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getReactions.js.map +1 -1
- package/lib/module/store/apis/getReactionsforFilterSort.js.map +1 -1
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/updatePollMessage.js.map +1 -1
- package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -1
- package/lib/module/store/apis/utils/convertFilterSortToQuery.js.map +1 -1
- package/lib/module/store/mappers/mapChannelDataToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapChannelToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMemberToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapReadToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToChannel.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMember.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToPoll.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToReaction.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToRead.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToUser.js.map +1 -1
- package/lib/module/types/stream-chat-common-custom-data.d.js +2 -0
- package/lib/module/types/stream-chat-common-custom-data.d.js.map +1 -0
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/utils/ACITriggerSettings.js.map +1 -1
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/utils/addReactionToLocalState.js.map +1 -1
- package/lib/module/utils/compressImage.js +1 -1
- package/lib/module/utils/compressImage.js.map +1 -1
- package/lib/module/utils/i18n/Streami18n.js.map +1 -1
- package/lib/module/utils/queryMembers.js.map +1 -1
- package/lib/module/utils/queryUsers.js.map +1 -1
- package/lib/module/utils/removeReactionFromLocalState.js.map +1 -1
- package/lib/module/utils/removeReservedFields.js.map +1 -1
- package/lib/module/utils/utils.js +38 -24
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AITypingIndicatorView/AITypingIndicatorView.d.ts +3 -4
- package/lib/typescript/components/AITypingIndicatorView/AITypingIndicatorView.d.ts.map +1 -1
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts +1 -2
- package/lib/typescript/components/AITypingIndicatorView/hooks/useAIState.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts +4 -5
- package/lib/typescript/components/Attachment/Attachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/AttachmentActions.d.ts +3 -4
- package/lib/typescript/components/Attachment/AttachmentActions.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts +2 -2
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Card.d.ts +3 -4
- package/lib/typescript/components/Attachment/Card.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +4 -5
- package/lib/typescript/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +3 -4
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts +5 -6
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/GalleryImage.d.ts +2 -3
- package/lib/typescript/components/Attachment/GalleryImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Giphy.d.ts +5 -6
- package/lib/typescript/components/Attachment/Giphy.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +2 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +2 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +2 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +2 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +3 -4
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +2 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +1 -2
- package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts +2 -2
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +3 -4
- 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/AutoCompleteSuggestionHeader.d.ts +3 -4
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +4 -5
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +8 -9
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +10 -11
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +24 -26
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -2
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +2 -3
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +2 -3
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +2 -3
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +2 -3
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +10 -11
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +1 -2
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +7 -8
- package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +17 -17
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +3 -4
- package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +4 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useChannelMembershipState.d.ts +2 -3
- package/lib/typescript/components/ChannelList/hooks/useChannelMembershipState.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +1 -2
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +6 -7
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/utils/index.d.ts +12 -13
- package/lib/typescript/components/ChannelList/hooks/utils/index.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/utils.d.ts +8 -9
- package/lib/typescript/components/ChannelList/utils.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +3 -4
- package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +3 -4
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +3 -4
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +4 -5
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +2 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +2 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +2 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts +2 -3
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewData.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +2 -3
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +3 -4
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts +1 -2
- package/lib/typescript/components/ChannelPreview/hooks/useIsChannelMuted.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -6
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +2 -12
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts +1 -2
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts +1 -2
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatClient.d.ts +4 -4
- package/lib/typescript/components/Chat/hooks/useCreateChatClient.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +1 -2
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +1 -2
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts +1 -2
- package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts +3 -4
- package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +9 -10
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +11 -12
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +9 -10
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryVideoControl.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +9 -10
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +20 -22
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +3 -4
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +4 -5
- package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +3 -4
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +3 -4
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts +2 -3
- package/lib/typescript/components/Message/MessageSimple/MessageEditedTimestamp.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +6 -8
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +2 -3
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +3 -4
- package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +3 -4
- package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +3 -4
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +3 -4
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +5 -6
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts +4 -5
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListBottom.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts +4 -5
- package/lib/typescript/components/Message/MessageSimple/ReactionList/ReactionListTop.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/StreamingMessageView.d.ts +2 -3
- package/lib/typescript/components/Message/MessageSimple/StreamingMessageView.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +4 -5
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -2
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -2
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +4 -5
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts +2 -3
- package/lib/typescript/components/Message/hooks/useMessageData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts +5 -6
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useStreamingMessage.d.ts +2 -3
- package/lib/typescript/components/Message/hooks/useStreamingMessage.d.ts.map +1 -1
- package/lib/typescript/components/Message/utils/messageActions.d.ts +4 -5
- package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/AttachButton.d.ts +1 -2
- package/lib/typescript/components/MessageInput/AttachButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/CommandsButton.d.ts +3 -4
- package/lib/typescript/components/MessageInput/CommandsButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +2 -5
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +3 -4
- package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/InputButtons.d.ts +4 -5
- package/lib/typescript/components/MessageInput/InputButtons.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +3 -4
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/SendButton.d.ts +3 -4
- package/lib/typescript/components/MessageInput/SendButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +1 -2
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts +3 -4
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecorder.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts +3 -4
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingButton.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts +3 -4
- package/lib/typescript/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts +2 -3
- package/lib/typescript/components/MessageInput/components/InputEditingStateHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts +2 -3
- package/lib/typescript/components/MessageInput/components/InputGiphySearch.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts +2 -3
- package/lib/typescript/components/MessageInput/components/InputReplyStateHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useAudioController.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +1 -2
- package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +1 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +1 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentThreadIndicator.d.ts +1 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentThreadIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts +7 -8
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +4 -5
- package/lib/typescript/components/MessageList/MessageSystem.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/StickyHeader.d.ts +1 -2
- package/lib/typescript/components/MessageList/StickyHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/TypingIndicator.d.ts +1 -2
- package/lib/typescript/components/MessageList/TypingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +3 -4
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +12 -12
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts +2 -3
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts +1 -2
- package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +2 -3
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +3 -4
- package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +3 -4
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +2 -3
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getReadState.d.ts +9 -0
- package/lib/typescript/components/MessageList/utils/getReadState.d.ts.map +1 -0
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts +2 -3
- package/lib/typescript/components/MessageMenu/MessageMenu.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts +2 -3
- package/lib/typescript/components/MessageMenu/MessageReactionPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts +2 -2
- package/lib/typescript/components/MessageMenu/MessageUserReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts +3 -3
- package/lib/typescript/components/MessageMenu/MessageUserReactionsItem.d.ts.map +1 -1
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts +6 -8
- package/lib/typescript/components/MessageMenu/hooks/useFetchReactions.d.ts.map +1 -1
- package/lib/typescript/components/Poll/Poll.d.ts +2 -3
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/Button.d.ts +5 -7
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +2 -3
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +4 -5
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +8 -10
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts +3 -4
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts +3 -4
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/Thread/Thread.d.ts +6 -7
- package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +2 -3
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts.map +1 -1
- package/lib/typescript/components/ThreadList/ThreadList.d.ts +1 -2
- 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/index.d.ts +1 -10
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +3 -3
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +15 -15
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +15 -16
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +11 -12
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +6 -7
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -1
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +11 -12
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts.map +1 -1
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts +12 -14
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +8 -8
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +16 -15
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +42 -46
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.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/useMessageDetailsForState.d.ts +4 -4
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/utils/utils.d.ts +2 -2
- package/lib/typescript/contexts/messageInputContext/utils/utils.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +64 -66
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +1 -2
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts +1 -2
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +6 -7
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/pollContext.d.ts +8 -10
- package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +18 -19
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +11 -13
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadsContext/ThreadListItemContext.d.ts +10 -12
- package/lib/typescript/contexts/threadsContext/ThreadListItemContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts +6 -7
- package/lib/typescript/contexts/threadsContext/ThreadsContext.d.ts.map +1 -1
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +6 -7
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts.map +1 -1
- package/lib/typescript/hooks/useSelectedChannelState.d.ts +6 -7
- package/lib/typescript/hooks/useSelectedChannelState.d.ts.map +1 -1
- package/lib/typescript/hooks/useSyncClientEvents.d.ts +8 -9
- package/lib/typescript/hooks/useSyncClientEvents.d.ts.map +1 -1
- package/lib/typescript/hooks/useTranslatedMessage.d.ts +113 -3
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/native.d.ts +8 -10
- package/lib/typescript/native.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelMessages.d.ts +2 -3
- package/lib/typescript/store/apis/getChannelMessages.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannels.d.ts +2 -3
- package/lib/typescript/store/apis/getChannels.d.ts.map +1 -1
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts +4 -5
- package/lib/typescript/store/apis/getChannelsForFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/getMembers.d.ts +2 -3
- package/lib/typescript/store/apis/getMembers.d.ts.map +1 -1
- package/lib/typescript/store/apis/getReactions.d.ts +2 -3
- package/lib/typescript/store/apis/getReactions.d.ts.map +1 -1
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts +4 -5
- package/lib/typescript/store/apis/getReactionsforFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/getReads.d.ts +2 -3
- package/lib/typescript/store/apis/getReads.d.ts.map +1 -1
- package/lib/typescript/store/apis/insertReaction.d.ts +2 -2
- package/lib/typescript/store/apis/insertReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts +3 -4
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.d.ts.map +1 -1
- package/lib/typescript/store/apis/updateMessage.d.ts +2 -2
- package/lib/typescript/store/apis/updateMessage.d.ts.map +1 -1
- package/lib/typescript/store/apis/updatePollMessage.d.ts +3 -4
- package/lib/typescript/store/apis/updatePollMessage.d.ts.map +1 -1
- package/lib/typescript/store/apis/updateReaction.d.ts +2 -2
- package/lib/typescript/store/apis/updateReaction.d.ts.map +1 -1
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts +2 -3
- package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts.map +1 -1
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts +3 -4
- package/lib/typescript/store/apis/utils/convertFilterSortToQuery.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts +1 -2
- package/lib/typescript/store/mappers/mapChannelDataToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapChannelToStorable.d.ts +1 -2
- package/lib/typescript/store/mappers/mapChannelToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapMemberToStorable.d.ts +2 -3
- package/lib/typescript/store/mappers/mapMemberToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts +2 -2
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts +2 -3
- package/lib/typescript/store/mappers/mapReadToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +1 -2
- package/lib/typescript/store/mappers/mapStorableToChannel.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMember.d.ts +1 -2
- package/lib/typescript/store/mappers/mapStorableToMember.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts +2 -3
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToPoll.d.ts +1 -2
- package/lib/typescript/store/mappers/mapStorableToPoll.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToReaction.d.ts +1 -2
- package/lib/typescript/store/mappers/mapStorableToReaction.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts +1 -2
- package/lib/typescript/store/mappers/mapStorableToRead.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToUser.d.ts +1 -2
- package/lib/typescript/store/mappers/mapStorableToUser.d.ts.map +1 -1
- package/lib/typescript/types/types.d.ts +46 -60
- package/lib/typescript/types/types.d.ts.map +1 -1
- package/lib/typescript/utils/ACITriggerSettings.d.ts +14 -15
- package/lib/typescript/utils/ACITriggerSettings.d.ts.map +1 -1
- package/lib/typescript/utils/DBSyncManager.d.ts +8 -9
- package/lib/typescript/utils/DBSyncManager.d.ts.map +1 -1
- package/lib/typescript/utils/addReactionToLocalState.d.ts +3 -4
- package/lib/typescript/utils/addReactionToLocalState.d.ts.map +1 -1
- package/lib/typescript/utils/compressImage.d.ts +2 -2
- package/lib/typescript/utils/compressImage.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +3 -4
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/lib/typescript/utils/queryMembers.d.ts +5 -6
- package/lib/typescript/utils/queryMembers.d.ts.map +1 -1
- package/lib/typescript/utils/queryUsers.d.ts +5 -6
- package/lib/typescript/utils/queryUsers.d.ts.map +1 -1
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts +3 -4
- package/lib/typescript/utils/removeReactionFromLocalState.d.ts.map +1 -1
- package/lib/typescript/utils/removeReservedFields.d.ts +2 -4
- package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -1
- package/lib/typescript/utils/utils.d.ts +12 -12
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/AITypingIndicatorView/AITypingIndicatorView.tsx +5 -10
- package/src/components/AITypingIndicatorView/hooks/useAIState.ts +9 -17
- package/src/components/Attachment/Attachment.tsx +15 -29
- package/src/components/Attachment/AttachmentActions.tsx +10 -24
- package/src/components/Attachment/AudioAttachment.tsx +2 -2
- package/src/components/Attachment/Card.tsx +14 -36
- package/src/components/Attachment/FileAttachment.tsx +11 -24
- package/src/components/Attachment/FileAttachmentGroup.tsx +19 -30
- package/src/components/Attachment/Gallery.tsx +26 -49
- package/src/components/Attachment/GalleryImage.tsx +4 -10
- package/src/components/Attachment/Giphy.tsx +19 -31
- package/src/components/Attachment/utils/buildGallery/buildGallery.ts +2 -5
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +10 -8
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +5 -7
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +3 -5
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +4 -9
- package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +2 -6
- package/src/components/Attachment/utils/getAspectRatio.ts +2 -4
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -10
- package/src/components/AttachmentPicker/components/AttachmentPickerItem.tsx +9 -37
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +25 -39
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +2 -5
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +13 -19
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +17 -22
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +19 -32
- package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.js +12 -12
- package/src/components/Channel/Channel.tsx +209 -237
- package/src/components/Channel/hooks/useChannelDataState.ts +39 -62
- package/src/components/Channel/hooks/useCreateChannelContext.ts +3 -6
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +3 -6
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +3 -6
- package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +2 -5
- package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +4 -6
- package/src/components/Channel/hooks/useCreateThreadContext.ts +2 -5
- package/src/components/Channel/hooks/useCreateTypingContext.ts +2 -7
- package/src/components/Channel/hooks/useMessageListPagination.tsx +7 -18
- package/src/components/ChannelList/ChannelList.tsx +36 -44
- package/src/components/ChannelList/ChannelListMessenger.tsx +12 -37
- package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +11 -19
- package/src/components/ChannelList/hooks/useChannelMembershipState.ts +4 -14
- package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +3 -6
- package/src/components/ChannelList/hooks/usePaginatedChannels.ts +13 -18
- package/src/components/ChannelList/hooks/utils/index.ts +10 -33
- package/src/components/ChannelList/utils.ts +9 -23
- package/src/components/ChannelPreview/ChannelAvatar.tsx +6 -14
- package/src/components/ChannelPreview/ChannelPreview.tsx +6 -14
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +3 -11
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +11 -30
- package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +4 -11
- package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +2 -9
- package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +3 -11
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayName.test.tsx +5 -8
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewDisplayPresence.test.tsx +12 -13
- package/src/components/ChannelPreview/hooks/__tests__/useChannelPreviewMuted.test.tsx +3 -4
- package/src/components/ChannelPreview/hooks/__tests__/useLatestMessagePreview.test.tsx +2 -3
- package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts +7 -11
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +3 -14
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +4 -13
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +3 -9
- package/src/components/ChannelPreview/hooks/useIsChannelMuted.ts +2 -8
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +25 -51
- package/src/components/Chat/Chat.tsx +11 -33
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +1 -8
- package/src/components/Chat/hooks/useAppSettings.ts +2 -5
- package/src/components/Chat/hooks/useCreateChatClient.ts +4 -6
- package/src/components/Chat/hooks/useCreateChatContext.ts +3 -6
- package/src/components/Chat/hooks/useIsOnline.ts +2 -9
- package/src/components/Chat/hooks/useMutedUsers.ts +3 -11
- package/src/components/Chat/hooks/useSyncDatabase.ts +3 -11
- package/src/components/ImageGallery/ImageGallery.tsx +34 -38
- package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +0 -72
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +9 -8
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +5 -5
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +6 -5
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +4 -3
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +0 -33
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +17 -31
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +13 -23
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +4 -2
- package/src/components/ImageGallery/components/ImageGrid.tsx +15 -39
- package/src/components/Message/Message.tsx +52 -83
- package/src/components/Message/MessageSimple/MessageAvatar.tsx +11 -25
- package/src/components/Message/MessageSimple/MessageBounce.tsx +12 -27
- package/src/components/Message/MessageSimple/MessageContent.tsx +17 -27
- package/src/components/Message/MessageSimple/MessageDeleted.tsx +11 -25
- package/src/components/Message/MessageSimple/MessageEditedTimestamp.tsx +4 -11
- package/src/components/Message/MessageSimple/MessageFooter.tsx +15 -29
- package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +3 -11
- package/src/components/Message/MessageSimple/MessageReplies.tsx +11 -25
- package/src/components/Message/MessageSimple/MessageRepliesAvatars.tsx +4 -13
- package/src/components/Message/MessageSimple/MessageSimple.tsx +13 -25
- package/src/components/Message/MessageSimple/MessageStatus.tsx +26 -36
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +17 -34
- package/src/components/Message/MessageSimple/ReactionList/ReactionListBottom.tsx +11 -24
- package/src/components/Message/MessageSimple/ReactionList/ReactionListTop.tsx +10 -23
- package/src/components/Message/MessageSimple/StreamingMessageView.tsx +4 -10
- package/src/components/Message/MessageSimple/__tests__/MessageStatus.test.js +11 -5
- package/src/components/Message/MessageSimple/__tests__/MessageTextContainer.test.tsx +5 -4
- package/src/components/Message/MessageSimple/utils/renderText.tsx +7 -16
- package/src/components/Message/hooks/useCreateMessageContext.ts +7 -6
- package/src/components/Message/hooks/useMessageActionHandlers.ts +6 -11
- package/src/components/Message/hooks/useMessageActions.tsx +13 -16
- package/src/components/Message/hooks/useMessageData.ts +4 -12
- package/src/components/Message/hooks/useProcessReactions.ts +11 -27
- package/src/components/Message/hooks/useStreamingMessage.ts +4 -9
- package/src/components/Message/utils/messageActions.ts +6 -12
- package/src/components/MessageInput/AttachButton.tsx +2 -9
- package/src/components/MessageInput/CommandsButton.tsx +8 -22
- package/src/components/MessageInput/FileUploadPreview.tsx +41 -82
- package/src/components/MessageInput/ImageUploadPreview.tsx +13 -25
- package/src/components/MessageInput/InputButtons.tsx +9 -23
- package/src/components/MessageInput/MessageInput.tsx +38 -56
- package/src/components/MessageInput/MoreOptionsButton.tsx +1 -1
- package/src/components/MessageInput/SendButton.tsx +6 -23
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +3 -10
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +1 -1
- package/src/components/MessageInput/__tests__/MessageInput.test.js +3 -1
- package/src/components/MessageInput/components/AudioRecorder/AudioRecorder.tsx +12 -22
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingButton.tsx +12 -22
- package/src/components/MessageInput/components/AudioRecorder/AudioRecordingInProgress.tsx +11 -22
- package/src/components/MessageInput/components/InputEditingStateHeader.tsx +6 -9
- package/src/components/MessageInput/components/InputGiphySearch.tsx +7 -11
- package/src/components/MessageInput/components/InputReplyStateHeader.tsx +4 -9
- package/src/components/MessageInput/hooks/useAudioController.tsx +6 -5
- package/src/components/MessageInput/hooks/useCooldown.ts +5 -7
- package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +2 -6
- package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +2 -6
- package/src/components/MessageList/InlineLoadingMoreRecentThreadIndicator.tsx +2 -6
- package/src/components/MessageList/MessageList.tsx +91 -121
- package/src/components/MessageList/MessageSystem.tsx +4 -11
- package/src/components/MessageList/StickyHeader.tsx +1 -4
- package/src/components/MessageList/TypingIndicator.tsx +2 -5
- package/src/components/MessageList/TypingIndicatorContainer.tsx +12 -22
- package/src/components/MessageList/__tests__/useMessageList.test.tsx +3 -3
- package/src/components/MessageList/hooks/useMessageList.ts +55 -81
- package/src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts +5 -6
- package/src/components/MessageList/hooks/useTypingString.ts +4 -7
- package/src/components/MessageList/utils/filterTypingUsers.ts +6 -15
- package/src/components/MessageList/utils/getDateSeparators.ts +3 -12
- package/src/components/MessageList/utils/getGroupStyles.ts +12 -20
- package/src/components/MessageList/utils/getLastReceivedMessage.ts +3 -8
- package/src/components/MessageList/utils/getReadState.ts +27 -0
- package/src/components/MessageMenu/MessageMenu.tsx +6 -13
- package/src/components/MessageMenu/MessageReactionPicker.tsx +4 -10
- package/src/components/MessageMenu/MessageUserReactions.tsx +4 -6
- package/src/components/MessageMenu/MessageUserReactionsItem.tsx +7 -8
- package/src/components/MessageMenu/__tests__/MessageUserReactions.test.tsx +2 -3
- package/src/components/MessageMenu/hooks/useFetchReactions.ts +6 -12
- package/src/components/Poll/Poll.tsx +3 -12
- package/src/components/Poll/components/Button.tsx +3 -13
- package/src/components/Poll/components/PollAnswersList.tsx +2 -5
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +5 -7
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +9 -14
- package/src/components/Poll/hooks/usePollState.ts +4 -12
- package/src/components/Reply/Reply.tsx +19 -45
- package/src/components/Thread/Thread.tsx +15 -29
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +6 -18
- package/src/components/Thread/components/ThreadFooterComponent.tsx +12 -27
- package/src/components/ThreadList/ThreadList.tsx +3 -5
- package/src/components/ThreadList/ThreadListItem.tsx +6 -4
- package/src/components/index.ts +1 -10
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +5 -4
- package/src/contexts/channelContext/ChannelContext.tsx +15 -27
- package/src/contexts/channelsContext/ChannelsContext.tsx +17 -25
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +18 -44
- package/src/contexts/channelsStateContext/useChannelState.ts +13 -26
- package/src/contexts/chatContext/ChatContext.tsx +11 -18
- package/src/contexts/debugContext/DebugContext.tsx +14 -23
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +11 -20
- package/src/contexts/messageContext/MessageContext.tsx +17 -23
- package/src/contexts/messageInputContext/MessageInputContext.tsx +195 -219
- package/src/contexts/messageInputContext/__tests__/MessageInputContext.test.tsx +6 -13
- package/src/contexts/messageInputContext/__tests__/__snapshots__/sendMessage.test.tsx.snap +10 -6
- package/src/contexts/messageInputContext/__tests__/isValidMessage.test.tsx +4 -8
- package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +4 -8
- package/src/contexts/messageInputContext/__tests__/removeFile.test.tsx +4 -8
- package/src/contexts/messageInputContext/__tests__/removeImage.test.tsx +4 -8
- package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +10 -13
- package/src/contexts/messageInputContext/__tests__/sendMessageAsync.test.tsx +3 -8
- package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +9 -15
- package/src/contexts/messageInputContext/__tests__/uploadFile.test.tsx +4 -8
- package/src/contexts/messageInputContext/__tests__/uploadImage.test.tsx +4 -8
- package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +15 -13
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +4 -10
- package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +34 -46
- package/src/contexts/messageInputContext/utils/utils.ts +6 -8
- package/src/contexts/messagesContext/MessagesContext.tsx +65 -82
- package/src/contexts/overlayContext/OverlayContext.tsx +2 -5
- package/src/contexts/overlayContext/OverlayProvider.tsx +3 -7
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +6 -13
- package/src/contexts/pollContext/pollContext.tsx +6 -12
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +29 -58
- package/src/contexts/threadContext/ThreadContext.tsx +10 -22
- package/src/contexts/threadsContext/ThreadListItemContext.tsx +10 -18
- package/src/contexts/threadsContext/ThreadsContext.tsx +7 -17
- package/src/contexts/typingContext/TypingContext.tsx +6 -15
- package/src/hooks/useSelectedChannelState.ts +9 -17
- package/src/hooks/useSyncClientEvents.ts +12 -23
- package/src/hooks/useTranslatedMessage.ts +2 -7
- package/src/mock-builders/api/channelMocks.tsx +35 -43
- package/src/native.ts +8 -7
- package/src/store/apis/getChannelMessages.ts +3 -6
- package/src/store/apis/getChannels.ts +6 -9
- package/src/store/apis/getChannelsForFilterSort.ts +4 -8
- package/src/store/apis/getMembers.ts +3 -10
- package/src/store/apis/getReactions.ts +3 -6
- package/src/store/apis/getReactionsforFilterSort.ts +4 -8
- package/src/store/apis/getReads.ts +3 -10
- package/src/store/apis/insertReaction.ts +2 -2
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +3 -6
- package/src/store/apis/updateMessage.ts +2 -2
- package/src/store/apis/updatePollMessage.ts +3 -6
- package/src/store/apis/updateReaction.ts +2 -2
- package/src/store/apis/upsertChannelDataFromChannel.ts +2 -5
- package/src/store/apis/utils/convertFilterSortToQuery.ts +3 -7
- package/src/store/mappers/mapChannelDataToStorable.ts +1 -7
- package/src/store/mappers/mapChannelToStorable.ts +2 -8
- package/src/store/mappers/mapMemberToStorable.ts +2 -5
- package/src/store/mappers/mapMessageToStorable.ts +2 -2
- package/src/store/mappers/mapReadToStorable.ts +2 -5
- package/src/store/mappers/mapStorableToChannel.ts +2 -8
- package/src/store/mappers/mapStorableToMember.ts +2 -5
- package/src/store/mappers/mapStorableToMessage.ts +3 -8
- package/src/store/mappers/mapStorableToPoll.ts +1 -6
- package/src/store/mappers/mapStorableToReaction.ts +2 -6
- package/src/store/mappers/mapStorableToRead.ts +1 -7
- package/src/store/mappers/mapStorableToUser.ts +1 -6
- package/src/types/stream-chat-common-custom-data.d.ts +42 -0
- package/src/types/types.ts +55 -75
- package/src/utils/ACITriggerSettings.ts +20 -37
- package/src/utils/DBSyncManager.ts +6 -31
- package/src/utils/addReactionToLocalState.ts +3 -7
- package/src/utils/compressImage.ts +3 -4
- package/src/utils/i18n/Streami18n.ts +2 -4
- package/src/utils/queryMembers.ts +17 -38
- package/src/utils/queryUsers.ts +10 -15
- package/src/utils/removeReactionFromLocalState.ts +3 -7
- package/src/utils/removeReservedFields.ts +6 -10
- package/src/utils/utils.ts +42 -53
- package/src/version.json +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +0 -89
- package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js +0 -40
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js +0 -40
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelMemberUpdated.js +0 -78
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelMemberUpdated.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js +0 -30
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js +0 -74
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js +0 -61
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js +0 -82
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js +0 -37
- package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +0 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js +0 -42
- package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +0 -1
- package/lib/commonjs/components/MessageList/hooks/useLastReadData.js +0 -20
- package/lib/commonjs/components/MessageList/hooks/useLastReadData.js.map +0 -1
- package/lib/commonjs/components/MessageList/utils/getReadStates.js +0 -34
- package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js +0 -89
- package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js +0 -40
- package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js +0 -40
- package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelMemberUpdated.js +0 -78
- package/lib/module/components/ChannelList/hooks/listeners/useChannelMemberUpdated.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js +0 -30
- package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js +0 -74
- package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js +0 -61
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js +0 -82
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js +0 -37
- package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +0 -1
- package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js +0 -42
- package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +0 -1
- package/lib/module/components/MessageList/hooks/useLastReadData.js +0 -20
- package/lib/module/components/MessageList/hooks/useLastReadData.js.map +0 -1
- package/lib/module/components/MessageList/utils/getReadStates.js +0 -34
- package/lib/module/components/MessageList/utils/getReadStates.js.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +0 -11
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +0 -10
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +0 -10
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelMemberUpdated.d.ts +0 -12
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelMemberUpdated.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +0 -12
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +0 -11
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +0 -12
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +0 -11
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +0 -10
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts.map +0 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +0 -14
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/hooks/useLastReadData.d.ts +0 -13
- package/lib/typescript/components/MessageList/hooks/useLastReadData.d.ts.map +0 -1
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +0 -6
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +0 -1
- package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +0 -82
- package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +0 -50
- package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +0 -51
- package/src/components/ChannelList/hooks/listeners/useChannelMemberUpdated.ts +0 -120
- package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +0 -43
- package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +0 -65
- package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +0 -97
- package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +0 -73
- package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +0 -46
- package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +0 -57
- package/src/components/MessageList/hooks/useLastReadData.ts +0 -37
- package/src/components/MessageList/utils/getReadStates.ts +0 -60
|
@@ -13,14 +13,12 @@ import {
|
|
|
13
13
|
} from '../../contexts/messagesContext/MessagesContext';
|
|
14
14
|
import { isVideoPlayerAvailable } from '../../native';
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { FileTypes } from '../../types/types';
|
|
17
17
|
|
|
18
18
|
export type ActionHandler = (name: string, value: string) => void;
|
|
19
19
|
|
|
20
|
-
export type AttachmentPropsWithContext<
|
|
21
|
-
|
|
22
|
-
> = Pick<
|
|
23
|
-
MessagesContextValue<StreamChatGenerics>,
|
|
20
|
+
export type AttachmentPropsWithContext = Pick<
|
|
21
|
+
MessagesContextValue,
|
|
24
22
|
| 'AttachmentActions'
|
|
25
23
|
| 'Card'
|
|
26
24
|
| 'FileAttachment'
|
|
@@ -34,14 +32,10 @@ export type AttachmentPropsWithContext<
|
|
|
34
32
|
/**
|
|
35
33
|
* The attachment to render
|
|
36
34
|
*/
|
|
37
|
-
attachment: AttachmentType
|
|
35
|
+
attachment: AttachmentType;
|
|
38
36
|
};
|
|
39
37
|
|
|
40
|
-
const AttachmentWithContext =
|
|
41
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
42
|
-
>(
|
|
43
|
-
props: AttachmentPropsWithContext<StreamChatGenerics>,
|
|
44
|
-
) => {
|
|
38
|
+
const AttachmentWithContext = (props: AttachmentPropsWithContext) => {
|
|
45
39
|
const {
|
|
46
40
|
attachment,
|
|
47
41
|
AttachmentActions,
|
|
@@ -68,7 +62,7 @@ const AttachmentWithContext = <
|
|
|
68
62
|
<>
|
|
69
63
|
<Gallery images={[attachment]} />
|
|
70
64
|
{hasAttachmentActions && (
|
|
71
|
-
<AttachmentActions key={`key-actions-${attachment.
|
|
65
|
+
<AttachmentActions key={`key-actions-${attachment.image_url}`} {...attachment} />
|
|
72
66
|
)}
|
|
73
67
|
</>
|
|
74
68
|
);
|
|
@@ -79,7 +73,7 @@ const AttachmentWithContext = <
|
|
|
79
73
|
<>
|
|
80
74
|
<Gallery videos={[attachment]} />
|
|
81
75
|
{hasAttachmentActions && (
|
|
82
|
-
<AttachmentActions key={`key-actions-${attachment.
|
|
76
|
+
<AttachmentActions key={`key-actions-${attachment.thumb_url}`} {...attachment} />
|
|
83
77
|
)}
|
|
84
78
|
</>
|
|
85
79
|
) : (
|
|
@@ -99,7 +93,8 @@ const AttachmentWithContext = <
|
|
|
99
93
|
return (
|
|
100
94
|
<>
|
|
101
95
|
<Card {...attachment} />
|
|
102
|
-
|
|
96
|
+
{/** TODO: Please rethink this, the fix is temporary. */}
|
|
97
|
+
<AttachmentActions key={`key-actions-${attachment.image_url}`} {...attachment} />
|
|
103
98
|
</>
|
|
104
99
|
);
|
|
105
100
|
} else {
|
|
@@ -107,10 +102,7 @@ const AttachmentWithContext = <
|
|
|
107
102
|
}
|
|
108
103
|
};
|
|
109
104
|
|
|
110
|
-
const areEqual =
|
|
111
|
-
prevProps: AttachmentPropsWithContext<StreamChatGenerics>,
|
|
112
|
-
nextProps: AttachmentPropsWithContext<StreamChatGenerics>,
|
|
113
|
-
) => {
|
|
105
|
+
const areEqual = (prevProps: AttachmentPropsWithContext, nextProps: AttachmentPropsWithContext) => {
|
|
114
106
|
const {
|
|
115
107
|
attachment: prevAttachment,
|
|
116
108
|
isAttachmentEqual,
|
|
@@ -145,11 +137,9 @@ const MemoizedAttachment = React.memo(
|
|
|
145
137
|
areEqual,
|
|
146
138
|
) as typeof AttachmentWithContext;
|
|
147
139
|
|
|
148
|
-
export type AttachmentProps<
|
|
149
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
150
|
-
> = Partial<
|
|
140
|
+
export type AttachmentProps = Partial<
|
|
151
141
|
Pick<
|
|
152
|
-
MessagesContextValue
|
|
142
|
+
MessagesContextValue,
|
|
153
143
|
| 'AttachmentActions'
|
|
154
144
|
| 'Card'
|
|
155
145
|
| 'FileAttachment'
|
|
@@ -161,16 +151,12 @@ export type AttachmentProps<
|
|
|
161
151
|
| 'isAttachmentEqual'
|
|
162
152
|
>
|
|
163
153
|
> &
|
|
164
|
-
Pick<AttachmentPropsWithContext
|
|
154
|
+
Pick<AttachmentPropsWithContext, 'attachment'>;
|
|
165
155
|
|
|
166
156
|
/**
|
|
167
157
|
* Attachment - The message attachment
|
|
168
158
|
*/
|
|
169
|
-
export const Attachment =
|
|
170
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
171
|
-
>(
|
|
172
|
-
props: AttachmentProps<StreamChatGenerics>,
|
|
173
|
-
) => {
|
|
159
|
+
export const Attachment = (props: AttachmentProps) => {
|
|
174
160
|
const {
|
|
175
161
|
attachment,
|
|
176
162
|
AttachmentActions: PropAttachmentActions,
|
|
@@ -193,7 +179,7 @@ export const Attachment = <
|
|
|
193
179
|
isAttachmentEqual,
|
|
194
180
|
myMessageTheme: ContextMyMessageTheme,
|
|
195
181
|
UrlPreview: ContextUrlPreview,
|
|
196
|
-
} = useMessagesContext
|
|
182
|
+
} = useMessagesContext();
|
|
197
183
|
|
|
198
184
|
if (!attachment) {
|
|
199
185
|
return null;
|
|
@@ -17,8 +17,6 @@ import {
|
|
|
17
17
|
} from '../../contexts/messageContext/MessageContext';
|
|
18
18
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
19
19
|
|
|
20
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
21
|
-
|
|
22
20
|
const styles = StyleSheet.create({
|
|
23
21
|
actionButton: {
|
|
24
22
|
borderRadius: 20,
|
|
@@ -33,10 +31,8 @@ const styles = StyleSheet.create({
|
|
|
33
31
|
},
|
|
34
32
|
});
|
|
35
33
|
|
|
36
|
-
export type AttachmentActionsPropsWithContext<
|
|
37
|
-
|
|
38
|
-
> = Pick<Attachment<StreamChatGenerics>, 'actions'> &
|
|
39
|
-
Pick<MessageContextValue<StreamChatGenerics>, 'handleAction'> & {
|
|
34
|
+
export type AttachmentActionsPropsWithContext = Pick<Attachment, 'actions'> &
|
|
35
|
+
Pick<MessageContextValue, 'handleAction'> & {
|
|
40
36
|
styles?: Partial<{
|
|
41
37
|
actionButton: StyleProp<ViewStyle>;
|
|
42
38
|
buttonText: StyleProp<TextStyle>;
|
|
@@ -44,11 +40,7 @@ export type AttachmentActionsPropsWithContext<
|
|
|
44
40
|
}>;
|
|
45
41
|
};
|
|
46
42
|
|
|
47
|
-
const AttachmentActionsWithContext =
|
|
48
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
49
|
-
>(
|
|
50
|
-
props: AttachmentActionsPropsWithContext<StreamChatGenerics>,
|
|
51
|
-
) => {
|
|
43
|
+
const AttachmentActionsWithContext = (props: AttachmentActionsPropsWithContext) => {
|
|
52
44
|
const { actions, handleAction, styles: stylesProp = {} } = props;
|
|
53
45
|
|
|
54
46
|
const {
|
|
@@ -116,9 +108,9 @@ const AttachmentActionsWithContext = <
|
|
|
116
108
|
);
|
|
117
109
|
};
|
|
118
110
|
|
|
119
|
-
const areEqual =
|
|
120
|
-
prevProps: AttachmentActionsPropsWithContext
|
|
121
|
-
nextProps: AttachmentActionsPropsWithContext
|
|
111
|
+
const areEqual = (
|
|
112
|
+
prevProps: AttachmentActionsPropsWithContext,
|
|
113
|
+
nextProps: AttachmentActionsPropsWithContext,
|
|
122
114
|
) => {
|
|
123
115
|
const { actions: prevActions } = prevProps;
|
|
124
116
|
const { actions: nextActions } = nextProps;
|
|
@@ -133,21 +125,15 @@ const MemoizedAttachmentActions = React.memo(
|
|
|
133
125
|
areEqual,
|
|
134
126
|
) as typeof AttachmentActionsWithContext;
|
|
135
127
|
|
|
136
|
-
export type AttachmentActionsProps
|
|
137
|
-
|
|
138
|
-
> = Attachment<StreamChatGenerics> &
|
|
139
|
-
Partial<Pick<MessageContextValue<StreamChatGenerics>, 'handleAction'>>;
|
|
128
|
+
export type AttachmentActionsProps = Attachment &
|
|
129
|
+
Partial<Pick<MessageContextValue, 'handleAction'>>;
|
|
140
130
|
|
|
141
131
|
/**
|
|
142
132
|
* AttachmentActions - The actions you can take on an attachment.
|
|
143
133
|
* Actions in combination with attachments can be used to build [commands](https://getstream.io/chat/docs/#channel_commands).
|
|
144
134
|
*/
|
|
145
|
-
export const AttachmentActions =
|
|
146
|
-
|
|
147
|
-
>(
|
|
148
|
-
props: AttachmentActionsProps<StreamChatGenerics>,
|
|
149
|
-
) => {
|
|
150
|
-
const { handleAction } = useMessageContext<StreamChatGenerics>();
|
|
135
|
+
export const AttachmentActions = (props: AttachmentActionsProps) => {
|
|
136
|
+
const { handleAction } = useMessageContext();
|
|
151
137
|
return <MemoizedAttachmentActions {...{ handleAction }} {...props} />;
|
|
152
138
|
};
|
|
153
139
|
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
VideoProgressData,
|
|
16
16
|
VideoSeekResponse,
|
|
17
17
|
} from '../../native';
|
|
18
|
-
import {
|
|
18
|
+
import { AudioUpload, FileTypes } from '../../types/types';
|
|
19
19
|
import { getTrimmedAttachmentTitle } from '../../utils/getTrimmedAttachmentTitle';
|
|
20
20
|
import { ProgressControl } from '../ProgressControl/ProgressControl';
|
|
21
21
|
import { WaveProgressBar } from '../ProgressControl/WaveProgressBar';
|
|
@@ -23,7 +23,7 @@ import { WaveProgressBar } from '../ProgressControl/WaveProgressBar';
|
|
|
23
23
|
dayjs.extend(duration);
|
|
24
24
|
|
|
25
25
|
export type AudioAttachmentProps = {
|
|
26
|
-
item: Omit<
|
|
26
|
+
item: Omit<AudioUpload, 'state'>;
|
|
27
27
|
onLoad: (index: string, duration: number) => void;
|
|
28
28
|
onPlayPause: (index: string, pausedStatus?: boolean) => void;
|
|
29
29
|
onProgress: (index: string, progress: number) => void;
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from '../../contexts/messagesContext/MessagesContext';
|
|
28
28
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
29
29
|
import { Play } from '../../icons/Play';
|
|
30
|
-
import {
|
|
30
|
+
import { FileTypes } from '../../types/types';
|
|
31
31
|
import { makeImageCompatibleUrl } from '../../utils/utils';
|
|
32
32
|
import { ImageBackground } from '../UIComponents/ImageBackground';
|
|
33
33
|
|
|
@@ -82,16 +82,11 @@ const styles = StyleSheet.create({
|
|
|
82
82
|
},
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
export type CardPropsWithContext
|
|
86
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
87
|
-
> = Attachment<StreamChatGenerics> &
|
|
85
|
+
export type CardPropsWithContext = Attachment &
|
|
88
86
|
Pick<ChatContextValue, 'ImageComponent'> &
|
|
87
|
+
Pick<MessageContextValue, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> &
|
|
89
88
|
Pick<
|
|
90
|
-
|
|
91
|
-
'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
|
|
92
|
-
> &
|
|
93
|
-
Pick<
|
|
94
|
-
MessagesContextValue<StreamChatGenerics>,
|
|
89
|
+
MessagesContextValue,
|
|
95
90
|
'additionalPressableProps' | 'CardCover' | 'CardFooter' | 'CardHeader' | 'myMessageTheme'
|
|
96
91
|
> & {
|
|
97
92
|
channelId: string | undefined;
|
|
@@ -110,11 +105,7 @@ export type CardPropsWithContext<
|
|
|
110
105
|
}>;
|
|
111
106
|
};
|
|
112
107
|
|
|
113
|
-
const CardWithContext =
|
|
114
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
115
|
-
>(
|
|
116
|
-
props: CardPropsWithContext<StreamChatGenerics>,
|
|
117
|
-
) => {
|
|
108
|
+
const CardWithContext = (props: CardPropsWithContext) => {
|
|
118
109
|
const {
|
|
119
110
|
additionalPressableProps,
|
|
120
111
|
author_name,
|
|
@@ -289,10 +280,7 @@ const CardWithContext = <
|
|
|
289
280
|
);
|
|
290
281
|
};
|
|
291
282
|
|
|
292
|
-
const areEqual =
|
|
293
|
-
prevProps: CardPropsWithContext<StreamChatGenerics>,
|
|
294
|
-
nextProps: CardPropsWithContext<StreamChatGenerics>,
|
|
295
|
-
) => {
|
|
283
|
+
const areEqual = (prevProps: CardPropsWithContext, nextProps: CardPropsWithContext) => {
|
|
296
284
|
const { myMessageTheme: prevMyMessageTheme } = prevProps;
|
|
297
285
|
const { myMessageTheme: nextMyMessageTheme } = nextProps;
|
|
298
286
|
|
|
@@ -307,17 +295,12 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
307
295
|
|
|
308
296
|
const MemoizedCard = React.memo(CardWithContext, areEqual) as typeof CardWithContext;
|
|
309
297
|
|
|
310
|
-
export type CardProps
|
|
311
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
312
|
-
> = Attachment<StreamChatGenerics> &
|
|
298
|
+
export type CardProps = Attachment &
|
|
313
299
|
Partial<
|
|
314
|
-
Pick<ChatContextValue
|
|
315
|
-
Pick<
|
|
316
|
-
MessageContextValue<StreamChatGenerics>,
|
|
317
|
-
'onLongPress' | 'onPress' | 'onPressIn' | 'myMessageTheme'
|
|
318
|
-
> &
|
|
300
|
+
Pick<ChatContextValue, 'ImageComponent'> &
|
|
301
|
+
Pick<MessageContextValue, 'onLongPress' | 'onPress' | 'onPressIn' | 'myMessageTheme'> &
|
|
319
302
|
Pick<
|
|
320
|
-
MessagesContextValue
|
|
303
|
+
MessagesContextValue,
|
|
321
304
|
'additionalPressableProps' | 'CardCover' | 'CardFooter' | 'CardHeader'
|
|
322
305
|
>
|
|
323
306
|
>;
|
|
@@ -325,16 +308,11 @@ export type CardProps<
|
|
|
325
308
|
/**
|
|
326
309
|
* UI component for card in attachments.
|
|
327
310
|
*/
|
|
328
|
-
export const Card =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
props: CardProps<StreamChatGenerics>,
|
|
332
|
-
) => {
|
|
333
|
-
const { ImageComponent } = useChatContext<StreamChatGenerics>();
|
|
334
|
-
const { message, onLongPress, onPress, onPressIn, preventPress } =
|
|
335
|
-
useMessageContext<StreamChatGenerics>();
|
|
311
|
+
export const Card = (props: CardProps) => {
|
|
312
|
+
const { ImageComponent } = useChatContext();
|
|
313
|
+
const { message, onLongPress, onPress, onPressIn, preventPress } = useMessageContext();
|
|
336
314
|
const { additionalPressableProps, CardCover, CardFooter, CardHeader, myMessageTheme } =
|
|
337
|
-
useMessagesContext
|
|
315
|
+
useMessagesContext();
|
|
338
316
|
|
|
339
317
|
return (
|
|
340
318
|
<MemoizedCard
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
} from '../../contexts/messagesContext/MessagesContext';
|
|
18
18
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
19
19
|
import { useViewport } from '../../hooks/useViewport';
|
|
20
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
21
20
|
|
|
22
21
|
const styles = StyleSheet.create({
|
|
23
22
|
container: {
|
|
@@ -38,18 +37,16 @@ const styles = StyleSheet.create({
|
|
|
38
37
|
},
|
|
39
38
|
});
|
|
40
39
|
|
|
41
|
-
export type FileAttachmentPropsWithContext<
|
|
42
|
-
|
|
43
|
-
> = Pick<
|
|
44
|
-
MessageContextValue<StreamChatGenerics>,
|
|
40
|
+
export type FileAttachmentPropsWithContext = Pick<
|
|
41
|
+
MessageContextValue,
|
|
45
42
|
'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
|
|
46
43
|
> &
|
|
47
44
|
Pick<
|
|
48
|
-
MessagesContextValue
|
|
45
|
+
MessagesContextValue,
|
|
49
46
|
'additionalPressableProps' | 'AttachmentActions' | 'FileAttachmentIcon'
|
|
50
47
|
> & {
|
|
51
48
|
/** The attachment to render */
|
|
52
|
-
attachment: Attachment
|
|
49
|
+
attachment: Attachment;
|
|
53
50
|
attachmentSize?: number;
|
|
54
51
|
styles?: Partial<{
|
|
55
52
|
container: StyleProp<ViewStyle>;
|
|
@@ -59,11 +56,7 @@ export type FileAttachmentPropsWithContext<
|
|
|
59
56
|
}>;
|
|
60
57
|
};
|
|
61
58
|
|
|
62
|
-
const FileAttachmentWithContext =
|
|
63
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
64
|
-
>(
|
|
65
|
-
props: FileAttachmentPropsWithContext<StreamChatGenerics>,
|
|
66
|
-
) => {
|
|
59
|
+
const FileAttachmentWithContext = (props: FileAttachmentPropsWithContext) => {
|
|
67
60
|
const {
|
|
68
61
|
additionalPressableProps,
|
|
69
62
|
attachment,
|
|
@@ -149,22 +142,16 @@ const FileAttachmentWithContext = <
|
|
|
149
142
|
);
|
|
150
143
|
};
|
|
151
144
|
|
|
152
|
-
export type FileAttachmentProps<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
export const FileAttachment = <
|
|
158
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
159
|
-
>(
|
|
160
|
-
props: FileAttachmentProps<StreamChatGenerics>,
|
|
161
|
-
) => {
|
|
162
|
-
const { onLongPress, onPress, onPressIn, preventPress } = useMessageContext<StreamChatGenerics>();
|
|
145
|
+
export type FileAttachmentProps = Partial<Omit<FileAttachmentPropsWithContext, 'attachment'>> &
|
|
146
|
+
Pick<FileAttachmentPropsWithContext, 'attachment'>;
|
|
147
|
+
|
|
148
|
+
export const FileAttachment = (props: FileAttachmentProps) => {
|
|
149
|
+
const { onLongPress, onPress, onPressIn, preventPress } = useMessageContext();
|
|
163
150
|
const {
|
|
164
151
|
additionalPressableProps,
|
|
165
152
|
AttachmentActions = AttachmentActionsDefault,
|
|
166
153
|
FileAttachmentIcon = FileIconDefault,
|
|
167
|
-
} = useMessagesContext
|
|
154
|
+
} = useMessagesContext();
|
|
168
155
|
|
|
169
156
|
return (
|
|
170
157
|
<FileAttachmentWithContext
|
|
@@ -17,12 +17,10 @@ import {
|
|
|
17
17
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
18
18
|
import { isSoundPackageAvailable } from '../../native';
|
|
19
19
|
|
|
20
|
-
import {
|
|
20
|
+
import { FileTypes } from '../../types/types';
|
|
21
21
|
|
|
22
|
-
export type FileAttachmentGroupPropsWithContext<
|
|
23
|
-
|
|
24
|
-
> = Pick<MessageContextValue<StreamChatGenerics>, 'files'> &
|
|
25
|
-
Pick<MessagesContextValue<StreamChatGenerics>, 'Attachment' | 'AudioAttachment'> & {
|
|
22
|
+
export type FileAttachmentGroupPropsWithContext = Pick<MessageContextValue, 'files'> &
|
|
23
|
+
Pick<MessagesContextValue, 'Attachment' | 'AudioAttachment'> & {
|
|
26
24
|
/**
|
|
27
25
|
* The unique id for the message with file attachments
|
|
28
26
|
*/
|
|
@@ -33,19 +31,13 @@ export type FileAttachmentGroupPropsWithContext<
|
|
|
33
31
|
}>;
|
|
34
32
|
};
|
|
35
33
|
|
|
36
|
-
type FilesToDisplayType
|
|
37
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
38
|
-
> = Attachment<StreamChatGenerics> & {
|
|
34
|
+
type FilesToDisplayType = Attachment & {
|
|
39
35
|
duration: number;
|
|
40
36
|
paused: boolean;
|
|
41
37
|
progress: number;
|
|
42
38
|
};
|
|
43
39
|
|
|
44
|
-
const FileAttachmentGroupWithContext =
|
|
45
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
46
|
-
>(
|
|
47
|
-
props: FileAttachmentGroupPropsWithContext<StreamChatGenerics>,
|
|
48
|
-
) => {
|
|
40
|
+
const FileAttachmentGroupWithContext = (props: FileAttachmentGroupPropsWithContext) => {
|
|
49
41
|
const { Attachment, AudioAttachment, files, messageId, styles: stylesProp = {} } = props;
|
|
50
42
|
const [filesToDisplay, setFilesToDisplay] = useState<FilesToDisplayType[]>([]);
|
|
51
43
|
|
|
@@ -108,7 +100,7 @@ const FileAttachmentGroupWithContext = <
|
|
|
108
100
|
<View style={[styles.container, container, stylesProp.container]}>
|
|
109
101
|
{filesToDisplay.map((file, index) => (
|
|
110
102
|
<View
|
|
111
|
-
key={
|
|
103
|
+
key={`file-by-attachment-group-${messageId}-${index}`}
|
|
112
104
|
style={[
|
|
113
105
|
{ paddingBottom: index !== files.length - 1 ? 4 : 0 },
|
|
114
106
|
stylesProp.attachmentContainer,
|
|
@@ -122,7 +114,9 @@ const FileAttachmentGroupWithContext = <
|
|
|
122
114
|
duration: file.duration,
|
|
123
115
|
file: {
|
|
124
116
|
name: file.title as string,
|
|
125
|
-
|
|
117
|
+
size: file.file_size || 0,
|
|
118
|
+
type: file.mime_type || '',
|
|
119
|
+
uri: file.asset_url || '',
|
|
126
120
|
waveform_data: file.waveform_data,
|
|
127
121
|
},
|
|
128
122
|
id: index.toString(),
|
|
@@ -144,9 +138,9 @@ const FileAttachmentGroupWithContext = <
|
|
|
144
138
|
);
|
|
145
139
|
};
|
|
146
140
|
|
|
147
|
-
const areEqual =
|
|
148
|
-
prevProps: FileAttachmentGroupPropsWithContext
|
|
149
|
-
nextProps: FileAttachmentGroupPropsWithContext
|
|
141
|
+
const areEqual = (
|
|
142
|
+
prevProps: FileAttachmentGroupPropsWithContext,
|
|
143
|
+
nextProps: FileAttachmentGroupPropsWithContext,
|
|
150
144
|
) => {
|
|
151
145
|
const { files: prevFiles } = prevProps;
|
|
152
146
|
const { files: nextFiles } = nextProps;
|
|
@@ -159,22 +153,17 @@ const MemoizedFileAttachmentGroup = React.memo(
|
|
|
159
153
|
areEqual,
|
|
160
154
|
) as typeof FileAttachmentGroupWithContext;
|
|
161
155
|
|
|
162
|
-
export type FileAttachmentGroupProps<
|
|
163
|
-
|
|
164
|
-
>
|
|
165
|
-
Pick<FileAttachmentGroupPropsWithContext
|
|
156
|
+
export type FileAttachmentGroupProps = Partial<
|
|
157
|
+
Omit<FileAttachmentGroupPropsWithContext, 'messageId'>
|
|
158
|
+
> &
|
|
159
|
+
Pick<FileAttachmentGroupPropsWithContext, 'messageId'>;
|
|
166
160
|
|
|
167
|
-
export const FileAttachmentGroup =
|
|
168
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
169
|
-
>(
|
|
170
|
-
props: FileAttachmentGroupProps<StreamChatGenerics>,
|
|
171
|
-
) => {
|
|
161
|
+
export const FileAttachmentGroup = (props: FileAttachmentGroupProps) => {
|
|
172
162
|
const { files: propFiles, messageId } = props;
|
|
173
163
|
|
|
174
|
-
const { files: contextFiles } = useMessageContext
|
|
164
|
+
const { files: contextFiles } = useMessageContext();
|
|
175
165
|
|
|
176
|
-
const { Attachment = AttachmentDefault, AudioAttachment } =
|
|
177
|
-
useMessagesContext<StreamChatGenerics>();
|
|
166
|
+
const { Attachment = AttachmentDefault, AudioAttachment } = useMessagesContext();
|
|
178
167
|
|
|
179
168
|
const files = propFiles || contextFiles;
|
|
180
169
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { Pressable, StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import type { Attachment } from 'stream-chat';
|
|
4
|
+
import type { Attachment, LocalMessage } from 'stream-chat';
|
|
5
5
|
|
|
6
6
|
import { GalleryImage } from './GalleryImage';
|
|
7
7
|
import { buildGallery } from './utils/buildGallery/buildGallery';
|
|
@@ -11,7 +11,6 @@ import { getGalleryImageBorderRadius } from './utils/getGalleryImageBorderRadius
|
|
|
11
11
|
|
|
12
12
|
import { openUrlSafely } from './utils/openUrlSafely';
|
|
13
13
|
|
|
14
|
-
import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
|
|
15
14
|
import { useTranslationContext } from '../../contexts';
|
|
16
15
|
import { useChatConfigContext } from '../../contexts/chatConfigContext/ChatConfigContext';
|
|
17
16
|
import {
|
|
@@ -33,14 +32,15 @@ import {
|
|
|
33
32
|
import { useTheme } from '../../contexts/themeContext/ThemeContext';
|
|
34
33
|
import { useLoadingImage } from '../../hooks/useLoadingImage';
|
|
35
34
|
import { isVideoPlayerAvailable } from '../../native';
|
|
36
|
-
import {
|
|
35
|
+
import { FileTypes } from '../../types/types';
|
|
37
36
|
import { getUrlWithoutParams } from '../../utils/utils';
|
|
38
37
|
|
|
39
|
-
export type GalleryPropsWithContext<
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
export type GalleryPropsWithContext = Pick<
|
|
39
|
+
ImageGalleryContextValue,
|
|
40
|
+
'setSelectedMessage' | 'setMessages'
|
|
41
|
+
> &
|
|
42
42
|
Pick<
|
|
43
|
-
MessageContextValue
|
|
43
|
+
MessageContextValue,
|
|
44
44
|
| 'alignment'
|
|
45
45
|
| 'groupStyles'
|
|
46
46
|
| 'images'
|
|
@@ -52,7 +52,7 @@ export type GalleryPropsWithContext<
|
|
|
52
52
|
| 'threadList'
|
|
53
53
|
> &
|
|
54
54
|
Pick<
|
|
55
|
-
MessagesContextValue
|
|
55
|
+
MessagesContextValue,
|
|
56
56
|
| 'additionalPressableProps'
|
|
57
57
|
| 'legacyImageViewerSwipeBehaviour'
|
|
58
58
|
| 'VideoThumbnail'
|
|
@@ -76,14 +76,10 @@ export type GalleryPropsWithContext<
|
|
|
76
76
|
*
|
|
77
77
|
* TODO: Fix circular dependencies of imports
|
|
78
78
|
*/
|
|
79
|
-
message?:
|
|
79
|
+
message?: LocalMessage;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
const GalleryWithContext =
|
|
83
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
84
|
-
>(
|
|
85
|
-
props: GalleryPropsWithContext<StreamChatGenerics>,
|
|
86
|
-
) => {
|
|
82
|
+
const GalleryWithContext = (props: GalleryPropsWithContext) => {
|
|
87
83
|
const {
|
|
88
84
|
additionalPressableProps,
|
|
89
85
|
alignment,
|
|
@@ -237,9 +233,7 @@ const GalleryWithContext = <
|
|
|
237
233
|
);
|
|
238
234
|
};
|
|
239
235
|
|
|
240
|
-
type GalleryThumbnailProps
|
|
241
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
242
|
-
> = {
|
|
236
|
+
type GalleryThumbnailProps = {
|
|
243
237
|
borderRadius: {
|
|
244
238
|
borderBottomLeftRadius: number;
|
|
245
239
|
borderBottomRightRadius: number;
|
|
@@ -247,15 +241,15 @@ type GalleryThumbnailProps<
|
|
|
247
241
|
borderTopRightRadius: number;
|
|
248
242
|
};
|
|
249
243
|
colIndex: number;
|
|
250
|
-
imagesAndVideos: Attachment
|
|
244
|
+
imagesAndVideos: Attachment[];
|
|
251
245
|
invertedDirections: boolean;
|
|
252
|
-
message:
|
|
246
|
+
message: LocalMessage;
|
|
253
247
|
numOfColumns: number;
|
|
254
248
|
numOfRows: number;
|
|
255
249
|
rowIndex: number;
|
|
256
250
|
thumbnail: Thumbnail;
|
|
257
251
|
} & Pick<
|
|
258
|
-
MessagesContextValue
|
|
252
|
+
MessagesContextValue,
|
|
259
253
|
| 'additionalPressableProps'
|
|
260
254
|
| 'legacyImageViewerSwipeBehaviour'
|
|
261
255
|
| 'VideoThumbnail'
|
|
@@ -263,16 +257,11 @@ type GalleryThumbnailProps<
|
|
|
263
257
|
| 'ImageLoadingFailedIndicator'
|
|
264
258
|
| 'ImageReloadIndicator'
|
|
265
259
|
> &
|
|
266
|
-
Pick<ImageGalleryContextValue
|
|
267
|
-
Pick<
|
|
268
|
-
MessageContextValue<StreamChatGenerics>,
|
|
269
|
-
'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
|
|
270
|
-
> &
|
|
260
|
+
Pick<ImageGalleryContextValue, 'setSelectedMessage' | 'setMessages'> &
|
|
261
|
+
Pick<MessageContextValue, 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'> &
|
|
271
262
|
Pick<OverlayContextValue, 'setOverlay'>;
|
|
272
263
|
|
|
273
|
-
const GalleryThumbnail =
|
|
274
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
275
|
-
>({
|
|
264
|
+
const GalleryThumbnail = ({
|
|
276
265
|
additionalPressableProps,
|
|
277
266
|
borderRadius,
|
|
278
267
|
colIndex,
|
|
@@ -295,7 +284,7 @@ const GalleryThumbnail = <
|
|
|
295
284
|
setSelectedMessage,
|
|
296
285
|
thumbnail,
|
|
297
286
|
VideoThumbnail,
|
|
298
|
-
}: GalleryThumbnailProps
|
|
287
|
+
}: GalleryThumbnailProps) => {
|
|
299
288
|
const {
|
|
300
289
|
theme: {
|
|
301
290
|
colors: { overlay },
|
|
@@ -426,16 +415,14 @@ const GalleryThumbnail = <
|
|
|
426
415
|
);
|
|
427
416
|
};
|
|
428
417
|
|
|
429
|
-
const GalleryImageThumbnail =
|
|
430
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
431
|
-
>({
|
|
418
|
+
const GalleryImageThumbnail = ({
|
|
432
419
|
borderRadius,
|
|
433
420
|
ImageLoadingFailedIndicator,
|
|
434
421
|
ImageLoadingIndicator,
|
|
435
422
|
ImageReloadIndicator,
|
|
436
423
|
thumbnail,
|
|
437
424
|
}: Pick<
|
|
438
|
-
GalleryThumbnailProps
|
|
425
|
+
GalleryThumbnailProps,
|
|
439
426
|
| 'ImageLoadingFailedIndicator'
|
|
440
427
|
| 'ImageLoadingIndicator'
|
|
441
428
|
| 'ImageReloadIndicator'
|
|
@@ -506,10 +493,7 @@ const GalleryImageThumbnail = <
|
|
|
506
493
|
);
|
|
507
494
|
};
|
|
508
495
|
|
|
509
|
-
const areEqual =
|
|
510
|
-
prevProps: GalleryPropsWithContext<StreamChatGenerics>,
|
|
511
|
-
nextProps: GalleryPropsWithContext<StreamChatGenerics>,
|
|
512
|
-
) => {
|
|
496
|
+
const areEqual = (prevProps: GalleryPropsWithContext, nextProps: GalleryPropsWithContext) => {
|
|
513
497
|
const {
|
|
514
498
|
groupStyles: prevGroupStyles,
|
|
515
499
|
hasThreadReplies: prevHasThreadReplies,
|
|
@@ -578,18 +562,12 @@ const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = Default
|
|
|
578
562
|
|
|
579
563
|
const MemoizedGallery = React.memo(GalleryWithContext, areEqual) as typeof GalleryWithContext;
|
|
580
564
|
|
|
581
|
-
export type GalleryProps<
|
|
582
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
583
|
-
> = Partial<GalleryPropsWithContext<StreamChatGenerics>>;
|
|
565
|
+
export type GalleryProps = Partial<GalleryPropsWithContext>;
|
|
584
566
|
|
|
585
567
|
/**
|
|
586
568
|
* UI component for card in attachments.
|
|
587
569
|
*/
|
|
588
|
-
export const Gallery =
|
|
589
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
590
|
-
>(
|
|
591
|
-
props: GalleryProps<StreamChatGenerics>,
|
|
592
|
-
) => {
|
|
570
|
+
export const Gallery = (props: GalleryProps) => {
|
|
593
571
|
const {
|
|
594
572
|
additionalPressableProps: propAdditionalPressableProps,
|
|
595
573
|
alignment: propAlignment,
|
|
@@ -612,8 +590,7 @@ export const Gallery = <
|
|
|
612
590
|
VideoThumbnail: PropVideoThumbnail,
|
|
613
591
|
} = props;
|
|
614
592
|
|
|
615
|
-
const { setMessages, setSelectedMessage: contextSetSelectedMessage } =
|
|
616
|
-
useImageGalleryContext<StreamChatGenerics>();
|
|
593
|
+
const { setMessages, setSelectedMessage: contextSetSelectedMessage } = useImageGalleryContext();
|
|
617
594
|
const {
|
|
618
595
|
alignment: contextAlignment,
|
|
619
596
|
groupStyles: contextGroupStyles,
|
|
@@ -625,7 +602,7 @@ export const Gallery = <
|
|
|
625
602
|
preventPress: contextPreventPress,
|
|
626
603
|
threadList: contextThreadList,
|
|
627
604
|
videos: contextVideos,
|
|
628
|
-
} = useMessageContext
|
|
605
|
+
} = useMessageContext();
|
|
629
606
|
const {
|
|
630
607
|
additionalPressableProps: contextAdditionalPressableProps,
|
|
631
608
|
ImageLoadingFailedIndicator: ContextImageLoadingFailedIndicator,
|
|
@@ -634,7 +611,7 @@ export const Gallery = <
|
|
|
634
611
|
legacyImageViewerSwipeBehaviour,
|
|
635
612
|
myMessageTheme: contextMyMessageTheme,
|
|
636
613
|
VideoThumbnail: ContextVideoThumnbnail,
|
|
637
|
-
} = useMessagesContext
|
|
614
|
+
} = useMessagesContext();
|
|
638
615
|
const { setOverlay: contextSetOverlay } = useOverlayContext();
|
|
639
616
|
|
|
640
617
|
const images = propImages || contextImages;
|