@layers-app/shared 0.4.7 → 0.4.8

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 (378) 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/AttachmentsGalleryContext.d.ts +0 -2
  21. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
  22. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +17 -22
  23. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
  24. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  25. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +120 -172
  26. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  27. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -32
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
  29. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  30. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
  31. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +22 -20
  32. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -4
  33. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
  34. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +1 -1
  35. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
  36. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -44
  37. package/dist/components/Chat/ChatInput/index.d.ts +13 -1
  38. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  39. package/dist/components/Chat/ChatInput/index.js +264 -164
  40. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
  41. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
  42. package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
  43. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
  44. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
  45. package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
  46. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  47. package/dist/components/Chat/ChatMessage/index.js +153 -118
  48. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
  49. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
  50. package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
  51. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
  52. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
  53. package/dist/components/Chat/MessageActions/index.d.ts +2 -0
  54. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  55. package/dist/components/Chat/MessageActions/index.js +188 -50
  56. package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
  57. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
  58. package/dist/components/Chat/MessageAuthor/index.js +39 -25
  59. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
  60. package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
  61. package/dist/components/Chat/MessageList/index.d.ts +17 -25
  62. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  63. package/dist/components/Chat/MessageList/index.js +201 -149
  64. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
  65. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +12 -12
  66. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
  67. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -8
  68. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
  69. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  70. package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
  71. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  72. package/dist/components/ColorPicker/ColorPickerList.js +83 -72
  73. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
  74. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  75. package/dist/components/ColorPicker/ColorPickerToolbar.js +94 -85
  76. package/dist/components/ColorPicker/icons.js +5 -5
  77. package/dist/components/ColorPicker/types.d.ts +6 -0
  78. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  79. package/dist/components/ColorPicker/types.js +53 -11
  80. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  81. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  82. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  83. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  84. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
  85. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  86. package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
  87. package/dist/components/CommentComposer/index.d.ts +1 -1
  88. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  89. package/dist/components/CommentComposer/index.js +70 -68
  90. package/dist/components/CommentComposer/types.d.ts +6 -0
  91. package/dist/components/CommentComposer/types.d.ts.map +1 -1
  92. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  93. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  94. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  95. package/dist/components/CustomKBD/index.js +21 -22
  96. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  97. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  98. package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
  99. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  100. package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
  101. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  102. package/dist/components/EntityTitle/EntityTitle.js +81 -80
  103. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  104. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  105. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  106. package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
  107. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  108. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  109. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  110. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  111. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  112. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  113. package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
  114. package/dist/components/FormViewer/helpers/conditions.js +33 -17
  115. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  116. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  117. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  118. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  119. package/dist/components/Loaders/styles.module.css.js +6 -6
  120. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  121. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  122. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  123. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  124. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  125. package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
  126. package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
  127. package/dist/components/Notification/InfiniteScroll.js +42 -0
  128. package/dist/components/Notification/Notification.d.ts +4 -1
  129. package/dist/components/Notification/Notification.d.ts.map +1 -1
  130. package/dist/components/Notification/Notification.module.css.js +28 -4
  131. package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
  132. package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
  133. package/dist/components/Notification/atoms/ActionBadge.js +53 -0
  134. package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
  135. package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
  136. package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
  137. package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
  138. package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
  139. package/dist/components/Notification/atoms/InboxIcon.js +33 -0
  140. package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
  141. package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
  142. package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
  143. package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
  144. package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
  145. package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
  146. package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
  147. package/dist/components/Notification/atoms/TabBadge.js +32 -0
  148. package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
  149. package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
  150. package/dist/components/Notification/atoms/UnreadDot.js +23 -0
  151. package/dist/components/Notification/atoms/index.d.ts +5 -0
  152. package/dist/components/Notification/atoms/index.d.ts.map +1 -0
  153. package/dist/components/Notification/hooks/index.d.ts +8 -0
  154. package/dist/components/Notification/hooks/index.d.ts.map +1 -0
  155. package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
  156. package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
  157. package/dist/components/Notification/hooks/useInboxActions.js +58 -0
  158. package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
  159. package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
  160. package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
  161. package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
  162. package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
  163. package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
  164. package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
  165. package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
  166. package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
  167. package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
  168. package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
  169. package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
  170. package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
  171. package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
  172. package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
  173. package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
  174. package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
  175. package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
  176. package/dist/components/Notification/lib/api.d.ts +4 -0
  177. package/dist/components/Notification/lib/api.d.ts.map +1 -0
  178. package/dist/components/Notification/lib/api.js +19 -0
  179. package/dist/components/Notification/lib/index.d.ts +5 -0
  180. package/dist/components/Notification/lib/index.d.ts.map +1 -0
  181. package/dist/components/Notification/lib/notificationText.d.ts +10 -0
  182. package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
  183. package/dist/components/Notification/lib/notificationText.js +131 -0
  184. package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
  185. package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
  186. package/dist/components/Notification/lib/stripHtml.js +6 -0
  187. package/dist/components/Notification/lib/types.d.ts +45 -0
  188. package/dist/components/Notification/lib/types.d.ts.map +1 -0
  189. package/dist/components/Notification/lib/types.js +9 -0
  190. package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
  191. package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
  192. package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
  193. package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
  194. package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
  195. package/dist/components/Notification/molecules/InboxHeader.js +73 -0
  196. package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
  197. package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
  198. package/dist/components/Notification/molecules/InboxTabs.js +60 -0
  199. package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
  200. package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
  201. package/dist/components/Notification/molecules/NotificationActions.js +64 -0
  202. package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
  203. package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
  204. package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
  205. package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
  206. package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
  207. package/dist/components/Notification/molecules/NotificationContent.js +183 -0
  208. package/dist/components/Notification/molecules/index.d.ts +7 -0
  209. package/dist/components/Notification/molecules/index.d.ts.map +1 -0
  210. package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
  211. package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
  212. package/dist/components/Notification/organisms/InboxItem.js +100 -0
  213. package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
  214. package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
  215. package/dist/components/Notification/organisms/InboxPanel.js +99 -0
  216. package/dist/components/Notification/organisms/index.d.ts +3 -0
  217. package/dist/components/Notification/organisms/index.d.ts.map +1 -0
  218. package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
  219. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  220. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  221. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  222. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  223. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  224. package/dist/components/modals/RemoveConfirmModal.js +27 -26
  225. package/dist/components/table/FrontTable.d.ts.map +1 -1
  226. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  227. package/dist/config/envConfig.d.ts +2 -0
  228. package/dist/config/envConfig.d.ts.map +1 -1
  229. package/dist/config/envConfig.js +29 -28
  230. package/dist/helpers/getFileIcons.js +5 -5
  231. package/dist/helpers/getFileType.d.ts.map +1 -1
  232. package/dist/helpers/getFileType.js +11 -2
  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/index.css +1 -1
  239. package/dist/index.d.ts +0 -2
  240. package/dist/index.d.ts.map +1 -1
  241. package/dist/index.js +560 -571
  242. package/dist/lang/locales/ui_en.json.js +1 -1
  243. package/dist/lang/locales/ui_es.json.js +1 -1
  244. package/dist/lang/locales/ui_ru.json.js +1 -1
  245. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
  246. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
  247. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
  248. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
  249. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
  250. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
  251. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
  252. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
  253. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
  254. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
  255. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
  256. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
  257. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
  258. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
  259. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
  260. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
  261. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
  262. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
  263. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
  264. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
  265. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
  266. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
  267. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
  268. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
  269. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
  270. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
  271. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
  272. package/docs/README.md +499 -499
  273. package/package.json +80 -79
  274. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +0 -15
  275. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +0 -1
  276. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +0 -36
  277. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +0 -14
  278. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +0 -1
  279. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +0 -31
  280. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +0 -18
  281. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +0 -1
  282. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +0 -35
  283. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +0 -33
  284. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +0 -1
  285. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +0 -70
  286. package/dist/components/Notification/Notification.js +0 -119
  287. package/dist/components/Notification/NotificationCard.d.ts +0 -10
  288. package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
  289. package/dist/components/Notification/NotificationCard.js +0 -93
  290. package/dist/components/VideoPlayer/VideoPlayer.d.ts +0 -24
  291. package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +0 -1
  292. package/dist/components/VideoPlayer/VideoPlayer.js +0 -727
  293. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +0 -8
  294. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +0 -1
  295. package/dist/components/VideoPlayer/components/MobileDrawer/index.js +0 -67
  296. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +0 -7
  297. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +0 -1
  298. package/dist/components/VideoPlayer/components/SelectListOptionButton.js +0 -44
  299. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +0 -9
  300. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +0 -1
  301. package/dist/components/VideoPlayer/components/StoryboardPreview.js +0 -38
  302. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +0 -33
  303. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +0 -1
  304. package/dist/components/VideoPlayer/components/VideoCustomControls.js +0 -601
  305. package/dist/components/VideoPlayer/components/VideoIcons.d.ts +0 -25
  306. package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +0 -1
  307. package/dist/components/VideoPlayer/components/VideoIcons.js +0 -145
  308. package/dist/components/VideoPlayer/components/VideoMenu.d.ts +0 -27
  309. package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +0 -1
  310. package/dist/components/VideoPlayer/components/VideoMenu.js +0 -77
  311. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +0 -17
  312. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +0 -1
  313. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +0 -289
  314. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +0 -10
  315. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +0 -1
  316. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +0 -55
  317. package/dist/components/VideoPlayer/components/VideoSelect.d.ts +0 -10
  318. package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +0 -1
  319. package/dist/components/VideoPlayer/components/VideoSelect.js +0 -168
  320. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +0 -12
  321. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +0 -1
  322. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +0 -48
  323. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +0 -25
  324. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +0 -1
  325. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +0 -384
  326. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +0 -21
  327. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +0 -1
  328. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +0 -264
  329. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +0 -10
  330. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +0 -1
  331. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +0 -39
  332. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +0 -14
  333. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +0 -1
  334. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +0 -360
  335. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +0 -16
  336. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +0 -1
  337. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +0 -14
  338. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +0 -1
  339. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +0 -4
  340. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +0 -1
  341. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +0 -14
  342. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +0 -22
  343. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +0 -1
  344. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +0 -211
  345. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +0 -11
  346. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +0 -1
  347. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +0 -41
  348. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +0 -10
  349. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +0 -1
  350. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +0 -69
  351. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +0 -21
  352. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +0 -1
  353. package/dist/components/VideoPlayer/hooks/useStoryboard.js +0 -91
  354. package/dist/components/VideoPlayer/index.d.ts +0 -11
  355. package/dist/components/VideoPlayer/index.d.ts.map +0 -1
  356. package/dist/components/VideoPlayer/types.d.ts +0 -101
  357. package/dist/components/VideoPlayer/types.d.ts.map +0 -1
  358. package/dist/components/VideoPlayer/utils/chapters.d.ts +0 -8
  359. package/dist/components/VideoPlayer/utils/chapters.d.ts.map +0 -1
  360. package/dist/components/VideoPlayer/utils/chapters.js +0 -38
  361. package/dist/components/VideoPlayer/utils/storyboard.d.ts +0 -5
  362. package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +0 -1
  363. package/dist/components/VideoPlayer/utils/storyboard.js +0 -47
  364. package/dist/components/VideoPlayer/utils/subtitles.d.ts +0 -18
  365. package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +0 -1
  366. package/dist/components/VideoPlayer/utils/subtitles.js +0 -23
  367. package/dist/components/VideoPlayer/utils/touch.d.ts +0 -3
  368. package/dist/components/VideoPlayer/utils/touch.d.ts.map +0 -1
  369. package/dist/components/VideoPlayer/utils/touch.js +0 -5
  370. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +0 -10
  371. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +0 -1
  372. package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +0 -22
  373. package/dist/components/VideoPlayer/utils/videoSettings.d.ts +0 -69
  374. package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +0 -1
  375. package/dist/components/VideoPlayer/utils/videoSettings.js +0 -90
  376. package/dist/videoSettings/createVideoSettingsDataSource.d.ts +0 -19
  377. package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +0 -1
  378. package/dist/videoSettings/createVideoSettingsDataSource.js +0 -127
