@layers-app/shared 0.4.7 → 0.4.9

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 (278) hide show
  1. package/dist/assets/default-workspace-avatar.jpg.js +1 -1
  2. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  3. package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
  4. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  5. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  6. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  7. package/dist/components/AppContainer/AppContainer.js +76 -71
  8. package/dist/components/AppContainer/AppContainer.module.css.js +14 -14
  9. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
  11. package/dist/components/AppContainer/components/NavbarContent.d.ts.map +1 -1
  12. package/dist/components/AppContainer/components/NavbarContent.js +16 -2
  13. package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
  14. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  15. package/dist/components/AppContainer/components/ToolSidebar.js +42 -30
  16. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +90 -90
  17. package/dist/components/AppContainer/types.d.ts +12 -0
  18. package/dist/components/AppContainer/types.d.ts.map +1 -1
  19. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  20. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  21. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +59 -52
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  23. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +1 -0
  24. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -1
  25. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +16 -15
  26. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +22 -22
  27. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  29. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
  30. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +22 -20
  31. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -4
  32. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
  33. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +1 -1
  34. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
  35. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -44
  36. package/dist/components/Chat/ChatInput/index.d.ts +13 -1
  37. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  38. package/dist/components/Chat/ChatInput/index.js +264 -164
  39. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
  40. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
  41. package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
  42. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
  43. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
  44. package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
  45. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  46. package/dist/components/Chat/ChatMessage/index.js +153 -118
  47. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
  48. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
  49. package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
  50. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
  51. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
  52. package/dist/components/Chat/MessageActions/index.d.ts +2 -0
  53. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  54. package/dist/components/Chat/MessageActions/index.js +188 -50
  55. package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
  56. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
  57. package/dist/components/Chat/MessageAuthor/index.js +39 -25
  58. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
  59. package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
  60. package/dist/components/Chat/MessageList/index.d.ts +17 -25
  61. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  62. package/dist/components/Chat/MessageList/index.js +201 -149
  63. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
  64. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +12 -12
  65. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
  66. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -8
  67. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
  68. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  69. package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
  70. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  71. package/dist/components/ColorPicker/ColorPickerList.js +83 -72
  72. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
  73. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  74. package/dist/components/ColorPicker/ColorPickerToolbar.js +94 -85
  75. package/dist/components/ColorPicker/icons.js +5 -5
  76. package/dist/components/ColorPicker/types.d.ts +6 -0
  77. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  78. package/dist/components/ColorPicker/types.js +53 -11
  79. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  80. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  81. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  82. package/dist/components/CommentComposer/CommentComposer.module.css.js +14 -10
  83. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
  84. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  85. package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
  86. package/dist/components/CommentComposer/index.d.ts +2 -1
  87. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  88. package/dist/components/CommentComposer/index.js +333 -313
  89. package/dist/components/CommentComposer/types.d.ts +10 -0
  90. package/dist/components/CommentComposer/types.d.ts.map +1 -1
  91. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  92. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  93. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  94. package/dist/components/CustomKBD/index.js +21 -22
  95. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  96. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  97. package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
  98. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  99. package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
  100. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  101. package/dist/components/EntityTitle/EntityTitle.js +81 -80
  102. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  103. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  104. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  105. package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
  106. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  107. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  108. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  109. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  110. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  111. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  112. package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
  113. package/dist/components/FormViewer/helpers/conditions.js +33 -17
  114. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  115. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  116. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  117. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  118. package/dist/components/Loaders/styles.module.css.js +6 -6
  119. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  120. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  121. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  122. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  123. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  124. package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
  125. package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
  126. package/dist/components/Notification/InfiniteScroll.js +42 -0
  127. package/dist/components/Notification/Notification.d.ts +4 -1
  128. package/dist/components/Notification/Notification.d.ts.map +1 -1
  129. package/dist/components/Notification/Notification.module.css.js +28 -4
  130. package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
  131. package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
  132. package/dist/components/Notification/atoms/ActionBadge.js +53 -0
  133. package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
  134. package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
  135. package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
  136. package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
  137. package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
  138. package/dist/components/Notification/atoms/InboxIcon.js +33 -0
  139. package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
  140. package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
  141. package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
  142. package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
  143. package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
  144. package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
  145. package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
  146. package/dist/components/Notification/atoms/TabBadge.js +32 -0
  147. package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
  148. package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
  149. package/dist/components/Notification/atoms/UnreadDot.js +23 -0
  150. package/dist/components/Notification/atoms/index.d.ts +5 -0
  151. package/dist/components/Notification/atoms/index.d.ts.map +1 -0
  152. package/dist/components/Notification/hooks/index.d.ts +8 -0
  153. package/dist/components/Notification/hooks/index.d.ts.map +1 -0
  154. package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
  155. package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
  156. package/dist/components/Notification/hooks/useInboxActions.js +58 -0
  157. package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
  158. package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
  159. package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
  160. package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
  161. package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
  162. package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
  163. package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
  164. package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
  165. package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
  166. package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
  167. package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
  168. package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
  169. package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
  170. package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
  171. package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
  172. package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
  173. package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
  174. package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
  175. package/dist/components/Notification/lib/api.d.ts +4 -0
  176. package/dist/components/Notification/lib/api.d.ts.map +1 -0
  177. package/dist/components/Notification/lib/api.js +19 -0
  178. package/dist/components/Notification/lib/index.d.ts +5 -0
  179. package/dist/components/Notification/lib/index.d.ts.map +1 -0
  180. package/dist/components/Notification/lib/notificationText.d.ts +10 -0
  181. package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
  182. package/dist/components/Notification/lib/notificationText.js +131 -0
  183. package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
  184. package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
  185. package/dist/components/Notification/lib/stripHtml.js +6 -0
  186. package/dist/components/Notification/lib/types.d.ts +45 -0
  187. package/dist/components/Notification/lib/types.d.ts.map +1 -0
  188. package/dist/components/Notification/lib/types.js +9 -0
  189. package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
  190. package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
  191. package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
  192. package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
  193. package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
  194. package/dist/components/Notification/molecules/InboxHeader.js +73 -0
  195. package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
  196. package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
  197. package/dist/components/Notification/molecules/InboxTabs.js +60 -0
  198. package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
  199. package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
  200. package/dist/components/Notification/molecules/NotificationActions.js +64 -0
  201. package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
  202. package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
  203. package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
  204. package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
  205. package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
  206. package/dist/components/Notification/molecules/NotificationContent.js +183 -0
  207. package/dist/components/Notification/molecules/index.d.ts +7 -0
  208. package/dist/components/Notification/molecules/index.d.ts.map +1 -0
  209. package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
  210. package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
  211. package/dist/components/Notification/organisms/InboxItem.js +100 -0
  212. package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
  213. package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
  214. package/dist/components/Notification/organisms/InboxPanel.js +99 -0
  215. package/dist/components/Notification/organisms/index.d.ts +3 -0
  216. package/dist/components/Notification/organisms/index.d.ts.map +1 -0
  217. package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
  218. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  219. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  220. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  221. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  222. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  223. package/dist/components/modals/RemoveConfirmModal.js +27 -26
  224. package/dist/components/table/FrontTable.d.ts.map +1 -1
  225. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  226. package/dist/config/envConfig.d.ts +2 -0
  227. package/dist/config/envConfig.d.ts.map +1 -1
  228. package/dist/config/envConfig.js +29 -28
  229. package/dist/helpers/getFileIcons.js +5 -5
  230. package/dist/helpers/getFileType.d.ts +1 -1
  231. package/dist/helpers/getFileType.d.ts.map +1 -1
  232. package/dist/helpers/getFileType.js +11 -1
  233. package/dist/helpers/platform.d.ts +1 -1
  234. package/dist/helpers/platform.d.ts.map +1 -1
  235. package/dist/helpers/platform.js +1 -0
  236. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  237. package/dist/helpers/showNotifications.module.css.js +1 -1
  238. package/dist/hooks/useDateUtils.d.ts +3 -1
  239. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  240. package/dist/hooks/useDateUtils.js +23 -18
  241. package/dist/index.css +1 -1
  242. package/dist/index.js +595 -588
  243. package/dist/lang/locales/ui_en.json.js +9 -7
  244. package/dist/lang/locales/ui_es.json.js +6 -4
  245. package/dist/lang/locales/ui_ru.json.js +8 -6
  246. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
  247. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
  248. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
  249. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
  250. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
  251. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
  252. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
  253. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
  254. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
  255. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
  256. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
  257. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
  258. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
  259. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
  260. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
  261. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
  262. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
  263. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
  264. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
  265. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
  266. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
  267. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
  268. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
  269. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
  270. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
  271. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
  272. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
  273. package/docs/README.md +499 -499
  274. package/package.json +81 -79
  275. package/dist/components/Notification/Notification.js +0 -119
  276. package/dist/components/Notification/NotificationCard.d.ts +0 -10
  277. package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
  278. package/dist/components/Notification/NotificationCard.js +0 -93
