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.
Files changed (316) hide show
  1. package/dist/components/blocks/SupportV2/SupportV2.d.ts +1 -1
  2. package/dist/components/blocks/SupportV2/SupportV2.styled.d.ts +2 -0
  3. package/dist/components/blocks/SupportV2/SupportV2.typed.d.ts +8 -0
  4. package/dist/components/blocks/SupportV2/components/ChatHeader.d.ts +2 -1
  5. package/dist/components/uikit/Dropdown/Dropdown.typed.d.ts +1 -0
  6. package/dist/features/user-chats/components/ChatAvatar/ChatAvatar.d.ts +12 -0
  7. package/dist/features/user-chats/components/ChatAvatar/ChatAvatar.styled.d.ts +8 -0
  8. package/dist/features/user-chats/components/ChatAvatar/index.d.ts +1 -0
  9. package/dist/features/user-chats/components/ChatAvatar/utils/getChatAvatarTint.d.ts +2 -0
  10. package/dist/features/user-chats/components/ChatAvatar/utils/getChatInitials.d.ts +1 -0
  11. package/dist/features/user-chats/components/ChatCategorySkeleton/ChatCategoryBubblesSkeleton.d.ts +2 -0
  12. package/dist/features/user-chats/components/ChatCategorySkeleton/ChatCategorySkeleton.styled.d.ts +4 -0
  13. package/dist/features/user-chats/components/ChatCategorySkeleton/ChatHubCategoryCardsSkeleton.d.ts +2 -0
  14. package/dist/features/user-chats/components/ChatCategorySkeleton/index.d.ts +2 -0
  15. package/dist/features/user-chats/components/ChatMessagesLoadError/ChatMessagesLoadError.d.ts +9 -0
  16. package/dist/features/user-chats/components/ChatMessagesLoadError/ChatMessagesLoadError.styled.d.ts +3 -0
  17. package/dist/features/user-chats/components/ChatMessagesLoadError/index.d.ts +1 -0
  18. package/dist/features/user-chats/components/ChatsFab/ChatsFab.d.ts +10 -0
  19. package/dist/features/user-chats/components/ChatsFab/ChatsFab.styled.d.ts +7 -0
  20. package/dist/features/user-chats/components/ChatsFab/index.d.ts +1 -0
  21. package/dist/features/user-chats/components/ChatsHubPanel/ChatsHubPanel.d.ts +10 -0
  22. package/dist/features/user-chats/components/ChatsHubPanel/ChatsHubPanel.styled.d.ts +6 -0
  23. package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubCard/ChatHubCard.d.ts +12 -0
  24. package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubCard/ChatHubCard.styled.d.ts +11 -0
  25. package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubCard/index.d.ts +1 -0
  26. package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubWrapper/ChatHubWrapper.d.ts +10 -0
  27. package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubWrapper/ChatHubWrapper.styled.d.ts +3 -0
  28. package/dist/features/user-chats/components/ChatsHubPanel/components/ChatHubWrapper/index.d.ts +1 -0
  29. package/dist/features/user-chats/components/ChatsHubPanel/index.d.ts +1 -0
  30. package/dist/features/user-chats/components/ChatsOverlay/ChatsOverlay.d.ts +17 -0
  31. package/dist/features/user-chats/components/ChatsOverlay/ChatsOverlay.styled.d.ts +11 -0
  32. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/ChatDetailsContent.d.ts +10 -0
  33. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/ChatDetailsModal.d.ts +9 -0
  34. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/ChatDetailsModal.styled.d.ts +6 -0
  35. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/chatDetails.utils.d.ts +21 -0
  36. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsAttachments/ChatDetailsAttachments.d.ts +19 -0
  37. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsAttachments/ChatDetailsAttachments.styled.d.ts +5 -0
  38. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsAttachments/index.d.ts +1 -0
  39. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsProfile/ChatDetailsProfile.d.ts +8 -0
  40. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsProfile/ChatDetailsProfile.styled.d.ts +8 -0
  41. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsProfile/index.d.ts +1 -0
  42. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsTabs/ChatDetailsTabs.d.ts +8 -0
  43. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsTabs/ChatDetailsTabs.styled.d.ts +2 -0
  44. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/ChatDetailsTabs/index.d.ts +1 -0
  45. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/FileList/FileList.d.ts +7 -0
  46. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/FileList/FileList.styled.d.ts +5 -0
  47. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/FileList/index.d.ts +1 -0
  48. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/LinkList/LinkList.d.ts +7 -0
  49. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/LinkList/LinkList.styled.d.ts +5 -0
  50. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/LinkList/index.d.ts +1 -0
  51. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/MediaGrid/MediaGrid.d.ts +8 -0
  52. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/MediaGrid/MediaGrid.styled.d.ts +3 -0
  53. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/components/MediaGrid/index.d.ts +1 -0
  54. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/hooks/useChatDetailsAttachments.d.ts +16 -0
  55. package/dist/features/user-chats/components/ChatsOverlay/components/ChatDetailsModal/index.d.ts +1 -0
  56. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/ChatList.d.ts +25 -0
  57. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/ChatList.styled.d.ts +12 -0
  58. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatCard/ChatCard.d.ts +13 -0
  59. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatCard/ChatCard.styled.d.ts +29 -0
  60. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatCard/index.d.ts +1 -0
  61. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatContextMenu/ChatContextMenu.d.ts +12 -0
  62. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatContextMenu/ChatContextMenu.styled.d.ts +3 -0
  63. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatContextMenu/index.d.ts +1 -0
  64. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatListInboxSkeleton/ChatListInboxSkeleton.d.ts +2 -0
  65. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatListInboxSkeleton/ChatListInboxSkeleton.styled.d.ts +4 -0
  66. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/ChatListInboxSkeleton/index.d.ts +1 -0
  67. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/SearchMessageHit/SearchMessageHit.d.ts +9 -0
  68. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/SearchMessageHit/SearchMessageHit.styled.d.ts +10 -0
  69. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/components/SearchMessageHit/index.d.ts +1 -0
  70. package/dist/features/user-chats/components/ChatsOverlay/components/ChatList/index.d.ts +1 -0
  71. package/dist/features/user-chats/components/ChatsOverlay/components/ChatSearchInput/ChatSearchInput.d.ts +7 -0
  72. package/dist/features/user-chats/components/ChatsOverlay/components/ChatSearchInput/ChatSearchInput.styled.d.ts +3 -0
  73. package/dist/features/user-chats/components/ChatsOverlay/components/ChatSearchInput/index.d.ts +1 -0
  74. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/ChatThread.d.ts +16 -0
  75. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/ChatThread.styled.d.ts +2 -0
  76. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/ChatHeader.d.ts +15 -0
  77. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/ChatHeader.styled.d.ts +12 -0
  78. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/ChatHeaderSkeleton.d.ts +2 -0
  79. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderMobile/ChatHeaderMobile.d.ts +14 -0
  80. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderMobile/ChatHeaderMobile.styled.d.ts +8 -0
  81. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderMobile/index.d.ts +1 -0
  82. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderSearch/ChatHeaderSearch.d.ts +11 -0
  83. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderSearch/ChatHeaderSearch.styled.d.ts +19 -0
  84. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/components/ChatHeaderSearch/index.d.ts +1 -0
  85. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatHeader/index.d.ts +2 -0
  86. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadBody/ChatThreadBody.d.ts +7 -0
  87. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadBody/ChatThreadBody.styled.d.ts +13 -0
  88. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadBody/index.d.ts +1 -0
  89. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadResolving/ChatThreadResolving.d.ts +2 -0
  90. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ChatThreadResolving/index.d.ts +1 -0
  91. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/Composer.d.ts +7 -0
  92. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/Composer.styled.d.ts +9 -0
  93. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/Composer.types.d.ts +18 -0
  94. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ComposerField/ComposerField.d.ts +14 -0
  95. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ComposerField/ComposerField.styled.d.ts +3 -0
  96. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ComposerField/index.d.ts +1 -0
  97. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImagePreview/ImagePreview.d.ts +13 -0
  98. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImagePreview/ImagePreview.styled.d.ts +5 -0
  99. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImagePreview/index.d.ts +2 -0
  100. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImageUpload/ImageUpload.d.ts +16 -0
  101. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImageUpload/ImageUpload.styled.d.ts +2 -0
  102. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/components/ImageUpload/index.d.ts +2 -0
  103. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/hooks/useComposer.d.ts +21 -0
  104. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/hooks/useLinkPreview.d.ts +10 -0
  105. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/Composer/index.d.ts +3 -0
  106. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ContextMenu/ContextMenu.styled.d.ts +5 -0
  107. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ContextMenu/ContextMenuItems.d.ts +13 -0
  108. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/ContextMenu/index.d.ts +2 -0
  109. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/DeleteChatModal/DeleteChatModal.d.ts +11 -0
  110. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/DeleteChatModal/DeleteChatModal.styled.d.ts +4 -0
  111. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/DeleteChatModal/index.d.ts +1 -0
  112. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/HighlightedText/HighlightedText.d.ts +8 -0
  113. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/HighlightedText/HighlightedText.styled.d.ts +4 -0
  114. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/HighlightedText/index.d.ts +1 -0
  115. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/MessageListSkeleton/MessageListSkeleton.d.ts +2 -0
  116. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/MessageListSkeleton/MessageListSkeleton.styled.d.ts +5 -0
  117. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/components/MessageListSkeleton/index.d.ts +1 -0
  118. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/constants/chatsUi.d.ts +6 -0
  119. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/ChatView.types.d.ts +22 -0
  120. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/index.d.ts +1 -0
  121. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatDraftActions.d.ts +10 -0
  122. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatListActions.d.ts +20 -0
  123. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatMessageActions.d.ts +18 -0
  124. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatThreadModel.d.ts +80 -0
  125. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChats.d.ts +51 -0
  126. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChats.types.d.ts +3 -0
  127. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useChatsQueries.d.ts +36 -0
  128. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useDownloadChatFile.d.ts +10 -0
  129. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useInboxMessageSearch.d.ts +15 -0
  130. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/hooks/useMappedChats.d.ts +21 -0
  131. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/index.d.ts +1 -0
  132. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/copyChatMessage.d.ts +4 -0
  133. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/createZipArchive.d.ts +5 -0
  134. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/fetchChatAttachment.d.ts +2 -0
  135. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/formatChatTime.d.ts +6 -0
  136. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/formatFileSize.d.ts +3 -0
  137. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getChatComposeAccess.d.ts +9 -0
  138. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getChatImageUrls.d.ts +2 -0
  139. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getLinkPreview.d.ts +13 -0
  140. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getMessageAuthorName.d.ts +3 -0
  141. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/getMessagePreview.d.ts +4 -0
  142. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/optimisticMessage.d.ts +19 -0
  143. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/saveChatImage.d.ts +7 -0
  144. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/searchChatMessages.d.ts +11 -0
  145. package/dist/features/user-chats/components/ChatsOverlay/components/ChatThread/utils/shouldStackMessages.d.ts +2 -0
  146. package/dist/features/user-chats/components/ChatsOverlay/components/EmptyState/EmptyState.d.ts +2 -0
  147. package/dist/features/user-chats/components/ChatsOverlay/components/EmptyState/EmptyState.styled.d.ts +3 -0
  148. package/dist/features/user-chats/components/ChatsOverlay/components/EmptyState/index.d.ts +1 -0
  149. package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/ImageViewerModal.d.ts +10 -0
  150. package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/ImageViewerModal.styled.d.ts +7 -0
  151. package/dist/features/user-chats/components/ChatsOverlay/components/ImageViewerModal/index.d.ts +1 -0
  152. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/MessageList.d.ts +18 -0
  153. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/MessageList.styled.d.ts +9 -0
  154. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/MessageList.types.d.ts +18 -0
  155. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/EmptyMessage/EmptyMessage.d.ts +6 -0
  156. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/EmptyMessage/EmptyMessage.styled.d.ts +5 -0
  157. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/EmptyMessage/index.d.ts +1 -0
  158. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/MessageCard.d.ts +13 -0
  159. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/MessageCard.styled.d.ts +19 -0
  160. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/FileAttachment/FileAttachment.d.ts +11 -0
  161. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/FileAttachment/FileAttachment.styled.d.ts +14 -0
  162. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/FileAttachment/index.d.ts +1 -0
  163. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageActions/MessageActions.d.ts +13 -0
  164. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageActions/MessageActions.styled.d.ts +9 -0
  165. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageActions/index.d.ts +1 -0
  166. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageBubbleMenu/MessageBubbleMenu.d.ts +14 -0
  167. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageBubbleMenu/MessageBubbleMenu.styled.d.ts +2 -0
  168. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageBubbleMenu/index.d.ts +1 -0
  169. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageContextMenu/MessageContextMenu.d.ts +12 -0
  170. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageContextMenu/index.d.ts +1 -0
  171. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageContextMenu/messageContextMenuItems.d.ts +23 -0
  172. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageFooter/MessageFooter.d.ts +13 -0
  173. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageFooter/MessageFooter.styled.d.ts +26 -0
  174. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageFooter/index.d.ts +1 -0
  175. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageLinkPreview/MessageLinkPreview.d.ts +8 -0
  176. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageLinkPreview/MessageLinkPreview.styled.d.ts +2 -0
  177. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageLinkPreview/index.d.ts +1 -0
  178. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMedia/MessageMedia.d.ts +8 -0
  179. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMedia/MessageMedia.styled.d.ts +16 -0
  180. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMedia/index.d.ts +1 -0
  181. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMediaWithUpload/MessageMediaWithUpload.d.ts +12 -0
  182. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMediaWithUpload/MessageMediaWithUpload.styled.d.ts +3 -0
  183. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageMediaWithUpload/index.d.ts +1 -0
  184. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageQuote/MessageQuote.d.ts +11 -0
  185. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageQuote/index.d.ts +1 -0
  186. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageReactions/MessageReactions.d.ts +9 -0
  187. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageReactions/MessageReactions.styled.d.ts +7 -0
  188. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageReactions/index.d.ts +1 -0
  189. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageText/MessageText.d.ts +9 -0
  190. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageText/MessageText.styled.d.ts +5 -0
  191. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/components/MessageText/index.d.ts +1 -0
  192. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/MessageCard/index.d.ts +1 -0
  193. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/SystemMessage/SystemMessage.d.ts +7 -0
  194. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/SystemMessage/SystemMessage.styled.d.ts +2 -0
  195. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/components/SystemMessage/index.d.ts +1 -0
  196. package/dist/features/user-chats/components/ChatsOverlay/components/MessageList/index.d.ts +2 -0
  197. package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/OverlayHeader.d.ts +12 -0
  198. package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/OverlayHeader.styled.d.ts +16 -0
  199. package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/OverlayHeaderMobile.d.ts +11 -0
  200. package/dist/features/user-chats/components/ChatsOverlay/components/OverlayHeader/index.d.ts +2 -0
  201. package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/Snippet.d.ts +18 -0
  202. package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/Snippet.styled.d.ts +16 -0
  203. package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/index.d.ts +1 -0
  204. package/dist/features/user-chats/components/ChatsOverlay/components/Snippet/utils/getSnippetTextColor.d.ts +4 -0
  205. package/dist/features/user-chats/components/ChatsUploadProgressControl/ChatsUploadProgressControl.d.ts +3 -0
  206. package/dist/features/user-chats/components/ChatsUploadProgressControl/ChatsUploadProgressControl.styled.d.ts +6 -0
  207. package/dist/features/user-chats/components/ChatsUploadProgressControl/ChatsUploadProgressControl.typed.d.ts +9 -0
  208. package/dist/features/user-chats/components/ChatsUploadProgressControl/index.d.ts +2 -0
  209. package/dist/features/user-chats/components/ComposerFileNotice/ComposerFileNotice.d.ts +6 -0
  210. package/dist/features/user-chats/components/ComposerFileNotice/ComposerFileNotice.styled.d.ts +2 -0
  211. package/dist/features/user-chats/components/ComposerFileNotice/index.d.ts +2 -0
  212. package/dist/features/user-chats/components/ComposerFileNotice/useComposerFileNotice.d.ts +4 -0
  213. package/dist/features/user-chats/components/JumpToLatestButton/JumpToLatestButton.d.ts +7 -0
  214. package/dist/features/user-chats/components/JumpToLatestButton/JumpToLatestButton.styled.d.ts +3 -0
  215. package/dist/features/user-chats/components/JumpToLatestButton/index.d.ts +1 -0
  216. package/dist/features/user-chats/components/MessageFailedMenu/MessageFailedMenu.d.ts +12 -0
  217. package/dist/features/user-chats/components/MessageFailedMenu/MessageFailedMenu.styled.d.ts +3 -0
  218. package/dist/features/user-chats/components/MessageFailedMenu/index.d.ts +1 -0
  219. package/dist/features/user-chats/components/SupportChatPanel/SupportChatPanel.d.ts +8 -0
  220. package/dist/features/user-chats/components/SupportChatPanel/SupportChatPanel.styled.d.ts +7 -0
  221. package/dist/features/user-chats/components/SupportChatPanel/components/SupportCompactHubHeader/SupportCompactHubHeader.d.ts +9 -0
  222. package/dist/features/user-chats/components/SupportChatPanel/components/SupportCompactHubHeader/SupportCompactHubHeader.styled.d.ts +5 -0
  223. package/dist/features/user-chats/components/SupportChatPanel/components/SupportCompactHubHeader/index.d.ts +1 -0
  224. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/SupportInboxChat.d.ts +10 -0
  225. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/SupportInboxChat.styled.d.ts +2 -0
  226. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/ChatFeed.d.ts +28 -0
  227. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/CommandChips.d.ts +8 -0
  228. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/GuestGate.d.ts +18 -0
  229. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/MessageBubble.d.ts +3 -0
  230. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/MessageBubble.typed.d.ts +22 -0
  231. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessageBubbleBody/MessageBubbleBody.d.ts +5 -0
  232. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessageBubbleBody/MessageBubbleBody.styled.d.ts +12 -0
  233. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessageBubbleBody/index.d.ts +1 -0
  234. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessagePlainTextRow/MessagePlainTextRow.d.ts +9 -0
  235. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessagePlainTextRow/MessagePlainTextRow.styled.d.ts +6 -0
  236. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/MessagePlainTextRow/index.d.ts +1 -0
  237. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/SystemMessageBubble/SystemMessageBubble.d.ts +15 -0
  238. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/SystemMessageBubble/SystemMessageBubble.styled.d.ts +3 -0
  239. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/components/SystemMessageBubble/index.d.ts +1 -0
  240. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/hooks/useSupportMessageAttachments.d.ts +10 -0
  241. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/index.d.ts +2 -0
  242. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/SupportMessageText.styled.d.ts +2 -0
  243. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/formatProgressBytes.d.ts +1 -0
  244. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/renderSupportMessageText.d.ts +2 -0
  245. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/MessageBubble/utils/supportMessageText.const.d.ts +3 -0
  246. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/NpsRating.d.ts +6 -0
  247. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/components/chatInbox.styled.d.ts +36 -0
  248. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/getSupportImageUrls.d.ts +2 -0
  249. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/mapSupportAttachmentToChatFile.d.ts +3 -0
  250. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/mapSupportLinkPreview.d.ts +4 -0
  251. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/mapSupportMessageForFooter.d.ts +3 -0
  252. package/dist/features/user-chats/components/SupportChatPanel/inbox-support/utils/readSupportLocalFile.d.ts +3 -0
  253. package/dist/features/user-chats/components/SupportChatPanel/index.d.ts +1 -0
  254. package/dist/features/user-chats/components/UnreadMessagesDivider/UnreadMessagesDivider.d.ts +6 -0
  255. package/dist/features/user-chats/components/UnreadMessagesDivider/UnreadMessagesDivider.styled.d.ts +2 -0
  256. package/dist/features/user-chats/components/UnreadMessagesDivider/index.d.ts +1 -0
  257. package/dist/features/user-chats/components/UserChats/UserChats.d.ts +6 -0
  258. package/dist/features/user-chats/components/UserChats/index.d.ts +2 -0
  259. package/dist/features/user-chats/components/UserChatsWidget/UserChatsWidget.d.ts +7 -0
  260. package/dist/features/user-chats/components/UserChatsWidget/UserChatsWidget.styled.d.ts +14 -0
  261. package/dist/features/user-chats/components/UserChatsWidget/index.d.ts +1 -0
  262. package/dist/features/user-chats/constants/attachments.const.d.ts +1 -0
  263. package/dist/features/user-chats/constants/categoryPresentation.const.d.ts +9 -0
  264. package/dist/features/user-chats/constants/composerNotice.const.d.ts +1 -0
  265. package/dist/features/user-chats/constants/supportInboxChat.const.d.ts +14 -0
  266. package/dist/features/user-chats/constants/supportWidget.const.d.ts +5 -0
  267. package/dist/features/user-chats/constants/userChats.const.d.ts +38 -0
  268. package/dist/features/user-chats/entities/chats.constants.d.ts +6 -0
  269. package/dist/features/user-chats/entities/chats.interface.d.ts +266 -0
  270. package/dist/features/user-chats/entities/chats.list.d.ts +19 -0
  271. package/dist/features/user-chats/entities/chats.messages.d.ts +19 -0
  272. package/dist/features/user-chats/entities/chats.profiles.d.ts +18 -0
  273. package/dist/features/user-chats/entities/chats.unwrap.d.ts +4 -0
  274. package/dist/features/user-chats/entities/chats.utils.d.ts +4 -0
  275. package/dist/features/user-chats/entities/chats.view-types.d.ts +107 -0
  276. package/dist/features/user-chats/entities/index.d.ts +3 -0
  277. package/dist/features/user-chats/hooks/supportInboxListPreviewContext.d.ts +9 -0
  278. package/dist/features/user-chats/hooks/useChatComposerState.d.ts +23 -0
  279. package/dist/features/user-chats/hooks/useChatHostPaths.d.ts +9 -0
  280. package/dist/features/user-chats/hooks/useChatImageViewer.d.ts +8 -0
  281. package/dist/features/user-chats/hooks/useChatMessageSearch.d.ts +12 -0
  282. package/dist/features/user-chats/hooks/useChatProfiles.d.ts +6 -0
  283. package/dist/features/user-chats/hooks/useChatThreadScroll.d.ts +26 -0
  284. package/dist/features/user-chats/hooks/useChatsPanelTransition.d.ts +9 -0
  285. package/dist/features/user-chats/hooks/useChatsRealtime.d.ts +5 -0
  286. package/dist/features/user-chats/hooks/useImageViewerModal.d.ts +7 -0
  287. package/dist/features/user-chats/hooks/useLongPress.d.ts +13 -0
  288. package/dist/features/user-chats/hooks/useSupportInboxListPreview.d.ts +12 -0
  289. package/dist/features/user-chats/hooks/useUserChatsCategories.d.ts +20 -0
  290. package/dist/features/user-chats/hooks/useUserChatsNavigation.d.ts +19 -0
  291. package/dist/features/user-chats/hooks/useUserChatsTranslation.d.ts +2 -0
  292. package/dist/features/user-chats/index.d.ts +4 -0
  293. package/dist/features/user-chats/store/UserChatsProvider.d.ts +24 -0
  294. package/dist/features/user-chats/store/chats.api.d.ts +1 -0
  295. package/dist/features/user-chats/store/chats.cache.d.ts +24 -0
  296. package/dist/features/user-chats/store/chats.endpoints.d.ts +4254 -0
  297. package/dist/features/user-chats/store/chatsBaseQuery.d.ts +14 -0
  298. package/dist/features/user-chats/store/chatsConfig.slice.d.ts +12 -0
  299. package/dist/features/user-chats/store/chatsStore.d.ts +15 -0
  300. package/dist/features/user-chats/store/chatsStoreHooks.d.ts +5 -0
  301. package/dist/features/user-chats/store/userChatsUi.d.ts +24 -0
  302. package/dist/features/user-chats/styles/chatsPanelMotion.styled.d.ts +5 -0
  303. package/dist/features/user-chats/utils/blobUrlToFile.d.ts +1 -0
  304. package/dist/features/user-chats/utils/hasChatProductAccess.d.ts +15 -0
  305. package/dist/features/user-chats/utils/knownChatCategory.d.ts +2 -0
  306. package/dist/features/user-chats/utils/mergeChatsQueryFromUrl.d.ts +2 -0
  307. package/dist/features/user-chats/utils/supportInboxListPreview.d.ts +7 -0
  308. package/dist/index.d.ts +2 -0
  309. package/dist/localization/translations/support.d.ts +4 -0
  310. package/dist/localization/translations/userChats.d.ts +260 -0
  311. package/dist/profinansy-ui-lib.cjs +4964 -2236
  312. package/dist/profinansy-ui-lib.cjs.map +1 -1
  313. package/dist/profinansy-ui-lib.es.js +26239 -14887
  314. package/dist/profinansy-ui-lib.es.js.map +1 -1
  315. package/dist/utils/declOfNum.d.ts +1 -0
  316. 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,4 @@
1
+ export * from './chats.unwrap';
2
+ export * from './chats.profiles';
3
+ export * from './chats.messages';
4
+ export * from './chats.list';
@@ -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,3 @@
1
+ export * from './chats.interface';
2
+ export * from './chats.constants';
3
+ export * from './chats.utils';
@@ -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,9 @@
1
+ export declare const useChatHostPaths: () => {
2
+ appealsPath: string;
3
+ paywallPaths: {
4
+ club: string;
5
+ subscription: string;
6
+ method: string;
7
+ idv: string;
8
+ };
9
+ };
@@ -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,5 @@
1
+ interface IUseChatsRealtimeOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare const useChatsRealtime: (options?: IUseChatsRealtimeOptions) => void;
5
+ export {};
@@ -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,2 @@
1
+ import { type TUserChatsCopy } from '../../../localization/translations/userChats';
2
+ export declare const useUserChatsTranslation: () => TUserChatsCopy;
@@ -0,0 +1,4 @@
1
+ export { UserChats } from './components/UserChats';
2
+ export type { IUserChatsProps } from './components/UserChats';
3
+ export type { IUserChatsProviderProps } from './store/UserChatsProvider';
4
+ export type { IChatProductAccess } from './utils/hasChatProductAccess';
@@ -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 {};