@layers-app/shared 0.4.5 → 0.4.7
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.
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.module.css.js +22 -12
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +237 -95
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1111 -131
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +22 -17
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +15 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +36 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +14 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +31 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +172 -120
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +18 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +35 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +33 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +70 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +32 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -32
- package/dist/components/Chat/ChatInput/index.d.ts +29 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +178 -118
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +2 -2
- package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +136 -118
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
- package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +3 -3
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +40 -36
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +10 -6
- package/dist/components/Chat/MessageList/index.d.ts +30 -3
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +154 -66
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageMeta/index.js +21 -19
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +8 -8
- package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageReactions/index.js +60 -28
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -6
- package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageStatus/index.js +49 -34
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +81 -76
- package/dist/components/ColorPicker/ColorPicker.module.css.js +24 -24
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +43 -41
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +52 -50
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +80 -32
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewToolbar/utils.d.ts +12 -0
- package/dist/components/NewToolbar/utils.d.ts.map +1 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
- package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +24 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.js +727 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +8 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.js +67 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +7 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.js +44 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +9 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.js +38 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +33 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.js +601 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoIcons.js +145 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts +27 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMenu.js +77 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +17 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +289 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +55 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSelect.js +168 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +12 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +48 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +384 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +21 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +264 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +39 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +360 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +4 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +22 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +211 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +11 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +41 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +69 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +21 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.js +91 -0
- package/dist/components/VideoPlayer/index.d.ts +11 -0
- package/dist/components/VideoPlayer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/types.d.ts +101 -0
- package/dist/components/VideoPlayer/types.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts +8 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.js +38 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts +5 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/storyboard.js +47 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts +18 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/subtitles.js +23 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts +3 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/touch.js +5 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +10 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +22 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts +69 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoSettings.js +90 -0
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +29 -29
- package/dist/config/envConfig.d.ts +4 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +9 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +96 -58
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -23
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +582 -558
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts +19 -0
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +1 -0
- package/dist/videoSettings/createVideoSettingsDataSource.js +127 -0
- package/docs/README.md +499 -499
- package/package.json +79 -78
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,289 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|