@@ -1,159 +1,211 @@
1
- import { jsxs as T, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as D, useRef as i, useState as P, useEffect as u, useCallback as W, useImperativeHandle as k } from "react";
3
- import { ArrowDown01Icon as C } from "@hugeicons/core-free-icons";
4
- import { HugeiconsIcon as G } from "@hugeicons/react";
5
- import { ScrollArea as J, ActionIcon as K } from "@mantine/core";
6
- import s from "./MessageList.module.css.js";
7
- const Q = D(
8
- function({
9
- children: L,
10
- className: y,
11
- style: E,
12
- stickToBottom: f,
13
- unreadCount: v = 0,
14
- onStickChange: h,
15
- resetKey: F,
16
- onReachTop: g,
17
- floatingTopAction: N,
18
- bottomOffset: M = 0
19
- }, $) {
20
- const r = i(null), B = i(null), n = i(!0), w = i(0), [A, q] = P(!1), H = i(h), b = i(g), x = i(!1);
21
- u(() => {
22
- H.current = h;
23
- }, [h]), u(() => {
24
- b.current = g;
25
- }, [g]), u(() => {
26
- const e = r.current, o = B.current;
27
- if (!e || !o) return;
28
- const t = new IntersectionObserver(
29
- (m) => {
30
- if (!m[0]?.isIntersecting || x.current || !b.current || n.current) return;
31
- x.current = !0;
32
- const p = e.scrollHeight, c = e.scrollTop;
33
- Promise.resolve(b.current()).then(() => {
34
- requestAnimationFrame(() => {
35
- const a = r.current;
36
- if (!a) return;
37
- const d = a.scrollHeight - p;
38
- d > 0 && (a.scrollTop = c + d);
39
- });
40
- }).finally(() => {
41
- x.current = !1;
42
- });
43
- },
44
- { root: e, rootMargin: "300px 0px 0px 0px" }
45
- );
46
- return t.observe(o), () => t.disconnect();
47
- }, []);
48
- const z = W(() => {
49
- r.current && r.current.scrollTo({
50
- top: r.current.scrollHeight,
51
- behavior: "smooth"
52
- });
53
- }, []);
54
- k(
55
- $,
56
- () => ({
57
- scrollToBottom: () => {
58
- const e = r.current;
59
- if (!e) return;
60
- n.current = !0, H.current?.(!0), e.scrollTop = e.scrollHeight;
61
- const o = () => {
62
- const t = r.current;
63
- t && (t.scrollTop = t.scrollHeight, n.current = !0);
1
+ import { jsxs as U, jsx as s } from "react/jsx-runtime";
2
+ import { forwardRef as se, useRef as a, useState as B, useEffect as p, useCallback as v, useLayoutEffect as Y, useImperativeHandle as ce } from "react";
3
+ import { ArrowDown01Icon as ie } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as ae } from "@hugeicons/react";
5
+ import { ScrollArea as ue, ActionIcon as de } from "@mantine/core";
6
+ import { useVirtualizer as fe } from "@tanstack/react-virtual";
7
+ import l from "./MessageList.module.css.js";
8
+ const he = 300, me = 100;
9
+ function pe({
10
+ items: t,
11
+ renderItem: N,
12
+ getItemKey: f,
13
+ estimateItemSize: g = 64,
14
+ className: O,
15
+ style: G,
16
+ contentStyle: J,
17
+ stickToBottom: w,
18
+ unreadCount: T = 0,
19
+ onStickChange: x,
20
+ onReachTop: b,
21
+ floatingTopAction: z,
22
+ bottomOffset: K = 0,
23
+ contentBottomPad: F = 0
24
+ }, Q) {
25
+ const u = a(null), S = a(null), n = a(!0), [I, X] = B(!1), [q, D] = B(0), [M, V] = B(null), h = a(null), m = a(x), y = a(b), $ = a(!1);
26
+ p(() => {
27
+ m.current = x;
28
+ }, [x]), p(() => {
29
+ y.current = b;
30
+ }, [b]);
31
+ const o = t.length > me, Z = v(
32
+ (e) => typeof g == "function" ? g(t[e], e) : g,
33
+ [g, t]
34
+ ), d = fe({
35
+ count: t.length,
36
+ // Only let the virtualizer drive the scroll element while virtualizing, so
37
+ // the flow path owns scrolling outright (no competing scroll math).
38
+ getScrollElement: v(
39
+ () => o ? u.current : null,
40
+ [o]
41
+ ),
42
+ estimateSize: Z,
43
+ getItemKey: v(
44
+ (e) => f(t[e], e),
45
+ [t, f]
46
+ ),
47
+ overscan: 12
48
+ }), _ = d.getTotalSize(), C = o ? d.getVirtualItems() : [], j = o ? Math.max(0, q - _) : 0, k = j + _ + F, c = v(() => {
49
+ const e = u.current;
50
+ e && (e.scrollTop = e.scrollHeight);
51
+ }, []);
52
+ Y(() => {
53
+ !w || !n.current || c();
54
+ }, [k, t, w, c]), p(() => {
55
+ const e = S.current;
56
+ if (!e || !w) return;
57
+ const r = new ResizeObserver(() => {
58
+ n.current && c();
59
+ });
60
+ return r.observe(e), () => r.disconnect();
61
+ }, [w, c]);
62
+ const W = v(
63
+ (e) => {
64
+ const r = t.findIndex((i, R) => f(i, R) === e);
65
+ r < 0 || (n.current = !1, o ? (d.scrollToIndex(r, { align: "center" }), requestAnimationFrame(
66
+ () => d.scrollToIndex(r, { align: "center" })
67
+ )) : S.current?.querySelector(`[data-index="${r}"]`)?.scrollIntoView({ block: "center" }), V(e), h.current && window.clearTimeout(h.current), h.current = window.setTimeout(
68
+ () => V(null),
69
+ 1600
70
+ ));
71
+ },
72
+ [t, f, o, d]
73
+ );
74
+ ce(
75
+ Q,
76
+ () => ({
77
+ scrollToBottom: () => {
78
+ n.current = !0, m.current?.(!0), c();
79
+ },
80
+ scrollToKey: W
81
+ }),
82
+ [c, W]
83
+ ), p(
84
+ () => () => {
85
+ h.current && window.clearTimeout(h.current);
86
+ },
87
+ []
88
+ ), Y(() => {
89
+ const e = u.current;
90
+ if (!e) return;
91
+ const r = new ResizeObserver(() => D(e.clientHeight));
92
+ return r.observe(e), D(e.clientHeight), () => r.disconnect();
93
+ }, []), p(() => {
94
+ const e = u.current;
95
+ if (!e) return;
96
+ let r = !1, i = e.scrollTop;
97
+ const R = () => {
98
+ const { scrollTop: H, scrollHeight: te, clientHeight: oe } = e, P = te - H - oe, ne = H < i;
99
+ i = H, P < 40 ? n.current || (n.current = !0, m.current?.(!0)) : ne && n.current && (n.current = !1, m.current?.(!1));
100
+ const E = P > 200;
101
+ if (E !== r && (r = E, X(E)), H < he && !n.current && !$.current && y.current) {
102
+ $.current = !0;
103
+ const le = e.scrollHeight - e.scrollTop;
104
+ Promise.resolve(y.current()).then(() => {
105
+ const L = () => {
106
+ const A = u.current;
107
+ A && (A.scrollTop = A.scrollHeight - le);
64
108
  };
65
109
  requestAnimationFrame(() => {
66
- o(), requestAnimationFrame(o);
110
+ L(), requestAnimationFrame(() => {
111
+ L(), requestAnimationFrame(L);
112
+ });
67
113
  });
68
- }
69
- }),
70
- []
71
- ), u(() => {
72
- !f || !r.current || (n.current = !0, w.current = r.current.scrollHeight, r.current.scrollTop = r.current.scrollHeight);
73
- }, [f, F]), u(() => {
74
- const e = r.current;
75
- if (!f || !e) return;
76
- const o = new ResizeObserver(() => {
77
- const c = e.scrollHeight;
78
- c !== w.current && n.current && (e.scrollTop = c), w.current = c;
79
- }), t = e.firstElementChild;
80
- t && o.observe(t);
81
- let m = !1;
82
- const p = () => {
83
- const { scrollTop: c, scrollHeight: a, clientHeight: d } = e, I = a - c - d, S = I < 40;
84
- S !== n.current && (n.current = S, H.current?.(S));
85
- const R = I > 200;
86
- R !== m && (m = R, q(R));
87
- };
88
- return e.addEventListener("scroll", p, { passive: !0 }), () => {
89
- o.disconnect(), e.removeEventListener("scroll", p);
90
- };
91
- }, [f]);
92
- const O = v > 999 ? "999+" : v, j = v > 0;
93
- return /* @__PURE__ */ T(
94
- "div",
95
- {
96
- className: s.container,
97
- style: { "--ml-bottom-offset": `${M}px` },
98
- children: [
99
- /* @__PURE__ */ l(
100
- J,
101
- {
102
- className: `${s.root}${y ? ` ${y}` : ""}`,
103
- style: E,
104
- type: "auto",
105
- scrollbars: "y",
106
- viewportRef: r,
107
- "data-testid": "message-list",
108
- styles: {
109
- content: {
110
- display: "flex",
111
- flexDirection: "column",
112
- minHeight: "100%"
113
- }
114
- },
115
- children: /* @__PURE__ */ T("div", { className: s.wrapper, children: [
116
- /* @__PURE__ */ l(
114
+ }).finally(() => {
115
+ $.current = !1;
116
+ });
117
+ }
118
+ };
119
+ return e.addEventListener("scroll", R, { passive: !0 }), () => e.removeEventListener("scroll", R);
120
+ }, []);
121
+ const ee = T > 999 ? "999+" : T, re = T > 0;
122
+ return /* @__PURE__ */ U(
123
+ "div",
124
+ {
125
+ className: l.container,
126
+ style: { "--ml-bottom-offset": `${K}px` },
127
+ children: [
128
+ /* @__PURE__ */ s(
129
+ ue,
130
+ {
131
+ className: `${l.root}${O ? ` ${O}` : ""}`,
132
+ style: G,
133
+ type: "auto",
134
+ scrollbars: "y",
135
+ viewportRef: u,
136
+ "data-testid": "message-list",
137
+ children: /* @__PURE__ */ s(
138
+ "div",
139
+ {
140
+ ref: S,
141
+ className: l.virtualRoot,
142
+ "data-testid": "message-list-items",
143
+ "data-flow": !o || void 0,
144
+ style: {
145
+ height: o ? k : void 0,
146
+ // Fill the viewport (real px — a `%` doesn't resolve through Mantine
147
+ // ScrollArea's content wrapper) so the leading margin-top:auto can
148
+ // push a short chat to the bottom edge.
149
+ minHeight: o ? void 0 : q || void 0,
150
+ paddingBottom: o ? void 0 : F,
151
+ ...J
152
+ },
153
+ children: o ? C.map((e) => /* @__PURE__ */ s(
117
154
  "div",
118
155
  {
119
- ref: B,
120
- className: s.top,
121
- "data-testid": "message-list-top"
122
- }
123
- ),
124
- /* @__PURE__ */ l("div", { className: s.items, "data-testid": "message-list-items", children: L })
125
- ] })
126
- }
127
- ),
128
- A && /* @__PURE__ */ T("div", { className: s.scrollToBottomWrap, children: [
129
- /* @__PURE__ */ l(
130
- K,
131
- {
132
- variant: "default",
133
- radius: "xl",
134
- size: 34,
135
- onClick: z,
136
- "aria-label": "Scroll to bottom",
137
- "data-testid": "scroll-to-bottom",
138
- children: /* @__PURE__ */ l(G, { icon: C, size: 18 })
156
+ "data-index": e.index,
157
+ ref: d.measureElement,
158
+ className: `${l.virtualRow}${e.key === M ? ` ${l.highlightRow}` : ""}`,
159
+ style: { transform: `translateY(${j + e.start}px)` },
160
+ children: N(t[e.index], e.index)
161
+ },
162
+ e.key
163
+ )) : t.map((e, r) => {
164
+ const i = f(e, r);
165
+ return /* @__PURE__ */ s(
166
+ "div",
167
+ {
168
+ "data-index": r,
169
+ className: `${l.flowRow}${i === M ? ` ${l.highlightRow}` : ""}`,
170
+ children: N(e, r)
171
+ },
172
+ i
173
+ );
174
+ })
139
175
  }
140
- ),
141
- j && /* @__PURE__ */ l("span", { className: s.scrollToBottomBadge, children: O })
142
- ] }),
143
- N && /* @__PURE__ */ l(
144
- "div",
176
+ )
177
+ }
178
+ ),
179
+ I && /* @__PURE__ */ U("div", { className: l.scrollToBottomWrap, children: [
180
+ /* @__PURE__ */ s(
181
+ de,
145
182
  {
146
- className: s.floatingTopAction,
147
- "data-raised": A || void 0,
148
- children: N
183
+ variant: "default",
184
+ radius: "xl",
185
+ size: 34,
186
+ onClick: () => {
187
+ n.current = !0, m.current?.(!0), c();
188
+ },
189
+ "aria-label": "Scroll to bottom",
190
+ "data-testid": "scroll-to-bottom",
191
+ children: /* @__PURE__ */ s(ae, { icon: ie, size: 18 })
149
192
  }
150
- )
151
- ]
152
- }
153
- );
154
- }
155
- );
156
- Q.displayName = "MessageList";
193
+ ),
194
+ re && /* @__PURE__ */ s("span", { className: l.scrollToBottomBadge, children: ee })
195
+ ] }),
196
+ z && /* @__PURE__ */ s(
197
+ "div",
198
+ {
199
+ className: l.floatingTopAction,
200
+ "data-raised": I || void 0,
201
+ children: z
202
+ }
203
+ )
204
+ ]
205
+ }
206
+ );
207
+ }
208
+ const be = se(pe);
157
209
  export {
158
- Q as MessageList
210
+ be as MessageList
159
211
  };
