@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,145 +0,0 @@
1
- import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
- import { MultiplicationSignIcon as C, SubtitleIcon as l, DashboardSpeed02Icon as a, SlidersHorizontalIcon as s, ArrowLeftIcon as h, VolumeHighIcon as u, VolumeOffIcon as I, Settings01Icon as d, ArrowRight01Icon as f, PictureInPictureOnIcon as w, Tick02Icon as g, MoreVerticalIcon as p } from "@hugeicons/core-free-icons";
3
- import { HugeiconsIcon as m } from "@hugeicons/react";
4
- function n(o) {
5
- return function({
6
- size: c = 20,
7
- color: i = "currentColor"
8
- }) {
9
- return /* @__PURE__ */ t(m, { icon: o, size: c, color: i });
10
- };
11
- }
12
- function x({
13
- size: o = 20,
14
- color: e = "currentColor"
15
- }) {
16
- return /* @__PURE__ */ t(
17
- "svg",
18
- {
19
- xmlns: "http://www.w3.org/2000/svg",
20
- width: o,
21
- height: o * 44 / 42,
22
- viewBox: "0 0 42 44",
23
- fill: "none",
24
- "aria-hidden": "true",
25
- focusable: "false",
26
- children: /* @__PURE__ */ t(
27
- "path",
28
- {
29
- d: "M7.80209 0.289726C10.2068 -0.391222 12.6819 0.195277 15.3958 1.34962C18.1136 2.50569 21.4619 4.41001 25.724 6.83139C30.1341 9.33682 33.595 11.3004 36.0547 13.097C38.5092 14.8899 40.3262 16.7646 40.9766 19.235C41.4534 21.0471 41.4534 22.9542 40.9766 24.7663C40.3262 27.2368 38.5092 29.1114 36.0547 30.9043C33.595 32.7009 30.1341 34.6644 25.724 37.1699C21.4619 39.5912 18.1136 41.4956 15.3958 42.6517C12.6819 43.8061 10.2069 44.3926 7.80209 43.7116C6.03479 43.2107 4.4259 42.2585 3.13021 40.9512C1.3719 39.1771 0.664657 36.7249 0.330731 33.7741C-0.00366531 30.8183 1.69004e-06 26.9408 1.69004e-06 22.0007C1.68951e-06 17.0605 -0.00366606 13.183 0.330731 10.2272C0.664657 7.27644 1.37188 4.82417 3.13021 3.05014C4.42578 1.74306 6.03454 0.790589 7.80209 0.289726Z",
30
- fill: e
31
- }
32
- )
33
- }
34
- );
35
- }
36
- function L({
37
- size: o = 20,
38
- color: e = "currentColor"
39
- }) {
40
- return /* @__PURE__ */ r(
41
- "svg",
42
- {
43
- xmlns: "http://www.w3.org/2000/svg",
44
- width: o,
45
- height: o,
46
- viewBox: "0 0 20 20",
47
- fill: "none",
48
- "aria-hidden": "true",
49
- focusable: "false",
50
- children: [
51
- /* @__PURE__ */ t(
52
- "path",
53
- {
54
- d: "M8.9585 14.1666C8.9585 14.7382 8.9599 15.2299 8.90723 15.6217C8.85213 16.0313 8.72764 16.4238 8.40918 16.7423C8.09069 17.0607 7.69819 17.1852 7.28858 17.2403C6.89686 17.293 6.40509 17.2916 5.8335 17.2916C5.26191 17.2916 4.77014 17.293 4.37842 17.2403C3.96881 17.1852 3.5763 17.0607 3.25782 16.7423C2.93936 16.4238 2.81487 16.0313 2.75977 15.6217C2.7071 15.2299 2.7085 14.7382 2.7085 14.1666V5.83326C2.7085 5.26167 2.7071 4.7699 2.75977 4.37818C2.81486 3.96855 2.93933 3.57606 3.25782 3.25757C3.5763 2.93908 3.9688 2.81462 4.37842 2.75953C4.77014 2.70686 5.26191 2.70826 5.8335 2.70826C6.40509 2.70826 6.89686 2.70686 7.28858 2.75953C7.6982 2.81462 8.09069 2.93908 8.40918 3.25757C8.72767 3.57606 8.85213 3.96855 8.90723 4.37818C8.9599 4.7699 8.9585 5.26167 8.9585 5.83326V14.1666Z",
55
- fill: e
56
- }
57
- ),
58
- /* @__PURE__ */ t(
59
- "path",
60
- {
61
- d: "M17.2915 14.1666C17.2915 14.7382 17.2929 15.2299 17.2402 15.6217C17.1851 16.0313 17.0606 16.4238 16.7422 16.7423C16.4237 17.0607 16.0312 17.1852 15.6216 17.2403C15.2299 17.293 14.7381 17.2916 14.1665 17.2916C13.5949 17.2916 13.1031 17.293 12.7114 17.2403C12.3018 17.1852 11.9093 17.0607 11.5908 16.7423C11.2724 16.4238 11.1479 16.0313 11.0928 15.6217C11.0401 15.2299 11.0415 14.7382 11.0415 14.1666V5.83326C11.0415 5.26167 11.0401 4.76989 11.0928 4.37818C11.1479 3.96856 11.2724 3.57606 11.5908 3.25757C11.9093 2.93911 12.3018 2.81462 12.7114 2.75953C13.1032 2.70686 13.5949 2.70826 14.1665 2.70826C14.7381 2.70826 15.2299 2.70686 15.6216 2.75953C16.0312 2.81462 16.4237 2.93911 16.7422 3.25757C17.0607 3.57606 17.1851 3.96856 17.2402 4.37818C17.2929 4.76989 17.2915 5.26167 17.2915 5.83326V14.1666Z",
62
- fill: e
63
- }
64
- )
65
- ]
66
- }
67
- );
68
- }
69
- const S = n(u), b = n(I), k = n(d), P = n(f);
70
- function Z({
71
- size: o = 20,
72
- color: e = "currentColor"
73
- }) {
74
- return /* @__PURE__ */ r(
75
- "svg",
76
- {
77
- xmlns: "http://www.w3.org/2000/svg",
78
- width: o,
79
- height: o,
80
- viewBox: "0 0 24 24",
81
- fill: "none",
82
- stroke: e,
83
- strokeWidth: 2,
84
- strokeLinecap: "round",
85
- strokeLinejoin: "round",
86
- "aria-hidden": "true",
87
- focusable: "false",
88
- children: [
89
- /* @__PURE__ */ t("path", { d: "M3 9V5a2 2 0 0 1 2-2h4" }),
90
- /* @__PURE__ */ t("path", { d: "M21 9V5a2 2 0 0 0-2-2h-4" }),
91
- /* @__PURE__ */ t("path", { d: "M3 15v4a2 2 0 0 0 2 2h4" }),
92
- /* @__PURE__ */ t("path", { d: "M21 15v4a2 2 0 0 1-2 2h-4" })
93
- ]
94
- }
95
- );
96
- }
97
- const y = n(w), A = n(h), B = n(g), j = n(l), H = n(a), $ = n(s), O = n(p), R = n(C);
98
- function T({ size: o = 32 }) {
99
- return /* @__PURE__ */ r(
100
- "svg",
101
- {
102
- xmlns: "http://www.w3.org/2000/svg",
103
- width: o,
104
- height: o,
105
- viewBox: "0 0 32 32",
106
- fill: "none",
107
- "aria-hidden": "true",
108
- focusable: "false",
109
- children: [
110
- /* @__PURE__ */ t(
111
- "path",
112
- {
113
- d: "M16 1.66699C23.916 1.66699 30.333 8.08391 30.333 16C30.333 23.916 23.916 30.333 16 30.333C8.08391 30.333 1.66699 23.916 1.66699 16C1.66699 8.08392 8.08392 1.66699 16 1.66699Z",
114
- fill: "var(--mantine-primary-color-filled, #4c6ef5)"
115
- }
116
- ),
117
- /* @__PURE__ */ t(
118
- "path",
119
- {
120
- d: "M20.5961 11.3243C20.9693 10.9172 21.6018 10.8899 22.0089 11.2631C22.4159 11.6363 22.4432 12.2687 22.0701 12.6758L14.7367 20.6758C14.5525 20.8767 14.2944 20.994 14.0219 21C13.7492 21.006 13.4856 20.8999 13.2927 20.7071L9.9594 17.3737C9.56887 16.9832 9.56887 16.3502 9.9594 15.9597C10.3499 15.5691 10.9829 15.5691 11.3735 15.9597L13.9672 18.5534L20.5961 11.3243Z",
121
- fill: "white"
122
- }
123
- )
124
- ]
125
- }
126
- );
127
- }
128
- export {
129
- A as ArrowLeftIcon,
130
- T as CheckCircleIcon,
131
- P as ChevronRightIcon,
132
- R as CloseMenuIcon,
133
- Z as FullscreenIcon,
134
- O as MoreVerticalIcon,
135
- L as PauseIcon,
136
- y as PictureInPictureIcon,
137
- x as PlayIcon,
138
- $ as QualityIcon,
139
- k as SettingsPlayerIcon,
140
- H as SpeedIcon,
141
- j as SubtitleIcon,
142
- B as TickIcon,
143
- S as VolumeIcon,
144
- b as VolumeMuteIcon
145
- };
@@ -1,27 +0,0 @@
1
- type VideoMenuHeader = {
2
- label: React.ReactNode;
3
- onClick: () => void;
4
- disabled?: boolean;
5
- leftSection?: React.ReactNode;
6
- rightSection?: React.ReactNode;
7
- testId?: string;
8
- };
9
- type VideoMenuItem = {
10
- key: string;
11
- onClick: () => void;
12
- disabled?: boolean;
13
- leftIcon?: React.ReactNode;
14
- leftLabel: React.ReactNode;
15
- centerLabel?: React.ReactNode;
16
- rightSection?: React.ReactNode;
17
- testId?: string;
18
- };
19
- type VideoMenuProps = {
20
- header?: VideoMenuHeader;
21
- items: VideoMenuItem[];
22
- width?: number;
23
- maxHeight?: number;
24
- };
25
- export declare function VideoMenu({ header, items, width, maxHeight, }: VideoMenuProps): import("react/jsx-runtime").JSX.Element;
26
- export {};
27
- //# sourceMappingURL=VideoMenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/VideoPlayer/components/VideoMenu.tsx"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,KAAK,EACL,KAAW,EACX,SAAS,GACV,EAAE,cAAc,2CAwEhB"}
@@ -1,77 +0,0 @@
1
- import { jsxs as o, Fragment as r, jsx as n } from "react/jsx-runtime";
2
- import { Menu as l, Text as c } from "@mantine/core";
3
- function v({
4
- header: i,
5
- items: a,
6
- width: t = 300,
7
- maxHeight: s
8
- }) {
9
- return /* @__PURE__ */ o(
10
- l.Dropdown,
11
- {
12
- w: t,
13
- mah: s,
14
- style: s ? { overflowY: "auto" } : void 0,
15
- onClick: (e) => {
16
- e.stopPropagation();
17
- },
18
- children: [
19
- i && /* @__PURE__ */ o(r, { children: [
20
- /* @__PURE__ */ n(
21
- l.Item,
22
- {
23
- onClick: (e) => {
24
- e.stopPropagation(), i.onClick();
25
- },
26
- disabled: i.disabled,
27
- leftSection: i.leftSection,
28
- closeMenuOnClick: !1,
29
- className: "video-menu-item",
30
- "data-test-id": i.testId,
31
- children: /* @__PURE__ */ o("div", { className: "video-menu-row", children: [
32
- /* @__PURE__ */ n(c, { className: "video-menu-header", children: i.label }),
33
- i.rightSection && /* @__PURE__ */ n(
34
- "span",
35
- {
36
- className: "video-menu-icon",
37
- onClick: (e) => {
38
- e.stopPropagation();
39
- },
40
- children: i.rightSection
41
- }
42
- )
43
- ] })
44
- }
45
- ),
46
- /* @__PURE__ */ n(l.Divider, {})
47
- ] }),
48
- a.map((e) => /* @__PURE__ */ n(
49
- l.Item,
50
- {
51
- onClick: (d) => {
52
- d.stopPropagation(), e.onClick();
53
- },
54
- disabled: e.disabled,
55
- closeMenuOnClick: !1,
56
- className: "video-menu-item",
57
- "data-test-id": e.testId,
58
- children: /* @__PURE__ */ o("div", { className: "video-menu-row", children: [
59
- /* @__PURE__ */ o("div", { className: "video-menu-left", children: [
60
- e.leftIcon && /* @__PURE__ */ n("span", { className: "video-menu-icon", children: e.leftIcon }),
61
- /* @__PURE__ */ n(c, { className: "video-menu-item-text", children: e.leftLabel })
62
- ] }),
63
- /* @__PURE__ */ o("div", { className: "video-menu-right", children: [
64
- /* @__PURE__ */ n(c, { className: "video-menu-item-text video-menu-value", children: e.centerLabel ?? "" }),
65
- e.rightSection ? /* @__PURE__ */ n("span", { className: "video-menu-chevron", children: e.rightSection }) : null
66
- ] })
67
- ] })
68
- },
69
- e.key
70
- ))
71
- ]
72
- }
73
- );
74
- }
75
- export {
76
- v as VideoMenu
77
- };
@@ -1,17 +0,0 @@
1
- import type { PlayerSettingsSnapshot } from '../utils/videoSettings';
2
- import './VideoMobileSettingsDrawer.scss';
3
- type VideoMobileSettingsDrawerProps = {
4
- opened: boolean;
5
- onClose: () => void;
6
- settings: PlayerSettingsSnapshot;
7
- isSettingsDisabled?: boolean;
8
- onSubtitlesOpen?: () => void;
9
- onSpeedClick: (speed: number) => void;
10
- onQualityClick: (qualityId: number | null) => void;
11
- onSubtitleSelect: (subtitleId: number | null) => void;
12
- optimisticSpeed: number | null;
13
- setOptimisticSpeed: (speed: number | null) => void;
14
- };
15
- export declare function VideoMobileSettingsDrawer({ opened, onClose, settings, isSettingsDisabled, onSubtitlesOpen, onSpeedClick, onQualityClick, onSubtitleSelect, optimisticSpeed, setOptimisticSpeed, }: VideoMobileSettingsDrawerProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
17
- //# sourceMappingURL=VideoMobileSettingsDrawer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoMobileSettingsDrawer.d.ts","sourceRoot":"","sources":["../../../../src/components/VideoPlayer/components/VideoMobileSettingsDrawer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAWrE,OAAO,kCAAkC,CAAC;AA6B1C,KAAK,8BAA8B,GAAG;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,kBAAkB,GACnB,EAAE,8BAA8B,2CAmUhC"}
@@ -1,289 +0,0 @@
1
- import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
2
- import { useState as Q } from "react";
3
- import { useTranslation as M } from "react-i18next";
4
- import { Drawer as $, Text as b } from "@mantine/core";
5
- import { isAutoGeneratedTrack as x } from "../utils/subtitles.js";
6
- import { CloseMenuIcon as _, SubtitleIcon as T, ChevronRightIcon as h, SpeedIcon as j, QualityIcon as E, ArrowLeftIcon as p, TickIcon as u } from "./VideoIcons.js";
7
- /* empty css */
8
- const G = {
9
- en: "English",
10
- es: "Español",
11
- fr: "Français",
12
- de: "Deutsch",
13
- it: "Italiano",
14
- pt: "Português",
15
- ru: "Русский",
16
- uk: "Українська",
17
- pl: "Polski",
18
- nl: "Nederlands",
19
- sv: "Svenska",
20
- no: "Norsk",
21
- da: "Dansk",
22
- fi: "Suomi",
23
- tr: "Türkçe",
24
- ar: "العربية",
25
- he: "עברית",
26
- hi: "हिन्दी",
27
- ja: "日本語",
28
- ko: "한국어",
29
- zh: "中文",
30
- ro: "Română"
31
- };
32
- function K({
33
- opened: g,
34
- onClose: f,
35
- settings: s,
36
- isSettingsDisabled: a,
37
- onSubtitlesOpen: k,
38
- onSpeedClick: y,
39
- onQualityClick: w,
40
- onSubtitleSelect: C,
41
- optimisticSpeed: v,
42
- setOptimisticSpeed: z
43
- }) {
44
- const { t: l } = M(), [c, r] = Q("main"), o = () => {
45
- f(), r("main");
46
- }, I = (v ?? s.currentSpeed) === 1 ? l("editor.video.settings.normal") : `${v ?? s.currentSpeed}x`, S = s.qualities.find((i) => i.id === s.currentQualityId)?.label || l("editor.video.settings.auto"), R = s.subtitles.find((i) => i.id === s.currentSubtitleId)?.label || l("editor.video.settings.off"), A = (i) => i === 1 ? l("editor.video.settings.normal") : i.toString(), L = v ?? s.currentSpeed, q = l("editor.video.settingsModal.autoGenerated");
47
- return /* @__PURE__ */ e(
48
- $,
49
- {
50
- opened: g,
51
- onClose: o,
52
- position: "bottom",
53
- size: "auto",
54
- withCloseButton: !1,
55
- padding: 0,
56
- lockScroll: !1,
57
- withOverlay: !1,
58
- classNames: { content: "video-mobile-settings-drawer" },
59
- withinPortal: !0,
60
- children: /* @__PURE__ */ t("div", { className: "video-mobile-settings-drawer__inner", children: [
61
- c === "main" && /* @__PURE__ */ t(m, { children: [
62
- /* @__PURE__ */ t("div", { className: "video-mobile-settings-drawer__header", children: [
63
- /* @__PURE__ */ e(b, { className: "video-mobile-settings-drawer__title", fw: 600, children: l("editor.video.player.settings") }),
64
- /* @__PURE__ */ e(
65
- "button",
66
- {
67
- type: "button",
68
- className: "video-mobile-settings-drawer__close",
69
- onClick: o,
70
- children: /* @__PURE__ */ e(_, { size: 16 })
71
- }
72
- )
73
- ] }),
74
- /* @__PURE__ */ e("div", { className: "video-mobile-settings-drawer__divider" }),
75
- /* @__PURE__ */ t("div", { className: "video-mobile-settings-drawer__list", children: [
76
- /* @__PURE__ */ t(
77
- "button",
78
- {
79
- type: "button",
80
- className: "video-mobile-settings-drawer__item",
81
- disabled: a || !s.hasRealSubtitles,
82
- onClick: () => {
83
- !a && s.hasRealSubtitles && (k?.(), r("subtitles"));
84
- },
85
- children: [
86
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-icon", children: /* @__PURE__ */ e(T, { size: 16 }) }),
87
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-label", children: l("editor.video.settings.subtitlesCc") }),
88
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-value", children: R }),
89
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-chevron", children: /* @__PURE__ */ e(h, { size: 16 }) })
90
- ]
91
- }
92
- ),
93
- /* @__PURE__ */ t(
94
- "button",
95
- {
96
- type: "button",
97
- className: "video-mobile-settings-drawer__item",
98
- disabled: a || !s.hasRealSpeeds,
99
- onClick: () => {
100
- s.hasRealSpeeds && r("speed");
101
- },
102
- children: [
103
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-icon", children: /* @__PURE__ */ e(j, { size: 16 }) }),
104
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-label", children: l("editor.video.settings.speed") }),
105
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-value", children: I }),
106
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-chevron", children: /* @__PURE__ */ e(h, { size: 16 }) })
107
- ]
108
- }
109
- ),
110
- /* @__PURE__ */ t(
111
- "button",
112
- {
113
- type: "button",
114
- className: "video-mobile-settings-drawer__item",
115
- disabled: a || !s.hasRealQualities,
116
- onClick: () => {
117
- s.hasRealQualities && r("quality");
118
- },
119
- children: [
120
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-icon", children: /* @__PURE__ */ e(E, { size: 16 }) }),
121
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-label", children: l("editor.video.settings.quality") }),
122
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-value", children: S }),
123
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__item-chevron", children: /* @__PURE__ */ e(h, { size: 16 }) })
124
- ]
125
- }
126
- )
127
- ] })
128
- ] }),
129
- c === "subtitles" && /* @__PURE__ */ t(m, { children: [
130
- /* @__PURE__ */ t("div", { className: "video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub", children: [
131
- /* @__PURE__ */ e(
132
- "button",
133
- {
134
- type: "button",
135
- className: "video-mobile-settings-drawer__back",
136
- onClick: () => r("main"),
137
- children: /* @__PURE__ */ e(p, { size: 16 })
138
- }
139
- ),
140
- /* @__PURE__ */ e(b, { className: "video-mobile-settings-drawer__title", fw: 600, children: l("editor.video.settings.subtitlesCc") }),
141
- /* @__PURE__ */ e(
142
- "button",
143
- {
144
- type: "button",
145
- className: "video-mobile-settings-drawer__close",
146
- onClick: o,
147
- children: /* @__PURE__ */ e(_, { size: 16 })
148
- }
149
- )
150
- ] }),
151
- /* @__PURE__ */ e("div", { className: "video-mobile-settings-drawer__divider" }),
152
- /* @__PURE__ */ e("div", { className: "video-mobile-settings-drawer__scroll-list", children: s.subtitles.map((i) => {
153
- const n = i.id === s.currentSubtitleId;
154
- let d = i.label;
155
- if (x({ label: d })) {
156
- const N = i.lang ? G[i.lang.toLowerCase()] : null;
157
- N && (d = N), d = `${d} (${q})`;
158
- }
159
- return /* @__PURE__ */ t(
160
- "button",
161
- {
162
- type: "button",
163
- className: "video-mobile-settings-drawer__option",
164
- disabled: a,
165
- onClick: () => {
166
- C(i.id), o();
167
- },
168
- children: [
169
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__option-label", children: d }),
170
- n && /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__option-check", children: /* @__PURE__ */ e(u, { size: 16 }) })
171
- ]
172
- },
173
- `subtitle-${i.id ?? "off"}`
174
- );
175
- }) })
176
- ] }),
177
- c === "speed" && /* @__PURE__ */ t(m, { children: [
178
- /* @__PURE__ */ t("div", { className: "video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub", children: [
179
- /* @__PURE__ */ e(
180
- "button",
181
- {
182
- type: "button",
183
- className: "video-mobile-settings-drawer__back",
184
- onClick: () => r("main"),
185
- children: /* @__PURE__ */ e(p, { size: 16 })
186
- }
187
- ),
188
- /* @__PURE__ */ e(b, { className: "video-mobile-settings-drawer__title", fw: 600, children: l("editor.video.settings.speed") }),
189
- /* @__PURE__ */ e(
190
- "button",
191
- {
192
- type: "button",
193
- className: "video-mobile-settings-drawer__close",
194
- onClick: o,
195
- children: /* @__PURE__ */ e(_, { size: 16 })
196
- }
197
- )
198
- ] }),
199
- /* @__PURE__ */ e("div", { className: "video-mobile-settings-drawer__divider" }),
200
- /* @__PURE__ */ e("div", { className: "video-mobile-settings-drawer__scroll-list", children: s.speeds.map((i) => {
201
- const n = i === L;
202
- return /* @__PURE__ */ t(
203
- "button",
204
- {
205
- type: "button",
206
- className: "video-mobile-settings-drawer__option",
207
- disabled: a,
208
- onClick: () => {
209
- z(i), y(i), o();
210
- },
211
- children: [
212
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__option-label", children: A(i) }),
213
- n && /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__option-check", children: /* @__PURE__ */ e(u, { size: 16 }) })
214
- ]
215
- },
216
- `speed-${i}`
217
- );
218
- }) })
219
- ] }),
220
- c === "quality" && /* @__PURE__ */ t(m, { children: [
221
- /* @__PURE__ */ t("div", { className: "video-mobile-settings-drawer__header video-mobile-settings-drawer__header--sub", children: [
222
- /* @__PURE__ */ e(
223
- "button",
224
- {
225
- type: "button",
226
- className: "video-mobile-settings-drawer__back",
227
- onClick: () => r("main"),
228
- children: /* @__PURE__ */ e(p, { size: 16 })
229
- }
230
- ),
231
- /* @__PURE__ */ e(b, { className: "video-mobile-settings-drawer__title", fw: 600, children: l("editor.video.settings.quality") }),
232
- /* @__PURE__ */ e(
233
- "button",
234
- {
235
- type: "button",
236
- className: "video-mobile-settings-drawer__close",
237
- onClick: o,
238
- children: /* @__PURE__ */ e(_, { size: 16 })
239
- }
240
- )
241
- ] }),
242
- /* @__PURE__ */ e("div", { className: "video-mobile-settings-drawer__divider" }),
243
- /* @__PURE__ */ t("div", { className: "video-mobile-settings-drawer__scroll-list", children: [
244
- s.qualities.map((i) => {
245
- const n = i.id === s.currentQualityId, d = i.label?.includes("1080");
246
- return /* @__PURE__ */ t(
247
- "button",
248
- {
249
- type: "button",
250
- className: "video-mobile-settings-drawer__option",
251
- disabled: a,
252
- onClick: () => {
253
- w(i.id), o();
254
- },
255
- children: [
256
- /* @__PURE__ */ t("span", { className: "video-mobile-settings-drawer__option-label", children: [
257
- i.label,
258
- d && /* @__PURE__ */ e("sup", { className: "video-mobile-settings-drawer__hd-badge", children: "HD" })
259
- ] }),
260
- n && /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__option-check", children: /* @__PURE__ */ e(u, { size: 16 }) })
261
- ]
262
- },
263
- `quality-${i.id}`
264
- );
265
- }),
266
- s.hasRealQualities && /* @__PURE__ */ t(
267
- "button",
268
- {
269
- type: "button",
270
- className: "video-mobile-settings-drawer__option",
271
- disabled: a,
272
- onClick: () => {
273
- w(null), o();
274
- },
275
- children: [
276
- /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__option-label", children: l("editor.video.settings.auto") }),
277
- s.currentQualityId == null && /* @__PURE__ */ e("span", { className: "video-mobile-settings-drawer__option-check", children: /* @__PURE__ */ e(u, { size: 16 }) })
278
- ]
279
- }
280
- )
281
- ] })
282
- ] })
283
- ] })
284
- }
285
- );
286
- }
287
- export {
288
- K as VideoMobileSettingsDrawer
289
- };
@@ -1,10 +0,0 @@
1
- import type { PlayerSettingsSnapshot } from '../../utils/videoSettings';
2
- type VideoQualityMenuProps = {
3
- disabled?: boolean;
4
- settings: PlayerSettingsSnapshot;
5
- onBack: () => void;
6
- onSelect: (qualityId: number | null) => void;
7
- };
8
- export declare function VideoQualityMenu({ disabled, settings, onBack, onSelect, }: VideoQualityMenuProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/VideoPlayer/components/VideoQualityMenu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAIxE,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,GACT,EAAE,qBAAqB,2CAiDvB"}
@@ -1,55 +0,0 @@
1
- import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
- import { useTranslation as y } from "react-i18next";
3
- import { TickIcon as a, ArrowLeftIcon as f } from "../VideoIcons.js";
4
- import { VideoMenu as h } from "../VideoMenu.js";
5
- function k({
6
- disabled: l,
7
- settings: e,
8
- onBack: u,
9
- onSelect: o
10
- }) {
11
- const { t: n } = y(), r = [
12
- ...e.qualities.map((i) => {
13
- const s = i.id === e.currentQualityId, d = i.label?.includes("1080");
14
- return {
15
- key: `quality-${i.id}`,
16
- testId: `video-settings-quality-${i.id}`,
17
- onClick: () => o(i.id),
18
- disabled: l,
19
- leftLabel: d ? /* @__PURE__ */ c("span", { children: [
20
- i.label,
21
- " ",
22
- /* @__PURE__ */ t("sup", { className: "video-menu-hd-badge", children: "HD" })
23
- ] }) : i.label,
24
- rightSection: s ? /* @__PURE__ */ t(a, { size: 16 }) : null
25
- };
26
- }),
27
- ...e.hasRealQualities ? [
28
- {
29
- key: "quality-auto",
30
- testId: "video-settings-quality-auto",
31
- onClick: () => o(null),
32
- disabled: l,
33
- leftLabel: n("editor.video.settings.auto"),
34
- rightSection: e.currentQualityId == null ? /* @__PURE__ */ t(a, { size: 16 }) : null
35
- }
36
- ] : []
37
- ];
38
- return /* @__PURE__ */ t(
39
- h,
40
- {
41
- width: 264,
42
- header: {
43
- label: n("editor.video.settings.quality"),
44
- onClick: u,
45
- disabled: l,
46
- leftSection: /* @__PURE__ */ t(f, { size: 16 }),
47
- testId: "video-settings-quality-header"
48
- },
49
- items: r
50
- }
51
- );
52
- }
53
- export {
54
- k as VideoQualityMenu
55
- };
@@ -1,10 +0,0 @@
1
- import type { JSX } from 'react';
2
- import { type ComboboxItem, SelectProps } from '@mantine/core';
3
- import '../styles.scss';
4
- export type VideoSelectProps = Omit<SelectProps, 'data'> & {
5
- data?: (string | ComboboxItem)[];
6
- inputClassName?: string;
7
- 'data-test-id'?: string;
8
- };
9
- export default function VideoSelect({ size, w, comboboxProps, rightSection, renderOption, data, value, defaultValue, onChange, inputClassName, ...inputProps }: VideoSelectProps): JSX.Element;
10
- //# sourceMappingURL=VideoSelect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/VideoPlayer/components/VideoSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,GAAG,EAAqB,MAAM,OAAO,CAAC;AAM1E,OAAO,EAEL,KAAK,YAAY,EAGjB,WAAW,EAGZ,MAAM,eAAe,CAAC;AAOvB,OAAO,gBAAgB,CAAC;AAExB,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG;IACzD,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,YAAY,CAAC,EAAE,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAW,EACX,CAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,GAAG,UAAU,EACd,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAyMhC"}