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,80 @@
1
+ import React from 'react';
2
+ import type { IChatListItem, IChatMessage } from '../../../../../entities/chats.view-types';
3
+ import type { IComposerHandle } from '../components/Composer';
4
+ import type { IChatViewMessageActions, IChatViewState } from './ChatView.types';
5
+ export interface IUseChatThreadModelParams {
6
+ chat: IChatListItem;
7
+ messages: IChatMessage[];
8
+ state: IChatViewState;
9
+ messageActions: IChatViewMessageActions;
10
+ matchQuery?: string;
11
+ onBack?: () => void;
12
+ detailsOpen?: boolean;
13
+ onCloseDetails?: () => void;
14
+ }
15
+ export declare const useChatThreadModel: ({ chat, messages, state, messageActions, matchQuery, onBack, detailsOpen, onCloseDetails }: IUseChatThreadModelParams) => {
16
+ chat: IChatListItem;
17
+ title: string;
18
+ matchQuery: string;
19
+ detailsOpen: boolean;
20
+ showInlineDetails: boolean;
21
+ searchQuery: string;
22
+ setSearchQuery: React.Dispatch<React.SetStateAction<string>>;
23
+ handleBack: () => void;
24
+ dropActive: boolean;
25
+ canCompose: boolean;
26
+ blockedMessage: string;
27
+ BlockedIcon: React.FC<{}>;
28
+ visibleMessages: IChatMessage[];
29
+ isListLoading: boolean;
30
+ isMessagesError: boolean;
31
+ onRetryLoadMessages: () => void;
32
+ isSearchActive: boolean;
33
+ hasMoreMessages: boolean;
34
+ isFetchingOlderMessages: boolean;
35
+ lastReadMessageId: number;
36
+ focusMessageId: number;
37
+ scroll: {
38
+ listRef: React.MutableRefObject<HTMLDivElement>;
39
+ showJumpDown: boolean;
40
+ isDateChipVisible: boolean;
41
+ activeDate: string;
42
+ handleScroll: () => void;
43
+ handleJumpDown: () => void;
44
+ jumpToMessage: (messageId: string, options?: {
45
+ defer?: boolean;
46
+ }) => boolean;
47
+ scrollToBottomAfterSend: () => void;
48
+ highlightedMessageId: string;
49
+ highlightNonce: number;
50
+ };
51
+ composer: {
52
+ draft: string;
53
+ composerTarget: import("../../../../../hooks/useChatComposerState").IComposerTarget;
54
+ handleDraftChange: (value: string) => void;
55
+ handleCancelContext: () => void;
56
+ handleReply: (message: IChatMessage) => void;
57
+ handleEdit: (message: IChatMessage) => void;
58
+ handleSend: (text: string, imageUrls: string[], linkPreview?: import("../../../../../entities/chats.view-types").IChatLinkPreview) => void;
59
+ handleDeleteMessage: (messageId: string) => void;
60
+ };
61
+ composerRef: React.MutableRefObject<IComposerHandle>;
62
+ imageViewer: {
63
+ chatImageUrls: string[];
64
+ viewerIndex: number;
65
+ setViewerIndex: React.Dispatch<React.SetStateAction<number>>;
66
+ handleOpenImage: (url: string) => void;
67
+ };
68
+ onSendFile: (chatId: string, file: File) => void;
69
+ onRetryMessage: (chatId: string, messageId: string) => void;
70
+ onCancelSending: (chatId: string, messageId: string) => void;
71
+ onToggleReaction: (chatId: string, messageId: string, emoji: string) => void;
72
+ handleQuoteClick: (messageId: string) => void;
73
+ dragZoneProps: {
74
+ onDragEnter: (event: React.DragEvent) => void;
75
+ onDragOver: (event: React.DragEvent) => void;
76
+ onDragLeave: (event: React.DragEvent) => void;
77
+ onDrop: (event: React.DragEvent) => void;
78
+ };
79
+ };
80
+ export type TChatThreadModel = ReturnType<typeof useChatThreadModel>;
@@ -0,0 +1,51 @@
1
+ /// <reference types="react" />
2
+ import type { TOverlayChatId } from '../../../../../constants/userChats.const';
3
+ import type { IChatViewMessageActions, IChatViewState } from './ChatView.types';
4
+ interface IUseChatsOptions {
5
+ categoryId?: number;
6
+ chatId?: TOverlayChatId;
7
+ enabled?: boolean;
8
+ onSelectChat?: (id: TOverlayChatId) => void;
9
+ }
10
+ export declare const useChats: ({ categoryId, chatId: chatIdFromUrl, enabled, onSelectChat }?: IUseChatsOptions) => {
11
+ refetchInbox: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void | import("../../../../../entities/chats.interface").IGetInboxParams, import("@reduxjs/toolkit/query").BaseQueryFn<import("../../../../../store/chatsBaseQuery").IChatsQueryArgs, unknown, import("../../../../../store/chatsBaseQuery").IChatsQueryError, {}, {}>, "ChatInbox" | "ChatDetail" | "ChatMessages" | "ChatDraft" | "ChatCategories", import("../../../../../entities/chats.interface").IChatListPage, "chatsApi">>;
12
+ handleSendMessage: (chatId: string, text: string, imageUrls?: string[], quote?: import("../../../../../entities/chats.view-types").IChatMessageQuote, linkPreview?: import("../../../../../entities/chats.view-types").IChatLinkPreview) => void;
13
+ handleSendFile: (chatId: string, file: File) => void;
14
+ handleCancelSending: (_chatId: string, messageId: string) => void;
15
+ handleEditMessage: (chatId: string, messageId: string, text: string) => Promise<void>;
16
+ handleToggleReaction: (chatId: string, messageId: string, emoji: string) => Promise<void>;
17
+ handleRetryMessage: (_chatId: string, messageId: string) => void;
18
+ handleDeleteMessage: (chatId: string, messageId: string) => Promise<void>;
19
+ handleDeleteFailedMessage: (chatId: string, messageId: string) => Promise<void>;
20
+ handleDraftChange: (chatId: string, draftText: string) => void;
21
+ handleSelectChat: (chatId: string) => void;
22
+ handleSelectSearchMessage: (chatId: string, messageId: string) => void;
23
+ handleToggleRead: (chatId: string) => Promise<void>;
24
+ handlePin: (chatId: string) => Promise<void>;
25
+ handleToggleNotifications: (chatId: string) => Promise<void>;
26
+ handleConfirmDelete: () => Promise<void>;
27
+ search: string;
28
+ currentUserId: number;
29
+ selectedChatId: string;
30
+ chatIdToDelete: string;
31
+ setChatIdToDelete: import("react").Dispatch<import("react").SetStateAction<string>>;
32
+ chatToDelete: import("../../../../../entities/chats.view-types").IChatListItem;
33
+ visibleChats: import("../../../../../entities/chats.view-types").IChatListItem[];
34
+ messageHits: import("../../../../../entities/chats.view-types").IInboxMessageHit[];
35
+ isMessageSearchActive: boolean;
36
+ isMessageSearchLoading: boolean;
37
+ focusMessageId: string;
38
+ selectedChat: import("../../../../../entities/chats.view-types").IChatListItem;
39
+ isSupportThread: boolean;
40
+ syncSupportListPreview: (messages: import("../../../../../../../components/blocks/SupportV2/SupportV2.typed").ISupportLayoutMessage[]) => void;
41
+ selectedMessages: import("../../../../../entities/chats.view-types").IChatMessage[];
42
+ chatViewState: IChatViewState;
43
+ chatViewMessageActions: IChatViewMessageActions;
44
+ isInboxLoading: boolean;
45
+ isInboxFetching: boolean;
46
+ isInboxListLoading: boolean;
47
+ isInboxError: boolean;
48
+ isRestoringThread: boolean;
49
+ setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
50
+ };
51
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { Dispatch, SetStateAction } from 'react';
2
+ export type TSetStringRecord = Dispatch<SetStateAction<Record<string, string>>>;
3
+ export type TSetLastReadAtOpen = Dispatch<SetStateAction<Record<string, number>>>;
@@ -0,0 +1,36 @@
1
+ import type { TLoadChatProfiles } from '../../../../../hooks/useChatProfiles';
2
+ import { type IMessagesPage, type TChatProfilesMap } from '../../../../../entities/index';
3
+ interface IParams {
4
+ search: string;
5
+ categoryId?: number;
6
+ enabled?: boolean;
7
+ selectedChatId: string | null;
8
+ profiles: TChatProfilesMap;
9
+ loadProfiles: TLoadChatProfiles;
10
+ }
11
+ export declare const useChatsQueries: ({ search, categoryId, enabled, selectedChatId, loadProfiles }: IParams) => {
12
+ inbox: import("../../../../../entities/chats.interface").IChatListPage;
13
+ selectedChatIdNum: number;
14
+ chatDetail: import("../../../../../entities/chats.interface").IChatDetailOut;
15
+ messagesPage: IMessagesPage;
16
+ serverDraft: import("../../../../../entities/chats.interface").IDraftOut;
17
+ isInboxLoading: boolean;
18
+ isInboxFetching: boolean;
19
+ isInboxListLoading: boolean;
20
+ isChatDetailPending: boolean;
21
+ isMessagesLoading: boolean;
22
+ isMessagesError: boolean;
23
+ isInboxError: boolean;
24
+ hasMoreMessages: boolean;
25
+ isFetchingOlderMessages: boolean;
26
+ loadOlderMessages: () => Promise<void>;
27
+ loadOlderUntilMessage: (messageId: number) => Promise<void>;
28
+ refetchInbox: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void | import("../../../../../entities/chats.interface").IGetInboxParams, import("@reduxjs/toolkit/query").BaseQueryFn<import("../../../../../store/chatsBaseQuery").IChatsQueryArgs, unknown, import("../../../../../store/chatsBaseQuery").IChatsQueryError, {}, {}>, "ChatInbox" | "ChatDetail" | "ChatMessages" | "ChatDraft" | "ChatCategories", import("../../../../../entities/chats.interface").IChatListPage, "chatsApi">>;
29
+ refetchMessages: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<{
30
+ chatId: number;
31
+ limit?: number;
32
+ before_id?: number;
33
+ after_id?: number;
34
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<import("../../../../../store/chatsBaseQuery").IChatsQueryArgs, unknown, import("../../../../../store/chatsBaseQuery").IChatsQueryError, {}, {}>, "ChatInbox" | "ChatDetail" | "ChatMessages" | "ChatDraft" | "ChatCategories", IMessagesPage, "chatsApi">>;
35
+ };
36
+ export {};
@@ -0,0 +1,10 @@
1
+ import { IChatFileAttachment, IChatMessage } from '../../../../../entities/chats.view-types';
2
+ interface IChatImageDownload {
3
+ id?: number;
4
+ url: string;
5
+ filename?: string;
6
+ }
7
+ export declare const useDownloadChatFile: () => (file: Pick<IChatFileAttachment, 'id' | 'url' | 'filename'>, onProgress?: (loadedBytes: number) => void) => Promise<void>;
8
+ export declare const useCopyChatMessage: () => (message: IChatMessage) => Promise<import("../utils/copyChatMessage").TCopyChatMessageResult>;
9
+ export declare const useDownloadChatImages: () => (images: IChatImageDownload[]) => Promise<void>;
10
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { TLoadChatProfiles } from '../../../../../hooks/useChatProfiles';
2
+ import { type TChatProfilesMap } from '../../../../../entities/index';
3
+ import type { IInboxMessageHit } from '../../../../../entities/chats.view-types';
4
+ interface IParams {
5
+ search: string;
6
+ enabled?: boolean;
7
+ profiles: TChatProfilesMap;
8
+ loadProfiles: TLoadChatProfiles;
9
+ }
10
+ export declare const useInboxMessageSearch: ({ search, enabled, profiles, loadProfiles }: IParams) => {
11
+ isMessageSearchActive: boolean;
12
+ messageHits: IInboxMessageHit[];
13
+ isMessageSearchLoading: boolean;
14
+ };
15
+ export {};
@@ -0,0 +1,21 @@
1
+ import { type IChatDetailOut, type IChatListPage, type IDraftOut, type IMessagesPage, type TChatProfilesMap } from '../../../../../entities/index';
2
+ import type { IChatListItem } from '../../../../../entities/chats.view-types';
3
+ interface IParams {
4
+ currentUserId?: number;
5
+ profiles: TChatProfilesMap;
6
+ inbox?: IChatListPage;
7
+ selectedChatId: string | null;
8
+ selectedChatIdNum: number | null;
9
+ chatIdToDelete: string | null;
10
+ chatDetail?: IChatDetailOut;
11
+ messagesPage?: IMessagesPage;
12
+ serverDraft?: IDraftOut | null;
13
+ localDrafts: Record<string, string>;
14
+ }
15
+ export declare const useMappedChats: ({ currentUserId, profiles, inbox, selectedChatId, selectedChatIdNum, chatIdToDelete, chatDetail, messagesPage, serverDraft, localDrafts }: IParams) => {
16
+ chats: IChatListItem[];
17
+ selectedChat: IChatListItem;
18
+ chatToDelete: IChatListItem;
19
+ selectedMessages: import("../../../../../entities/chats.view-types").IChatMessage[];
20
+ };
21
+ export {};
@@ -0,0 +1 @@
1
+ export { ChatThread } from './ChatThread';
@@ -0,0 +1,4 @@
1
+ import type { IChatMessage } from '../../../../../entities/chats.view-types';
2
+ export type TCopyChatMessageResult = 'text' | 'image';
3
+ export declare const canCopyMessage: (message: IChatMessage) => boolean;
4
+ export declare const copyChatMessage: (message: IChatMessage) => Promise<TCopyChatMessageResult>;
@@ -0,0 +1,5 @@
1
+ export interface IZipFile {
2
+ name: string;
3
+ data: Uint8Array;
4
+ }
5
+ export declare const createZipArchive: (files: IZipFile[]) => Blob;
@@ -0,0 +1,2 @@
1
+ export type TAttachmentProgress = (loadedBytes: number) => void;
2
+ export declare const fetchChatAttachmentBlob: (url: string, onProgress?: TAttachmentProgress) => Promise<Blob>;
@@ -0,0 +1,6 @@
1
+ import { Locales } from '../../../../../../../common.types';
2
+ import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
3
+ export declare const formatChatTime: (date?: Date, locale?: Locales) => string;
4
+ export declare const formatChatTimeLabel: (iso?: string | null, locale?: Locales) => string;
5
+ export declare const formatPeerLastSeen: (lastSeenAt: string | null | undefined, copy: TUserChatsCopy, locale?: Locales) => string;
6
+ export declare const getPersonalChatPresenceLabel: (copy: TUserChatsCopy, locale: Locales, isOnline?: boolean, lastSeenAt?: string | null) => string;
@@ -0,0 +1,3 @@
1
+ import { Locales } from '../../../../../../../common.types';
2
+ export declare const formatFileSize: (bytes: number, locale?: Locales) => string;
3
+ export declare const formatUploadProgress: (loadedBytes: number, sizeBytes: number, locale?: Locales) => string;
@@ -0,0 +1,9 @@
1
+ import type { FC } from 'react';
2
+ import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
3
+ import type { IChatListItem } from '../../../../../entities/chats.view-types';
4
+ export interface IChatComposeAccess {
5
+ canCompose: boolean;
6
+ blockedMessage: string | null;
7
+ Icon: FC | null;
8
+ }
9
+ export declare const getChatComposeAccess: (chat: IChatListItem, copy: Pick<TUserChatsCopy, 'blockedInGroup' | 'groupClosed' | 'cannotSendHere'>) => IChatComposeAccess;
@@ -0,0 +1,2 @@
1
+ import type { IChatMessage } from '../../../../../entities/chats.view-types';
2
+ export declare const getChatImageUrls: (messages: IChatMessage[]) => string[];
@@ -0,0 +1,13 @@
1
+ import type { ILinkPreviewOut } from '../../../../../entities/index';
2
+ import type { IChatLinkPreview } from '../../../../../entities/chats.view-types';
3
+ export declare const extractUrls: (text: string) => string[];
4
+ export declare const splitTextAndUrls: (text: string) => Array<{
5
+ type: 'text' | 'url';
6
+ value: string;
7
+ }>;
8
+ export declare const getLinkPreviewBanner: (preview: IChatLinkPreview) => {
9
+ title: string;
10
+ subtitle: string;
11
+ };
12
+ export declare const mapApiLinkPreview: (preview: ILinkPreviewOut | null | undefined) => IChatLinkPreview | undefined;
13
+ export declare const toServerLinkPreview: (preview: IChatLinkPreview) => ILinkPreviewOut;
@@ -0,0 +1,3 @@
1
+ import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
2
+ import type { IChatMessage } from '../../../../../entities/chats.view-types';
3
+ export declare const getMessageAuthorName: (message: IChatMessage, chatTitle: string, copy: Pick<TUserChatsCopy, 'authorYou'>) => string;
@@ -0,0 +1,4 @@
1
+ import type { TUserChatsCopy } from '../../../../../../../localization/translations/userChats';
2
+ import type { IChatMessage } from '../../../../../entities/chats.view-types';
3
+ export declare const getMessagePreview: (message: IChatMessage | undefined, copy: Pick<TUserChatsCopy, 'previewPhoto'>) => string;
4
+ export declare const getMessageCopyText: (message: IChatMessage, copy: Pick<TUserChatsCopy, 'previewPhoto'>) => string;
@@ -0,0 +1,19 @@
1
+ import type { IChatFileAttachment, IChatLinkPreview, IChatMessage, IChatMessageQuote } from '../../../../../entities/chats.view-types';
2
+ import { Locales } from '../../../../../../../common.types';
3
+ export declare const createLocalMessageId: () => string;
4
+ export declare const isLocalMessageId: (messageId: string) => boolean;
5
+ export declare const revokeBlobUrls: (urls?: Array<string | undefined>) => void;
6
+ interface IOptimisticMessageParams {
7
+ id: string;
8
+ chatId: string;
9
+ content?: string;
10
+ imageUrls?: string[];
11
+ file?: IChatFileAttachment;
12
+ reply_to?: IChatMessageQuote;
13
+ link_preview?: IChatLinkPreview;
14
+ dateToday?: string;
15
+ locale?: Locales;
16
+ }
17
+ export declare const createOptimisticMessage: ({ id, chatId, content, imageUrls, file, reply_to, link_preview, dateToday, locale }: IOptimisticMessageParams) => IChatMessage;
18
+ export declare const mergePendingMessages: (serverMessages: IChatMessage[], pendingMessages: IChatMessage[], chatId: string | null) => IChatMessage[];
19
+ export {};
@@ -0,0 +1,7 @@
1
+ import { TAttachmentProgress } from './fetchChatAttachment';
2
+ export declare const saveChatImage: (url: string, filename?: string) => Promise<void>;
3
+ export declare const saveChatFile: (url: string, filename: string, onProgress?: TAttachmentProgress) => Promise<void>;
4
+ export declare const saveChatImages: (images: Array<{
5
+ url: string;
6
+ filename?: string;
7
+ }>) => Promise<void>;
@@ -0,0 +1,11 @@
1
+ import type { IChatMessage } from '../../../../../entities/chats.view-types';
2
+ export interface IHighlightedPart {
3
+ type: 'text' | 'match';
4
+ value: string;
5
+ }
6
+ export interface IMessageDateGroup {
7
+ dateLabel: string;
8
+ messages: IChatMessage[];
9
+ }
10
+ export declare const splitByHighlight: (text: string, query: string) => IHighlightedPart[];
11
+ export declare const groupMessagesByDate: (messages: IChatMessage[]) => IMessageDateGroup[];
@@ -0,0 +1,2 @@
1
+ import type { IChatMessage } from '../../../../../entities/chats.view-types';
2
+ export declare const shouldStackMessages: (previous: IChatMessage | undefined, current: IChatMessage) => boolean;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EmptyState: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const EmptyImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
@@ -0,0 +1 @@
1
+ export { EmptyState } from './EmptyState';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface IProps {
3
+ open: boolean;
4
+ images: string[];
5
+ index: number;
6
+ onClose: () => void;
7
+ onIndexChange: (index: number) => void;
8
+ }
9
+ export declare const ImageViewerModal: ({ open, images, index, onClose, onIndexChange }: IProps) => JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const ModalWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../../../../../../components/uikit/Modal/Modal.typed").IModal, never>> & string & Omit<(props: import("../../../../../../components/uikit/Modal/Modal.typed").IModal) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
3
+ export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const Image: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
5
+ export declare const ArrowButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
6
+ $direction?: 'left' | 'right';
7
+ }>> & string;
@@ -0,0 +1 @@
1
+ export { ImageViewerModal } from './ImageViewerModal';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import type { IChatListItem, IChatMessage } from '../../../../entities/chats.view-types';
3
+ import type { IMessageListActions, IMessageListHighlight } from './MessageList.types';
4
+ interface IProps {
5
+ chat: IChatListItem;
6
+ messages: IChatMessage[];
7
+ lastReadMessageId: number | null;
8
+ highlight: IMessageListHighlight;
9
+ older?: {
10
+ hasMore: boolean;
11
+ isFetching: boolean;
12
+ };
13
+ actions: IMessageListActions;
14
+ onScroll: () => void;
15
+ canCompose?: boolean;
16
+ }
17
+ export declare const MessageList: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>;
18
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const LoadMore: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ export declare const Block: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const MessageGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const DateChip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("../../../../../../components/uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>, "ref"> & {
8
+ ref?: import("react").Ref<HTMLElement>;
9
+ }, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("../../../../../../components/uikit/Typography/Typography.typed").ITypographyProps & import("react").CSSProperties & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,18 @@
1
+ import type { IChatMessage } from '../../../../entities/chats.view-types';
2
+ export interface IMessageListActions {
3
+ onRetry: (messageId: string) => void;
4
+ onDelete: (messageId: string) => void;
5
+ onCancelSending: (messageId: string) => void;
6
+ onReply: (message: IChatMessage) => void;
7
+ onEdit: (message: IChatMessage) => void;
8
+ onToggleReaction: (messageId: string, emoji: string) => void;
9
+ onOpenImage: (url: string) => void;
10
+ onQuoteClick?: (messageId: string) => void;
11
+ }
12
+ export interface IMessageListHighlight {
13
+ query: string;
14
+ matchQuery?: string;
15
+ focusedMessageId?: string | null;
16
+ messageId?: string | null;
17
+ nonce?: number;
18
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface IProps {
3
+ query: string;
4
+ }
5
+ export declare const EmptyMessage: ({ query }: IProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const EmptyImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
4
+ $isQuery?: boolean;
5
+ }>> & string;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import type { IChatMessage } from '../../../../../../entities/chats.view-types';
3
+ import type { IMessageListActions } from '../../MessageList.types';
4
+ interface IProps {
5
+ message: IChatMessage;
6
+ isGroup: boolean;
7
+ isStacked?: boolean;
8
+ highlightQuery?: string;
9
+ actions: IMessageListActions;
10
+ canCompose?: boolean;
11
+ }
12
+ export declare const MessageCard: ({ message, isGroup, isStacked, highlightQuery, actions, canCompose }: IProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { TChatMessageSide } from '../../../../../../entities/chats.view-types';
3
+ export declare const MessageRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ $side: TChatMessageSide;
5
+ $actionsOpen?: boolean;
6
+ $stacked?: boolean;
7
+ }>> & string;
8
+ export declare const AvatarSlot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const BubbleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
+ $hasMedia?: boolean;
11
+ $isOutgoing?: boolean;
12
+ }>> & string;
13
+ export declare const Bubble: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
14
+ $side: TChatMessageSide;
15
+ $hasMedia?: boolean;
16
+ $hasFile?: boolean;
17
+ $hasQuote?: boolean;
18
+ $hasLinkPreview?: boolean;
19
+ }>> & string;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { IChatFileAttachment, TChatMessageSide } from '../../../../../../../../entities/chats.view-types';
3
+ interface IProps {
4
+ file: IChatFileAttachment;
5
+ side: TChatMessageSide;
6
+ isSending: boolean;
7
+ highlightQuery?: string;
8
+ onCancel: () => void;
9
+ }
10
+ export declare const FileAttachment: ({ file, side, isSending, highlightQuery, onCancel }: IProps) => JSX.Element;
11
+ export {};
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { TChatMessageSide } from '../../../../../../../../entities/chats.view-types';
3
+ export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ $clickable?: boolean;
5
+ }>> & string;
6
+ export declare const Thumb: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const Preview: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
8
+ export declare const FileFallback: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
+ $side: TChatMessageSide;
10
+ }>> & string;
11
+ export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
12
+ $isOutgoing: boolean;
13
+ }>> & string;
14
+ export declare const Meta: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { IChatMessage } from '../../../../../../../../entities/chats.view-types';
3
+ interface IProps {
4
+ message: IChatMessage;
5
+ onReply: (message: IChatMessage) => void;
6
+ onEdit: (message: IChatMessage) => void;
7
+ onRetry: (messageId: string) => void;
8
+ onDelete: (messageId: string) => void;
9
+ onToggleReaction: (messageId: string, emoji: string) => void;
10
+ onOpenChange: (isOpen: boolean) => void;
11
+ }
12
+ export declare const MessageActions: ({ message, onReply, onEdit, onRetry, onDelete, onToggleReaction, onOpenChange }: IProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const Root: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $isOutgoing: boolean;
4
+ }>> & string;
5
+ export declare const ActionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
6
+ export declare const Reactions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export declare const ReactionButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
8
+ $active?: boolean;
9
+ }>> & string;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { IChatMessage } from '../../../../../../../../entities/chats.view-types';
3
+ interface IProps {
4
+ message: IChatMessage;
5
+ children: React.ReactNode;
6
+ onEdit: () => void;
7
+ onReply: () => void;
8
+ onRetry: () => void;
9
+ onDelete: () => void;
10
+ onToggleReaction: (emoji: string) => void;
11
+ onOpenChange?: (isOpen: boolean) => void;
12
+ }
13
+ export declare const MessageBubbleMenu: ({ message, children, onEdit, onReply, onRetry, onDelete, onToggleReaction, onOpenChange }: IProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { IChatMessage } from '../../../../../../../../entities/chats.view-types';
3
+ interface IProps {
4
+ message: IChatMessage;
5
+ onEdit: () => void;
6
+ onCopy: () => void;
7
+ onRetry: () => void;
8
+ onDelete: () => void;
9
+ onOpenChange?: (isOpen: boolean) => void;
10
+ }
11
+ export declare const MessageContextMenu: ({ message, onEdit, onCopy, onRetry, onDelete, onOpenChange }: IProps) => JSX.Element;
12
+ export {};