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,3 @@
|
|
|
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;
|
|
3
|
+
export declare const ClickShield: 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 { ChatContextMenu } from './ChatContextMenu';
|
|
@@ -0,0 +1,4 @@
|
|
|
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 Row: 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 Lines: 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 { ChatListInboxSkeleton } from './ChatListInboxSkeleton';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IInboxMessageHit } from '../../../../../../entities/chats.view-types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
hit: IInboxMessageHit;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
onSelect: (chatId: string, messageId: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SearchMessageHit: ({ hit, isActive, onSelect }: IProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
3
|
+
$active?: boolean;
|
|
4
|
+
}>> & string;
|
|
5
|
+
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;
|
|
6
|
+
export declare const TitleRow: 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 Meta: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const Preview: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
9
|
+
$active?: boolean;
|
|
10
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchMessageHit } from './SearchMessageHit';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChatList } from './ChatList';
|
|
@@ -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 Close: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
package/dist/features/user-chats/components/ChatsOverlay/components/ChatSearchInput/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChatSearchInput } from './ChatSearchInput';
|
package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/ChatThread.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IChatListItem, IChatMessage } from '../../../../entities/chats.view-types';
|
|
3
|
+
import type { IChatViewMessageActions, IChatViewState } from './hooks/ChatView.types';
|
|
4
|
+
interface IProps {
|
|
5
|
+
chat: IChatListItem;
|
|
6
|
+
messages: IChatMessage[];
|
|
7
|
+
state: IChatViewState;
|
|
8
|
+
messageActions: IChatViewMessageActions;
|
|
9
|
+
matchQuery?: string;
|
|
10
|
+
onBack?: () => void;
|
|
11
|
+
onOpenDetails?: () => void;
|
|
12
|
+
detailsOpen?: boolean;
|
|
13
|
+
onCloseDetails?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const ChatThread: ({ chat, messages, state, messageActions, matchQuery, onBack, onOpenDetails, detailsOpen, onCloseDetails }: IProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IChatListItem } from '../../../../../../entities/chats.view-types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
chat: IChatListItem;
|
|
5
|
+
title: string;
|
|
6
|
+
searchQuery: string;
|
|
7
|
+
onSearchChange: (value: string) => void;
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
onOpenDetails?: () => void;
|
|
10
|
+
subtitleOverride?: string;
|
|
11
|
+
showSearch?: boolean;
|
|
12
|
+
showDetails?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ChatHeader: ({ chat, title, searchQuery, onSearchChange, onBack, onOpenDetails, subtitleOverride, showSearch, showDetails }: IProps) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 Identity: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$compact?: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
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;
|
|
7
|
+
export declare const Subtitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const Status: 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 Actions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$hideMeta?: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const MoreIconButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IChatListItem } from '../../../../../../../../entities/chats.view-types';
|
|
3
|
+
interface IProps {
|
|
4
|
+
chat: IChatListItem;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
searchQuery: string;
|
|
8
|
+
onSearchChange: (value: string) => void;
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
onOpenDetails?: () => void;
|
|
11
|
+
showSearch?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ChatHeaderMobile: ({ chat, title, subtitle, searchQuery, onSearchChange, onBack, onOpenDetails, showSearch }: IProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 BackButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
4
|
+
export declare const Identity: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
5
|
+
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;
|
|
6
|
+
export declare const SubtitleRow: 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 Status: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
8
|
+
export declare const SearchWrap: 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 { ChatHeaderMobile } from './ChatHeaderMobile';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type TChatHeaderSearchVariant = 'inline' | 'mobileHanging';
|
|
3
|
+
interface IProps {
|
|
4
|
+
chatId: number;
|
|
5
|
+
searchQuery: string;
|
|
6
|
+
onSearchChange: (value: string) => void;
|
|
7
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
8
|
+
variant?: TChatHeaderSearchVariant;
|
|
9
|
+
}
|
|
10
|
+
export declare const ChatHeaderSearch: ({ chatId, searchQuery, onSearchChange, onExpandedChange, variant }: IProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TChatHeaderSearchVariant } from './ChatHeaderSearch';
|
|
3
|
+
export declare const MobileShell: 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 Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$inlineExpanded: boolean;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export declare const SearchButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
8
|
+
$isOpen: boolean;
|
|
9
|
+
$keepIconVisible?: boolean;
|
|
10
|
+
$variant?: TChatHeaderSearchVariant;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const InputBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
13
|
+
$isOpen: boolean;
|
|
14
|
+
$variant?: TChatHeaderSearchVariant;
|
|
15
|
+
}>> & string;
|
|
16
|
+
export declare const HangingPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export declare const ClearButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
18
|
+
$variant?: TChatHeaderSearchVariant;
|
|
19
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChatHeaderSearch } from './ChatHeaderSearch';
|
|
@@ -0,0 +1,13 @@
|
|
|
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 DropHint: 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 Thread: 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 FloatingDate: 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"> & {
|
|
6
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
7
|
+
}, 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>>;
|
|
8
|
+
export declare const BannedComposer: 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 BannedComposerText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("../../../../../../../../components/uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
10
|
+
ref?: import("react").Ref<HTMLElement>;
|
|
11
|
+
}, {
|
|
12
|
+
$hasBannedUser: boolean;
|
|
13
|
+
}>> & 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 @@
|
|
|
1
|
+
export { ChatThreadBody } from './ChatThreadBody';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChatThreadResolving } from './ChatThreadResolving';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IComposerProps } from './Composer.types';
|
|
3
|
+
export type { TComposerMode } from './Composer.types';
|
|
4
|
+
export interface IComposerHandle {
|
|
5
|
+
attachFiles: (files: File[]) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Composer: React.ForwardRefExoticComponent<IComposerProps & React.RefAttributes<IComposerHandle>>;
|
|
@@ -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
|
+
$isSupportInCompactHub?: boolean;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const SnippetWrapper: 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 Box: 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 FieldWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const SendButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
9
|
+
export declare const ToolButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IChatLinkPreview } from '../../../../../../entities/chats.view-types';
|
|
2
|
+
export type TComposerMode = 'compose' | 'reply' | 'edit';
|
|
3
|
+
export type TComposerFileRejectReason = 'too-large' | 'unsupported-type';
|
|
4
|
+
export interface IComposerProps {
|
|
5
|
+
chatId: string;
|
|
6
|
+
value: string;
|
|
7
|
+
mode?: TComposerMode;
|
|
8
|
+
contextPreview?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
onSend: (text: string, imageUrls: string[], linkPreview?: IChatLinkPreview, imageFiles?: File[]) => void;
|
|
12
|
+
onSendFile?: (file: File) => void;
|
|
13
|
+
fileInputAccept?: string;
|
|
14
|
+
onFileRejected?: (reason: TComposerFileRejectReason) => void;
|
|
15
|
+
onCancelContext?: () => void;
|
|
16
|
+
fetchLinkPreview?: (url: string) => Promise<IChatLinkPreview | undefined>;
|
|
17
|
+
isSupportInCompactHub?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { KeyboardEvent, Ref } from 'react';
|
|
2
|
+
import { type IImageUploadRef } from '../ImageUpload';
|
|
3
|
+
interface IProps {
|
|
4
|
+
chatId: string;
|
|
5
|
+
value: string;
|
|
6
|
+
isEdit: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
imageUploadRef: Ref<IImageUploadRef>;
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
onKeyDown: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
11
|
+
onHasImagesChange: (hasImages: boolean) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ComposerField: ({ chatId, value, isEdit, placeholder, imageUploadRef, onChange, onKeyDown, onHasImagesChange }: IProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -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 ImageUploadWrapper: 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 { ComposerField } from './ComposerField';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IComposerImage {
|
|
3
|
+
id: string;
|
|
4
|
+
url: string;
|
|
5
|
+
name: string;
|
|
6
|
+
file: File;
|
|
7
|
+
}
|
|
8
|
+
interface IProps {
|
|
9
|
+
images: IComposerImage[];
|
|
10
|
+
onRemove: (id: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ImagePreview: ({ images, onRemove }: IProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const List: 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 Item: 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 RemoveButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IComposerTakenImages {
|
|
3
|
+
urls: string[];
|
|
4
|
+
files: File[];
|
|
5
|
+
}
|
|
6
|
+
export interface IImageUploadRef {
|
|
7
|
+
takeImages: () => IComposerTakenImages;
|
|
8
|
+
addFiles: (files: File[]) => void;
|
|
9
|
+
open: () => void;
|
|
10
|
+
}
|
|
11
|
+
interface IProps {
|
|
12
|
+
chatId: string;
|
|
13
|
+
onHasImagesChange: (hasImages: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const ImageUpload: React.ForwardRefExoticComponent<IProps & React.RefAttributes<IImageUploadRef>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChangeEvent, KeyboardEvent } from 'react';
|
|
2
|
+
import type { IComposerProps } from '../Composer.types';
|
|
3
|
+
import type { IImageUploadRef } from '../components/ImageUpload';
|
|
4
|
+
export declare const useComposer: ({ chatId, value, mode, contextPreview, onSend, onSendFile, onFileRejected, fetchLinkPreview }: IComposerProps) => {
|
|
5
|
+
isEdit: boolean;
|
|
6
|
+
canSend: boolean;
|
|
7
|
+
showLinkPreview: boolean;
|
|
8
|
+
previewBanner: {
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle: string;
|
|
11
|
+
};
|
|
12
|
+
fileInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
13
|
+
imageUploadRef: import("react").MutableRefObject<IImageUploadRef>;
|
|
14
|
+
handleSend: () => void;
|
|
15
|
+
handleKeyDown: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
16
|
+
handleAddFile: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
attachFiles: (files: File[]) => void;
|
|
18
|
+
handleHasImagesChange: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
19
|
+
handleDismissLinkPreview: () => void;
|
|
20
|
+
handleOpenFile: () => void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IChatLinkPreview } from '../../../../../../../entities/chats.view-types';
|
|
2
|
+
interface ILinkPreviewState {
|
|
3
|
+
preview: IChatLinkPreview | undefined;
|
|
4
|
+
resolvePreview: () => Promise<IChatLinkPreview | undefined>;
|
|
5
|
+
}
|
|
6
|
+
interface IOptions {
|
|
7
|
+
fetchPreview?: (url: string) => Promise<IChatLinkPreview | undefined>;
|
|
8
|
+
}
|
|
9
|
+
export declare const useLinkPreview: (text: string, enabled: boolean, options?: IOptions) => ILinkPreviewState;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Item: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
3
|
+
$danger?: boolean;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface IContextMenuItem {
|
|
3
|
+
id: string;
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
label: string;
|
|
6
|
+
danger?: boolean;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
}
|
|
9
|
+
interface IProps {
|
|
10
|
+
groups: IContextMenuItem[][];
|
|
11
|
+
}
|
|
12
|
+
export declare const ContextMenuItems: ({ groups }: IProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onConfirm: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DeleteChatModal: ({ open, title, description, confirmText, onClose, onConfirm }: IProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Root: 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 TextWrapper: 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 BottomContent: 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 { DeleteChatModal } from './DeleteChatModal';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Mark: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {
|
|
3
|
+
$isOutgoing?: boolean;
|
|
4
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HighlightedText } from './HighlightedText';
|
|
@@ -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 Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$side: 'incoming' | 'outgoing';
|
|
5
|
+
}>> & string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MessageListSkeleton } from './MessageListSkeleton';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const CHAT_MESSAGE_SEARCH_DEBOUNCE_MS = 300;
|
|
2
|
+
export declare const CHAT_MESSAGE_SEARCH_LIMIT = 50;
|
|
3
|
+
export declare const CHAT_INBOX_MESSAGE_SEARCH_MIN_LENGTH = 3;
|
|
4
|
+
export declare const CHAT_INBOX_MESSAGE_SEARCH_LIMIT = 30;
|
|
5
|
+
export declare const CHAT_QUOTE_HIGHLIGHT_MS = 2400;
|
|
6
|
+
export declare const MESSAGE_REACTION_EMOJIS: readonly ["😂", "😎", "❤️", "🔥", "👍", "👎", "👀", "🍿", "😱", "💵", "🥲", "😡"];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IChatLinkPreview, IChatMessageQuote } from '../../../../../entities/chats.view-types';
|
|
2
|
+
export interface IChatViewState {
|
|
3
|
+
lastReadMessageId: number | null;
|
|
4
|
+
isMessagesLoading?: boolean;
|
|
5
|
+
isMessagesError?: boolean;
|
|
6
|
+
onRetryLoadMessages?: () => void;
|
|
7
|
+
hasMoreMessages?: boolean;
|
|
8
|
+
isFetchingOlderMessages?: boolean;
|
|
9
|
+
focusMessageId?: number | null;
|
|
10
|
+
}
|
|
11
|
+
export interface IChatViewMessageActions {
|
|
12
|
+
onDraftChange: (chatId: string, draftText: string) => void;
|
|
13
|
+
onSendMessage: (chatId: string, text: string, imageUrls: string[], quote?: IChatMessageQuote, linkPreview?: IChatLinkPreview) => void;
|
|
14
|
+
onSendFile: (chatId: string, file: File) => void;
|
|
15
|
+
onEditMessage: (chatId: string, messageId: string, text: string) => void;
|
|
16
|
+
onRetryMessage: (chatId: string, messageId: string) => void;
|
|
17
|
+
onDeleteMessage: (chatId: string, messageId: string) => void;
|
|
18
|
+
onCancelSending: (chatId: string, messageId: string) => void;
|
|
19
|
+
onToggleReaction: (chatId: string, messageId: string, emoji: string) => void;
|
|
20
|
+
onLoadOlderMessages: () => void;
|
|
21
|
+
onJumpToQuotedMessage: (messageId: number) => Promise<void> | void;
|
|
22
|
+
}
|
package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useChats } from './useChats';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TSetStringRecord } from './useChats.types';
|
|
2
|
+
interface IParams {
|
|
3
|
+
selectedChatId: string | null;
|
|
4
|
+
localDrafts: Record<string, string>;
|
|
5
|
+
setLocalDrafts: TSetStringRecord;
|
|
6
|
+
}
|
|
7
|
+
export declare const useChatDraftActions: ({ selectedChatId, localDrafts, setLocalDrafts }: IParams) => {
|
|
8
|
+
handleDraftChange: (chatId: string, draftText: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
+
import { type IChatListPage } from '../../../../../entities/index';
|
|
3
|
+
import type { IChatListItem } from '../../../../../entities/chats.view-types';
|
|
4
|
+
import type { TSetLastReadAtOpen } from './useChats.types';
|
|
5
|
+
interface IParams {
|
|
6
|
+
inbox?: IChatListPage;
|
|
7
|
+
chats: IChatListItem[];
|
|
8
|
+
chatIdToDelete: string | null;
|
|
9
|
+
setSelectedChatId: Dispatch<SetStateAction<string | null>>;
|
|
10
|
+
setChatIdToDelete: Dispatch<SetStateAction<string | null>>;
|
|
11
|
+
setLastReadAtOpenByChat: TSetLastReadAtOpen;
|
|
12
|
+
}
|
|
13
|
+
export declare const useChatListActions: ({ inbox, chats, chatIdToDelete, setSelectedChatId, setChatIdToDelete, setLastReadAtOpenByChat }: IParams) => {
|
|
14
|
+
handleSelectChat: (chatId: string) => Promise<void>;
|
|
15
|
+
handleToggleRead: (chatId: string) => Promise<void>;
|
|
16
|
+
handlePin: (chatId: string) => Promise<void>;
|
|
17
|
+
handleToggleNotifications: (chatId: string) => Promise<void>;
|
|
18
|
+
handleConfirmDelete: () => Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IChatLinkPreview, IChatMessage, IChatMessageQuote } from '../../../../../entities/chats.view-types';
|
|
2
|
+
import type { TSetStringRecord } from './useChats.types';
|
|
3
|
+
interface IParams {
|
|
4
|
+
selectedMessages: IChatMessage[];
|
|
5
|
+
setLocalDrafts: TSetStringRecord;
|
|
6
|
+
}
|
|
7
|
+
export declare const useChatMessageActions: ({ selectedMessages, setLocalDrafts }: IParams) => {
|
|
8
|
+
pendingMessages: IChatMessage[];
|
|
9
|
+
handleSendMessage: (chatId: string, text: string, imageUrls?: string[], quote?: IChatMessageQuote, linkPreview?: IChatLinkPreview) => void;
|
|
10
|
+
handleSendFile: (chatId: string, file: File) => void;
|
|
11
|
+
handleCancelSending: (_chatId: string, messageId: string) => void;
|
|
12
|
+
handleEditMessage: (chatId: string, messageId: string, text: string) => Promise<void>;
|
|
13
|
+
handleToggleReaction: (chatId: string, messageId: string, emoji: string) => Promise<void>;
|
|
14
|
+
handleRetryMessage: (_chatId: string, messageId: string) => void;
|
|
15
|
+
handleDeleteMessage: (chatId: string, messageId: string) => Promise<void>;
|
|
16
|
+
handleDeleteFailedMessage: (chatId: string, messageId: string) => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export {};
|