@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
package/package.json CHANGED
@@ -1,79 +1,80 @@
1
- {
2
- "name": "@layers-app/shared",
3
- "version": "0.4.7",
4
- "description": "Shared components, hooks, and utilities for Layers application",
5
- "files": [
6
- "dist",
7
- "docs"
8
- ],
9
- "publishConfig": {
10
- "access": "public"
11
- },
12
- "type": "module",
13
- "main": "dist/index.js",
14
- "module": "dist/index.js",
15
- "types": "dist/index.d.ts",
16
- "sideEffects": [
17
- "**/*.css"
18
- ],
19
- "exports": {
20
- ".": {
21
- "import": "./dist/index.js",
22
- "types": "./dist/index.d.ts"
23
- },
24
- "./styles": "./dist/index.css",
25
- "./dist/*": "./dist/*",
26
- "./assets/*": "./src/assets/*",
27
- "./package.json": "./package.json"
28
- },
29
- "scripts": {
30
- "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build && tsc --project tsconfig.build.json",
31
- "check:ts": "tsc --noEmit",
32
- "prePublish": "vite build && npm version patch",
33
- "watch": "vite build --watch"
34
- },
35
- "peerDependencies": {
36
- "@dnd-kit/core": "^6.0.0",
37
- "@dnd-kit/sortable": "^8.0.0",
38
- "@dnd-kit/utilities": "^3.2.0",
39
- "@emoji-mart/data": "^1.2.1",
40
- "@layers-app/onboarding-tour": "^4.0.0",
41
- "@mantine/carousel": ">=9.0.0",
42
- "@mantine/core": ">=9.0.0",
43
- "@mantine/dates": ">=9.0.0",
44
- "@mantine/dropzone": ">=9.0.0",
45
- "@mantine/form": ">=9.0.0",
46
- "@mantine/hooks": ">=9.0.0",
47
- "@mantine/modals": ">=9.0.0",
48
- "@mantine/notifications": ">=9.0.0",
49
- "@reduxjs/toolkit": "^2.2.7",
50
- "@tabler/icons-react": "^3.7.0",
51
- "@tabler/icons-sprite": "^3.29.0",
52
- "@tanstack/react-query": "^5.52.2",
53
- "@tanstack/virtual-core": "^3.0.0",
54
- "chroma-js": "^3.1.2",
55
- "date-fns": "^4.1.0",
56
- "@layers-app/draggable-ui": "^0.0.1",
57
- "emoji-mart": "^5.6.0",
58
- "exceljs": "^4.3.0",
59
- "framer-motion": "^11.3.24",
60
- "fuse.js": "^7.1.0",
61
- "i18next": "^25.5.2",
62
- "lodash-es": "^4.17.21",
63
- "query-string": "^9.1.0",
64
- "react": "^19.2.0",
65
- "react-dom": "^19.2.0",
66
- "react-helmet": "^6.1.0",
67
- "react-i18next": "^15.7.3",
68
- "react-router-dom": "^7.5.2",
69
- "react-zoom-pan-pinch": "^3.0.0",
70
- "shaka-player": "^4.0.0",
71
- "shaka-player-react": "^1.1.5",
72
- "styled-components": "^6.0.0",
73
- "zod": "^4.0.0",
74
- "zustand": "^5.0.3"
75
- },
76
- "dependencies": {
77
- "@gfazioli/mantine-onboarding-tour": "^4.0.0"
78
- }
79
- }
1
+ {
2
+ "name": "@layers-app/shared",
3
+ "version": "0.4.8",
4
+ "description": "Shared components, hooks, and utilities for Layers application",
5
+ "files": [
6
+ "dist",
7
+ "docs"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "type": "module",
13
+ "main": "dist/index.js",
14
+ "module": "dist/index.js",
15
+ "types": "dist/index.d.ts",
16
+ "sideEffects": [
17
+ "**/*.css"
18
+ ],
19
+ "exports": {
20
+ ".": {
21
+ "import": "./dist/index.js",
22
+ "types": "./dist/index.d.ts"
23
+ },
24
+ "./styles": "./dist/index.css",
25
+ "./dist/*": "./dist/*",
26
+ "./assets/*": "./src/assets/*",
27
+ "./package.json": "./package.json"
28
+ },
29
+ "scripts": {
30
+ "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build && tsc --project tsconfig.build.json",
31
+ "check:ts": "tsc --noEmit",
32
+ "prePublish": "vite build && npm version patch",
33
+ "watch": "vite build --watch"
34
+ },
35
+ "peerDependencies": {
36
+ "@dnd-kit/core": "^6.0.0",
37
+ "@dnd-kit/sortable": "^8.0.0",
38
+ "@dnd-kit/utilities": "^3.2.0",
39
+ "@emoji-mart/data": "^1.2.1",
40
+ "@layers-app/draggable-ui": "^0.0.1",
41
+ "@layers-app/onboarding-tour": "^4.0.0",
42
+ "@mantine/core": ">=9.0.0",
43
+ "@mantine/dates": ">=9.0.0",
44
+ "@mantine/dropzone": ">=9.0.0",
45
+ "@mantine/form": ">=9.0.0",
46
+ "@mantine/hooks": ">=9.0.0",
47
+ "@mantine/modals": ">=9.0.0",
48
+ "@mantine/notifications": ">=9.0.0",
49
+ "@reduxjs/toolkit": "^2.2.7",
50
+ "@tabler/icons-react": "^3.7.0",
51
+ "@tabler/icons-sprite": "^3.29.0",
52
+ "@tanstack/react-query": "^5.52.2",
53
+ "@tanstack/virtual-core": "^3.0.0",
54
+ "chroma-js": "^3.1.2",
55
+ "date-fns": "^4.1.0",
56
+ "emoji-mart": "^5.6.0",
57
+ "exceljs": "^4.3.0",
58
+ "framer-motion": "^11.3.24",
59
+ "fuse.js": "^7.1.0",
60
+ "i18next": "^25.5.2",
61
+ "lodash-es": "^4.17.21",
62
+ "query-string": "^9.1.0",
63
+ "react": "^19.2.0",
64
+ "react-dom": "^19.2.0",
65
+ "react-helmet": "^6.1.0",
66
+ "react-i18next": "^15.7.3",
67
+ "react-router-dom": "^7.5.2",
68
+ "react-zoom-pan-pinch": "^3.0.0",
69
+ "shaka-player": "^4.0.0",
70
+ "shaka-player-react": "^1.1.5",
71
+ "styled-components": "^6.0.0",
72
+ "zod": "^4.0.0",
73
+ "zustand": "^5.0.3"
74
+ },
75
+ "dependencies": {
76
+ "@gfazioli/mantine-audio": "^1.0.2",
77
+ "@gfazioli/mantine-onboarding-tour": "^4.0.0",
78
+ "@gfazioli/mantine-video": "^1.1.2"
79
+ }
80
+ }
@@ -1,15 +0,0 @@
1
- type Props = {
2
- attachmentId: string;
3
- isActive?: boolean;
4
- autoPlay?: boolean;
5
- };
6
- /**
7
- * Chooses how to play a video attachment based on its status:
8
- * - pipeline videos (status 200) → {@link StatusVideoPlayer}: playback URLs +
9
- * subtitles/chapters/storyboard come from `/status`, no `/vod` polling.
10
- * - legacy attachments (status 404) → {@link LegacyAttachmentVideoPlayer}: the
11
- * existing `/vod` resolution flow.
12
- */
13
- export declare const AttachmentVideoPlayer: ({ attachmentId, isActive, autoPlay, }: Props) => import("react/jsx-runtime").JSX.Element;
14
- export {};
15
- //# sourceMappingURL=AttachmentVideoPlayer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttachmentVideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.tsx"],"names":[],"mappings":"AAQA,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI,uCAInC,KAAK,4CAiCP,CAAC"}
@@ -1,36 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useAttachmentsGalleryContext as a } from "../AttachmentsGalleryContext.js";
3
- import { BaseLoader as l } from "../../Loaders/BaseLoader.js";
4
- import { LegacyAttachmentVideoPlayer as f } from "./LegacyAttachmentVideoPlayer.js";
5
- import { StatusVideoPlayer as n } from "./StatusVideoPlayer.js";
6
- import { useAttachmentVideoStatus as d } from "./useAttachmentVideoStatus.js";
7
- import p from "../styles.module.css.js";
8
- const P = ({
9
- attachmentId: r,
10
- isActive: t,
11
- autoPlay: o
12
- }) => {
13
- const { videoRefreshKey: i } = a(), { status: m, loaded: s } = d(
14
- r,
15
- i
16
- );
17
- return s ? m ? /* @__PURE__ */ e(
18
- n,
19
- {
20
- attachmentId: r,
21
- status: m,
22
- isActive: t,
23
- autoPlay: o
24
- }
25
- ) : /* @__PURE__ */ e(
26
- f,
27
- {
28
- attachmentId: r,
29
- isActive: t,
30
- autoPlay: o
31
- }
32
- ) : /* @__PURE__ */ e("div", { className: p.videoPlayerFill, children: /* @__PURE__ */ e(l, {}) });
33
- };
34
- export {
35
- P as AttachmentVideoPlayer
36
- };
@@ -1,14 +0,0 @@
1
- type Props = {
2
- attachmentId: string;
3
- isActive?: boolean;
4
- autoPlay?: boolean;
5
- };
6
- /**
7
- * Player for legacy attachments that never went through the video pipeline (no
8
- * VideoAsset, `/status` 404). Stream resolution stays on the existing `/vod`
9
- * flow via `useShakePlayer` (HLS when ready, raw fallback). No subtitles/chapters
10
- * exist for these, so none are passed.
11
- */
12
- export declare const LegacyAttachmentVideoPlayer: ({ attachmentId, isActive, autoPlay, }: Props) => import("react/jsx-runtime").JSX.Element;
13
- export {};
14
- //# sourceMappingURL=LegacyAttachmentVideoPlayer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegacyAttachmentVideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,uCAIzC,KAAK,4CAwBP,CAAC"}
@@ -1,31 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { ErrorSection as m } from "./ErrorSection.js";
3
- import { useShakePlayer as n } from "./ShakePlayer/useShakePlayer.js";
4
- import c from "../styles.module.css.js";
5
- import { VideoPlayer as d } from "../../VideoPlayer/VideoPlayer.js";
6
- const u = ({
7
- attachmentId: o,
8
- isActive: t,
9
- autoPlay: l
10
- }) => {
11
- const { containerRef: s, vodUrl: r, rawUrl: i, isError: a } = n({
12
- attachmentId: o,
13
- isActive: t,
14
- autoPlay: l
15
- });
16
- return a ? /* @__PURE__ */ e(m, {}) : /* @__PURE__ */ e("div", { ref: s, className: c.videoPlayerFill, children: /* @__PURE__ */ e(
17
- d,
18
- {
19
- videoId: o,
20
- source: {
21
- streamUrl: r,
22
- nativeUrl: i,
23
- optimizedReady: !!r,
24
- isProcessing: !r && !i
25
- }
26
- }
27
- ) });
28
- };
29
- export {
30
- u as LegacyAttachmentVideoPlayer
31
- };
@@ -1,18 +0,0 @@
1
- import type { AttachmentVideoStatus } from './useAttachmentVideoStatus';
2
- type Props = {
3
- attachmentId: string;
4
- status: AttachmentVideoStatus;
5
- isActive?: boolean;
6
- autoPlay?: boolean;
7
- };
8
- /**
9
- * Player for videos that went through the video pipeline: playback URLs come
10
- * straight from `/v1/videos/{id}/status`, so there is no `/vod` polling. While
11
- * the backend is still transcoding, chapters are hidden and HLS is used only
12
- * once `optimizedReady`; otherwise the raw URL plays. The processing progress
13
- * is shown in the gallery header. Subtitles/chapters/storyboard ride along from
14
- * the same status payload.
15
- */
16
- export declare const StatusVideoPlayer: ({ attachmentId, status, isActive, autoPlay, }: Props) => import("react/jsx-runtime").JSX.Element;
17
- export {};
18
- //# sourceMappingURL=StatusVideoPlayer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusVideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/StatusVideoPlayer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAIxE,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,+CAK/B,KAAK,4CAsCP,CAAC"}
@@ -1,35 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useRef as s, useEffect as t } from "react";
3
- import y from "../styles.module.css.js";
4
- import { VideoPlayer as m } from "../../VideoPlayer/VideoPlayer.js";
5
- const U = ({
6
- attachmentId: d,
7
- status: e,
8
- isActive: o,
9
- autoPlay: l
10
- }) => {
11
- const i = s(null), c = e.isProcessing, a = e.playback.optimizedReady ? e.playback.primaryUrl ?? null : null, n = e.playback.rawUrl ?? null;
12
- return t(() => {
13
- const r = i.current?.querySelector("video");
14
- r && (o ? l !== !1 && r.play().catch(() => {
15
- }) : r.pause());
16
- }, [o, l, a, n]), /* @__PURE__ */ p("div", { ref: i, className: y.videoPlayerFill, children: /* @__PURE__ */ p(
17
- m,
18
- {
19
- videoId: d,
20
- source: {
21
- streamUrl: a,
22
- nativeUrl: n,
23
- posterUrl: e.posterUrl ?? null,
24
- optimizedReady: !!e.playback.optimizedReady,
25
- isProcessing: c
26
- },
27
- subtitles: e.subtitles,
28
- chapters: c || e.chaptersDisabled ? void 0 : e.chapters,
29
- storyboard: e.storyboard
30
- }
31
- ) });
32
- };
33
- export {
34
- U as StatusVideoPlayer
35
- };
@@ -1,33 +0,0 @@
1
- import type { Chapter, Storyboard, Subtitle } from '../../VideoPlayer';
2
- export type AttachmentVideoStatus = {
3
- videoId?: string;
4
- state?: string;
5
- isProcessing: boolean;
6
- processingPercent?: number;
7
- posterUrl?: string;
8
- chaptersDisabled?: boolean;
9
- playback: {
10
- primaryUrl?: string | null;
11
- rawUrl?: string | null;
12
- optimizedReady?: boolean;
13
- };
14
- subtitles?: Subtitle[];
15
- chapters?: Chapter[];
16
- storyboard?: Storyboard | null;
17
- };
18
- type Result = {
19
- status: AttachmentVideoStatus | null;
20
- loaded: boolean;
21
- };
22
- /**
23
- * Fetches (and, while processing, polls) the video status for an attachment.
24
- * Pipeline videos resolve here via the videoId → sourceAttachmentId fallback and
25
- * carry their own playback URLs + subtitles/chapters/storyboard — so the rich
26
- * player needs no `/vod` polling. While the backend is still transcoding the
27
- * status is re-polled so the processing banner, HLS switch and subtitles appear
28
- * without reopening. Old attachments (no VideoAsset) return 404 → `status` stays
29
- * null and the caller falls back to the legacy `/vod` flow.
30
- */
31
- export declare function useAttachmentVideoStatus(attachmentId?: string, refreshKey?: number): Result;
32
- export {};
33
- //# sourceMappingURL=useAttachmentVideoStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAttachmentVideoStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGvE,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE;QACR,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,KAAK,MAAM,GAAG;IACZ,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACrC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AA8EF;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,CAAC,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CA2DR"}
@@ -1,70 +0,0 @@
1
- import { useState as m, useEffect as f } from "react";
2
- import { getEnvConfig as b } from "../../../config/envConfig.js";
3
- import { normalizeSubtitleTrack as A } from "../../VideoPlayer/utils/subtitles.js";
4
- const U = 3e3, v = 200, h = () => {
5
- const t = b().apiBaseUrl || "";
6
- return t.endsWith("/") ? t.slice(0, -1) : t;
7
- }, r = (t, e) => t ? new URL(t, e).toString() : void 0, L = (t, e) => {
8
- const n = Array.isArray(t.subtitles) ? t.subtitles.map(A).filter((o) => o.id).map((o) => ({ ...o, url: r(o.url, e) })) : void 0, s = t.storyboard ? {
9
- ...t.storyboard,
10
- vttUrl: r(t.storyboard.vttUrl, e),
11
- metaUrl: r(t.storyboard.metaUrl, e)
12
- } : null, l = t.playback?.optimizedReady ?? !1, a = t.processingAvailable === !1 || t.pipelineMode === "UPLOAD_ONLY";
13
- return {
14
- videoId: t.videoId,
15
- state: t.state,
16
- isProcessing: !l && !a,
17
- processingPercent: t.processing?.percent,
18
- posterUrl: r(t.cover?.url, e),
19
- chaptersDisabled: t.chaptersDisabled === !0,
20
- playback: {
21
- primaryUrl: r(t.playback?.primaryUrl, e),
22
- rawUrl: r(t.playback?.rawUrl, e),
23
- optimizedReady: t.playback?.optimizedReady
24
- },
25
- subtitles: n,
26
- chapters: Array.isArray(t.chapters) ? t.chapters : void 0,
27
- storyboard: s
28
- };
29
- };
30
- function R(t, e) {
31
- const [n, s] = m({ status: null, loaded: !1 });
32
- return f(() => {
33
- if (s({ status: null, loaded: !1 }), !t) {
34
- s({ status: null, loaded: !0 });
35
- return;
36
- }
37
- let l = !1, a = null, o = 0;
38
- const c = h() || window.location.origin, d = async () => {
39
- o += 1;
40
- try {
41
- const i = await fetch(`${c}/v1/videos/${t}/status`, {
42
- method: "GET",
43
- credentials: "include",
44
- headers: { Accept: "application/json" }
45
- });
46
- if (l) return;
47
- if (!i.ok) {
48
- s(
49
- (p) => p.loaded ? p : { status: null, loaded: !0 }
50
- );
51
- return;
52
- }
53
- const y = await i.json();
54
- if (l) return;
55
- const u = L(y, c);
56
- s({ status: u, loaded: !0 }), u.isProcessing && o < v && (a = setTimeout(d, U));
57
- } catch {
58
- l || s(
59
- (i) => i.loaded ? i : { status: null, loaded: !0 }
60
- );
61
- }
62
- };
63
- return d(), () => {
64
- l = !0, a && clearTimeout(a);
65
- };
66
- }, [t, e]), n;
67
- }
68
- export {
69
- R as useAttachmentVideoStatus
70
- };
@@ -1,119 +0,0 @@
1
- import { jsxs as i, Fragment as A, jsx as e } from "react/jsx-runtime";
2
- import { useState as D, useRef as w, useCallback as g, useEffect as y } from "react";
3
- import { useTranslation as N } from "react-i18next";
4
- import { useNavigate as E } from "react-router-dom";
5
- import { Flex as a, Text as l, Box as k, Button as b, Divider as v, Group as d } from "@mantine/core";
6
- import { IconArrowsSort as F } from "@tabler/icons-react";
7
- import { useAppContainerActionsStore as j } from "../AppContainer/hooks/useAppContainerActionsStore.js";
8
- import { useAppContainerDataStore as S } from "../AppContainer/hooks/useAppContainerDataStore.js";
9
- import { CustomKBD as C } from "../CustomKBD/index.js";
10
- import { NoData as B } from "../NoData/NoData.js";
11
- import I from "./NotificationCard.js";
12
- import K from "./Notification.module.css.js";
13
- const J = () => {
14
- const { t: r } = N("appContainer"), h = E(), { notifications: n } = S(), { readNotificationsFunc: p } = j(), [s, c] = D(null), u = w([]), x = w(null), m = g(
15
- async (t) => {
16
- if (!n?.length) return;
17
- const o = `/invitation/${n[t].link}`;
18
- p({
19
- messageIds: [n[t].id],
20
- markAll: !1,
21
- action: 1
22
- }), h(o);
23
- },
24
- [h, n, p]
25
- ), f = g(
26
- (t) => {
27
- t.key === "ArrowDown" ? (t.preventDefault(), c(
28
- (o) => o === null ? 0 : Math.min(o + 1, n?.length - 1)
29
- )) : t.key === "ArrowUp" ? (t.preventDefault(), c(
30
- (o) => o === null ? n?.length - 1 : Math.max(o - 1, 0)
31
- )) : t.key === "Enter" && s !== null && n?.length && m(s);
32
- },
33
- [s, m, n?.length]
34
- );
35
- return y(() => (window.addEventListener("keydown", f), () => {
36
- c(null), window.removeEventListener("keydown", f);
37
- }), [f]), y(() => {
38
- const t = u.current[s ?? -1];
39
- t && t.scrollIntoView({
40
- behavior: "smooth",
41
- block: "nearest"
42
- });
43
- }, [s]), /* @__PURE__ */ i(A, { children: [
44
- /* @__PURE__ */ i(a, { p: "sm", justify: "space-between", children: [
45
- /* @__PURE__ */ i(a, { children: [
46
- /* @__PURE__ */ e(l, { fz: "sm", children: r("notification") }),
47
- /* @__PURE__ */ e(k, { className: K.headerCounter, children: /* @__PURE__ */ e(l, { fz: "xs", children: n?.length < 100 ? n?.length : "99+" }) })
48
- ] }),
49
- /* @__PURE__ */ e(b, { h: 22, variant: "transparent", size: "xs", children: /* @__PURE__ */ e(l, { h: 22, fz: "md", children: r("showAll") }) })
50
- ] }),
51
- /* @__PURE__ */ e(v, {}),
52
- /* @__PURE__ */ e(
53
- d,
54
- {
55
- mah: 280,
56
- ref: x,
57
- style: {
58
- overflowY: "auto"
59
- },
60
- gap: 0,
61
- children: n ? n?.map((t, o) => /* @__PURE__ */ e(
62
- k,
63
- {
64
- onClick: () => m(o),
65
- style: {
66
- overflow: "hidden"
67
- },
68
- children: /* @__PURE__ */ e(
69
- I,
70
- {
71
- isFocused: o === s,
72
- notification: t,
73
- ref: (z) => {
74
- u.current[o] = z;
75
- }
76
- }
77
- )
78
- },
79
- t.id
80
- )) : /* @__PURE__ */ e(
81
- B,
82
- {
83
- py: "md",
84
- size: 140,
85
- my: 20,
86
- illustration: "noNotifications",
87
- descriptionProps: { maw: 300 },
88
- description: r("emptyNotifyDescription")
89
- }
90
- )
91
- }
92
- ),
93
- /* @__PURE__ */ e(v, {}),
94
- /* @__PURE__ */ i(a, { bottom: 0, p: "sm", justify: "space-between", children: [
95
- /* @__PURE__ */ i(a, { gap: 24, children: [
96
- /* @__PURE__ */ i(d, { gap: 8, children: [
97
- /* @__PURE__ */ e(
98
- C,
99
- {
100
- miw: 26,
101
- w: 26,
102
- bbw: 4,
103
- value: /* @__PURE__ */ e(F, { stroke: 1.5, width: 16, height: 16 })
104
- }
105
- ),
106
- /* @__PURE__ */ e(l, { fz: "sm", fw: 400, children: r("choose") })
107
- ] }),
108
- /* @__PURE__ */ i(d, { gap: 8, children: [
109
- /* @__PURE__ */ e(C, { miw: 45, w: 45, bbw: 4, value: "Enter" }),
110
- /* @__PURE__ */ e(l, { fz: "sm", fw: 400, children: r("open") })
111
- ] })
112
- ] }),
113
- /* @__PURE__ */ e(b, { h: 22, variant: "transparent", size: "xs", children: /* @__PURE__ */ e(l, { h: 22, fz: "md", children: r("closeAll") }) })
114
- ] })
115
- ] });
116
- };
117
- export {
118
- J as Notification
119
- };
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { UserNotifications } from '../AppContainer/components/menus/UserMenu/MenuUserDropdown';
3
- interface NotificationCardProps {
4
- ref?: React.Ref<HTMLDivElement>;
5
- isFocused: boolean;
6
- notification: UserNotifications;
7
- }
8
- declare const NotificationCard: ({ isFocused, notification, ref, }: NotificationCardProps) => import("react/jsx-runtime").JSX.Element;
9
- export default NotificationCard;
10
- //# sourceMappingURL=NotificationCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotificationCard.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/NotificationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAE/F,UAAU,qBAAqB;IAC7B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,QAAA,MAAM,gBAAgB,GAAI,mCAIvB,qBAAqB,4CAgFvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}