stream-chat-react-native-core 4.0.0-beta.5 → 4.0.0-beta.6
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/Attachment/Attachment.js +10 -10
- package/lib/commonjs/components/Attachment/Attachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/AttachmentActions.js +4 -4
- package/lib/commonjs/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/commonjs/components/Attachment/Card.js +15 -15
- package/lib/commonjs/components/Attachment/Card.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachment.js +8 -8
- package/lib/commonjs/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js +4 -4
- package/lib/commonjs/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js +8 -8
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js +23 -23
- 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 +2 -2
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +13 -13
- package/lib/commonjs/components/Channel/Channel.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/ChannelList/ChannelList.js +2 -2
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelListMessenger.js +14 -14
- 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/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/useConnectionRecovered.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/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelList/utils.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js +2 -2
- package/lib/commonjs/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +2 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +4 -4
- package/lib/commonjs/components/Chat/Chat.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/ImageGallery/ImageGallery.js +19 -19
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +10 -10
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +5 -5
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +6 -6
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js +4 -4
- package/lib/commonjs/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +18 -18
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +5 -5
- package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +11 -11
- package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
- package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +10 -10
- package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
- package/lib/commonjs/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +6 -6
- package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +9 -9
- package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +3 -3
- package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +18 -18
- package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +14 -14
- 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 +11 -11
- package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
- package/lib/commonjs/components/Message/utils/removeReservedFields.js.map +1 -1
- package/lib/commonjs/components/MessageInput/AttachButton.js +3 -3
- package/lib/commonjs/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/CommandsButton.js +3 -3
- package/lib/commonjs/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +11 -11
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +7 -7
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/InputButtons.js +6 -6
- package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +34 -34
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MoreOptionsButton.js +3 -3
- package/lib/commonjs/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendButton.js +5 -5
- package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
- package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
- package/lib/commonjs/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
- package/lib/commonjs/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
- package/lib/commonjs/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +26 -26
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageSystem.js +6 -6
- package/lib/commonjs/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicator.js +3 -3
- package/lib/commonjs/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js +2 -2
- package/lib/commonjs/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.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/MessageOverlay/MessageActionList.js +3 -3
- package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +6 -6
- package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +26 -25
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +13 -13
- package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js +19 -19
- package/lib/commonjs/components/MessageOverlay/OverlayReactions.js.map +1 -1
- package/lib/commonjs/components/Reply/Reply.js +8 -8
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js +4 -4
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +12 -12
- package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/commonjs/components/docs/data.js +44 -44
- package/lib/commonjs/components/docs/data.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
- package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js +2 -2
- package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
- 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 +2 -2
- package/lib/commonjs/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
- package/lib/commonjs/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js +1 -1
- package/lib/commonjs/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
- package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +2 -2
- 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/messageOverlayContext/MessageOverlayContext.js +2 -2
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +12 -12
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
- package/lib/commonjs/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +2 -2
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/contexts/threadContext/ThreadContext.js +2 -2
- package/lib/commonjs/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/commonjs/contexts/translationContext/TranslationContext.js +2 -2
- package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/commonjs/contexts/typingContext/TypingContext.js +2 -2
- package/lib/commonjs/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/commonjs/icons/UserAdmin.js +62 -0
- package/lib/commonjs/icons/UserAdmin.js.map +1 -0
- package/lib/commonjs/utils/Streami18n.js.map +1 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Attachment.js +10 -10
- package/lib/module/components/Attachment/Attachment.js.map +1 -1
- package/lib/module/components/Attachment/AttachmentActions.js +4 -4
- package/lib/module/components/Attachment/AttachmentActions.js.map +1 -1
- package/lib/module/components/Attachment/Card.js +15 -15
- package/lib/module/components/Attachment/Card.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachment.js +8 -8
- package/lib/module/components/Attachment/FileAttachment.js.map +1 -1
- package/lib/module/components/Attachment/FileAttachmentGroup.js +4 -4
- package/lib/module/components/Attachment/FileAttachmentGroup.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js +8 -8
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/Giphy.js +23 -23
- 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 +2 -2
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js +16 -16
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +7 -7
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +13 -13
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +10 -10
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +13 -13
- package/lib/module/components/Channel/Channel.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/ChannelList/ChannelList.js +2 -2
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelListMessenger.js +14 -14
- 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/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/useConnectionRecovered.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/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelList/utils.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelAvatar.js +2 -2
- package/lib/module/components/ChannelPreview/ChannelAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +2 -2
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js +4 -4
- package/lib/module/components/ChannelPreview/ChannelPreviewMessage.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +12 -12
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMutedStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
- package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewTitle.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js +2 -2
- package/lib/module/components/ChannelPreview/ChannelPreviewUnreadCount.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +4 -4
- package/lib/module/components/Chat/Chat.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/ImageGallery/ImageGallery.js +19 -19
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +11 -11
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +10 -10
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js +5 -5
- package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/module/components/Message/Message.js +6 -6
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js +4 -4
- package/lib/module/components/Message/MessageSimple/MessageAvatar.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +18 -18
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js +5 -5
- package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageFooter.js +11 -11
- package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +4 -4
- package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageReplies.js +10 -10
- package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js +3 -3
- package/lib/module/components/Message/MessageSimple/MessageRepliesAvatars.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageSimple.js +6 -6
- package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageStatus.js +9 -9
- package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +3 -3
- package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/ReactionList.js +18 -18
- package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/utils/renderText.js +14 -14
- 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 +11 -11
- package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
- package/lib/module/components/Message/utils/messageActions.js.map +1 -1
- package/lib/module/components/Message/utils/removeReservedFields.js.map +1 -1
- package/lib/module/components/MessageInput/AttachButton.js +3 -3
- package/lib/module/components/MessageInput/AttachButton.js.map +1 -1
- package/lib/module/components/MessageInput/CommandsButton.js +3 -3
- package/lib/module/components/MessageInput/CommandsButton.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +11 -11
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js +7 -7
- package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/InputButtons.js +6 -6
- package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +34 -34
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/MoreOptionsButton.js +3 -3
- package/lib/module/components/MessageInput/MoreOptionsButton.js.map +1 -1
- package/lib/module/components/MessageInput/SendButton.js +5 -5
- package/lib/module/components/MessageInput/SendButton.js.map +1 -1
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +7 -7
- package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
- package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js +3 -3
- package/lib/module/components/MessageList/InlineLoadingMoreIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js +3 -3
- package/lib/module/components/MessageList/InlineLoadingMoreRecentIndicator.js.map +1 -1
- package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js +3 -3
- package/lib/module/components/MessageList/InlineLoadingMoreThreadIndicator.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +26 -26
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageSystem.js +6 -6
- package/lib/module/components/MessageList/MessageSystem.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicator.js +3 -3
- package/lib/module/components/MessageList/TypingIndicator.js.map +1 -1
- package/lib/module/components/MessageList/TypingIndicatorContainer.js +2 -2
- package/lib/module/components/MessageList/TypingIndicatorContainer.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.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/MessageOverlay/MessageActionList.js +3 -3
- package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageActionListItem.js +6 -6
- package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js +26 -25
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayReactionList.js +13 -13
- package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
- package/lib/module/components/MessageOverlay/OverlayReactions.js +19 -19
- package/lib/module/components/MessageOverlay/OverlayReactions.js.map +1 -1
- package/lib/module/components/Reply/Reply.js +8 -8
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/Thread/Thread.js +4 -4
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/components/Thread/components/ThreadFooterComponent.js +12 -12
- package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
- package/lib/module/components/docs/data.js +44 -44
- package/lib/module/components/docs/data.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
- package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
- package/lib/module/contexts/channelsContext/ChannelsContext.js +2 -2
- package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +3 -3
- 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 +2 -2
- package/lib/module/contexts/chatContext/ChatContext.js.map +1 -1
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js +2 -2
- package/lib/module/contexts/imageGalleryContext/ImageGalleryContext.js.map +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js +1 -1
- package/lib/module/contexts/keyboardContext/KeyboardContext.js.map +1 -1
- package/lib/module/contexts/messageContext/MessageContext.js +2 -2
- package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +2 -2
- 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/messageOverlayContext/MessageOverlayContext.js +2 -2
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +12 -12
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js +2 -2
- package/lib/module/contexts/paginatedMessageListContext/PaginatedMessageListContext.js.map +1 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +2 -2
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/contexts/threadContext/ThreadContext.js +2 -2
- package/lib/module/contexts/threadContext/ThreadContext.js.map +1 -1
- package/lib/module/contexts/translationContext/TranslationContext.js +2 -2
- package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
- package/lib/module/contexts/typingContext/TypingContext.js +2 -2
- package/lib/module/contexts/typingContext/TypingContext.js.map +1 -1
- package/lib/module/icons/UserAdmin.js +62 -0
- package/lib/module/icons/UserAdmin.js.map +1 -0
- package/lib/module/utils/Streami18n.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/Attachment.d.ts +5 -5
- package/lib/typescript/components/Attachment/AttachmentActions.d.ts +4 -4
- package/lib/typescript/components/Attachment/Card.d.ts +4 -4
- package/lib/typescript/components/Attachment/FileAttachment.d.ts +5 -5
- package/lib/typescript/components/Attachment/FileAttachmentGroup.d.ts +4 -4
- package/lib/typescript/components/Attachment/Gallery.d.ts +5 -5
- package/lib/typescript/components/Attachment/Giphy.d.ts +6 -6
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGallery.d.ts +3 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.d.ts +3 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.d.ts +3 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.d.ts +3 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnail.d.ts +3 -3
- package/lib/typescript/components/Attachment/utils/buildGallery/buildThumbnailGrid.d.ts +3 -3
- package/lib/typescript/components/Attachment/utils/getAspectRatio.d.ts +2 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +4 -4
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +3 -2
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +4 -4
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +5 -5
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +9 -9
- package/lib/typescript/components/Channel/Channel.d.ts +7 -7
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +2 -2
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +3 -3
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +3 -3
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +3 -3
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts +3 -3
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts +2 -2
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts +2 -2
- package/lib/typescript/components/ChannelList/ChannelList.d.ts +14 -14
- package/lib/typescript/components/ChannelList/ChannelListMessenger.d.ts +4 -4
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useConnectionRecovered.d.ts +2 -2
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts +4 -4
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts +5 -5
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts +4 -4
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts +2 -2
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +7 -7
- package/lib/typescript/components/ChannelList/utils.d.ts +7 -7
- package/lib/typescript/components/ChannelPreview/ChannelAvatar.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts +5 -5
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessage.d.ts +4 -5
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts +5 -5
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMutedStatus.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreviewTitle.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/ChannelPreviewUnreadCount.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +3 -3
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts +4 -4
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts +2 -2
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -5
- package/lib/typescript/components/Chat/Chat.d.ts +3 -3
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts +2 -2
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts +2 -2
- package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts +2 -2
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +9 -9
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +10 -10
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts +10 -10
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +10 -10
- package/lib/typescript/components/Message/Message.d.ts +11 -11
- package/lib/typescript/components/Message/MessageSimple/MessageAvatar.d.ts +4 -4
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +4 -4
- package/lib/typescript/components/Message/MessageSimple/MessageDeleted.d.ts +5 -5
- package/lib/typescript/components/Message/MessageSimple/MessageFooter.d.ts +6 -6
- package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +4 -4
- package/lib/typescript/components/Message/MessageSimple/MessageReplies.d.ts +4 -4
- package/lib/typescript/components/Message/MessageSimple/MessageRepliesAvatars.d.ts +3 -3
- package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +4 -4
- package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +4 -4
- package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +6 -6
- package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +4 -4
- package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +4 -4
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +2 -2
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +2 -2
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +3 -3
- package/lib/typescript/components/Message/utils/messageActions.d.ts +5 -5
- package/lib/typescript/components/Message/utils/removeReservedFields.d.ts +2 -2
- package/lib/typescript/components/MessageInput/AttachButton.d.ts +4 -4
- package/lib/typescript/components/MessageInput/CommandsButton.d.ts +4 -4
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +4 -4
- package/lib/typescript/components/MessageInput/ImageUploadPreview.d.ts +4 -4
- package/lib/typescript/components/MessageInput/InputButtons.d.ts +5 -5
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +4 -4
- package/lib/typescript/components/MessageInput/MoreOptionsButton.d.ts +4 -4
- package/lib/typescript/components/MessageInput/SendButton.d.ts +4 -4
- package/lib/typescript/components/MessageInput/ShowThreadMessageInChannelButton.d.ts +2 -2
- package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +2 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreIndicator.d.ts +2 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreRecentIndicator.d.ts +2 -2
- package/lib/typescript/components/MessageList/InlineLoadingMoreThreadIndicator.d.ts +2 -2
- package/lib/typescript/components/MessageList/MessageList.d.ts +7 -7
- package/lib/typescript/components/MessageList/MessageSystem.d.ts +4 -4
- package/lib/typescript/components/MessageList/TypingIndicator.d.ts +2 -2
- package/lib/typescript/components/MessageList/TypingIndicatorContainer.d.ts +4 -4
- package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +5 -5
- package/lib/typescript/components/MessageList/hooks/useTypingString.d.ts +2 -2
- package/lib/typescript/components/MessageList/utils/filterTypingUsers.d.ts +3 -3
- package/lib/typescript/components/MessageList/utils/getDateSeparators.d.ts +4 -4
- package/lib/typescript/components/MessageList/utils/getGroupStyles.d.ts +4 -4
- package/lib/typescript/components/MessageList/utils/getLastReceivedMessage.d.ts +2 -2
- package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +8 -5
- package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +4 -4
- package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +4 -3
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +4 -4
- package/lib/typescript/components/MessageOverlay/OverlayReactionList.d.ts +6 -6
- package/lib/typescript/components/MessageOverlay/OverlayReactions.d.ts +2 -2
- package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +1 -1
- package/lib/typescript/components/Reply/Reply.d.ts +4 -4
- package/lib/typescript/components/Thread/Thread.d.ts +7 -7
- package/lib/typescript/components/Thread/components/ThreadFooterComponent.d.ts +2 -2
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +2 -2
- package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +12 -12
- package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +18 -18
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +19 -19
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +17 -17
- package/lib/typescript/contexts/chatContext/ChatContext.d.ts +11 -11
- package/lib/typescript/contexts/imageGalleryContext/ImageGalleryContext.d.ts +8 -8
- package/lib/typescript/contexts/keyboardContext/KeyboardContext.d.ts +2 -2
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +12 -12
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +33 -33
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +2 -2
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +3 -3
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +21 -21
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +57 -57
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +4 -4
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts +2 -2
- package/lib/typescript/contexts/paginatedMessageListContext/PaginatedMessageListContext.d.ts +8 -8
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +20 -20
- package/lib/typescript/contexts/threadContext/ThreadContext.d.ts +10 -10
- package/lib/typescript/contexts/translationContext/TranslationContext.d.ts +2 -2
- package/lib/typescript/contexts/typingContext/TypingContext.d.ts +8 -8
- package/lib/typescript/icons/UserAdmin.d.ts +3 -0
- package/lib/typescript/types/types.d.ts +16 -13
- package/lib/typescript/utils/Streami18n.d.ts +4 -4
- package/lib/typescript/utils/utils.d.ts +21 -21
- package/package.json +2 -2
- package/src/components/Attachment/Attachment.tsx +15 -56
- package/src/components/Attachment/AttachmentActions.tsx +15 -55
- package/src/components/Attachment/Card.tsx +15 -48
- package/src/components/Attachment/FileAttachment.tsx +14 -48
- package/src/components/Attachment/FileAttachmentGroup.tsx +16 -57
- package/src/components/Attachment/Gallery.tsx +18 -59
- package/src/components/Attachment/Giphy.tsx +18 -59
- package/src/components/Attachment/utils/buildGallery/buildGallery.ts +5 -3
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfSingleImage.ts +6 -10
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfThreeImages.ts +5 -5
- package/src/components/Attachment/utils/buildGallery/buildGalleryOfTwoImages.ts +5 -3
- package/src/components/Attachment/utils/buildGallery/buildThumbnail.ts +5 -3
- package/src/components/Attachment/utils/buildGallery/buildThumbnailGrid.ts +5 -3
- package/src/components/Attachment/utils/getAspectRatio.ts +4 -4
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +21 -61
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.tsx +5 -3
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +12 -19
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +14 -21
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +21 -24
- package/src/components/Channel/Channel.tsx +174 -257
- package/src/components/Channel/hooks/useCreateChannelContext.ts +4 -19
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +52 -68
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -19
- package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +3 -18
- package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +16 -32
- package/src/components/Channel/hooks/useCreateThreadContext.ts +4 -19
- package/src/components/Channel/hooks/useCreateTypingContext.ts +4 -19
- package/src/components/ChannelList/ChannelList.tsx +28 -49
- package/src/components/ChannelList/ChannelListMessenger.tsx +19 -70
- package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +14 -36
- package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +13 -35
- package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +13 -35
- package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +15 -37
- package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +13 -35
- package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +14 -36
- package/src/components/ChannelList/hooks/listeners/useConnectionRecovered.ts +3 -18
- package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +11 -33
- package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +13 -35
- package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +13 -35
- package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +9 -31
- package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +4 -19
- package/src/components/ChannelList/hooks/usePaginatedChannels.ts +11 -29
- package/src/components/ChannelList/utils.ts +9 -42
- package/src/components/ChannelPreview/ChannelAvatar.tsx +5 -26
- package/src/components/ChannelPreview/ChannelPreview.tsx +18 -51
- package/src/components/ChannelPreview/ChannelPreviewMessage.tsx +11 -21
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +13 -46
- package/src/components/ChannelPreview/ChannelPreviewMutedStatus.tsx +5 -26
- package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +6 -27
- package/src/components/ChannelPreview/ChannelPreviewTitle.tsx +5 -26
- package/src/components/ChannelPreview/ChannelPreviewUnreadCount.tsx +5 -26
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +7 -28
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +6 -27
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +7 -28
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +27 -78
- package/src/components/Chat/Chat.tsx +12 -40
- package/src/components/Chat/hooks/useCreateChatContext.ts +4 -19
- package/src/components/Chat/hooks/useIsOnline.ts +4 -19
- package/src/components/Chat/hooks/useMutedUsers.ts +5 -20
- package/src/components/ImageGallery/ImageGallery.tsx +30 -40
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +19 -11
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +19 -11
- package/src/components/ImageGallery/components/ImageGrid.tsx +45 -30
- package/src/components/Message/Message.tsx +40 -93
- package/src/components/Message/MessageSimple/MessageAvatar.tsx +13 -54
- package/src/components/Message/MessageSimple/MessageContent.tsx +18 -61
- package/src/components/Message/MessageSimple/MessageDeleted.tsx +17 -58
- package/src/components/Message/MessageSimple/MessageFooter.tsx +18 -60
- package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +13 -54
- package/src/components/Message/MessageSimple/MessageReplies.tsx +15 -56
- package/src/components/Message/MessageSimple/MessageRepliesAvatars.tsx +5 -26
- package/src/components/Message/MessageSimple/MessageSimple.tsx +16 -57
- package/src/components/Message/MessageSimple/MessageStatus.tsx +13 -54
- package/src/components/Message/MessageSimple/MessageTextContainer.tsx +19 -66
- package/src/components/Message/MessageSimple/ReactionList.tsx +16 -57
- package/src/components/Message/MessageSimple/utils/renderText.tsx +6 -27
- package/src/components/Message/hooks/useCreateMessageContext.ts +4 -19
- package/src/components/Message/hooks/useMessageActionHandlers.ts +8 -23
- package/src/components/Message/hooks/useMessageActions.tsx +8 -23
- package/src/components/Message/utils/messageActions.ts +7 -34
- package/src/components/Message/utils/removeReservedFields.ts +3 -18
- package/src/components/MessageInput/AttachButton.tsx +13 -54
- package/src/components/MessageInput/CommandsButton.tsx +15 -56
- package/src/components/MessageInput/FileUploadPreview.tsx +15 -57
- package/src/components/MessageInput/ImageUploadPreview.tsx +13 -55
- package/src/components/MessageInput/InputButtons.tsx +13 -54
- package/src/components/MessageInput/MessageInput.tsx +25 -66
- package/src/components/MessageInput/MoreOptionsButton.tsx +13 -54
- package/src/components/MessageInput/SendButton.tsx +13 -54
- package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +4 -19
- package/src/components/MessageInput/hooks/useCooldown.ts +5 -19
- package/src/components/MessageList/InlineLoadingMoreIndicator.tsx +3 -18
- package/src/components/MessageList/InlineLoadingMoreRecentIndicator.tsx +3 -18
- package/src/components/MessageList/InlineLoadingMoreThreadIndicator.tsx +3 -18
- package/src/components/MessageList/MessageList.tsx +34 -76
- package/src/components/MessageList/MessageSystem.tsx +5 -26
- package/src/components/MessageList/TypingIndicator.tsx +3 -18
- package/src/components/MessageList/TypingIndicatorContainer.tsx +14 -47
- package/src/components/MessageList/hooks/useMessageList.ts +19 -52
- package/src/components/MessageList/hooks/useTypingString.ts +5 -20
- package/src/components/MessageList/utils/filterTypingUsers.ts +7 -28
- package/src/components/MessageList/utils/getDateSeparators.ts +6 -27
- package/src/components/MessageList/utils/getGroupStyles.ts +6 -27
- package/src/components/MessageList/utils/getLastReceivedMessage.ts +3 -18
- package/src/components/MessageList/utils/getReadStates.ts +5 -20
- package/src/components/MessageOverlay/MessageActionList.tsx +15 -56
- package/src/components/MessageOverlay/MessageActionListItem.tsx +20 -9
- package/src/components/MessageOverlay/MessageOverlay.tsx +38 -81
- package/src/components/MessageOverlay/OverlayReactionList.tsx +21 -74
- package/src/components/MessageOverlay/OverlayReactions.tsx +3 -18
- package/src/components/Reply/Reply.tsx +22 -69
- package/src/components/Thread/Thread.tsx +20 -53
- package/src/components/Thread/components/ThreadFooterComponent.tsx +12 -47
- package/src/components/docs/data.js +38 -37
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +9 -7
- package/src/contexts/channelContext/ChannelContext.tsx +15 -48
- package/src/contexts/channelsContext/ChannelsContext.tsx +22 -59
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +38 -115
- package/src/contexts/channelsStateContext/useChannelState.ts +27 -60
- package/src/contexts/chatContext/ChatContext.tsx +14 -49
- package/src/contexts/imageGalleryContext/ImageGalleryContext.tsx +12 -54
- package/src/contexts/keyboardContext/KeyboardContext.tsx +13 -7
- package/src/contexts/messageContext/MessageContext.tsx +15 -48
- package/src/contexts/messageInputContext/MessageInputContext.tsx +61 -110
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +5 -20
- package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +7 -31
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +24 -71
- package/src/contexts/messagesContext/MessagesContext.tsx +60 -99
- package/src/contexts/overlayContext/OverlayContext.tsx +18 -26
- package/src/contexts/overlayContext/OverlayProvider.tsx +7 -22
- package/src/contexts/paginatedMessageListContext/PaginatedMessageListContext.tsx +13 -53
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +39 -40
- package/src/contexts/threadContext/ThreadContext.tsx +13 -46
- package/src/contexts/translationContext/TranslationContext.tsx +12 -7
- package/src/contexts/typingContext/TypingContext.tsx +11 -44
- package/src/icons/UserAdmin.tsx +23 -0
- package/src/types/types.ts +16 -18
- package/src/utils/Streami18n.ts +3 -3
- package/src/utils/utils.ts +63 -128
- package/src/version.json +1 -1
|
@@ -14,47 +14,26 @@ import {
|
|
|
14
14
|
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
15
15
|
|
|
16
16
|
import type { MarkdownStyle, Theme } from '../../../contexts/themeContext/utils/theme';
|
|
17
|
-
import type {
|
|
18
|
-
DefaultAttachmentType,
|
|
19
|
-
DefaultChannelType,
|
|
20
|
-
DefaultCommandType,
|
|
21
|
-
DefaultEventType,
|
|
22
|
-
DefaultMessageType,
|
|
23
|
-
DefaultReactionType,
|
|
24
|
-
DefaultUserType,
|
|
25
|
-
UnknownType,
|
|
26
|
-
} from '../../../types/types';
|
|
17
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
27
18
|
|
|
28
19
|
const styles = StyleSheet.create({
|
|
29
20
|
textContainer: { maxWidth: 250, paddingHorizontal: 16 },
|
|
30
21
|
});
|
|
31
22
|
|
|
32
23
|
export type MessageTextProps<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Ev extends UnknownType = DefaultEventType,
|
|
37
|
-
Me extends UnknownType = DefaultMessageType,
|
|
38
|
-
Re extends UnknownType = DefaultReactionType,
|
|
39
|
-
Us extends UnknownType = DefaultUserType,
|
|
40
|
-
> = MessageTextContainerProps<At, Ch, Co, Ev, Me, Re, Us> & {
|
|
41
|
-
renderText: (params: RenderTextParams<At, Ch, Co, Ev, Me, Re, Us>) => JSX.Element | null;
|
|
24
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
25
|
+
> = MessageTextContainerProps<StreamChatGenerics> & {
|
|
26
|
+
renderText: (params: RenderTextParams<StreamChatGenerics>) => JSX.Element | null;
|
|
42
27
|
theme: { theme: Theme };
|
|
43
28
|
};
|
|
44
29
|
|
|
45
30
|
export type MessageTextContainerPropsWithContext<
|
|
46
|
-
|
|
47
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
48
|
-
Co extends string = DefaultCommandType,
|
|
49
|
-
Ev extends UnknownType = DefaultEventType,
|
|
50
|
-
Me extends UnknownType = DefaultMessageType,
|
|
51
|
-
Re extends UnknownType = DefaultReactionType,
|
|
52
|
-
Us extends UnknownType = DefaultUserType,
|
|
31
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
53
32
|
> = Pick<
|
|
54
|
-
MessageContextValue<
|
|
33
|
+
MessageContextValue<StreamChatGenerics>,
|
|
55
34
|
'message' | 'onLongPress' | 'onlyEmojis' | 'onPress' | 'preventPress'
|
|
56
35
|
> &
|
|
57
|
-
Pick<MessagesContextValue<
|
|
36
|
+
Pick<MessagesContextValue<StreamChatGenerics>, 'markdownRules' | 'MessageText'> & {
|
|
58
37
|
markdownStyles?: MarkdownStyle;
|
|
59
38
|
messageOverlay?: boolean;
|
|
60
39
|
messageTextNumberOfLines?: number;
|
|
@@ -64,15 +43,9 @@ export type MessageTextContainerPropsWithContext<
|
|
|
64
43
|
};
|
|
65
44
|
|
|
66
45
|
const MessageTextContainerWithContext = <
|
|
67
|
-
|
|
68
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
69
|
-
Co extends string = DefaultCommandType,
|
|
70
|
-
Ev extends UnknownType = DefaultEventType,
|
|
71
|
-
Me extends UnknownType = DefaultMessageType,
|
|
72
|
-
Re extends UnknownType = DefaultReactionType,
|
|
73
|
-
Us extends UnknownType = DefaultUserType,
|
|
46
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
74
47
|
>(
|
|
75
|
-
props: MessageTextContainerPropsWithContext<
|
|
48
|
+
props: MessageTextContainerPropsWithContext<StreamChatGenerics>,
|
|
76
49
|
) => {
|
|
77
50
|
const theme = useTheme();
|
|
78
51
|
|
|
@@ -114,7 +87,7 @@ const MessageTextContainerWithContext = <
|
|
|
114
87
|
{MessageText ? (
|
|
115
88
|
<MessageText {...props} renderText={renderText} theme={theme} />
|
|
116
89
|
) : (
|
|
117
|
-
renderText<
|
|
90
|
+
renderText<StreamChatGenerics>({
|
|
118
91
|
colors,
|
|
119
92
|
markdownRules,
|
|
120
93
|
markdownStyles: {
|
|
@@ -134,17 +107,9 @@ const MessageTextContainerWithContext = <
|
|
|
134
107
|
);
|
|
135
108
|
};
|
|
136
109
|
|
|
137
|
-
const areEqual = <
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
Co extends string = DefaultCommandType,
|
|
141
|
-
Ev extends UnknownType = DefaultEventType,
|
|
142
|
-
Me extends UnknownType = DefaultMessageType,
|
|
143
|
-
Re extends UnknownType = DefaultReactionType,
|
|
144
|
-
Us extends UnknownType = DefaultUserType,
|
|
145
|
-
>(
|
|
146
|
-
prevProps: MessageTextContainerPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
|
|
147
|
-
nextProps: MessageTextContainerPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
|
|
110
|
+
const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(
|
|
111
|
+
prevProps: MessageTextContainerPropsWithContext<StreamChatGenerics>,
|
|
112
|
+
nextProps: MessageTextContainerPropsWithContext<StreamChatGenerics>,
|
|
148
113
|
) => {
|
|
149
114
|
const { message: prevMessage, onlyEmojis: prevOnlyEmojis } = prevProps;
|
|
150
115
|
const { message: nextMessage, onlyEmojis: nextOnlyEmojis } = nextProps;
|
|
@@ -172,29 +137,17 @@ const MemoizedMessageTextContainer = React.memo(
|
|
|
172
137
|
) as typeof MessageTextContainerWithContext;
|
|
173
138
|
|
|
174
139
|
export type MessageTextContainerProps<
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
Co extends string = DefaultCommandType,
|
|
178
|
-
Ev extends UnknownType = DefaultEventType,
|
|
179
|
-
Me extends UnknownType = DefaultMessageType,
|
|
180
|
-
Re extends UnknownType = DefaultReactionType,
|
|
181
|
-
Us extends UnknownType = DefaultUserType,
|
|
182
|
-
> = Partial<MessageTextContainerPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>>;
|
|
140
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
141
|
+
> = Partial<MessageTextContainerPropsWithContext<StreamChatGenerics>>;
|
|
183
142
|
|
|
184
143
|
export const MessageTextContainer = <
|
|
185
|
-
|
|
186
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
187
|
-
Co extends string = DefaultCommandType,
|
|
188
|
-
Ev extends UnknownType = DefaultEventType,
|
|
189
|
-
Me extends UnknownType = DefaultMessageType,
|
|
190
|
-
Re extends UnknownType = DefaultReactionType,
|
|
191
|
-
Us extends UnknownType = DefaultUserType,
|
|
144
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
192
145
|
>(
|
|
193
|
-
props: MessageTextContainerProps<
|
|
146
|
+
props: MessageTextContainerProps<StreamChatGenerics>,
|
|
194
147
|
) => {
|
|
195
148
|
const { message, onLongPress, onlyEmojis, onPress, preventPress } =
|
|
196
|
-
useMessageContext<
|
|
197
|
-
const { markdownRules, MessageText } = useMessagesContext<
|
|
149
|
+
useMessageContext<StreamChatGenerics>();
|
|
150
|
+
const { markdownRules, MessageText } = useMessagesContext<StreamChatGenerics>();
|
|
198
151
|
const { messageTextNumberOfLines } = props;
|
|
199
152
|
|
|
200
153
|
return (
|
|
@@ -17,16 +17,7 @@ import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
|
17
17
|
import { Unknown } from '../../../icons/Unknown';
|
|
18
18
|
|
|
19
19
|
import type { IconProps } from '../../../icons/utils/base';
|
|
20
|
-
import type {
|
|
21
|
-
DefaultAttachmentType,
|
|
22
|
-
DefaultChannelType,
|
|
23
|
-
DefaultCommandType,
|
|
24
|
-
DefaultEventType,
|
|
25
|
-
DefaultMessageType,
|
|
26
|
-
DefaultReactionType,
|
|
27
|
-
DefaultUserType,
|
|
28
|
-
UnknownType,
|
|
29
|
-
} from '../../../types/types';
|
|
20
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
30
21
|
import type { ReactionData } from '../../../utils/utils';
|
|
31
22
|
|
|
32
23
|
const styles = StyleSheet.create({
|
|
@@ -69,15 +60,9 @@ const Icon: React.FC<
|
|
|
69
60
|
};
|
|
70
61
|
|
|
71
62
|
export type ReactionListPropsWithContext<
|
|
72
|
-
|
|
73
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
74
|
-
Co extends string = DefaultCommandType,
|
|
75
|
-
Ev extends UnknownType = DefaultEventType,
|
|
76
|
-
Me extends UnknownType = DefaultMessageType,
|
|
77
|
-
Re extends UnknownType = DefaultReactionType,
|
|
78
|
-
Us extends UnknownType = DefaultUserType,
|
|
63
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
79
64
|
> = Pick<
|
|
80
|
-
MessageContextValue<
|
|
65
|
+
MessageContextValue<StreamChatGenerics>,
|
|
81
66
|
| 'alignment'
|
|
82
67
|
| 'message'
|
|
83
68
|
| 'onLongPress'
|
|
@@ -87,7 +72,7 @@ export type ReactionListPropsWithContext<
|
|
|
87
72
|
| 'reactions'
|
|
88
73
|
| 'showMessageOverlay'
|
|
89
74
|
> &
|
|
90
|
-
Pick<MessagesContextValue<
|
|
75
|
+
Pick<MessagesContextValue<StreamChatGenerics>, 'targetedMessage'> & {
|
|
91
76
|
messageContentWidth: number;
|
|
92
77
|
supportedReactions: ReactionData[];
|
|
93
78
|
fill?: string;
|
|
@@ -98,15 +83,9 @@ export type ReactionListPropsWithContext<
|
|
|
98
83
|
};
|
|
99
84
|
|
|
100
85
|
const ReactionListWithContext = <
|
|
101
|
-
|
|
102
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
103
|
-
Co extends string = DefaultCommandType,
|
|
104
|
-
Ev extends UnknownType = DefaultEventType,
|
|
105
|
-
Me extends UnknownType = DefaultMessageType,
|
|
106
|
-
Re extends UnknownType = DefaultReactionType,
|
|
107
|
-
Us extends UnknownType = DefaultUserType,
|
|
86
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
108
87
|
>(
|
|
109
|
-
props: ReactionListPropsWithContext<
|
|
88
|
+
props: ReactionListPropsWithContext<StreamChatGenerics>,
|
|
110
89
|
) => {
|
|
111
90
|
const {
|
|
112
91
|
alignment,
|
|
@@ -297,17 +276,9 @@ const ReactionListWithContext = <
|
|
|
297
276
|
);
|
|
298
277
|
};
|
|
299
278
|
|
|
300
|
-
const areEqual = <
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
Co extends string = DefaultCommandType,
|
|
304
|
-
Ev extends UnknownType = DefaultEventType,
|
|
305
|
-
Me extends UnknownType = DefaultMessageType,
|
|
306
|
-
Re extends UnknownType = DefaultReactionType,
|
|
307
|
-
Us extends UnknownType = DefaultUserType,
|
|
308
|
-
>(
|
|
309
|
-
prevProps: ReactionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
|
|
310
|
-
nextProps: ReactionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>,
|
|
279
|
+
const areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(
|
|
280
|
+
prevProps: ReactionListPropsWithContext<StreamChatGenerics>,
|
|
281
|
+
nextProps: ReactionListPropsWithContext<StreamChatGenerics>,
|
|
311
282
|
) => {
|
|
312
283
|
const {
|
|
313
284
|
message: prevMessage,
|
|
@@ -351,29 +322,17 @@ const MemoizedReactionList = React.memo(
|
|
|
351
322
|
) as typeof ReactionListWithContext;
|
|
352
323
|
|
|
353
324
|
export type ReactionListProps<
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
Ev extends UnknownType = DefaultEventType,
|
|
358
|
-
Me extends UnknownType = DefaultMessageType,
|
|
359
|
-
Re extends UnknownType = DefaultReactionType,
|
|
360
|
-
Us extends UnknownType = DefaultUserType,
|
|
361
|
-
> = Partial<Omit<ReactionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'messageContentWidth'>> &
|
|
362
|
-
Pick<ReactionListPropsWithContext<At, Ch, Co, Ev, Me, Re, Us>, 'messageContentWidth'>;
|
|
325
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
326
|
+
> = Partial<Omit<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>> &
|
|
327
|
+
Pick<ReactionListPropsWithContext<StreamChatGenerics>, 'messageContentWidth'>;
|
|
363
328
|
|
|
364
329
|
/**
|
|
365
330
|
* ReactionList - A high level component which implements all the logic required for a message reaction list
|
|
366
331
|
*/
|
|
367
332
|
export const ReactionList = <
|
|
368
|
-
|
|
369
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
370
|
-
Co extends string = DefaultCommandType,
|
|
371
|
-
Ev extends UnknownType = DefaultEventType,
|
|
372
|
-
Me extends UnknownType = DefaultMessageType,
|
|
373
|
-
Re extends UnknownType = DefaultReactionType,
|
|
374
|
-
Us extends UnknownType = DefaultUserType,
|
|
333
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
375
334
|
>(
|
|
376
|
-
props: ReactionListProps<
|
|
335
|
+
props: ReactionListProps<StreamChatGenerics>,
|
|
377
336
|
) => {
|
|
378
337
|
const {
|
|
379
338
|
alignment,
|
|
@@ -384,8 +343,8 @@ export const ReactionList = <
|
|
|
384
343
|
preventPress,
|
|
385
344
|
reactions,
|
|
386
345
|
showMessageOverlay,
|
|
387
|
-
} = useMessageContext<
|
|
388
|
-
const { supportedReactions, targetedMessage } = useMessagesContext<
|
|
346
|
+
} = useMessageContext<StreamChatGenerics>();
|
|
347
|
+
const { supportedReactions, targetedMessage } = useMessagesContext<StreamChatGenerics>();
|
|
389
348
|
|
|
390
349
|
return (
|
|
391
350
|
<MemoizedReactionList
|
|
@@ -21,16 +21,7 @@ import { parseLinksFromText } from './parseLinks';
|
|
|
21
21
|
|
|
22
22
|
import type { MessageContextValue } from '../../../../contexts/messageContext/MessageContext';
|
|
23
23
|
import type { Colors, MarkdownStyle } from '../../../../contexts/themeContext/utils/theme';
|
|
24
|
-
import type {
|
|
25
|
-
DefaultAttachmentType,
|
|
26
|
-
DefaultChannelType,
|
|
27
|
-
DefaultCommandType,
|
|
28
|
-
DefaultEventType,
|
|
29
|
-
DefaultMessageType,
|
|
30
|
-
DefaultReactionType,
|
|
31
|
-
DefaultUserType,
|
|
32
|
-
UnknownType,
|
|
33
|
-
} from '../../../../types/types';
|
|
24
|
+
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
34
25
|
import type { MessageType } from '../../../MessageList/hooks/useMessageList';
|
|
35
26
|
|
|
36
27
|
const defaultMarkdownStyles: MarkdownStyle = {
|
|
@@ -76,18 +67,12 @@ const parse: ParseFunction = (capture, parse, state) => ({
|
|
|
76
67
|
export type MarkdownRules = Partial<DefaultRules>;
|
|
77
68
|
|
|
78
69
|
export type RenderTextParams<
|
|
79
|
-
|
|
80
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
81
|
-
Co extends string = DefaultCommandType,
|
|
82
|
-
Ev extends UnknownType = DefaultEventType,
|
|
83
|
-
Me extends UnknownType = DefaultMessageType,
|
|
84
|
-
Re extends UnknownType = DefaultReactionType,
|
|
85
|
-
Us extends UnknownType = DefaultUserType,
|
|
70
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
86
71
|
> = Partial<
|
|
87
|
-
Pick<MessageContextValue<
|
|
72
|
+
Pick<MessageContextValue<StreamChatGenerics>, 'onLongPress' | 'onPress' | 'preventPress'>
|
|
88
73
|
> & {
|
|
89
74
|
colors: typeof Colors;
|
|
90
|
-
message: MessageType<
|
|
75
|
+
message: MessageType<StreamChatGenerics>;
|
|
91
76
|
markdownRules?: MarkdownRules;
|
|
92
77
|
markdownStyles?: MarkdownStyle;
|
|
93
78
|
messageOverlay?: boolean;
|
|
@@ -97,15 +82,9 @@ export type RenderTextParams<
|
|
|
97
82
|
};
|
|
98
83
|
|
|
99
84
|
export const renderText = <
|
|
100
|
-
|
|
101
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
102
|
-
Co extends string = DefaultCommandType,
|
|
103
|
-
Ev extends UnknownType = DefaultEventType,
|
|
104
|
-
Me extends UnknownType = DefaultMessageType,
|
|
105
|
-
Re extends UnknownType = DefaultReactionType,
|
|
106
|
-
Us extends UnknownType = DefaultUserType,
|
|
85
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
107
86
|
>(
|
|
108
|
-
params: RenderTextParams<
|
|
87
|
+
params: RenderTextParams<StreamChatGenerics>,
|
|
109
88
|
) => {
|
|
110
89
|
const {
|
|
111
90
|
colors,
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
|
|
3
3
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
4
|
-
import type {
|
|
5
|
-
DefaultAttachmentType,
|
|
6
|
-
DefaultChannelType,
|
|
7
|
-
DefaultCommandType,
|
|
8
|
-
DefaultEventType,
|
|
9
|
-
DefaultMessageType,
|
|
10
|
-
DefaultReactionType,
|
|
11
|
-
DefaultUserType,
|
|
12
|
-
UnknownType,
|
|
13
|
-
} from '../../../types/types';
|
|
4
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
14
5
|
import { isMessageWithStylesReadByAndDateSeparator } from '../../MessageList/hooks/useMessageList';
|
|
15
6
|
|
|
16
7
|
export const useCreateMessageContext = <
|
|
17
|
-
|
|
18
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
19
|
-
Co extends string = DefaultCommandType,
|
|
20
|
-
Ev extends UnknownType = DefaultEventType,
|
|
21
|
-
Me extends UnknownType = DefaultMessageType,
|
|
22
|
-
Re extends UnknownType = DefaultReactionType,
|
|
23
|
-
Us extends UnknownType = DefaultUserType,
|
|
8
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
24
9
|
>({
|
|
25
10
|
actionsEnabled,
|
|
26
11
|
alignment,
|
|
@@ -57,7 +42,7 @@ export const useCreateMessageContext = <
|
|
|
57
42
|
showMessageOverlay,
|
|
58
43
|
showMessageStatus,
|
|
59
44
|
threadList,
|
|
60
|
-
}: MessageContextValue<
|
|
45
|
+
}: MessageContextValue<StreamChatGenerics>) => {
|
|
61
46
|
const groupStylesLength = groupStyles.length;
|
|
62
47
|
const reactionsValue = reactions.map(({ own, type }) => `${own}${type}`).join();
|
|
63
48
|
const latestReactions = message.latest_reactions ? message.latest_reactions : undefined;
|
|
@@ -71,7 +56,7 @@ export const useCreateMessageContext = <
|
|
|
71
56
|
|
|
72
57
|
const quotedMessageDeletedValue = message.quoted_message?.deleted_at;
|
|
73
58
|
|
|
74
|
-
const messageContext: MessageContextValue<
|
|
59
|
+
const messageContext: MessageContextValue<StreamChatGenerics> = useMemo(
|
|
75
60
|
() => ({
|
|
76
61
|
actionsEnabled,
|
|
77
62
|
alignment,
|
|
@@ -8,26 +8,11 @@ import type {
|
|
|
8
8
|
} from '../../../contexts/messageContext/MessageContext';
|
|
9
9
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
10
10
|
|
|
11
|
-
import type {
|
|
12
|
-
DefaultAttachmentType,
|
|
13
|
-
DefaultChannelType,
|
|
14
|
-
DefaultCommandType,
|
|
15
|
-
DefaultEventType,
|
|
16
|
-
DefaultMessageType,
|
|
17
|
-
DefaultReactionType,
|
|
18
|
-
DefaultUserType,
|
|
19
|
-
UnknownType,
|
|
20
|
-
} from '../../../types/types';
|
|
11
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
21
12
|
import { MessageStatusTypes } from '../../../utils/utils';
|
|
22
13
|
|
|
23
14
|
export const useMessageActionHandlers = <
|
|
24
|
-
|
|
25
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
26
|
-
Co extends string = DefaultCommandType,
|
|
27
|
-
Ev extends UnknownType = DefaultEventType,
|
|
28
|
-
Me extends UnknownType = DefaultMessageType,
|
|
29
|
-
Re extends UnknownType = DefaultReactionType,
|
|
30
|
-
Us extends UnknownType = DefaultUserType,
|
|
15
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
31
16
|
>({
|
|
32
17
|
channel,
|
|
33
18
|
client,
|
|
@@ -40,7 +25,7 @@ export const useMessageActionHandlers = <
|
|
|
40
25
|
supportedReactions,
|
|
41
26
|
updateMessage,
|
|
42
27
|
}: Pick<
|
|
43
|
-
MessagesContextValue<
|
|
28
|
+
MessagesContextValue<StreamChatGenerics>,
|
|
44
29
|
| 'removeMessage'
|
|
45
30
|
| 'retrySendMessage'
|
|
46
31
|
| 'setEditingState'
|
|
@@ -48,11 +33,11 @@ export const useMessageActionHandlers = <
|
|
|
48
33
|
| 'supportedReactions'
|
|
49
34
|
| 'updateMessage'
|
|
50
35
|
> &
|
|
51
|
-
Pick<ChannelContextValue<
|
|
52
|
-
Pick<ChatContextValue<
|
|
53
|
-
Pick<MessageContextValue<
|
|
36
|
+
Pick<ChannelContextValue<StreamChatGenerics>, 'channel' | 'enforceUniqueReaction'> &
|
|
37
|
+
Pick<ChatContextValue<StreamChatGenerics>, 'client'> &
|
|
38
|
+
Pick<MessageContextValue<StreamChatGenerics>, 'message'>) => {
|
|
54
39
|
const handleResendMessage = () =>
|
|
55
|
-
retrySendMessage(message as MessageResponse<
|
|
40
|
+
retrySendMessage(message as MessageResponse<StreamChatGenerics>);
|
|
56
41
|
|
|
57
42
|
const handleQuotedReplyMessage = () => {
|
|
58
43
|
setQuotedMessageState(message);
|
|
@@ -149,7 +134,7 @@ export const useMessageActionHandlers = <
|
|
|
149
134
|
messageId,
|
|
150
135
|
{
|
|
151
136
|
type: reactionType,
|
|
152
|
-
} as Reaction<
|
|
137
|
+
} as Reaction<StreamChatGenerics>,
|
|
153
138
|
{ enforce_unique: enforceUniqueReaction },
|
|
154
139
|
);
|
|
155
140
|
}
|
|
@@ -24,16 +24,7 @@ import {
|
|
|
24
24
|
Unpin,
|
|
25
25
|
UserDelete,
|
|
26
26
|
} from '../../../icons';
|
|
27
|
-
import type {
|
|
28
|
-
DefaultAttachmentType,
|
|
29
|
-
DefaultChannelType,
|
|
30
|
-
DefaultCommandType,
|
|
31
|
-
DefaultEventType,
|
|
32
|
-
DefaultMessageType,
|
|
33
|
-
DefaultReactionType,
|
|
34
|
-
DefaultUserType,
|
|
35
|
-
UnknownType,
|
|
36
|
-
} from '../../../types/types';
|
|
27
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
37
28
|
import { MessageStatusTypes } from '../../../utils/utils';
|
|
38
29
|
|
|
39
30
|
import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
@@ -41,13 +32,7 @@ import type { MessageActionType } from '../../MessageOverlay/MessageActionListIt
|
|
|
41
32
|
import { removeReservedFields } from '../utils/removeReservedFields';
|
|
42
33
|
|
|
43
34
|
export const useMessageActions = <
|
|
44
|
-
|
|
45
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
46
|
-
Co extends string = DefaultCommandType,
|
|
47
|
-
Ev extends UnknownType = DefaultEventType,
|
|
48
|
-
Me extends UnknownType = DefaultMessageType,
|
|
49
|
-
Re extends UnknownType = DefaultReactionType,
|
|
50
|
-
Us extends UnknownType = DefaultUserType,
|
|
35
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
51
36
|
>({
|
|
52
37
|
channel,
|
|
53
38
|
client,
|
|
@@ -76,7 +61,7 @@ export const useMessageActions = <
|
|
|
76
61
|
t,
|
|
77
62
|
updateMessage,
|
|
78
63
|
}: Pick<
|
|
79
|
-
MessagesContextValue<
|
|
64
|
+
MessagesContextValue<StreamChatGenerics>,
|
|
80
65
|
| 'handleBlock'
|
|
81
66
|
| 'handleCopy'
|
|
82
67
|
| 'handleDelete'
|
|
@@ -96,13 +81,13 @@ export const useMessageActions = <
|
|
|
96
81
|
| 'supportedReactions'
|
|
97
82
|
| 'updateMessage'
|
|
98
83
|
> &
|
|
99
|
-
Pick<ChannelContextValue<
|
|
100
|
-
Pick<ChatContextValue<
|
|
84
|
+
Pick<ChannelContextValue<StreamChatGenerics>, 'channel' | 'enforceUniqueReaction'> &
|
|
85
|
+
Pick<ChatContextValue<StreamChatGenerics>, 'client'> &
|
|
101
86
|
Pick<OverlayContextValue, 'setOverlay'> &
|
|
102
|
-
Pick<ThreadContextValue<
|
|
103
|
-
Pick<MessageContextValue<
|
|
87
|
+
Pick<ThreadContextValue<StreamChatGenerics>, 'openThread'> &
|
|
88
|
+
Pick<MessageContextValue<StreamChatGenerics>, 'message'> &
|
|
104
89
|
Pick<TranslationContextValue, 't'> & {
|
|
105
|
-
onThreadSelect?: (message: MessageType<
|
|
90
|
+
onThreadSelect?: (message: MessageType<StreamChatGenerics>) => void;
|
|
106
91
|
}) => {
|
|
107
92
|
const {
|
|
108
93
|
theme: {
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import type { MessageContextValue } from '../../../contexts/messageContext/MessageContext';
|
|
2
2
|
import type { OwnCapabilitiesContextValue } from '../../../contexts/ownCapabilitiesContext/OwnCapabilitiesContext';
|
|
3
|
-
import type {
|
|
4
|
-
DefaultAttachmentType,
|
|
5
|
-
DefaultChannelType,
|
|
6
|
-
DefaultCommandType,
|
|
7
|
-
DefaultEventType,
|
|
8
|
-
DefaultMessageType,
|
|
9
|
-
DefaultReactionType,
|
|
10
|
-
DefaultUserType,
|
|
11
|
-
UnknownType,
|
|
12
|
-
} from '../../../types/types';
|
|
3
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
13
4
|
import type { MessageActionType } from '../../MessageOverlay/MessageActionListItem';
|
|
14
5
|
|
|
15
6
|
export type MessageActionsParams<
|
|
16
|
-
|
|
17
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
18
|
-
Co extends string = DefaultCommandType,
|
|
19
|
-
Ev extends UnknownType = DefaultEventType,
|
|
20
|
-
Me extends UnknownType = DefaultMessageType,
|
|
21
|
-
Re extends UnknownType = DefaultReactionType,
|
|
22
|
-
Us extends UnknownType = DefaultUserType,
|
|
7
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
23
8
|
> = {
|
|
24
9
|
blockUser: MessageActionType;
|
|
25
10
|
copyMessage: MessageActionType;
|
|
@@ -37,26 +22,14 @@ export type MessageActionsParams<
|
|
|
37
22
|
retry: MessageActionType;
|
|
38
23
|
threadReply: MessageActionType;
|
|
39
24
|
unpinMessage: MessageActionType;
|
|
40
|
-
} & Pick<MessageContextValue<
|
|
25
|
+
} & Pick<MessageContextValue<StreamChatGenerics>, 'message' | 'isMyMessage'>;
|
|
41
26
|
|
|
42
27
|
export type MessageActionsProp<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Co extends string = DefaultCommandType,
|
|
46
|
-
Ev extends UnknownType = DefaultEventType,
|
|
47
|
-
Me extends UnknownType = DefaultMessageType,
|
|
48
|
-
Re extends UnknownType = DefaultReactionType,
|
|
49
|
-
Us extends UnknownType = DefaultUserType,
|
|
50
|
-
> = (param: MessageActionsParams<At, Ch, Co, Ev, Me, Re, Us>) => MessageActionType[];
|
|
28
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
29
|
+
> = (param: MessageActionsParams<StreamChatGenerics>) => MessageActionType[];
|
|
51
30
|
|
|
52
31
|
export const messageActions = <
|
|
53
|
-
|
|
54
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
55
|
-
Co extends string = DefaultCommandType,
|
|
56
|
-
Ev extends UnknownType = DefaultEventType,
|
|
57
|
-
Me extends UnknownType = DefaultMessageType,
|
|
58
|
-
Re extends UnknownType = DefaultReactionType,
|
|
59
|
-
Us extends UnknownType = DefaultUserType,
|
|
32
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
60
33
|
>({
|
|
61
34
|
blockUser,
|
|
62
35
|
copyMessage,
|
|
@@ -74,7 +47,7 @@ export const messageActions = <
|
|
|
74
47
|
retry,
|
|
75
48
|
threadReply,
|
|
76
49
|
unpinMessage,
|
|
77
|
-
}: MessageActionsParams<
|
|
50
|
+
}: MessageActionsParams<StreamChatGenerics>) => {
|
|
78
51
|
if (messageReactions) {
|
|
79
52
|
return undefined;
|
|
80
53
|
}
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
DefaultAttachmentType,
|
|
3
|
-
DefaultChannelType,
|
|
4
|
-
DefaultCommandType,
|
|
5
|
-
DefaultEventType,
|
|
6
|
-
DefaultMessageType,
|
|
7
|
-
DefaultReactionType,
|
|
8
|
-
DefaultUserType,
|
|
9
|
-
UnknownType,
|
|
10
|
-
} from '../../../types/types';
|
|
1
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
11
2
|
import type { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
12
3
|
|
|
13
4
|
export const removeReservedFields = <
|
|
14
|
-
|
|
15
|
-
Ch extends UnknownType = DefaultChannelType,
|
|
16
|
-
Co extends string = DefaultCommandType,
|
|
17
|
-
Ev extends UnknownType = DefaultEventType,
|
|
18
|
-
Me extends UnknownType = DefaultMessageType,
|
|
19
|
-
Re extends UnknownType = DefaultReactionType,
|
|
20
|
-
Us extends UnknownType = DefaultUserType,
|
|
5
|
+
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
|
|
21
6
|
>(
|
|
22
|
-
message: MessageType<
|
|
7
|
+
message: MessageType<StreamChatGenerics>,
|
|
23
8
|
) => {
|
|
24
9
|
const retryMessage = { ...message };
|
|
25
10
|
const reserved = [
|