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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","moveChannelUp","exports","_ref","channels","channelToMove","channelToMoveIndexWithinChannels","sort","targetChannelIndex","findIndex","channel","cid","targetChannelExistsWithinList","targetChannelAlreadyAtTheTop","considerPinnedChannels","shouldConsiderPinnedChannels","newChannels","_toConsumableArray2","splice","lastPinnedChannelIndex","findLastPinnedChannelIndex","getChannel","_ref3","_asyncToGenerator2","_regenerator","mark","_callee","_ref2","client","id","type","wrap","_callee$","_context","prev","next","watch","abrupt","stop","_x","apply","arguments","DEFAULT_QUERY_CHANNELS_LIMIT","MAX_QUERY_CHANNELS_LIMIT"],"sourceRoot":"../../../../src","sources":["components/ChannelList/utils.ts"],"mappings":";;;;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_utils","require","moveChannelUp","exports","_ref","channels","channelToMove","channelToMoveIndexWithinChannels","sort","targetChannelIndex","findIndex","channel","cid","targetChannelExistsWithinList","targetChannelAlreadyAtTheTop","considerPinnedChannels","shouldConsiderPinnedChannels","newChannels","_toConsumableArray2","splice","lastPinnedChannelIndex","findLastPinnedChannelIndex","getChannel","_ref3","_asyncToGenerator2","_regenerator","mark","_callee","_ref2","client","id","type","wrap","_callee$","_context","prev","next","watch","abrupt","stop","_x","apply","arguments","DEFAULT_QUERY_CHANNELS_LIMIT","MAX_QUERY_CHANNELS_LIMIT"],"sourceRoot":"../../../../src","sources":["components/ChannelList/utils.ts"],"mappings":";;;;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAaO,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAAE,IAAA,EAKJ;EAAA,IAJpBC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,gCAAgC,GAAAH,IAAA,CAAhCG,gCAAgC;IAChCC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;EAGJ,IAAMC,kBAAkB,GACtBF,gCAAgC,WAAhCA,gCAAgC,GAChCF,QAAQ,CAACK,SAAS,CAAC,UAACC,OAAO;IAAA,OAAKA,OAAO,CAACC,GAAG,KAAKN,aAAa,CAACM,GAAG;EAAA,EAAC;EAEpE,IAAMC,6BAA6B,GAAGJ,kBAAkB,IAAI,CAAC;EAC7D,IAAMK,4BAA4B,GAAGL,kBAAkB,KAAK,CAAC;EAK7D,IAAMM,sBAAsB,GAAG,IAAAC,mCAA4B,EAACR,IAAI,CAAC;EAEjE,IAAIM,4BAA4B,EAAE;IAChC,OAAOT,QAAQ;EACjB;EAEA,IAAMY,WAAW,OAAAC,mBAAA,aAAOb,QAAQ,CAAC;EAGjC,IAAIQ,6BAA6B,EAAE;IACjCI,WAAW,CAACE,MAAM,CAACV,kBAAkB,EAAE,CAAC,CAAC;EAC3C;EAIA,IAA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,GAAG,EAAE","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_useChannelPreviewDisplayAvatar","_useChannelPreviewDisplayPresence","_ChatContext","_ThemeContext","_Avatar","_GroupAvatar","_jsxRuntime","_this","_jsxFileName","ChannelAvatarWithContext","exports","props","channel","ImageComponent","propSize","size","_useTheme","useTheme","themeSize","theme","channelPreview","avatar","displayAvatar","useChannelPreviewDisplayAvatar","displayPresence","useChannelPreviewDisplayPresence","images","jsx","GroupAvatar","names","Avatar","image","name","online","ChannelAvatar","_useChatContext","useChatContext","Object","assign"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelAvatar.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,+BAAA,GAAAD,OAAA;AACA,IAAAE,iCAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAAoD,IAAAO,WAAA,GAAAP,OAAA;AAAA,IAAAQ,KAAA;EAAAC,YAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_useChannelPreviewDisplayAvatar","_useChannelPreviewDisplayPresence","_ChatContext","_ThemeContext","_Avatar","_GroupAvatar","_jsxRuntime","_this","_jsxFileName","ChannelAvatarWithContext","exports","props","channel","ImageComponent","propSize","size","_useTheme","useTheme","themeSize","theme","channelPreview","avatar","displayAvatar","useChannelPreviewDisplayAvatar","displayPresence","useChannelPreviewDisplayPresence","images","jsx","GroupAvatar","names","Avatar","image","name","online","ChannelAvatar","_useChatContext","useChatContext","Object","assign"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelAvatar.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,+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BT,IAAI,EAAEA;EAAK,CACZ,CAAC;AAEN,CAAC;AAEM,IAAMmB,aAAa,GAAAxB,OAAA,CAAAwB,aAAA,GAAG,SAAhBA,aAAaA,CAAIvB,KAAyB,EAAK;EAC1D,IAAAwB,eAAA,GAA2B,IAAAC,2BAAc,EAAC,CAAC;IAAnCvB,cAAc,GAAAsB,eAAA,CAAdtB,cAAc;EAEtB,OAAO,IAAAP,WAAA,CAAAqB,GAAA,EAAClB,wBAAwB,EAAA4B,MAAA,CAAAC,MAAA,KAAK3B,KAAK;IAAEE,cAAc,EAAEA;EAAe,EAAE,CAAC;AAChF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_useChannelPreviewData","_ChannelsContext","_ChatContext","_jsxRuntime","_this","_jsxFileName","ChannelPreview","exports","props","channel","propClient","client","propForceUpdate","forceUpdate","propPreview","Preview","_useChatContext","useChatContext","contextClient","_useChannelsContext","useChannelsContext","contextPreview","_useChannelPreviewDat","useChannelPreviewData","latestMessagePreview","muted","unread","jsx"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreview.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,sBAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAIA,IAAAG,YAAA,GAAAH,OAAA;AAA0F,IAAAI,WAAA,GAAAJ,OAAA;AAAA,IAAAK,KAAA;EAAAC,YAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_useChannelPreviewData","_ChannelsContext","_ChatContext","_jsxRuntime","_this","_jsxFileName","ChannelPreview","exports","props","channel","propClient","client","propForceUpdate","forceUpdate","propPreview","Preview","_useChatContext","useChatContext","contextClient","_useChannelsContext","useChannelsContext","contextPreview","_useChannelPreviewDat","useChannelPreviewData","latestMessagePreview","muted","unread","jsx"],"sourceRoot":"../../../../src","sources":["components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-1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_jsxRuntime","_this","_jsxFileName","styles","StyleSheet","create","bold","fontWeight","message","flexShrink","fontSize","ChannelPreviewMessage","exports","props","_latestMessagePreview","latestMessagePreview","_useTheme","useTheme","_useTheme$theme","theme","channelPreview","grey","colors","jsx","Text","numberOfLines","style","color","children","previews","map","preview","index","text","concat"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewMessage.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,WAAA,GAAAH,OAAA;AAAA,IAAAI,KAAA;EAAAC,YAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_jsxRuntime","_this","_jsxFileName","styles","StyleSheet","create","bold","fontWeight","message","flexShrink","fontSize","ChannelPreviewMessage","exports","props","_latestMessagePreview","latestMessagePreview","_useTheme","useTheme","_useTheme$theme","theme","channelPreview","grey","colors","jsx","Text","numberOfLines","style","color","children","previews","map","preview","index","text","concat"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewMessage.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,WAAA,GAAAH,OAAA;AAAA,IAAAI,KAAA;EAAAC,YAAA;AAEpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,IAAI,EAAE;IAAEC,UAAU,EAAE;EAAM,CAAC;EAC3BC,OAAO,EAAE;IACPC,UAAU,EAAE,CAAC;IACbC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AASK,IAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,SAAxBA,qBAAqBA,CAAIE,KAAiC,EAAK;EAAA,IAAAC,qBAAA;EAC1E,IAAQC,oBAAoB,GAAKF,KAAK,CAA9BE,oBAAoB;EAE5B,IAAAC,SAAA,GAKI,IAAAC,sBAAQ,EAAC,CAAC;IAAAC,eAAA,GAAAF,SAAA,CAJZG,KAAK;IACeX,OAAO,GAAAU,eAAA,CAAzBE,cAAc,CAAIZ,OAAO;IACfa,IAAI,GAAAH,eAAA,CAAdI,MAAM,CAAID,IAAI;EAIlB,OACE,IAAArB,WAAA,CAAAuB,GAAA,EAACzB,YAAA,CAAA0B,IAAI;IAACC,aAAa,EAAE,CAAE;IAACC,KAAK,EAAE,CAACvB,MAAM,CAACK,OAAO,EAAE;MAAEmB,KAAK,EAAEN;IAAK,CAAC,EAAEb,OAAO,CAAE;IAAAoB,QAAA,EACvEb,oBAAoB,aAAAD,qBAAA,GAApBC,oBAAoB,CAAEc,QAAQ,qBAA9Bf,qBAAA,CAAgCgB,GAAG,CAClC,UAACC,OAAO,EAAEC,KAAK;MAAA,OACbD,OAAO,CAACE,IAAI,IACV,IAAAjC,WAAA,CAAAuB,GAAA,EAACzB,YAAA,CAAA0B,IAAI;QAEHE,KAAK,EAAE,CAAC;UAAEC,KAAK,EAAEN;QAAK,CAAC,EAAEU,OAAO,CAACzB,IAAI,GAAGH,MAAM,CAACG,IAAI,GAAG,CAAC,CAAC,EAAEE,OAAO,CAAE;QAAAoB,QAAA,EAElEG,OAAO,CAACE;MAAI,MAAAC,MAAA,CAHLH,OAAO,CAACE,IAAI,OAAAC,MAAA,CAAIF,KAAK,CAIzB,CACP;IAAA,CACL;EAAC,CACG,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeGestureHandler","_ChannelAvatar","_ChannelPreviewMessage","_ChannelPreviewMutedStatus","_ChannelPreviewStatus","_ChannelPreviewTitle","_ChannelPreviewUnreadCount","_useChannelPreviewDisplayName","_ChannelsContext","_ThemeContext","_useViewport2","_jsxRuntime","_this","_jsxFileName","styles","StyleSheet","create","container","borderBottomWidth","flex","flexDirection","paddingHorizontal","paddingVertical","contentContainer","row","alignItems","justifyContent","paddingLeft","statusContainer","display","title","fontSize","fontWeight","ChannelPreviewMessengerWithContext","props","channel","formatLatestMessageDate","latestMessagePreview","maxUnreadCount","muted","onSelect","_props$PreviewAvatar","PreviewAvatar","ChannelAvatar","_props$PreviewMessage","PreviewMessage","ChannelPreviewMessage","_props$PreviewMutedSt","PreviewMutedStatus","ChannelPreviewMutedStatus","_props$PreviewStatus","PreviewStatus","ChannelPreviewStatus","_props$PreviewTitle","PreviewTitle","ChannelPreviewTitle","_props$PreviewUnreadC","PreviewUnreadCount","ChannelPreviewUnreadCount","unread","_useViewport","useViewport","vw","maxWidth","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","_useTheme$theme$color","colors","border","white_snow","displayName","useChannelPreviewDisplayName","Math","floor","jsxs","TouchableOpacity","onPress","style","backgroundColor","borderBottomColor","testID","children","jsx","View","concat","id","MemoizedChannelPreviewMessengerWithContext","React","memo","ChannelPreviewMessenger","exports","_useChannelsContext","useChannelsContext","forceUpdate","Object","assign"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewMessenger.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AACA,IAAAQ,0BAAA,GAAAR,OAAA;AACA,IAAAS,6BAAA,GAAAT,OAAA;AAIA,IAAAU,gBAAA,GAAAV,OAAA;AAIA,IAAAW,aAAA,GAAAX,OAAA;AACA,IAAAY,aAAA,GAAAZ,OAAA;AAAsD,IAAAa,WAAA,GAAAb,OAAA;AAAA,IAAAc,KAAA;EAAAC,YAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeGestureHandler","_ChannelAvatar","_ChannelPreviewMessage","_ChannelPreviewMutedStatus","_ChannelPreviewStatus","_ChannelPreviewTitle","_ChannelPreviewUnreadCount","_useChannelPreviewDisplayName","_ChannelsContext","_ThemeContext","_useViewport2","_jsxRuntime","_this","_jsxFileName","styles","StyleSheet","create","container","borderBottomWidth","flex","flexDirection","paddingHorizontal","paddingVertical","contentContainer","row","alignItems","justifyContent","paddingLeft","statusContainer","display","title","fontSize","fontWeight","ChannelPreviewMessengerWithContext","props","channel","formatLatestMessageDate","latestMessagePreview","maxUnreadCount","muted","onSelect","_props$PreviewAvatar","PreviewAvatar","ChannelAvatar","_props$PreviewMessage","PreviewMessage","ChannelPreviewMessage","_props$PreviewMutedSt","PreviewMutedStatus","ChannelPreviewMutedStatus","_props$PreviewStatus","PreviewStatus","ChannelPreviewStatus","_props$PreviewTitle","PreviewTitle","ChannelPreviewTitle","_props$PreviewUnreadC","PreviewUnreadCount","ChannelPreviewUnreadCount","unread","_useViewport","useViewport","vw","maxWidth","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","_useTheme$theme$color","colors","border","white_snow","displayName","useChannelPreviewDisplayName","Math","floor","jsxs","TouchableOpacity","onPress","style","backgroundColor","borderBottomColor","testID","children","jsx","View","concat","id","MemoizedChannelPreviewMessengerWithContext","React","memo","ChannelPreviewMessenger","exports","_useChannelsContext","useChannelsContext","forceUpdate","Object","assign"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewMessenger.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAA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D,aAAa;IACbG,cAAc,GAAAkD,mBAAA,CAAdlD,cAAc;IACdG,kBAAkB,GAAA+C,mBAAA,CAAlB/C,kBAAkB;IAClBG,aAAa,GAAA4C,mBAAA,CAAb5C,aAAa;IACbG,YAAY,GAAAyC,mBAAA,CAAZzC,YAAY;IACZG,kBAAkB,GAAAsC,mBAAA,CAAlBtC,kBAAkB;EAEpB,OACE,IAAA9C,WAAA,CAAA2E,GAAA,EAACI,0CAA0C,EAAAQ,MAAA,CAAAC,MAAA;IAEvCF,WAAW,EAAXA,WAAW;IACX3D,cAAc,EAAdA,cAAc;IACdE,QAAQ,EAARA,QAAQ;IACRE,aAAa,EAAbA,aAAa;IACbG,cAAc,EAAdA,cAAc;IACdG,kBAAkB,EAAlBA,kBAAkB;IAClBG,aAAa,EAAbA,aAAa;IACbG,YAAY,EAAZA,YAAY;IACZG,kBAAkB,EAAlBA;EAAkB,GAEhBvB,KAAK,CACV,CAAC;AAEN,CAAC;AAED2D,uBAAuB,CAACnB,WAAW,GAAG,yCAAyC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useLatestMessagePreview","_ThemeContext","_TranslationContext","_icons","_getDateString","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","styles","StyleSheet","create","date","fontSize","marginLeft","textAlign","flexRow","flexDirection","ChannelPreviewStatus","exports","props","_latestMessagePreview","formatLatestMessageDate","latestMessagePreview","_useTranslationContex","useTranslationContext","tDateTimeParser","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","checkAllIcon","checkIcon","_useTheme$theme$color","colors","accent_blue","grey","created_at","messageObject","latestMessageDate","Date","formattedDate","useMemo","getDateString","timestampTranslationKey","status","jsxs","View","style","children","MessageReadStatus","READ","jsx","CheckAll","assign","pathFill","UNREAD","Check","Text","color","toString"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewStatus.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useLatestMessagePreview","_ThemeContext","_TranslationContext","_icons","_getDateString","_jsxRuntime","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","styles","StyleSheet","create","date","fontSize","marginLeft","textAlign","flexRow","flexDirection","ChannelPreviewStatus","exports","props","_latestMessagePreview","formatLatestMessageDate","latestMessagePreview","_useTranslationContex","useTranslationContext","tDateTimeParser","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","checkAllIcon","checkIcon","_useTheme$theme$color","colors","accent_blue","grey","created_at","messageObject","latestMessageDate","Date","formattedDate","useMemo","getDateString","timestampTranslationKey","status","jsxs","View","style","children","MessageReadStatus","READ","jsx","CheckAll","assign","pathFill","UNREAD","Check","Text","color","toString"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewStatus.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAEA,IAAAM,cAAA,GAAAN,OAAA;AAA+D,IAAAO,WAAA,GAAAP,OAAA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ACP,UAAU,EAAE9C,CAAC,EAAEiC,eAAe,CACjC,CAAC;EACD,IAAMqB,MAAM,GAAGxB,oBAAoB,CAACwB,MAAM;EAE1C,OACE,IAAA7D,WAAA,CAAA8D,IAAA,EAACpE,YAAA,CAAAqE,IAAI;IAACC,KAAK,EAAEzC,MAAM,CAACO,OAAQ;IAAAmC,QAAA,GACzBJ,MAAM,KAAKK,0CAAiB,CAACC,IAAI,GAChC,IAAAnE,WAAA,CAAAoE,GAAA,EAACtE,MAAA,CAAAuE,QAAQ,EAAAtD,MAAA,CAAAuD,MAAA;MAACC,QAAQ,EAAEpB;IAAY,GAAKJ,YAAY,CAAG,CAAC,GACnDc,MAAM,KAAKK,0CAAiB,CAACM,MAAM,GACrC,IAAAxE,WAAA,CAAAoE,GAAA,EAACtE,MAAA,CAAA2E,KAAK,EAAA1D,MAAA,CAAAuD,MAAA;MAACC,QAAQ,EAAEnB;IAAK,GAAKJ,SAAS,CAAG,CAAC,GACtC,IAAI,EACR,IAAAhD,WAAA,CAAAoE,GAAA,EAAC1E,YAAA,CAAAgF,IAAI;MAACV,KAAK,EAAE,CAACzC,MAAM,CAACG,IAAI,EAAE;QAAEiD,KAAK,EAAEvB;MAAK,CAAC,EAAE1B,IAAI,CAAE;MAAAuC,QAAA,EAC/C7B,uBAAuB,IAAImB,iBAAiB,GACzCnB,uBAAuB,CAACmB,iBAAiB,CAAC,CAACqB,QAAQ,CAAC,CAAC,GACrDnB;IAAa,CACb,CAAC;EAAA,CACH,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_jsxRuntime","_this","_jsxFileName","styles","StyleSheet","create","title","fontSize","fontWeight","ChannelPreviewTitle","exports","props","displayName","_useTheme","useTheme","_useTheme$theme","theme","channelPreview","black","colors","jsx","Text","numberOfLines","style","color","children"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewTitle.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,WAAA,GAAAH,OAAA;AAAA,IAAAI,KAAA;EAAAC,YAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_jsxRuntime","_this","_jsxFileName","styles","StyleSheet","create","title","fontSize","fontWeight","ChannelPreviewTitle","exports","props","displayName","_useTheme","useTheme","_useTheme$theme","theme","channelPreview","black","colors","jsx","Text","numberOfLines","style","color","children"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewTitle.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,WAAA,GAAAH,OAAA;AAAA,IAAAI,KAAA;EAAAC,YAAA;AAEpE,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,KAAK,EAAE;IAAEC,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE;EAAM;AAC3C,CAAC,CAAC;AASK,IAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAIE,KAA+B,EAAK;EACtE,IAAQC,WAAW,GAAKD,KAAK,CAArBC,WAAW;EACnB,IAAAC,SAAA,GAKI,IAAAC,sBAAQ,EAAC,CAAC;IAAAC,eAAA,GAAAF,SAAA,CAJZG,KAAK;IACeV,KAAK,GAAAS,eAAA,CAAvBE,cAAc,CAAIX,KAAK;IACbY,KAAK,GAAAH,eAAA,CAAfI,MAAM,CAAID,KAAK;EAInB,OACE,IAAAlB,WAAA,CAAAoB,GAAA,EAACtB,YAAA,CAAAuB,IAAI;IAACC,aAAa,EAAE,CAAE;IAACC,KAAK,EAAE,CAACpB,MAAM,CAACG,KAAK,EAAE;MAAEkB,KAAK,EAAEN;IAAM,CAAC,EAAEZ,KAAK,CAAE;IAAAmB,QAAA,EACpEb;EAAW,CACR,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_jsxRuntime","_this","_jsxFileName","ChannelPreviewUnreadCount","exports","props","maxUnreadCount","unread","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","unreadContainer","unreadText","accent_red","colors","jsx","View","style","styles","backgroundColor","children","Text","numberOfLines","concat","StyleSheet","create","alignItems","borderRadius","flexShrink","justifyContent","color","fontSize","fontWeight","paddingHorizontal","paddingVertical"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewUnreadCount.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAAG,WAAA,GAAAH,OAAA;AAAA,IAAAI,KAAA;EAAAC,YAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ThemeContext","_jsxRuntime","_this","_jsxFileName","ChannelPreviewUnreadCount","exports","props","maxUnreadCount","unread","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","unreadContainer","unreadText","accent_red","colors","jsx","View","style","styles","backgroundColor","children","Text","numberOfLines","concat","StyleSheet","create","alignItems","borderRadius","flexShrink","justifyContent","color","fontSize","fontWeight","paddingHorizontal","paddingVertical"],"sourceRoot":"../../../../src","sources":["components/ChannelPreview/ChannelPreviewUnreadCount.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,aAAA,GAAAF,OAAA;AAAoE,IAAA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C,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,iBAAiB,EAAE,CAAC;IACpBC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_throttle","_interopRequireDefault","_useIsChannelMuted2","_useLatestMessagePreview","_contexts","useChannelPreviewData","exports","channel","client","forceUpdateOverride","_useState","useState","_useState2","_slicedToArray2","forceUpdate","setForceUpdate","_useState3","state","messages","length","_useState4","lastMessage","setLastMessage","_useState5","countUnread","_useState6","unread","setUnread","_useIsChannelMuted","useIsChannelMuted","muted","_useChannelsContext","useChannelsContext","contextForceUpdate","channelListForceUpdate","channelLastMessage","channelLastMessageString","concat","id","updated_at","useEffect","_client$on","on","unsubscribe","newUnreadCount","handleReadEvent","event","_event$user","_event$user2","cid","user","userID","prev","_client$on2","handleUnreadEvent","_event$user3","_client$user","_client$on3","refreshUnreadCount","useMemo","throttle","handleEvent","latestMessages","handleNewMessageEvent","message","parent_id","show_in_channel","handleUpdatedOrDeletedMessage","prevLastMessage","_event$message","listeners","forEach","l","latestMessagePreview","useLatestMessagePreview"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useChannelPreviewData.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,wBAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_throttle","_interopRequireDefault","_useIsChannelMuted2","_useLatestMessagePreview","_contexts","useChannelPreviewData","exports","channel","client","forceUpdateOverride","_useState","useState","_useState2","_slicedToArray2","forceUpdate","setForceUpdate","_useState3","state","messages","length","_useState4","lastMessage","setLastMessage","_useState5","countUnread","_useState6","unread","setUnread","_useIsChannelMuted","useIsChannelMuted","muted","_useChannelsContext","useChannelsContext","contextForceUpdate","channelListForceUpdate","channelLastMessage","channelLastMessageString","concat","id","updated_at","useEffect","_client$on","on","unsubscribe","newUnreadCount","handleReadEvent","event","_event$user","_event$user2","cid","user","userID","prev","_client$on2","handleUnreadEvent","_event$user3","_client$user","_client$on3","refreshUnreadCount","useMemo","throttle","handleEvent","latestMessages","handleNewMessageEvent","message","parent_id","show_in_channel","handleUpdatedOrDeletedMessage","prevLastMessage","_event$message","listeners","forEach","l","latestMessagePreview","useLatestMessagePreview"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useChannelPreviewData.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAAI,wBAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AAEO,IAAMM,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,SAAxBA,qBAAqBA,CAChCE,OAAgB,EAChBC,MAAkB,EAClBC,mBAA4B,EACzB;EACH,IAAAC,SAAA,GAAsC,IAAAC,eAAQ,EAAC,CAAC,CAAC;IAAAC,UAAA,OAAAC,eAAA,aAAAH,SAAA;IAA1CI,WAAW,GAAAF,UAAA;IAAEG,cAAc,GAAAH,UAAA;EAClC,IAAAI,UAAA,GAAsC,IAAAL,eAAQ,EAE5CJ,OAAO,CAACU,KAAK,CAACC,QAAQ,CAACX,OAAO,CAACU,KAAK,CAACC,QAAQ,CAACC,MAAM,GAAG,CAAC,CAAC,CAAC;IAAAC,UAAA,OAAAP,eAAA,aAAAG,UAAA;IAFrDK,WAAW,GAAAD,UAAA;IAAEE,cAAc,GAAAF,UAAA;EAGlC,IAAAG,UAAA,GAA4B,IAAAZ,eAAQ,EAACJ,OAAO,CAACiB,WAAW,CAAC,CAAC,CAAC;IAAAC,UAAA,OAAAZ,eAAA,aAAAU,UAA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BAA6B,GAAG,SAAhCA,6BAA6BA,CAAIrB,KAAY,EAAK;MACtDxB,cAAc,CAAC,UAAC8C,eAAe,EAAK;QAAA,IAAAC,cAAA;QAClC,IAAI,CAAAD,eAAe,oBAAfA,eAAe,CAAE9B,EAAE,QAAA+B,cAAA,GAAKvB,KAAK,CAACkB,OAAO,qBAAbK,cAAA,CAAe/B,EAAE,GAAE;UAC7C,OAAOQ,KAAK,CAACkB,OAAO;QACtB;QACA,OAAOI,eAAe;MACxB,CAAC,CAAC;IACJ,CAAC;IAED,IAAME,SAAS,GAAG,CAChB/D,OAAO,CAACmC,EAAE,CAAC,aAAa,EAAEqB,qBAAqB,CAAC,EAChDxD,OAAO,CAACmC,EAAE,CAAC,iBAAiB,EAAEyB,6BAA6B,CAAC,EAC5D5D,OAAO,CAACmC,EAAE,CAAC,iBAAiB,EAAEyB,6BAA6B,CAAC,EAC5D5D,OAAO,CAACmC,EAAE,CAAC,mBAAmB,EAAEmB,WAAW,CAAC,EAC5CtD,OAAO,CAACmC,EAAE,CAAC,mBAAmB,EAAEmB,WAAW,CAAC,CAC7C;IAED,OAAO;MAAA,OAAMS,SAAS,CAACC,OAAO,CAAC,UAACC,CAAC;QAAA,OAAKA,CAAC,CAAC7B,WAAW,CAAC,CAAC;MAAA,EAAC;IAAA;EACxD,CAAC,EAAE,CAACpC,OAAO,EAAEmD,kBAAkB,EAAE5C,WAAW,EAAEoB,sBAAsB,CAAC,CAAC;EAEtE,IAAMuC,oBAAoB,GAAG,IAAAC,gDAAuB,EAACnE,OAAO,EAAEO,WAAW,EAAEO,WAAW,CAAC;EAEvF,OAAO;IAAEoD,oBAAoB,EAApBA,oBAAoB;IAAE3C,KAAK,EAALA,KAAK;IAAEJ,MAAM,EAANA;EAAO,CAAC;AAChD,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
1
2
|
Object.defineProperty(exports, "__esModule", {
|
|
2
3
|
value: true
|
|
3
4
|
});
|
|
4
5
|
exports.useChannelPreviewDisplayAvatar = exports.getChannelPreviewDisplayAvatar = void 0;
|
|
6
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
5
7
|
var _react = require("react");
|
|
6
8
|
var _ChatContext = require("../../../contexts/chatContext/ChatContext");
|
|
7
9
|
var getChannelPreviewDisplayAvatar = exports.getChannelPreviewDisplayAvatar = function getChannelPreviewDisplayAvatar(channel, client) {
|
|
@@ -53,11 +55,20 @@ var getChannelPreviewDisplayAvatar = exports.getChannelPreviewDisplayAvatar = fu
|
|
|
53
55
|
};
|
|
54
56
|
};
|
|
55
57
|
var useChannelPreviewDisplayAvatar = exports.useChannelPreviewDisplayAvatar = function useChannelPreviewDisplayAvatar(channel) {
|
|
58
|
+
var _client$user2;
|
|
56
59
|
var _useChatContext = (0, _ChatContext.useChatContext)(),
|
|
57
60
|
client = _useChatContext.client;
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
var channelData = channel == null ? void 0 : channel.data;
|
|
62
|
+
var image = channelData == null ? void 0 : channelData.image;
|
|
63
|
+
var name = channelData == null ? void 0 : channelData.name;
|
|
64
|
+
var id = client == null || (_client$user2 = client.user) == null ? void 0 : _client$user2.id;
|
|
65
|
+
var _useState = (0, _react.useState)(getChannelPreviewDisplayAvatar(channel, client)),
|
|
66
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
67
|
+
displayAvatar = _useState2[0],
|
|
68
|
+
setDisplayAvatar = _useState2[1];
|
|
69
|
+
(0, _react.useEffect)(function () {
|
|
70
|
+
setDisplayAvatar(getChannelPreviewDisplayAvatar(channel, client));
|
|
71
|
+
}, [id, image, name]);
|
|
61
72
|
return displayAvatar;
|
|
62
73
|
};
|
|
63
74
|
//# sourceMappingURL=useChannelPreviewDisplayAvatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_ChatContext","getChannelPreviewDisplayAvatar","exports","channel","client","_client$user","currentUserId","user","id","channelId","channelData","data","channelName","name","channelImage","image","_channel$state","members","Object","values","state","otherMembers","filter","member","_member$user","length","_otherMembers$0$user","_otherMembers$0$user2","_otherMembers$0$user3","ids","slice","map","_member$user2","images","_member$user3","names","_member$user4","useChannelPreviewDisplayAvatar","_useChatContext","useChatContext","displayAvatar","
|
|
1
|
+
{"version":3,"names":["_react","require","_ChatContext","getChannelPreviewDisplayAvatar","exports","channel","client","_client$user","currentUserId","user","id","channelId","channelData","data","channelName","name","channelImage","image","_channel$state","members","Object","values","state","otherMembers","filter","member","_member$user","length","_otherMembers$0$user","_otherMembers$0$user2","_otherMembers$0$user3","ids","slice","map","_member$user2","images","_member$user3","names","_member$user4","useChannelPreviewDisplayAvatar","_client$user2","_useChatContext","useChatContext","_useState","useState","_useState2","_slicedToArray2","displayAvatar","setDisplayAvatar","useEffect"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAEO,IAAME,8BAA8B,GAAAC,OAAA,CAAAD,8BAAA,GAAG,SAAjCA,8BAA8BA,CAAIE,OAAgB,EAAEC,MAAkB,EAAK;EAAA,IAAAC,YAAA;EACtF,IAAMC,aAAa,GAAGF,MAAM,aAAAC,YAAA,GAAND,MAAM,CAAEG,IAAI,qBAAZF,YAAA,CAAcG,EAAE;EACtC,IAAMC,SAAS,GAAGN,OAAO,oBAAPA,OAAO,CAAEK,EAAE;EAC7B,IAAME,WAAW,GAAGP,OAAO,oBAAPA,OAAO,CAAEQ,IAAI;EACjC,IAAMC,WAAW,GAAGF,WAAW,oBAAXA,WAAW,CAAEG,IAAI;EACrC,IAAMC,YAAY,GAAGJ,WAAW,oBAAXA,WAAW,CAAEK,KAAK;EAEvC,IAAID,YAAY,EAAE;IAChB,OAAO;MAC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EnE,CAAC,EAAE,CAACI,EAAE,EAAEO,KAAK,EAAEF,IAAI,CAAC,CAAC;EAErB,OAAOgC,aAAa;AACtB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
1
2
|
Object.defineProperty(exports, "__esModule", {
|
|
2
3
|
value: true
|
|
3
4
|
});
|
|
4
5
|
exports.useChannelPreviewDisplayName = exports.getChannelPreviewDisplayName = void 0;
|
|
6
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
5
7
|
var _react = require("react");
|
|
6
8
|
var _ChatContext = require("../../../contexts/chatContext/ChatContext");
|
|
7
9
|
var _useViewport2 = require("../../../hooks/useViewport");
|
|
@@ -16,7 +18,7 @@ var getChannelPreviewDisplayName = exports.getChannelPreviewDisplayName = functi
|
|
|
16
18
|
currentUserId = _ref.currentUserId,
|
|
17
19
|
members = _ref.members;
|
|
18
20
|
if (channelName) {
|
|
19
|
-
return channelName
|
|
21
|
+
return channelName;
|
|
20
22
|
}
|
|
21
23
|
var channelMembers = Object.values(members || {});
|
|
22
24
|
var otherMembers = channelMembers.filter(function (member) {
|
|
@@ -58,20 +60,29 @@ var useChannelPreviewDisplayName = exports.useChannelPreviewDisplayName = functi
|
|
|
58
60
|
client = _useChatContext.client;
|
|
59
61
|
var _useViewport = (0, _useViewport2.useViewport)(),
|
|
60
62
|
vw = _useViewport.vw;
|
|
61
|
-
var DEFAULT_MAX_CHARACTER_LENGTH =
|
|
63
|
+
var DEFAULT_MAX_CHARACTER_LENGTH = (vw(100) - 16) / 6;
|
|
62
64
|
var currentUserId = client == null ? void 0 : client.userID;
|
|
63
65
|
var members = channel == null || (_channel$state = channel.state) == null ? void 0 : _channel$state.members;
|
|
66
|
+
var numOfMembers = Object.keys(members || {}).length;
|
|
64
67
|
var channelName = channel == null || (_channel$data = channel.data) == null ? void 0 : _channel$data.name;
|
|
65
68
|
var characterLimit = characterLength || DEFAULT_MAX_CHARACTER_LENGTH;
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
var _useState = (0, _react.useState)(getChannelPreviewDisplayName({
|
|
70
|
+
channelName: channelName,
|
|
71
|
+
characterLimit: characterLimit,
|
|
72
|
+
currentUserId: currentUserId,
|
|
73
|
+
members: members
|
|
74
|
+
})),
|
|
75
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
76
|
+
displayName = _useState2[0],
|
|
77
|
+
setDisplayName = _useState2[1];
|
|
78
|
+
(0, _react.useEffect)(function () {
|
|
79
|
+
setDisplayName(getChannelPreviewDisplayName({
|
|
69
80
|
channelName: channelName,
|
|
70
81
|
characterLimit: characterLimit,
|
|
71
82
|
currentUserId: currentUserId,
|
|
72
83
|
members: members
|
|
73
|
-
});
|
|
74
|
-
}, [channelName,
|
|
84
|
+
}));
|
|
85
|
+
}, [channelName, currentUserId, characterLimit, numOfMembers]);
|
|
75
86
|
return displayName;
|
|
76
87
|
};
|
|
77
88
|
//# sourceMappingURL=useChannelPreviewDisplayName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_ChatContext","_useViewport2","ELLIPSIS","getMemberName","member","_member$user","_member$user2","user","name","id","getChannelPreviewDisplayName","exports","_ref","channelName","characterLimit","currentUserId","members","
|
|
1
|
+
{"version":3,"names":["_react","require","_ChatContext","_useViewport2","ELLIPSIS","getMemberName","member","_member$user","_member$user2","user","name","id","getChannelPreviewDisplayName","exports","_ref","channelName","characterLimit","currentUserId","members","channelMembers","Object","values","otherMembers","filter","_member$user3","sort","prevUser","nextUser","_prevUser$user$name","_prevUser$user","_nextUser$user$name","_nextUser$user","toLowerCase","localeCompare","toLocaleUpperCase","createChannelNameSuffix","remainingNumberOfMembers","concat","length","slice","reduce","result","currentMember","index","originalArray","currentMemberName","resultHasSpaceForCurrentMemberName","truncateLimit","tuncatedCurrentMemberName","channelNameSuffix","useChannelPreviewDisplayName","channel","characterLength","_channel$state","_channel$data","_useChatContext","useChatContext","client","_useViewport","useViewport","vw","DEFAULT_MAX_CHARACTER_LENGTH","userID","state","numOfMembers","keys","data","_useState","useState","_useState2","_slicedToArray2","displayName","setDisplayName","useEffect"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAMG,QAAQ,GAAG,KAAK;AAEtB,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAA6B;EAAA,IAAAC,YAAA,EAAAC,aAAA;EAAA,OAClD,EAAAD,YAAA,GAAAD,MAAM,CAACG,IAAI,qBAAXF,YAAA,CAAaG,IAAI,OAAAF,aAAA,GAAIF,MAAM,CAACG,IAAI,qBAAXD,aAAA,CAAaG,EAAE,KAAI,cAAc;AAAA;AAEjD,IAAMC,4BAA4B,GAAAC,OAAA,CAAAD,4BAAA,GAAG,SAA/BA,4BAA4BA,CAAAE,IAAA,EAU3B;EAAA,IATZC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IACXC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACdC,aAAa,GAAAH,IAAA,CAAbG,aAAa;IACbC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;EAOP,IAAIH,WAAW,EAAE;IACf,OAAOA,WAAW;EACpB;EAEA,IAAMI,cAAc,GAAGC,MAAM,CAACC,MAAM,CAACH,OAAO,IAAI,CAAC,CAAC,CAAC;EAEnD,IAAMI,YAAY,GAAGH,cAAc,CAACI,MAAM,CAAC,UAACjB,MAAM;IAAA,IAAAkB,aAAA;IAAA,OAAK,EAAAA,aAAA,GAAAlB,MAAM,CAACG,IAAI,qBAAXe,aAAA,CAAab,EAAE,MAAKM,aAAa;EAAA,EAAC;EACzFK,YAAY,CAACG,IAAI,CAA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MAAM;EACpC,IAAM5C,OAAO,GAAGiC,OAAO,aAAAE,cAAA,GAAPF,OAAO,CAAEY,KAAK,qBAAdV,cAAA,CAAgBnC,OAAO;EACvC,IAAM8C,YAAY,GAAG5C,MAAM,CAAC6C,IAAI,CAAC/C,OAAO,IAAI,CAAC,CAAC,CAAC,CAACoB,MAAM;EACtD,IAAMvB,WAAW,GAAGoC,OAAO,aAAAG,aAAA,GAAPH,OAAO,CAAEe,IAAI,qBAAbZ,aAAA,CAAe5C,IAAI;EACvC,IAAMM,cAAc,GAAGoC,eAAe,IAAIS,4BAA4B;EACtE,IAAAM,SAAA,GAAsC,IAAAC,eAAQ,EAC5CxD,4BAA4B,CAAC;MAC3BG,WAAW,EAAXA,WAAW;MACXC,cAAc,EAAdA,cAAc;MACdC,aAAa,EAAbA,aAAa;MACbC,OAAO,EAAPA;IACF,CAAC,CACH,CAAC;IAAAmD,UAAA,OAAAC,eAAA,aAAAH,SAAA;IAPMI,WAAW,GAAAF,UAAA;IAAEG,cAAc,GAAAH,UAAA;EASlC,IAAAI,gBAAS,EAAC,YAAM;IACdD,cAAc,CACZ5D,4BAA4B,CAAC;MAC3BG,WAAW,EAAXA,WAAW;MACXC,cAAc,EAAdA,cAAc;MACdC,aAAa,EAAbA,aAAa;MACbC,OAAO,EAAPA;IACF,CAAC,CACH,CAAC;EAEH,CAAC,EAAE,CAACH,WAAW,EAAEE,aAAa,EAAED,cAAc,EAAEgD,YAAY,CAAC,CAAC;EAE9D,OAAOO,WAAW;AACpB,CAAC","ignoreList":[]}
|
|
@@ -1,19 +1,45 @@
|
|
|
1
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
1
2
|
Object.defineProperty(exports, "__esModule", {
|
|
2
3
|
value: true
|
|
3
4
|
});
|
|
4
5
|
exports.useChannelPreviewDisplayPresence = void 0;
|
|
6
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
7
|
+
var _react = require("react");
|
|
5
8
|
var _ChatContext = require("../../../contexts/chatContext/ChatContext");
|
|
9
|
+
var getChannelPreviewDisplayPresence = function getChannelPreviewDisplayPresence(channel, client) {
|
|
10
|
+
var currentUserId = client.userID;
|
|
11
|
+
if (currentUserId) {
|
|
12
|
+
var members = Object.values(channel.state.members);
|
|
13
|
+
var otherMembers = members.filter(function (member) {
|
|
14
|
+
var _member$user;
|
|
15
|
+
return ((_member$user = member.user) == null ? void 0 : _member$user.id) !== currentUserId;
|
|
16
|
+
});
|
|
17
|
+
if (otherMembers.length === 1) {
|
|
18
|
+
var _otherMembers$0$user;
|
|
19
|
+
return !!((_otherMembers$0$user = otherMembers[0].user) != null && _otherMembers$0$user.online);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
};
|
|
6
24
|
var useChannelPreviewDisplayPresence = exports.useChannelPreviewDisplayPresence = function useChannelPreviewDisplayPresence(channel) {
|
|
7
|
-
var _otherMember$user$onl, _otherMember$user;
|
|
8
25
|
var _useChatContext = (0, _ChatContext.useChatContext)(),
|
|
9
26
|
client = _useChatContext.client;
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
27
|
+
var currentUserId = client.userID;
|
|
28
|
+
var members = Object.values(channel.state.members).filter(function (member) {
|
|
29
|
+
var _member$user2, _member$user3;
|
|
30
|
+
return !!((_member$user2 = member.user) != null && _member$user2.id) && !!currentUserId && ((_member$user3 = member.user) == null ? void 0 : _member$user3.id) !== currentUserId;
|
|
31
|
+
});
|
|
32
|
+
var channelMemberOnline = members.some(function (member) {
|
|
33
|
+
var _member$user4;
|
|
34
|
+
return (_member$user4 = member.user) == null ? void 0 : _member$user4.online;
|
|
16
35
|
});
|
|
17
|
-
|
|
36
|
+
var _useState = (0, _react.useState)(false),
|
|
37
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
38
|
+
displayPresence = _useState2[0],
|
|
39
|
+
setDisplayPresence = _useState2[1];
|
|
40
|
+
(0, _react.useEffect)(function () {
|
|
41
|
+
setDisplayPresence(getChannelPreviewDisplayPresence(channel, client));
|
|
42
|
+
}, [channel, channelMemberOnline, client]);
|
|
43
|
+
return displayPresence;
|
|
18
44
|
};
|
|
19
45
|
//# sourceMappingURL=useChannelPreviewDisplayPresence.js.map
|
package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_react","require","_ChatContext","getChannelPreviewDisplayPresence","channel","client","currentUserId","userID","members","Object","values","state","otherMembers","filter","member","_member$user","user","id","length","_otherMembers$0$user","online","useChannelPreviewDisplayPresence","exports","_useChatContext","useChatContext","_member$user2","_member$user3","channelMemberOnline","some","_member$user4","_useState","useState","_useState2","_slicedToArray2","displayPresence","setDisplayPresence","useEffect"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAME,gCAAgC,GAAG,SAAnCA,gCAAgCA,CAAIC,OAAgB,EAAEC,MAAkB,EAAK;EACjF,IAAMC,aAAa,GAAGD,MAAM,CAACE,MAAM;EAEnC,IAAID,aAAa,EAAE;IACjB,IAAME,OAAO,GAAGC,MAAM,CAACC,MAAM,CAACN,OAAO,CAACO,KAAK,CAACH,OAAO,CAAC;IACpD,IAAMI,YAAY,GAAGJ,OAAO,CAACK,MAAM,CAAC,UAACC,MAAM;MAAA,IAAAC,YAAA;MAAA,OAAK,EAAAA,YAAA,GAAAD,MAAM,CAACE,IAAI,qBAAXD,YAAA,CAAaE,EAAE,MAAKX,aAAa;IAAA,EAAC;IAElF,IAAIM,YAAY,CAACM,MAAM,KAAK,CAAC,EAAE;MAAA,IAAAC,oBAAA;MAC7B,OAAO,CA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C,OAAO6B,eAAe;AACxB,CAAC","ignoreList":[]}
|
|
@@ -6,11 +6,6 @@ exports.useIsChannelMuted = void 0;
|
|
|
6
6
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _ChatContext = require("../../../contexts/chatContext/ChatContext");
|
|
9
|
-
var defaultMuteStatus = {
|
|
10
|
-
createdAt: null,
|
|
11
|
-
expiresAt: null,
|
|
12
|
-
muted: false
|
|
13
|
-
};
|
|
14
9
|
var useIsChannelMuted = exports.useIsChannelMuted = function useIsChannelMuted(channel) {
|
|
15
10
|
var _useChatContext = (0, _ChatContext.useChatContext)(),
|
|
16
11
|
client = _useChatContext.client;
|
|
@@ -29,6 +24,10 @@ var useIsChannelMuted = exports.useIsChannelMuted = function useIsChannelMuted(c
|
|
|
29
24
|
return client.off('notification.channel_mutes_updated', handleEvent);
|
|
30
25
|
};
|
|
31
26
|
}, [channel, client, muted]);
|
|
32
|
-
return muted
|
|
27
|
+
return muted || {
|
|
28
|
+
createdAt: null,
|
|
29
|
+
expiresAt: null,
|
|
30
|
+
muted: false
|
|
31
|
+
};
|
|
33
32
|
};
|
|
34
33
|
//# sourceMappingURL=useIsChannelMuted.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_ChatContext","
|
|
1
|
+
{"version":3,"names":["_react","require","_ChatContext","useIsChannelMuted","exports","channel","_useChatContext","useChatContext","client","_useState","useState","muteStatus","_useState2","_slicedToArray2","muted","setMuted","useEffect","handleEvent","on","off","createdAt","expiresAt"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useIsChannelMuted.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAEO,IAAME,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIE,OAAgB,EAAK;EACrD,IAAAC,eAAA,GAAmB,IAAAC,2BAAc,EAAC,CAAC;IAA3BC,MAAM,GAAAF,eAAA,CAANE,MAAM;EAEd,IAAAC,SAAA,GAA0B,IAAAC,eAAQ,EAAC;MAAA,OAAML,OAAO,CAACM,UAAU,CAAC,CAAC;IAAA,EAAC;IAAAC,UAAA,OAAAC,eAAA,aAAAJ,SAAA;IAAvDK,KAAK,GAAAF,UAAA;IAAEG,QAAQ,GAAAH,UAAA;EAEtB,IAAAI,gBAAS,EAAC,YAAM;IACd,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAA,EAAS;MACxBF,QAAQ,CAACV,OAAO,CAACM,UAAU,CAAC,CAAC,CAAC;IAChC,CAAC;IAEDH,MAAM,CAACU,EAAE,CAAC,oCAAoC,EAAED,WAAW,CAAC;IAC5D,OAAO;MAAA,OAAMT,MAAM,CAACW,GAAG,CAAC,oCAAoC,EAAEF,WAAW,CAAC;IAAA;EAC5E,CAAC,EAAE,CAACZ,OAAO,EAAEG,MAAM,EAAEM,KAAK,CAAC,CAAC;EAE5B,OAAOA,KAAK,IAAI;IAAEM,SAAS,EAAE,IAAI;IAAEC,SAAS,EAAE,IAAI;IAAEP,KAAK,EAAE;EAAM,CAAC;AACpE,CAAC","ignoreList":[]}
|
|
@@ -209,6 +209,18 @@ var useLatestMessagePreview = exports.useLatestMessagePreview = function useLate
|
|
|
209
209
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
210
210
|
readEvents = _useState2[0],
|
|
211
211
|
setReadEvents = _useState2[1];
|
|
212
|
+
var _useState3 = (0, _react.useState)({
|
|
213
|
+
created_at: '',
|
|
214
|
+
messageObject: undefined,
|
|
215
|
+
previews: [{
|
|
216
|
+
bold: false,
|
|
217
|
+
text: ''
|
|
218
|
+
}],
|
|
219
|
+
status: MessageReadStatus.NOT_SENT_BY_CURRENT_USER
|
|
220
|
+
}),
|
|
221
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
222
|
+
latestMessagePreview = _useState4[0],
|
|
223
|
+
setLatestMessagePreview = _useState4[1];
|
|
212
224
|
var readStatus = getLatestMessageReadStatus(channel, client, translatedLastMessage, readEvents);
|
|
213
225
|
(0, _react.useEffect)(function () {
|
|
214
226
|
if (channelConfigExists) {
|
|
@@ -225,15 +237,15 @@ var useLatestMessagePreview = exports.useLatestMessagePreview = function useLate
|
|
|
225
237
|
var createdBy = pollState.createdBy,
|
|
226
238
|
latestVotesByOption = pollState.latestVotesByOption,
|
|
227
239
|
name = pollState.name;
|
|
228
|
-
|
|
229
|
-
return getLatestMessagePreview({
|
|
240
|
+
(0, _react.useEffect)(function () {
|
|
241
|
+
return setLatestMessagePreview(getLatestMessagePreview({
|
|
230
242
|
channel: channel,
|
|
231
243
|
client: client,
|
|
232
244
|
lastMessage: translatedLastMessage,
|
|
233
245
|
pollState: pollState,
|
|
234
246
|
readEvents: readEvents,
|
|
235
247
|
t: t
|
|
236
|
-
});
|
|
248
|
+
}));
|
|
237
249
|
}, [channelLastMessageString, forceUpdate, readEvents, readStatus, latestVotesByOption, createdBy, name]);
|
|
238
250
|
return latestMessagePreview;
|
|
239
251
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_ChatContext","_TranslationContext","_hooks","_useTranslatedMessage","_utils","selector","nextValue","createdBy","created_by","latestVotesByOption","latest_votes_by_option","name","getMessageSenderName","message","currentUserId","t","membersLength","_message$user","user","id","_message$user2","_message$user3","_message$user4","username","getMentionUsers","mentionedUser","Array","isArray","mentionUserString","reduce","acc","cur","userName","concat","length","replace","match","getLatestMessageDisplayText","channel","client","pollState","_message$attachments","bold","text","isMessageTypeDeleted","type","userID","members","Object","keys","state","messageSender","messageSenderText","boldOwner","includes","shortenedText","substring","mentionedUsers","mentioned_users","regEx","RegExp","_toConsumableArray2","split","index","test","push","command","attachments","poll_id","_latestVotes$","_previewUser","_previewUser2","latestVotes","values","map","votes","sort","a","b","Date","created_at","getTime","previewAction","previewUser","_latestVotes$2","previewMessage","MessageReadStatus","exports","getLatestMessageReadStatus","readEvents","_message$user5","NOT_SENT_BY_CURRENT_USER","readList","assign","read","messageUpdatedAt","updated_at","undefined","some","_ref","last_read","READ","UNREAD","getLatestMessagePreview","params","lastMessage","messages","messageObject","previews","status","channelStateLastMessage","useLatestMessagePreview","forceUpdate","_lastMessage$poll_id","_useStateStore","_useChatContext","useChatContext","_useTranslationContex","useTranslationContext","channelConfigExists","getConfig","translatedLastMessage","useTranslatedMessage","channelLastMessageString","stringifyMessage","_useState","useState","_useState2","_slicedToArray2","setReadEvents","readStatus","useEffect","_channel$getConfig","read_events","disconnected","pollId","poll","polls","fromState","useStateStore","latestMessagePreview","useMemo"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useLatestMessagePreview.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAaA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AA0BA,IAAMM,QAAQ,GAAG,SAAXA,QAAQA,CACZC,SAAwC;EAAA,OACI;IAC5CC,SAAS,EAAED,SAAS,CAACE,UAAU;IAC/BC,mBAAmB,EAAEH,SAAS,CAACI,sBAAsB;IACrDC,IAAI,EAAEL,SAAS,CAACK;EAClB,CAAC;AAAA,CAAC;AAEF,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAGxBC,OAAsD,EACtDC,aAAiC,EACjCC,CAA0B,EAC1BC,aAAqB,EAClB;EAAA,IAAAC,aAAA;EACH,IAAI,CAAAJ,OAAO,aAAAI,aAAA,GAAPJ,OAAO,CAAEK,IAAI,qBAAbD,aAAA,CAAeE,EAAE,MAAKL,aAAa,EAAE;IACvC,OAAOC,CAAC,CAAC,KAAK,CAAC;EACjB;EAEA,IAAIC,aAAa,GAAG,CAAC,EAAE;I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Context","_TranslationContext","_hooks","_useTranslatedMessage","_utils","selector","nextValue","createdBy","created_by","latestVotesByOption","latest_votes_by_option","name","getMessageSenderName","message","currentUserId","t","membersLength","_message$user","user","id","_message$user2","_message$user3","_message$user4","username","getMentionUsers","mentionedUser","Array","isArray","mentionUserString","reduce","acc","cur","userName","concat","length","replace","match","getLatestMessageDisplayText","channel","client","pollState","_message$attachments","bold","text","isMessageTypeDeleted","type","userID","members","Object","keys","state","messageSender","messageSenderText","boldOwner","includes","shortenedText","substring","mentionedUsers","mentioned_users","regEx","RegExp","_toConsumableArray2","split","index","test","push","command","attachments","poll_id","_latestVotes$","_previewUser","_previewUser2","latestVotes","values","map","votes","sort","a","b","Date","created_at","getTime","previewAction","previewUser","_latestVotes$2","previewMessage","MessageReadStatus","exports","getLatestMessageReadStatus","readEvents","_message$user5","NOT_SENT_BY_CURRENT_USER","readList","assign","read","messageUpdatedAt","updated_at","undefined","some","_ref","last_read","READ","UNREAD","getLatestMessagePreview","params","lastMessage","messages","messageObject","previews","status","channelStateLastMessage","useLatestMessagePreview","forceUpdate","_lastMessage$poll_id","_useStateStore","_useChatContext","useChatContext","_useTranslationContex","useTranslationContext","channelConfigExists","getConfig","translatedLastMessage","useTranslatedMessage","channelLastMessageString","stringifyMessage","_useState","useState","_useState2","_slicedToArray2","setReadEvents","_useState3","_useState4","latestMessagePreview","setLatestMessagePreview","readStatus","useEffect","_channel$getConfig","read_events","disconnected","pollId","poll","polls","fromState","useStateStore"],"sourceRoot":"../../../../../src","sources":["components/ChannelPreview/hooks/useLatestMessagePreview.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAaA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AAoBA,IAAMM,QAAQ,GAAG,SAAXA,QAAQA,CAA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