profinansy-ui-lib 4.1.88 → 4.1.89
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/dist/components/blocks/SupportV2/SupportV2.d.ts +1 -1
- package/dist/components/blocks/SupportV2/SupportV2.styled.d.ts +2 -0
- package/dist/components/blocks/SupportV2/SupportV2.typed.d.ts +8 -0
- package/dist/components/blocks/SupportV2/components/ChatHeader.d.ts +2 -1
- package/dist/components/uikit/Dropdown/Dropdown.typed.d.ts +1 -0
- package/dist/features/user-chats/components/ChatAvatar/ChatAvatar.d.ts +12 -0
- package/dist/features/user-chats/components/ChatAvatar/ChatAvatar.styled.d.ts +8 -0
- package/dist/features/user-chats/components/ChatAvatar/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatAvatar/utils/getChatAvatarTint.d.ts +2 -0
- package/dist/features/user-chats/components/ChatAvatar/utils/getChatInitials.d.ts +1 -0
- package/dist/features/user-chats/components/ChatCategorySkeleton/ChatCategoryBubblesSkeleton.d.ts +2 -0
- package/dist/features/user-chats/components/ChatCategorySkeleton/ChatCategorySkeleton.styled.d.ts +4 -0
- package/dist/features/user-chats/components/ChatCategorySkeleton/ChatHubCategoryCardsSkeleton.d.ts +2 -0
- package/dist/features/user-chats/components/ChatCategorySkeleton/index.d.ts +2 -0
- package/dist/features/user-chats/components/ChatMessagesLoadError/ChatMessagesLoadError.d.ts +9 -0
- package/dist/features/user-chats/components/ChatMessagesLoadError/ChatMessagesLoadError.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatMessagesLoadError/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsFab/ChatsFab.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsFab/ChatsFab.styled.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsFab/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsHubPanel/ChatsHubPanel.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsHubPanel/ChatsHubPanel.styled.d.ts +6 -0
- package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubCard/ChatHubCard.d.ts +12 -0
- package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubCard/ChatHubCard.styled.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubCard/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubWrapper/ChatHubWrapper.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubWrapper/ChatHubWrapper.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubWrapper/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsHubPanel/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/ChatsOverlay.d.ts +17 -0
- package/dist/features/user-chats/components/ChatsOverlay/ChatsOverlay.styled.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/ChatDetailsContent.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/ChatDetailsModal.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/ChatDetailsModal.styled.d.ts +6 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/chatDetails.utils.d.ts +21 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsAttachments/ChatDetailsAttachments.d.ts +19 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsAttachments/ChatDetailsAttachments.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsAttachments/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsProfile/ChatDetailsProfile.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsProfile/ChatDetailsProfile.styled.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsProfile/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsTabs/ChatDetailsTabs.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsTabs/ChatDetailsTabs.styled.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsTabs/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/FileList/FileList.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/FileList/FileList.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/FileList/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/LinkList/LinkList.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/LinkList/LinkList.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/LinkList/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/MediaGrid/MediaGrid.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/MediaGrid/MediaGrid.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/MediaGrid/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/hooks/useChatDetailsAttachments.d.ts +16 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/ChatList.d.ts +25 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/ChatList.styled.d.ts +12 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatCard/ChatCard.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatCard/ChatCard.styled.d.ts +29 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatCard/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatContextMenu/ChatContextMenu.d.ts +12 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatContextMenu/ChatContextMenu.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatContextMenu/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatListInboxSkeleton/ChatListInboxSkeleton.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatListInboxSkeleton/ChatListInboxSkeleton.styled.d.ts +4 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatListInboxSkeleton/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/SearchMessageHit/SearchMessageHit.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/SearchMessageHit/SearchMessageHit.styled.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/SearchMessageHit/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatSearchInput/ChatSearchInput.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatSearchInput/ChatSearchInput.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatSearchInput/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/ChatThread.d.ts +16 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/ChatThread.styled.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/ChatHeader.d.ts +15 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/ChatHeader.styled.d.ts +12 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/ChatHeaderSkeleton.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderMobile/ChatHeaderMobile.d.ts +14 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderMobile/ChatHeaderMobile.styled.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderMobile/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderSearch/ChatHeaderSearch.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderSearch/ChatHeaderSearch.styled.d.ts +19 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderSearch/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/index.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadBody/ChatThreadBody.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadBody/ChatThreadBody.styled.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadBody/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadResolving/ChatThreadResolving.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadResolving/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/Composer.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/Composer.styled.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/Composer.types.d.ts +18 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ComposerField/ComposerField.d.ts +14 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ComposerField/ComposerField.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ComposerField/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImagePreview/ImagePreview.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImagePreview/ImagePreview.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImagePreview/index.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImageUpload/ImageUpload.d.ts +16 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImageUpload/ImageUpload.styled.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImageUpload/index.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/hooks/useComposer.d.ts +21 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/hooks/useLinkPreview.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/index.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ContextMenu/ContextMenu.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ContextMenu/ContextMenuItems.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ContextMenu/index.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/DeleteChatModal/DeleteChatModal.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/DeleteChatModal/DeleteChatModal.styled.d.ts +4 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/DeleteChatModal/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/HighlightedText/HighlightedText.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/HighlightedText/HighlightedText.styled.d.ts +4 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/HighlightedText/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/MessageListSkeleton/MessageListSkeleton.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/MessageListSkeleton/MessageListSkeleton.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/MessageListSkeleton/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/constants/chatsUi.d.ts +6 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/ChatView.types.d.ts +22 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatDraftActions.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatListActions.d.ts +20 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatMessageActions.d.ts +18 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatThreadModel.d.ts +80 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChats.d.ts +51 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChats.types.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatsQueries.d.ts +36 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useDownloadChatFile.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useInboxMessageSearch.d.ts +15 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useMappedChats.d.ts +21 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/copyChatMessage.d.ts +4 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/createZipArchive.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/fetchChatAttachment.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/formatChatTime.d.ts +6 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/formatFileSize.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getChatComposeAccess.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getChatImageUrls.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getLinkPreview.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getMessageAuthorName.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getMessagePreview.d.ts +4 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/optimisticMessage.d.ts +19 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/saveChatImage.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/searchChatMessages.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/shouldStackMessages.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/EmptyState/EmptyState.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/EmptyState/EmptyState.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/EmptyState/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/ImageViewerModal.d.ts +10 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/ImageViewerModal.styled.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/MessageList.d.ts +18 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/MessageList.styled.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/MessageList.types.d.ts +18 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/EmptyMessage/EmptyMessage.d.ts +6 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/EmptyMessage/EmptyMessage.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/EmptyMessage/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/MessageCard.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/MessageCard.styled.d.ts +19 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/FileAttachment/FileAttachment.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/FileAttachment/FileAttachment.styled.d.ts +14 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/FileAttachment/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageActions/MessageActions.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageActions/MessageActions.styled.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageActions/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageBubbleMenu/MessageBubbleMenu.d.ts +14 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageBubbleMenu/MessageBubbleMenu.styled.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageBubbleMenu/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageContextMenu/MessageContextMenu.d.ts +12 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageContextMenu/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageContextMenu/messageContextMenuItems.d.ts +23 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageFooter/MessageFooter.d.ts +13 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageFooter/MessageFooter.styled.d.ts +26 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageFooter/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageLinkPreview/MessageLinkPreview.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageLinkPreview/MessageLinkPreview.styled.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageLinkPreview/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMedia/MessageMedia.d.ts +8 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMedia/MessageMedia.styled.d.ts +16 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMedia/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMediaWithUpload/MessageMediaWithUpload.d.ts +12 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMediaWithUpload/MessageMediaWithUpload.styled.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMediaWithUpload/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageQuote/MessageQuote.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageQuote/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageReactions/MessageReactions.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageReactions/MessageReactions.styled.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageReactions/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageText/MessageText.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageText/MessageText.styled.d.ts +5 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageText/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/SystemMessage/SystemMessage.d.ts +7 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/SystemMessage/SystemMessage.styled.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/SystemMessage/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/index.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/OverlayHeader.d.ts +12 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/OverlayHeader.styled.d.ts +16 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/OverlayHeaderMobile.d.ts +11 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/index.d.ts +2 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/Snippet.d.ts +18 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/Snippet.styled.d.ts +16 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/index.d.ts +1 -0
- package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/utils/getSnippetTextColor.d.ts +4 -0
- package/dist/features/user-chats/components/ChatsUploadProgressControl/ChatsUploadProgressControl.d.ts +3 -0
- package/dist/features/user-chats/components/ChatsUploadProgressControl/ChatsUploadProgressControl.styled.d.ts +6 -0
- package/dist/features/user-chats/components/ChatsUploadProgressControl/ChatsUploadProgressControl.typed.d.ts +9 -0
- package/dist/features/user-chats/components/ChatsUploadProgressControl/index.d.ts +2 -0
- package/dist/features/user-chats/components/ComposerFileNotice/ComposerFileNotice.d.ts +6 -0
- package/dist/features/user-chats/components/ComposerFileNotice/ComposerFileNotice.styled.d.ts +2 -0
- package/dist/features/user-chats/components/ComposerFileNotice/index.d.ts +2 -0
- package/dist/features/user-chats/components/ComposerFileNotice/useComposerFileNotice.d.ts +4 -0
- package/dist/features/user-chats/components/JumpToLatestButton/JumpToLatestButton.d.ts +7 -0
- package/dist/features/user-chats/components/JumpToLatestButton/JumpToLatestButton.styled.d.ts +3 -0
- package/dist/features/user-chats/components/JumpToLatestButton/index.d.ts +1 -0
- package/dist/features/user-chats/components/MessageFailedMenu/MessageFailedMenu.d.ts +12 -0
- package/dist/features/user-chats/components/MessageFailedMenu/MessageFailedMenu.styled.d.ts +3 -0
- package/dist/features/user-chats/components/MessageFailedMenu/index.d.ts +1 -0
- package/dist/features/user-chats/components/SupportChatPanel/SupportChatPanel.d.ts +8 -0
- package/dist/features/user-chats/components/SupportChatPanel/SupportChatPanel.styled.d.ts +7 -0
- package/dist/features/user-chats/components/SupportChatPanel/components/SupportCompactHubHeader/SupportCompactHubHeader.d.ts +9 -0
- package/dist/features/user-chats/components/SupportChatPanel/components/SupportCompactHubHeader/SupportCompactHubHeader.styled.d.ts +5 -0
- package/dist/features/user-chats/components/SupportChatPanel/components/SupportCompactHubHeader/index.d.ts +1 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/SupportInboxChat.d.ts +10 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/SupportInboxChat.styled.d.ts +2 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/ChatFeed.d.ts +28 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/CommandChips.d.ts +8 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/GuestGate.d.ts +18 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/MessageBubble.d.ts +3 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/MessageBubble.typed.d.ts +22 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessageBubbleBody/MessageBubbleBody.d.ts +5 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessageBubbleBody/MessageBubbleBody.styled.d.ts +12 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessageBubbleBody/index.d.ts +1 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessagePlainTextRow/MessagePlainTextRow.d.ts +9 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessagePlainTextRow/MessagePlainTextRow.styled.d.ts +6 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessagePlainTextRow/index.d.ts +1 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/SystemMessageBubble/SystemMessageBubble.d.ts +15 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/SystemMessageBubble/SystemMessageBubble.styled.d.ts +3 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/SystemMessageBubble/index.d.ts +1 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/hooks/useSupportMessageAttachments.d.ts +10 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/index.d.ts +2 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/SupportMessageText.styled.d.ts +2 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/formatProgressBytes.d.ts +1 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/renderSupportMessageText.d.ts +2 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/supportMessageText.const.d.ts +3 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/NpsRating.d.ts +6 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/chatInbox.styled.d.ts +36 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/getSupportImageUrls.d.ts +2 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/mapSupportAttachmentToChatFile.d.ts +3 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/mapSupportLinkPreview.d.ts +4 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/mapSupportMessageForFooter.d.ts +3 -0
- package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/readSupportLocalFile.d.ts +3 -0
- package/dist/features/user-chats/components/SupportChatPanel/index.d.ts +1 -0
- package/dist/features/user-chats/components/UnreadMessagesDivider/UnreadMessagesDivider.d.ts +6 -0
- package/dist/features/user-chats/components/UnreadMessagesDivider/UnreadMessagesDivider.styled.d.ts +2 -0
- package/dist/features/user-chats/components/UnreadMessagesDivider/index.d.ts +1 -0
- package/dist/features/user-chats/components/UserChats/UserChats.d.ts +6 -0
- package/dist/features/user-chats/components/UserChats/index.d.ts +2 -0
- package/dist/features/user-chats/components/UserChatsWidget/UserChatsWidget.d.ts +7 -0
- package/dist/features/user-chats/components/UserChatsWidget/UserChatsWidget.styled.d.ts +14 -0
- package/dist/features/user-chats/components/UserChatsWidget/index.d.ts +1 -0
- package/dist/features/user-chats/constants/attachments.const.d.ts +1 -0
- package/dist/features/user-chats/constants/categoryPresentation.const.d.ts +9 -0
- package/dist/features/user-chats/constants/composerNotice.const.d.ts +1 -0
- package/dist/features/user-chats/constants/supportInboxChat.const.d.ts +14 -0
- package/dist/features/user-chats/constants/supportWidget.const.d.ts +5 -0
- package/dist/features/user-chats/constants/userChats.const.d.ts +38 -0
- package/dist/features/user-chats/entities/chats.constants.d.ts +6 -0
- package/dist/features/user-chats/entities/chats.interface.d.ts +266 -0
- package/dist/features/user-chats/entities/chats.list.d.ts +19 -0
- package/dist/features/user-chats/entities/chats.messages.d.ts +19 -0
- package/dist/features/user-chats/entities/chats.profiles.d.ts +18 -0
- package/dist/features/user-chats/entities/chats.unwrap.d.ts +4 -0
- package/dist/features/user-chats/entities/chats.utils.d.ts +4 -0
- package/dist/features/user-chats/entities/chats.view-types.d.ts +107 -0
- package/dist/features/user-chats/entities/index.d.ts +3 -0
- package/dist/features/user-chats/hooks/supportInboxListPreviewContext.d.ts +9 -0
- package/dist/features/user-chats/hooks/useChatComposerState.d.ts +23 -0
- package/dist/features/user-chats/hooks/useChatHostPaths.d.ts +9 -0
- package/dist/features/user-chats/hooks/useChatImageViewer.d.ts +8 -0
- package/dist/features/user-chats/hooks/useChatMessageSearch.d.ts +12 -0
- package/dist/features/user-chats/hooks/useChatProfiles.d.ts +6 -0
- package/dist/features/user-chats/hooks/useChatThreadScroll.d.ts +26 -0
- package/dist/features/user-chats/hooks/useChatsPanelTransition.d.ts +9 -0
- package/dist/features/user-chats/hooks/useChatsRealtime.d.ts +5 -0
- package/dist/features/user-chats/hooks/useImageViewerModal.d.ts +7 -0
- package/dist/features/user-chats/hooks/useLongPress.d.ts +13 -0
- package/dist/features/user-chats/hooks/useSupportInboxListPreview.d.ts +12 -0
- package/dist/features/user-chats/hooks/useUserChatsCategories.d.ts +20 -0
- package/dist/features/user-chats/hooks/useUserChatsNavigation.d.ts +19 -0
- package/dist/features/user-chats/hooks/useUserChatsTranslation.d.ts +2 -0
- package/dist/features/user-chats/index.d.ts +4 -0
- package/dist/features/user-chats/store/UserChatsProvider.d.ts +24 -0
- package/dist/features/user-chats/store/chats.api.d.ts +1 -0
- package/dist/features/user-chats/store/chats.cache.d.ts +24 -0
- package/dist/features/user-chats/store/chats.endpoints.d.ts +4254 -0
- package/dist/features/user-chats/store/chatsBaseQuery.d.ts +14 -0
- package/dist/features/user-chats/store/chatsConfig.slice.d.ts +12 -0
- package/dist/features/user-chats/store/chatsStore.d.ts +15 -0
- package/dist/features/user-chats/store/chatsStoreHooks.d.ts +5 -0
- package/dist/features/user-chats/store/userChatsUi.d.ts +24 -0
- package/dist/features/user-chats/styles/chatsPanelMotion.styled.d.ts +5 -0
- package/dist/features/user-chats/utils/blobUrlToFile.d.ts +1 -0
- package/dist/features/user-chats/utils/hasChatProductAccess.d.ts +15 -0
- package/dist/features/user-chats/utils/knownChatCategory.d.ts +2 -0
- package/dist/features/user-chats/utils/mergeChatsQueryFromUrl.d.ts +2 -0
- package/dist/features/user-chats/utils/supportInboxListPreview.d.ts +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/localization/translations/support.d.ts +4 -0
- package/dist/localization/translations/userChats.d.ts +260 -0
- package/dist/profinansy-ui-lib.cjs +4964 -2236
- package/dist/profinansy-ui-lib.cjs.map +1 -1
- package/dist/profinansy-ui-lib.es.js +26239 -14887
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/dist/utils/declOfNum.d.ts +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IChatListItem, IChatMessage } from '../../../../../entities/chats.view-types';
|
|
3
|
+
import type { IComposerHandle } from '../components/Composer';
|
|
4
|
+
import type { IChatViewMessageActions, IChatViewState } from './ChatView.types';
|
|
5
|
+
export interface IUseChatThreadModelParams {
|
|
6
|
+
chat: IChatListItem;
|
|
7
|
+
messages: IChatMessage[];
|
|
8
|
+
state: IChatViewState;
|
|
9
|
+
messageActions: IChatViewMessageActions;
|
|
10
|
+
matchQuery?: string;
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
detailsOpen?: boolean;
|
|
13
|
+
onCloseDetails?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const useChatThreadModel: ({ chat, messages, state, messageActions, matchQuery, onBack, detailsOpen, onCloseDetails }: IUseChatThreadModelParams) => {
|
|
16
|
+
chat: IChatListItem;
|
|
17
|
+
title: string;
|
|
18
|
+
matchQuery: string;
|
|
19
|
+
detailsOpen: boolean;
|
|
20
|
+
showInlineDetails: boolean;
|
|
21
|
+
searchQuery: string;
|
|
22
|
+
setSearchQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
23
|
+
handleBack: () => void;
|
|
24
|
+
dropActive: boolean;
|
|
25
|
+
canCompose: boolean;
|
|
26
|
+
blockedMessage: string;
|
|
27
|
+
BlockedIcon: React.FC<{}>;
|
|
28
|
+
visibleMessages: IChatMessage[];
|
|
29
|
+
isListLoading: boolean;
|
|
30
|
+
isMessagesError: boolean;
|
|
31
|
+
onRetryLoadMessages: () => void;
|
|
32
|
+
isSearchActive: boolean;
|
|
33
|
+
hasMoreMessages: boolean;
|
|
34
|
+
isFetchingOlderMessages: boolean;
|
|
35
|
+
lastReadMessageId: number;
|
|
36
|
+
focusMessageId: number;
|
|
37
|
+
scroll: {
|
|
38
|
+
listRef: React.MutableRefObject<HTMLDivElement>;
|
|
39
|
+
showJumpDown: boolean;
|
|
40
|
+
isDateChipVisible: boolean;
|
|
41
|
+
activeDate: string;
|
|
42
|
+
handleScroll: () => void;
|
|
43
|
+
handleJumpDown: () => void;
|
|
44
|
+
jumpToMessage: (messageId: string, options?: {
|
|
45
|
+
defer?: boolean;
|
|
46
|
+
}) => boolean;
|
|
47
|
+
scrollToBottomAfterSend: () => void;
|
|
48
|
+
highlightedMessageId: string;
|
|
49
|
+
highlightNonce: number;
|
|
50
|
+
};
|
|
51
|
+
composer: {
|
|
52
|
+
draft: string;
|
|
53
|
+
composerTarget: import("../../../../../hooks/useChatComposerState").IComposerTarget;
|
|
54
|
+
handleDraftChange: (value: string) => void;
|
|
55
|
+
handleCancelContext: () => void;
|
|
56
|
+
handleReply: (message: IChatMessage) => void;
|
|
57
|
+
handleEdit: (message: IChatMessage) => void;
|
|
58
|
+
handleSend: (text: string, imageUrls: string[], linkPreview?: import("../../../../../entities/chats.view-types").IChatLinkPreview) => void;
|
|
59
|
+
handleDeleteMessage: (messageId: string) => void;
|
|
60
|
+
};
|
|
61
|
+
composerRef: React.MutableRefObject<IComposerHandle>;
|
|
62
|
+
imageViewer: {
|
|
63
|
+
chatImageUrls: string[];
|
|
64
|
+
viewerIndex: number;
|
|
65
|
+
setViewerIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
66
|
+
handleOpenImage: (url: string) => void;
|
|
67
|
+
};
|
|
68
|
+
onSendFile: (chatId: string, file: File) => void;
|
|
69
|
+
onRetryMessage: (chatId: string, messageId: string) => void;
|
|
70
|
+
onCancelSending: (chatId: string, messageId: string) => void;
|
|
71
|
+
onToggleReaction: (chatId: string, messageId: string, emoji: string) => void;
|
|
72
|
+
handleQuoteClick: (messageId: string) => void;
|
|
73
|
+
dragZoneProps: {
|
|
74
|
+
onDragEnter: (event: React.DragEvent) => void;
|
|
75
|
+
onDragOver: (event: React.DragEvent) => void;
|
|
76
|
+
onDragLeave: (event: React.DragEvent) => void;
|
|
77
|
+
onDrop: (event: React.DragEvent) => void;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export type TChatThreadModel = ReturnType<typeof useChatThreadModel>;
|
package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChats.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TOverlayChatId } from '../../../../../constants/userChats.const';
|
|
3
|
+
import type { IChatViewMessageActions, IChatViewState } from './ChatView.types';
|
|
4
|
+
interface IUseChatsOptions {
|
|
5
|
+
categoryId?: number;
|
|
6
|
+
chatId?: TOverlayChatId;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
onSelectChat?: (id: TOverlayChatId) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useChats: ({ categoryId, chatId: chatIdFromUrl, enabled, onSelectChat }?: IUseChatsOptions) => {
|
|
11
|
+
refetchInbox: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void | import("../../../../../entities/chats.interface").IGetInboxParams, import("@reduxjs/toolkit/query").BaseQueryFn<import("../../../../../store/chatsBaseQuery").IChatsQueryArgs, unknown, import("../../../../../store/chatsBaseQuery").IChatsQueryError, {}, {}>, "ChatInbox" | "ChatDetail" | "ChatMessages" | "ChatDraft" | "ChatCategories", import("../../../../../entities/chats.interface").IChatListPage, "chatsApi">>;
|
|
12
|
+
handleSendMessage: (chatId: string, text: string, imageUrls?: string[], quote?: import("../../../../../entities/chats.view-types").IChatMessageQuote, linkPreview?: import("../../../../../entities/chats.view-types").IChatLinkPreview) => void;
|
|
13
|
+
handleSendFile: (chatId: string, file: File) => void;
|
|
14
|
+
handleCancelSending: (_chatId: string, messageId: string) => void;
|
|
15
|
+
handleEditMessage: (chatId: string, messageId: string, text: string) => Promise<void>;
|
|
16
|
+
handleToggleReaction: (chatId: string, messageId: string, emoji: string) => Promise<void>;
|
|
17
|
+
handleRetryMessage: (_chatId: string, messageId: string) => void;
|
|
18
|
+
handleDeleteMessage: (chatId: string, messageId: string) => Promise<void>;
|
|
19
|
+
handleDeleteFailedMessage: (chatId: string, messageId: string) => Promise<void>;
|
|
20
|
+
handleDraftChange: (chatId: string, draftText: string) => void;
|
|
21
|
+
handleSelectChat: (chatId: string) => void;
|
|
22
|
+
handleSelectSearchMessage: (chatId: string, messageId: string) => void;
|
|
23
|
+
handleToggleRead: (chatId: string) => Promise<void>;
|
|
24
|
+
handlePin: (chatId: string) => Promise<void>;
|
|
25
|
+
handleToggleNotifications: (chatId: string) => Promise<void>;
|
|
26
|
+
handleConfirmDelete: () => Promise<void>;
|
|
27
|
+
search: string;
|
|
28
|
+
currentUserId: number;
|
|
29
|
+
selectedChatId: string;
|
|
30
|
+
chatIdToDelete: string;
|
|
31
|
+
setChatIdToDelete: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
32
|
+
chatToDelete: import("../../../../../entities/chats.view-types").IChatListItem;
|
|
33
|
+
visibleChats: import("../../../../../entities/chats.view-types").IChatListItem[];
|
|
34
|
+
messageHits: import("../../../../../entities/chats.view-types").IInboxMessageHit[];
|
|
35
|
+
isMessageSearchActive: boolean;
|
|
36
|
+
isMessageSearchLoading: boolean;
|
|
37
|
+
focusMessageId: string;
|
|
38
|
+
selectedChat: import("../../../../../entities/chats.view-types").IChatListItem;
|
|
39
|
+
isSupportThread: boolean;
|
|
40
|
+
syncSupportListPreview: (messages: import("../../../../../../../components/blocks/SupportV2/SupportV2.typed").ISupportLayoutMessage[]) => void;
|
|
41
|
+
selectedMessages: import("../../../../../entities/chats.view-types").IChatMessage[];
|
|
42
|
+
chatViewState: IChatViewState;
|
|
43
|
+
chatViewMessageActions: IChatViewMessageActions;
|
|
44
|
+
isInboxLoading: boolean;
|
|
45
|
+
isInboxFetching: boolean;
|
|
46
|
+
isInboxListLoading: boolean;
|
|
47
|
+
isInboxError: boolean;
|
|
48
|
+
isRestoringThread: boolean;
|
|
49
|
+
setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { TLoadChatProfiles } from '../../../../../hooks/useChatProfiles';
|
|
2
|
+
import { type IMessagesPage, type TChatProfilesMap } from '../../../../../entities/index';
|
|
3
|
+
interface IParams {
|
|
4
|
+
search: string;
|
|
5
|
+
categoryId?: number;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
selectedChatId: string | null;
|
|
8
|
+
profiles: TChatProfilesMap;
|
|
9
|
+
loadProfiles: TLoadChatProfiles;
|
|
10
|
+
}
|
|
11
|
+
export declare const useChatsQueries: ({ search, categoryId, enabled, selectedChatId, loadProfiles }: IParams) => {
|
|
12
|
+
inbox: import("../../../../../entities/chats.interface").IChatListPage;
|
|
13
|
+
selectedChatIdNum: number;
|
|
14
|
+
chatDetail: import("../../../../../entities/chats.interface").IChatDetailOut;
|
|
15
|
+
messagesPage: IMessagesPage;
|
|
16
|
+
serverDraft: import("../../../../../entities/chats.interface").IDraftOut;
|
|
17
|
+
isInboxLoading: boolean;
|
|
18
|
+
isInboxFetching: boolean;
|
|
19
|
+
isInboxListLoading: boolean;
|
|
20
|
+
isChatDetailPending: boolean;
|
|
21
|
+
isMessagesLoading: boolean;
|
|
22
|
+
isMessagesError: boolean;
|
|
23
|
+
isInboxError: boolean;
|
|
24
|
+
hasMoreMessages: boolean;
|
|
25
|
+
isFetchingOlderMessages: boolean;
|
|
26
|
+
loadOlderMessages: () => Promise<void>;
|
|
27
|
+
loadOlderUntilMessage: (messageId: number) => Promise<void>;
|
|
28
|
+
refetchInbox: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void | import("../../../../../entities/chats.interface").IGetInboxParams, import("@reduxjs/toolkit/query").BaseQueryFn<import("../../../../../store/chatsBaseQuery").IChatsQueryArgs, unknown, import("../../../../../store/chatsBaseQuery").IChatsQueryError, {}, {}>, "ChatInbox" | "ChatDetail" | "ChatMessages" | "ChatDraft" | "ChatCategories", import("../../../../../entities/chats.interface").IChatListPage, "chatsApi">>;
|
|
29
|
+
refetchMessages: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
|
|
30
|
+
chatId: number;
|
|
31
|
+
limit?: number;
|
|
32
|
+
before_id?: number;
|
|
33
|
+
after_id?: number;
|
|
34
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<import("../../../../../store/chatsBaseQuery").IChatsQueryArgs, unknown, import("../../../../../store/chatsBaseQuery").IChatsQueryError, {}, {}>, "ChatInbox" | "ChatDetail" | "ChatMessages" | "ChatDraft" | "ChatCategories", IMessagesPage, "chatsApi">>;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IChatFileAttachment, IChatMessage } from '../../../../../entities/chats.view-types';
|
|
2
|
+
interface IChatImageDownload {
|
|
3
|
+
id?: number;
|
|
4
|
+
url: string;
|
|
5
|
+
filename?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const useDownloadChatFile: () => (file: Pick<IChatFileAttachment, 'id' | 'url' | 'filename'>, onProgress?: (loadedBytes: number) => void) => Promise<void>;
|
|
8
|
+
export declare const useCopyChatMessage: () => (message: IChatMessage) => Promise<import("../utils/copyChatMessage").TCopyChatMessageResult>;
|
|
9
|
+
export declare const useDownloadChatImages: () => (images: IChatImageDownload[]) => Promise<void>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TLoadChatProfiles } from '../../../../../hooks/useChatProfiles';
|
|
2
|
+
import { type TChatProfilesMap } from '../../../../../entities/index';
|
|
3
|
+
import type { IInboxMessageHit } from '../../../../../entities/chats.view-types';
|
|
4
|
+
interface IParams {
|
|
5
|
+
search: string;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
profiles: TChatProfilesMap;
|
|
8
|
+
loadProfiles: TLoadChatProfiles;
|
|
9
|
+
}
|
|
10
|
+
export declare const useInboxMessageSearch: ({ search, enabled, profiles, loadProfiles }: IParams) => {
|
|
11
|
+
isMessageSearchActive: boolean;
|
|
12
|
+
messageHits: IInboxMessageHit[];
|
|
13
|
+
isMessageSearchLoading: boolean;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type IChatDetailOut, type IChatListPage, type IDraftOut, type IMessagesPage, type TChatProfilesMap } from '../../../../../entities/index';
|
|
2
|
+
import type { IChatListItem } from '../../../../../entities/chats.view-types';
|
|
3
|
+
interface IParams {
|
|
4
|
+
currentUserId?: number;
|
|
5
|
+
profiles: TChatProfilesMap;
|
|
6
|
+
inbox?: IChatListPage;
|
|
7
|
+
selectedChatId: string | null;
|
|
8
|
+
selectedChatIdNum: number | null;
|
|
9
|
+
chatIdToDelete: string | null;
|
|
10
|
+
chatDetail?: IChatDetailOut;
|
|
11
|
+
messagesPage?: IMessagesPage;
|
|
12
|
+
serverDraft?: IDraftOut | null;
|
|
13
|
+
localDrafts: Record<string, string>;
|
|
14
|
+
}
|
|
15
|
+
export declare const useMappedChats: ({ currentUserId, profiles, inbox, selectedChatId, selectedChatIdNum, chatIdToDelete, chatDetail, messagesPage, serverDraft, localDrafts }: IParams) => {
|
|
16
|
+
chats: IChatListItem[];
|
|
17
|
+
selectedChat: IChatListItem;
|
|
18
|
+
chatToDelete: IChatListItem;
|
|
19
|
+
selectedMessages: import("../../../../../entities/chats.view-types").IChatMessage[];
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChatThread } from './ChatThread';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChatMessage } from '../../../../../entities/chats.view-types';
|
|
2
|
+
export type TCopyChatMessageResult = 'text' | 'image';
|
|
3
|
+
export declare const canCopyMessage: (message: IChatMessage) => boolean;
|
|
4
|
+
export declare const copyChatMessage: (message: IChatMessage) => Promise<TCopyChatMessageResult>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Locales } from '../../../../../../../common.types';
|
|
2
|
+
import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
|
|
3
|
+
export declare const formatChatTime: (date?: Date, locale?: Locales) => string;
|
|
4
|
+
export declare const formatChatTimeLabel: (iso?: string | null, locale?: Locales) => string;
|
|
5
|
+
export declare const formatPeerLastSeen: (lastSeenAt: string | null | undefined, copy: TUserChatsCopy, locale?: Locales) => string;
|
|
6
|
+
export declare const getPersonalChatPresenceLabel: (copy: TUserChatsCopy, locale: Locales, isOnline?: boolean, lastSeenAt?: string | null) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
|
|
3
|
+
import type { IChatListItem } from '../../../../../entities/chats.view-types';
|
|
4
|
+
export interface IChatComposeAccess {
|
|
5
|
+
canCompose: boolean;
|
|
6
|
+
blockedMessage: string | null;
|
|
7
|
+
Icon: FC | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const getChatComposeAccess: (chat: IChatListItem, copy: Pick<TUserChatsCopy, 'blockedInGroup' | 'groupClosed' | 'cannotSendHere'>) => IChatComposeAccess;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ILinkPreviewOut } from '../../../../../entities/index';
|
|
2
|
+
import type { IChatLinkPreview } from '../../../../../entities/chats.view-types';
|
|
3
|
+
export declare const extractUrls: (text: string) => string[];
|
|
4
|
+
export declare const splitTextAndUrls: (text: string) => Array<{
|
|
5
|
+
type: 'text' | 'url';
|
|
6
|
+
value: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const getLinkPreviewBanner: (preview: IChatLinkPreview) => {
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const mapApiLinkPreview: (preview: ILinkPreviewOut | null | undefined) => IChatLinkPreview | undefined;
|
|
13
|
+
export declare const toServerLinkPreview: (preview: IChatLinkPreview) => ILinkPreviewOut;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
|
|
2
|
+
import type { IChatMessage } from '../../../../../entities/chats.view-types';
|
|
3
|
+
export declare const getMessageAuthorName: (message: IChatMessage, chatTitle: string, copy: Pick<TUserChatsCopy, 'authorYou'>) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
|
|
2
|
+
import type { IChatMessage } from '../../../../../entities/chats.view-types';
|
|
3
|
+
export declare const getMessagePreview: (message: IChatMessage | undefined, copy: Pick<TUserChatsCopy, 'previewPhoto'>) => string;
|
|
4
|
+
export declare const getMessageCopyText: (message: IChatMessage, copy: Pick<TUserChatsCopy, 'previewPhoto'>) => string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IChatFileAttachment, IChatLinkPreview, IChatMessage, IChatMessageQuote } from '../../../../../entities/chats.view-types';
|
|
2
|
+
import { Locales } from '../../../../../../../common.types';
|
|
3
|
+
export declare const createLocalMessageId: () => string;
|
|
4
|
+
export declare const isLocalMessageId: (messageId: string) => boolean;
|
|
5
|
+
export declare const revokeBlobUrls: (urls?: Array<string | undefined>) => void;
|
|
6
|
+
interface IOptimisticMessageParams {
|
|
7
|
+
id: string;
|
|
8
|
+
chatId: string;
|
|
9
|
+
content?: string;
|
|
10
|
+
imageUrls?: string[];
|
|
11
|
+
file?: IChatFileAttachment;
|
|
12
|
+
reply_to?: IChatMessageQuote;
|
|
13
|
+
link_preview?: IChatLinkPreview;
|
|
14
|
+
dateToday?: string;
|
|
15
|
+
locale?: Locales;
|
|
16
|
+
}
|
|
17
|
+
export declare const createOptimisticMessage: ({ id, chatId, content, imageUrls, file, reply_to, link_preview, dateToday, locale }: IOptimisticMessageParams) => IChatMessage;
|
|
18
|
+
export declare const mergePendingMessages: (serverMessages: IChatMessage[], pendingMessages: IChatMessage[], chatId: string | null) => IChatMessage[];
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TAttachmentProgress } from './fetchChatAttachment';
|
|
2
|
+
export declare const saveChatImage: (url: string, filename?: string) => Promise<void>;
|
|
3
|
+
export declare const saveChatFile: (url: string, filename: string, onProgress?: TAttachmentProgress) => Promise<void>;
|
|
4
|
+
export declare const saveChatImages: (images: Array<{
|
|
5
|
+
url: string;
|
|
6
|
+
filename?: string;
|
|
7
|
+
}>) => Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IChatMessage } from '../../../../../entities/chats.view-types';
|
|
2
|
+
export interface IHighlightedPart {
|
|
3
|
+
type: 'text' | 'match';
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IMessageDateGroup {
|
|
7
|
+
dateLabel: string;
|
|
8
|
+
messages: IChatMessage[];
|
|
9
|
+
}
|
|
10
|
+
export declare const splitByHighlight: (text: string, query: string) => IHighlightedPart[];
|
|
11
|
+
export declare const groupMessagesByDate: (messages: IChatMessage[]) => IMessageDateGroup[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const EmptyImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyState } from './EmptyState';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
images: string[];
|
|
5
|
+
index: number;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onIndexChange: (index: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ImageViewerModal: ({ open, images, index, onClose, onIndexChange }: IProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ModalWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../../../../../components/uikit/Modal/Modal.typed").IModal, never>> & string & Omit<(props: import("../../../../../../components/uikit/Modal/Modal.typed").IModal) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
3
|
+
export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const Image: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
5
|
+
export declare const ArrowButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
6
|
+
$direction?: 'left' | 'right';
|
|
7
|
+
}>> & string;
|
package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ImageViewerModal } from './ImageViewerModal';
|
package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/MessageList.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IChatListItem, IChatMessage } from '../../../../entities/chats.view-types';
|
|
3
|
+
import type { IMessageListActions, IMessageListHighlight } from './MessageList.types';
|
|
4
|
+
interface IProps {
|
|
5
|
+
chat: IChatListItem;
|
|
6
|
+
messages: IChatMessage[];
|
|
7
|
+
lastReadMessageId: number | null;
|
|
8
|
+
highlight: IMessageListHighlight;
|
|
9
|
+
older?: {
|
|
10
|
+
hasMore: boolean;
|
|
11
|
+
isFetching: boolean;
|
|
12
|
+
};
|
|
13
|
+
actions: IMessageListActions;
|
|
14
|
+
onScroll: () => void;
|
|
15
|
+
canCompose?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const MessageList: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const LoadMore: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const Block: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const MessageGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const DateChip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("../../../../../../components/uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
9
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../../../../../components/uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IChatMessage } from '../../../../entities/chats.view-types';
|
|
2
|
+
export interface IMessageListActions {
|
|
3
|
+
onRetry: (messageId: string) => void;
|
|
4
|
+
onDelete: (messageId: string) => void;
|
|
5
|
+
onCancelSending: (messageId: string) => void;
|
|
6
|
+
onReply: (message: IChatMessage) => void;
|
|
7
|
+
onEdit: (message: IChatMessage) => void;
|
|
8
|
+
onToggleReaction: (messageId: string, emoji: string) => void;
|
|
9
|
+
onOpenImage: (url: string) => void;
|
|
10
|
+
onQuoteClick?: (messageId: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface IMessageListHighlight {
|
|
13
|
+
query: string;
|
|
14
|
+
matchQuery?: string;
|
|
15
|
+
focusedMessageId?: string | null;
|
|
16
|
+
messageId?: string | null;
|
|
17
|
+
nonce?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const EmptyImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
|
|
4
|
+
$isQuery?: boolean;
|
|
5
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyMessage } from './EmptyMessage';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IChatMessage } from '../../../../../../entities/chats.view-types';
|
|
3
|
+
import type { IMessageListActions } from '../../MessageList.types';
|
|
4
|
+
interface IProps {
|
|
5
|
+
message: IChatMessage;
|
|
6
|
+
isGroup: boolean;
|
|
7
|
+
isStacked?: boolean;
|
|
8
|
+
highlightQuery?: string;
|
|
9
|
+
actions: IMessageListActions;
|
|
10
|
+
canCompose?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const MessageCard: ({ message, isGroup, isStacked, highlightQuery, actions, canCompose }: IProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TChatMessageSide } from '../../../../../../entities/chats.view-types';
|
|
3
|
+
export declare const MessageRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$side: TChatMessageSide;
|
|
5
|
+
$actionsOpen?: boolean;
|
|
6
|
+
$stacked?: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const AvatarSlot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const BubbleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$hasMedia?: boolean;
|
|
11
|
+
$isOutgoing?: boolean;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const Bubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
14
|
+
$side: TChatMessageSide;
|
|
15
|
+
$hasMedia?: boolean;
|
|
16
|
+
$hasFile?: boolean;
|
|
17
|
+
$hasQuote?: boolean;
|
|
18
|
+
$hasLinkPreview?: boolean;
|
|
19
|
+
}>> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IChatFileAttachment, TChatMessageSide } from '../../../../../../../../entities/chats.view-types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
file: IChatFileAttachment;
|
|
5
|
+
side: TChatMessageSide;
|
|
6
|
+
isSending: boolean;
|
|
7
|
+
highlightQuery?: string;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const FileAttachment: ({ file, side, isSending, highlightQuery, onCancel }: IProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TChatMessageSide } from '../../../../../../../../entities/chats.view-types';
|
|
3
|
+
export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$clickable?: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const Thumb: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const Preview: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
8
|
+
export declare const FileFallback: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$side: TChatMessageSide;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
|
+
$isOutgoing: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const Meta: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileAttachment } from './FileAttachment';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IChatMessage } from '../../../../../../../../entities/chats.view-types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
message: IChatMessage;
|
|
5
|
+
onReply: (message: IChatMessage) => void;
|
|
6
|
+
onEdit: (message: IChatMessage) => void;
|
|
7
|
+
onRetry: (messageId: string) => void;
|
|
8
|
+
onDelete: (messageId: string) => void;
|
|
9
|
+
onToggleReaction: (messageId: string, emoji: string) => void;
|
|
10
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const MessageActions: ({ message, onReply, onEdit, onRetry, onDelete, onToggleReaction, onOpenChange }: IProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$isOutgoing: boolean;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const ActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
6
|
+
export declare const Reactions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const ReactionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
8
|
+
$active?: boolean;
|
|
9
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MessageActions } from './MessageActions';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IChatMessage } from '../../../../../../../../entities/chats.view-types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
message: IChatMessage;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
onEdit: () => void;
|
|
7
|
+
onReply: () => void;
|
|
8
|
+
onRetry: () => void;
|
|
9
|
+
onDelete: () => void;
|
|
10
|
+
onToggleReaction: (emoji: string) => void;
|
|
11
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const MessageBubbleMenu: ({ message, children, onEdit, onReply, onRetry, onDelete, onToggleReaction, onOpenChange }: IProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MessageBubbleMenu } from './MessageBubbleMenu';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IChatMessage } from '../../../../../../../../entities/chats.view-types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
message: IChatMessage;
|
|
5
|
+
onEdit: () => void;
|
|
6
|
+
onCopy: () => void;
|
|
7
|
+
onRetry: () => void;
|
|
8
|
+
onDelete: () => void;
|
|
9
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const MessageContextMenu: ({ message, onEdit, onCopy, onRetry, onDelete, onOpenChange }: IProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MessageContextMenu } from './MessageContextMenu';
|