@remotion/cli 4.0.111 → 4.0.113
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/ansi/ansi-diff.d.ts +42 -0
- package/dist/ansi/ansi-diff.js +220 -0
- package/dist/ansi/ansi-split.d.ts +2 -0
- package/dist/ansi/ansi-split.js +44 -0
- package/dist/better-opn/index.d.ts +5 -0
- package/dist/better-opn/index.js +202 -0
- package/dist/codemods/stringify-with-path.d.ts +5 -0
- package/dist/codemods/stringify-with-path.js +49 -0
- package/dist/codemods/update-default-props.d.ts +7 -0
- package/dist/codemods/update-default-props.js +133 -0
- package/dist/color-math.d.ts +2 -0
- package/dist/color-math.js +13 -0
- package/dist/config/max-timeline-tracks.d.ts +2 -0
- package/dist/config/max-timeline-tracks.js +25 -0
- package/dist/editor/components/AssetSelector.d.ts +2 -0
- package/dist/editor/components/AssetSelector.js +102 -0
- package/dist/editor/components/AssetSelectorItem.d.ts +24 -0
- package/dist/editor/components/AssetSelectorItem.js +196 -0
- package/dist/editor/components/AudioWaveform.d.ts +11 -0
- package/dist/editor/components/AudioWaveform.js +122 -0
- package/dist/editor/components/AudioWaveformBar.d.ts +6 -0
- package/dist/editor/components/AudioWaveformBar.js +24 -0
- package/dist/editor/components/Canvas.d.ts +5 -0
- package/dist/editor/components/Canvas.js +260 -0
- package/dist/editor/components/CanvasOrLoading.d.ts +5 -0
- package/dist/editor/components/CanvasOrLoading.js +96 -0
- package/dist/editor/components/CheckboardToggle.d.ts +2 -0
- package/dist/editor/components/CheckboardToggle.js +26 -0
- package/dist/editor/components/Checkbox.d.ts +7 -0
- package/dist/editor/components/Checkbox.js +42 -0
- package/dist/editor/components/CheckerboardProvider.d.ts +4 -0
- package/dist/editor/components/CheckerboardProvider.js +24 -0
- package/dist/editor/components/CompositionSelector.d.ts +6 -0
- package/dist/editor/components/CompositionSelector.js +102 -0
- package/dist/editor/components/CompositionSelectorItem.d.ts +22 -0
- package/dist/editor/components/CompositionSelectorItem.js +131 -0
- package/dist/editor/components/ContextMenu.d.ts +6 -0
- package/dist/editor/components/ContextMenu.js +91 -0
- package/dist/editor/components/ControlButton.d.ts +5 -0
- package/dist/editor/components/ControlButton.js +21 -0
- package/dist/editor/components/CopyButton.d.ts +6 -0
- package/dist/editor/components/CopyButton.js +43 -0
- package/dist/editor/components/CurrentComposition.d.ts +2 -0
- package/dist/editor/components/CurrentComposition.js +45 -0
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +67 -0
- package/dist/editor/components/Editor.d.ts +2 -0
- package/dist/editor/components/Editor.js +57 -0
- package/dist/editor/components/EditorContent.d.ts +2 -0
- package/dist/editor/components/EditorContent.js +24 -0
- package/dist/editor/components/EditorContexts.d.ts +4 -0
- package/dist/editor/components/EditorContexts.js +24 -0
- package/dist/editor/components/EditorGuides/Guide.d.ts +13 -0
- package/dist/editor/components/EditorGuides/Guide.js +91 -0
- package/dist/editor/components/EditorGuides/index.d.ts +10 -0
- package/dist/editor/components/EditorGuides/index.js +32 -0
- package/dist/editor/components/EditorRuler/Ruler.d.ts +17 -0
- package/dist/editor/components/EditorRuler/Ruler.js +107 -0
- package/dist/editor/components/EditorRuler/index.d.ts +10 -0
- package/dist/editor/components/EditorRuler/index.js +167 -0
- package/dist/editor/components/EditorRuler/use-is-ruler-visible.d.ts +1 -0
- package/dist/editor/components/EditorRuler/use-is-ruler-visible.js +12 -0
- package/dist/editor/components/ExplorerPanel.d.ts +8 -0
- package/dist/editor/components/ExplorerPanel.js +54 -0
- package/dist/editor/components/FilePreview.d.ts +9 -0
- package/dist/editor/components/FilePreview.js +40 -0
- package/dist/editor/components/FpsCounter.d.ts +4 -0
- package/dist/editor/components/FpsCounter.js +74 -0
- package/dist/editor/components/FramePersistor.d.ts +2 -0
- package/dist/editor/components/FramePersistor.js +17 -0
- package/dist/editor/components/FullscreenToggle.d.ts +2 -0
- package/dist/editor/components/FullscreenToggle.js +48 -0
- package/dist/editor/components/GlobalKeybindings.d.ts +2 -0
- package/dist/editor/components/GlobalKeybindings.js +77 -0
- package/dist/editor/components/InitialCompositionLoader.d.ts +4 -0
- package/dist/editor/components/InitialCompositionLoader.js +115 -0
- package/dist/editor/components/InlineAction.d.ts +8 -0
- package/dist/editor/components/InlineAction.js +34 -0
- package/dist/editor/components/JSONViewer.d.ts +4 -0
- package/dist/editor/components/JSONViewer.js +26 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +2 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.js +57 -0
- package/dist/editor/components/KnownBugs.d.ts +5 -0
- package/dist/editor/components/KnownBugs.js +21 -0
- package/dist/editor/components/LoopToggle.d.ts +5 -0
- package/dist/editor/components/LoopToggle.js +19 -0
- package/dist/editor/components/MediaVolumeProvider.d.ts +4 -0
- package/dist/editor/components/MediaVolumeProvider.js +25 -0
- package/dist/editor/components/Menu/MenuDivider.d.ts +2 -0
- package/dist/editor/components/Menu/MenuDivider.js +15 -0
- package/dist/editor/components/Menu/MenuItem.d.ts +22 -0
- package/dist/editor/components/Menu/MenuItem.js +96 -0
- package/dist/editor/components/Menu/MenuSubItem.d.ts +19 -0
- package/dist/editor/components/Menu/MenuSubItem.js +105 -0
- package/dist/editor/components/Menu/SubMenu.d.ts +10 -0
- package/dist/editor/components/Menu/SubMenu.js +14 -0
- package/dist/editor/components/Menu/is-menu-item.d.ts +5 -0
- package/dist/editor/components/Menu/is-menu-item.js +14 -0
- package/dist/editor/components/Menu/portals.d.ts +1 -0
- package/dist/editor/components/Menu/portals.js +15 -0
- package/dist/editor/components/Menu/styles.d.ts +11 -0
- package/dist/editor/components/Menu/styles.js +38 -0
- package/dist/editor/components/MenuBuildIndicator.d.ts +2 -0
- package/dist/editor/components/MenuBuildIndicator.js +45 -0
- package/dist/editor/components/MenuToolbar.d.ts +2 -0
- package/dist/editor/components/MenuToolbar.js +82 -0
- package/dist/editor/components/ModalContainer.d.ts +8 -0
- package/dist/editor/components/ModalContainer.js +34 -0
- package/dist/editor/components/ModalHeader.d.ts +4 -0
- package/dist/editor/components/ModalHeader.js +32 -0
- package/dist/editor/components/Modals.d.ts +2 -0
- package/dist/editor/components/Modals.js +23 -0
- package/dist/editor/components/ModalsProvider.d.ts +4 -0
- package/dist/editor/components/ModalsProvider.js +17 -0
- package/dist/editor/components/MuteToggle.d.ts +5 -0
- package/dist/editor/components/MuteToggle.js +19 -0
- package/dist/editor/components/NewComposition/CancelButton.d.ts +5 -0
- package/dist/editor/components/NewComposition/CancelButton.js +20 -0
- package/dist/editor/components/NewComposition/ComboBox.d.ts +29 -0
- package/dist/editor/components/NewComposition/ComboBox.js +159 -0
- package/dist/editor/components/NewComposition/CopyHint.d.ts +2 -0
- package/dist/editor/components/NewComposition/CopyHint.js +30 -0
- package/dist/editor/components/NewComposition/InputDragger.d.ts +12 -0
- package/dist/editor/components/NewComposition/InputDragger.js +122 -0
- package/dist/editor/components/NewComposition/MenuContent.d.ts +12 -0
- package/dist/editor/components/NewComposition/MenuContent.js +245 -0
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +7 -0
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +20 -0
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +9 -0
- package/dist/editor/components/NewComposition/NewCompCode.js +67 -0
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts +6 -0
- package/dist/editor/components/NewComposition/NewCompDuration.js +23 -0
- package/dist/editor/components/NewComposition/NewComposition.d.ts +6 -0
- package/dist/editor/components/NewComposition/NewComposition.js +204 -0
- package/dist/editor/components/NewComposition/RemInput.d.ts +17 -0
- package/dist/editor/components/NewComposition/RemInput.js +74 -0
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +8 -0
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +53 -0
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +7 -0
- package/dist/editor/components/NewComposition/RemTextarea.js +92 -0
- package/dist/editor/components/NewComposition/ToggleAspectRatio.d.ts +5 -0
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +26 -0
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +8 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +34 -0
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +4 -0
- package/dist/editor/components/NewComposition/new-comp-layout.js +20 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +1 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.js +23 -0
- package/dist/editor/components/NoRegisterRoot.d.ts +2 -0
- package/dist/editor/components/NoRegisterRoot.js +41 -0
- package/dist/editor/components/Notifications/ColorDot.d.ts +4 -0
- package/dist/editor/components/Notifications/ColorDot.js +22 -0
- package/dist/editor/components/Notifications/Notification.d.ts +8 -0
- package/dist/editor/components/Notifications/Notification.js +31 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +14 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +50 -0
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +2 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +53 -0
- package/dist/editor/components/OpenEditorButton.d.ts +2 -0
- package/dist/editor/components/OpenEditorButton.js +55 -0
- package/dist/editor/components/OptionsPanel.d.ts +8 -0
- package/dist/editor/components/OptionsPanel.js +112 -0
- package/dist/editor/components/PlayPause.d.ts +5 -0
- package/dist/editor/components/PlayPause.js +209 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +4 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +80 -0
- package/dist/editor/components/PlaybackRatePersistor.d.ts +2 -0
- package/dist/editor/components/PlaybackRatePersistor.js +17 -0
- package/dist/editor/components/PlaybackRateSelector.d.ts +5 -0
- package/dist/editor/components/PlaybackRateSelector.js +59 -0
- package/dist/editor/components/PlayerEmitterContext.d.ts +4 -0
- package/dist/editor/components/PlayerEmitterContext.js +11 -0
- package/dist/editor/components/Preview.d.ts +13 -0
- package/dist/editor/components/Preview.js +158 -0
- package/dist/editor/components/PreviewToolbar.d.ts +2 -0
- package/dist/editor/components/PreviewToolbar.js +55 -0
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/AlgoliaCredit.js +11 -0
- package/dist/editor/components/QuickSwitcher/NoResults.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/NoResults.js +20 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.d.ts +7 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcher.js +16 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.d.ts +6 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +303 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +21 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +112 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +62 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.d.ts +2 -0
- package/dist/editor/components/QuickSwitcher/fuzzy-search.js +26 -0
- package/dist/editor/components/RenderButton.d.ts +2 -0
- package/dist/editor/components/RenderButton.js +94 -0
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/CliCopyButton.js +60 -0
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +15 -0
- package/dist/editor/components/RenderModal/CrfSetting.js +42 -0
- package/dist/editor/components/RenderModal/DataEditor.d.ts +22 -0
- package/dist/editor/components/RenderModal/DataEditor.js +301 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +17 -0
- package/dist/editor/components/RenderModal/EnvInput.d.ts +11 -0
- package/dist/editor/components/RenderModal/EnvInput.js +74 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +26 -0
- package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +5 -0
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +78 -0
- package/dist/editor/components/RenderModal/InfoBubble.d.ts +5 -0
- package/dist/editor/components/RenderModal/InfoBubble.js +116 -0
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +6 -0
- package/dist/editor/components/RenderModal/InfoTooltip.js +41 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +5 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +17 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +17 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +12 -0
- package/dist/editor/components/RenderModal/MultiRangeSlider.d.ts +12 -0
- package/dist/editor/components/RenderModal/MultiRangeSlider.js +47 -0
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/MutedSetting.js +17 -0
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +26 -0
- package/dist/editor/components/RenderModal/NumberSetting.d.ts +12 -0
- package/dist/editor/components/RenderModal/NumberSetting.js +29 -0
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +5 -0
- package/dist/editor/components/RenderModal/OptionExplainer.js +56 -0
- package/dist/editor/components/RenderModal/RenderModal.d.ts +39 -0
- package/dist/editor/components/RenderModal/RenderModal.js +790 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +34 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +109 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +17 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.js +46 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +23 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.js +80 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +5 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +55 -0
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +9 -0
- package/dist/editor/components/RenderModal/RenderModalGif.js +19 -0
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +2 -0
- package/dist/editor/components/RenderModal/RenderModalHr.js +18 -0
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +12 -0
- package/dist/editor/components/RenderModal/RenderModalInput.js +13 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.js +143 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +30 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.js +73 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +4 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.js +70 -0
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/ScaleSetting.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/Fieldset.js +26 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +69 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +60 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +32 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +18 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +11 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +83 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +71 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +62 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDiscriminatedUnionEditor.js +83 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +31 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +55 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +6 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +48 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.d.ts +7 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodFieldValidation.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +9 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +69 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +22 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +88 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +19 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +50 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +56 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +34 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +101 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodTextareaEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodTextareaEditor.js +42 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +49 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +163 -0
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +30 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +3 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.js +126 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +21 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +85 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +2 -0
- package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +6 -0
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +49 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +19 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +60 -0
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +2 -0
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +18 -0
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +2 -0
- package/dist/editor/components/RenderModal/human-readable-codec.js +36 -0
- package/dist/editor/components/RenderModal/layout.d.ts +6 -0
- package/dist/editor/components/RenderModal/layout.js +42 -0
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +14 -0
- package/dist/editor/components/RenderModal/out-name-checker.js +75 -0
- package/dist/editor/components/RenderPreview.d.ts +6 -0
- package/dist/editor/components/RenderPreview.js +31 -0
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +5 -0
- package/dist/editor/components/RenderQueue/CircularProgress.js +18 -0
- package/dist/editor/components/RenderQueue/RenderQueueCopyToClipboard.d.ts +6 -0
- package/dist/editor/components/RenderQueue/RenderQueueCopyToClipboard.js +52 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +6 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +94 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +27 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +74 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +28 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +18 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +37 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +27 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +2 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.js +14 -0
- package/dist/editor/components/RenderQueue/actions.d.ts +87 -0
- package/dist/editor/components/RenderQueue/actions.js +176 -0
- package/dist/editor/components/RenderQueue/context.d.ts +18 -0
- package/dist/editor/components/RenderQueue/context.js +49 -0
- package/dist/editor/components/RenderQueue/index.d.ts +2 -0
- package/dist/editor/components/RenderQueue/index.js +103 -0
- package/dist/editor/components/RenderQueue/item-style.d.ts +2 -0
- package/dist/editor/components/RenderQueue/item-style.js +21 -0
- package/dist/editor/components/RendersTab.d.ts +6 -0
- package/dist/editor/components/RendersTab.js +51 -0
- package/dist/editor/components/ResetZoomButton.d.ts +4 -0
- package/dist/editor/components/ResetZoomButton.js +9 -0
- package/dist/editor/components/SegmentedControl.d.ts +11 -0
- package/dist/editor/components/SegmentedControl.js +65 -0
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +4 -0
- package/dist/editor/components/SetTimelineInOutProvider.js +20 -0
- package/dist/editor/components/ShowGuidesProvider.d.ts +4 -0
- package/dist/editor/components/ShowGuidesProvider.js +43 -0
- package/dist/editor/components/ShowRulersProvider.d.ts +4 -0
- package/dist/editor/components/ShowRulersProvider.js +24 -0
- package/dist/editor/components/SidebarCollapserControls.d.ts +2 -0
- package/dist/editor/components/SidebarCollapserControls.js +138 -0
- package/dist/editor/components/SidebarRenderButton.d.ts +6 -0
- package/dist/editor/components/SidebarRenderButton.js +74 -0
- package/dist/editor/components/SizeSelector.d.ts +5 -0
- package/dist/editor/components/SizeSelector.js +120 -0
- package/dist/editor/components/Spinner.d.ts +5 -0
- package/dist/editor/components/Spinner.js +41 -0
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +10 -0
- package/dist/editor/components/Splitter/SplitterContainer.js +68 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +22 -0
- package/dist/editor/components/Splitter/SplitterContext.js +19 -0
- package/dist/editor/components/Splitter/SplitterElement.d.ts +5 -0
- package/dist/editor/components/Splitter/SplitterElement.js +22 -0
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +5 -0
- package/dist/editor/components/Splitter/SplitterHandle.js +128 -0
- package/dist/editor/components/StaticFilePreview.d.ts +6 -0
- package/dist/editor/components/StaticFilePreview.js +39 -0
- package/dist/editor/components/Tabs/index.d.ts +11 -0
- package/dist/editor/components/Tabs/index.js +56 -0
- package/dist/editor/components/Tabs/vertical.d.ts +7 -0
- package/dist/editor/components/Tabs/vertical.js +43 -0
- package/dist/editor/components/TextViewer.d.ts +4 -0
- package/dist/editor/components/TextViewer.js +26 -0
- package/dist/editor/components/TimeValue.d.ts +2 -0
- package/dist/editor/components/TimeValue.js +41 -0
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts +2 -0
- package/dist/editor/components/Timeline/LoopedIndicator.js +44 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +4 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +22 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +5 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +24 -0
- package/dist/editor/components/Timeline/Timeline.d.ts +2 -0
- package/dist/editor/components/Timeline/Timeline.js +92 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +18 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.js +445 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +4 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +37 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +10 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +43 -0
- package/dist/editor/components/Timeline/TimelineList.d.ts +8 -0
- package/dist/editor/components/Timeline/TimelineList.js +21 -0
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +13 -0
- package/dist/editor/components/Timeline/TimelineListItem.js +104 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +77 -0
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +4 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +26 -0
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineSequence.js +64 -0
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +32 -0
- package/dist/editor/components/Timeline/TimelineSlider.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +79 -0
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +14 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +166 -0
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +8 -0
- package/dist/editor/components/Timeline/TimelineTracks.js +37 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +4 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +51 -0
- package/dist/editor/components/Timeline/TimelineWidthProvider.d.ts +7 -0
- package/dist/editor/components/Timeline/TimelineWidthProvider.js +17 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +46 -0
- package/dist/editor/components/Timeline/imperative-state.d.ts +8 -0
- package/dist/editor/components/Timeline/imperative-state.js +39 -0
- package/dist/editor/components/Timeline/is-collapsed.d.ts +4 -0
- package/dist/editor/components/Timeline/is-collapsed.js +26 -0
- package/dist/editor/components/Timeline/timeline-refs.d.ts +4 -0
- package/dist/editor/components/Timeline/timeline-refs.js +10 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +43 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +217 -0
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +19 -0
- package/dist/editor/components/Timeline/timeline-state-reducer.js +47 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +9 -0
- package/dist/editor/components/TimelineInOutToggle.js +240 -0
- package/dist/editor/components/TopPanel.d.ts +3 -0
- package/dist/editor/components/TopPanel.js +72 -0
- package/dist/editor/components/UpdateCheck.d.ts +15 -0
- package/dist/editor/components/UpdateCheck.js +95 -0
- package/dist/editor/components/UpdateModal/OpenIssueButton.d.ts +4 -0
- package/dist/editor/components/UpdateModal/OpenIssueButton.js +37 -0
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +6 -0
- package/dist/editor/components/UpdateModal/UpdateModal.js +63 -0
- package/dist/editor/components/ZoomGesturesProvider.d.ts +4 -0
- package/dist/editor/components/ZoomGesturesProvider.js +24 -0
- package/dist/editor/components/ZoomPersistor.d.ts +5 -0
- package/dist/editor/components/ZoomPersistor.js +64 -0
- package/dist/editor/components/get-zod-if-possible.d.ts +10 -0
- package/dist/editor/components/get-zod-if-possible.js +79 -0
- package/dist/editor/components/layout.d.ts +26 -0
- package/dist/editor/components/layout.js +48 -0
- package/dist/editor/helpers/calculate-timeline.d.ts +6 -0
- package/dist/editor/helpers/calculate-timeline.js +84 -0
- package/dist/editor/helpers/checkerboard-background.d.ts +4 -0
- package/dist/editor/helpers/checkerboard-background.js +30 -0
- package/dist/editor/helpers/client-id.d.ts +17 -0
- package/dist/editor/helpers/client-id.js +46 -0
- package/dist/editor/helpers/colors.d.ts +24 -0
- package/dist/editor/helpers/colors.js +37 -0
- package/dist/editor/helpers/convert-env-variables.d.ts +8 -0
- package/dist/editor/helpers/convert-env-variables.js +20 -0
- package/dist/editor/helpers/copy-text.d.ts +1 -0
- package/dist/editor/helpers/copy-text.js +23 -0
- package/dist/editor/helpers/create-folder-tree.d.ts +17 -0
- package/dist/editor/helpers/create-folder-tree.js +134 -0
- package/dist/editor/helpers/document-title.d.ts +4 -0
- package/dist/editor/helpers/document-title.js +67 -0
- package/dist/editor/helpers/editor-ruler.d.ts +53 -0
- package/dist/editor/helpers/editor-ruler.js +183 -0
- package/dist/editor/helpers/get-asset-metadata.d.ts +11 -0
- package/dist/editor/helpers/get-asset-metadata.js +64 -0
- package/dist/editor/helpers/get-effective-translation.d.ts +26 -0
- package/dist/editor/helpers/get-effective-translation.js +45 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +1 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.js +9 -0
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +4 -0
- package/dist/editor/helpers/get-sequence-visible-range.js +39 -0
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +2 -0
- package/dist/editor/helpers/get-timeline-nestedness.js +14 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +6 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.js +33 -0
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +13 -0
- package/dist/editor/helpers/get-timeline-sequence-layout.js +45 -0
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +18 -0
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js +24 -0
- package/dist/editor/helpers/is-composition-still.d.ts +3 -0
- package/dist/editor/helpers/is-composition-still.js +10 -0
- package/dist/editor/helpers/is-current-selected-still.d.ts +6 -0
- package/dist/editor/helpers/is-current-selected-still.js +26 -0
- package/dist/editor/helpers/noop.d.ts +1 -0
- package/dist/editor/helpers/noop.js +5 -0
- package/dist/editor/helpers/open-in-editor.d.ts +2 -0
- package/dist/editor/helpers/open-in-editor.js +22 -0
- package/dist/editor/helpers/persist-open-folders.d.ts +6 -0
- package/dist/editor/helpers/persist-open-folders.js +22 -0
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +41 -0
- package/dist/editor/helpers/presets-labels.d.ts +2 -0
- package/dist/editor/helpers/presets-labels.js +37 -0
- package/dist/editor/helpers/prores-labels.d.ts +2 -0
- package/dist/editor/helpers/prores-labels.js +25 -0
- package/dist/editor/helpers/render-modal-sections.d.ts +9 -0
- package/dist/editor/helpers/render-modal-sections.js +35 -0
- package/dist/editor/helpers/timeline-layout.d.ts +3 -0
- package/dist/editor/helpers/timeline-layout.js +6 -0
- package/dist/editor/helpers/use-breakpoint.d.ts +1 -0
- package/dist/editor/helpers/use-breakpoint.js +17 -0
- package/dist/editor/helpers/use-file-existence.d.ts +1 -0
- package/dist/editor/helpers/use-file-existence.js +66 -0
- package/dist/editor/helpers/use-keybinding.d.ts +16 -0
- package/dist/editor/helpers/use-keybinding.js +70 -0
- package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
- package/dist/editor/helpers/use-menu-structure.js +770 -0
- package/dist/editor/helpers/use-studio-canvas-dimensions.d.ts +16 -0
- package/dist/editor/helpers/use-studio-canvas-dimensions.js +59 -0
- package/dist/editor/helpers/validate-new-comp-data.d.ts +4 -0
- package/dist/editor/helpers/validate-new-comp-data.js +40 -0
- package/dist/editor/icons/Checkmark.d.ts +1 -0
- package/dist/editor/icons/Checkmark.js +10 -0
- package/dist/editor/icons/audio.d.ts +2 -0
- package/dist/editor/icons/audio.js +6 -0
- package/dist/editor/icons/caret.d.ts +6 -0
- package/dist/editor/icons/caret.js +32 -0
- package/dist/editor/icons/clipboard.d.ts +4 -0
- package/dist/editor/icons/clipboard.js +6 -0
- package/dist/editor/icons/data.d.ts +2 -0
- package/dist/editor/icons/data.js +8 -0
- package/dist/editor/icons/file.d.ts +4 -0
- package/dist/editor/icons/file.js +6 -0
- package/dist/editor/icons/folder.d.ts +11 -0
- package/dist/editor/icons/folder.js +16 -0
- package/dist/editor/icons/frame.d.ts +2 -0
- package/dist/editor/icons/frame.js +6 -0
- package/dist/editor/icons/gear.d.ts +2 -0
- package/dist/editor/icons/gear.js +6 -0
- package/dist/editor/icons/gif.d.ts +2 -0
- package/dist/editor/icons/gif.js +6 -0
- package/dist/editor/icons/jump-to-start.d.ts +2 -0
- package/dist/editor/icons/jump-to-start.js +8 -0
- package/dist/editor/icons/keys.d.ts +4 -0
- package/dist/editor/icons/keys.js +20 -0
- package/dist/editor/icons/lock.d.ts +4 -0
- package/dist/editor/icons/lock.js +12 -0
- package/dist/editor/icons/media-volume.d.ts +3 -0
- package/dist/editor/icons/media-volume.js +14 -0
- package/dist/editor/icons/minus.d.ts +3 -0
- package/dist/editor/icons/minus.js +8 -0
- package/dist/editor/icons/pause.d.ts +3 -0
- package/dist/editor/icons/pause.js +6 -0
- package/dist/editor/icons/play.d.ts +3 -0
- package/dist/editor/icons/play.js +6 -0
- package/dist/editor/icons/plus.d.ts +5 -0
- package/dist/editor/icons/plus.js +8 -0
- package/dist/editor/icons/render.d.ts +9 -0
- package/dist/editor/icons/render.js +12 -0
- package/dist/editor/icons/step-back.d.ts +3 -0
- package/dist/editor/icons/step-back.js +8 -0
- package/dist/editor/icons/step-forward.d.ts +3 -0
- package/dist/editor/icons/step-forward.js +8 -0
- package/dist/editor/icons/still.d.ts +5 -0
- package/dist/editor/icons/still.js +8 -0
- package/dist/editor/icons/timelineInOutPointer.d.ts +4 -0
- package/dist/editor/icons/timelineInOutPointer.js +12 -0
- package/dist/editor/icons/video.d.ts +5 -0
- package/dist/editor/icons/video.js +8 -0
- package/dist/editor/state/aspect-ratio-locked.d.ts +2 -0
- package/dist/editor/state/aspect-ratio-locked.js +16 -0
- package/dist/editor/state/canvas-ref.d.ts +2 -0
- package/dist/editor/state/canvas-ref.js +5 -0
- package/dist/editor/state/checkerboard.d.ts +9 -0
- package/dist/editor/state/checkerboard.js +17 -0
- package/dist/editor/state/editor-guides.d.ts +25 -0
- package/dist/editor/state/editor-guides.js +34 -0
- package/dist/editor/state/editor-rulers.d.ts +14 -0
- package/dist/editor/state/editor-rulers.js +24 -0
- package/dist/editor/state/editor-zoom-gestures.d.ts +9 -0
- package/dist/editor/state/editor-zoom-gestures.js +17 -0
- package/dist/editor/state/folders.d.ts +13 -0
- package/dist/editor/state/folders.js +30 -0
- package/dist/editor/state/highest-z-index.d.ts +11 -0
- package/dist/editor/state/highest-z-index.js +35 -0
- package/dist/editor/state/in-out.d.ts +13 -0
- package/dist/editor/state/in-out.js +40 -0
- package/dist/editor/state/input-dragger-click-lock.d.ts +2 -0
- package/dist/editor/state/input-dragger-click-lock.js +10 -0
- package/dist/editor/state/keybindings.d.ts +20 -0
- package/dist/editor/state/keybindings.js +43 -0
- package/dist/editor/state/loop.d.ts +2 -0
- package/dist/editor/state/loop.js +13 -0
- package/dist/editor/state/marks.d.ts +3 -0
- package/dist/editor/state/marks.js +16 -0
- package/dist/editor/state/modals.d.ts +61 -0
- package/dist/editor/state/modals.js +8 -0
- package/dist/editor/state/mute.d.ts +2 -0
- package/dist/editor/state/mute.js +13 -0
- package/dist/editor/state/playbackrate.d.ts +2 -0
- package/dist/editor/state/playbackrate.js +19 -0
- package/dist/editor/state/preview-size.d.ts +12 -0
- package/dist/editor/state/preview-size.js +63 -0
- package/dist/editor/state/render-frame.d.ts +1 -0
- package/dist/editor/state/render-frame.js +20 -0
- package/dist/editor/state/sidebar.d.ts +16 -0
- package/dist/editor/state/sidebar.js +69 -0
- package/dist/editor/state/timeline-ref.d.ts +7 -0
- package/dist/editor/state/timeline-ref.js +5 -0
- package/dist/editor/state/timeline-zoom.d.ts +10 -0
- package/dist/editor/state/timeline-zoom.js +38 -0
- package/dist/editor/state/timeline.d.ts +1 -0
- package/dist/editor/state/timeline.js +18 -0
- package/dist/editor/state/z-index.d.ts +12 -0
- package/dist/editor/state/z-index.js +96 -0
- package/dist/event-source-events.d.ts +31 -0
- package/dist/event-source-events.js +2 -0
- package/dist/event-source.d.ts +3 -0
- package/dist/event-source.js +67 -0
- package/dist/file-watcher.d.ts +9 -0
- package/dist/file-watcher.js +35 -0
- package/dist/format-bytes.d.ts +6 -0
- package/dist/format-bytes.js +103 -0
- package/dist/get-default-out-name.d.ts +5 -0
- package/dist/get-default-out-name.js +10 -0
- package/dist/get-latest-remotion-version.d.ts +1 -0
- package/dist/get-latest-remotion-version.js +31 -0
- package/dist/get-network-address.d.ts +1 -0
- package/dist/get-network-address.js +16 -0
- package/dist/index.d.ts +2 -2
- package/dist/preview-server/api-routes.d.ts +4 -0
- package/dist/preview-server/api-routes.js +25 -0
- package/dist/preview-server/api-types.d.ts +29 -0
- package/dist/preview-server/api-types.js +2 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +8 -0
- package/dist/preview-server/dev-middleware/compatible-api.js +20 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +7 -0
- package/dist/preview-server/dev-middleware/get-paths.js +19 -0
- package/dist/preview-server/dev-middleware/index.d.ts +3 -0
- package/dist/preview-server/dev-middleware/index.js +27 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +9 -0
- package/dist/preview-server/dev-middleware/middleware.js +222 -0
- package/dist/preview-server/dev-middleware/range-parser.d.ts +15 -0
- package/dist/preview-server/dev-middleware/range-parser.js +96 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +3 -0
- package/dist/preview-server/dev-middleware/ready.js +11 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-hooks.js +53 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +2 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +13 -0
- package/dist/preview-server/dev-middleware/types.d.ts +10 -0
- package/dist/preview-server/dev-middleware/types.js +2 -0
- package/dist/preview-server/env-supports-fs-recursive.d.ts +1 -0
- package/dist/preview-server/env-supports-fs-recursive.js +18 -0
- package/dist/preview-server/error-overlay/entry-basic.d.ts +1 -0
- package/dist/preview-server/error-overlay/entry-basic.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +11 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +46 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +24 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +64 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +3 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +43 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +45 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +4 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +41 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +21 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +8 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +88 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +22 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +14 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +24 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +7 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +51 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +25 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +16 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +493 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +117 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +40 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +31 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +2 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +64 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +35 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +11 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +35 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +18 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +48 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +23 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +10 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +52 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +9 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +61 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +69 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +7 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +38 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +39 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +105 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +14 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.js +9 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +34 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +31 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +50 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +8 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +12 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +10 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +5 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +49 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +18 -0
- package/dist/preview-server/file-existence-watchers.d.ts +13 -0
- package/dist/preview-server/file-existence-watchers.js +62 -0
- package/dist/preview-server/get-absolute-public-dir.d.ts +4 -0
- package/dist/preview-server/get-absolute-public-dir.js +14 -0
- package/dist/preview-server/get-package-manager.d.ts +10 -0
- package/dist/preview-server/get-package-manager.js +62 -0
- package/dist/preview-server/handler.d.ts +11 -0
- package/dist/preview-server/handler.js +35 -0
- package/dist/preview-server/hot-middleware/client.d.ts +21 -0
- package/dist/preview-server/hot-middleware/client.js +179 -0
- package/dist/preview-server/hot-middleware/index.d.ts +102 -0
- package/dist/preview-server/hot-middleware/index.js +149 -0
- package/dist/preview-server/hot-middleware/process-update.d.ts +7 -0
- package/dist/preview-server/hot-middleware/process-update.js +162 -0
- package/dist/preview-server/hot-middleware/types.d.ts +27 -0
- package/dist/preview-server/hot-middleware/types.js +10 -0
- package/dist/preview-server/live-events.d.ts +10 -0
- package/dist/preview-server/live-events.js +76 -0
- package/dist/preview-server/parse-body.d.ts +2 -0
- package/dist/preview-server/parse-body.js +16 -0
- package/dist/preview-server/project-info.d.ts +5 -0
- package/dist/preview-server/project-info.js +32 -0
- package/dist/preview-server/public-folder.d.ts +12 -0
- package/dist/preview-server/public-folder.js +58 -0
- package/dist/preview-server/render-queue/copy-still-to-clipboard.d.ts +1 -0
- package/dist/preview-server/render-queue/copy-still-to-clipboard.js +8 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +14 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.js +29 -0
- package/dist/preview-server/render-queue/job.d.ts +187 -0
- package/dist/preview-server/render-queue/job.js +2 -0
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +3 -0
- package/dist/preview-server/render-queue/make-retry-payload.js +127 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +1 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.js +49 -0
- package/dist/preview-server/render-queue/process-still.d.ts +8 -0
- package/dist/preview-server/render-queue/process-still.js +49 -0
- package/dist/preview-server/render-queue/process-video.d.ts +10 -0
- package/dist/preview-server/render-queue/process-video.js +68 -0
- package/dist/preview-server/render-queue/queue.d.ts +11 -0
- package/dist/preview-server/render-queue/queue.js +221 -0
- package/dist/preview-server/routes/add-render.d.ts +3 -0
- package/dist/preview-server/routes/add-render.js +115 -0
- package/dist/preview-server/routes/can-update-default-props.d.ts +4 -0
- package/dist/preview-server/routes/can-update-default-props.js +40 -0
- package/dist/preview-server/routes/cancel-render.d.ts +3 -0
- package/dist/preview-server/routes/cancel-render.js +9 -0
- package/dist/preview-server/routes/copy-still-to-clipboard-handler.d.ts +3 -0
- package/dist/preview-server/routes/copy-still-to-clipboard-handler.js +17 -0
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +3 -0
- package/dist/preview-server/routes/open-in-file-explorer.js +8 -0
- package/dist/preview-server/routes/remove-render.d.ts +3 -0
- package/dist/preview-server/routes/remove-render.js +9 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/subscribe-to-file-existence.js +13 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +3 -0
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +13 -0
- package/dist/preview-server/routes/update-available.d.ts +3 -0
- package/dist/preview-server/routes/update-available.js +9 -0
- package/dist/preview-server/routes/update-default-props.d.ts +3 -0
- package/dist/preview-server/routes/update-default-props.js +34 -0
- package/dist/preview-server/routes.d.ts +18 -0
- package/dist/preview-server/routes.js +272 -0
- package/dist/preview-server/serve-static.d.ts +14 -0
- package/dist/preview-server/serve-static.js +75 -0
- package/dist/preview-server/start-server.d.ts +25 -0
- package/dist/preview-server/start-server.js +125 -0
- package/dist/preview-server/update-available.d.ts +3 -0
- package/dist/preview-server/update-available.js +47 -0
- package/dist/previewEntry.d.ts +1 -0
- package/dist/previewEntry.js +26 -0
- package/dist/required-chromium-options.d.ts +3 -0
- package/dist/required-chromium-options.js +2 -0
- package/dist/server-ready-comment.d.ts +2 -0
- package/dist/server-ready-comment.js +13 -0
- package/dist/smooth-zoom.d.ts +4 -0
- package/dist/smooth-zoom.js +20 -0
- package/dist/step.d.ts +1 -0
- package/dist/step.js +2 -0
- package/dist/watch-root-file.d.ts +1 -0
- package/dist/watch-root-file.js +22 -0
- package/package.json +10 -10
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineListItem = exports.TOTAL_TIMELINE_LAYER_LEFT_PADDING = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../../helpers/colors");
|
|
7
|
+
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
8
|
+
const z_index_1 = require("../../state/z-index");
|
|
9
|
+
const layout_1 = require("../layout");
|
|
10
|
+
const TimelineCollapseToggle_1 = require("./TimelineCollapseToggle");
|
|
11
|
+
const TimelineSequenceFrame_1 = require("./TimelineSequenceFrame");
|
|
12
|
+
const HOOK_WIDTH = 7;
|
|
13
|
+
const BORDER_BOTTOM_LEFT_RADIUS = 2;
|
|
14
|
+
const SPACING = 5;
|
|
15
|
+
const TIMELINE_LAYER_PADDING = HOOK_WIDTH + SPACING * 1.5;
|
|
16
|
+
const TIMELINE_COLLAPSER_WIDTH = 8;
|
|
17
|
+
const TIMELINE_COLLAPSER_MARGIN_RIGHT = 10;
|
|
18
|
+
exports.TOTAL_TIMELINE_LAYER_LEFT_PADDING = TIMELINE_COLLAPSER_WIDTH + TIMELINE_COLLAPSER_MARGIN_RIGHT + timeline_layout_1.TIMELINE_PADDING;
|
|
19
|
+
const textStyle = {
|
|
20
|
+
fontSize: 13,
|
|
21
|
+
whiteSpace: 'nowrap',
|
|
22
|
+
textOverflow: 'ellipsis',
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
};
|
|
25
|
+
const outer = {
|
|
26
|
+
height: timeline_layout_1.TIMELINE_LAYER_HEIGHT + timeline_layout_1.TIMELINE_BORDER * 2,
|
|
27
|
+
color: 'white',
|
|
28
|
+
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
29
|
+
display: 'flex',
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
paddingLeft: timeline_layout_1.TIMELINE_PADDING,
|
|
33
|
+
wordBreak: 'break-all',
|
|
34
|
+
textAlign: 'left',
|
|
35
|
+
};
|
|
36
|
+
const hookContainer = {
|
|
37
|
+
height: timeline_layout_1.TIMELINE_LAYER_HEIGHT,
|
|
38
|
+
width: HOOK_WIDTH,
|
|
39
|
+
position: 'relative',
|
|
40
|
+
};
|
|
41
|
+
const hook = {
|
|
42
|
+
borderLeft: '1px solid #555',
|
|
43
|
+
borderBottom: '1px solid #555',
|
|
44
|
+
borderBottomLeftRadius: BORDER_BOTTOM_LEFT_RADIUS,
|
|
45
|
+
width: HOOK_WIDTH,
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
bottom: timeline_layout_1.TIMELINE_LAYER_HEIGHT / 2 - 1,
|
|
48
|
+
};
|
|
49
|
+
const space = {
|
|
50
|
+
width: SPACING,
|
|
51
|
+
flexShrink: 0,
|
|
52
|
+
};
|
|
53
|
+
const smallSpace = {
|
|
54
|
+
width: SPACING * 0.5,
|
|
55
|
+
flexShrink: 0,
|
|
56
|
+
};
|
|
57
|
+
const collapser = {
|
|
58
|
+
width: TIMELINE_COLLAPSER_WIDTH,
|
|
59
|
+
userSelect: 'none',
|
|
60
|
+
marginRight: TIMELINE_COLLAPSER_MARGIN_RIGHT,
|
|
61
|
+
flexShrink: 0,
|
|
62
|
+
};
|
|
63
|
+
const collapserButton = {
|
|
64
|
+
...collapser,
|
|
65
|
+
border: 'none',
|
|
66
|
+
background: 'none',
|
|
67
|
+
};
|
|
68
|
+
const TimelineListItem = ({ nestedDepth, sequence, collapsed, beforeDepth, dispatchStateChange, hash, canCollapse, }) => {
|
|
69
|
+
const { tabIndex } = (0, z_index_1.useZIndex)();
|
|
70
|
+
const leftOffset = TIMELINE_LAYER_PADDING;
|
|
71
|
+
const hookStyle = (0, react_1.useMemo)(() => {
|
|
72
|
+
return {
|
|
73
|
+
...hook,
|
|
74
|
+
height: timeline_layout_1.TIMELINE_LAYER_HEIGHT +
|
|
75
|
+
BORDER_BOTTOM_LEFT_RADIUS / 2 -
|
|
76
|
+
(beforeDepth === nestedDepth ? 2 : 12),
|
|
77
|
+
};
|
|
78
|
+
}, [beforeDepth, nestedDepth]);
|
|
79
|
+
const padder = (0, react_1.useMemo)(() => {
|
|
80
|
+
return {
|
|
81
|
+
width: leftOffset * nestedDepth,
|
|
82
|
+
flexShrink: 0,
|
|
83
|
+
};
|
|
84
|
+
}, [leftOffset, nestedDepth]);
|
|
85
|
+
const toggleCollapse = (0, react_1.useCallback)(() => {
|
|
86
|
+
if (collapsed) {
|
|
87
|
+
dispatchStateChange({
|
|
88
|
+
type: 'expand',
|
|
89
|
+
hash,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
dispatchStateChange({
|
|
94
|
+
type: 'collapse',
|
|
95
|
+
hash,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}, [collapsed, dispatchStateChange, hash]);
|
|
99
|
+
const text = sequence.displayName.length > 80
|
|
100
|
+
? sequence.displayName.slice(0, 80) + '...'
|
|
101
|
+
: sequence.displayName;
|
|
102
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: outer, children: [(0, jsx_runtime_1.jsx)("div", { style: padder }), canCollapse ? ((0, jsx_runtime_1.jsx)("button", { tabIndex: tabIndex, type: "button", style: collapserButton, onClick: toggleCollapse, children: (0, jsx_runtime_1.jsx)(TimelineCollapseToggle_1.TimelineCollapseToggle, { color: colors_1.LIGHT_COLOR, collapsed: collapsed }) })) : ((0, jsx_runtime_1.jsx)("div", { style: collapser })), sequence.parent && nestedDepth > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: smallSpace }), (0, jsx_runtime_1.jsx)("div", { style: hookContainer, children: (0, jsx_runtime_1.jsx)("div", { style: hookStyle }) }), (0, jsx_runtime_1.jsx)("div", { style: space })] })) : null, (0, jsx_runtime_1.jsxs)("div", { title: text || 'Untitled', style: textStyle, children: [text || 'Untitled', (0, jsx_runtime_1.jsx)(TimelineSequenceFrame_1.TimelineSequenceFrame, { duration: sequence.duration, from: sequence.from })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 })] }));
|
|
103
|
+
};
|
|
104
|
+
exports.TimelineListItem = TimelineListItem;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelinePlayCursorSyncer = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const remotion_1 = require("remotion");
|
|
6
|
+
const timeline_zoom_1 = require("../../state/timeline-zoom");
|
|
7
|
+
const imperative_state_1 = require("./imperative-state");
|
|
8
|
+
const timeline_refs_1 = require("./timeline-refs");
|
|
9
|
+
const timeline_scroll_logic_1 = require("./timeline-scroll-logic");
|
|
10
|
+
let lastTimelinePositionWhileScrolling = null;
|
|
11
|
+
const TimelinePlayCursorSyncer = () => {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const video = remotion_1.Internals.useVideo();
|
|
14
|
+
const timelineContext = (0, react_1.useContext)(remotion_1.Internals.Timeline.TimelineContext);
|
|
15
|
+
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
16
|
+
const { zoom } = (0, react_1.useContext)(timeline_zoom_1.TimelineZoomCtx);
|
|
17
|
+
(0, imperative_state_1.setCurrentFrame)(timelinePosition);
|
|
18
|
+
(0, imperative_state_1.setCurrentZoom)(zoom);
|
|
19
|
+
(0, imperative_state_1.setCurrentDuration)((_a = video === null || video === void 0 ? void 0 : video.durationInFrames) !== null && _a !== void 0 ? _a : 1);
|
|
20
|
+
(0, imperative_state_1.setCurrentFps)((_b = video === null || video === void 0 ? void 0 : video.fps) !== null && _b !== void 0 ? _b : 1);
|
|
21
|
+
const playing = (_c = timelineContext.playing) !== null && _c !== void 0 ? _c : false;
|
|
22
|
+
/**
|
|
23
|
+
* While playing (forwards or backwards), jump one viewport width to the left or right when the cursor goes out of the viewport.
|
|
24
|
+
*/
|
|
25
|
+
(0, react_1.useEffect)(() => {
|
|
26
|
+
if (!video) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (!playing) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
33
|
+
direction: timelineContext.playbackRate > 0 ? 'page-right' : 'page-left',
|
|
34
|
+
durationInFrames: video.durationInFrames,
|
|
35
|
+
frame: timelinePosition,
|
|
36
|
+
});
|
|
37
|
+
}, [playing, timelineContext, timelinePosition, video]);
|
|
38
|
+
/**
|
|
39
|
+
* Restore state if `enter` is being pressed
|
|
40
|
+
*/
|
|
41
|
+
(0, react_1.useEffect)(() => {
|
|
42
|
+
const { current } = timeline_refs_1.scrollableRef;
|
|
43
|
+
if (!current) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (playing) {
|
|
47
|
+
lastTimelinePositionWhileScrolling = {
|
|
48
|
+
scrollLeft: current.scrollLeft,
|
|
49
|
+
frame: (0, imperative_state_1.getCurrentFrame)(),
|
|
50
|
+
zoomLevel: (0, imperative_state_1.getCurrentZoom)(),
|
|
51
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
else if (lastTimelinePositionWhileScrolling !== null) {
|
|
55
|
+
if ((0, timeline_scroll_logic_1.isCursorInViewport)({
|
|
56
|
+
frame: (0, imperative_state_1.getCurrentFrame)(),
|
|
57
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
58
|
+
})) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (lastTimelinePositionWhileScrolling.zoomLevel === (0, imperative_state_1.getCurrentZoom)() &&
|
|
62
|
+
lastTimelinePositionWhileScrolling.durationInFrames ===
|
|
63
|
+
(0, imperative_state_1.getCurrentDuration)()) {
|
|
64
|
+
current.scrollLeft = lastTimelinePositionWhileScrolling.scrollLeft;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
(0, timeline_scroll_logic_1.ensureFrameIsInViewport)({
|
|
68
|
+
direction: 'center',
|
|
69
|
+
durationInFrames: (0, imperative_state_1.getCurrentDuration)(),
|
|
70
|
+
frame: lastTimelinePositionWhileScrolling.frame,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, [playing]);
|
|
75
|
+
return null;
|
|
76
|
+
};
|
|
77
|
+
exports.TimelinePlayCursorSyncer = TimelinePlayCursorSyncer;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineScrollable = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const colors_1 = require("../../helpers/colors");
|
|
7
|
+
const is_menu_item_1 = require("../Menu/is-menu-item");
|
|
8
|
+
const timeline_refs_1 = require("./timeline-refs");
|
|
9
|
+
const outer = {
|
|
10
|
+
width: '100%',
|
|
11
|
+
height: '100%',
|
|
12
|
+
overflowX: 'auto',
|
|
13
|
+
overflowY: 'hidden',
|
|
14
|
+
position: 'relative',
|
|
15
|
+
backgroundColor: colors_1.TIMELINE_BACKGROUND,
|
|
16
|
+
};
|
|
17
|
+
const TimelineScrollable = ({ children }) => {
|
|
18
|
+
const containerStyle = (0, react_1.useMemo)(() => {
|
|
19
|
+
return {
|
|
20
|
+
width: '100%',
|
|
21
|
+
minHeight: '100%',
|
|
22
|
+
};
|
|
23
|
+
}, []);
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: timeline_refs_1.scrollableRef, style: outer, className: is_menu_item_1.HORIZONTAL_SCROLLBAR_CLASSNAME, children: (0, jsx_runtime_1.jsx)("div", { style: containerStyle, children: children }) }));
|
|
25
|
+
};
|
|
26
|
+
exports.TimelineScrollable = TimelineScrollable;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineSequence = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const colors_1 = require("../../helpers/colors");
|
|
8
|
+
const get_timeline_sequence_layout_1 = require("../../helpers/get-timeline-sequence-layout");
|
|
9
|
+
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
10
|
+
const AudioWaveform_1 = require("../AudioWaveform");
|
|
11
|
+
const LoopedTimelineIndicators_1 = require("./LoopedTimelineIndicators");
|
|
12
|
+
const TimelineVideoInfo_1 = require("./TimelineVideoInfo");
|
|
13
|
+
const TimelineWidthProvider_1 = require("./TimelineWidthProvider");
|
|
14
|
+
const AUDIO_GRADIENT = 'linear-gradient(rgb(16 171 58), rgb(43 165 63) 60%)';
|
|
15
|
+
const VIDEO_GRADIENT = 'linear-gradient(to top, #8e44ad, #9b59b6)';
|
|
16
|
+
const TimelineSequence = ({ s }) => {
|
|
17
|
+
const windowWidth = (0, react_1.useContext)(TimelineWidthProvider_1.TimelineWidthContext);
|
|
18
|
+
if (windowWidth === null) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(Inner, { windowWidth: windowWidth, s: s });
|
|
22
|
+
};
|
|
23
|
+
exports.TimelineSequence = TimelineSequence;
|
|
24
|
+
const Inner = ({ s, windowWidth }) => {
|
|
25
|
+
// If a duration is 1, it is essentially a still and it should have width 0
|
|
26
|
+
// Some compositions may not be longer than their media duration,
|
|
27
|
+
// if that is the case, it needs to be asynchronously determined
|
|
28
|
+
const [maxMediaDuration, setMaxMediaDuration] = (0, react_1.useState)(Infinity);
|
|
29
|
+
const video = remotion_1.Internals.useVideo();
|
|
30
|
+
if (!video) {
|
|
31
|
+
throw new TypeError('Expected video config');
|
|
32
|
+
}
|
|
33
|
+
const { marginLeft, width } = (0, react_1.useMemo)(() => {
|
|
34
|
+
return (0, get_timeline_sequence_layout_1.getTimelineSequenceLayout)({
|
|
35
|
+
durationInFrames: s.loopDisplay
|
|
36
|
+
? s.loopDisplay.durationInFrames * s.loopDisplay.numberOfTimes
|
|
37
|
+
: s.duration,
|
|
38
|
+
startFrom: s.loopDisplay ? s.from + s.loopDisplay.startOffset : s.from,
|
|
39
|
+
startFromMedia: s.type === 'sequence' ? 0 : s.startMediaFrom,
|
|
40
|
+
maxMediaDuration,
|
|
41
|
+
video,
|
|
42
|
+
windowWidth,
|
|
43
|
+
});
|
|
44
|
+
}, [maxMediaDuration, s, video, windowWidth]);
|
|
45
|
+
const style = (0, react_1.useMemo)(() => {
|
|
46
|
+
return {
|
|
47
|
+
background: s.type === 'audio'
|
|
48
|
+
? AUDIO_GRADIENT
|
|
49
|
+
: s.type === 'video'
|
|
50
|
+
? VIDEO_GRADIENT
|
|
51
|
+
: colors_1.BLUE,
|
|
52
|
+
border: get_timeline_sequence_layout_1.SEQUENCE_BORDER_WIDTH + 'px solid rgba(255, 255, 255, 0.2)',
|
|
53
|
+
borderRadius: 4,
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
height: timeline_layout_1.TIMELINE_LAYER_HEIGHT,
|
|
56
|
+
marginTop: 1,
|
|
57
|
+
marginLeft,
|
|
58
|
+
width,
|
|
59
|
+
color: 'white',
|
|
60
|
+
overflow: 'hidden',
|
|
61
|
+
};
|
|
62
|
+
}, [marginLeft, s.type, width]);
|
|
63
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: style, title: s.displayName, children: [s.type === 'audio' ? ((0, jsx_runtime_1.jsx)(AudioWaveform_1.AudioWaveform, { src: s.src, doesVolumeChange: s.doesVolumeChange, visualizationWidth: width, startFrom: s.startMediaFrom, durationInFrames: s.duration, volume: s.volume, setMaxMediaDuration: setMaxMediaDuration, playbackRate: s.playbackRate })) : null, s.type === 'video' ? (0, jsx_runtime_1.jsx)(TimelineVideoInfo_1.TimelineVideoInfo, { src: s.src }) : null, s.loopDisplay === undefined ? null : ((0, jsx_runtime_1.jsx)(LoopedTimelineIndicators_1.LoopedTimelineIndicator, { loops: s.loopDisplay.numberOfTimes }))] }, s.id));
|
|
64
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineSequenceFrame = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const remotion_1 = require("remotion");
|
|
6
|
+
const render_frame_1 = require("../../state/render-frame");
|
|
7
|
+
const relativeFrameStyle = {
|
|
8
|
+
fontSize: 12,
|
|
9
|
+
fontFamily: 'Arial, Helvetica, sans-serif',
|
|
10
|
+
color: 'white',
|
|
11
|
+
opacity: 0.6,
|
|
12
|
+
marginTop: 2,
|
|
13
|
+
cursor: 'help',
|
|
14
|
+
};
|
|
15
|
+
const TimelineSequenceFrame = ({ from, duration }) => {
|
|
16
|
+
const frame = (0, remotion_1.useCurrentFrame)();
|
|
17
|
+
const { fps } = (0, remotion_1.useVideoConfig)();
|
|
18
|
+
const relativeFrame = frame - from;
|
|
19
|
+
const roundedFrame = Math.round(relativeFrame * 100) / 100;
|
|
20
|
+
const isInRange = relativeFrame >= 0 && relativeFrame < duration;
|
|
21
|
+
if (!isInRange) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)("div", { title: `
|
|
25
|
+
The current time within the sequence.
|
|
26
|
+
|
|
27
|
+
Call \`useCurrentFrame()\` within the sequence to get the time programmatically.
|
|
28
|
+
|
|
29
|
+
Call \`const {durationInFrames} = useVideoConfig()\` to get the duration of the sequence.
|
|
30
|
+
`.trim(), style: relativeFrameStyle, children: [(0, render_frame_1.renderFrame)(relativeFrame, fps), " (", roundedFrame, ")"] }));
|
|
31
|
+
};
|
|
32
|
+
exports.TimelineSequenceFrame = TimelineSequenceFrame;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineSlider = exports.redrawTimelineSliderFast = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const get_left_of_timeline_slider_1 = require("../../helpers/get-left-of-timeline-slider");
|
|
8
|
+
const imperative_state_1 = require("./imperative-state");
|
|
9
|
+
const timeline_refs_1 = require("./timeline-refs");
|
|
10
|
+
const TimelineSliderHandle_1 = require("./TimelineSliderHandle");
|
|
11
|
+
const TimelineWidthProvider_1 = require("./TimelineWidthProvider");
|
|
12
|
+
const container = {
|
|
13
|
+
position: 'absolute',
|
|
14
|
+
bottom: 0,
|
|
15
|
+
top: 0,
|
|
16
|
+
pointerEvents: 'none',
|
|
17
|
+
};
|
|
18
|
+
const line = {
|
|
19
|
+
height: '100%',
|
|
20
|
+
width: 1,
|
|
21
|
+
position: 'fixed',
|
|
22
|
+
backgroundColor: '#f02c00',
|
|
23
|
+
};
|
|
24
|
+
exports.redrawTimelineSliderFast = (0, react_1.createRef)();
|
|
25
|
+
const TimelineSlider = () => {
|
|
26
|
+
const videoConfig = remotion_1.Internals.useUnsafeVideoConfig();
|
|
27
|
+
const timelineWidth = (0, react_1.useContext)(TimelineWidthProvider_1.TimelineWidthContext);
|
|
28
|
+
if (videoConfig === null || timelineWidth === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return (0, jsx_runtime_1.jsx)(Inner, {});
|
|
32
|
+
};
|
|
33
|
+
exports.TimelineSlider = TimelineSlider;
|
|
34
|
+
const Inner = () => {
|
|
35
|
+
const videoConfig = (0, remotion_1.useVideoConfig)();
|
|
36
|
+
const timelinePosition = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
37
|
+
const ref = (0, react_1.useRef)(null);
|
|
38
|
+
const timelineWidth = (0, react_1.useContext)(TimelineWidthProvider_1.TimelineWidthContext);
|
|
39
|
+
if (timelineWidth === null) {
|
|
40
|
+
throw new Error('Unexpectedly did not have timeline width');
|
|
41
|
+
}
|
|
42
|
+
const style = (0, react_1.useMemo)(() => {
|
|
43
|
+
const left = (0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(timelinePosition, videoConfig.durationInFrames, timelineWidth);
|
|
44
|
+
return {
|
|
45
|
+
...container,
|
|
46
|
+
transform: `translateX(${left}px)`,
|
|
47
|
+
};
|
|
48
|
+
}, [timelinePosition, videoConfig.durationInFrames, timelineWidth]);
|
|
49
|
+
(0, react_1.useImperativeHandle)(exports.redrawTimelineSliderFast, () => {
|
|
50
|
+
return {
|
|
51
|
+
draw: (frame, width) => {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
const { current } = ref;
|
|
54
|
+
if (!current) {
|
|
55
|
+
throw new Error('unexpectedly did not have ref to timelineslider');
|
|
56
|
+
}
|
|
57
|
+
current.style.transform = `translateX(${(0, get_left_of_timeline_slider_1.getXPositionOfItemInTimelineImperatively)(frame, (0, imperative_state_1.getCurrentDuration)(), (_b = width !== null && width !== void 0 ? width : (_a = timeline_refs_1.sliderAreaRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0)}px)`;
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
}, []);
|
|
61
|
+
(0, react_1.useEffect)(() => {
|
|
62
|
+
const currentRef = ref.current;
|
|
63
|
+
if (!currentRef) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const { current } = timeline_refs_1.timelineVerticalScroll;
|
|
67
|
+
if (!current) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const onScroll = () => {
|
|
71
|
+
currentRef.style.top = current.scrollTop + 'px';
|
|
72
|
+
};
|
|
73
|
+
current.addEventListener('scroll', onScroll);
|
|
74
|
+
return () => {
|
|
75
|
+
current.removeEventListener('scroll', onScroll);
|
|
76
|
+
};
|
|
77
|
+
}, []);
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, style: style, children: [(0, jsx_runtime_1.jsx)("div", { style: line }), (0, jsx_runtime_1.jsx)(TimelineSliderHandle_1.TimelineSliderHandle, {})] }));
|
|
79
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineSliderHandle = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const container = {
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
position: 'fixed',
|
|
9
|
+
marginLeft: -8,
|
|
10
|
+
};
|
|
11
|
+
const TimelineSliderHandle = () => {
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)("svg", { width: 17, viewBox: "0 0 159 212", version: "1.1", children: (0, jsx_runtime_1.jsx)("path", { d: "M17.0234375,1.07763419 L143.355469,1.07763419 C151.63974,1.07763419 158.355469,7.79336295 158.355469,16.0776342 L158.355469,69.390507 C158.355469,73.7938677 156.420655,77.9748242 153.064021,80.8248415 L89.3980057,134.881757 C83.7986799,139.635978 75.5802263,139.635978 69.9809005,134.881757 L6.66764807,81.1243622 C3.0872392,78.0843437 1.0234375,73.6246568 1.0234375,68.9277387 L1.0234375,17.0776342 C1.0234375,8.2410782 8.1868815,1.07763419 17.0234375,1.07763419 Z", fill: "#f02c00" }) }) }));
|
|
13
|
+
};
|
|
14
|
+
exports.TimelineSliderHandle = TimelineSliderHandle;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineTimeIndicators = exports.TimelineTimePadding = exports.TimelineTimePlaceholders = exports.TIMELINE_TIME_INDICATOR_HEIGHT = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const remotion_1 = require("remotion");
|
|
7
|
+
const colors_1 = require("../../helpers/colors");
|
|
8
|
+
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
9
|
+
const render_frame_1 = require("../../state/render-frame");
|
|
10
|
+
const TimeValue_1 = require("../TimeValue");
|
|
11
|
+
const timeline_refs_1 = require("./timeline-refs");
|
|
12
|
+
const timeline_scroll_logic_1 = require("./timeline-scroll-logic");
|
|
13
|
+
const TimelineListItem_1 = require("./TimelineListItem");
|
|
14
|
+
const TimelineWidthProvider_1 = require("./TimelineWidthProvider");
|
|
15
|
+
exports.TIMELINE_TIME_INDICATOR_HEIGHT = 30;
|
|
16
|
+
const container = {
|
|
17
|
+
height: exports.TIMELINE_TIME_INDICATOR_HEIGHT - 4,
|
|
18
|
+
boxShadow: `0 0 4px ${colors_1.TIMELINE_BACKGROUND}`,
|
|
19
|
+
position: 'absolute',
|
|
20
|
+
backgroundColor: colors_1.TIMELINE_BACKGROUND,
|
|
21
|
+
top: 0,
|
|
22
|
+
left: 0,
|
|
23
|
+
};
|
|
24
|
+
const tick = {
|
|
25
|
+
width: 1,
|
|
26
|
+
backgroundColor: 'rgba(255, 255, 255, 0.15)',
|
|
27
|
+
height: 20,
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
};
|
|
30
|
+
const secondTick = {
|
|
31
|
+
...tick,
|
|
32
|
+
height: 15,
|
|
33
|
+
};
|
|
34
|
+
const tickLabel = {
|
|
35
|
+
fontSize: 12,
|
|
36
|
+
marginLeft: 8,
|
|
37
|
+
marginTop: 7,
|
|
38
|
+
color: colors_1.LIGHT_TEXT,
|
|
39
|
+
};
|
|
40
|
+
const timeValue = {
|
|
41
|
+
height: exports.TIMELINE_TIME_INDICATOR_HEIGHT,
|
|
42
|
+
position: 'absolute',
|
|
43
|
+
top: 0,
|
|
44
|
+
width: '100%',
|
|
45
|
+
paddingLeft: TimelineListItem_1.TOTAL_TIMELINE_LAYER_LEFT_PADDING,
|
|
46
|
+
boxShadow: `0 0 20px ${colors_1.BACKGROUND}`,
|
|
47
|
+
display: 'flex',
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
background: colors_1.BACKGROUND,
|
|
50
|
+
};
|
|
51
|
+
const TimelineTimePlaceholders = () => {
|
|
52
|
+
const ref = (0, react_1.useRef)(null);
|
|
53
|
+
(0, react_1.useEffect)(() => {
|
|
54
|
+
const currentRef = ref.current;
|
|
55
|
+
if (!currentRef) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const { current } = timeline_refs_1.timelineVerticalScroll;
|
|
59
|
+
if (!current) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const onScroll = () => {
|
|
63
|
+
currentRef.style.top = current.scrollTop + 'px';
|
|
64
|
+
};
|
|
65
|
+
current.addEventListener('scroll', onScroll);
|
|
66
|
+
return () => {
|
|
67
|
+
current.removeEventListener('scroll', onScroll);
|
|
68
|
+
};
|
|
69
|
+
}, []);
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, style: timeValue, children: (0, jsx_runtime_1.jsx)(TimeValue_1.TimeValue, {}) }));
|
|
71
|
+
};
|
|
72
|
+
exports.TimelineTimePlaceholders = TimelineTimePlaceholders;
|
|
73
|
+
const TimelineTimePadding = () => {
|
|
74
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
75
|
+
height: exports.TIMELINE_TIME_INDICATOR_HEIGHT,
|
|
76
|
+
} }));
|
|
77
|
+
};
|
|
78
|
+
exports.TimelineTimePadding = TimelineTimePadding;
|
|
79
|
+
const TimelineTimeIndicators = () => {
|
|
80
|
+
const sliderTrack = (0, react_1.useContext)(TimelineWidthProvider_1.TimelineWidthContext);
|
|
81
|
+
const video = remotion_1.Internals.useVideo();
|
|
82
|
+
if (sliderTrack === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
if (video === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)(Inner, { durationInFrames: video.durationInFrames, fps: video.fps, windowWidth: sliderTrack }));
|
|
89
|
+
};
|
|
90
|
+
exports.TimelineTimeIndicators = TimelineTimeIndicators;
|
|
91
|
+
const Inner = ({ windowWidth, durationInFrames, fps }) => {
|
|
92
|
+
const ref = (0, react_1.useRef)(null);
|
|
93
|
+
(0, react_1.useEffect)(() => {
|
|
94
|
+
const currentRef = ref.current;
|
|
95
|
+
if (!currentRef) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const { current } = timeline_refs_1.timelineVerticalScroll;
|
|
99
|
+
if (!current) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const onScroll = () => {
|
|
103
|
+
currentRef.style.top = current.scrollTop + 'px';
|
|
104
|
+
};
|
|
105
|
+
current.addEventListener('scroll', onScroll);
|
|
106
|
+
return () => {
|
|
107
|
+
current.removeEventListener('scroll', onScroll);
|
|
108
|
+
};
|
|
109
|
+
}, []);
|
|
110
|
+
const style = (0, react_1.useMemo)(() => {
|
|
111
|
+
return {
|
|
112
|
+
...container,
|
|
113
|
+
width: windowWidth,
|
|
114
|
+
overflow: 'hidden',
|
|
115
|
+
};
|
|
116
|
+
}, [windowWidth]);
|
|
117
|
+
const ticks = (0, react_1.useMemo)(() => {
|
|
118
|
+
const frameInterval = (0, timeline_scroll_logic_1.getFrameIncrementFromWidth)(durationInFrames, windowWidth);
|
|
119
|
+
const MIN_SPACING_BETWEEN_TICKS_PX = 5;
|
|
120
|
+
const seconds = Math.floor(durationInFrames / fps);
|
|
121
|
+
const secondMarkerEveryNth = Math.ceil((MIN_SPACING_BETWEEN_TICKS_PX * fps) / (frameInterval * fps));
|
|
122
|
+
const frameMarkerEveryNth = Math.ceil(MIN_SPACING_BETWEEN_TICKS_PX / frameInterval);
|
|
123
|
+
// Big ticks showing for every second
|
|
124
|
+
const secondTicks = new Array(seconds)
|
|
125
|
+
.fill(true)
|
|
126
|
+
.map((_, index) => {
|
|
127
|
+
return {
|
|
128
|
+
frame: index * fps,
|
|
129
|
+
style: {
|
|
130
|
+
...secondTick,
|
|
131
|
+
left: frameInterval * index * fps + timeline_layout_1.TIMELINE_PADDING,
|
|
132
|
+
},
|
|
133
|
+
showTime: index > 0,
|
|
134
|
+
};
|
|
135
|
+
})
|
|
136
|
+
.filter((_, idx) => idx % secondMarkerEveryNth === 0);
|
|
137
|
+
const frameTicks = new Array(durationInFrames)
|
|
138
|
+
.fill(true)
|
|
139
|
+
.map((_, index) => {
|
|
140
|
+
return {
|
|
141
|
+
frame: index,
|
|
142
|
+
style: {
|
|
143
|
+
...tick,
|
|
144
|
+
left: frameInterval * index + timeline_layout_1.TIMELINE_PADDING,
|
|
145
|
+
height: index % fps === 0
|
|
146
|
+
? 10
|
|
147
|
+
: (index / frameMarkerEveryNth) % 2 === 0
|
|
148
|
+
? 5
|
|
149
|
+
: 2,
|
|
150
|
+
},
|
|
151
|
+
showTime: false,
|
|
152
|
+
};
|
|
153
|
+
})
|
|
154
|
+
.filter((_, idx) => idx % frameMarkerEveryNth === 0);
|
|
155
|
+
// Merge and deduplicate ticks
|
|
156
|
+
const hasTicks = [];
|
|
157
|
+
return [...secondTicks, ...frameTicks].filter((t) => {
|
|
158
|
+
const alreadyUsed = hasTicks.find((ht) => ht === t.frame) !== undefined;
|
|
159
|
+
hasTicks.push(t.frame);
|
|
160
|
+
return !alreadyUsed;
|
|
161
|
+
});
|
|
162
|
+
}, [durationInFrames, fps, windowWidth]);
|
|
163
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, style: style, children: ticks.map((t) => {
|
|
164
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: t.style, children: t.showTime ? ((0, jsx_runtime_1.jsx)("div", { style: tickLabel, children: (0, render_frame_1.renderFrame)(t.frame, fps) })) : null }, t.frame));
|
|
165
|
+
}) }));
|
|
166
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TrackWithHash } from '../../helpers/get-timeline-sequence-sort-key';
|
|
3
|
+
import type { TimelineViewState } from './timeline-state-reducer';
|
|
4
|
+
export declare const TimelineTracks: React.FC<{
|
|
5
|
+
timeline: TrackWithHash[];
|
|
6
|
+
viewState: TimelineViewState;
|
|
7
|
+
hasBeenCut: boolean;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimelineTracks = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const timeline_layout_1 = require("../../helpers/timeline-layout");
|
|
7
|
+
const is_collapsed_1 = require("./is-collapsed");
|
|
8
|
+
const MaxTimelineTracks_1 = require("./MaxTimelineTracks");
|
|
9
|
+
const TimelineSequence_1 = require("./TimelineSequence");
|
|
10
|
+
const TimelineTimeIndicators_1 = require("./TimelineTimeIndicators");
|
|
11
|
+
const content = {
|
|
12
|
+
paddingLeft: timeline_layout_1.TIMELINE_PADDING,
|
|
13
|
+
paddingRight: timeline_layout_1.TIMELINE_PADDING,
|
|
14
|
+
};
|
|
15
|
+
const timelineContent = {
|
|
16
|
+
minHeight: '100%',
|
|
17
|
+
};
|
|
18
|
+
const TimelineTracks = ({ timeline, viewState, hasBeenCut }) => {
|
|
19
|
+
const inner = (0, react_1.useMemo)(() => {
|
|
20
|
+
return {
|
|
21
|
+
height: timeline_layout_1.TIMELINE_LAYER_HEIGHT + timeline_layout_1.TIMELINE_BORDER * 2,
|
|
22
|
+
};
|
|
23
|
+
}, []);
|
|
24
|
+
const timelineStyle = (0, react_1.useMemo)(() => {
|
|
25
|
+
return {
|
|
26
|
+
...timelineContent,
|
|
27
|
+
width: 100 + '%',
|
|
28
|
+
};
|
|
29
|
+
}, []);
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: timelineStyle, children: [(0, jsx_runtime_1.jsxs)("div", { style: content, children: [(0, jsx_runtime_1.jsx)(TimelineTimeIndicators_1.TimelineTimePadding, {}), timeline.map((track) => {
|
|
31
|
+
if ((0, is_collapsed_1.isTrackHidden)(track, timeline, viewState)) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: inner, children: (0, jsx_runtime_1.jsx)(TimelineSequence_1.TimelineSequence, { s: track.sequence }) }, track.sequence.id));
|
|
35
|
+
}), (0, jsx_runtime_1.jsx)(TimelineTimeIndicators_1.TimelineTimeIndicators, {})] }), hasBeenCut ? (0, jsx_runtime_1.jsx)(MaxTimelineTracks_1.MaxTimelineTracksReached, {}) : null] }));
|
|
36
|
+
};
|
|
37
|
+
exports.TimelineTracks = TimelineTracks;
|