@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { searchResults: "Search results", icons: "Icons", searchNoResults: "No results found", chooseColor: "Choose color", categories: { activity: "Activities", custom: "Custom", flags: "Flags", foods: "Food and drinks", frequent: "Recent", nature: "Animals and nature", objects: "Objects", people: "Emotions and people", places: "Travel and places", symbols: "Symbols", additional: "Additional" } }, o = { label: "Image", change: "Change" }, a = { colorGradients: "Colors and gradients", jamesWebbTelescope: "Telescope", nasaArchive: "Planet", theIndianEdition: "Cyberpunk", theMetMuseum: "Museum", theMetMuseumPatterns: "Pattern", theMetMuseumJapanesePrints: "Nature", rijkmuseum: "Black hole" }, i = { gallery: "Gallery", upload: "Upload", uploadFile: "Upload file", maxFileSize: "Images wider than 1600px are recommended. Maximum file size: {{maxSize}}MB.", link: "Link", searchImages: "Search Image", pasteLink: "Paste an image link...", submitLink: "Apply", worksWithAnyImage: "Works with any image from the Internet", searchImage: "Search for an image…", searchGifs: "Search for GIFs…", noResult: "No image found for your query.", change: "Change cover", invalidLink: "Invalid link", position: "Reposition", dragSave: "Save position", dragCancel: "Cancel", photoBy: "By", googleDrive: "Google Drive", media: "Media" }, r = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Connect Google Drive", connectDescription: "Connect your Google Drive account to import files", disconnect: "Disconnect", openPicker: "Open Google Drive", importing: "Importing file...", importComplete: "File imported successfully", importFailed: "Failed to import file", retry: "Try again", description: "Import a file from your Google Drive", goToSettings: "Connect Google Drive in Settings to import files", searchFiles: "Search Google Drive" }, t = { color: "Color", background: "Background", colors: { standard: "Standard", gray: "Gray", grey: "Grey", brown: "Brown", orange: "Orange", yellow: "Yellow", green: "Green", teal: "Teal", blue: "Blue", indigo: "Indigo", purple: "Purple", violet: "Violet", pink: "Pink", red: "Red", dark: "Dark" } }, n = { save: "Save" }, s = "Remove", l = "Error", c = "Load more", d = "Drag & drop an image or <choose>choose a file</choose> to upload", u = { dropFileHere: { image: "Drag & drop an image or <choose>choose a file</choose> to upload", video: "Drag & drop a video or <choose>choose a file</choose> to upload", audio: "Drag & drop an audio file or <choose>choose a file</choose> to upload", file: "Drag & drop a file or <choose>choose a file</choose> to upload", avatar: "Drag & drop an image or <choose>choose a file</choose> to upload" }, description: { image: "Images wider than 1600px are recommended. Maximum file size: {{maxSize}}.", video: "Maximum file size: {{maxSize}}. Supported formats: MP4, WebM, OGG. (Other formats will be converted automatically)", audio: "Maximum file size: {{maxSize}}.", file: "Maximum file size: {{maxSize}}.", avatar: "Images wider than 256×256 px are recommended. Maximum file size: {{maxSize}}." }, pasteLink: { image: "Paste an image link...", video: "Paste a video link...", audio: "Paste an audio link...", file: "Paste a file link...", avatar: "Paste an image link..." }, errors: { typeIsNotAllowed: "This file type is not supported", shouldNotExceed: "File size should not exceed {{maxSize}} MB.", doNotUploadMoreThanSingleFile: "Please upload no more than one file." } }, m = { play: "Play", pause: "Pause", mute: "Mute", unmute: "Unmute", playbackSpeed: "Playback speed", volume: "Volume", waveformSeek: "Seek along the track", timeDisplay: "Time", download: "Download", copyLink: "Copy link", delete: "Delete", more: "More", mobileActionsTitle: "Actions" }, p = { download: "Download", zoomOut: "Zoom out", zoomIn: "Zoom in", close: "Close", fileError: "Upload failed. Please try again.", unsupportedTitle: "Preview is not available", unsupportedBody: "This file type can't be opened in the browser. Download it to view in the right app." }, g = { day_one: "{{count}} day ago", day_other: "{{count}} days ago", hour_one: "{{count}} hour ago", hour_other: "{{count}} hours ago", minute_one: "{{count}} minute ago", minute_other: "{{count}} minutes ago", second_one: "{{count}} second ago", second_other: "{{count}} seconds ago", justNow: "just now", shortDay: "{{count}}d ago.", shortHour: "{{count}}h ago.", shortMinute: "{{count}}m ago.", shortSecond: "{{count}}s ago.", shortJustNow: "now." }, h = {
|
|
1
|
+
const e = { searchResults: "Search results", icons: "Icons", gifs: "GIF", searchNoResults: "No results found", chooseColor: "Choose color", categories: { activity: "Activities", custom: "Custom", flags: "Flags", foods: "Food and drinks", frequent: "Recent", nature: "Animals and nature", objects: "Objects", people: "Emotions and people", places: "Travel and places", symbols: "Symbols", additional: "Additional" } }, o = { label: "Image", change: "Change" }, a = { colorGradients: "Colors and gradients", jamesWebbTelescope: "Telescope", nasaArchive: "Planet", theIndianEdition: "Cyberpunk", theMetMuseum: "Museum", theMetMuseumPatterns: "Pattern", theMetMuseumJapanesePrints: "Nature", rijkmuseum: "Black hole" }, i = { gallery: "Gallery", upload: "Upload", uploadFile: "Upload file", maxFileSize: "Images wider than 1600px are recommended. Maximum file size: {{maxSize}}MB.", link: "Link", searchImages: "Search Image", pasteLink: "Paste an image link...", submitLink: "Apply", worksWithAnyImage: "Works with any image from the Internet", searchImage: "Search for an image…", searchGifs: "Search for GIFs…", noResult: "No image found for your query.", change: "Change cover", invalidLink: "Invalid link", position: "Reposition", dragSave: "Save position", dragCancel: "Cancel", photoBy: "By", googleDrive: "Google Drive", media: "Media" }, r = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Connect Google Drive", connectDescription: "Connect your Google Drive account to import files", disconnect: "Disconnect", openPicker: "Open Google Drive", importing: "Importing file...", importComplete: "File imported successfully", importFailed: "Failed to import file", retry: "Try again", description: "Import a file from your Google Drive", goToSettings: "Connect Google Drive in Settings to import files", searchFiles: "Search Google Drive" }, t = { color: "Color", background: "Background", colors: { standard: "Standard", gray: "Gray", grey: "Grey", brown: "Brown", orange: "Orange", yellow: "Yellow", green: "Green", teal: "Teal", blue: "Blue", indigo: "Indigo", purple: "Purple", violet: "Violet", pink: "Pink", red: "Red", dark: "Dark" } }, n = { save: "Save" }, s = "Remove", l = "Error", c = "Load more", d = "Drag & drop an image or <choose>choose a file</choose> to upload", u = { dropFileHere: { image: "Drag & drop an image or <choose>choose a file</choose> to upload", video: "Drag & drop a video or <choose>choose a file</choose> to upload", audio: "Drag & drop an audio file or <choose>choose a file</choose> to upload", file: "Drag & drop a file or <choose>choose a file</choose> to upload", avatar: "Drag & drop an image or <choose>choose a file</choose> to upload" }, description: { image: "Images wider than 1600px are recommended. Maximum file size: {{maxSize}}.", video: "Maximum file size: {{maxSize}}. Supported formats: MP4, WebM, OGG. (Other formats will be converted automatically)", audio: "Maximum file size: {{maxSize}}.", file: "Maximum file size: {{maxSize}}.", avatar: "Images wider than 256×256 px are recommended. Maximum file size: {{maxSize}}." }, pasteLink: { image: "Paste an image link...", video: "Paste a video link...", audio: "Paste an audio link...", file: "Paste a file link...", avatar: "Paste an image link..." }, errors: { typeIsNotAllowed: "This file type is not supported", shouldNotExceed: "File size should not exceed {{maxSize}} MB.", doNotUploadMoreThanSingleFile: "Please upload no more than one file." } }, m = { play: "Play", pause: "Pause", mute: "Mute", unmute: "Unmute", playbackSpeed: "Playback speed", volume: "Volume", waveformSeek: "Seek along the track", timeDisplay: "Time", download: "Download", copyLink: "Copy link", delete: "Delete", more: "More", mobileActionsTitle: "Actions" }, p = { download: "Download", zoomOut: "Zoom out", zoomIn: "Zoom in", close: "Close", fileError: "Upload failed. Please try again.", unsupportedTitle: "Preview is not available", unsupportedBody: "This file type can't be opened in the browser. Download it to view in the right app." }, g = { day_one: "{{count}} day ago", day_other: "{{count}} days ago", hour_one: "{{count}} hour ago", hour_other: "{{count}} hours ago", minute_one: "{{count}} minute ago", minute_other: "{{count}} minutes ago", second_one: "{{count}} second ago", second_other: "{{count}} seconds ago", justNow: "just now", shortDay: "{{count}}d ago.", shortHour: "{{count}}h ago.", shortMinute: "{{count}}m ago.", shortSecond: "{{count}}s ago.", shortJustNow: "now." }, h = {
|
|
2
2
|
emojiPicker: e,
|
|
3
3
|
uploadImage: o,
|
|
4
4
|
coverGroups: a,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { searchResults: "Resultados de búsqueda", icons: "Iconos", searchNoResults: "No se encontraron resultados", chooseColor: "Elegir color", categories: { activity: "Actividades", custom: "Personalizado", flags: "Banderas", foods: "Comida y bebidas", frequent: "Usados frecuentemente", nature: "Animales y naturaleza", objects: "Objetos", people: "Emociones y personas", places: "Viajes y lugares", symbols: "Símbolos" } }, o = { label: "Imagen", change: "Cambiar" }, a = { colorGradients: "Colores y degradados", jamesWebbTelescope: "Telescopio", nasaArchive: "Planeta", theIndianEdition: "Cyberpunk", theMetMuseum: "Museo", theMetMuseumPatterns: "Patrón", theMetMuseumJapanesePrints: "Naturaleza", rijkmuseum: "Agujero negro" }, r = { gallery: "Galería", upload: "Subir", uploadFile: "Subir archivo", maxFileSize: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: {{maxSize}}MB.", link: "Enlace", searchImages: "Buscar imagen", pasteLink: "Pegar enlace de imagen...", submitLink: "Aplicar", worksWithAnyImage: "Funciona con cualquier imagen de Internet", searchImage: "Buscar imagen…", searchGifs: "Buscar GIF…", noResult: "No se encontró ninguna imagen para tu búsqueda.", change: "Cambiar portada", invalidLink: "Enlace inválido", position: "Reposicionar", dragSave: "Guardar posición", dragCancel: "Cancelar", photoBy: "Por", googleDrive: "Google Drive", media: "Media" }, i = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Conectar Google Drive", connectDescription: "Conecta tu cuenta de Google Drive para importar archivos", disconnect: "Desconectar", openPicker: "Abrir Google Drive", importing: "Importando archivo...", importComplete: "Archivo importado exitosamente", importFailed: "Error al importar archivo", retry: "Intentar de nuevo", description: "Importar un archivo desde tu Google Drive", goToSettings: "Conecta Google Drive en Configuración para importar archivos", searchFiles: "Buscar en Google Drive" }, n = { color: "Color", background: "Fondo", colors: { standard: "Estándar", gray: "Gris", grey: "Gris", brown: "Marrón", orange: "Naranja", yellow: "Amarillo", green: "Verde", teal: "Verde azulado", blue: "Azul", indigo: "Índigo", purple: "Púrpura", violet: "Violeta", pink: "Rosa", red: "Rojo", dark: "Negro" } }, s = { save: "Guardar" }, c = "Eliminar", t = "Error", l = "Cargar más", u = "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo", d = { dropFileHere: { image: "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo", video: "Arrastra y suelta un vídeo o <choose>elige un archivo</choose> para subirlo", audio: "Arrastra y suelta un archivo de audio o <choose>elige un archivo</choose> para subirlo", file: "Arrastra y suelta un archivo o <choose>elige un archivo</choose> para subirlo", avatar: "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo" }, description: { image: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: {{maxSize}}.", video: "Tamaño máximo de archivo: {{maxSize}}. Formatos compatibles: MP4, WebM, OGG. (Otros formatos se convertirán automáticamente)", audio: "Tamaño máximo de archivo: {{maxSize}}.", file: "Tamaño máximo de archivo: {{maxSize}}.", avatar: "Se recomiendan imágenes de más de 256×256 px. Tamaño máximo de archivo: {{maxSize}}." }, pasteLink: { image: "Pega un enlace a la imagen...", video: "Pega un enlace al vídeo...", audio: "Pega un enlace al audio...", file: "Pega un enlace al archivo...", avatar: "Pega un enlace a la imagen..." }, errors: { typeIsNotAllowed: "Este tipo de archivo no es compatible", shouldNotExceed: "El tamaño del archivo no debe exceder {{maxSize}} MB.", doNotUploadMoreThanSingleFile: "Por favor, carga no más de un archivo." } }, m = { play: "Reproducir", pause: "Pausar", mute: "Silenciar", unmute: "Activar sonido", playbackSpeed: "Velocidad de reproducción", volume: "Volumen", waveformSeek: "Buscar en la pista", timeDisplay: "Tiempo", download: "Descargar", copyLink: "Copiar enlace", delete: "Eliminar", more: "Más", mobileActionsTitle: "Acciones" }, h = { download: "Descargar", zoomOut: "Alejar", zoomIn: "Acercar", close: "Cerrar", fileError: "La carga falló. Por favor, inténtalo de nuevo.", unsupportedTitle: "Vista previa no disponible", unsupportedBody: "Este tipo de archivo no se puede abrir en el navegador. Descárgalo para verlo en la aplicación adecuada." }, g = { day_one: "hace {{count}} día", day_other: "hace {{count}} días", hour_one: "hace {{count}} hora", hour_other: "hace {{count}} horas", minute_one: "hace {{count}} minuto", minute_other: "hace {{count}} minutos", second_one: "hace {{count}} segundo", second_other: "hace {{count}} segundos", justNow: "ahora mismo", shortDay: "hace {{count}}d.", shortHour: "hace {{count}}h.", shortMinute: "hace {{count}}m.", shortSecond: "hace {{count}}s.", shortJustNow: "ahora." }, p = {
|
|
1
|
+
const e = { searchResults: "Resultados de búsqueda", icons: "Iconos", gifs: "GIF", searchNoResults: "No se encontraron resultados", chooseColor: "Elegir color", categories: { activity: "Actividades", custom: "Personalizado", flags: "Banderas", foods: "Comida y bebidas", frequent: "Usados frecuentemente", nature: "Animales y naturaleza", objects: "Objetos", people: "Emociones y personas", places: "Viajes y lugares", symbols: "Símbolos" } }, o = { label: "Imagen", change: "Cambiar" }, a = { colorGradients: "Colores y degradados", jamesWebbTelescope: "Telescopio", nasaArchive: "Planeta", theIndianEdition: "Cyberpunk", theMetMuseum: "Museo", theMetMuseumPatterns: "Patrón", theMetMuseumJapanesePrints: "Naturaleza", rijkmuseum: "Agujero negro" }, r = { gallery: "Galería", upload: "Subir", uploadFile: "Subir archivo", maxFileSize: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: {{maxSize}}MB.", link: "Enlace", searchImages: "Buscar imagen", pasteLink: "Pegar enlace de imagen...", submitLink: "Aplicar", worksWithAnyImage: "Funciona con cualquier imagen de Internet", searchImage: "Buscar imagen…", searchGifs: "Buscar GIF…", noResult: "No se encontró ninguna imagen para tu búsqueda.", change: "Cambiar portada", invalidLink: "Enlace inválido", position: "Reposicionar", dragSave: "Guardar posición", dragCancel: "Cancelar", photoBy: "Por", googleDrive: "Google Drive", media: "Media" }, i = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Conectar Google Drive", connectDescription: "Conecta tu cuenta de Google Drive para importar archivos", disconnect: "Desconectar", openPicker: "Abrir Google Drive", importing: "Importando archivo...", importComplete: "Archivo importado exitosamente", importFailed: "Error al importar archivo", retry: "Intentar de nuevo", description: "Importar un archivo desde tu Google Drive", goToSettings: "Conecta Google Drive en Configuración para importar archivos", searchFiles: "Buscar en Google Drive" }, n = { color: "Color", background: "Fondo", colors: { standard: "Estándar", gray: "Gris", grey: "Gris", brown: "Marrón", orange: "Naranja", yellow: "Amarillo", green: "Verde", teal: "Verde azulado", blue: "Azul", indigo: "Índigo", purple: "Púrpura", violet: "Violeta", pink: "Rosa", red: "Rojo", dark: "Negro" } }, s = { save: "Guardar" }, c = "Eliminar", t = "Error", l = "Cargar más", u = "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo", d = { dropFileHere: { image: "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo", video: "Arrastra y suelta un vídeo o <choose>elige un archivo</choose> para subirlo", audio: "Arrastra y suelta un archivo de audio o <choose>elige un archivo</choose> para subirlo", file: "Arrastra y suelta un archivo o <choose>elige un archivo</choose> para subirlo", avatar: "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo" }, description: { image: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: {{maxSize}}.", video: "Tamaño máximo de archivo: {{maxSize}}. Formatos compatibles: MP4, WebM, OGG. (Otros formatos se convertirán automáticamente)", audio: "Tamaño máximo de archivo: {{maxSize}}.", file: "Tamaño máximo de archivo: {{maxSize}}.", avatar: "Se recomiendan imágenes de más de 256×256 px. Tamaño máximo de archivo: {{maxSize}}." }, pasteLink: { image: "Pega un enlace a la imagen...", video: "Pega un enlace al vídeo...", audio: "Pega un enlace al audio...", file: "Pega un enlace al archivo...", avatar: "Pega un enlace a la imagen..." }, errors: { typeIsNotAllowed: "Este tipo de archivo no es compatible", shouldNotExceed: "El tamaño del archivo no debe exceder {{maxSize}} MB.", doNotUploadMoreThanSingleFile: "Por favor, carga no más de un archivo." } }, m = { play: "Reproducir", pause: "Pausar", mute: "Silenciar", unmute: "Activar sonido", playbackSpeed: "Velocidad de reproducción", volume: "Volumen", waveformSeek: "Buscar en la pista", timeDisplay: "Tiempo", download: "Descargar", copyLink: "Copiar enlace", delete: "Eliminar", more: "Más", mobileActionsTitle: "Acciones" }, h = { download: "Descargar", zoomOut: "Alejar", zoomIn: "Acercar", close: "Cerrar", fileError: "La carga falló. Por favor, inténtalo de nuevo.", unsupportedTitle: "Vista previa no disponible", unsupportedBody: "Este tipo de archivo no se puede abrir en el navegador. Descárgalo para verlo en la aplicación adecuada." }, g = { day_one: "hace {{count}} día", day_other: "hace {{count}} días", hour_one: "hace {{count}} hora", hour_other: "hace {{count}} horas", minute_one: "hace {{count}} minuto", minute_other: "hace {{count}} minutos", second_one: "hace {{count}} segundo", second_other: "hace {{count}} segundos", justNow: "ahora mismo", shortDay: "hace {{count}}d.", shortHour: "hace {{count}}h.", shortMinute: "hace {{count}}m.", shortSecond: "hace {{count}}s.", shortJustNow: "ahora." }, p = {
|
|
2
2
|
emojiPicker: e,
|
|
3
3
|
uploadImage: o,
|
|
4
4
|
coverGroups: a,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { searchResults: "Результаты поиска", searchNoResults: "Результаты не найдены", icons: "Иконки", chooseColor: "Выбрать цвет", categories: { activity: "Активности", custom: "Свои", flags: "Флаги", foods: "Еда и напитки", frequent: "Часто используемые", nature: "Животные и природа", objects: "Предметы", people: "Эмоции и люди", places: "Путешествия и места", symbols: "Символы", additional: "Дополнительные" } }, o = { colorGradients: "Цвета и градиенты", jamesWebbTelescope: "Телескоп", nasaArchive: "Планета", theIndianEdition: "Киберпанк", theMetMuseum: "Музей", theMetMuseumPatterns: "Паттерн", theMetMuseumJapanesePrints: "Природа", rijkmuseum: "Черная дыра" }, t = { gallery: "Галерея", upload: "Загрузить", uploadFile: "Загрузить файл", maxFileSize: "Рекомендуются изображения шире 1600px. Максимальный размер файла: {{maxSize}}МБ.", link: "Ссылка", searchImages: "Поиск изображения", pasteLink: "Вставьте ссылку на изображение...", submitLink: "Применить", worksWithAnyImage: "Работает с любыми изображениями из Интернета", searchImage: "Поиск изображения…", searchGifs: "Поиск GIF…", noResult: "По вашему запросу изображений не найдено", change: "Изменить обложку", invalidLink: "Неверная ссылка", position: "Изменить Позицию", dragSave: "Сохранить", dragCancel: "Отменить", photoBy: "Автор", googleDrive: "Google Drive", media: "Медиа" }, n = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Подключить Google Drive", connectDescription: "Подключите Google Drive для импорта файлов", disconnect: "Отключить", openPicker: "Открыть Google Drive", importing: "Импорт файла...", importComplete: "Файл успешно импортирован", importFailed: "Не удалось импортировать файл", retry: "Попробовать снова", description: "Импортировать файл из Google Drive", goToSettings: "Подключите Google Drive в Настройках для импорта файлов", searchFiles: "Поиск в Google Drive" }, r = { label: "Изображение", change: "Изменить" }, i = { color: "Цвет", background: "Подложка", colors: { standard: "Стандартный", gray: "Серый", grey: "Серый", brown: "Коричневый", orange: "Оранжевый", yellow: "Жёлтый", green: "Зелёный", teal: "Бирюзовый", blue: "Синий", indigo: "Индиго", purple: "Фиолетовый", violet: "Фиолетовый", pink: "Розовый", red: "Красный", dark: "Чёрный" } }, s = { save: "Сохранить" }, a = "Удалить", c = "Ошибка", l = "Загрузить ещё", u = "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить", d = { dropFileHere: { image: "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить", video: "Перетащите видео или <choose>выберите файл</choose>, чтобы загрузить", audio: "Перетащите аудио файл или <choose>выберите файл</choose>, чтобы загрузить", file: "Перетащите файл или <choose>выберите файл</choose>, чтобы загрузить", avatar: "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить" }, description: { image: "Рекомендуются изображения шире 1600px. Максимальный размер файла: {{maxSize}}.", video: "Максимальный размер файла: {{maxSize}}. Поддерживаемые форматы: MP4, WebM, OGG. (Другие форматы будут сконвертированы автоматически)", audio: "Максимальный размер файла: {{maxSize}}.", file: "Максимальный размер файла: {{maxSize}}.", avatar: "Рекомендуются изображения шире 256×256 px. Максимальный размер файла: {{maxSize}}." }, pasteLink: { image: "Вставьте ссылку на изображение...", video: "Вставьте ссылку на видео...", audio: "Вставьте ссылку на аудио...", file: "Вставьте ссылку на файл...", avatar: "Вставьте ссылку на изображение..." }, errors: { typeIsNotAllowed: "Этот тип файла не поддерживается", shouldNotExceed: "Размер файла не должен превышать {{maxSize}} МБ.", doNotUploadMoreThanSingleFile: "Пожалуйста, загрузите не более одного файла." } }, m = { play: "Воспроизвести", pause: "Пауза", mute: "Без звука", unmute: "Со звуком", playbackSpeed: "Скорость воспроизведения", volume: "Громкость", waveformSeek: "Перемотка", timeDisplay: "Время", download: "Скачать", copyLink: "Скопировать ссылку", delete: "Удалить", more: "Ещё", mobileActionsTitle: "Действия" }, h = { download: "Скачать", zoomOut: "Уменьшить", zoomIn: "Приблизить", close: "Закрыть", fileError: "Загрузка не удалась. Попробуйте снова.", unsupportedTitle: "Предпросмотр недоступен", unsupportedBody: "Этот формат нельзя открыть в браузере. Скачайте файл, чтобы посмотреть его в подходящем приложении." }, p = { day_one: "{{count}} день назад", day_few: "{{count}} дня назад", day_many: "{{count}} дней назад", day_other: "{{count}} дней назад", hour_one: "{{count}} час назад", hour_few: "{{count}} часа назад", hour_many: "{{count}} часов назад", hour_other: "{{count}} часов назад", minute_one: "{{count}} минута назад", minute_few: "{{count}} минуты назад", minute_many: "{{count}} минут назад", minute_other: "{{count}} минут назад", second_one: "{{count}} секунда назад", second_few: "{{count}} секунды назад", second_many: "{{count}} секунд назад", second_other: "{{count}} секунд назад", justNow: "только что", shortDay: "{{count}}д назад.", shortHour: "{{count}}ч назад.", shortMinute: "{{count}}м назад.", shortSecond: "{{count}}с назад.", shortJustNow: "сейчас." }, g = {
|
|
1
|
+
const e = { searchResults: "Результаты поиска", searchNoResults: "Результаты не найдены", icons: "Иконки", gifs: "GIF", chooseColor: "Выбрать цвет", categories: { activity: "Активности", custom: "Свои", flags: "Флаги", foods: "Еда и напитки", frequent: "Часто используемые", nature: "Животные и природа", objects: "Предметы", people: "Эмоции и люди", places: "Путешествия и места", symbols: "Символы", additional: "Дополнительные" } }, o = { colorGradients: "Цвета и градиенты", jamesWebbTelescope: "Телескоп", nasaArchive: "Планета", theIndianEdition: "Киберпанк", theMetMuseum: "Музей", theMetMuseumPatterns: "Паттерн", theMetMuseumJapanesePrints: "Природа", rijkmuseum: "Черная дыра" }, t = { gallery: "Галерея", upload: "Загрузить", uploadFile: "Загрузить файл", maxFileSize: "Рекомендуются изображения шире 1600px. Максимальный размер файла: {{maxSize}}МБ.", link: "Ссылка", searchImages: "Поиск изображения", pasteLink: "Вставьте ссылку на изображение...", submitLink: "Применить", worksWithAnyImage: "Работает с любыми изображениями из Интернета", searchImage: "Поиск изображения…", searchGifs: "Поиск GIF…", noResult: "По вашему запросу изображений не найдено", change: "Изменить обложку", invalidLink: "Неверная ссылка", position: "Изменить Позицию", dragSave: "Сохранить", dragCancel: "Отменить", photoBy: "Автор", googleDrive: "Google Drive", media: "Медиа" }, n = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Подключить Google Drive", connectDescription: "Подключите Google Drive для импорта файлов", disconnect: "Отключить", openPicker: "Открыть Google Drive", importing: "Импорт файла...", importComplete: "Файл успешно импортирован", importFailed: "Не удалось импортировать файл", retry: "Попробовать снова", description: "Импортировать файл из Google Drive", goToSettings: "Подключите Google Drive в Настройках для импорта файлов", searchFiles: "Поиск в Google Drive" }, r = { label: "Изображение", change: "Изменить" }, i = { color: "Цвет", background: "Подложка", colors: { standard: "Стандартный", gray: "Серый", grey: "Серый", brown: "Коричневый", orange: "Оранжевый", yellow: "Жёлтый", green: "Зелёный", teal: "Бирюзовый", blue: "Синий", indigo: "Индиго", purple: "Фиолетовый", violet: "Фиолетовый", pink: "Розовый", red: "Красный", dark: "Чёрный" } }, s = { save: "Сохранить" }, a = "Удалить", c = "Ошибка", l = "Загрузить ещё", u = "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить", d = { dropFileHere: { image: "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить", video: "Перетащите видео или <choose>выберите файл</choose>, чтобы загрузить", audio: "Перетащите аудио файл или <choose>выберите файл</choose>, чтобы загрузить", file: "Перетащите файл или <choose>выберите файл</choose>, чтобы загрузить", avatar: "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить" }, description: { image: "Рекомендуются изображения шире 1600px. Максимальный размер файла: {{maxSize}}.", video: "Максимальный размер файла: {{maxSize}}. Поддерживаемые форматы: MP4, WebM, OGG. (Другие форматы будут сконвертированы автоматически)", audio: "Максимальный размер файла: {{maxSize}}.", file: "Максимальный размер файла: {{maxSize}}.", avatar: "Рекомендуются изображения шире 256×256 px. Максимальный размер файла: {{maxSize}}." }, pasteLink: { image: "Вставьте ссылку на изображение...", video: "Вставьте ссылку на видео...", audio: "Вставьте ссылку на аудио...", file: "Вставьте ссылку на файл...", avatar: "Вставьте ссылку на изображение..." }, errors: { typeIsNotAllowed: "Этот тип файла не поддерживается", shouldNotExceed: "Размер файла не должен превышать {{maxSize}} МБ.", doNotUploadMoreThanSingleFile: "Пожалуйста, загрузите не более одного файла." } }, m = { play: "Воспроизвести", pause: "Пауза", mute: "Без звука", unmute: "Со звуком", playbackSpeed: "Скорость воспроизведения", volume: "Громкость", waveformSeek: "Перемотка", timeDisplay: "Время", download: "Скачать", copyLink: "Скопировать ссылку", delete: "Удалить", more: "Ещё", mobileActionsTitle: "Действия" }, h = { download: "Скачать", zoomOut: "Уменьшить", zoomIn: "Приблизить", close: "Закрыть", fileError: "Загрузка не удалась. Попробуйте снова.", unsupportedTitle: "Предпросмотр недоступен", unsupportedBody: "Этот формат нельзя открыть в браузере. Скачайте файл, чтобы посмотреть его в подходящем приложении." }, p = { day_one: "{{count}} день назад", day_few: "{{count}} дня назад", day_many: "{{count}} дней назад", day_other: "{{count}} дней назад", hour_one: "{{count}} час назад", hour_few: "{{count}} часа назад", hour_many: "{{count}} часов назад", hour_other: "{{count}} часов назад", minute_one: "{{count}} минута назад", minute_few: "{{count}} минуты назад", minute_many: "{{count}} минут назад", minute_other: "{{count}} минут назад", second_one: "{{count}} секунда назад", second_few: "{{count}} секунды назад", second_many: "{{count}} секунд назад", second_other: "{{count}} секунд назад", justNow: "только что", shortDay: "{{count}}д назад.", shortHour: "{{count}}ч назад.", shortMinute: "{{count}}м назад.", shortSecond: "{{count}}с назад.", shortJustNow: "сейчас." }, g = {
|
|
2
2
|
emojiPicker: e,
|
|
3
3
|
coverGroups: o,
|
|
4
4
|
changeCover: t,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type VideoSettingsDataSource } from '../components/VideoPlayer';
|
|
2
|
+
type CreateOptions = {
|
|
3
|
+
/** API origin. Empty string keeps requests same-origin (proxied). */
|
|
4
|
+
baseUrl?: string;
|
|
5
|
+
/** Extra auth headers (e.g. Bearer) for consumers that don't rely on cookies. */
|
|
6
|
+
authHeaders?: Record<string, string>;
|
|
7
|
+
onError?: (error: unknown, source?: string) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Builds a {@link VideoSettingsDataSource} bound to the Layers video backend
|
|
11
|
+
* (`/v1/videos/{videoId}/...`). The agnostic `VideoSettingsModal` stays
|
|
12
|
+
* backend-free and receives this adapter as a prop. Shared so the gallery and
|
|
13
|
+
* the editor can drive the same modal with the same logic.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createVideoSettingsDataSource(videoId: string, options?: CreateOptions): VideoSettingsDataSource & {
|
|
16
|
+
setChaptersDisabled: (disabled: boolean) => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=createVideoSettingsDataSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createVideoSettingsDataSource.d.ts","sourceRoot":"","sources":["../../src/videoSettings/createVideoSettingsDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,uBAAuB,EAE7B,MAAM,2BAA2B,CAAC;AASnC,KAAK,aAAa,GAAG;IACnB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD,CAAC;AAuBF;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,aAAkB,GAC1B,uBAAuB,GAAG;IAC3B,mBAAmB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3D,CAyIA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { normalizeSubtitleTrack as d } from "../components/VideoPlayer/utils/subtitles.js";
|
|
2
|
+
const w = (t) => t && t.endsWith("/") ? t.slice(0, -1) : t ?? "", h = (t) => ({
|
|
3
|
+
previews: t.previews,
|
|
4
|
+
cover: t.cover,
|
|
5
|
+
chapters: t.chapters,
|
|
6
|
+
subtitles: Array.isArray(t.subtitles) ? t.subtitles.map(d) : void 0
|
|
7
|
+
});
|
|
8
|
+
async function r(t) {
|
|
9
|
+
if (!t.ok) {
|
|
10
|
+
const l = await t.json().catch(() => ({}));
|
|
11
|
+
throw { status: t.status, statusText: t.statusText, data: l };
|
|
12
|
+
}
|
|
13
|
+
const c = await t.text();
|
|
14
|
+
return c ? JSON.parse(c) : null;
|
|
15
|
+
}
|
|
16
|
+
function b(t, c = {}) {
|
|
17
|
+
const l = w(c.baseUrl), i = (a) => `${l}${a}`, n = (a) => ({
|
|
18
|
+
...c.authHeaders ?? {},
|
|
19
|
+
...a ?? {}
|
|
20
|
+
}), f = async () => await r(
|
|
21
|
+
await fetch(i(`/v1/videos/${t}/status`), {
|
|
22
|
+
method: "GET",
|
|
23
|
+
credentials: "include",
|
|
24
|
+
headers: n({ Accept: "application/json" })
|
|
25
|
+
})
|
|
26
|
+
);
|
|
27
|
+
return {
|
|
28
|
+
getSettings: async () => h(await f()),
|
|
29
|
+
uploadCover: async (a) => {
|
|
30
|
+
const e = new FormData();
|
|
31
|
+
e.append("file", a);
|
|
32
|
+
const s = await r(
|
|
33
|
+
await fetch(i(`/v1/videos/${t}/cover`), {
|
|
34
|
+
method: "POST",
|
|
35
|
+
credentials: "include",
|
|
36
|
+
headers: n(),
|
|
37
|
+
body: e
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
return h(s);
|
|
41
|
+
},
|
|
42
|
+
saveChapters: async (a) => {
|
|
43
|
+
await r(
|
|
44
|
+
await fetch(i(`/v1/videos/${t}/chapters`), {
|
|
45
|
+
method: "PUT",
|
|
46
|
+
credentials: "include",
|
|
47
|
+
headers: n({ "Content-Type": "application/json" }),
|
|
48
|
+
body: JSON.stringify({ chapters: a })
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
},
|
|
52
|
+
listSubtitles: async () => {
|
|
53
|
+
const a = await r(
|
|
54
|
+
await fetch(i(`/v1/videos/${t}/subtitles`), {
|
|
55
|
+
method: "GET",
|
|
56
|
+
credentials: "include",
|
|
57
|
+
headers: n()
|
|
58
|
+
})
|
|
59
|
+
);
|
|
60
|
+
return (Array.isArray(a) ? a : Array.isArray(a?.tracks) ? a.tracks : []).map(d).filter((s) => s.id);
|
|
61
|
+
},
|
|
62
|
+
uploadSubtitle: async (a, e) => {
|
|
63
|
+
const s = new URLSearchParams();
|
|
64
|
+
s.set("lang", e.lang), e.label && s.set("label", e.label), e.kind && s.set("kind", e.kind), e.default != null && s.set("default", e.default ? "true" : "false");
|
|
65
|
+
const o = await r(
|
|
66
|
+
await fetch(
|
|
67
|
+
i(`/v1/videos/${t}/subtitles?${s.toString()}`),
|
|
68
|
+
{
|
|
69
|
+
method: "POST",
|
|
70
|
+
credentials: "include",
|
|
71
|
+
headers: n(),
|
|
72
|
+
body: (() => {
|
|
73
|
+
const u = new FormData();
|
|
74
|
+
return u.append("file", a), u;
|
|
75
|
+
})(),
|
|
76
|
+
signal: e.signal
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
return o ? d(o) : null;
|
|
81
|
+
},
|
|
82
|
+
deleteSubtitle: async (a) => {
|
|
83
|
+
await r(
|
|
84
|
+
await fetch(i(`/v1/videos/${t}/subtitles/${a}`), {
|
|
85
|
+
method: "DELETE",
|
|
86
|
+
credentials: "include",
|
|
87
|
+
headers: n()
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
},
|
|
91
|
+
setSubtitleDisabled: async (a, e) => {
|
|
92
|
+
await r(
|
|
93
|
+
await fetch(i(`/v1/videos/${t}/subtitles/${a}/disabled`), {
|
|
94
|
+
method: "PATCH",
|
|
95
|
+
credentials: "include",
|
|
96
|
+
headers: n({ "Content-Type": "application/json" }),
|
|
97
|
+
body: JSON.stringify({ isDisabled: e })
|
|
98
|
+
})
|
|
99
|
+
);
|
|
100
|
+
},
|
|
101
|
+
uploadSubtitleSimple: async (a, e) => {
|
|
102
|
+
const s = new FormData();
|
|
103
|
+
return s.append("file", a), s.append("language", e), await r(
|
|
104
|
+
await fetch(i(`/v1/videos/${t}/subtitles`), {
|
|
105
|
+
method: "POST",
|
|
106
|
+
credentials: "include",
|
|
107
|
+
headers: n(),
|
|
108
|
+
body: s
|
|
109
|
+
})
|
|
110
|
+
), null;
|
|
111
|
+
},
|
|
112
|
+
setChaptersDisabled: async (a) => {
|
|
113
|
+
await r(
|
|
114
|
+
await fetch(i(`/v1/videos/${t}/chapters/disabled`), {
|
|
115
|
+
method: "PATCH",
|
|
116
|
+
credentials: "include",
|
|
117
|
+
headers: n({ "Content-Type": "application/json" }),
|
|
118
|
+
body: JSON.stringify({ disabled: a })
|
|
119
|
+
})
|
|
120
|
+
);
|
|
121
|
+
},
|
|
122
|
+
onError: c.onError
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
b as createVideoSettingsDataSource
|
|
127
|
+
};
|