@remotion/cli 4.0.126 → 4.0.127
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/benchmark.js +12 -3
- package/dist/better-opn/index.d.ts +5 -0
- package/dist/better-opn/index.js +202 -0
- package/dist/bundle.js +11 -6
- 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/compositions.js +23 -12
- package/dist/config/bitrate.d.ts +0 -6
- package/dist/config/bitrate.js +1 -28
- package/dist/config/index.d.ts +4 -1
- package/dist/config/index.js +3 -4
- 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/entry-point.d.ts +6 -1
- package/dist/entry-point.js +21 -4
- 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-cli-options.d.ts +0 -1
- package/dist/get-cli-options.js +0 -1
- 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 +9 -4
- package/dist/parse-command-line.d.ts +18 -0
- package/dist/parse-command-line.js +1 -16
- 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/render-flows/render.d.ts +2 -1
- package/dist/render-flows/render.js +5 -1
- package/dist/render-flows/still.d.ts +2 -1
- package/dist/render-flows/still.js +3 -2
- package/dist/render-queue/process-still.js +8 -1
- package/dist/render-queue/process-video.js +8 -1
- package/dist/render.js +6 -3
- 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/setup-cache.d.ts +4 -2
- package/dist/setup-cache.js +17 -5
- 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/still.js +10 -3
- package/dist/studio.js +12 -3
- package/dist/watch-root-file.d.ts +1 -0
- package/dist/watch-root-file.js +22 -0
- package/package.json +10 -10
|
@@ -47,7 +47,7 @@ const setup_cache_1 = require("../setup-cache");
|
|
|
47
47
|
const should_use_non_overlaying_logger_1 = require("../should-use-non-overlaying-logger");
|
|
48
48
|
const truthy_1 = require("../truthy");
|
|
49
49
|
const user_passed_output_location_1 = require("../user-passed-output-location");
|
|
50
|
-
const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, }) => {
|
|
50
|
+
const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel, browserExecutable, browser, chromiumOptions, scale, shouldOutputImageSequence, publicDir, envVariables, puppeteerTimeout, port, height, width, remainingArgs, compositionIdFromUi, entryPointReason, overwrite, quiet, concurrency, frameRange, everyNthFrame, outputLocationFromUI, jpegQuality, onProgress, addCleanupCallback, cancelSignal, crf, uiCodec, uiImageFormat, ffmpegOverride, audioBitrate, muted, enforceAudioTrack, proResProfile, x264Preset, pixelFormat, videoBitrate, encodingMaxRate, encodingBufferSize, numberOfGifLoops, audioCodec, serializedInputPropsWithCustomSchema, disallowParallelEncoding, offthreadVideoCacheSizeInBytes, colorSpace, repro, binariesDirectory, forSeamlessAacConcatenation, separateAudioTo, publicPath, }) => {
|
|
51
51
|
var _a;
|
|
52
52
|
const downloads = [];
|
|
53
53
|
const browserInstance = renderer_1.RenderInternals.internalOpenBrowser({
|
|
@@ -124,6 +124,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
124
124
|
gitSource: null,
|
|
125
125
|
bufferStateDelayInMilliseconds: null,
|
|
126
126
|
maxTimelineTracks: null,
|
|
127
|
+
publicPath,
|
|
127
128
|
});
|
|
128
129
|
addCleanupCallback(() => cleanupBundle());
|
|
129
130
|
const onDownload = (0, make_on_download_1.makeOnDownload)({
|
|
@@ -265,6 +266,8 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
265
266
|
offthreadVideoCacheSizeInBytes,
|
|
266
267
|
parallelEncodingEnabled: isUsingParallelEncoding,
|
|
267
268
|
binariesDirectory,
|
|
269
|
+
compositionStart: 0,
|
|
270
|
+
forSeamlessAacConcatenation,
|
|
268
271
|
});
|
|
269
272
|
updateRenderProgress({ newline: true, printToConsole: true });
|
|
270
273
|
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(`▶ ${absoluteOutputFile}`));
|
|
@@ -349,6 +352,7 @@ const renderVideoFlow = async ({ remotionRoot, fullEntryPoint, indent, logLevel,
|
|
|
349
352
|
binariesDirectory,
|
|
350
353
|
separateAudioTo: absoluteSeparateAudioTo,
|
|
351
354
|
forSeamlessAacConcatenation,
|
|
355
|
+
compositionStart: 0,
|
|
352
356
|
});
|
|
353
357
|
log_1.Log.info({ indent, logLevel }, chalk_1.chalk.blue(`${exists ? '○' : '+'} ${absoluteOutputFile}`));
|
|
354
358
|
if (absoluteSeparateAudioTo) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Browser, BrowserExecutable, CancelSignal, ChromiumOptions, LogLevel, StillImageFormat } from '@remotion/renderer';
|
|
2
2
|
import type { JobProgressCallback } from '@remotion/studio-server';
|
|
3
|
-
export declare const renderStillFlow: ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, }: {
|
|
3
|
+
export declare const renderStillFlow: ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, publicPath, }: {
|
|
4
4
|
remotionRoot: string;
|
|
5
5
|
fullEntryPoint: string;
|
|
6
6
|
entryPointReason: string;
|
|
@@ -29,4 +29,5 @@ export declare const renderStillFlow: ({ remotionRoot, fullEntryPoint, entryPoin
|
|
|
29
29
|
outputLocationFromUi: string | null;
|
|
30
30
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
31
31
|
binariesDirectory: string | null;
|
|
32
|
+
publicPath: string | null;
|
|
32
33
|
}) => Promise<void>;
|
|
@@ -24,7 +24,7 @@ const setup_cache_1 = require("../setup-cache");
|
|
|
24
24
|
const should_use_non_overlaying_logger_1 = require("../should-use-non-overlaying-logger");
|
|
25
25
|
const truthy_1 = require("../truthy");
|
|
26
26
|
const user_passed_output_location_1 = require("../user-passed-output-location");
|
|
27
|
-
const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, }) => {
|
|
27
|
+
const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason, remainingArgs, browser, browserExecutable, chromiumOptions, envVariables, height, serializedInputPropsWithCustomSchema, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, compositionIdFromUi, imageFormatFromUi, logLevel, onProgress, indent, addCleanupCallback, cancelSignal, outputLocationFromUi, offthreadVideoCacheSizeInBytes, binariesDirectory, publicPath, }) => {
|
|
28
28
|
var _a, _b;
|
|
29
29
|
const aggregate = (0, progress_types_1.initialAggregateRenderProgress)();
|
|
30
30
|
const updatesDontOverwrite = (0, should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger)({ logLevel });
|
|
@@ -88,6 +88,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
88
88
|
gitSource: null,
|
|
89
89
|
bufferStateDelayInMilliseconds: null,
|
|
90
90
|
maxTimelineTracks: null,
|
|
91
|
+
publicPath,
|
|
91
92
|
});
|
|
92
93
|
const server = await renderer_1.RenderInternals.prepareServer({
|
|
93
94
|
concurrency: 1,
|
|
@@ -183,7 +184,7 @@ const renderStillFlow = async ({ remotionRoot, fullEntryPoint, entryPointReason,
|
|
|
183
184
|
onDownload,
|
|
184
185
|
port,
|
|
185
186
|
puppeteerInstance,
|
|
186
|
-
server
|
|
187
|
+
server,
|
|
187
188
|
cancelSignal,
|
|
188
189
|
indent,
|
|
189
190
|
onBrowserLog: null,
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.processStill = void 0;
|
|
4
|
+
const client_1 = require("@remotion/renderer/client");
|
|
4
5
|
const preview_server_1 = require("../config/preview-server");
|
|
5
6
|
const convert_entry_point_to_serve_url_1 = require("../convert-entry-point-to-serve-url");
|
|
6
7
|
const get_cli_options_1 = require("../get-cli-options");
|
|
8
|
+
const parse_command_line_1 = require("../parse-command-line");
|
|
7
9
|
const still_1 = require("../render-flows/still");
|
|
10
|
+
const { publicDirOption } = client_1.BrowserSafeApis.options;
|
|
8
11
|
const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, }) => {
|
|
9
12
|
if (job.type !== 'still') {
|
|
10
13
|
throw new Error('Expected still job');
|
|
11
14
|
}
|
|
12
|
-
const {
|
|
15
|
+
const { browserExecutable } = (0, get_cli_options_1.getCliOptions)({
|
|
13
16
|
isStill: true,
|
|
14
17
|
logLevel: job.logLevel,
|
|
15
18
|
});
|
|
19
|
+
const publicDir = publicDirOption.getValue({
|
|
20
|
+
commandLine: parse_command_line_1.parsedCli,
|
|
21
|
+
}).value;
|
|
16
22
|
const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(entryPoint);
|
|
17
23
|
await (0, still_1.renderStillFlow)({
|
|
18
24
|
remotionRoot,
|
|
@@ -43,6 +49,7 @@ const processStill = async ({ job, remotionRoot, entryPoint, onProgress, addClea
|
|
|
43
49
|
outputLocationFromUi: job.outName,
|
|
44
50
|
offthreadVideoCacheSizeInBytes: job.offthreadVideoCacheSizeInBytes,
|
|
45
51
|
binariesDirectory: job.binariesDirectory,
|
|
52
|
+
publicPath: null,
|
|
46
53
|
});
|
|
47
54
|
};
|
|
48
55
|
exports.processStill = processStill;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.processVideoJob = void 0;
|
|
4
|
+
const client_1 = require("@remotion/renderer/client");
|
|
4
5
|
const preview_server_1 = require("../config/preview-server");
|
|
5
6
|
const convert_entry_point_to_serve_url_1 = require("../convert-entry-point-to-serve-url");
|
|
6
7
|
const get_cli_options_1 = require("../get-cli-options");
|
|
8
|
+
const parse_command_line_1 = require("../parse-command-line");
|
|
7
9
|
const render_1 = require("../render-flows/render");
|
|
10
|
+
const { publicDirOption } = client_1.BrowserSafeApis.options;
|
|
8
11
|
const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addCleanupCallback, logLevel, }) => {
|
|
9
12
|
var _a, _b, _c;
|
|
10
13
|
if (job.type !== 'video' && job.type !== 'sequence') {
|
|
11
14
|
throw new Error('Expected video job');
|
|
12
15
|
}
|
|
13
|
-
const
|
|
16
|
+
const publicDir = publicDirOption.getValue({
|
|
17
|
+
commandLine: parse_command_line_1.parsedCli,
|
|
18
|
+
}).value;
|
|
19
|
+
const { browserExecutable, ffmpegOverride } = (0, get_cli_options_1.getCliOptions)({
|
|
14
20
|
isStill: true,
|
|
15
21
|
logLevel,
|
|
16
22
|
});
|
|
@@ -67,6 +73,7 @@ const processVideoJob = async ({ job, remotionRoot, entryPoint, onProgress, addC
|
|
|
67
73
|
binariesDirectory: job.binariesDirectory,
|
|
68
74
|
forSeamlessAacConcatenation: job.type === 'video' ? job.forSeamlessAacConcatenation : false,
|
|
69
75
|
separateAudioTo: job.type === 'video' ? job.separateAudioTo : null,
|
|
76
|
+
publicPath: null,
|
|
70
77
|
});
|
|
71
78
|
};
|
|
72
79
|
exports.processVideoJob = processVideoJob;
|
package/dist/render.js
CHANGED
|
@@ -11,9 +11,9 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
11
11
|
const log_1 = require("./log");
|
|
12
12
|
const parse_command_line_1 = require("./parse-command-line");
|
|
13
13
|
const render_1 = require("./render-flows/render");
|
|
14
|
-
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, } = client_1.BrowserSafeApis.options;
|
|
14
|
+
const { x264Option, audioBitrateOption, offthreadVideoCacheSizeInBytesOption, scaleOption, crfOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, enableMultiprocessOnLinuxOption, glOption, numberOfGifLoopsOption, encodingMaxRateOption, encodingBufferSizeOption, reproOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, forSeamlessAacConcatenationOption, separateAudioOption, audioCodecOption, publicPathOption, publicDirOption, } = client_1.BrowserSafeApis.options;
|
|
15
15
|
const render = async (remotionRoot, args, logLevel) => {
|
|
16
|
-
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)(args, remotionRoot, logLevel);
|
|
16
|
+
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)({ args, remotionRoot, logLevel, allowDirectory: true });
|
|
17
17
|
if (!file) {
|
|
18
18
|
log_1.Log.error({ indent: false, logLevel }, 'No entry point specified. Pass more arguments:');
|
|
19
19
|
log_1.Log.error({ indent: false, logLevel }, ' npx remotion render [entry-point] [composition-name] [out-name]');
|
|
@@ -25,7 +25,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
25
25
|
log_1.Log.error({ indent: false, logLevel }, '--frame flag was passed to the `render` command. This flag only works with the `still` command. Did you mean `--frames`? See reference: https://www.remotion.dev/docs/cli/');
|
|
26
26
|
process.exit(1);
|
|
27
27
|
}
|
|
28
|
-
const { concurrency, frameRange, shouldOutputImageSequence, inputProps, envVariables, browserExecutable, everyNthFrame, userAgent, disableWebSecurity, ignoreCertificateErrors,
|
|
28
|
+
const { concurrency, frameRange, shouldOutputImageSequence, inputProps, envVariables, browserExecutable, everyNthFrame, userAgent, disableWebSecurity, ignoreCertificateErrors, height, width, ffmpegOverride, proResProfile, pixelFormat, } = (0, get_cli_options_1.getCliOptions)({
|
|
29
29
|
isStill: false,
|
|
30
30
|
logLevel,
|
|
31
31
|
});
|
|
@@ -85,6 +85,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
85
85
|
const separateAudioTo = separateAudioOption.getValue({
|
|
86
86
|
commandLine: parse_command_line_1.parsedCli,
|
|
87
87
|
}).value;
|
|
88
|
+
const publicPath = publicPathOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
|
|
88
89
|
const chromiumOptions = {
|
|
89
90
|
disableWebSecurity,
|
|
90
91
|
enableMultiProcessOnLinux,
|
|
@@ -94,6 +95,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
94
95
|
userAgent,
|
|
95
96
|
};
|
|
96
97
|
const audioCodec = audioCodecOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
|
|
98
|
+
const publicDir = publicDirOption.getValue({ commandLine: parse_command_line_1.parsedCli }).value;
|
|
97
99
|
await (0, render_1.renderVideoFlow)({
|
|
98
100
|
fullEntryPoint,
|
|
99
101
|
remotionRoot,
|
|
@@ -152,6 +154,7 @@ const render = async (remotionRoot, args, logLevel) => {
|
|
|
152
154
|
binariesDirectory,
|
|
153
155
|
forSeamlessAacConcatenation,
|
|
154
156
|
separateAudioTo,
|
|
157
|
+
publicPath,
|
|
155
158
|
});
|
|
156
159
|
};
|
|
157
160
|
exports.render = render;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printServerReadyComment = exports.setServerReadyComment = void 0;
|
|
4
|
+
const log_1 = require("./log");
|
|
5
|
+
let message = null;
|
|
6
|
+
const setServerReadyComment = (newMessage) => {
|
|
7
|
+
message = newMessage;
|
|
8
|
+
};
|
|
9
|
+
exports.setServerReadyComment = setServerReadyComment;
|
|
10
|
+
const printServerReadyComment = (prefix) => {
|
|
11
|
+
log_1.Log.info(`${prefix} - ${message}`);
|
|
12
|
+
};
|
|
13
|
+
exports.printServerReadyComment = printServerReadyComment;
|
package/dist/setup-cache.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LogLevel } from '@remotion/renderer';
|
|
2
2
|
import type { GitSource } from '@remotion/studio';
|
|
3
3
|
import type { BundlingState, CopyingState } from '@remotion/studio-server';
|
|
4
|
-
export declare const bundleOnCliOrTakeServeUrl: ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, bufferStateDelayInMilliseconds, maxTimelineTracks, }: {
|
|
4
|
+
export declare const bundleOnCliOrTakeServeUrl: ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, bufferStateDelayInMilliseconds, maxTimelineTracks, publicPath, }: {
|
|
5
5
|
fullPath: string;
|
|
6
6
|
remotionRoot: string;
|
|
7
7
|
publicDir: string | null;
|
|
@@ -20,11 +20,12 @@ export declare const bundleOnCliOrTakeServeUrl: ({ fullPath, remotionRoot, publi
|
|
|
20
20
|
gitSource: GitSource | null;
|
|
21
21
|
bufferStateDelayInMilliseconds: number | null;
|
|
22
22
|
maxTimelineTracks: number | null;
|
|
23
|
+
publicPath: string | null;
|
|
23
24
|
}) => Promise<{
|
|
24
25
|
urlOrBundle: string;
|
|
25
26
|
cleanup: () => void;
|
|
26
27
|
}>;
|
|
27
|
-
export declare const bundleOnCli: ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, maxTimelineTracks, bufferStateDelayInMilliseconds, }: {
|
|
28
|
+
export declare const bundleOnCli: ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, maxTimelineTracks, bufferStateDelayInMilliseconds, publicPath, }: {
|
|
28
29
|
fullPath: string;
|
|
29
30
|
remotionRoot: string;
|
|
30
31
|
publicDir: string | null;
|
|
@@ -43,4 +44,5 @@ export declare const bundleOnCli: ({ fullPath, remotionRoot, publicDir, onProgre
|
|
|
43
44
|
gitSource: GitSource | null;
|
|
44
45
|
maxTimelineTracks: number | null;
|
|
45
46
|
bufferStateDelayInMilliseconds: number | null;
|
|
47
|
+
publicPath: string | null;
|
|
46
48
|
}) => Promise<string>;
|
package/dist/setup-cache.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.bundleOnCli = exports.bundleOnCliOrTakeServeUrl = void 0;
|
|
4
7
|
const bundler_1 = require("@remotion/bundler");
|
|
5
8
|
const renderer_1 = require("@remotion/renderer");
|
|
9
|
+
const fs_1 = require("fs");
|
|
10
|
+
const path_1 = __importDefault(require("path"));
|
|
6
11
|
const config_1 = require("./config");
|
|
7
12
|
const log_1 = require("./log");
|
|
8
13
|
const progress_bar_1 = require("./progress-bar");
|
|
9
14
|
const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-logger");
|
|
10
|
-
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, bufferStateDelayInMilliseconds, maxTimelineTracks, }) => {
|
|
11
|
-
|
|
15
|
+
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, bufferStateDelayInMilliseconds, maxTimelineTracks, publicPath, }) => {
|
|
16
|
+
const isServeUrl = renderer_1.RenderInternals.isServeUrl(fullPath);
|
|
17
|
+
const isBundle = (0, fs_1.existsSync)(fullPath) && (0, fs_1.existsSync)(path_1.default.join(fullPath, 'index.html'));
|
|
18
|
+
if (isServeUrl || isBundle) {
|
|
12
19
|
onProgress({
|
|
13
20
|
bundling: {
|
|
14
21
|
doneIn: 0,
|
|
@@ -40,6 +47,7 @@ const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, on
|
|
|
40
47
|
gitSource,
|
|
41
48
|
bufferStateDelayInMilliseconds,
|
|
42
49
|
maxTimelineTracks,
|
|
50
|
+
publicPath,
|
|
43
51
|
});
|
|
44
52
|
return {
|
|
45
53
|
urlOrBundle: bundled,
|
|
@@ -47,7 +55,7 @@ const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, on
|
|
|
47
55
|
};
|
|
48
56
|
};
|
|
49
57
|
exports.bundleOnCliOrTakeServeUrl = bundleOnCliOrTakeServeUrl;
|
|
50
|
-
const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, maxTimelineTracks, bufferStateDelayInMilliseconds, }) => {
|
|
58
|
+
const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, quietProgress, quietFlag, outDir, gitSource, maxTimelineTracks, bufferStateDelayInMilliseconds, publicPath, }) => {
|
|
51
59
|
var _a;
|
|
52
60
|
const shouldCache = config_1.ConfigInternals.getWebpackCaching();
|
|
53
61
|
const symlinkState = {
|
|
@@ -97,6 +105,8 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
97
105
|
publicDir,
|
|
98
106
|
onPublicDirCopyProgress,
|
|
99
107
|
onSymlinkDetected,
|
|
108
|
+
outDir: outDir !== null && outDir !== void 0 ? outDir : null,
|
|
109
|
+
publicPath,
|
|
100
110
|
};
|
|
101
111
|
const [hash] = await bundler_1.BundlerInternals.getConfig({
|
|
102
112
|
outDir: '',
|
|
@@ -127,7 +137,7 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
127
137
|
progress: 0,
|
|
128
138
|
doneIn: null,
|
|
129
139
|
};
|
|
130
|
-
const bundled = await
|
|
140
|
+
const bundled = await bundler_1.BundlerInternals.internalBundle({
|
|
131
141
|
entryPoint: fullPath,
|
|
132
142
|
onProgress: (progress) => {
|
|
133
143
|
bundlingState = {
|
|
@@ -137,9 +147,11 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
137
147
|
updateProgress(false);
|
|
138
148
|
},
|
|
139
149
|
onDirectoryCreated,
|
|
140
|
-
outDir: outDir !== null && outDir !== void 0 ? outDir : undefined,
|
|
141
150
|
gitSource,
|
|
142
151
|
...options,
|
|
152
|
+
ignoreRegisterRootWarning: false,
|
|
153
|
+
maxTimelineTracks,
|
|
154
|
+
bufferStateDelayInMilliseconds,
|
|
143
155
|
});
|
|
144
156
|
bundlingState = {
|
|
145
157
|
progress: 1,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unsmoothenZoom = exports.smoothenZoom = exports.MAX_ZOOM = exports.MIN_ZOOM = void 0;
|
|
4
|
+
const BASE = Math.E / 4;
|
|
5
|
+
exports.MIN_ZOOM = 0.05;
|
|
6
|
+
exports.MAX_ZOOM = 10;
|
|
7
|
+
function logN(val) {
|
|
8
|
+
return Math.log(val) / Math.log(BASE);
|
|
9
|
+
}
|
|
10
|
+
const smoothenZoom = (input) => {
|
|
11
|
+
return BASE ** (input - 1);
|
|
12
|
+
};
|
|
13
|
+
exports.smoothenZoom = smoothenZoom;
|
|
14
|
+
const unsmoothenZoom = (input) => {
|
|
15
|
+
if (input < 0) {
|
|
16
|
+
return exports.MAX_ZOOM;
|
|
17
|
+
}
|
|
18
|
+
return Math.min(exports.MAX_ZOOM, Math.max(exports.MIN_ZOOM, logN(input) + 1));
|
|
19
|
+
};
|
|
20
|
+
exports.unsmoothenZoom = unsmoothenZoom;
|
package/dist/step.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RenderStep = 'bundling' | 'rendering' | 'stitching';
|
package/dist/step.js
ADDED
package/dist/still.js
CHANGED
|
@@ -11,9 +11,9 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
11
11
|
const log_1 = require("./log");
|
|
12
12
|
const parse_command_line_1 = require("./parse-command-line");
|
|
13
13
|
const still_1 = require("./render-flows/still");
|
|
14
|
-
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, } = client_1.BrowserSafeApis.options;
|
|
14
|
+
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, overwriteOption, binariesDirectoryOption, publicPathOption, publicDirOption, } = client_1.BrowserSafeApis.options;
|
|
15
15
|
const still = async (remotionRoot, args, logLevel) => {
|
|
16
|
-
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)(args, remotionRoot, logLevel);
|
|
16
|
+
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)({ args, remotionRoot, logLevel, allowDirectory: true });
|
|
17
17
|
if (!file) {
|
|
18
18
|
log_1.Log.error({ indent: false, logLevel }, 'No entry point specified. Pass more arguments:');
|
|
19
19
|
log_1.Log.error({ indent: false, logLevel }, ' npx remotion render [entry-point] [composition-name] [out-name]');
|
|
@@ -25,7 +25,7 @@ const still = async (remotionRoot, args, logLevel) => {
|
|
|
25
25
|
log_1.Log.error({ indent: false, logLevel }, '--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
|
|
26
26
|
process.exit(1);
|
|
27
27
|
}
|
|
28
|
-
const { browserExecutable, envVariables, height, inputProps,
|
|
28
|
+
const { browserExecutable, envVariables, height, inputProps, stillFrame, width, disableWebSecurity, ignoreCertificateErrors, userAgent, } = (0, get_cli_options_1.getCliOptions)({
|
|
29
29
|
isStill: true,
|
|
30
30
|
logLevel,
|
|
31
31
|
});
|
|
@@ -52,6 +52,12 @@ const still = async (remotionRoot, args, logLevel) => {
|
|
|
52
52
|
const binariesDirectory = binariesDirectoryOption.getValue({
|
|
53
53
|
commandLine: parse_command_line_1.parsedCli,
|
|
54
54
|
}).value;
|
|
55
|
+
const publicPath = publicPathOption.getValue({
|
|
56
|
+
commandLine: parse_command_line_1.parsedCli,
|
|
57
|
+
}).value;
|
|
58
|
+
const publicDir = publicDirOption.getValue({
|
|
59
|
+
commandLine: parse_command_line_1.parsedCli,
|
|
60
|
+
}).value;
|
|
55
61
|
const chromiumOptions = {
|
|
56
62
|
disableWebSecurity,
|
|
57
63
|
enableMultiProcessOnLinux,
|
|
@@ -95,6 +101,7 @@ const still = async (remotionRoot, args, logLevel) => {
|
|
|
95
101
|
outputLocationFromUi: null,
|
|
96
102
|
offthreadVideoCacheSizeInBytes,
|
|
97
103
|
binariesDirectory,
|
|
104
|
+
publicPath,
|
|
98
105
|
});
|
|
99
106
|
};
|
|
100
107
|
exports.still = still;
|
package/dist/studio.js
CHANGED
|
@@ -24,9 +24,15 @@ const getPort = () => {
|
|
|
24
24
|
}
|
|
25
25
|
return null;
|
|
26
26
|
};
|
|
27
|
+
const { binariesDirectoryOption, publicDirOption } = client_1.BrowserSafeApis.options;
|
|
27
28
|
const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
28
29
|
var _a;
|
|
29
|
-
const { file, reason } = (0, entry_point_1.findEntryPoint)(
|
|
30
|
+
const { file, reason } = (0, entry_point_1.findEntryPoint)({
|
|
31
|
+
args,
|
|
32
|
+
remotionRoot,
|
|
33
|
+
logLevel,
|
|
34
|
+
allowDirectory: false,
|
|
35
|
+
});
|
|
30
36
|
log_1.Log.verbose({ indent: false, logLevel }, 'Entry point:', file, 'reason:', reason);
|
|
31
37
|
if (!file) {
|
|
32
38
|
log_1.Log.error({ indent: false, logLevel }, 'No Remotion entrypoint was found. Specify an additional argument manually:');
|
|
@@ -56,7 +62,10 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
56
62
|
}, logLevel, false);
|
|
57
63
|
const keyboardShortcutsEnabled = config_1.ConfigInternals.getKeyboardShortcutsEnabled();
|
|
58
64
|
const gitSource = (0, get_github_repository_1.getGitSource)(remotionRoot);
|
|
59
|
-
const binariesDirectory =
|
|
65
|
+
const binariesDirectory = binariesDirectoryOption.getValue({
|
|
66
|
+
commandLine: parse_command_line_1.parsedCli,
|
|
67
|
+
}).value;
|
|
68
|
+
const relativePublicDir = publicDirOption.getValue({
|
|
60
69
|
commandLine: parse_command_line_1.parsedCli,
|
|
61
70
|
}).value;
|
|
62
71
|
await studio_server_1.StudioServerInternals.startStudio({
|
|
@@ -72,7 +81,7 @@ const studioCommand = async (remotionRoot, args, logLevel) => {
|
|
|
72
81
|
keyboardShortcutsEnabled,
|
|
73
82
|
maxTimelineTracks: config_1.ConfigInternals.getMaxTimelineTracks(),
|
|
74
83
|
remotionRoot,
|
|
75
|
-
|
|
84
|
+
relativePublicDir,
|
|
76
85
|
webpackOverride: config_1.ConfigInternals.getWebpackOverrideFn(),
|
|
77
86
|
poll: config_1.ConfigInternals.getWebpackPolling(),
|
|
78
87
|
getRenderDefaults: get_render_defaults_1.getRenderDefaults,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const watchRootFile: (remotionRoot: string) => Promise<void>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.watchRootFile = void 0;
|
|
4
|
+
const file_watcher_1 = require("./file-watcher");
|
|
5
|
+
const live_events_1 = require("./preview-server/live-events");
|
|
6
|
+
const project_info_1 = require("./preview-server/project-info");
|
|
7
|
+
const watchRootFile = async (remotionRoot) => {
|
|
8
|
+
const rootFile = await (0, project_info_1.getProjectInfo)(remotionRoot);
|
|
9
|
+
if (!rootFile.videoFile) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
(0, file_watcher_1.installFileWatcher)({
|
|
13
|
+
file: rootFile.videoFile,
|
|
14
|
+
onChange: () => {
|
|
15
|
+
// Don't care if changed, added or deleted - should trigger a refetch in the frontend all the time
|
|
16
|
+
(0, live_events_1.waitForLiveEventsListener)().then((listener) => {
|
|
17
|
+
listener.sendEventToClient({ type: 'root-file-changed' });
|
|
18
|
+
});
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
exports.watchRootFile = watchRootFile;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.127",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"dotenv": "9.0.2",
|
|
33
33
|
"minimist": "1.2.6",
|
|
34
34
|
"prompts": "2.4.2",
|
|
35
|
-
"@remotion/bundler": "4.0.
|
|
36
|
-
"@remotion/media-utils": "4.0.
|
|
37
|
-
"@remotion/
|
|
38
|
-
"@remotion/
|
|
39
|
-
"@remotion/studio-server": "4.0.
|
|
40
|
-
"remotion": "4.0.
|
|
41
|
-
"@remotion/
|
|
35
|
+
"@remotion/bundler": "4.0.127",
|
|
36
|
+
"@remotion/media-utils": "4.0.127",
|
|
37
|
+
"@remotion/renderer": "4.0.127",
|
|
38
|
+
"@remotion/player": "4.0.127",
|
|
39
|
+
"@remotion/studio-server": "4.0.127",
|
|
40
|
+
"remotion": "4.0.127",
|
|
41
|
+
"@remotion/studio": "4.0.127"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8.0",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"react-dom": "18.2.0",
|
|
64
64
|
"vitest": "0.31.1",
|
|
65
65
|
"zod": "^3.22.3",
|
|
66
|
-
"@remotion/zod-types": "4.0.
|
|
67
|
-
"@remotion/tailwind": "4.0.
|
|
66
|
+
"@remotion/zod-types": "4.0.127",
|
|
67
|
+
"@remotion/tailwind": "4.0.127"
|
|
68
68
|
},
|
|
69
69
|
"keywords": [
|
|
70
70
|
"remotion",
|