@@ -1,69 +1,207 @@
1
- import { jsx as e, jsxs as n, Fragment as b } from "react/jsx-runtime";
2
- import y, { useState as v } from "react";
3
- import { useTranslation as j } from "react-i18next";
4
- import { Group as A, ActionIcon as d, Menu as i } from "@mantine/core";
5
- import { SmileIcon as x, LinkBackwardIcon as B, MoreVerticalIcon as P, Copy01Icon as $, Share08Icon as E, PinIcon as O, Edit02Icon as T, Delete02Icon as _ } from "@hugeicons/core-free-icons";
1
+ import { jsx as e, jsxs as n, Fragment as $ } from "react/jsx-runtime";
2
+ import B, { useState as w } from "react";
3
+ import { useTranslation as D } from "react-i18next";
4
+ import { SmileIcon as E, ArrowDown01Icon as T, LinkBackwardIcon as C, MoreVerticalIcon as _, Copy01Icon as j, Share08Icon as H, PinIcon as N, Edit02Icon as Q, Delete02Icon as R } from "@hugeicons/core-free-icons";
6
5
  import { HugeiconsIcon as o } from "@hugeicons/react";
7
- import { EmojiPicker as D } from "../../EmojiPicker/EmojiPicker.js";
6
+ import { Group as b, Popover as u, ActionIcon as t, Menu as r } from "@mantine/core";
7
+ import { EmojiPicker as q } from "../../EmojiPicker/EmojiPicker.js";
8
8
  import { IconEntity as G } from "../../ProjectIcon/ProjectIcon.js";
