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,18 @@
|
|
|
1
|
+
interface IOtherUser {
|
|
2
|
+
avatar: string;
|
|
3
|
+
last_name: string;
|
|
4
|
+
name: string;
|
|
5
|
+
nick: string;
|
|
6
|
+
patronymic: string;
|
|
7
|
+
}
|
|
8
|
+
export type TChatProfile = IOtherUser & {
|
|
9
|
+
fio?: string;
|
|
10
|
+
avatar_url?: string | null;
|
|
11
|
+
email?: string | null;
|
|
12
|
+
phone?: string | null;
|
|
13
|
+
};
|
|
14
|
+
export type TChatProfilesMap = Record<number, TChatProfile>;
|
|
15
|
+
export declare const getDisplayName: (userId: number | null | undefined, profiles: TChatProfilesMap) => string | undefined;
|
|
16
|
+
export declare const getProfileAvatarUrl: (userId: number | null | undefined, profiles: TChatProfilesMap) => string | null;
|
|
17
|
+
export declare const unwrapUsersByKeyData: (payload: unknown) => Record<string, TChatProfile> | undefined;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IChatsEnvelope } from './chats.interface';
|
|
2
|
+
export declare const unwrapChatsData: <T>(envelope: IChatsEnvelope<T>) => T;
|
|
3
|
+
export declare const unwrapChatsNullableData: <T>(envelope: IChatsEnvelope<T>) => T;
|
|
4
|
+
export declare const unwrapChatsVoid: (envelope: IChatsEnvelope<unknown>) => void;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { IChatCategoryOut, TChatRole, TUserKind } from './chats.interface';
|
|
2
|
+
export type TChatType = 'direct' | 'group' | 'channel';
|
|
3
|
+
export interface IInboxMessageHit {
|
|
4
|
+
chatId: string;
|
|
5
|
+
messageId: string;
|
|
6
|
+
chatType: TChatType;
|
|
7
|
+
peerUserId?: number;
|
|
8
|
+
title: string;
|
|
9
|
+
imageUrl: string | null;
|
|
10
|
+
highlight: string;
|
|
11
|
+
query: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IChatGroupTag {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IChatGroupDetails {
|
|
19
|
+
description: string;
|
|
20
|
+
tags: IChatGroupTag[];
|
|
21
|
+
invite_url: string;
|
|
22
|
+
members_count: number;
|
|
23
|
+
}
|
|
24
|
+
export interface IChatListItem {
|
|
25
|
+
id: string;
|
|
26
|
+
type: TChatType;
|
|
27
|
+
title: string;
|
|
28
|
+
image_url?: string | null;
|
|
29
|
+
image_id?: number | null;
|
|
30
|
+
last_message: string;
|
|
31
|
+
last_message_author?: string;
|
|
32
|
+
last_message_author_role?: string;
|
|
33
|
+
last_message_at: string;
|
|
34
|
+
unread_count: number;
|
|
35
|
+
is_manually_unread?: boolean;
|
|
36
|
+
last_read_message_id?: number | null;
|
|
37
|
+
peer_last_read_message_id?: number | null;
|
|
38
|
+
draft_preview?: string | null;
|
|
39
|
+
is_locked?: boolean;
|
|
40
|
+
is_closed?: boolean;
|
|
41
|
+
is_pinned?: boolean;
|
|
42
|
+
pinned_at?: string | null;
|
|
43
|
+
notifications_enabled?: boolean;
|
|
44
|
+
can_send?: boolean;
|
|
45
|
+
is_banned?: boolean;
|
|
46
|
+
role?: TChatRole;
|
|
47
|
+
category?: IChatCategoryOut | null;
|
|
48
|
+
peer_user_id?: number;
|
|
49
|
+
peer_kind?: TUserKind | null;
|
|
50
|
+
last_message_id?: number;
|
|
51
|
+
peer_is_online?: boolean;
|
|
52
|
+
peer_last_seen_at?: string | null;
|
|
53
|
+
group?: IChatGroupDetails;
|
|
54
|
+
/** Виртуальный чат поддержки в списке inbox */
|
|
55
|
+
is_support_inbox?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export type TChatMessageSide = 'incoming' | 'outgoing';
|
|
58
|
+
export type TChatMessageStatus = 'sending' | 'sent' | 'error';
|
|
59
|
+
export interface IChatFileAttachment {
|
|
60
|
+
id?: number;
|
|
61
|
+
filename: string;
|
|
62
|
+
size_bytes: number;
|
|
63
|
+
loaded_bytes: number;
|
|
64
|
+
url?: string;
|
|
65
|
+
content_type?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface IChatMessageQuote {
|
|
68
|
+
id: string;
|
|
69
|
+
authorName: string;
|
|
70
|
+
text_preview: string;
|
|
71
|
+
is_deleted?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface IChatMessageReaction {
|
|
74
|
+
emoji: string;
|
|
75
|
+
count: number;
|
|
76
|
+
me: boolean;
|
|
77
|
+
userIds?: number[];
|
|
78
|
+
}
|
|
79
|
+
export interface IChatLinkPreview {
|
|
80
|
+
url: string;
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
site_name?: string;
|
|
84
|
+
image_url?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface IChatMessage {
|
|
87
|
+
id: string;
|
|
88
|
+
chat_id: string;
|
|
89
|
+
side: TChatMessageSide;
|
|
90
|
+
content: string;
|
|
91
|
+
timeLabel: string;
|
|
92
|
+
dateLabel: string;
|
|
93
|
+
authorName?: string;
|
|
94
|
+
authorAvatarUrl?: string | null;
|
|
95
|
+
status?: TChatMessageStatus;
|
|
96
|
+
imageUrls?: string[];
|
|
97
|
+
imageAttachmentIds?: number[];
|
|
98
|
+
imageFilenames?: string[];
|
|
99
|
+
file?: IChatFileAttachment;
|
|
100
|
+
reply_to?: IChatMessageQuote;
|
|
101
|
+
reactions?: IChatMessageReaction[];
|
|
102
|
+
link_preview?: IChatLinkPreview;
|
|
103
|
+
is_edited?: boolean;
|
|
104
|
+
isRead?: boolean;
|
|
105
|
+
isSystem?: boolean;
|
|
106
|
+
client_message_id?: string;
|
|
107
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { ISupportLayoutMessage } from '../../../components/blocks/SupportV2/SupportV2.typed';
|
|
3
|
+
type TSyncSupportInboxListPreview = (messages: ISupportLayoutMessage[]) => void;
|
|
4
|
+
export declare const SupportInboxListPreviewProvider: ({ syncFromFeed, children }: {
|
|
5
|
+
syncFromFeed: TSyncSupportInboxListPreview;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const useSupportInboxListPreviewSync: () => TSyncSupportInboxListPreview;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IChatLinkPreview, IChatListItem, IChatMessage, IChatMessageQuote } from '../entities/chats.view-types';
|
|
2
|
+
export interface IComposerTarget {
|
|
3
|
+
mode: 'reply' | 'edit';
|
|
4
|
+
message: IChatMessage;
|
|
5
|
+
}
|
|
6
|
+
interface IParams {
|
|
7
|
+
chat: IChatListItem;
|
|
8
|
+
onDraftChange: (chatId: string, draftText: string) => void;
|
|
9
|
+
onSendMessage: (chatId: string, text: string, imageUrls: string[], quote?: IChatMessageQuote, linkPreview?: IChatLinkPreview) => void;
|
|
10
|
+
onEditMessage: (chatId: string, messageId: string, text: string) => void;
|
|
11
|
+
onDeleteMessage: (chatId: string, messageId: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const useChatComposerState: ({ chat, onDraftChange, onSendMessage, onEditMessage, onDeleteMessage }: IParams) => {
|
|
14
|
+
draft: string;
|
|
15
|
+
composerTarget: IComposerTarget;
|
|
16
|
+
handleDraftChange: (value: string) => void;
|
|
17
|
+
handleCancelContext: () => void;
|
|
18
|
+
handleReply: (message: IChatMessage) => void;
|
|
19
|
+
handleEdit: (message: IChatMessage) => void;
|
|
20
|
+
handleSend: (text: string, imageUrls: string[], linkPreview?: IChatLinkPreview) => void;
|
|
21
|
+
handleDeleteMessage: (messageId: string) => void;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IChatMessage } from '../entities/chats.view-types';
|
|
3
|
+
export declare const useChatImageViewer: (messages: IChatMessage[], chatId: string) => {
|
|
4
|
+
chatImageUrls: string[];
|
|
5
|
+
viewerIndex: number;
|
|
6
|
+
setViewerIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
7
|
+
handleOpenImage: (url: string) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IParams {
|
|
2
|
+
chatId: string;
|
|
3
|
+
searchQuery: string;
|
|
4
|
+
peerUserId?: number;
|
|
5
|
+
peerLastReadMessageId?: number | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const useChatMessageSearch: ({ chatId, searchQuery, peerUserId, peerLastReadMessageId }: IParams) => {
|
|
8
|
+
isSearchActive: boolean;
|
|
9
|
+
messages: import("../entities/chats.view-types").IChatMessage[];
|
|
10
|
+
isSearchLoading: boolean;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TChatProfilesMap } from '../entities/chats.utils';
|
|
2
|
+
export type TLoadChatProfiles = (userKey: string | undefined) => Promise<void>;
|
|
3
|
+
export declare const useChatProfiles: () => {
|
|
4
|
+
profiles: TChatProfilesMap;
|
|
5
|
+
loadProfiles: (userKey: string | undefined) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IParams {
|
|
3
|
+
chatId: string;
|
|
4
|
+
messagesLength: number;
|
|
5
|
+
firstDateLabel: string;
|
|
6
|
+
oldestMessageId?: string;
|
|
7
|
+
hasMore: boolean;
|
|
8
|
+
isFetchingOlder: boolean;
|
|
9
|
+
isSearchActive?: boolean;
|
|
10
|
+
onLoadOlder: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const useChatThreadScroll: ({ chatId, messagesLength, firstDateLabel, oldestMessageId, hasMore, isFetchingOlder, isSearchActive, onLoadOlder }: IParams) => {
|
|
13
|
+
listRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
14
|
+
showJumpDown: boolean;
|
|
15
|
+
isDateChipVisible: boolean;
|
|
16
|
+
activeDate: string;
|
|
17
|
+
handleScroll: () => void;
|
|
18
|
+
handleJumpDown: () => void;
|
|
19
|
+
jumpToMessage: (messageId: string, options?: {
|
|
20
|
+
defer?: boolean;
|
|
21
|
+
}) => boolean;
|
|
22
|
+
scrollToBottomAfterSend: () => void;
|
|
23
|
+
highlightedMessageId: string;
|
|
24
|
+
highlightNonce: number;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const USER_CHATS_PANEL_ANIMATION_MS = 300;
|
|
2
|
+
export declare const USER_CHATS_SHELL_MORPH_MS = 300;
|
|
3
|
+
export type TChatsPanelAnimPhase = 'enter' | 'exit' | 'idle';
|
|
4
|
+
export declare const useChatsPanelTransition: (active: boolean) => {
|
|
5
|
+
mounted: boolean;
|
|
6
|
+
phase: TChatsPanelAnimPhase;
|
|
7
|
+
isExiting: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const useChatsExpandMorph: (isExpanded: boolean, isShellMounted: boolean) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useImageViewerModal: (imageUrls: string[], scopeKey: string) => {
|
|
3
|
+
imageUrls: string[];
|
|
4
|
+
viewerIndex: number;
|
|
5
|
+
setViewerIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
6
|
+
handleOpenImage: (url: string) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IOptions {
|
|
3
|
+
delayMs?: number;
|
|
4
|
+
onLongPress: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useLongPress: ({ delayMs, onLongPress }: IOptions) => {
|
|
7
|
+
onTouchStart: (event: React.TouchEvent) => void;
|
|
8
|
+
onTouchMove: (event: React.TouchEvent) => void;
|
|
9
|
+
onTouchEnd: () => void;
|
|
10
|
+
onTouchCancel: () => void;
|
|
11
|
+
consumeLongPress: () => boolean;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ISupportLayoutMessage } from '../../../components/blocks/SupportV2/SupportV2.typed';
|
|
2
|
+
import type { IChatListItem } from '../entities/chats.view-types';
|
|
3
|
+
export type TSupportInboxListPreview = Pick<IChatListItem, 'last_message' | 'last_message_at' | 'unread_count'>;
|
|
4
|
+
interface IUseSupportInboxListPreviewOptions {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
supportChatOpen?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const useSupportInboxListPreview: ({ enabled, supportChatOpen }?: IUseSupportInboxListPreviewOptions) => {
|
|
9
|
+
listPreview: TSupportInboxListPreview;
|
|
10
|
+
syncFromFeed: (messages: ISupportLayoutMessage[]) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TLocalChatsEntryId } from '../constants/userChats.const';
|
|
2
|
+
interface IUserChatsCategoryBase {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
unreadBadge?: number;
|
|
6
|
+
}
|
|
7
|
+
export type IUserChatsCategoryItem = (IUserChatsCategoryBase & {
|
|
8
|
+
id: TLocalChatsEntryId;
|
|
9
|
+
source: 'local';
|
|
10
|
+
}) | (IUserChatsCategoryBase & {
|
|
11
|
+
id: number;
|
|
12
|
+
source: 'chat-category';
|
|
13
|
+
hasAccess: boolean | null;
|
|
14
|
+
});
|
|
15
|
+
export declare const useUserChatsCategories: () => {
|
|
16
|
+
categories: IUserChatsCategoryItem[];
|
|
17
|
+
isChatCategoriesLoading: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type TUserChatsCategoriesResult = ReturnType<typeof useUserChatsCategories>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type TChatsOverlayCategory, type TOverlayChatId, type TUserChatsPanel } from '../constants/userChats.const';
|
|
2
|
+
export declare const useUserChatsNavigation: () => {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
panel: TUserChatsPanel;
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
categoryId: TChatsOverlayCategory;
|
|
7
|
+
chatId: TOverlayChatId;
|
|
8
|
+
openHub: () => void;
|
|
9
|
+
expand: () => void;
|
|
10
|
+
collapseToHub: () => void;
|
|
11
|
+
closeAll: () => void;
|
|
12
|
+
selectCategory: (id: TChatsOverlayCategory, options?: {
|
|
13
|
+
expand?: boolean;
|
|
14
|
+
}) => void;
|
|
15
|
+
selectChat: (id: TOverlayChatId, options?: {
|
|
16
|
+
expand?: boolean;
|
|
17
|
+
}) => void;
|
|
18
|
+
backInOverlay: () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { IChatsFabBottomOffset } from '../constants/userChats.const';
|
|
3
|
+
import type { IChatProductAccess } from '../utils/hasChatProductAccess';
|
|
4
|
+
import { type TChatAccessStatus, type TChatsNotify, type TUserChatsQuery } from './userChatsUi';
|
|
5
|
+
export interface IUserChatsProviderProps {
|
|
6
|
+
token?: string;
|
|
7
|
+
chatsBaseUrl: string;
|
|
8
|
+
chatsRealtimeBaseUrl: string;
|
|
9
|
+
authBaseUrl?: string;
|
|
10
|
+
userId?: number;
|
|
11
|
+
rights?: Record<string, number | string | boolean> | null;
|
|
12
|
+
completedCourses?: string[] | null;
|
|
13
|
+
access?: IChatProductAccess | null;
|
|
14
|
+
accessStatus?: TChatAccessStatus;
|
|
15
|
+
showAiChat?: boolean;
|
|
16
|
+
onToggleAiChat?: () => void;
|
|
17
|
+
onNotify?: TChatsNotify;
|
|
18
|
+
query?: TUserChatsQuery;
|
|
19
|
+
isReady?: boolean;
|
|
20
|
+
onQueryChange?: (query: TUserChatsQuery) => void;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const UserChatsProvider: ({ token, chatsBaseUrl, chatsRealtimeBaseUrl, authBaseUrl, userId, rights, completedCourses, access, accessStatus, showAiChat, onToggleAiChat, onNotify, query, isReady, onQueryChange, children }: IUserChatsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export type { IChatsFabBottomOffset };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const chatsApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<import("./chatsBaseQuery").IChatsQueryArgs, unknown, import("./chatsBaseQuery").IChatsQueryError, {}, {}>, {}, "chatsApi", "ChatInbox" | "ChatDetail" | "ChatMessages" | "ChatDraft" | "ChatCategories", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ThunkDispatch, UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { IMessageOut, IMessageSearchPage, IMessagesPage } from '../entities/chats.interface';
|
|
3
|
+
type TDispatch = ThunkDispatch<unknown, unknown, UnknownAction>;
|
|
4
|
+
type TQueryPatch = {
|
|
5
|
+
undo: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const sortMessageItems: (items: IMessageOut[]) => IMessageOut[];
|
|
8
|
+
export declare const mergeMessageItems: (current: IMessageOut[], incoming: IMessageOut[]) => IMessageOut[];
|
|
9
|
+
export declare const patchInboxChatPrefs: (dispatch: TDispatch, getState: () => unknown, chatId: number, patch: {
|
|
10
|
+
is_pinned?: boolean;
|
|
11
|
+
pinned_at?: string | null;
|
|
12
|
+
notifications_enabled?: boolean;
|
|
13
|
+
}) => void;
|
|
14
|
+
export declare const patchInboxChatRead: (dispatch: TDispatch, getState: () => unknown, chatId: number, patch: {
|
|
15
|
+
last_read_message_id?: number;
|
|
16
|
+
unread_count?: number;
|
|
17
|
+
is_manually_unread?: boolean;
|
|
18
|
+
}) => void;
|
|
19
|
+
export declare const patchListMessages: (dispatch: TDispatch, getState: () => unknown, chatId: number, updater: (draft: IMessagesPage) => void) => TQueryPatch[];
|
|
20
|
+
export declare const patchSearchMessages: (dispatch: TDispatch, getState: () => unknown, chatId: number, updater: (draft: IMessageSearchPage) => void) => TQueryPatch[];
|
|
21
|
+
export declare const upsertCachedMessage: (dispatch: TDispatch, getState: () => unknown, chatId: number, message: IMessageOut) => void;
|
|
22
|
+
export declare const removeCachedMessage: (dispatch: TDispatch, getState: () => unknown, chatId: number, messageId: number) => TQueryPatch[];
|
|
23
|
+
export declare const patchCachedMessage: (dispatch: TDispatch, getState: () => unknown, chatId: number, messageId: number, updater: (message: IMessageOut) => void) => void;
|
|
24
|
+
export {};
|