@@ -1,12 +1,12 @@
1
- const t = "_root_1bzsv_1", e = "_time_1bzsv_31", s = "_edited_1bzsv_35", o = "_views_1bzsv_39", _ = {
1
+ const t = "_root_q0fbi_1", e = "_time_q0fbi_61", i = "_edited_q0fbi_69", o = "_views_q0fbi_77", _ = {
2
2
  root: t,
3
3
  time: e,
4
- edited: s,
4
+ edited: i,
5
5
  views: o
6
6
  };
7
7
  export {
8
8
  _ as default,
9
- s as edited,
9
+ i as edited,
10
10
  t as root,
11
11
  e as time,
12
12
  o as views
@@ -1,15 +1,15 @@
1
- const o = "_row_1ge4m_1", t = "_pill_1ge4m_10", _ = "_emoji_1ge4m_50", e = "_count_1ge4m_71", m = "_meta_1ge4m_93", c = {
2
- row: o,
3
- pill: t,
4
- emoji: _,
5
- count: e,
6
- meta: m
1
+ const t = "_row_mtm4b_1", m = "_pill_mtm4b_19", o = "_emoji_mtm4b_99", _ = "_count_mtm4b_141", c = "_meta_mtm4b_185", e = {
2
+ row: t,
3
+ pill: m,
4
+ emoji: o,
5
+ count: _,
6
+ meta: c
7
7
  };
8
8
  export {
9
- e as count,
10
- c as default,
11
- _ as emoji,
12
- m as meta,
13
- t as pill,
14
- o as row
9
+ _ as count,
10
+ e as default,
11
+ o as emoji,
12
+ c as meta,
13
+ m as pill,
14
+ t as row
15
15
  };
@@ -1,15 +1,15 @@
1
- const t = "_root_z3fvn_11", o = "_border_z3fvn_8", n = "_content_z3fvn_34", e = "_title_z3fvn_43", _ = "_subtitle_z3fvn_55", s = {
1
+ const t = "_root_13gux_21", o = "_border_13gux_15", e = "_content_13gux_67", _ = "_title_13gux_85", n = "_subtitle_13gux_109", s = {
2
2
  root: t,
3
3
  border: o,
4
- content: n,
5
- title: e,
6
- subtitle: _
4
+ content: e,
5
+ title: _,
6
+ subtitle: n
7
7
  };
8
8
  export {
9
9
  o as border,
10
- n as content,
10
+ e as content,
11
11
  s as default,
12
12
  t as root,
13
- _ as subtitle,
14
- e as title
13
+ n as subtitle,
14
+ _ as title
15
15
  };
@@ -1,11 +1,11 @@
1
- const l = "_root_llell_1", o = "_icon_llell_11", n = "_animateIn_llell_16", t = {
2
- root: l,
3
- icon: o,
4
- animateIn: n
1
+ const o = "_root_ly31g_1", n = "_icon_ly31g_21", t = "_animateIn_ly31g_31", _ = {
2
+ root: o,
3
+ icon: n,
4
+ animateIn: t
5
5
  };
6
6
  export {
7
- n as animateIn,
8
- t as default,
9
- o as icon,
10
- l as root
7
+ t as animateIn,
8
+ _ as default,
9
+ n as icon,
10
+ o as root
11
11
  };
@@ -1,4 +1,4 @@
1
- const t = "_root_wzzbr_1", o = "_subtitle_wzzbr_11", s = "_title_wzzbr_17", e = {
1
+ const t = "_root_983ti_1", o = "_subtitle_983ti_21", s = "_title_983ti_33", e = {
2
2
  root: t,
3
3
  subtitle: o,
4
4
  title: s
@@ -1,4 +1,4 @@
1
- const o = "_accordionRoot_3pkfo_1", c = "_accordionControl_3pkfo_5", n = "_accordionItem_3pkfo_9", t = {
1
+ const o = "_accordionRoot_1of7x_1", c = "_accordionControl_1of7x_9", n = "_accordionItem_1of7x_17", t = {
2
2
  accordionRoot: o,
3
3
  accordionControl: c,
4
4
  accordionItem: n
@@ -1,31 +1,37 @@
1
- const i = "_section_lidow_2", t = "_sectionLabel_lidow_15", n = "_listItem_lidow_46", e = "_listItemActive_lidow_72", l = "_listItemLabel_lidow_76", o = "_listItemSwatch_lidow_84", c = "_grid_lidow_92", _ = "_inlineSection_lidow_162", s = "_inlineSectionLabel_lidow_172", w = "_inlineRow_lidow_180", a = "_inlineSwatch_lidow_189", d = "_inlineSwatchActive_lidow_215", S = "_inlineSwatchRound_lidow_225", h = {
1
+ const i = "_section_1go5u_3", n = "_sectionLabel_1go5u_29", t = "_listItemCaption_1go5u_45", e = "_listItem_1go5u_45", o = "_listItemActive_1go5u_155", c = "_listItemLabel_1go5u_163", l = "_listItemSwatch_1go5u_179", _ = "_grid_1go5u_195", s = "_inlineSection_1go5u_335", a = "_inlineSectionLabel_1go5u_355", S = "_inlineSectionLabelRow_1go5u_371", u = "_inlineSectionCaption_1go5u_383", g = "_inlineRow_1go5u_395", w = "_inlineSwatch_1go5u_413", m = "_inlineSwatchActive_1go5u_465", I = "_inlineSwatchRound_1go5u_485", b = {
2
2
  section: i,
3
- sectionLabel: t,
4
- listItem: n,
5
- listItemActive: e,
6
- listItemLabel: l,
7
- listItemSwatch: o,
8
- grid: c,
9
- inlineSection: _,
10
- inlineSectionLabel: s,
11
- inlineRow: w,
12
- inlineSwatch: a,
13
- inlineSwatchActive: d,
14
- inlineSwatchRound: S
3
+ sectionLabel: n,
4
+ listItemCaption: t,
5
+ listItem: e,
6
+ listItemActive: o,
7
+ listItemLabel: c,
8
+ listItemSwatch: l,
9
+ grid: _,
10
+ inlineSection: s,
11
+ inlineSectionLabel: a,
12
+ inlineSectionLabelRow: S,
13
+ inlineSectionCaption: u,
14
+ inlineRow: g,
15
+ inlineSwatch: w,
16
+ inlineSwatchActive: m,
17
+ inlineSwatchRound: I
15
18
  };
16
19
  export {
17
- h as default,
18
- c as grid,
19
- w as inlineRow,
20
- _ as inlineSection,
21
- s as inlineSectionLabel,
22
- a as inlineSwatch,
23
- d as inlineSwatchActive,
24
- S as inlineSwatchRound,
25
- n as listItem,
26
- e as listItemActive,
27
- l as listItemLabel,
28
- o as listItemSwatch,
20
+ b as default,
21
+ _ as grid,
22
+ g as inlineRow,
23
+ s as inlineSection,
24
+ u as inlineSectionCaption,
25
+ a as inlineSectionLabel,
26
+ S as inlineSectionLabelRow,
27
+ w as inlineSwatch,
28
+ m as inlineSwatchActive,
29
+ I as inlineSwatchRound,
30
+ e as listItem,
31
+ o as listItemActive,
32
+ t as listItemCaption,
33
+ c as listItemLabel,
34
+ l as listItemSwatch,
29
35
  i as section,
30
- t as sectionLabel
36
+ n as sectionLabel
31
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPickerList.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAgB,MAAM,SAAS,CAAC;AAqHlE;;oEAEoE;AACpE,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAW,EACX,gBAAgB,GACjB,EAAE,oBAAoB,2CA8CtB"}
1
+ {"version":3,"file":"ColorPickerList.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPickerList.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAgB,MAAM,SAAS,CAAC;AAiIlE;;oEAEoE;AACpE,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAW,EACX,gBAAgB,GACjB,EAAE,oBAAoB,2CAkEtB"}