9
- import H from "./MessageActions.module.css.js";
10
- const L = y.memo(function({
11
- onReaction: r,
12
- canAddReaction: I = !0,
13
- onReply: p,
14
- onEdit: s,
15
- onDelete: c,
16
- onCopy: a,
17
- onForward: l,
18
- onPin: m,
19
- showEdit: h,
20
- showDelete: u,
21
- className: f,
22
- style: z
9
+ import K from "./MessageActions.module.css.js";
10
+ const L = ["👍", "❤️", "😂", "🔥", "🎉"], U = B.memo(function({
11
+ onReaction: s,
12
+ canAddReaction: y = !0,
13
+ onReply: f,
14
+ onThread: g,
15
+ onEdit: l,
16
+ onDelete: d,
17
+ onCopy: m,
18
+ onForward: p,
19
+ onPin: h,
20
+ showEdit: I,
21
+ showDelete: z,
22
+ className: k,
23
+ style: S
23
24
  }) {
24
- const { t } = j("meet"), [k, S] = v(!1), w = !!(s || c || a || l || m || h || u), C = (g) => {
25
- if (!r) return;
26
- const M = G.parse(g);
27
- r(M?.emoji ?? g);
25
+ const { t: a } = D("meet"), [v, M] = w(!1), [A, c] = w(!1), x = !!(l || d || m || p || h || I || z), O = (i) => {
26
+ if (!s) return;
27
+ const P = G.parse(i);
28
+ s(P?.emoji ?? i);
28
29
  };
29
30
  return /* @__PURE__ */ e(
30
31
  "div",
31
32
  {
32
- className: `${H.root}${f ? ` ${f}` : ""}`,
33
- style: z,
33
+ className: `${K.root}${k ? ` ${k}` : ""}`,
34
+ style: S,
34
35
  "data-testid": "message-actions",
35
- children: /* @__PURE__ */ n(A, { gap: 2, wrap: "nowrap", children: [
36
- r && I && /* @__PURE__ */ e(
37
- D,
36
+ children: /* @__PURE__ */ n(b, { gap: 2, wrap: "nowrap", children: [
37
+ s && y && /* @__PURE__ */ n(
38
+ u,
38
39
  {
39
- onChange: C,
40
+ opened: A,
41
+ onChange: c,
40
42
  position: "top-start",
41
- showRemoveButton: !1,
42
- showIcons: !1,
43
- showRandomButton: !1,
43
+ shadow: "md",
44
+ radius: "xl",
44
45
  withinPortal: !0,
45
- children: /* @__PURE__ */ e(d, { variant: "subtle", color: "gray", size: 22, radius: 8, "aria-label": "Add reaction", children: /* @__PURE__ */ e(o, { icon: x, size: 16 }) })
46
+ keepMounted: !0,
47
+ children: [
48
+ /* @__PURE__ */ e(u.Target, { children: /* @__PURE__ */ e(
49
+ t,
50
+ {
51
+ variant: "subtle",
52
+ color: "gray",
53
+ size: 22,
54
+ radius: 8,
55
+ "aria-label": "Add reaction",
56
+ onClick: () => c((i) => !i),
57
+ children: /* @__PURE__ */ e(o, { icon: E, size: 16 })
58
+ }
59
+ ) }),
60
+ /* @__PURE__ */ e(u.Dropdown, { p: 4, children: /* @__PURE__ */ n(b, { gap: 2, wrap: "nowrap", children: [
61
+ L.map((i) => /* @__PURE__ */ e(
62
+ t,
63
+ {
64
+ variant: "subtle",
65
+ color: "gray",
66
+ size: 30,
67
+ radius: "xl",
68
+ onClick: () => {
69
+ s(i), c(!1);
70
+ },
71
+ "aria-label": `React ${i}`,
72
+ style: { fontSize: 18, lineHeight: 1 },
73
+ children: i
74
+ },
75
+ i
76
+ )),
77
+ /* @__PURE__ */ e(
78
+ q,
79
+ {
80
+ onChange: (i) => {
81
+ O(i), c(!1);
82
+ },
83
+ position: "top-start",
84
+ showRemoveButton: !1,
85
+ showIcons: !1,
86
+ showRandomButton: !1,
87
+ withinPortal: !0,
88
+ children: /* @__PURE__ */ e(
89
+ t,
90
+ {
91
+ variant: "subtle",
92
+ color: "gray",
93
+ size: 30,
94
+ radius: "xl",
95
+ "aria-label": "More reactions",
96
+ children: /* @__PURE__ */ e(o, { icon: T, size: 16 })
97
+ }
98
+ )
99
+ }
100
+ )
101
+ ] }) })
102
+ ]
46
103
  }
47
104
  ),
48
- p && /* @__PURE__ */ e(d, { variant: "subtle", color: "gray", size: 22, radius: 8, onClick: p, "aria-label": "Reply", children: /* @__PURE__ */ e(o, { icon: B, size: 16 }) }),
49
- w && /* @__PURE__ */ n(i, { position: "bottom-end", withinPortal: !0, shadow: "md", width: 200, opened: k, onChange: S, children: [
50
- /* @__PURE__ */ e(i.Target, { children: /* @__PURE__ */ e(d, { variant: "subtle", color: "gray", size: 22, radius: 8, "aria-label": "More actions", children: /* @__PURE__ */ e(o, { icon: P, size: 16 }) }) }),
51
- /* @__PURE__ */ n(i.Dropdown, { children: [
52
- a && /* @__PURE__ */ e(i.Item, { leftSection: /* @__PURE__ */ e(o, { icon: $, size: 16 }), onClick: a, children: t("message.copy", "Copy") }),
53
- l && /* @__PURE__ */ e(i.Item, { leftSection: /* @__PURE__ */ e(o, { icon: E, size: 16 }), onClick: l, children: t("message.forward", "Forward") }),
54
- m && /* @__PURE__ */ e(i.Item, { leftSection: /* @__PURE__ */ e(o, { icon: O, size: 16 }), onClick: m, children: t("message.pin", "Pin") }),
55
- (h || s) && /* @__PURE__ */ e(i.Item, { leftSection: /* @__PURE__ */ e(o, { icon: T, size: 16 }), onClick: s, children: t("message.edit", "Edit") }),
56
- (u || c) && /* @__PURE__ */ n(b, { children: [
57
- /* @__PURE__ */ e(i.Divider, {}),
58
- /* @__PURE__ */ e(i.Item, { color: "red", leftSection: /* @__PURE__ */ e(o, { icon: _, size: 16 }), onClick: c, children: t("message.delete", "Delete") })
59
- ] })
60
- ] })
61
- ] })
105
+ f && /* @__PURE__ */ e(
106
+ t,
107
+ {
108
+ variant: "subtle",
109
+ color: "gray",
110
+ size: 22,
111
+ radius: 8,
112
+ onClick: f,
113
+ "aria-label": "Reply in thread",
114
+ children: /* @__PURE__ */ e(o, { icon: C, size: 16 })
115
+ }
116
+ ),
117
+ g && /* @__PURE__ */ e(
118
+ t,
119
+ {
120
+ variant: "subtle",
121
+ color: "gray",
122
+ size: 22,
123
+ radius: 8,
124
+ onClick: g,
125
+ "aria-label": "Open thread",
126
+ "data-cy": "message-thread-open",
127
+ children: /* @__PURE__ */ e(o, { icon: C, size: 16 })
128
+ }
129
+ ),
130
+ x && /* @__PURE__ */ n(
131
+ r,
132
+ {
133
+ position: "bottom-end",
134
+ withinPortal: !0,
135
+ shadow: "md",
136
+ width: 200,
137
+ opened: v,
138
+ onChange: M,
139
+ children: [
140
+ /* @__PURE__ */ e(r.Target, { children: /* @__PURE__ */ e(
141
+ t,
142
+ {
143
+ variant: "subtle",
144
+ color: "gray",
145
+ size: 22,
146
+ radius: 8,
147
+ "aria-label": "More actions",
148
+ children: /* @__PURE__ */ e(o, { icon: _, size: 16 })
149
+ }
150
+ ) }),
151
+ /* @__PURE__ */ n(r.Dropdown, { children: [
152
+ m && /* @__PURE__ */ e(
153
+ r.Item,
154
+ {
155
+ leftSection: /* @__PURE__ */ e(o, { icon: j, size: 16 }),
156
+ onClick: m,
157
+ children: a("message.copy", "Copy")
158
+ }
159
+ ),
160
+ p && /* @__PURE__ */ e(
161
+ r.Item,
162
+ {
163
+ leftSection: /* @__PURE__ */ e(o, { icon: H, size: 16 }),
164
+ onClick: p,
165
+ children: a("message.forward", "Forward")
166
+ }
167
+ ),
168
+ h && /* @__PURE__ */ e(
169
+ r.Item,
170
+ {
171
+ leftSection: /* @__PURE__ */ e(o, { icon: N, size: 16 }),
172
+ onClick: h,
173
+ children: a("message.pin", "Pin")
174
+ }
175
+ ),
176
+ (I || l) && /* @__PURE__ */ e(
177
+ r.Item,
178
+ {
179
+ leftSection: /* @__PURE__ */ e(o, { icon: Q, size: 16 }),
180
+ onClick: l,
181
+ children: a("message.edit", "Edit")
182
+ }
183
+ ),
184
+ (z || d) && /* @__PURE__ */ n($, { children: [
185
+ /* @__PURE__ */ e(r.Divider, {}),
186
+ /* @__PURE__ */ e(
187
+ r.Item,
188
+ {
189
+ color: "red",
190
+ leftSection: /* @__PURE__ */ e(o, { icon: R, size: 16 }),
191
+ onClick: d,
192
+ children: a("message.delete", "Delete")
193
+ }
194
+ )
195
+ ] })
196
+ ] })
197
+ ]
198
+ }
199
+ )
62
200
  ] })
63
201
  }
64
202
  );
65
203
  });
66
- L.displayName = "MessageActions";
204
+ U.displayName = "MessageActions";
67
205
  export {
68
- L as MessageActions
206
+ U as MessageActions
69
207
  };
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
+ export interface MessageAuthorBadge {
3
+ label: string;
4
+ variant?: 'anonymous' | 'external';
5
+ }
2
6
  export interface MessageAuthorProps {
3
7
  /** Author display name */
4
8
  name: string;
@@ -12,8 +16,10 @@ export interface MessageAuthorProps {
12
16
  className?: string;
13
17
  /** Custom style */
14
18
  style?: React.CSSProperties;
19
+ /** Category pill next to the name (anonymous guest / external non-member) */
20
+ badge?: MessageAuthorBadge;
15
21
  }
16
- export declare function MessageAuthor({ name, color, outgoing, onClick, className, style, }: MessageAuthorProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function MessageAuthor({ name, color, outgoing, onClick, className, style, badge, }: MessageAuthorProps): import("react/jsx-runtime").JSX.Element;
17
23
  export declare namespace MessageAuthor {
18
24
  var displayName: string;
19
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageAuthor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,kBAAkB;IACjC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,2CAyBpB;yBAhCe,aAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageAuthor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;CACpC;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,6EAA6E;IAC7E,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,EACL,KAAK,GACN,EAAE,kBAAkB,2CA0CpB;yBAlDe,aAAa"}
@@ -1,36 +1,50 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { useMemo as d } from "react";
3
- import { Text as n } from "@mantine/core";
4
- import { getAuthorColor as c } from "../colors.js";
5
- function l({
6
- name: o,
7
- color: s = 6,
8
- outgoing: a,
9
- onClick: e,
10
- className: m,
11
- style: r
1
+ import { jsxs as u, jsx as s } from "react/jsx-runtime";
2
+ import { useMemo as h } from "react";
3
+ import { Group as c, Badge as p, Text as g } from "@mantine/core";
4
+ import { getAuthorColor as x } from "../colors.js";
5
+ function f({
6
+ name: i,
7
+ color: m = 6,
8
+ outgoing: n,
9
+ onClick: r,
10
+ className: l,
11
+ style: t,
12
+ badge: e
12
13
  }) {
13
- const t = a ? "var(--mantine-color-green-6)" : c(s), i = d(
14
- () => ({ ...r, color: t, maxHeight: 38, cursor: e ? "pointer" : void 0 }),
15
- [r, t, e]
16
- );
17
- return /* @__PURE__ */ u(
18
- n,
14
+ const o = n ? "var(--mantine-color-green-6)" : x(m), d = h(
15
+ () => ({ ...t, color: o, maxHeight: 38, cursor: r ? "pointer" : void 0 }),
16
+ [t, o, r]
17
+ ), a = /* @__PURE__ */ s(
18
+ g,
19
19
  {
20
20
  size: "sm",
21
21
  fw: 600,
22
22
  truncate: !0,
23
- className: m,
24
- style: i,
25
- mb: 4,
23
+ className: l,
24
+ style: d,
25
+ mb: e ? void 0 : 4,
26
26
  "data-testid": "message-author",
27
- "data-clickable": e ? !0 : void 0,
28
- onClick: e,
29
- children: o
27
+ "data-clickable": r ? !0 : void 0,
28
+ onClick: r,
29
+ children: i
30
30
  }
31
31
  );
32
+ return e ? /* @__PURE__ */ u(c, { gap: 6, wrap: "nowrap", mb: 4, style: { maxWidth: "100%" }, children: [
33
+ a,
34
+ /* @__PURE__ */ s(
35
+ p,
36
+ {
37
+ size: "xs",
38
+ variant: "light",
39
+ color: e.variant === "external" ? "orange" : "gray",
40
+ styles: { root: { flexShrink: 0 } },
41
+ "data-testid": "message-author-badge",
42
+ children: e.label
43
+ }
44
+ )
45
+ ] }) : a;
32
46
  }
33
- l.displayName = "MessageAuthor";
47
+ f.displayName = "MessageAuthor";
34
48
  export {
35
- l as MessageAuthor
49
+ f as MessageAuthor
36
50
  };
@@ -1,4 +1,4 @@
1
- const o = "_root_127bg_1", t = {
1
+ const o = "_root_mla0n_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,21 +1,23 @@
1
- const o = "_container_19y33_1", t = "_root_19y33_16", _ = "_wrapper_19y33_23", r = "_top_19y33_28", c = "_items_19y33_28", n = "_scrollToBottomWrap_19y33_50", s = "_floatingTopAction_19y33_60", a = "_scrollToBottomBadge_19y33_75", l = {
1
+ const o = "_container_9s5zl_1", t = "_root_9s5zl_31", l = "_virtualRoot_9s5zl_51", s = "_virtualRow_9s5zl_95", _ = "_flowRow_9s5zl_109", c = "_highlightRow_9s5zl_121", n = "_scrollToBottomWrap_9s5zl_143", r = "_floatingTopAction_9s5zl_163", i = "_scrollToBottomBadge_9s5zl_193", a = {
2
2
  container: o,
3
3
  root: t,
4
- wrapper: _,
5
- top: r,
6
- items: c,
4
+ virtualRoot: l,
5
+ virtualRow: s,
6
+ flowRow: _,
7
+ highlightRow: c,
7
8
  scrollToBottomWrap: n,
8
- floatingTopAction: s,
9
- scrollToBottomBadge: a
9
+ floatingTopAction: r,
10
+ scrollToBottomBadge: i
10
11
  };
11
12
  export {
12
13
  o as container,
13
- l as default,
14
- s as floatingTopAction,
15
- c as items,
14
+ a as default,
15
+ r as floatingTopAction,
16
+ _ as flowRow,
17
+ c as highlightRow,
16
18
  t as root,
17
- a as scrollToBottomBadge,
19
+ i as scrollToBottomBadge,
18
20
  n as scrollToBottomWrap,
19
- r as top,
20
- _ as wrapper
21
+ l as virtualRoot,
22
+ s as virtualRow
21
23
  };
@@ -1,39 +1,31 @@
1
1
  import React from 'react';
2
- export interface MessageListProps {
3
- children: React.ReactNode;
2
+ export interface MessageListProps<T> {
3
+ /** Source items, oldest-first. */
4
+ items: T[];
5
+ renderItem: (item: T, index: number) => React.ReactNode;
6
+ getItemKey: (item: T, index: number) => string;
7
+ /** Estimated row height for the virtualized (older-history) path only. A
8
+ * function lets the host return a content-aware estimate per item. */
9
+ estimateItemSize?: number | ((item: T, index: number) => number);
4
10
  className?: string;
5
11
  style?: React.CSSProperties;
12
+ contentStyle?: React.CSSProperties;
6
13
  stickToBottom?: boolean;
7
14
  unreadCount?: number;
8
15
  onStickChange?: (stuck: boolean) => void;
9
- resetKey?: string | null;
10
- /**
11
- * Called when the user scrolls near the top — used to load an older page of
12
- * history. Should resolve once the older messages have been prepended; the
13
- * list preserves the visual scroll position across the prepend.
14
- */
16
+ /** Called when the user scrolls near the top — loads an older page; the list
17
+ * preserves the visual scroll position across the prepend. */
15
18
  onReachTop?: () => void | Promise<void>;
16
- /**
17
- * Floating control pinned bottom-right, stacked ABOVE the scroll-to-bottom
18
- * arrow (e.g. the "jump to mention" button). Shown independently of the
19
- * arrow — it raises above the arrow when the arrow is visible, otherwise
20
- * sits at the arrow's spot.
21
- */
22
19
  floatingTopAction?: React.ReactNode;
23
- /**
24
- * Lift the floating controls (scroll-to-bottom arrow + floatingTopAction) up
25
- * by this many px — so a composer that overlays the list bottom (frosted
26
- * floating input) doesn't sit on top of them.
27
- */
28
20
  bottomOffset?: number;
21
+ /** Empty space reserved below the last row so it clears a floating composer. */
22
+ contentBottomPad?: number;
29
23
  }
30
24
  export interface MessageListHandle {
31
- /**
32
- * Snap to the latest message and re-arm bottom-stick. Hosts call this when
33
- * the local user sends a message so the view jumps to their just-sent
34
- * content even if they had scrolled up — matching Telegram/Slack behavior.
35
- */
36
25
  scrollToBottom: () => void;
26
+ scrollToKey: (key: string) => void;
37
27
  }
38
- export declare const MessageList: React.ForwardRefExoticComponent<MessageListProps & React.RefAttributes<MessageListHandle>>;
28
+ export declare const MessageList: <T>(props: MessageListProps<T> & {
29
+ ref?: React.ForwardedRef<MessageListHandle>;
30
+ }) => React.ReactElement;
39
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,WAAW,4FAoOvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AASf,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,kCAAkC;IAClC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACxD,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C;2EACuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC;mEAC+D;IAC/D,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AA8UD,eAAO,MAAM,WAAW,EAAmC,CAAC,CAAC,EAC3D,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAA;CAAE,KACzE,KAAK,CAAC,YAAY,CAAC"}