stream-chat-react-native-core 6.6.8-beta.3 → 7.0.0-rc.2
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 +1 -1
- 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/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/Avatar/Avatar.js +13 -26
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +2 -4
- 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/useAddedToChannelNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelMemberUpdated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.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/useSelectedChannelState.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.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 +14 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +18 -7
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +34 -8
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js +5 -6
- package/lib/commonjs/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +15 -3
- 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.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.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.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.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.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/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.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/useLastReadData.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/commonjs/components/MessageList/utils/getReadStates.js.map +1 -1
- 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.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/ThreadList/ThreadList.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.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.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/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/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 +1 -0
- 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/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 +23 -22
- 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 +1 -1
- 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/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/Avatar/Avatar.js +13 -26
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +2 -4
- 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/useAddedToChannelNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelMemberUpdated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.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/useSelectedChannelState.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.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 +14 -3
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js +18 -7
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js +34 -8
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js +5 -6
- package/lib/module/components/ChannelPreview/hooks/useIsChannelMuted.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +15 -3
- 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.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.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.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.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.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/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.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/useLastReadData.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/MessageList/utils/getLastReceivedMessage.js.map +1 -1
- package/lib/module/components/MessageList/utils/getReadStates.js.map +1 -1
- 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.map +1 -1
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/ThreadList/ThreadList.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.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.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/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/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 +1 -0
- 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/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 +23 -22
- 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/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 +4 -5
- 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/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/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +9 -9
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +23 -24
- 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/useAddedToChannelNotification.d.ts +6 -6
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +4 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +4 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelMemberUpdated.d.ts +6 -6
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelMemberUpdated.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +4 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.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/listeners/useChannelVisible.d.ts +6 -6
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +6 -6
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +6 -6
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +4 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +3 -4
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.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/useSelectedChannelState.d.ts +6 -7
- package/lib/typescript/components/ChannelList/hooks/useSelectedChannelState.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 +3 -12
- 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 +4 -13
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts +2 -3
- 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 +19 -20
- 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 +5 -6
- 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 +3 -4
- 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 +3 -4
- 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 +3 -4
- 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/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/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 +6 -7
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +3 -4
- 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/useLastReadData.d.ts +4 -5
- package/lib/typescript/components/MessageList/hooks/useLastReadData.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +6 -7
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts +1 -2
- 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 +1 -2
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -2
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts.map +1 -1
- 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 +5 -6
- 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 +4 -5
- 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 +7 -8
- 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/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 +11 -12
- package/lib/typescript/contexts/debugContext/DebugContext.d.ts.map +1 -1
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +7 -7
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +12 -13
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +36 -36
- 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 +2 -2
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +63 -64
- 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 +7 -8
- 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 +10 -11
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts.map +1 -1
- package/lib/typescript/contexts/threadsContext/ThreadListItemContext.d.ts +9 -10
- 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/useTranslatedMessage.d.ts +112 -3
- package/lib/typescript/hooks/useTranslatedMessage.d.ts.map +1 -1
- package/lib/typescript/native.d.ts +3 -0
- 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/queries/selectChannelIdsForFilterSort.d.ts +3 -4
- package/lib/typescript/store/apis/queries/selectChannelIdsForFilterSort.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/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/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 +38 -30
- 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/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 +1 -2
- package/lib/typescript/utils/removeReservedFields.d.ts.map +1 -1
- package/lib/typescript/utils/utils.d.ts +10 -10
- package/lib/typescript/utils/utils.d.ts.map +1 -1
- package/package.json +2 -2
- 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/Card.tsx +14 -36
- package/src/components/Attachment/FileAttachment.tsx +11 -24
- package/src/components/Attachment/FileAttachmentGroup.tsx +16 -29
- package/src/components/Attachment/Gallery.tsx +25 -47
- 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/AutoCompleteInput/AutoCompleteInput.tsx +16 -38
- 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/Avatar/Avatar.tsx +19 -33
- package/src/components/Channel/Channel.tsx +118 -164
- package/src/components/Channel/hooks/useChannelDataState.ts +38 -59
- 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 +34 -40
- package/src/components/ChannelList/ChannelList.tsx +36 -44
- package/src/components/ChannelList/ChannelListMessenger.tsx +12 -37
- package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +15 -21
- package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +10 -18
- package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +10 -18
- package/src/components/ChannelList/hooks/listeners/useChannelMemberUpdated.ts +17 -23
- package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +13 -18
- package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +11 -19
- package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +14 -24
- package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +17 -23
- package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +14 -20
- package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +11 -16
- package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +8 -16
- 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/useSelectedChannelState.ts +9 -17
- 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 +9 -28
- 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 +1 -1
- package/src/components/ChannelPreview/hooks/__tests__/useLatestMessagePreview.test.tsx +0 -1
- package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts +7 -11
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +16 -18
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +20 -23
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +29 -13
- package/src/components/ChannelPreview/hooks/useIsChannelMuted.ts +3 -15
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +59 -70
- package/src/components/Chat/Chat.tsx +11 -24
- 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 +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +1 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +1 -1
- 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 +47 -75
- 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 +14 -27
- 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 +9 -21
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +16 -33
- 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/utils/renderText.tsx +6 -14
- package/src/components/Message/hooks/useCreateMessageContext.ts +4 -6
- package/src/components/Message/hooks/useMessageActionHandlers.ts +6 -9
- package/src/components/Message/hooks/useMessageActions.tsx +11 -15
- 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 +14 -26
- package/src/components/MessageInput/ImageUploadPreview.tsx +12 -24
- package/src/components/MessageInput/InputButtons.tsx +9 -23
- package/src/components/MessageInput/MessageInput.tsx +27 -36
- package/src/components/MessageInput/SendButton.tsx +6 -23
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +3 -10
- 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/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 +72 -94
- package/src/components/MessageList/MessageSystem.tsx +3 -10
- 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 +1 -1
- package/src/components/MessageList/hooks/useLastReadData.ts +5 -13
- package/src/components/MessageList/hooks/useMessageList.ts +20 -33
- package/src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts +4 -5
- 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 +8 -18
- package/src/components/MessageList/utils/getLastReceivedMessage.ts +1 -6
- package/src/components/MessageList/utils/getReadStates.ts +4 -9
- 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/hooks/useFetchReactions.ts +5 -10
- package/src/components/Poll/Poll.tsx +3 -12
- package/src/components/Poll/components/Button.tsx +3 -11
- 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 +8 -12
- package/src/components/Poll/hooks/usePollState.ts +4 -12
- package/src/components/Reply/Reply.tsx +18 -43
- package/src/components/Thread/Thread.tsx +15 -29
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +0 -3
- package/src/components/Thread/components/ThreadFooterComponent.tsx +11 -25
- package/src/components/ThreadList/ThreadList.tsx +3 -5
- 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 +13 -20
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +9 -19
- package/src/contexts/messageContext/MessageContext.tsx +13 -21
- package/src/contexts/messageInputContext/MessageInputContext.tsx +57 -84
- package/src/contexts/messageInputContext/__tests__/MessageInputContext.test.tsx +6 -13
- 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 +4 -8
- package/src/contexts/messageInputContext/__tests__/sendMessageAsync.test.tsx +3 -8
- package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +6 -10
- 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 +1 -1
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +3 -7
- package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +4 -11
- package/src/contexts/messagesContext/MessagesContext.tsx +64 -80
- 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 -10
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +29 -58
- package/src/contexts/threadContext/ThreadContext.tsx +10 -20
- package/src/contexts/threadsContext/ThreadListItemContext.tsx +10 -16
- package/src/contexts/threadsContext/ThreadsContext.tsx +7 -17
- package/src/contexts/typingContext/TypingContext.tsx +6 -15
- package/src/hooks/useTranslatedMessage.ts +1 -6
- package/src/mock-builders/api/channelMocks.tsx +0 -2
- package/src/native.ts +3 -0
- 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/queries/selectChannelIdsForFilterSort.ts +3 -6
- package/src/store/apis/updatePollMessage.ts +3 -6
- 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/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 +3 -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 +45 -45
- package/src/utils/ACITriggerSettings.ts +20 -37
- package/src/utils/DBSyncManager.ts +6 -31
- package/src/utils/addReactionToLocalState.ts +3 -7
- 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 +5 -7
- package/src/utils/utils.ts +31 -51
- package/src/version.json +1 -1
|
@@ -26,7 +26,7 @@ import { useStreami18n } from '../../hooks/useStreami18n';
|
|
|
26
26
|
|
|
27
27
|
import { useViewport } from '../../hooks/useViewport';
|
|
28
28
|
import { isImageMediaLibraryAvailable } from '../../native';
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
import { AttachmentPickerProvider } from '../attachmentPickerContext/AttachmentPickerContext';
|
|
31
31
|
import { ImageGalleryProvider } from '../imageGalleryContext/ImageGalleryContext';
|
|
32
32
|
import { ThemeProvider } from '../themeContext/ThemeContext';
|
|
@@ -55,11 +55,7 @@ import {
|
|
|
55
55
|
*
|
|
56
56
|
* @example ./OverlayProvider.md
|
|
57
57
|
*/
|
|
58
|
-
export const OverlayProvider = <
|
|
59
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
60
|
-
>(
|
|
61
|
-
props: PropsWithChildren<OverlayProviderProps<StreamChatGenerics>>,
|
|
62
|
-
) => {
|
|
58
|
+
export const OverlayProvider = (props: PropsWithChildren<OverlayProviderProps>) => {
|
|
63
59
|
const { vh } = useViewport();
|
|
64
60
|
const bottomSheetCloseTimeoutRef = useRef<ReturnType<typeof setTimeout>>(undefined);
|
|
65
61
|
const {
|
|
@@ -211,7 +207,7 @@ export const OverlayProvider = <
|
|
|
211
207
|
{children}
|
|
212
208
|
<ThemeProvider style={overlayContext.style}>
|
|
213
209
|
{overlay === 'gallery' && (
|
|
214
|
-
<ImageGallery
|
|
210
|
+
<ImageGallery
|
|
215
211
|
autoPlayVideo={autoPlayVideo}
|
|
216
212
|
giphyVersion={giphyVersion}
|
|
217
213
|
imageGalleryCustomComponents={imageGalleryCustomComponents}
|
|
@@ -2,14 +2,11 @@ import React, { PropsWithChildren, useContext } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import type { ChannelState } from 'stream-chat';
|
|
4
4
|
|
|
5
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
5
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
7
6
|
|
|
8
7
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
9
8
|
|
|
10
|
-
export type PaginatedMessageListContextValue
|
|
11
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
12
|
-
> = {
|
|
9
|
+
export type PaginatedMessageListContextValue = {
|
|
13
10
|
/**
|
|
14
11
|
* Load latest messages
|
|
15
12
|
* @returns Promise<void>
|
|
@@ -26,7 +23,7 @@ export type PaginatedMessageListContextValue<
|
|
|
26
23
|
/**
|
|
27
24
|
* Messages from client state
|
|
28
25
|
*/
|
|
29
|
-
messages: ChannelState
|
|
26
|
+
messages: ChannelState['messages'];
|
|
30
27
|
/**
|
|
31
28
|
* Has more messages to load
|
|
32
29
|
*/
|
|
@@ -53,13 +50,11 @@ export const PaginatedMessageListContext = React.createContext(
|
|
|
53
50
|
DEFAULT_BASE_CONTEXT_VALUE as PaginatedMessageListContextValue,
|
|
54
51
|
);
|
|
55
52
|
|
|
56
|
-
export const PaginatedMessageListProvider =
|
|
57
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
58
|
-
>({
|
|
53
|
+
export const PaginatedMessageListProvider = ({
|
|
59
54
|
children,
|
|
60
55
|
value,
|
|
61
56
|
}: PropsWithChildren<{
|
|
62
|
-
value?: PaginatedMessageListContextValue
|
|
57
|
+
value?: PaginatedMessageListContextValue;
|
|
63
58
|
}>) => (
|
|
64
59
|
<PaginatedMessageListContext.Provider
|
|
65
60
|
value={value as unknown as PaginatedMessageListContextValue}
|
|
@@ -68,12 +63,10 @@ export const PaginatedMessageListProvider = <
|
|
|
68
63
|
</PaginatedMessageListContext.Provider>
|
|
69
64
|
);
|
|
70
65
|
|
|
71
|
-
export const usePaginatedMessageListContext =
|
|
72
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
73
|
-
>() => {
|
|
66
|
+
export const usePaginatedMessageListContext = () => {
|
|
74
67
|
const contextValue = useContext(
|
|
75
68
|
PaginatedMessageListContext,
|
|
76
|
-
) as unknown as PaginatedMessageListContextValue
|
|
69
|
+
) as unknown as PaginatedMessageListContextValue;
|
|
77
70
|
|
|
78
71
|
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
|
|
79
72
|
throw new Error(
|
|
@@ -3,27 +3,23 @@ import React, { PropsWithChildren, useContext } from 'react';
|
|
|
3
3
|
import { Poll } from 'stream-chat';
|
|
4
4
|
|
|
5
5
|
import { MessageType } from '../../components';
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
8
8
|
|
|
9
9
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
10
10
|
|
|
11
|
-
export type PollContextValue
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
message: MessageType<StreamChatGenerics>;
|
|
15
|
-
poll: Poll<StreamChatGenerics>;
|
|
11
|
+
export type PollContextValue = {
|
|
12
|
+
message: MessageType;
|
|
13
|
+
poll: Poll;
|
|
16
14
|
};
|
|
17
15
|
|
|
18
16
|
export const PollContext = React.createContext(DEFAULT_BASE_CONTEXT_VALUE as PollContextValue);
|
|
19
17
|
|
|
20
|
-
export const PollContextProvider =
|
|
21
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
22
|
-
>({
|
|
18
|
+
export const PollContextProvider = ({
|
|
23
19
|
children,
|
|
24
20
|
value,
|
|
25
21
|
}: PropsWithChildren<{
|
|
26
|
-
value: PollContextValue
|
|
22
|
+
value: PollContextValue;
|
|
27
23
|
}>) => (
|
|
28
24
|
<PollContext.Provider value={value as unknown as PollContextValue}>
|
|
29
25
|
{children}
|
|
@@ -6,60 +6,37 @@ import type { AutoCompleteSuggestionHeaderProps } from '../../components/AutoCom
|
|
|
6
6
|
import type { AutoCompleteSuggestionItemProps } from '../../components/AutoCompleteInput/AutoCompleteSuggestionItem';
|
|
7
7
|
import type { AutoCompleteSuggestionListProps } from '../../components/AutoCompleteInput/AutoCompleteSuggestionList';
|
|
8
8
|
import type { Emoji } from '../../emoji-data';
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
11
11
|
|
|
12
12
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
13
13
|
|
|
14
14
|
export type SuggestionComponentType = 'command' | 'emoji' | 'mention';
|
|
15
15
|
|
|
16
|
-
export const isSuggestionCommand =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export type Suggestion<
|
|
35
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
36
|
-
> = Emoji | SuggestionCommand<StreamChatGenerics> | SuggestionUser<StreamChatGenerics>;
|
|
37
|
-
|
|
38
|
-
export type SuggestionCommand<
|
|
39
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
40
|
-
> = CommandResponse<StreamChatGenerics>;
|
|
41
|
-
export type SuggestionUser<
|
|
42
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
43
|
-
> = UserResponse<StreamChatGenerics>;
|
|
44
|
-
|
|
45
|
-
export type Suggestions<
|
|
46
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
47
|
-
> = {
|
|
48
|
-
data: Suggestion<StreamChatGenerics>[];
|
|
49
|
-
onSelect: (item: Suggestion<StreamChatGenerics>) => void;
|
|
16
|
+
export const isSuggestionCommand = (suggestion: Suggestion): suggestion is SuggestionCommand =>
|
|
17
|
+
'args' in suggestion;
|
|
18
|
+
|
|
19
|
+
export const isSuggestionEmoji = (suggestion: Suggestion): suggestion is Emoji =>
|
|
20
|
+
'unicode' in suggestion;
|
|
21
|
+
|
|
22
|
+
export const isSuggestionUser = (suggestion: Suggestion): suggestion is SuggestionUser =>
|
|
23
|
+
'id' in suggestion;
|
|
24
|
+
|
|
25
|
+
export type Suggestion = Emoji | SuggestionCommand | SuggestionUser;
|
|
26
|
+
|
|
27
|
+
export type SuggestionCommand = CommandResponse;
|
|
28
|
+
export type SuggestionUser = UserResponse;
|
|
29
|
+
|
|
30
|
+
export type Suggestions = {
|
|
31
|
+
data: Suggestion[];
|
|
32
|
+
onSelect: (item: Suggestion) => void;
|
|
50
33
|
queryText?: string;
|
|
51
34
|
};
|
|
52
35
|
|
|
53
|
-
export type SuggestionsContextValue
|
|
54
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
55
|
-
> = {
|
|
36
|
+
export type SuggestionsContextValue = {
|
|
56
37
|
AutoCompleteSuggestionHeader: React.ComponentType<AutoCompleteSuggestionHeaderProps>;
|
|
57
|
-
AutoCompleteSuggestionItem: React.ComponentType<
|
|
58
|
-
|
|
59
|
-
>;
|
|
60
|
-
AutoCompleteSuggestionList: React.ComponentType<
|
|
61
|
-
AutoCompleteSuggestionListProps<StreamChatGenerics>
|
|
62
|
-
>;
|
|
38
|
+
AutoCompleteSuggestionItem: React.ComponentType<AutoCompleteSuggestionItemProps>;
|
|
39
|
+
AutoCompleteSuggestionList: React.ComponentType<AutoCompleteSuggestionListProps>;
|
|
63
40
|
/** Override handler for closing suggestions (mentions, command autocomplete etc) */
|
|
64
41
|
closeSuggestions: () => void;
|
|
65
42
|
/**
|
|
@@ -69,7 +46,7 @@ export type SuggestionsContextValue<
|
|
|
69
46
|
* @overrideType Function
|
|
70
47
|
*/
|
|
71
48
|
openSuggestions: (component: SuggestionComponentType) => Promise<void>;
|
|
72
|
-
suggestions: Suggestions
|
|
49
|
+
suggestions: Suggestions;
|
|
73
50
|
triggerType: SuggestionComponentType;
|
|
74
51
|
/**
|
|
75
52
|
* Override handler for updating suggestions (mentions, command autocomplete etc)
|
|
@@ -77,7 +54,7 @@ export type SuggestionsContextValue<
|
|
|
77
54
|
* @param newSuggestions {Component|element} UI Component for suggestion item.
|
|
78
55
|
* @overrideType Function
|
|
79
56
|
*/
|
|
80
|
-
updateSuggestions: (newSuggestions: Suggestions
|
|
57
|
+
updateSuggestions: (newSuggestions: Suggestions) => void;
|
|
81
58
|
queryText?: string;
|
|
82
59
|
suggestionsViewActive?: boolean;
|
|
83
60
|
};
|
|
@@ -89,14 +66,12 @@ export const SuggestionsContext = React.createContext(
|
|
|
89
66
|
/**
|
|
90
67
|
* This provider component exposes the properties stored within the SuggestionsContext.
|
|
91
68
|
*/
|
|
92
|
-
export const SuggestionsProvider =
|
|
93
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
94
|
-
>({
|
|
69
|
+
export const SuggestionsProvider = ({
|
|
95
70
|
children,
|
|
96
71
|
value,
|
|
97
|
-
}: PropsWithChildren<{ value?: Partial<SuggestionsContextValue
|
|
72
|
+
}: PropsWithChildren<{ value?: Partial<SuggestionsContextValue> }>) => {
|
|
98
73
|
const [triggerType, setTriggerType] = useState<SuggestionComponentType | null>(null);
|
|
99
|
-
const [suggestions, setSuggestions] = useState<Suggestions
|
|
74
|
+
const [suggestions, setSuggestions] = useState<Suggestions>();
|
|
100
75
|
const [suggestionsViewActive, setSuggestionsViewActive] = useState(false);
|
|
101
76
|
|
|
102
77
|
const openSuggestions = (component: SuggestionComponentType) => {
|
|
@@ -104,7 +79,7 @@ export const SuggestionsProvider = <
|
|
|
104
79
|
setSuggestionsViewActive(true);
|
|
105
80
|
};
|
|
106
81
|
|
|
107
|
-
const updateSuggestions = (newSuggestions: Suggestions
|
|
82
|
+
const updateSuggestions = (newSuggestions: Suggestions) => {
|
|
108
83
|
setSuggestions(newSuggestions);
|
|
109
84
|
setSuggestionsViewActive(!!triggerType);
|
|
110
85
|
};
|
|
@@ -132,12 +107,8 @@ export const SuggestionsProvider = <
|
|
|
132
107
|
);
|
|
133
108
|
};
|
|
134
109
|
|
|
135
|
-
export const useSuggestionsContext =
|
|
136
|
-
|
|
137
|
-
>() => {
|
|
138
|
-
const contextValue = useContext(
|
|
139
|
-
SuggestionsContext,
|
|
140
|
-
) as unknown as SuggestionsContextValue<StreamChatGenerics>;
|
|
110
|
+
export const useSuggestionsContext = () => {
|
|
111
|
+
const contextValue = useContext(SuggestionsContext) as unknown as SuggestionsContextValue;
|
|
141
112
|
|
|
142
113
|
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
|
|
143
114
|
throw new Error(
|
|
@@ -3,27 +3,23 @@ import React, { PropsWithChildren, useContext } from 'react';
|
|
|
3
3
|
import { ChannelState, Thread } from 'stream-chat';
|
|
4
4
|
|
|
5
5
|
import type { MessageType } from '../../components/MessageList/hooks/useMessageList';
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
8
8
|
|
|
9
9
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
10
10
|
|
|
11
|
-
export type ThreadType
|
|
12
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
13
|
-
> = { thread: MessageType<StreamChatGenerics>; threadInstance: Thread };
|
|
11
|
+
export type ThreadType = { thread: MessageType; threadInstance: Thread };
|
|
14
12
|
|
|
15
|
-
export type ThreadContextValue
|
|
16
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
17
|
-
> = {
|
|
13
|
+
export type ThreadContextValue = {
|
|
18
14
|
allowThreadMessagesInChannel: boolean;
|
|
19
15
|
closeThread: () => void;
|
|
20
16
|
loadMoreThread: () => Promise<void>;
|
|
21
|
-
openThread: (message: MessageType
|
|
17
|
+
openThread: (message: MessageType) => void;
|
|
22
18
|
reloadThread: () => void;
|
|
23
19
|
setThreadLoadingMore: React.Dispatch<React.SetStateAction<boolean>>;
|
|
24
|
-
thread: MessageType
|
|
20
|
+
thread: MessageType | null;
|
|
25
21
|
threadHasMore: boolean;
|
|
26
|
-
threadMessages: ChannelState
|
|
22
|
+
threadMessages: ChannelState['threads'][string];
|
|
27
23
|
loadMoreRecentThread?: (opts: { limit?: number }) => Promise<void>;
|
|
28
24
|
/**
|
|
29
25
|
* Boolean to enable/disable parent message press
|
|
@@ -36,25 +32,19 @@ export type ThreadContextValue<
|
|
|
36
32
|
|
|
37
33
|
export const ThreadContext = React.createContext(DEFAULT_BASE_CONTEXT_VALUE as ThreadContextValue);
|
|
38
34
|
|
|
39
|
-
export const ThreadProvider =
|
|
40
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
41
|
-
>({
|
|
35
|
+
export const ThreadProvider = ({
|
|
42
36
|
children,
|
|
43
37
|
value,
|
|
44
38
|
}: PropsWithChildren<{
|
|
45
|
-
value: ThreadContextValue
|
|
39
|
+
value: ThreadContextValue;
|
|
46
40
|
}>) => (
|
|
47
41
|
<ThreadContext.Provider value={value as unknown as ThreadContextValue}>
|
|
48
42
|
{children}
|
|
49
43
|
</ThreadContext.Provider>
|
|
50
44
|
);
|
|
51
45
|
|
|
52
|
-
export const useThreadContext =
|
|
53
|
-
|
|
54
|
-
>() => {
|
|
55
|
-
const contextValue = useContext(
|
|
56
|
-
ThreadContext,
|
|
57
|
-
) as unknown as ThreadContextValue<StreamChatGenerics>;
|
|
46
|
+
export const useThreadContext = () => {
|
|
47
|
+
const contextValue = useContext(ThreadContext) as unknown as ThreadContextValue;
|
|
58
48
|
|
|
59
49
|
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
|
|
60
50
|
throw new Error(
|
|
@@ -3,39 +3,33 @@ import React, { PropsWithChildren, useContext } from 'react';
|
|
|
3
3
|
import { Channel, Thread } from 'stream-chat';
|
|
4
4
|
|
|
5
5
|
import { MessageType } from '../../components';
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
8
8
|
|
|
9
|
-
export type ThreadListItemContextValue
|
|
10
|
-
|
|
11
|
-
> = {
|
|
12
|
-
channel: Channel<StreamChatGenerics>;
|
|
9
|
+
export type ThreadListItemContextValue = {
|
|
10
|
+
channel: Channel;
|
|
13
11
|
dateString: string | number | undefined;
|
|
14
12
|
deletedAtDateString: string | number | undefined;
|
|
15
|
-
lastReply: MessageType
|
|
13
|
+
lastReply: MessageType | undefined;
|
|
16
14
|
ownUnreadMessageCount: number;
|
|
17
|
-
parentMessage: MessageType
|
|
18
|
-
thread: Thread
|
|
15
|
+
parentMessage: MessageType | undefined;
|
|
16
|
+
thread: Thread;
|
|
19
17
|
};
|
|
20
18
|
|
|
21
19
|
export const ThreadListItemContext = React.createContext(
|
|
22
20
|
DEFAULT_BASE_CONTEXT_VALUE as ThreadListItemContextValue,
|
|
23
21
|
);
|
|
24
22
|
|
|
25
|
-
export const ThreadListItemProvider =
|
|
26
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
27
|
-
>({
|
|
23
|
+
export const ThreadListItemProvider = ({
|
|
28
24
|
children,
|
|
29
25
|
value,
|
|
30
26
|
}: PropsWithChildren<{
|
|
31
|
-
value: ThreadListItemContextValue
|
|
27
|
+
value: ThreadListItemContextValue;
|
|
32
28
|
}>) => (
|
|
33
29
|
<ThreadListItemContext.Provider value={value as unknown as ThreadListItemContextValue}>
|
|
34
30
|
{children}
|
|
35
31
|
</ThreadListItemContext.Provider>
|
|
36
32
|
);
|
|
37
33
|
|
|
38
|
-
export const useThreadListItemContext =
|
|
39
|
-
|
|
40
|
-
>() =>
|
|
41
|
-
useContext(ThreadListItemContext) as unknown as ThreadListItemContextValue<StreamChatGenerics>;
|
|
34
|
+
export const useThreadListItemContext = () =>
|
|
35
|
+
useContext(ThreadListItemContext) as unknown as ThreadListItemContextValue;
|
|
@@ -4,19 +4,16 @@ import { FlatListProps } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { Channel, Thread } from 'stream-chat';
|
|
6
6
|
|
|
7
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
8
7
|
import { ThreadType } from '../threadContext/ThreadContext';
|
|
9
8
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
10
9
|
|
|
11
10
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
12
11
|
|
|
13
|
-
export type ThreadsContextValue
|
|
14
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
15
|
-
> = {
|
|
12
|
+
export type ThreadsContextValue = {
|
|
16
13
|
isFocused: boolean;
|
|
17
14
|
isLoading: boolean;
|
|
18
15
|
isLoadingNext: boolean;
|
|
19
|
-
threads: Thread
|
|
16
|
+
threads: Thread[];
|
|
20
17
|
additionalFlatListProps?: Partial<FlatListProps<Thread>>;
|
|
21
18
|
loadMore?: () => Promise<void>;
|
|
22
19
|
onThreadSelect?: (thread: ThreadType, channel: Channel) => void;
|
|
@@ -31,30 +28,23 @@ export const ThreadsContext = React.createContext(
|
|
|
31
28
|
DEFAULT_BASE_CONTEXT_VALUE as ThreadsContextValue,
|
|
32
29
|
);
|
|
33
30
|
|
|
34
|
-
export const ThreadsProvider =
|
|
35
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
36
|
-
>({
|
|
31
|
+
export const ThreadsProvider = ({
|
|
37
32
|
children,
|
|
38
33
|
value,
|
|
39
34
|
}: PropsWithChildren<{
|
|
40
|
-
value: ThreadsContextValue
|
|
35
|
+
value: ThreadsContextValue;
|
|
41
36
|
}>) => (
|
|
42
37
|
<ThreadsContext.Provider value={value as unknown as ThreadsContextValue}>
|
|
43
38
|
{children}
|
|
44
39
|
</ThreadsContext.Provider>
|
|
45
40
|
);
|
|
46
41
|
|
|
47
|
-
export const useThreadsContext =
|
|
48
|
-
|
|
49
|
-
>() => {
|
|
50
|
-
const contextValue = useContext(
|
|
51
|
-
ThreadsContext,
|
|
52
|
-
) as unknown as ThreadsContextValue<StreamChatGenerics>;
|
|
42
|
+
export const useThreadsContext = () => {
|
|
43
|
+
const contextValue = useContext(ThreadsContext) as unknown as ThreadsContextValue;
|
|
53
44
|
|
|
54
45
|
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
|
|
55
46
|
throw new Error(
|
|
56
|
-
|
|
57
|
-
'The useThreadsContext hook was called outside of the ThreadsContext provider. Make sure you have configured the ThreadList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel',
|
|
47
|
+
'The useThreadsContext hook was called outside of the ThreadsContext provider. Make sure you have configured the ThreadList component correctly - https://getstream.io/chat/docs/sdk/react-native/ui-components/thread-list/',
|
|
58
48
|
);
|
|
59
49
|
}
|
|
60
50
|
|
|
@@ -2,38 +2,29 @@ import React, { PropsWithChildren, useContext } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import type { ChannelState } from 'stream-chat';
|
|
4
4
|
|
|
5
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
6
5
|
import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
|
|
7
6
|
|
|
8
7
|
import { isTestEnvironment } from '../utils/isTestEnvironment';
|
|
9
8
|
|
|
10
|
-
export type TypingContextValue
|
|
11
|
-
|
|
12
|
-
> = {
|
|
13
|
-
typing: ChannelState<StreamChatGenerics>['typing'];
|
|
9
|
+
export type TypingContextValue = {
|
|
10
|
+
typing: ChannelState['typing'];
|
|
14
11
|
};
|
|
15
12
|
|
|
16
13
|
export const TypingContext = React.createContext(DEFAULT_BASE_CONTEXT_VALUE as TypingContextValue);
|
|
17
14
|
|
|
18
|
-
export const TypingProvider =
|
|
19
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
20
|
-
>({
|
|
15
|
+
export const TypingProvider = ({
|
|
21
16
|
children,
|
|
22
17
|
value,
|
|
23
18
|
}: PropsWithChildren<{
|
|
24
|
-
value: TypingContextValue
|
|
19
|
+
value: TypingContextValue;
|
|
25
20
|
}>) => (
|
|
26
21
|
<TypingContext.Provider value={value as unknown as TypingContextValue}>
|
|
27
22
|
{children}
|
|
28
23
|
</TypingContext.Provider>
|
|
29
24
|
);
|
|
30
25
|
|
|
31
|
-
export const useTypingContext =
|
|
32
|
-
|
|
33
|
-
>() => {
|
|
34
|
-
const contextValue = useContext(
|
|
35
|
-
TypingContext,
|
|
36
|
-
) as unknown as TypingContextValue<StreamChatGenerics>;
|
|
26
|
+
export const useTypingContext = () => {
|
|
27
|
+
const contextValue = useContext(TypingContext) as unknown as TypingContextValue;
|
|
37
28
|
|
|
38
29
|
if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
|
|
39
30
|
throw new Error(
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import type { FormatMessageResponse, MessageResponse, TranslationLanguages } from 'stream-chat';
|
|
2
2
|
|
|
3
3
|
import { useTranslationContext } from '../contexts/translationContext/TranslationContext';
|
|
4
|
-
import type { DefaultStreamChatGenerics } from '../types/types';
|
|
5
4
|
|
|
6
5
|
type TranslationKey = `${TranslationLanguages}_text`;
|
|
7
6
|
|
|
8
|
-
export const useTranslatedMessage =
|
|
9
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
10
|
-
>(
|
|
11
|
-
message?: MessageResponse<StreamChatGenerics> | FormatMessageResponse<StreamChatGenerics>,
|
|
12
|
-
) => {
|
|
7
|
+
export const useTranslatedMessage = (message?: MessageResponse | FormatMessageResponse) => {
|
|
13
8
|
const { userLanguage: translationContextUserLanguage } = useTranslationContext();
|
|
14
9
|
|
|
15
10
|
const userLanguage = translationContextUserLanguage;
|
|
@@ -11,8 +11,6 @@ import {
|
|
|
11
11
|
ONE_MEMBER_WITH_EMPTY_USER_MOCK,
|
|
12
12
|
} from '../../mock-builders/api/queryMembers';
|
|
13
13
|
|
|
14
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
15
|
-
|
|
16
14
|
const channelName = 'okechukwu';
|
|
17
15
|
const CHANNEL = {
|
|
18
16
|
data: { name: channelName },
|
package/src/native.ts
CHANGED
|
@@ -288,6 +288,9 @@ export type VideoType = {
|
|
|
288
288
|
seek?: (progress: number) => void;
|
|
289
289
|
setPositionAsync?: (position: number) => void;
|
|
290
290
|
style?: StyleProp<ViewStyle>;
|
|
291
|
+
play?: () => void;
|
|
292
|
+
pause?: () => void;
|
|
293
|
+
replay?: () => void;
|
|
291
294
|
};
|
|
292
295
|
|
|
293
296
|
export let Video: React.ComponentType<VideoType>;
|
|
@@ -4,16 +4,13 @@ import { selectMessagesForChannels } from './queries/selectMessagesForChannels';
|
|
|
4
4
|
|
|
5
5
|
import { selectReactionsForMessages } from './queries/selectReactionsForMessages';
|
|
6
6
|
|
|
7
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
8
7
|
import { isBlockedMessage } from '../../utils/utils';
|
|
9
8
|
import { mapStorableToMessage } from '../mappers/mapStorableToMessage';
|
|
10
9
|
import { createSelectQuery } from '../sqlite-utils/createSelectQuery';
|
|
11
10
|
import { SqliteClient } from '../SqliteClient';
|
|
12
11
|
import type { TableRow, TableRowJoinedUser } from '../types';
|
|
13
12
|
|
|
14
|
-
export const getChannelMessages = async
|
|
15
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
16
|
-
>({
|
|
13
|
+
export const getChannelMessages = async ({
|
|
17
14
|
channelIds,
|
|
18
15
|
currentUserId,
|
|
19
16
|
}: {
|
|
@@ -53,7 +50,7 @@ export const getChannelMessages = async <
|
|
|
53
50
|
});
|
|
54
51
|
|
|
55
52
|
// Populate the messages.
|
|
56
|
-
const cidVsMessages: Record<string, MessageResponse
|
|
53
|
+
const cidVsMessages: Record<string, MessageResponse[]> = {};
|
|
57
54
|
messageRows.forEach((m) => {
|
|
58
55
|
if (!cidVsMessages[m.cid]) {
|
|
59
56
|
cidVsMessages[m.cid] = [];
|
|
@@ -61,7 +58,7 @@ export const getChannelMessages = async <
|
|
|
61
58
|
|
|
62
59
|
if (!isBlockedMessage(m)) {
|
|
63
60
|
cidVsMessages[m.cid].push(
|
|
64
|
-
mapStorableToMessage
|
|
61
|
+
mapStorableToMessage({
|
|
65
62
|
currentUserId,
|
|
66
63
|
messageRow: m,
|
|
67
64
|
pollRow: messageIdsVsPolls[m.poll_id],
|
|
@@ -5,7 +5,6 @@ import { getMembers } from './getMembers';
|
|
|
5
5
|
import { getReads } from './getReads';
|
|
6
6
|
import { selectChannels } from './queries/selectChannels';
|
|
7
7
|
|
|
8
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
9
8
|
import { mapStorableToChannel } from '../mappers/mapStorableToChannel';
|
|
10
9
|
import { SqliteClient } from '../SqliteClient';
|
|
11
10
|
|
|
@@ -18,28 +17,26 @@ import { SqliteClient } from '../SqliteClient';
|
|
|
18
17
|
*
|
|
19
18
|
* @returns {Array} Channels with enriched state.
|
|
20
19
|
*/
|
|
21
|
-
export const getChannels = async
|
|
22
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
23
|
-
>({
|
|
20
|
+
export const getChannels = async ({
|
|
24
21
|
channelIds,
|
|
25
22
|
currentUserId,
|
|
26
23
|
}: {
|
|
27
24
|
channelIds: string[];
|
|
28
25
|
currentUserId: string;
|
|
29
|
-
}): Promise<Omit<ChannelAPIResponse
|
|
26
|
+
}): Promise<Omit<ChannelAPIResponse, 'duration'>[]> => {
|
|
30
27
|
SqliteClient.logger?.('info', 'getChannels', { channelIds, currentUserId });
|
|
31
28
|
const channels = await selectChannels({ channelIds });
|
|
32
29
|
|
|
33
|
-
const cidVsMembers = await getMembers
|
|
34
|
-
const cidVsReads = await getReads
|
|
35
|
-
const cidVsMessages = await getChannelMessages
|
|
30
|
+
const cidVsMembers = await getMembers({ channelIds });
|
|
31
|
+
const cidVsReads = await getReads({ channelIds });
|
|
32
|
+
const cidVsMessages = await getChannelMessages({
|
|
36
33
|
channelIds,
|
|
37
34
|
currentUserId,
|
|
38
35
|
});
|
|
39
36
|
|
|
40
37
|
// Enrich the channels with state
|
|
41
38
|
return channels.map((c) => ({
|
|
42
|
-
...mapStorableToChannel
|
|
39
|
+
...mapStorableToChannel(c),
|
|
43
40
|
members: cidVsMembers[c.cid] || [],
|
|
44
41
|
messages: cidVsMessages[c.cid] || [],
|
|
45
42
|
pinned_messages: [],
|
|
@@ -3,8 +3,6 @@ import type { ChannelAPIResponse, ChannelFilters, ChannelSort } from 'stream-cha
|
|
|
3
3
|
import { getChannels } from './getChannels';
|
|
4
4
|
import { selectChannelIdsForFilterSort } from './queries/selectChannelIdsForFilterSort';
|
|
5
5
|
|
|
6
|
-
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
7
|
-
|
|
8
6
|
import { SqliteClient } from '../SqliteClient';
|
|
9
7
|
|
|
10
8
|
/**
|
|
@@ -17,17 +15,15 @@ import { SqliteClient } from '../SqliteClient';
|
|
|
17
15
|
*
|
|
18
16
|
* @returns Array of channels corresponding to filters & sort. Returns null if filters + sort query doesn't exist in "channelQueries" table.
|
|
19
17
|
*/
|
|
20
|
-
export const getChannelsForFilterSort = async
|
|
21
|
-
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
22
|
-
>({
|
|
18
|
+
export const getChannelsForFilterSort = async ({
|
|
23
19
|
currentUserId,
|
|
24
20
|
filters,
|
|
25
21
|
sort,
|
|
26
22
|
}: {
|
|
27
23
|
currentUserId: string;
|
|
28
|
-
filters?: ChannelFilters
|
|
29
|
-
sort?: ChannelSort
|
|
30
|
-
}): Promise<Omit<ChannelAPIResponse
|
|
24
|
+
filters?: ChannelFilters;
|
|
25
|
+
sort?: ChannelSort;
|
|
26
|
+
}): Promise<Omit<ChannelAPIResponse, 'duration'>[] | null> => {
|
|
31
27
|
if (!filters && !sort) {
|
|
32
28
|
console.warn('Please provide the query (filters/sort) to fetch channels from DB');
|
|
33
29
|
return null;
|