stream-chat-react-native-core 6.7.3 → 7.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/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.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.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 +11 -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
|
@@ -115,13 +115,28 @@ var UnsupportedFileTypeOrFileSizeIndicator = function UnsupportedFileTypeOrFileS
|
|
|
115
115
|
children: item.file.duration ? (0, _utils.getDurationLabelFromDuration)(item.file.duration) : (0, _FileAttachment.getFileSizeDisplayText)(item.file.size)
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
var FileUploadPreview = exports.FileUploadPreview = function FileUploadPreview(props) {
|
|
119
|
+
var propAudioAttachmentUploadPreview = props.AudioAttachmentUploadPreview,
|
|
120
|
+
propEnableOfflineSupport = props.enableOfflineSupport,
|
|
121
|
+
propFileAttachmentIcon = props.FileAttachmentIcon,
|
|
122
|
+
propFileUploads = props.fileUploads,
|
|
123
|
+
propRemoveFile = props.removeFile,
|
|
124
|
+
propUploadFile = props.uploadFile;
|
|
125
|
+
var _useChatContext = (0, _contexts.useChatContext)(),
|
|
126
|
+
contextEnableOfflineSupport = _useChatContext.enableOfflineSupport;
|
|
127
|
+
var _useMessageInputConte = (0, _MessageInputContext.useMessageInputContext)(),
|
|
128
|
+
contextAudioAttachmentUploadPreview = _useMessageInputConte.AudioAttachmentUploadPreview,
|
|
129
|
+
contextFileUploads = _useMessageInputConte.fileUploads,
|
|
130
|
+
contextRemoveFile = _useMessageInputConte.removeFile,
|
|
131
|
+
contextUploadFile = _useMessageInputConte.uploadFile;
|
|
132
|
+
var _useMessagesContext = (0, _MessagesContext.useMessagesContext)(),
|
|
133
|
+
contextFileAttachmentIcon = _useMessagesContext.FileAttachmentIcon;
|
|
134
|
+
var enableOfflineSupport = propEnableOfflineSupport != null ? propEnableOfflineSupport : contextEnableOfflineSupport;
|
|
135
|
+
var AudioAttachmentUploadPreview = propAudioAttachmentUploadPreview != null ? propAudioAttachmentUploadPreview : contextAudioAttachmentUploadPreview;
|
|
136
|
+
var fileUploads = propFileUploads != null ? propFileUploads : contextFileUploads;
|
|
137
|
+
var removeFile = propRemoveFile != null ? propRemoveFile : contextRemoveFile;
|
|
138
|
+
var uploadFile = propUploadFile != null ? propUploadFile : contextUploadFile;
|
|
139
|
+
var FileAttachmentIcon = propFileAttachmentIcon != null ? propFileAttachmentIcon : contextFileAttachmentIcon;
|
|
125
140
|
var _useState = (0, _react.useState)([]),
|
|
126
141
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
127
142
|
filesToDisplay = _useState2[0],
|
|
@@ -194,10 +209,10 @@ var FileUploadPreviewWithContext = function FileUploadPreviewWithContext(props)
|
|
|
194
209
|
fileTextContainer = _useTheme2$theme$mess.fileTextContainer,
|
|
195
210
|
flatList = _useTheme2$theme$mess.flatList;
|
|
196
211
|
var renderItem = function renderItem(_ref2) {
|
|
197
|
-
var _item$file$
|
|
212
|
+
var _item$file$type;
|
|
198
213
|
var item = _ref2.item;
|
|
199
214
|
var indicatorType = (0, _utils.getIndicatorTypeForFileState)(item.state, enableOfflineSupport);
|
|
200
|
-
var isAudio = (_item$file$
|
|
215
|
+
var isAudio = (_item$file$type = item.file.type) == null ? void 0 : _item$file$type.startsWith('audio/');
|
|
201
216
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
202
217
|
children: [(0, _jsxRuntime.jsx)(_UploadProgressIndicator.UploadProgressIndicator, {
|
|
203
218
|
action: function action() {
|
|
@@ -222,7 +237,7 @@ var FileUploadPreviewWithContext = function FileUploadPreviewWithContext(props)
|
|
|
222
237
|
children: [(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
223
238
|
style: styles.fileIcon,
|
|
224
239
|
children: (0, _jsxRuntime.jsx)(FileAttachmentIcon, {
|
|
225
|
-
mimeType: item.file.
|
|
240
|
+
mimeType: item.file.type
|
|
226
241
|
})
|
|
227
242
|
}), (0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
228
243
|
style: [styles.fileTextContainer, fileTextContainer],
|
|
@@ -287,34 +302,5 @@ var FileUploadPreviewWithContext = function FileUploadPreviewWithContext(props)
|
|
|
287
302
|
style: [styles.flatList, flatList]
|
|
288
303
|
}) : null;
|
|
289
304
|
};
|
|
290
|
-
var areEqual = function areEqual(prevProps, nextProps) {
|
|
291
|
-
var prevFileUploads = prevProps.fileUploads;
|
|
292
|
-
var nextFileUploads = nextProps.fileUploads;
|
|
293
|
-
return prevFileUploads.length === nextFileUploads.length && prevFileUploads.every(function (prevFileUpload, index) {
|
|
294
|
-
return prevFileUpload.state === nextFileUploads[index].state && prevFileUpload.paused === nextFileUploads[index].paused && prevFileUpload.progress === nextFileUploads[index].progress && prevFileUpload.duration === nextFileUploads[index].duration;
|
|
295
|
-
});
|
|
296
|
-
};
|
|
297
|
-
var MemoizedFileUploadPreview = _react["default"].memo(FileUploadPreviewWithContext, areEqual);
|
|
298
|
-
var FileUploadPreview = exports.FileUploadPreview = function FileUploadPreview(props) {
|
|
299
|
-
var _useChatContext = (0, _contexts.useChatContext)(),
|
|
300
|
-
enableOfflineSupport = _useChatContext.enableOfflineSupport;
|
|
301
|
-
var _useMessageInputConte = (0, _MessageInputContext.useMessageInputContext)(),
|
|
302
|
-
AudioAttachmentUploadPreview = _useMessageInputConte.AudioAttachmentUploadPreview,
|
|
303
|
-
fileUploads = _useMessageInputConte.fileUploads,
|
|
304
|
-
removeFile = _useMessageInputConte.removeFile,
|
|
305
|
-
setFileUploads = _useMessageInputConte.setFileUploads,
|
|
306
|
-
uploadFile = _useMessageInputConte.uploadFile;
|
|
307
|
-
var _useMessagesContext = (0, _MessagesContext.useMessagesContext)(),
|
|
308
|
-
FileAttachmentIcon = _useMessagesContext.FileAttachmentIcon;
|
|
309
|
-
return (0, _jsxRuntime.jsx)(MemoizedFileUploadPreview, Object.assign({
|
|
310
|
-
AudioAttachmentUploadPreview: AudioAttachmentUploadPreview,
|
|
311
|
-
FileAttachmentIcon: FileAttachmentIcon,
|
|
312
|
-
fileUploads: fileUploads,
|
|
313
|
-
removeFile: removeFile,
|
|
314
|
-
setFileUploads: setFileUploads,
|
|
315
|
-
uploadFile: uploadFile,
|
|
316
|
-
enableOfflineSupport: enableOfflineSupport
|
|
317
|
-
}, props));
|
|
318
|
-
};
|
|
319
305
|
FileUploadPreview.displayName = 'FileUploadPreview{messageInput{fileUploadPreview}}';
|
|
320
306
|
//# sourceMappingURL=FileUploadPreview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_UploadProgressIndicator","_contexts","_MessageInputContext","_MessagesContext","_ThemeContext","_TranslationContext","_Close","_Warning","_native","_getTrimmedAttachmentTitle","_utils","_FileAttachment","_WritingDirectionAwareText","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","FILE_PREVIEW_HEIGHT","WARNING_ICON_SIZE","styles","StyleSheet","create","dismiss","borderRadius","height","marginRight","position","right","top","width","fileContainer","borderWidth","flexDirection","paddingHorizontal","fileIcon","alignItems","alignSelf","justifyContent","filenameText","fontSize","fontWeight","fileSizeText","marginTop","fileTextContainer","marginVertical","flatList","marginBottom","maxHeight","overlay","marginHorizontal","unsupportedFile","paddingTop","unsupportedFileText","warningIconStyle","UnsupportedFileTypeOrFileSizeIndicator","_ref","indicatorType","item","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_red","grey","grey_dark","messageInput","fileUploadPreview","_useTranslationContex","useTranslationContext","ProgressIndicatorTypes","NOT_SUPPORTED","jsxs","View","style","children","jsx","Warning","pathFill","Text","color","WritingDirectionAwareText","file","duration","getDurationLabelFromDuration","getFileSizeDisplayText","size","FileUploadPreviewWithContext","props","AudioAttachmentUploadPreview","enableOfflineSupport","FileAttachmentIcon","fileUploads","removeFile","uploadFile","_useState","useState","_useState2","_slicedToArray2","filesToDisplay","setFilesToDisplay","flatListRef","useRef","_useState3","_useState4","flatListWidth","setFlatListWidth","useEffect","map","_filesToDisplay$find","assign","find","f","id","paused","progress","onLoad","index","prevFilesUploads","fileUpload","onProgress","onPlayPause","pausedStatus","prevFileUploads","_useTheme2","_useTheme2$theme","_useTheme2$theme$colo","black","grey_gainsboro","grey_whisper","_useTheme2$theme$mess","renderItem","_ref2","_item$file$mimeType","getIndicatorTypeForFileState","state","isAudio","mimeType","startsWith","Fragment","UploadProgressIndicator","action","newFile","type","isSoundPackageAvailable","hideProgressBar","showSpeedSettings","testID","borderColor","numberOfLines","I18nManager","isRTL","writingDirection","getTrimmedAttachmentTitle","name","TouchableOpacity","onPress","backgroundColor","Close","fileUploadsLength","length","current","setTimeout","_flatListRef$current","scrollToEnd","FlatList","data","getItemLayout","_","offset","keyExtractor","concat","onLayout","_ref3","nativeEvent","layout","ref","areEqual","prevProps","nextProps","nextFileUploads","every","prevFileUpload","MemoizedFileUploadPreview","React","memo","FileUploadPreview","exports","_useChatContext","useChatContext","_useMessageInputConte","useMessageInputContext","setFileUploads","_useMessagesContext","useMessagesContext","displayName"],"sourceRoot":"../../../../src","sources":["components/MessageInput/FileUploadPreview.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAIA,IAAAK,gBAAA,GAAAL,OAAA;AAIA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AAEA,IAAAW,0BAAA,GAAAX,OAAA;AACA,IAAAY,MAAA,GAAAZ,OAAA;AAKA,IAAAa,eAAA,GAAAb,OAAA;AACA,IAAAc,0BAAA,GAAAd,OAAA;AAAuF,IAAAe,WAAA,GAAAf,OAAA;AAAA,IAAAgB,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAA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AAiB,CAACS,WAAW,GAAG,oDAAoD","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_UploadProgressIndicator","_contexts","_MessageInputContext","_MessagesContext","_ThemeContext","_TranslationContext","_Close","_Warning","_native","_getTrimmedAttachmentTitle","_utils","_FileAttachment","_WritingDirectionAwareText","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","FILE_PREVIEW_HEIGHT","WARNING_ICON_SIZE","styles","StyleSheet","create","dismiss","borderRadius","height","marginRight","position","right","top","width","fileContainer","borderWidth","flexDirection","paddingHorizontal","fileIcon","alignItems","alignSelf","justifyContent","filenameText","fontSize","fontWeight","fileSizeText","marginTop","fileTextContainer","marginVertical","flatList","marginBottom","maxHeight","overlay","marginHorizontal","unsupportedFile","paddingTop","unsupportedFileText","warningIconStyle","UnsupportedFileTypeOrFileSizeIndicator","_ref","indicatorType","item","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$color","colors","accent_red","grey","grey_dark","messageInput","fileUploadPreview","_useTranslationContex","useTranslationContext","ProgressIndicatorTypes","NOT_SUPPORTED","jsxs","View","style","children","jsx","Warning","pathFill","Text","color","WritingDirectionAwareText","file","duration","getDurationLabelFromDuration","getFileSizeDisplayText","size","FileUploadPreview","exports","props","propAudioAttachmentUploadPreview","AudioAttachmentUploadPreview","propEnableOfflineSupport","enableOfflineSupport","propFileAttachmentIcon","FileAttachmentIcon","propFileUploads","fileUploads","propRemoveFile","removeFile","propUploadFile","uploadFile","_useChatContext","useChatContext","contextEnableOfflineSupport","_useMessageInputConte","useMessageInputContext","contextAudioAttachmentUploadPreview","contextFileUploads","contextRemoveFile","contextUploadFile","_useMessagesContext","useMessagesContext","contextFileAttachmentIcon","_useState","useState","_useState2","_slicedToArray2","filesToDisplay","setFilesToDisplay","flatListRef","useRef","_useState3","_useState4","flatListWidth","setFlatListWidth","useEffect","map","_filesToDisplay$find","assign","find","f","id","paused","progress","onLoad","index","prevFilesUploads","fileUpload","onProgress","onPlayPause","pausedStatus","prevFileUploads","_useTheme2","_useTheme2$theme","_useTheme2$theme$colo","black","grey_gainsboro","grey_whisper","_useTheme2$theme$mess","renderItem","_ref2","_item$file$type","getIndicatorTypeForFileState","state","isAudio","type","startsWith","Fragment","UploadProgressIndicator","action","newFile","isSoundPackageAvailable","hideProgressBar","showSpeedSettings","testID","borderColor","mimeType","numberOfLines","I18nManager","isRTL","writingDirection","getTrimmedAttachmentTitle","name","TouchableOpacity","onPress","backgroundColor","Close","fileUploadsLength","length","current","setTimeout","_flatListRef$current","scrollToEnd","FlatList","data","getItemLayout","_","offset","keyExtractor","concat","onLayout","_ref3","nativeEvent","layout","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/MessageInput/FileUploadPreview.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAIA,IAAAK,gBAAA,GAAAL,OAAA;AAIA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AAEA,IAAAW,0BAAA,GAAAX,OAAA;AACA,IAAAY,MAAA,GAAAZ,OAAA;AAKA,IAAAa,eAAA,GAAAb,OAAA;AACA,IAAAc,0BAAA,GAAAd,OAAA;AAAuF,IAAAe,WAAA,GAAAf,OAAA;AAAA,IAAAgB,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CA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ACtC,CAAC;IAAA,CAAE;IACHqD,YAAY,EAAE,SAAdA,YAAYA,CAAGrI,IAAI;MAAA,UAAAsI,MAAA,CAAQtI,IAAI,CAAC4E,EAAE;IAAA,CAAG;IACrC2D,QAAQ,EAAE,SAAVA,QAAQA,CAAAC,KAAA,EAIF;MAAA,IAFQpK,KAAK,GAAAoK,KAAA,CADjBC,WAAW,CACTC,MAAM,CAAItK,KAAK;MAGjBiG,gBAAgB,CAACjG,KAAK,CAAC;IACzB,CAAE;IACFuK,GAAG,EAAE3E,WAAY;IACjB8B,UAAU,EAAEA,UAAW;IACvB5E,KAAK,EAAE,CAACxD,MAAM,CAAC0B,QAAQ,EAAEA,QAAQ;EAAE,CACpC,CAAC,GACA,IAAI;AACV,CAAC;AAED2C,iBAAiB,CAAC6G,WAAW,GAAG,oDAAoD","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_UploadProgressIndicator","_contexts","_MessageInputContext","_ThemeContext","_TranslationContext","_Close","_Warning","_utils","_jsxRuntime","_this","_jsxFileName","IMAGE_PREVIEW_SIZE","WARNING_ICON_SIZE","styles","StyleSheet","create","dismiss","borderRadius","position","right","top","fileSizeText","fontSize","paddingHorizontal","flatList","paddingBottom","iconContainer","alignItems","flexDirection","justifyContent","itemContainer","height","marginLeft","unsupportedImage","bottom","marginHorizontal","upload","width","warningIconStyle","marginTop","warningText","color","UnsupportedImageTypeIndicator","exports","_ref","indicatorType","_useTheme","useTheme","_useTheme$theme$color","theme","colors","accent_red","overlay","white","_useTranslationContex","useTranslationContext","t","ProgressIndicatorTypes","NOT_SUPPORTED","jsx","View","style","backgroundColor","children","jsxs","Warning","pathFill","Text","ImageUploadPreviewWithContext","props","enableOfflineSupport","imageUploads","removeImage","uploadImage","_useTheme2","_useTheme2$theme$mess","messageInput","imageUploadPreview","renderItem","_ref2","index","item","getIndicatorTypeForFileState","state","itemMarginForIndex","length","marginRight","UploadProgressIndicator","action","newImage","type","Image","resizeMode","source","uri","file","url","DismissUpload","onPress","id","FlatList","data","getItemLayout","_","offset","horizontal","keyExtractor","_ref3","_useTheme3","_useTheme3$theme","_useTheme3$theme$colo","_useTheme3$theme$mess","dismissIconColor","TouchableOpacity","testID","Close","areEqual","prevProps","nextProps","prevImageUploads","nextImageUploads","every","prevImageUpload","MemoizedImageUploadPreviewWithContext","React","memo","ImageUploadPreview","_useChatContext","useChatContext","_useMessageInputConte","useMessageInputContext","Object","assign","displayName"],"sourceRoot":"../../../../src","sources":["components/MessageInput/ImageUploadPreview.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAEA,IAAAS,MAAA,GAAAT,OAAA;AAAyF,IAAAU,WAAA,GAAAV,OAAA;AAAA,IAAAW,KAAA;EAAAC,YAAA;AAEzF,IAAMC,kBAAkB,GAAG,GAAG;AAC9B,IAAMC,iBAAiB,GAAG,EAAE;AAE5B,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,OAAO,EAAE;IACPC,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE;EACP,CAAC;EACDC,YAAY,EAAE;IACZC,QAAQ,EAAE,EAAE;IACZC,iBAAiB,EAAE;EACrB,CAAC;EACDC,QAAQ,EAAE;IAAEC,aAAa,EAAE;EAAG,CAAC;EAC/BC,aAAa,EAAE;IACbC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDC,aAAa,EAAE;IACbF,aAAa,EAAE,KAAK;IACpBG,MAAM,EAAEpB,kBAAkB;IAC1BqB,UAAU,EAAE;EACd,CAAC;EACDC,gBAAgB,EAAE;IAChBhB,YAAY,EAAE,EAAE;IAChBiB,MAAM,EAAE,CAAC;IACTN,aAAa,EAAE,KAAK;IACpBO,gBAAgB,EAAE,CAAC;IACnBjB,QAAQ,EAAE;EACZ,CAAC;EACDkB,MAAM,EAAE;IACNnB,YAAY,EAAE,EAAE;IAChBc,MAAM,EAAEpB,kBAAkB;IAC1B0B,KAAK,EAAE1B;EACT,CAAC;EACD2B,gBAAgB,EAAE;IAChBrB,YAAY,EAAE,EAAE;IAChBsB,SAAS,EAAE;EACb,CAAC;EACDC,WAAW,EAAE;IACXb,UAAU,EAAE,QAAQ;IACpBc,KAAK,EAAE,OAAO;IACdnB,QAAQ,EAAE,EAAE;IACZO,cAAc,EAAE,QAAQ;IACxBM,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_UploadProgressIndicator","_contexts","_MessageInputContext","_ThemeContext","_TranslationContext","_Close","_Warning","_utils","_jsxRuntime","_this","_jsxFileName","IMAGE_PREVIEW_SIZE","WARNING_ICON_SIZE","styles","StyleSheet","create","dismiss","borderRadius","position","right","top","fileSizeText","fontSize","paddingHorizontal","flatList","paddingBottom","iconContainer","alignItems","flexDirection","justifyContent","itemContainer","height","marginLeft","unsupportedImage","bottom","marginHorizontal","upload","width","warningIconStyle","marginTop","warningText","color","UnsupportedImageTypeIndicator","exports","_ref","indicatorType","_useTheme","useTheme","_useTheme$theme$color","theme","colors","accent_red","overlay","white","_useTranslationContex","useTranslationContext","t","ProgressIndicatorTypes","NOT_SUPPORTED","jsx","View","style","backgroundColor","children","jsxs","Warning","pathFill","Text","ImageUploadPreviewWithContext","props","enableOfflineSupport","imageUploads","removeImage","uploadImage","_useTheme2","_useTheme2$theme$mess","messageInput","imageUploadPreview","renderItem","_ref2","index","item","getIndicatorTypeForFileState","state","itemMarginForIndex","length","marginRight","UploadProgressIndicator","action","newImage","type","Image","resizeMode","source","uri","file","url","DismissUpload","onPress","id","FlatList","data","getItemLayout","_","offset","horizontal","keyExtractor","_ref3","_useTheme3","_useTheme3$theme","_useTheme3$theme$colo","_useTheme3$theme$mess","dismissIconColor","TouchableOpacity","testID","Close","areEqual","prevProps","nextProps","prevImageUploads","nextImageUploads","every","prevImageUpload","MemoizedImageUploadPreviewWithContext","React","memo","ImageUploadPreview","_useChatContext","useChatContext","_useMessageInputConte","useMessageInputContext","Object","assign","displayName"],"sourceRoot":"../../../../src","sources":["components/MessageInput/ImageUploadPreview.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAEA,IAAAS,MAAA,GAAAT,OAAA;AAAyF,IAAAU,WAAA,GAAAV,OAAA;AAAA,IAAAW,KAAA;EAAAC,YAAA;AAEzF,IAAMC,kBAAkB,GAAG,GAAG;AAC9B,IAAMC,iBAAiB,GAAG,EAAE;AAE5B,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,OAAO,EAAE;IACPC,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE;EACP,CAAC;EACDC,YAAY,EAAE;IACZC,QAAQ,EAAE,EAAE;IACZC,iBAAiB,EAAE;EACrB,CAAC;EACDC,QAAQ,EAAE;IAAEC,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1D,YAAY;IAAEC,WAAW,GAAAyD,qBAAA,CAAXzD,WAAW;IAAEC,WAAW,GAAAwD,qBAAA,CAAXxD,WAAW;EAE9C,OACE,IAAAjE,WAAA,CAAAmD,GAAA,EAACgE,qCAAqC,EAAAQ,MAAA,CAAAC,MAAA;IAC9B7D,YAAY,EAAZA,YAAY;IAAEC,WAAW,EAAXA,WAAW;IAAEC,WAAW,EAAXA,WAAW;IACtCH,oBAAoB,EAApBA;EAAoB,GACtBD,KAAK,CACV,CAAC;AAEN,CAAC;AAEDyD,kBAAkB,CAACO,WAAW,GAAG,sDAAsD","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MessageInputContext","_OwnCapabilitiesContext","_ThemeContext","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","styles","StyleSheet","create","attachButtonContainer","paddingRight","InputButtonsWithContext","exports","props","AttachButton","CommandsButton","giphyActive","hasCameraPicker","hasCommands","hasFilePicker","hasImagePicker","hasText","MoreOptionsButton","openCommandsPicker","setShowMoreOptions","showMoreOptions","_useTheme","useTheme","_useTheme$theme$messa","theme","messageInput","commandsButtonContainer","handleShowMoreOptions","useCallback","ownCapabilities","useOwnCapabilitiesContext","jsx","handleOnPress","jsxs","Fragment","children","uploadFile","View","style","undefined","areEqual","prevProps","nextProps","prevGiphyActive","prevHasCameraPicker","prevHasCommands","prevHasFilePicker","prevHasImagePicker","prevHasText","prevSelectedPicker","selectedPicker","prevShowMoreOptions","nextGiphyActive","nextHasCameraPicker","nextHasCommands","nextHasFilePicker","nextHasImagePicker","nextHasText","nextSelectedPicker","nextShowMoreOptions","MemoizedInputButtonsWithContext","React","memo","InputButtons","_useMessageInputConte","useMessageInputContext","toggleAttachmentPicker","assign"],"sourceRoot":"../../../../src","sources":["components/Mess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AAN,CAAA,cAAAR,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MessageInputContext","_OwnCapabilitiesContext","_ThemeContext","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","styles","StyleSheet","create","attachButtonContainer","paddingRight","InputButtonsWithContext","exports","props","AttachButton","CommandsButton","giphyActive","hasCameraPicker","hasCommands","hasFilePicker","hasImagePicker","hasText","MoreOptionsButton","openCommandsPicker","setShowMoreOptions","showMoreOptions","_useTheme","useTheme","_useTheme$theme$messa","theme","messageInput","commandsButtonContainer","handleShowMoreOptions","useCallback","ownCapabilities","useOwnCapabilitiesContext","jsx","handleOnPress","jsxs","Fragment","children","uploadFile","View","style","undefined","areEqual","prevProps","nextProps","prevGiphyActive","prevHasCameraPicker","prevHasCommands","prevHasFilePicker","prevHasImagePicker","prevHasText","prevSelectedPicker","selectedPicker","prevShowMoreOptions","nextGiphyActive","nextHasCameraPicker","nextHasCommands","nextHasFilePicker","nextHasImagePicker","nextHasText","nextSelectedPicker","nextShowMoreOptions","MemoizedInputButtonsWithContext","React","memo","InputButtons","_useMessageInputConte","useMessageInputContext","toggleAttachmentPicker","assign"],"sourceRoot":"../../../../src","sources":["components/MessageInput/InputButtons.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAF,OAAA;AAIA,IAAAG,uBAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAAoE,IAAAK,WAAA,GAAAL,OAAA;AAAA,IAAAM,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,CA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AAA,CAAjB/C,iBAAiB;IACjBC,kBAAkB,GAAA8C,qBAAA,CAAlB9C,kBAAkB;IAClBgC,cAAc,GAAAc,qBAAA,CAAdd,cAAc;IACd/B,kBAAkB,GAAA6C,qBAAA,CAAlB7C,kBAAkB;IAClBC,eAAe,GAAA4C,qBAAA,CAAf5C,eAAe;IACf8C,sBAAsB,GAAAF,qBAAA,CAAtBE,sBAAsB;EAGxB,OACE,IAAAxF,WAAA,CAAAqD,GAAA,EAAC6B,+BAA+B,EAAAnE,MAAA,CAAA0E,MAAA;IAE5B1D,YAAY,EAAZA,YAAY;IACZC,cAAc,EAAdA,cAAc;IACdC,WAAW,EAAXA,WAAW;IACXC,eAAe,EAAfA,eAAe;IACfC,WAAW,EAAXA,WAAW;IACXC,aAAa,EAAbA,aAAa;IACbC,cAAc,EAAdA,cAAc;IACdC,OAAO,EAAPA,OAAO;IACPC,iBAAiB,EAAjBA,iBAAiB;IACjBC,kBAAkB,EAAlBA,kBAAkB;IAClBgC,cAAc,EAAdA,cAAc;IACd/B,kBAAkB,EAAlBA,kBAAkB;IAClBC,eAAe,EAAfA,eAAe;IACf8C,sBAAsB,EAAtBA;EAAsB,GAEpB1D,KAAK,CACV,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -24,6 +24,7 @@ var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
|
24
24
|
var _ThreadContext = require("../../contexts/threadContext/ThreadContext");
|
|
25
25
|
var _TranslationContext = require("../../contexts/translationContext/TranslationContext");
|
|
26
26
|
var _native = require("../../native");
|
|
27
|
+
var _compressImage = require("../../utils/compressImage");
|
|
27
28
|
var _AITypingIndicatorView = require("../AITypingIndicatorView");
|
|
28
29
|
var _AutoCompleteInput = require("../AutoCompleteInput/AutoCompleteInput");
|
|
29
30
|
var _CreatePollContent = require("../Poll/CreatePollContent");
|
|
@@ -93,6 +94,7 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
93
94
|
channel = props.channel,
|
|
94
95
|
closeAttachmentPicker = props.closeAttachmentPicker,
|
|
95
96
|
closePollCreationDialog = props.closePollCreationDialog,
|
|
97
|
+
compressImageQuality = props.compressImageQuality,
|
|
96
98
|
cooldownEndsAt = props.cooldownEndsAt,
|
|
97
99
|
CooldownTimer = props.CooldownTimer,
|
|
98
100
|
CreatePollContent = props.CreatePollContent,
|
|
@@ -232,17 +234,39 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
232
234
|
});
|
|
233
235
|
}
|
|
234
236
|
}, [imagesForInput, imageUploadsLength]);
|
|
235
|
-
var uploadImagesHandler = function
|
|
236
|
-
var
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
237
|
+
var uploadImagesHandler = function () {
|
|
238
|
+
var _ref = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee() {
|
|
239
|
+
var imageToUpload, compressedImage;
|
|
240
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
241
|
+
while (1) switch (_context.prev = _context.next) {
|
|
242
|
+
case 0:
|
|
243
|
+
imageToUpload = selectedImages.find(function (selectedImage) {
|
|
244
|
+
var uploadedImage = imageUploads.find(function (imageUpload) {
|
|
245
|
+
return imageUpload.file.uri === selectedImage.uri || imageUpload.url === selectedImage.uri;
|
|
246
|
+
});
|
|
247
|
+
return !uploadedImage;
|
|
248
|
+
});
|
|
249
|
+
if (!imageToUpload) {
|
|
250
|
+
_context.next = 6;
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
_context.next = 4;
|
|
254
|
+
return (0, _compressImage.compressedImageURI)(imageToUpload, compressImageQuality);
|
|
255
|
+
case 4:
|
|
256
|
+
compressedImage = _context.sent;
|
|
257
|
+
uploadNewImage(Object.assign({}, imageToUpload, {
|
|
258
|
+
uri: compressedImage
|
|
259
|
+
}));
|
|
260
|
+
case 6:
|
|
261
|
+
case "end":
|
|
262
|
+
return _context.stop();
|
|
263
|
+
}
|
|
264
|
+
}, _callee);
|
|
265
|
+
}));
|
|
266
|
+
return function uploadImagesHandler() {
|
|
267
|
+
return _ref.apply(this, arguments);
|
|
268
|
+
};
|
|
269
|
+
}();
|
|
246
270
|
var removeImagesHandler = function removeImagesHandler() {
|
|
247
271
|
var imagesToRemove = imageUploads.filter(function (imageUpload) {
|
|
248
272
|
return !selectedImages.find(function (selectedImage) {
|
|
@@ -254,10 +278,10 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
254
278
|
});
|
|
255
279
|
};
|
|
256
280
|
var uploadFilesHandler = function () {
|
|
257
|
-
var
|
|
281
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2() {
|
|
258
282
|
var fileToUpload;
|
|
259
|
-
return _regenerator["default"].wrap(function
|
|
260
|
-
while (1) switch (
|
|
283
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
284
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
261
285
|
case 0:
|
|
262
286
|
fileToUpload = selectedFiles.find(function (selectedFile) {
|
|
263
287
|
var uploadedFile = fileUploads.find(function (fileUpload) {
|
|
@@ -266,19 +290,19 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
266
290
|
return !uploadedFile;
|
|
267
291
|
});
|
|
268
292
|
if (!fileToUpload) {
|
|
269
|
-
|
|
293
|
+
_context2.next = 4;
|
|
270
294
|
break;
|
|
271
295
|
}
|
|
272
|
-
|
|
296
|
+
_context2.next = 4;
|
|
273
297
|
return uploadNewFile(fileToUpload);
|
|
274
298
|
case 4:
|
|
275
299
|
case "end":
|
|
276
|
-
return
|
|
300
|
+
return _context2.stop();
|
|
277
301
|
}
|
|
278
|
-
},
|
|
302
|
+
}, _callee2);
|
|
279
303
|
}));
|
|
280
304
|
return function uploadFilesHandler() {
|
|
281
|
-
return
|
|
305
|
+
return _ref2.apply(this, arguments);
|
|
282
306
|
};
|
|
283
307
|
}();
|
|
284
308
|
var removeFilesHandler = function removeFilesHandler() {
|
|
@@ -293,33 +317,33 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
293
317
|
};
|
|
294
318
|
(0, _react.useEffect)(function () {
|
|
295
319
|
var uploadOrRemoveImage = function () {
|
|
296
|
-
var
|
|
297
|
-
return _regenerator["default"].wrap(function
|
|
298
|
-
while (1) switch (
|
|
320
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3() {
|
|
321
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
322
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
299
323
|
case 0:
|
|
300
324
|
if (!imagesForInput) {
|
|
301
|
-
|
|
325
|
+
_context3.next = 7;
|
|
302
326
|
break;
|
|
303
327
|
}
|
|
304
328
|
if (!(selectedImagesLength > imageUploadsLength)) {
|
|
305
|
-
|
|
329
|
+
_context3.next = 6;
|
|
306
330
|
break;
|
|
307
331
|
}
|
|
308
|
-
|
|
332
|
+
_context3.next = 4;
|
|
309
333
|
return uploadImagesHandler();
|
|
310
334
|
case 4:
|
|
311
|
-
|
|
335
|
+
_context3.next = 7;
|
|
312
336
|
break;
|
|
313
337
|
case 6:
|
|
314
338
|
removeImagesHandler();
|
|
315
339
|
case 7:
|
|
316
340
|
case "end":
|
|
317
|
-
return
|
|
341
|
+
return _context3.stop();
|
|
318
342
|
}
|
|
319
|
-
},
|
|
343
|
+
}, _callee3);
|
|
320
344
|
}));
|
|
321
345
|
return function uploadOrRemoveImage() {
|
|
322
|
-
return
|
|
346
|
+
return _ref3.apply(this, arguments);
|
|
323
347
|
};
|
|
324
348
|
}();
|
|
325
349
|
if (!(0, _native.isImageMediaLibraryAvailable)()) {
|
|
@@ -329,29 +353,29 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
329
353
|
}, [selectedImagesLength]);
|
|
330
354
|
(0, _react.useEffect)(function () {
|
|
331
355
|
var uploadOrRemoveFile = function () {
|
|
332
|
-
var
|
|
333
|
-
return _regenerator["default"].wrap(function
|
|
334
|
-
while (1) switch (
|
|
356
|
+
var _ref4 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4() {
|
|
357
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
358
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
335
359
|
case 0:
|
|
336
360
|
if (!(selectedFilesLength > fileUploadsLength)) {
|
|
337
|
-
|
|
361
|
+
_context4.next = 5;
|
|
338
362
|
break;
|
|
339
363
|
}
|
|
340
|
-
|
|
364
|
+
_context4.next = 3;
|
|
341
365
|
return uploadFilesHandler();
|
|
342
366
|
case 3:
|
|
343
|
-
|
|
367
|
+
_context4.next = 6;
|
|
344
368
|
break;
|
|
345
369
|
case 5:
|
|
346
370
|
removeFilesHandler();
|
|
347
371
|
case 6:
|
|
348
372
|
case "end":
|
|
349
|
-
return
|
|
373
|
+
return _context4.stop();
|
|
350
374
|
}
|
|
351
|
-
},
|
|
375
|
+
}, _callee4);
|
|
352
376
|
}));
|
|
353
377
|
return function uploadOrRemoveFile() {
|
|
354
|
-
return
|
|
378
|
+
return _ref4.apply(this, arguments);
|
|
355
379
|
};
|
|
356
380
|
}();
|
|
357
381
|
uploadOrRemoveFile();
|
|
@@ -368,13 +392,8 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
368
392
|
setSelectedImages(updatedSelectedImages);
|
|
369
393
|
} else if (imageUploadsLength > selectedImagesLength) {
|
|
370
394
|
setSelectedImages(imageUploads.map(function (imageUpload) {
|
|
371
|
-
return
|
|
372
|
-
|
|
373
|
-
source: imageUpload.file.source,
|
|
374
|
-
uri: imageUpload.url || imageUpload.file.uri,
|
|
375
|
-
width: imageUpload.file.width
|
|
376
|
-
};
|
|
377
|
-
}).filter(Boolean));
|
|
395
|
+
return imageUpload.file;
|
|
396
|
+
}));
|
|
378
397
|
}
|
|
379
398
|
}
|
|
380
399
|
}, [imageUploadsLength]);
|
|
@@ -390,13 +409,7 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
390
409
|
setSelectedFiles(updatedSelectedFiles);
|
|
391
410
|
} else if (fileUploadsLength > selectedFilesLength) {
|
|
392
411
|
setSelectedFiles(fileUploads.map(function (fileUpload) {
|
|
393
|
-
return
|
|
394
|
-
duration: fileUpload.file.duration,
|
|
395
|
-
mimeType: fileUpload.file.mimeType,
|
|
396
|
-
name: fileUpload.file.name,
|
|
397
|
-
size: fileUpload.file.size,
|
|
398
|
-
uri: fileUpload.file.uri
|
|
399
|
-
};
|
|
412
|
+
return fileUpload.file;
|
|
400
413
|
}));
|
|
401
414
|
}
|
|
402
415
|
}
|
|
@@ -411,9 +424,9 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
411
424
|
}
|
|
412
425
|
}, [editingExists]);
|
|
413
426
|
var asyncIdsString = asyncIds.join();
|
|
414
|
-
var asyncUploadsString = Object.values(asyncUploads).map(function (
|
|
415
|
-
var state =
|
|
416
|
-
url =
|
|
427
|
+
var asyncUploadsString = Object.values(asyncUploads).map(function (_ref5) {
|
|
428
|
+
var state = _ref5.state,
|
|
429
|
+
url = _ref5.url;
|
|
417
430
|
return "".concat(state).concat(url);
|
|
418
431
|
}).join();
|
|
419
432
|
(0, _react.useEffect)(function () {
|
|
@@ -521,20 +534,20 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
521
534
|
var X_AXIS_POSITION = -asyncMessagesSlideToCancelDistance;
|
|
522
535
|
var Y_AXIS_POSITION = -asyncMessagesLockDistance;
|
|
523
536
|
var resetAudioRecording = function () {
|
|
524
|
-
var
|
|
525
|
-
return _regenerator["default"].wrap(function
|
|
526
|
-
while (1) switch (
|
|
537
|
+
var _ref6 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee5() {
|
|
538
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
539
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
527
540
|
case 0:
|
|
528
|
-
|
|
541
|
+
_context5.next = 2;
|
|
529
542
|
return deleteVoiceRecording();
|
|
530
543
|
case 2:
|
|
531
544
|
case "end":
|
|
532
|
-
return
|
|
545
|
+
return _context5.stop();
|
|
533
546
|
}
|
|
534
|
-
},
|
|
547
|
+
}, _callee5);
|
|
535
548
|
}));
|
|
536
549
|
return function resetAudioRecording() {
|
|
537
|
-
return
|
|
550
|
+
return _ref6.apply(this, arguments);
|
|
538
551
|
};
|
|
539
552
|
}();
|
|
540
553
|
var micLockHandler = function micLockHandler() {
|
|
@@ -611,8 +624,8 @@ var MessageInputWithContext = function MessageInputWithContext(props) {
|
|
|
611
624
|
var shouldDisplayStopAIGeneration = [_AITypingIndicatorView.AIStates.Thinking, _AITypingIndicatorView.AIStates.Generating].includes(aiState) && !!StopMessageStreamingButton;
|
|
612
625
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
613
626
|
children: [(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
614
|
-
onLayout: function onLayout(
|
|
615
|
-
var newHeight =
|
|
627
|
+
onLayout: function onLayout(_ref7) {
|
|
628
|
+
var newHeight = _ref7.nativeEvent.layout.height;
|
|
616
629
|
return setHeight(newHeight);
|
|
617
630
|
},
|
|
618
631
|
style: [styles.container, {
|
|
@@ -874,8 +887,8 @@ var areEqual = function areEqual(prevProps, nextProps) {
|
|
|
874
887
|
if (!mentionedUsersEqual) {
|
|
875
888
|
return false;
|
|
876
889
|
}
|
|
877
|
-
var suggestionsEqual = !!(prevSuggestions != null && prevSuggestions.data) && !!(nextSuggestions != null && nextSuggestions.data) ? prevSuggestions.data.length === nextSuggestions.data.length && prevSuggestions.data.every(function (
|
|
878
|
-
var name =
|
|
890
|
+
var suggestionsEqual = !!(prevSuggestions != null && prevSuggestions.data) && !!(nextSuggestions != null && nextSuggestions.data) ? prevSuggestions.data.length === nextSuggestions.data.length && prevSuggestions.data.every(function (_ref8, index) {
|
|
891
|
+
var name = _ref8.name;
|
|
879
892
|
return name === nextSuggestions.data[index].name;
|
|
880
893
|
}) : !!prevSuggestions === !!nextSuggestions;
|
|
881
894
|
if (!suggestionsEqual) {
|
|
@@ -921,6 +934,7 @@ var MessageInput = exports.MessageInput = function MessageInput(props) {
|
|
|
921
934
|
clearQuotedMessageState = _useMessageInputConte.clearQuotedMessageState,
|
|
922
935
|
closeAttachmentPicker = _useMessageInputConte.closeAttachmentPicker,
|
|
923
936
|
closePollCreationDialog = _useMessageInputConte.closePollCreationDialog,
|
|
937
|
+
compressImageQuality = _useMessageInputConte.compressImageQuality,
|
|
924
938
|
cooldownEndsAt = _useMessageInputConte.cooldownEndsAt,
|
|
925
939
|
CooldownTimer = _useMessageInputConte.CooldownTimer,
|
|
926
940
|
CreatePollContent = _useMessageInputConte.CreatePollContent,
|
|
@@ -998,6 +1012,7 @@ var MessageInput = exports.MessageInput = function MessageInput(props) {
|
|
|
998
1012
|
clearQuotedMessageState: clearQuotedMessageState,
|
|
999
1013
|
closeAttachmentPicker: closeAttachmentPicker,
|
|
1000
1014
|
closePollCreationDialog: closePollCreationDialog,
|
|
1015
|
+
compressImageQuality: compressImageQuality,
|
|
1001
1016
|
cooldownEndsAt: cooldownEndsAt,
|
|
1002
1017
|
CooldownTimer: CooldownTimer,
|
|
1003
1018
|
CreatePollContent: CreatePollContent,
|