@remotion/cli 4.0.0-webhook.27 → 4.1.0-alpha1
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/LICENSE.md +8 -8
- package/dist/ansi/ansi-diff.d.ts +3 -2
- package/dist/ansi/ansi-diff.js +14 -20
- package/dist/ansi/ansi-split.d.ts +1 -0
- package/dist/ansi/ansi-split.js +16 -3
- package/dist/benchmark.d.ts +0 -0
- package/dist/benchmark.js +105 -42
- package/dist/better-opn/index.d.ts +6 -0
- package/dist/better-opn/index.js +202 -0
- package/dist/chalk/index.d.ts +45 -54
- package/dist/chalk/index.js +2 -135
- package/dist/cleanup-before-quit.d.ts +3 -0
- package/dist/cleanup-before-quit.js +26 -0
- package/dist/cloudrun-command.d.ts +1 -0
- package/dist/cloudrun-command.js +27 -0
- package/dist/code-frame.d.ts +0 -0
- package/dist/code-frame.js +18 -7
- package/dist/codemods/stringify-with-path.d.ts +5 -0
- package/dist/codemods/stringify-with-path.js +44 -0
- package/dist/codemods/update-default-props.d.ts +7 -0
- package/dist/codemods/update-default-props.js +128 -0
- package/dist/color-math.d.ts +2 -0
- package/dist/color-math.js +13 -0
- package/dist/composition-prompts.d.ts +7 -0
- package/dist/composition-prompts.js +25 -0
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +30 -66
- package/dist/config/audio-codec.d.ts +3 -0
- package/dist/config/audio-codec.js +20 -0
- package/dist/config/bitrate.d.ts +4 -0
- package/dist/config/bitrate.js +21 -0
- package/dist/config/browser-executable.d.ts +0 -0
- package/dist/config/browser-executable.js +0 -0
- package/dist/config/browser.d.ts +1 -3
- package/dist/config/browser.js +2 -12
- package/dist/config/chromium-flags.d.ts +0 -0
- package/dist/config/chromium-flags.js +0 -0
- package/dist/config/codec.d.ts +0 -4
- package/dist/config/codec.js +1 -21
- package/dist/config/concurrency.d.ts +2 -2
- package/dist/config/concurrency.js +0 -0
- package/dist/config/crf.d.ts +1 -2
- package/dist/config/crf.js +1 -9
- package/dist/config/enforce-audio-track.d.ts +0 -0
- package/dist/config/enforce-audio-track.js +0 -0
- package/dist/config/entry-point.d.ts +2 -0
- package/dist/config/entry-point.js +12 -0
- package/dist/config/env-file.d.ts +0 -0
- package/dist/config/env-file.js +0 -0
- package/dist/config/every-nth-frame.d.ts +1 -2
- package/dist/config/every-nth-frame.js +3 -11
- package/dist/config/ffmpeg-override.d.ts +0 -0
- package/dist/config/ffmpeg-override.js +0 -0
- package/dist/config/frame-range.d.ts +0 -0
- package/dist/config/frame-range.js +0 -0
- package/dist/config/height.d.ts +2 -0
- package/dist/config/height.js +14 -0
- package/dist/config/image-format.d.ts +5 -3
- package/dist/config/image-format.js +32 -10
- package/dist/config/image-sequence.d.ts +0 -0
- package/dist/config/image-sequence.js +0 -0
- package/dist/config/index.d.ts +266 -16
- package/dist/config/index.js +77 -71
- package/dist/config/jpeg-quality.d.ts +2 -0
- package/dist/config/jpeg-quality.js +17 -0
- package/dist/config/keyboard-shortcuts.d.ts +0 -0
- package/dist/config/keyboard-shortcuts.js +0 -0
- package/dist/config/log.d.ts +1 -3
- package/dist/config/log.js +2 -9
- package/dist/config/max-timeline-tracks.d.ts +0 -0
- package/dist/config/max-timeline-tracks.js +6 -5
- package/dist/config/muted.d.ts +0 -0
- package/dist/config/muted.js +0 -0
- package/dist/config/number-of-gif-loops.d.ts +2 -3
- package/dist/config/number-of-gif-loops.js +3 -9
- package/dist/config/number-of-shared-audio-tags.d.ts +2 -0
- package/dist/config/number-of-shared-audio-tags.js +12 -0
- package/dist/config/open-browser.d.ts +2 -0
- package/dist/config/open-browser.js +15 -0
- package/dist/config/output-location.d.ts +0 -0
- package/dist/config/output-location.js +0 -0
- package/dist/config/override-webpack.d.ts +1 -1
- package/dist/config/override-webpack.js +0 -0
- package/dist/config/overwrite.d.ts +0 -0
- package/dist/config/overwrite.js +0 -0
- package/dist/config/pixel-format.d.ts +0 -0
- package/dist/config/pixel-format.js +0 -0
- package/dist/config/preview-server.d.ts +0 -0
- package/dist/config/preview-server.js +2 -2
- package/dist/config/prores-profile.d.ts +0 -0
- package/dist/config/prores-profile.js +0 -0
- package/dist/config/public-dir.d.ts +1 -1
- package/dist/config/public-dir.js +0 -0
- package/dist/config/scale.d.ts +2 -1
- package/dist/config/scale.js +0 -0
- package/dist/config/still-frame.d.ts +0 -0
- package/dist/config/still-frame.js +6 -2
- package/dist/config/timeout.d.ts +0 -0
- package/dist/config/timeout.js +1 -1
- package/dist/config/user-agent.d.ts +4 -0
- package/dist/config/user-agent.js +12 -0
- package/dist/config/webpack-caching.d.ts +0 -0
- package/dist/config/webpack-caching.js +0 -0
- package/dist/config/webpack-poll.d.ts +2 -0
- package/dist/config/webpack-poll.js +16 -0
- package/dist/config/width.d.ts +2 -0
- package/dist/config/width.js +16 -0
- package/dist/convert-entry-point-to-serve-url.d.ts +1 -0
- package/dist/convert-entry-point-to-serve-url.js +15 -0
- package/dist/determine-image-format.d.ts +5 -4
- package/dist/determine-image-format.js +17 -4
- package/dist/download-progress.d.ts +1 -1
- package/dist/download-progress.js +7 -2
- package/dist/editor/components/AudioWaveform.d.ts +1 -1
- package/dist/editor/components/AudioWaveform.js +18 -6
- package/dist/editor/components/AudioWaveformBar.d.ts +0 -0
- package/dist/editor/components/AudioWaveformBar.js +0 -0
- package/dist/editor/components/Canvas.d.ts +0 -0
- package/dist/editor/components/Canvas.js +14 -6
- package/dist/editor/components/CanvasOrLoading.d.ts +5 -0
- package/dist/editor/components/CanvasOrLoading.js +69 -0
- package/dist/editor/components/CheckboardToggle.d.ts +0 -0
- package/dist/editor/components/CheckboardToggle.js +2 -1
- 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 +0 -0
- package/dist/editor/components/CompositionSelector.js +2 -4
- package/dist/editor/components/CompositionSelectorItem.d.ts +4 -4
- package/dist/editor/components/CompositionSelectorItem.js +24 -6
- package/dist/editor/components/ControlButton.d.ts +0 -0
- package/dist/editor/components/ControlButton.js +0 -0
- package/dist/editor/components/CopyButton.d.ts +0 -0
- package/dist/editor/components/CopyButton.js +0 -0
- package/dist/editor/components/CurrentComposition.d.ts +0 -0
- package/dist/editor/components/CurrentComposition.js +4 -19
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +51 -0
- package/dist/editor/components/Editor.d.ts +0 -0
- package/dist/editor/components/Editor.js +2 -9
- package/dist/editor/components/EditorContent.d.ts +0 -0
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.d.ts +0 -0
- package/dist/editor/components/EditorContexts.js +10 -71
- package/dist/editor/components/FpsCounter.d.ts +0 -0
- package/dist/editor/components/FpsCounter.js +0 -0
- package/dist/editor/components/FramePersistor.d.ts +0 -0
- package/dist/editor/components/FramePersistor.js +0 -0
- package/dist/editor/components/GlobalKeybindings.d.ts +0 -0
- package/dist/editor/components/GlobalKeybindings.js +24 -1
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/InitialCompositionLoader.js +1 -1
- package/dist/editor/components/InlineAction.d.ts +7 -0
- package/dist/editor/components/InlineAction.js +34 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.d.ts +2 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.js +57 -0
- package/dist/editor/components/LoopToggle.d.ts +0 -0
- package/dist/editor/components/LoopToggle.js +2 -1
- 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 +0 -0
- package/dist/editor/components/Menu/MenuDivider.js +0 -0
- package/dist/editor/components/Menu/MenuItem.d.ts +4 -3
- package/dist/editor/components/Menu/MenuItem.js +21 -4
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -2
- package/dist/editor/components/Menu/MenuSubItem.js +17 -4
- package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
- package/dist/editor/components/Menu/SubMenu.js +1 -1
- 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 +0 -0
- package/dist/editor/components/Menu/portals.js +0 -0
- package/dist/editor/components/Menu/styles.d.ts +5 -0
- package/dist/editor/components/Menu/styles.js +18 -6
- package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
- package/dist/editor/components/MenuBuildIndicator.js +20 -1
- package/dist/editor/components/MenuToolbar.d.ts +0 -0
- package/dist/editor/components/MenuToolbar.js +19 -452
- package/dist/editor/components/ModalContainer.d.ts +2 -0
- package/dist/editor/components/ModalContainer.js +12 -3
- package/dist/editor/components/ModalHeader.d.ts +0 -0
- package/dist/editor/components/ModalHeader.js +6 -2
- 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 +0 -0
- package/dist/editor/components/MuteToggle.js +0 -0
- package/dist/editor/components/NewComposition/CancelButton.d.ts +0 -0
- package/dist/editor/components/NewComposition/CancelButton.js +3 -0
- package/dist/editor/components/NewComposition/ComboBox.d.ts +5 -4
- package/dist/editor/components/NewComposition/ComboBox.js +70 -11
- package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
- package/dist/editor/components/NewComposition/CopyHint.js +1 -1
- package/dist/editor/components/NewComposition/InputDragger.d.ts +6 -1
- package/dist/editor/components/NewComposition/InputDragger.js +36 -11
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -0
- package/dist/editor/components/NewComposition/MenuContent.js +34 -3
- package/dist/editor/components/NewComposition/NewCompAspectRatio.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompCode.js +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewCompDuration.js +5 -3
- package/dist/editor/components/NewComposition/NewComposition.d.ts +0 -0
- package/dist/editor/components/NewComposition/NewComposition.js +15 -9
- package/dist/editor/components/NewComposition/RemInput.d.ts +15 -1
- package/dist/editor/components/NewComposition/RemInput.js +24 -9
- 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 +0 -0
- package/dist/editor/components/NewComposition/ToggleAspectRatio.js +0 -0
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +4 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +20 -9
- package/dist/editor/components/NewComposition/new-comp-layout.d.ts +0 -0
- package/dist/editor/components/NewComposition/new-comp-layout.js +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.d.ts +0 -0
- package/dist/editor/components/NewComposition/render-aspect-ratio.js +0 -0
- package/dist/editor/components/NoRegisterRoot.d.ts +0 -0
- package/dist/editor/components/NoRegisterRoot.js +0 -0
- package/dist/editor/components/Notifications/ColorDot.d.ts +0 -0
- package/dist/editor/components/Notifications/ColorDot.js +0 -0
- package/dist/editor/components/Notifications/Notification.d.ts +0 -0
- package/dist/editor/components/Notifications/Notification.js +0 -0
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +3 -2
- package/dist/editor/components/Notifications/NotificationCenter.js +11 -1
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -4
- package/dist/editor/components/Notifications/ServerDisconnected.js +5 -15
- package/dist/editor/components/OpenEditorButton.d.ts +2 -0
- package/dist/editor/components/OpenEditorButton.js +52 -0
- package/dist/editor/components/PlayPause.d.ts +0 -0
- package/dist/editor/components/PlayPause.js +19 -4
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +6 -0
- package/dist/editor/components/PlaybackRatePersistor.d.ts +0 -0
- package/dist/editor/components/PlaybackRatePersistor.js +0 -0
- package/dist/editor/components/PlaybackRateSelector.d.ts +0 -2
- package/dist/editor/components/PlaybackRateSelector.js +6 -6
- package/dist/editor/components/PlayerEmitterContext.d.ts +4 -0
- package/dist/editor/components/PlayerEmitterContext.js +11 -0
- package/dist/editor/components/Preview.d.ts +0 -1
- package/dist/editor/components/Preview.js +4 -4
- package/dist/editor/components/PreviewToolbar.d.ts +0 -0
- package/dist/editor/components/PreviewToolbar.js +2 -2
- 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 +274 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.d.ts +21 -0
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +111 -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 +107 -0
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/CliCopyButton.js +59 -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 +20 -0
- package/dist/editor/components/RenderModal/DataEditor.js +296 -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 +42 -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/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 +634 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +26 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +59 -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 +24 -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 +10 -0
- package/dist/editor/components/RenderModal/RenderModalInput.js +13 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.js +139 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +28 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.js +54 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +4 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.js +72 -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 +38 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +62 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +33 -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 +17 -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/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 +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +65 -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 +92 -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 +158 -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/input-props-serialization.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.js +42 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +21 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +79 -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 +70 -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/RenderQueueError.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +40 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +43 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +26 -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 +26 -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 +60 -0
- package/dist/editor/components/RenderQueue/actions.js +129 -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 +50 -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 +43 -0
- package/dist/editor/components/ResetZoomButton.d.ts +0 -0
- package/dist/editor/components/ResetZoomButton.js +0 -0
- package/dist/editor/components/RightPanel.d.ts +8 -0
- package/dist/editor/components/RightPanel.js +79 -0
- package/dist/editor/components/SegmentedControl.d.ts +11 -0
- package/dist/editor/components/SegmentedControl.js +64 -0
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +4 -0
- package/dist/editor/components/SetTimelineInOutProvider.js +19 -0
- package/dist/editor/components/SidebarCollapserControls.d.ts +2 -0
- package/dist/editor/components/SidebarCollapserControls.js +135 -0
- package/dist/editor/components/SidebarRenderButton.d.ts +6 -0
- package/dist/editor/components/SidebarRenderButton.js +87 -0
- package/dist/editor/components/SizeSelector.d.ts +0 -1
- package/dist/editor/components/SizeSelector.js +5 -4
- 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 +0 -0
- package/dist/editor/components/Splitter/SplitterContainer.js +1 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +3 -3
- package/dist/editor/components/Splitter/SplitterContext.js +0 -0
- package/dist/editor/components/Splitter/SplitterElement.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterElement.js +1 -0
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +1 -2
- package/dist/editor/components/Splitter/SplitterHandle.js +15 -7
- 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/TimeValue.d.ts +0 -0
- package/dist/editor/components/TimeValue.js +3 -4
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedIndicator.js +6 -6
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedTimelineIndicators.js +0 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.d.ts +1 -0
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +4 -3
- package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
- package/dist/editor/components/Timeline/Timeline.js +17 -10
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +1 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +4 -5
- package/dist/editor/components/Timeline/TimelineDragHandler.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineDragHandler.js +26 -11
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +7 -5
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +9 -3
- package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineList.js +0 -0
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineListItem.js +10 -1
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +4 -3
- package/dist/editor/components/Timeline/TimelineScrollable.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineScrollable.js +2 -1
- package/dist/editor/components/Timeline/TimelineSequence.d.ts +0 -1
- package/dist/editor/components/Timeline/TimelineSequence.js +25 -33
- package/dist/editor/components/Timeline/TimelineSequenceFrame.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +2 -1
- package/dist/editor/components/Timeline/TimelineSlider.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +17 -4
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +0 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +21 -23
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -1
- package/dist/editor/components/Timeline/TimelineTracks.js +2 -2
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -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 +0 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +4 -5
- package/dist/editor/components/Timeline/imperative-state.d.ts +0 -4
- package/dist/editor/components/Timeline/imperative-state.js +13 -13
- package/dist/editor/components/Timeline/is-collapsed.d.ts +0 -0
- package/dist/editor/components/Timeline/is-collapsed.js +2 -3
- package/dist/editor/components/Timeline/timeline-refs.d.ts +0 -0
- package/dist/editor/components/Timeline/timeline-refs.js +0 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +5 -6
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +2 -2
- package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +0 -0
- package/dist/editor/components/TimelineInOutToggle.js +8 -4
- package/dist/editor/components/TopPanel.d.ts +1 -0
- package/dist/editor/components/TopPanel.js +31 -17
- package/dist/editor/components/UpdateCheck.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.js +4 -5
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
- package/dist/editor/components/UpdateModal/UpdateModal.js +0 -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 +0 -1
- package/dist/editor/components/ZoomPersistor.js +2 -3
- 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 +3 -1
- package/dist/editor/components/layout.js +9 -7
- package/dist/editor/helpers/calculate-timeline.d.ts +0 -4
- package/dist/editor/helpers/calculate-timeline.js +1 -1
- package/dist/editor/helpers/checkerboard-background.d.ts +0 -0
- package/dist/editor/helpers/checkerboard-background.js +0 -0
- package/dist/editor/helpers/client-id.d.ts +17 -0
- package/dist/{preview-server/dev-middleware/is-color-supported.js → editor/helpers/client-id.js} +21 -12
- package/dist/editor/helpers/colors.d.ts +6 -2
- package/dist/editor/helpers/colors.js +9 -4
- package/dist/editor/helpers/convert-env-variables.d.ts +2 -0
- package/dist/editor/helpers/convert-env-variables.js +20 -0
- package/dist/editor/helpers/copy-text.d.ts +0 -0
- package/dist/editor/helpers/copy-text.js +0 -0
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -3
- package/dist/editor/helpers/create-folder-tree.js +3 -4
- package/dist/editor/helpers/get-effective-translation.d.ts +0 -0
- package/dist/editor/helpers/get-effective-translation.js +0 -0
- package/dist/editor/helpers/get-left-of-timeline-slider.d.ts +0 -4
- package/dist/editor/helpers/get-left-of-timeline-slider.js +1 -24
- package/dist/editor/helpers/get-sequence-visible-range.d.ts +0 -0
- package/dist/editor/helpers/get-sequence-visible-range.js +0 -0
- package/dist/editor/helpers/get-timeline-nestedness.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-nestedness.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-sequence-hash.js +0 -0
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-layout.js +1 -1
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +4 -3
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
- package/dist/editor/helpers/is-composition-still.d.ts +3 -2
- package/dist/editor/helpers/is-composition-still.js +3 -0
- package/dist/editor/helpers/is-current-selected-still.d.ts +0 -0
- package/dist/editor/helpers/is-current-selected-still.js +3 -4
- package/dist/editor/helpers/noop.d.ts +0 -0
- package/dist/editor/helpers/noop.js +0 -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 +1 -1
- package/dist/editor/helpers/persist-open-folders.js +0 -0
- package/dist/editor/helpers/pick-color.d.ts +0 -0
- package/dist/editor/helpers/pick-color.js +0 -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 +10 -0
- package/dist/editor/helpers/render-modal-sections.js +32 -0
- package/dist/editor/helpers/timeline-layout.d.ts +0 -0
- package/dist/editor/helpers/timeline-layout.js +0 -0
- package/dist/editor/helpers/use-breakpoint.d.ts +1 -0
- package/dist/editor/helpers/{use-compact-ui.js → use-breakpoint.js} +4 -5
- 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 +2 -0
- package/dist/editor/helpers/use-keybinding.js +13 -2
- package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
- package/dist/editor/helpers/use-menu-structure.js +705 -0
- package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
- package/dist/editor/helpers/validate-new-comp-data.js +0 -0
- package/dist/editor/icons/Checkmark.d.ts +0 -0
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/audio.d.ts +2 -0
- package/dist/editor/icons/audio.js +6 -0
- package/dist/editor/icons/caret.d.ts +4 -1
- package/dist/editor/icons/caret.js +17 -1
- package/dist/editor/icons/data.d.ts +2 -0
- package/dist/editor/icons/data.js +8 -0
- package/dist/editor/icons/file.d.ts +2 -0
- package/dist/editor/icons/file.js +6 -0
- package/dist/editor/icons/folder.d.ts +6 -2
- package/dist/editor/icons/folder.js +4 -4
- 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 +0 -0
- package/dist/editor/icons/jump-to-start.js +0 -0
- package/dist/editor/icons/keys.d.ts +0 -0
- package/dist/editor/icons/keys.js +0 -0
- package/dist/editor/icons/lock.d.ts +0 -0
- package/dist/editor/icons/lock.js +0 -0
- package/dist/editor/icons/media-volume.d.ts +0 -0
- package/dist/editor/icons/media-volume.js +2 -1
- package/dist/editor/icons/minus.d.ts +0 -0
- package/dist/editor/icons/minus.js +0 -0
- package/dist/editor/icons/pause.d.ts +0 -0
- package/dist/editor/icons/pause.js +0 -0
- package/dist/editor/icons/play.d.ts +0 -0
- package/dist/editor/icons/play.js +0 -0
- package/dist/editor/icons/plus.d.ts +3 -1
- package/dist/editor/icons/plus.js +2 -2
- 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 +0 -0
- package/dist/editor/icons/step-back.js +0 -0
- package/dist/editor/icons/step-forward.d.ts +0 -0
- package/dist/editor/icons/step-forward.js +0 -0
- package/dist/editor/icons/still.d.ts +3 -1
- package/dist/editor/icons/still.js +2 -2
- package/dist/editor/icons/timelineInOutPointer.d.ts +0 -0
- package/dist/editor/icons/timelineInOutPointer.js +0 -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 +0 -0
- package/dist/editor/state/aspect-ratio-locked.js +0 -0
- package/dist/editor/state/checkerboard.d.ts +1 -1
- package/dist/editor/state/checkerboard.js +0 -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 +1 -1
- package/dist/editor/state/folders.js +0 -0
- package/dist/editor/state/highest-z-index.d.ts +1 -1
- package/dist/editor/state/highest-z-index.js +0 -0
- package/dist/editor/state/in-out.d.ts +2 -2
- package/dist/editor/state/in-out.js +0 -0
- package/dist/editor/state/input-dragger-click-lock.d.ts +0 -0
- package/dist/editor/state/input-dragger-click-lock.js +0 -0
- package/dist/editor/state/keybindings.d.ts +5 -4
- package/dist/editor/state/keybindings.js +0 -0
- package/dist/editor/state/loop.d.ts +0 -0
- package/dist/editor/state/loop.js +0 -0
- package/dist/editor/state/marks.d.ts +0 -0
- package/dist/editor/state/marks.js +0 -0
- package/dist/editor/state/modals.d.ts +47 -4
- package/dist/editor/state/modals.js +0 -0
- package/dist/editor/state/mute.d.ts +0 -0
- package/dist/editor/state/mute.js +0 -0
- package/dist/editor/state/playbackrate.d.ts +0 -0
- package/dist/editor/state/playbackrate.js +0 -0
- package/dist/editor/state/preview-size.d.ts +1 -2
- package/dist/editor/state/preview-size.js +15 -6
- package/dist/editor/state/render-frame.d.ts +0 -0
- package/dist/editor/state/render-frame.js +0 -0
- package/dist/editor/state/sidebar.d.ts +9 -5
- package/dist/editor/state/sidebar.js +42 -13
- package/dist/editor/state/timeline-ref.d.ts +2 -1
- package/dist/editor/state/timeline-ref.js +0 -0
- package/dist/editor/state/timeline-zoom.d.ts +0 -0
- package/dist/editor/state/timeline-zoom.js +0 -0
- package/dist/editor/state/timeline.d.ts +0 -0
- package/dist/editor/state/timeline.js +0 -0
- package/dist/editor/state/z-index.d.ts +0 -5
- package/dist/editor/state/z-index.js +40 -16
- package/dist/entry-point.d.ts +5 -0
- package/dist/entry-point.js +89 -0
- package/dist/event-source-events.d.ts +22 -1
- package/dist/event-source-events.js +0 -0
- package/dist/event-source.d.ts +2 -0
- package/dist/event-source.js +37 -7
- package/dist/ffmpeg.d.ts +2 -0
- package/dist/ffmpeg.js +30 -0
- package/dist/file-watcher.d.ts +9 -0
- package/dist/file-watcher.js +35 -0
- package/dist/format-bytes.d.ts +0 -0
- package/dist/format-bytes.js +0 -0
- package/dist/get-audio-codec.d.ts +2 -0
- package/dist/get-audio-codec.js +10 -0
- package/dist/get-cli-options.d.ts +13 -19
- package/dist/get-cli-options.js +27 -89
- package/dist/get-composition-id.d.ts +22 -1
- package/dist/get-composition-id.js +71 -7
- package/dist/get-composition-with-dimension-override.d.ts +24 -0
- package/dist/get-composition-with-dimension-override.js +30 -0
- package/dist/get-config-file-name.d.ts +0 -2
- package/dist/get-config-file-name.js +11 -11
- package/dist/get-default-out-name.d.ts +5 -0
- package/dist/get-default-out-name.js +10 -0
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +51 -60
- package/dist/get-filename.d.ts +6 -3
- package/dist/get-filename.js +12 -25
- package/dist/get-final-output-codec.d.ts +2 -1
- package/dist/get-final-output-codec.js +31 -34
- package/dist/get-input-props.d.ts +1 -1
- package/dist/get-input-props.js +18 -16
- package/dist/get-latest-remotion-version.d.ts +0 -0
- package/dist/get-latest-remotion-version.js +0 -0
- package/dist/get-network-address.d.ts +1 -0
- package/dist/get-network-address.js +16 -0
- package/dist/handle-common-errors.d.ts +2 -1
- package/dist/handle-common-errors.js +25 -3
- package/dist/image-formats.d.ts +5 -2
- package/dist/image-formats.js +16 -6
- package/dist/index.d.ts +140 -33
- package/dist/index.js +49 -29
- package/dist/initialize-cli.d.ts +0 -0
- package/dist/initialize-cli.js +0 -0
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +4 -5
- package/dist/list-of-remotion-packages.d.ts +0 -0
- package/dist/list-of-remotion-packages.js +9 -0
- package/dist/load-config.d.ts +0 -0
- package/dist/load-config.js +15 -25
- package/dist/log.d.ts +15 -0
- package/dist/log.js +1 -24
- package/dist/make-progress-bar.d.ts +0 -0
- package/dist/make-progress-bar.js +14 -1
- package/dist/parse-command-line.d.ts +23 -7
- package/dist/parse-command-line.js +47 -35
- package/dist/preview-server/api-routes.d.ts +4 -0
- package/dist/preview-server/api-routes.js +23 -0
- package/dist/preview-server/api-types.d.ts +26 -0
- package/dist/preview-server/api-types.js +2 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +2 -2
- package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +1 -1
- package/dist/preview-server/dev-middleware/get-paths.js +0 -0
- package/dist/preview-server/dev-middleware/index.d.ts +0 -0
- package/dist/preview-server/dev-middleware/index.js +0 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +2 -3
- package/dist/preview-server/dev-middleware/middleware.js +9 -11
- package/dist/preview-server/dev-middleware/range-parser.d.ts +2 -2
- package/dist/preview-server/dev-middleware/range-parser.js +0 -0
- package/dist/preview-server/dev-middleware/ready.d.ts +0 -0
- package/dist/preview-server/dev-middleware/ready.js +0 -0
- package/dist/preview-server/dev-middleware/setup-hooks.d.ts +0 -0
- package/dist/preview-server/dev-middleware/setup-hooks.js +17 -6
- package/dist/preview-server/dev-middleware/setup-output-filesystem.d.ts +0 -0
- package/dist/preview-server/dev-middleware/setup-output-filesystem.js +0 -0
- package/dist/preview-server/dev-middleware/types.d.ts +1 -1
- package/dist/preview-server/dev-middleware/types.js +0 -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 +0 -0
- package/dist/preview-server/error-overlay/entry-basic.js +2 -2
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/format-warning.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +3 -3
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/resolve-file-source.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/stack-trace-limit.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-error.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/effects/unhandled-rejection.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/index.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +5 -5
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-lines-around.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-source-map.js +1 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/get-stack-frames.js +1 -3
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.d.ts +3 -3
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +42 -32
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/parser.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.d.ts +4 -4
- package/dist/preview-server/error-overlay/react-overlay/utils/stack-frame.js +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.d.ts +0 -0
- package/dist/preview-server/error-overlay/react-overlay/utils/unmapper.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +8 -4
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +12 -8
- 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 +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +30 -12
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/DismissButton.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +6 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +5 -5
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorMessage.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +4 -3
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +4 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +4 -9
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +2 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +1 -1
- 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 +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +18 -3
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Symbolicating.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/format-location.js +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.d.ts +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/get-help-link.js +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/index.js +0 -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 +3 -3
- package/dist/preview-server/get-package-manager.js +13 -4
- package/dist/preview-server/handler.d.ts +9 -0
- package/dist/preview-server/handler.js +34 -0
- package/dist/preview-server/hot-middleware/client.d.ts +1 -1
- package/dist/preview-server/hot-middleware/client.js +2 -2
- package/dist/preview-server/hot-middleware/index.d.ts +95 -1
- package/dist/preview-server/hot-middleware/index.js +3 -4
- package/dist/preview-server/hot-middleware/process-update.d.ts +0 -0
- package/dist/preview-server/hot-middleware/process-update.js +5 -6
- package/dist/preview-server/hot-middleware/types.d.ts +4 -4
- package/dist/preview-server/hot-middleware/types.js +0 -0
- package/dist/preview-server/live-events.d.ts +4 -2
- package/dist/preview-server/live-events.js +36 -2
- 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 +1 -1
- package/dist/preview-server/project-info.js +14 -6
- package/dist/preview-server/public-folder.d.ts +12 -0
- package/dist/preview-server/public-folder.js +55 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +10 -0
- package/dist/preview-server/render-queue/get-default-video-contexts.js +13 -0
- package/dist/preview-server/render-queue/job.d.ts +156 -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 +95 -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 +43 -0
- package/dist/preview-server/render-queue/process-still.d.ts +8 -0
- package/dist/preview-server/render-queue/process-still.js +46 -0
- package/dist/preview-server/render-queue/process-video.d.ts +8 -0
- package/dist/preview-server/render-queue/process-video.js +63 -0
- package/dist/preview-server/render-queue/queue.d.ts +9 -0
- package/dist/preview-server/render-queue/queue.js +212 -0
- package/dist/preview-server/routes/add-render.d.ts +3 -0
- package/dist/preview-server/routes/add-render.js +76 -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/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 +35 -0
- package/dist/preview-server/routes.d.ts +6 -4
- package/dist/preview-server/routes.js +90 -35
- package/dist/preview-server/serve-static.d.ts +1 -1
- package/dist/preview-server/serve-static.js +8 -7
- package/dist/preview-server/start-server.d.ts +8 -2
- package/dist/preview-server/start-server.js +58 -29
- package/dist/preview-server/update-available.d.ts +2 -10
- package/dist/preview-server/update-available.js +2 -2
- package/dist/previewEntry.d.ts +0 -0
- package/dist/previewEntry.js +2 -4
- package/dist/print-compositions.d.ts +2 -0
- package/dist/print-compositions.js +50 -0
- package/dist/print-error.d.ts +2 -1
- package/dist/print-error.js +12 -7
- package/dist/print-help.d.ts +0 -0
- package/dist/print-help.js +14 -6
- package/dist/progress-bar.d.ts +29 -36
- package/dist/progress-bar.js +147 -33
- package/dist/progress-types.d.ts +32 -0
- package/dist/progress-types.js +17 -0
- package/dist/render-flows/render.d.ts +47 -0
- package/dist/render-flows/render.js +327 -0
- package/dist/render-flows/still.d.ts +30 -0
- package/dist/render-flows/still.js +193 -0
- package/dist/render.d.ts +1 -1
- package/dist/render.js +50 -226
- package/dist/required-chromium-options.d.ts +3 -0
- package/dist/required-chromium-options.js +2 -0
- package/dist/resolve-from.d.ts +0 -0
- package/dist/resolve-from.js +5 -5
- package/dist/server-ready-comment.d.ts +2 -0
- package/dist/server-ready-comment.js +13 -0
- package/dist/setup-cache.d.ts +14 -10
- package/dist/setup-cache.js +91 -21
- package/dist/should-use-non-overlaying-logger.d.ts +4 -0
- package/dist/should-use-non-overlaying-logger.js +12 -0
- package/dist/show-compositions-picker.d.ts +8 -0
- package/dist/show-compositions-picker.js +51 -0
- package/dist/smooth-zoom.d.ts +0 -0
- package/dist/smooth-zoom.js +0 -0
- package/dist/step.d.ts +1 -1
- package/dist/step.js +0 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +38 -135
- package/dist/studio.d.ts +1 -0
- package/dist/studio.js +142 -0
- package/dist/truthy.d.ts +1 -1
- package/dist/truthy.js +0 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +15 -7
- package/dist/user-passed-output-location.d.ts +5 -2
- package/dist/user-passed-output-location.js +14 -10
- package/dist/versions.d.ts +0 -0
- package/dist/versions.js +2 -2
- package/dist/watch-root-file.d.ts +1 -0
- package/dist/watch-root-file.js +22 -0
- package/package.json +87 -74
- package/styles/styles.css +15 -4
- package/.prettierrc.js +0 -14
- package/dist/ansi/ansi-regex.d.ts +0 -2
- package/dist/ansi/ansi-regex.js +0 -18
- package/dist/check-version.d.ts +0 -1
- package/dist/check-version.js +0 -14
- package/dist/config/ffmpeg-executable.d.ts +0 -5
- package/dist/config/ffmpeg-executable.js +0 -21
- package/dist/config/quality.d.ts +0 -2
- package/dist/config/quality.js +0 -17
- package/dist/editor/components/ClipboardIcon.d.ts +0 -2
- package/dist/editor/components/ClipboardIcon.js +0 -12
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -4
- package/dist/editor/components/CollapsedCompositionSelector.js +0 -39
- package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -2
- package/dist/editor/components/KeyboardShortcutsModal.js +0 -67
- package/dist/editor/components/RichTimelineToggle.d.ts +0 -2
- package/dist/editor/components/RichTimelineToggle.js +0 -29
- package/dist/editor/components/Thumbnail.d.ts +0 -8
- package/dist/editor/components/Thumbnail.js +0 -76
- package/dist/editor/helpers/use-compact-ui.d.ts +0 -1
- package/dist/editor/icons/film.d.ts +0 -3
- package/dist/editor/icons/film.js +0 -8
- package/dist/editor/icons/timeline.d.ts +0 -3
- package/dist/editor/icons/timeline.js +0 -9
- package/dist/editor/state/rich-timeline.d.ts +0 -9
- package/dist/editor/state/rich-timeline.js +0 -17
- package/dist/find-closest-package-json.d.ts +0 -2
- package/dist/find-closest-package-json.js +0 -35
- package/dist/get-render-media-options.d.ts +0 -7
- package/dist/get-render-media-options.js +0 -44
- package/dist/initialize-render-cli.d.ts +0 -1
- package/dist/initialize-render-cli.js +0 -22
- package/dist/is-javascript.d.ts +0 -2
- package/dist/is-javascript.js +0 -9
- package/dist/preview-server/dev-middleware/is-color-supported.d.ts +0 -1
- package/dist/preview-server/hot-middleware/strip-ansi.d.ts +0 -1
- package/dist/preview-server/hot-middleware/strip-ansi.js +0 -21
- package/dist/preview.d.ts +0 -1
- package/dist/preview.js +0 -75
- package/dist/validate-ffmpeg-version.d.ts +0 -3
- package/dist/validate-ffmpeg-version.js +0 -17
- package/dist/validate-image-format.d.ts +0 -2
- package/dist/validate-image-format.js +0 -15
- package/dist/warn-about-ffmpeg-version.d.ts +0 -5
- package/dist/warn-about-ffmpeg-version.js +0 -38
- package/tsconfig.json +0 -17
- package/vitest.config.ts +0 -9
package/dist/index.js
CHANGED
|
@@ -13,74 +13,91 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
16
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.CliInternals = exports.
|
|
20
|
+
exports.CliInternals = exports.cli = void 0;
|
|
18
21
|
const renderer_1 = require("@remotion/renderer");
|
|
22
|
+
const minimist_1 = __importDefault(require("minimist"));
|
|
19
23
|
const benchmark_1 = require("./benchmark");
|
|
20
24
|
const chalk_1 = require("./chalk");
|
|
21
|
-
const
|
|
25
|
+
const cleanup_before_quit_1 = require("./cleanup-before-quit");
|
|
26
|
+
const cloudrun_command_1 = require("./cloudrun-command");
|
|
22
27
|
const compositions_1 = require("./compositions");
|
|
23
|
-
const
|
|
28
|
+
const config_1 = require("./config");
|
|
24
29
|
const determine_image_format_1 = require("./determine-image-format");
|
|
25
30
|
const download_progress_1 = require("./download-progress");
|
|
26
|
-
const
|
|
31
|
+
const entry_point_1 = require("./entry-point");
|
|
32
|
+
const ffmpeg_1 = require("./ffmpeg");
|
|
27
33
|
const format_bytes_1 = require("./format-bytes");
|
|
28
34
|
const get_cli_options_1 = require("./get-cli-options");
|
|
35
|
+
const get_composition_with_dimension_override_1 = require("./get-composition-with-dimension-override");
|
|
29
36
|
const get_config_file_name_1 = require("./get-config-file-name");
|
|
37
|
+
const get_final_output_codec_1 = require("./get-final-output-codec");
|
|
30
38
|
const handle_common_errors_1 = require("./handle-common-errors");
|
|
39
|
+
const image_formats_1 = require("./image-formats");
|
|
31
40
|
const initialize_cli_1 = require("./initialize-cli");
|
|
32
41
|
const lambda_command_1 = require("./lambda-command");
|
|
33
|
-
const
|
|
42
|
+
const list_of_remotion_packages_1 = require("./list-of-remotion-packages");
|
|
34
43
|
const log_1 = require("./log");
|
|
35
44
|
const make_progress_bar_1 = require("./make-progress-bar");
|
|
36
45
|
const parse_command_line_1 = require("./parse-command-line");
|
|
37
|
-
const
|
|
46
|
+
const print_compositions_1 = require("./print-compositions");
|
|
38
47
|
const print_help_1 = require("./print-help");
|
|
39
48
|
const progress_bar_1 = require("./progress-bar");
|
|
40
49
|
const render_1 = require("./render");
|
|
50
|
+
const should_use_non_overlaying_logger_1 = require("./should-use-non-overlaying-logger");
|
|
41
51
|
const still_1 = require("./still");
|
|
52
|
+
const studio_1 = require("./studio");
|
|
42
53
|
const upgrade_1 = require("./upgrade");
|
|
43
54
|
const versions_1 = require("./versions");
|
|
44
55
|
const cli = async () => {
|
|
45
|
-
|
|
46
|
-
const args = process.argv;
|
|
47
|
-
const command = args[2];
|
|
56
|
+
const [command, ...args] = parse_command_line_1.parsedCli._;
|
|
48
57
|
if (parse_command_line_1.parsedCli.help) {
|
|
49
58
|
(0, print_help_1.printHelp)();
|
|
50
59
|
process.exit(0);
|
|
51
60
|
}
|
|
52
|
-
const remotionRoot =
|
|
53
|
-
// To check node version and to warn if node version is <12.10.0
|
|
54
|
-
(0, check_version_1.checkNodeVersion)();
|
|
61
|
+
const remotionRoot = renderer_1.RenderInternals.findRemotionRoot();
|
|
55
62
|
if (command !== versions_1.VERSIONS_COMMAND) {
|
|
56
63
|
await (0, versions_1.validateVersionsBeforeCommand)(remotionRoot);
|
|
57
64
|
}
|
|
58
65
|
const errorSymbolicationLock = renderer_1.RenderInternals.registerErrorSymbolicationLock();
|
|
66
|
+
(0, cleanup_before_quit_1.handleCtrlC)();
|
|
59
67
|
await (0, initialize_cli_1.initializeCli)(remotionRoot);
|
|
60
68
|
try {
|
|
61
69
|
if (command === 'compositions') {
|
|
62
|
-
await (0, compositions_1.listCompositionsCommand)(remotionRoot);
|
|
70
|
+
await (0, compositions_1.listCompositionsCommand)(remotionRoot, args);
|
|
63
71
|
}
|
|
64
|
-
else if (command === 'preview') {
|
|
65
|
-
await (0,
|
|
72
|
+
else if (command === 'preview' || command === 'studio') {
|
|
73
|
+
await (0, studio_1.studioCommand)(remotionRoot, args);
|
|
66
74
|
}
|
|
67
75
|
else if (command === 'lambda') {
|
|
68
|
-
await (0, lambda_command_1.lambdaCommand)(remotionRoot);
|
|
76
|
+
await (0, lambda_command_1.lambdaCommand)(remotionRoot, args);
|
|
77
|
+
}
|
|
78
|
+
else if (command === 'cloudrun') {
|
|
79
|
+
await (0, cloudrun_command_1.cloudrunCommand)(remotionRoot, args);
|
|
69
80
|
}
|
|
70
81
|
else if (command === 'render') {
|
|
71
|
-
await (0, render_1.render)(remotionRoot);
|
|
82
|
+
await (0, render_1.render)(remotionRoot, args);
|
|
72
83
|
}
|
|
73
84
|
else if (command === 'still') {
|
|
74
|
-
await (0, still_1.still)(remotionRoot);
|
|
85
|
+
await (0, still_1.still)(remotionRoot, args);
|
|
86
|
+
}
|
|
87
|
+
else if (command === 'ffmpeg') {
|
|
88
|
+
(0, ffmpeg_1.ffmpegCommand)(remotionRoot, process.argv.slice(3));
|
|
89
|
+
}
|
|
90
|
+
else if (command === 'ffprobe') {
|
|
91
|
+
(0, ffmpeg_1.ffprobeCommand)(remotionRoot, process.argv.slice(3));
|
|
75
92
|
}
|
|
76
93
|
else if (command === 'upgrade') {
|
|
77
|
-
await (0, upgrade_1.upgrade)(remotionRoot);
|
|
94
|
+
await (0, upgrade_1.upgrade)(remotionRoot, parse_command_line_1.parsedCli['package-manager']);
|
|
78
95
|
}
|
|
79
96
|
else if (command === versions_1.VERSIONS_COMMAND) {
|
|
80
97
|
await (0, versions_1.versionsCommand)(remotionRoot);
|
|
81
98
|
}
|
|
82
99
|
else if (command === 'benchmark') {
|
|
83
|
-
await (0, benchmark_1.benchmarkCommand)(remotionRoot,
|
|
100
|
+
await (0, benchmark_1.benchmarkCommand)(remotionRoot, args);
|
|
84
101
|
}
|
|
85
102
|
else if (command === 'help') {
|
|
86
103
|
(0, print_help_1.printHelp)();
|
|
@@ -96,26 +113,23 @@ const cli = async () => {
|
|
|
96
113
|
}
|
|
97
114
|
catch (err) {
|
|
98
115
|
log_1.Log.info();
|
|
99
|
-
await (0, handle_common_errors_1.handleCommonError)(err);
|
|
116
|
+
await (0, handle_common_errors_1.handleCommonError)(err, config_1.ConfigInternals.Logging.getLogLevel());
|
|
117
|
+
(0, cleanup_before_quit_1.cleanupBeforeQuit)();
|
|
100
118
|
process.exit(1);
|
|
101
119
|
}
|
|
102
120
|
finally {
|
|
103
121
|
renderer_1.RenderInternals.unlockErrorSymbolicationLock(errorSymbolicationLock);
|
|
122
|
+
(0, cleanup_before_quit_1.cleanupBeforeQuit)();
|
|
104
123
|
}
|
|
105
124
|
};
|
|
106
125
|
exports.cli = cli;
|
|
107
|
-
var index_2 = require("./config/index");
|
|
108
|
-
Object.defineProperty(exports, "ConfigInternals", { enumerable: true, get: function () { return index_2.ConfigInternals; } });
|
|
109
|
-
Object.defineProperty(exports, "overrideRemotion", { enumerable: true, get: function () { return index_2.overrideRemotion; } });
|
|
110
126
|
__exportStar(require("./render"), exports);
|
|
111
127
|
exports.CliInternals = {
|
|
112
128
|
createOverwriteableCliOutput: progress_bar_1.createOverwriteableCliOutput,
|
|
113
129
|
chalk: chalk_1.chalk,
|
|
114
130
|
makeProgressBar: make_progress_bar_1.makeProgressBar,
|
|
115
131
|
Log: log_1.Log,
|
|
116
|
-
loadConfigFile: load_config_1.loadConfigFile,
|
|
117
132
|
getCliOptions: get_cli_options_1.getCliOptions,
|
|
118
|
-
parseCommandLine: parse_command_line_1.parseCommandLine,
|
|
119
133
|
loadConfig: get_config_file_name_1.loadConfig,
|
|
120
134
|
initializeCli: initialize_cli_1.initializeCli,
|
|
121
135
|
BooleanFlags: parse_command_line_1.BooleanFlags,
|
|
@@ -124,7 +138,13 @@ exports.CliInternals = {
|
|
|
124
138
|
handleCommonError: handle_common_errors_1.handleCommonError,
|
|
125
139
|
formatBytes: format_bytes_1.formatBytes,
|
|
126
140
|
getFileSizeDownloadBar: download_progress_1.getFileSizeDownloadBar,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
141
|
+
determineFinalStillImageFormat: determine_image_format_1.determineFinalStillImageFormat,
|
|
142
|
+
minimist: minimist_1.default,
|
|
143
|
+
findEntryPoint: entry_point_1.findEntryPoint,
|
|
144
|
+
getVideoImageFormat: image_formats_1.getVideoImageFormat,
|
|
145
|
+
printCompositions: print_compositions_1.printCompositions,
|
|
146
|
+
getFinalOutputCodec: get_final_output_codec_1.getFinalOutputCodec,
|
|
147
|
+
listOfRemotionPackages: list_of_remotion_packages_1.listOfRemotionPackages,
|
|
148
|
+
shouldUseNonOverlayingLogger: should_use_non_overlaying_logger_1.shouldUseNonOverlayingLogger,
|
|
149
|
+
getCompositionWithDimensionOverride: get_composition_with_dimension_override_1.getCompositionWithDimensionOverride,
|
|
130
150
|
};
|
package/dist/initialize-cli.d.ts
CHANGED
|
File without changes
|
package/dist/initialize-cli.js
CHANGED
|
File without changes
|
package/dist/lambda-command.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const lambdaCommand: (remotionRoot: string) => Promise<never>;
|
|
1
|
+
export declare const lambdaCommand: (remotionRoot: string, args: string[]) => Promise<never>;
|
package/dist/lambda-command.js
CHANGED
|
@@ -2,26 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.lambdaCommand = void 0;
|
|
4
4
|
const log_1 = require("./log");
|
|
5
|
-
const parse_command_line_1 = require("./parse-command-line");
|
|
6
5
|
const get_package_manager_1 = require("./preview-server/get-package-manager");
|
|
7
6
|
const update_available_1 = require("./preview-server/update-available");
|
|
8
|
-
const lambdaCommand = async (remotionRoot) => {
|
|
7
|
+
const lambdaCommand = async (remotionRoot, args) => {
|
|
9
8
|
try {
|
|
10
9
|
const path = require.resolve('@remotion/lambda', {
|
|
11
10
|
paths: [remotionRoot],
|
|
12
11
|
});
|
|
13
12
|
const { LambdaInternals } = require(path);
|
|
14
|
-
await LambdaInternals.executeCommand(
|
|
13
|
+
await LambdaInternals.executeCommand(args, remotionRoot);
|
|
15
14
|
process.exit(0);
|
|
16
15
|
}
|
|
17
16
|
catch (err) {
|
|
18
|
-
const manager = (0, get_package_manager_1.getPackageManager)(remotionRoot);
|
|
17
|
+
const manager = (0, get_package_manager_1.getPackageManager)(remotionRoot, undefined);
|
|
19
18
|
const installCommand = manager === 'unknown' ? 'npm i' : manager.installCommand;
|
|
20
19
|
log_1.Log.error(err);
|
|
21
20
|
log_1.Log.error('Remotion Lambda is not installed.');
|
|
22
21
|
log_1.Log.info('');
|
|
23
22
|
log_1.Log.info('You can install it using:');
|
|
24
|
-
log_1.Log.info(`${installCommand}
|
|
23
|
+
log_1.Log.info(`${installCommand} @remotion/lambda@${(0, update_available_1.getRemotionVersion)()}`);
|
|
25
24
|
process.exit(1);
|
|
26
25
|
}
|
|
27
26
|
};
|
|
File without changes
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.listOfRemotionPackages = void 0;
|
|
4
|
+
// Keep in sync with create-video
|
|
4
5
|
exports.listOfRemotionPackages = [
|
|
5
6
|
'@remotion/bundler',
|
|
6
7
|
'@remotion/cli',
|
|
7
8
|
'@remotion/eslint-config',
|
|
9
|
+
'@remotion/eslint-plugin',
|
|
8
10
|
'@remotion/renderer',
|
|
9
11
|
'@remotion/skia',
|
|
10
12
|
'@remotion/lottie',
|
|
11
13
|
'@remotion/media-utils',
|
|
14
|
+
'@remotion/motion-blur',
|
|
15
|
+
'@remotion/google-fonts',
|
|
16
|
+
'@remotion/noise',
|
|
12
17
|
'@remotion/paths',
|
|
13
18
|
'@remotion/babel-loader',
|
|
14
19
|
'@remotion/lambda',
|
|
15
20
|
'@remotion/player',
|
|
16
21
|
'@remotion/preload',
|
|
17
22
|
'@remotion/three',
|
|
23
|
+
'@remotion/rive',
|
|
18
24
|
'@remotion/gif',
|
|
25
|
+
'@remotion/shapes',
|
|
26
|
+
'@remotion/zod-types',
|
|
27
|
+
'@remotion/tailwind',
|
|
19
28
|
'remotion',
|
|
20
29
|
];
|
package/dist/load-config.d.ts
CHANGED
|
File without changes
|
package/dist/load-config.js
CHANGED
|
@@ -5,38 +5,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.loadConfigFile = void 0;
|
|
7
7
|
const bundler_1 = require("@remotion/bundler");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const worker_threads_1 = require("worker_threads");
|
|
8
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
10
|
+
const node_worker_threads_1 = require("node:worker_threads");
|
|
12
11
|
const log_1 = require("./log");
|
|
13
12
|
const loadConfigFile = async (remotionRoot, configFileName, isJavascript) => {
|
|
14
|
-
const resolved =
|
|
15
|
-
const tsconfigJson =
|
|
16
|
-
if (!isJavascript && !
|
|
13
|
+
const resolved = node_path_1.default.resolve(remotionRoot, configFileName);
|
|
14
|
+
const tsconfigJson = node_path_1.default.join(remotionRoot, 'tsconfig.json');
|
|
15
|
+
if (!isJavascript && !node_fs_1.default.existsSync(tsconfigJson)) {
|
|
17
16
|
log_1.Log.error('Could not find a tsconfig.json file in your project. Did you delete it? Create a tsconfig.json in the root of your project. Copy the default file from https://github.com/remotion-dev/template-helloworld/blob/main/tsconfig.json.');
|
|
18
17
|
log_1.Log.error('The root directory is:', remotionRoot);
|
|
19
18
|
process.exit(1);
|
|
20
19
|
}
|
|
21
|
-
const
|
|
20
|
+
const virtualOutfile = 'bundle.js';
|
|
22
21
|
const result = await bundler_1.BundlerInternals.esbuild.build({
|
|
23
22
|
platform: 'node',
|
|
24
|
-
target: '
|
|
23
|
+
target: 'node16',
|
|
25
24
|
bundle: true,
|
|
26
25
|
entryPoints: [resolved],
|
|
27
26
|
tsconfig: isJavascript ? undefined : tsconfigJson,
|
|
28
27
|
absWorkingDir: remotionRoot,
|
|
29
|
-
outfile:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// Dependencies of babel-loader that trigger a warning when used
|
|
33
|
-
'react-refresh/babel',
|
|
34
|
-
'@babel/plugin-proposal-class-properties',
|
|
35
|
-
'@babel/preset-typescript',
|
|
36
|
-
'@babel/preset-react',
|
|
37
|
-
'babel-loader',
|
|
38
|
-
'@babel/preset-env',
|
|
39
|
-
],
|
|
28
|
+
outfile: virtualOutfile,
|
|
29
|
+
write: false,
|
|
30
|
+
packages: 'external',
|
|
40
31
|
});
|
|
41
32
|
if (result.errors.length > 0) {
|
|
42
33
|
log_1.Log.error('Error in remotion.config.ts file');
|
|
@@ -45,19 +36,18 @@ const loadConfigFile = async (remotionRoot, configFileName, isJavascript) => {
|
|
|
45
36
|
}
|
|
46
37
|
process.exit(1);
|
|
47
38
|
}
|
|
48
|
-
const
|
|
39
|
+
const str = new TextDecoder().decode(result.outputFiles[0].contents);
|
|
49
40
|
const currentCwd = process.cwd();
|
|
50
41
|
// The config file is always executed from the Remotion root, if `process.cwd()` is being used. We cannot enforce this in worker threads used for testing
|
|
51
|
-
if (
|
|
42
|
+
if (node_worker_threads_1.isMainThread) {
|
|
52
43
|
process.chdir(remotionRoot);
|
|
53
44
|
}
|
|
54
45
|
// Exectute the contents of the config file
|
|
55
46
|
// eslint-disable-next-line no-eval
|
|
56
|
-
eval(
|
|
57
|
-
if (
|
|
47
|
+
eval(str);
|
|
48
|
+
if (node_worker_threads_1.isMainThread) {
|
|
58
49
|
process.chdir(currentCwd);
|
|
59
50
|
}
|
|
60
|
-
await fs_1.default.promises.unlink(out);
|
|
61
51
|
return resolved;
|
|
62
52
|
};
|
|
63
53
|
exports.loadConfigFile = loadConfigFile;
|
package/dist/log.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
export declare const Log: {
|
|
2
2
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
3
|
+
verboseAdvanced: (options: {
|
|
4
|
+
indent: boolean;
|
|
5
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
6
|
+
} & {
|
|
7
|
+
tag?: string | undefined;
|
|
8
|
+
secondTag?: string | undefined;
|
|
9
|
+
}, message?: any, ...optionalParams: any[]) => void;
|
|
3
10
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
11
|
+
infoAdvanced: (options: {
|
|
12
|
+
indent: boolean;
|
|
13
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
14
|
+
}, message?: any, ...optionalParams: any[]) => void;
|
|
4
15
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
16
|
+
warnAdvanced: (options: {
|
|
17
|
+
indent: boolean;
|
|
18
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
19
|
+
}, message?: any, ...optionalParams: any[]) => void;
|
|
5
20
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
6
21
|
};
|
package/dist/log.js
CHANGED
|
@@ -3,27 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Log = void 0;
|
|
4
4
|
/* eslint-disable no-console */
|
|
5
5
|
const renderer_1 = require("@remotion/renderer");
|
|
6
|
-
|
|
7
|
-
const config_1 = require("./config");
|
|
8
|
-
exports.Log = {
|
|
9
|
-
verbose: (...args) => {
|
|
10
|
-
if (renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose')) {
|
|
11
|
-
return console.log(...args.map((a) => chalk_1.chalk.blueBright(a)));
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
info: (...args) => {
|
|
15
|
-
if (renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'info')) {
|
|
16
|
-
return console.log(...args);
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
warn: (...args) => {
|
|
20
|
-
if (renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'warn')) {
|
|
21
|
-
return console.warn(...args.map((a) => chalk_1.chalk.yellow(a)));
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
error: (...args) => {
|
|
25
|
-
if (renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'error')) {
|
|
26
|
-
return console.error(...args.map((a) => chalk_1.chalk.red(a)));
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
};
|
|
6
|
+
exports.Log = renderer_1.RenderInternals.Log;
|
|
File without changes
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeProgressBar = void 0;
|
|
4
|
+
const full = '─';
|
|
5
|
+
const half = '╴';
|
|
4
6
|
const makeProgressBar = (percentage) => {
|
|
5
7
|
const totalBars = 20;
|
|
6
8
|
const barsToShow = Math.floor(percentage * totalBars);
|
|
7
|
-
|
|
9
|
+
const extraBar = (percentage * totalBars) % barsToShow;
|
|
10
|
+
const base = full.repeat(barsToShow) + (extraBar > 0.5 ? half : '');
|
|
11
|
+
if (percentage === 0) {
|
|
12
|
+
return `${' '.repeat(totalBars + 1)}`;
|
|
13
|
+
}
|
|
14
|
+
if (percentage > 0 && barsToShow < 1) {
|
|
15
|
+
return `╷${' '.repeat(totalBars)}`;
|
|
16
|
+
}
|
|
17
|
+
if (percentage >= 1) {
|
|
18
|
+
return `╭${base.substring(0, base.length - 1)}╮`;
|
|
19
|
+
}
|
|
20
|
+
return `╭${base.padEnd(totalBars, ' ')}`;
|
|
8
21
|
};
|
|
9
22
|
exports.makeProgressBar = makeProgressBar;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type { BrowserExecutable, Codec,
|
|
2
|
-
|
|
3
|
-
export declare type CommandLineOptions = {
|
|
1
|
+
import type { AudioCodec, BrowserExecutable, Codec, OpenGlRenderer, PixelFormat, ProResProfile, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
|
+
type CommandLineOptions = {
|
|
4
3
|
['browser-executable']: BrowserExecutable;
|
|
5
|
-
['ffmpeg-executable']: FfmpegExecutable;
|
|
6
|
-
['ffprobe-executable']: FfmpegExecutable;
|
|
7
4
|
['pixel-format']: PixelFormat;
|
|
8
|
-
['image-format']:
|
|
5
|
+
['image-format']: VideoImageFormat | StillImageFormat;
|
|
9
6
|
['prores-profile']: ProResProfile;
|
|
10
7
|
['bundle-cache']: string;
|
|
11
8
|
['env-file']: string;
|
|
@@ -13,17 +10,23 @@ export declare type CommandLineOptions = {
|
|
|
13
10
|
['disable-web-security']: string;
|
|
14
11
|
['every-nth-frame']: number;
|
|
15
12
|
['number-of-gif-loops']: number;
|
|
13
|
+
['number-of-shared-audio-tags']: number;
|
|
16
14
|
codec: Codec;
|
|
17
15
|
concurrency: number;
|
|
18
16
|
timeout: number;
|
|
19
17
|
config: string;
|
|
20
18
|
['public-dir']: string;
|
|
19
|
+
['audio-bitrate']: string;
|
|
20
|
+
['video-bitrate']: string;
|
|
21
|
+
['audio-codec']: AudioCodec;
|
|
21
22
|
crf: number;
|
|
22
23
|
force: boolean;
|
|
24
|
+
output: string;
|
|
23
25
|
overwrite: boolean;
|
|
24
26
|
png: boolean;
|
|
25
27
|
props: string;
|
|
26
28
|
quality: number;
|
|
29
|
+
['jpeg-quality']: number;
|
|
27
30
|
frames: string | number;
|
|
28
31
|
scale: number;
|
|
29
32
|
sequence: boolean;
|
|
@@ -36,10 +39,23 @@ export declare type CommandLineOptions = {
|
|
|
36
39
|
['disable-headless']: boolean;
|
|
37
40
|
['disable-keyboard-shortcuts']: boolean;
|
|
38
41
|
muted: boolean;
|
|
42
|
+
height: number;
|
|
43
|
+
width: number;
|
|
44
|
+
runs: number;
|
|
45
|
+
concurrencies: string;
|
|
39
46
|
['enforce-audio-track']: boolean;
|
|
40
47
|
gl: OpenGlRenderer;
|
|
48
|
+
['package-manager']: string;
|
|
49
|
+
['webpack-poll']: number;
|
|
50
|
+
['no-open']: boolean;
|
|
51
|
+
['browser']: string;
|
|
52
|
+
['browser-args']: string;
|
|
53
|
+
['user-agent']: string;
|
|
41
54
|
};
|
|
42
55
|
export declare const BooleanFlags: string[];
|
|
43
|
-
export declare const parsedCli: CommandLineOptions &
|
|
56
|
+
export declare const parsedCli: CommandLineOptions & {
|
|
57
|
+
_: string[];
|
|
58
|
+
};
|
|
44
59
|
export declare const parseCommandLine: () => void;
|
|
45
60
|
export declare const quietFlagProvided: () => boolean;
|
|
61
|
+
export {};
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.quietFlagProvided = exports.parseCommandLine = exports.parsedCli = exports.BooleanFlags = void 0;
|
|
7
7
|
const renderer_1 = require("@remotion/renderer");
|
|
8
8
|
const minimist_1 = __importDefault(require("minimist"));
|
|
9
|
-
const path_1 = require("path");
|
|
10
9
|
const config_1 = require("./config");
|
|
11
10
|
const log_1 = require("./log");
|
|
12
11
|
exports.BooleanFlags = [
|
|
@@ -29,40 +28,36 @@ exports.BooleanFlags = [
|
|
|
29
28
|
'ignore-certificate-errors',
|
|
30
29
|
'disable-headless',
|
|
31
30
|
'disable-keyboard-shortcuts',
|
|
31
|
+
'default-only',
|
|
32
|
+
'no-open',
|
|
32
33
|
];
|
|
33
34
|
exports.parsedCli = (0, minimist_1.default)(process.argv.slice(2), {
|
|
34
35
|
boolean: exports.BooleanFlags,
|
|
35
36
|
});
|
|
36
37
|
const parseCommandLine = () => {
|
|
37
38
|
if (exports.parsedCli['pixel-format']) {
|
|
38
|
-
config_1.Config.
|
|
39
|
-
}
|
|
40
|
-
if (exports.parsedCli['image-format']) {
|
|
41
|
-
config_1.Config.Rendering.setImageFormat(exports.parsedCli['image-format']);
|
|
39
|
+
config_1.Config.setPixelFormat(exports.parsedCli['pixel-format']);
|
|
42
40
|
}
|
|
43
41
|
if (exports.parsedCli['browser-executable']) {
|
|
44
|
-
config_1.Config.
|
|
45
|
-
}
|
|
46
|
-
if (exports.parsedCli['ffmpeg-executable']) {
|
|
47
|
-
config_1.Config.Rendering.setFfmpegExecutable((0, path_1.resolve)(exports.parsedCli['ffmpeg-executable']));
|
|
42
|
+
config_1.Config.setBrowserExecutable(exports.parsedCli['browser-executable']);
|
|
48
43
|
}
|
|
49
44
|
if (exports.parsedCli['number-of-gif-loops']) {
|
|
50
|
-
config_1.Config.
|
|
51
|
-
}
|
|
52
|
-
if (exports.parsedCli['ffprobe-executable']) {
|
|
53
|
-
config_1.Config.Rendering.setFfprobeExecutable((0, path_1.resolve)(exports.parsedCli['ffprobe-executable']));
|
|
45
|
+
config_1.Config.setNumberOfGifLoops(exports.parsedCli['number-of-gif-loops']);
|
|
54
46
|
}
|
|
55
47
|
if (typeof exports.parsedCli['bundle-cache'] !== 'undefined') {
|
|
56
|
-
config_1.Config.
|
|
48
|
+
config_1.Config.setCachingEnabled(exports.parsedCli['bundle-cache'] !== 'false');
|
|
57
49
|
}
|
|
58
50
|
if (exports.parsedCli['disable-web-security']) {
|
|
59
|
-
config_1.Config.
|
|
51
|
+
config_1.Config.setChromiumDisableWebSecurity(true);
|
|
60
52
|
}
|
|
61
53
|
if (exports.parsedCli['ignore-certificate-errors']) {
|
|
62
|
-
config_1.Config.
|
|
54
|
+
config_1.Config.setChromiumIgnoreCertificateErrors(true);
|
|
63
55
|
}
|
|
64
56
|
if (exports.parsedCli['disable-headless']) {
|
|
65
|
-
config_1.Config.
|
|
57
|
+
config_1.Config.setChromiumHeadlessMode(false);
|
|
58
|
+
}
|
|
59
|
+
if (exports.parsedCli['user-agent']) {
|
|
60
|
+
config_1.Config.setChromiumUserAgent(exports.parsedCli['user-agent']);
|
|
66
61
|
}
|
|
67
62
|
if (exports.parsedCli.log) {
|
|
68
63
|
if (!renderer_1.RenderInternals.isValidLogLevel(exports.parsedCli.log)) {
|
|
@@ -75,10 +70,16 @@ const parseCommandLine = () => {
|
|
|
75
70
|
config_1.ConfigInternals.Logging.setLogLevel(exports.parsedCli.log);
|
|
76
71
|
}
|
|
77
72
|
if (exports.parsedCli.concurrency) {
|
|
78
|
-
config_1.Config.
|
|
73
|
+
config_1.Config.setConcurrency(exports.parsedCli.concurrency);
|
|
79
74
|
}
|
|
80
75
|
if (exports.parsedCli.timeout) {
|
|
81
|
-
config_1.Config.
|
|
76
|
+
config_1.Config.setTimeoutInMilliseconds(exports.parsedCli.timeout);
|
|
77
|
+
}
|
|
78
|
+
if (exports.parsedCli.height) {
|
|
79
|
+
config_1.Config.overrideHeight(exports.parsedCli.height);
|
|
80
|
+
}
|
|
81
|
+
if (exports.parsedCli.width) {
|
|
82
|
+
config_1.Config.overrideWidth(exports.parsedCli.width);
|
|
82
83
|
}
|
|
83
84
|
if (exports.parsedCli.frames) {
|
|
84
85
|
config_1.ConfigInternals.setFrameRangeFromCli(exports.parsedCli.frames);
|
|
@@ -87,48 +88,59 @@ const parseCommandLine = () => {
|
|
|
87
88
|
config_1.ConfigInternals.setStillFrame(Number(exports.parsedCli.frame));
|
|
88
89
|
}
|
|
89
90
|
if (exports.parsedCli.png) {
|
|
90
|
-
|
|
91
|
-
config_1.Config.Output.setImageSequence(true);
|
|
92
|
-
config_1.Config.Rendering.setImageFormat('png');
|
|
91
|
+
throw new Error('The --png flag has been deprecrated. Use --sequence --image-format=png from now on.');
|
|
93
92
|
}
|
|
94
93
|
if (exports.parsedCli.sequence) {
|
|
95
|
-
config_1.Config.
|
|
94
|
+
config_1.Config.setImageSequence(true);
|
|
96
95
|
}
|
|
97
96
|
if (typeof exports.parsedCli.crf !== 'undefined') {
|
|
98
|
-
config_1.Config.
|
|
97
|
+
config_1.Config.setCrf(exports.parsedCli.crf);
|
|
99
98
|
}
|
|
100
99
|
if (exports.parsedCli['every-nth-frame']) {
|
|
101
|
-
config_1.Config.
|
|
100
|
+
config_1.Config.setEveryNthFrame(exports.parsedCli['every-nth-frame']);
|
|
102
101
|
}
|
|
103
102
|
if (exports.parsedCli.gl) {
|
|
104
|
-
config_1.Config.
|
|
103
|
+
config_1.Config.setChromiumOpenGlRenderer(exports.parsedCli.gl);
|
|
105
104
|
}
|
|
106
105
|
if (exports.parsedCli['prores-profile']) {
|
|
107
|
-
config_1.Config.
|
|
106
|
+
config_1.Config.setProResProfile(String(exports.parsedCli['prores-profile']));
|
|
108
107
|
}
|
|
109
108
|
if (exports.parsedCli.overwrite) {
|
|
110
|
-
config_1.Config.
|
|
109
|
+
config_1.Config.setOverwriteOutput(exports.parsedCli.overwrite);
|
|
111
110
|
}
|
|
112
111
|
if (typeof exports.parsedCli.quality !== 'undefined') {
|
|
113
|
-
|
|
112
|
+
log_1.Log.warn('The --quality flag has been renamed to --jpeg-quality instead.');
|
|
113
|
+
config_1.Config.setJpegQuality(exports.parsedCli.quality);
|
|
114
|
+
}
|
|
115
|
+
if (typeof exports.parsedCli['jpeg-quality'] !== 'undefined') {
|
|
116
|
+
config_1.Config.setJpegQuality(exports.parsedCli['jpeg-quality']);
|
|
114
117
|
}
|
|
115
118
|
if (typeof exports.parsedCli.scale !== 'undefined') {
|
|
116
|
-
config_1.Config.
|
|
119
|
+
config_1.Config.setScale(exports.parsedCli.scale);
|
|
117
120
|
}
|
|
118
121
|
if (typeof exports.parsedCli.port !== 'undefined') {
|
|
119
|
-
config_1.Config.
|
|
122
|
+
config_1.Config.setPort(exports.parsedCli.port);
|
|
120
123
|
}
|
|
121
124
|
if (typeof exports.parsedCli.muted !== 'undefined') {
|
|
122
|
-
config_1.Config.
|
|
125
|
+
config_1.Config.setMuted(exports.parsedCli.muted);
|
|
123
126
|
}
|
|
124
127
|
if (typeof exports.parsedCli['disable-keyboard-shortcuts'] !== 'undefined') {
|
|
125
|
-
config_1.Config.
|
|
128
|
+
config_1.Config.setKeyboardShortcutsEnabled(!exports.parsedCli['disable-keyboard-shortcuts']);
|
|
126
129
|
}
|
|
127
130
|
if (typeof exports.parsedCli['enforce-audio-track'] !== 'undefined') {
|
|
128
|
-
config_1.Config.
|
|
131
|
+
config_1.Config.setEnforceAudioTrack(exports.parsedCli['enforce-audio-track']);
|
|
129
132
|
}
|
|
130
133
|
if (typeof exports.parsedCli['public-dir'] !== 'undefined') {
|
|
131
|
-
config_1.Config.
|
|
134
|
+
config_1.Config.setPublicDir(exports.parsedCli['public-dir']);
|
|
135
|
+
}
|
|
136
|
+
if (typeof exports.parsedCli['webpack-poll'] !== 'undefined') {
|
|
137
|
+
config_1.Config.setWebpackPollingInMilliseconds(exports.parsedCli['webpack-poll']);
|
|
138
|
+
}
|
|
139
|
+
if (typeof exports.parsedCli['audio-bitrate'] !== 'undefined') {
|
|
140
|
+
config_1.Config.setAudioBitrate(exports.parsedCli['audio-bitrate']);
|
|
141
|
+
}
|
|
142
|
+
if (typeof exports.parsedCli['video-bitrate'] !== 'undefined') {
|
|
143
|
+
config_1.Config.setVideoBitrate(exports.parsedCli['video-bitrate']);
|
|
132
144
|
}
|
|
133
145
|
};
|
|
134
146
|
exports.parseCommandLine = parseCommandLine;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allApiRoutes = void 0;
|
|
4
|
+
const add_render_1 = require("./routes/add-render");
|
|
5
|
+
const can_update_default_props_1 = require("./routes/can-update-default-props");
|
|
6
|
+
const cancel_render_1 = require("./routes/cancel-render");
|
|
7
|
+
const open_in_file_explorer_1 = require("./routes/open-in-file-explorer");
|
|
8
|
+
const remove_render_1 = require("./routes/remove-render");
|
|
9
|
+
const subscribe_to_file_existence_1 = require("./routes/subscribe-to-file-existence");
|
|
10
|
+
const unsubscribe_from_file_existence_1 = require("./routes/unsubscribe-from-file-existence");
|
|
11
|
+
const update_available_1 = require("./routes/update-available");
|
|
12
|
+
const update_default_props_1 = require("./routes/update-default-props");
|
|
13
|
+
exports.allApiRoutes = {
|
|
14
|
+
'/api/cancel': cancel_render_1.handleCancelRender,
|
|
15
|
+
'/api/render': add_render_1.handleAddRender,
|
|
16
|
+
'/api/unsubscribe-from-file-existence': unsubscribe_from_file_existence_1.unsubscribeFromFileExistence,
|
|
17
|
+
'/api/subscribe-to-file-existence': subscribe_to_file_existence_1.subscribeToFileExistence,
|
|
18
|
+
'/api/remove-render': remove_render_1.handleRemoveRender,
|
|
19
|
+
'/api/open-in-file-explorer': open_in_file_explorer_1.handleOpenInFileExplorer,
|
|
20
|
+
'/api/update-default-props': update_default_props_1.updateDefaultPropsHandler,
|
|
21
|
+
'/api/can-update-default-props': can_update_default_props_1.canUpdateDefaultPropsHandler,
|
|
22
|
+
'/api/update-available': update_available_1.handleUpdate,
|
|
23
|
+
};
|