@remotion/cli 4.0.0-4x.2 → 4.0.0-alpha.111
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 +2 -1
- package/dist/ansi/ansi-diff.js +14 -20
- package/dist/ansi/ansi-regex.d.ts +0 -0
- package/dist/ansi/ansi-regex.js +0 -0
- package/dist/ansi/ansi-split.d.ts +0 -0
- package/dist/ansi/ansi-split.js +0 -0
- package/dist/benchmark.d.ts +1 -0
- package/dist/benchmark.js +220 -0
- package/dist/better-opn/index.d.ts +6 -0
- package/dist/better-opn/index.js +202 -0
- package/dist/chalk/index.d.ts +0 -0
- package/dist/chalk/index.js +0 -0
- package/dist/cleanup-before-quit.d.ts +3 -0
- package/dist/cleanup-before-quit.js +23 -0
- package/dist/code-frame.d.ts +0 -0
- package/dist/code-frame.js +23 -11
- package/dist/codemods/update-default-props.d.ts +5 -0
- package/dist/codemods/update-default-props.js +129 -0
- package/dist/composition-prompts.d.ts +8 -0
- package/dist/composition-prompts.js +26 -0
- package/dist/compositions.d.ts +1 -1
- package/dist/compositions.js +31 -52
- 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 +3 -0
- package/dist/config/browser-executable.js +12 -0
- package/dist/config/browser.d.ts +3 -0
- package/dist/config/browser.js +18 -0
- package/dist/config/chromium-flags.d.ts +9 -0
- package/dist/config/chromium-flags.js +33 -0
- package/dist/config/codec.d.ts +3 -0
- package/dist/config/codec.js +20 -0
- package/dist/config/concurrency.d.ts +3 -0
- package/dist/config/concurrency.js +12 -0
- package/dist/config/crf.d.ts +3 -0
- package/dist/config/crf.js +15 -0
- package/dist/config/enforce-audio-track.d.ts +2 -0
- package/dist/config/enforce-audio-track.js +13 -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 +2 -0
- package/dist/config/env-file.js +10 -0
- package/dist/config/every-nth-frame.d.ts +2 -0
- package/dist/config/every-nth-frame.js +12 -0
- package/dist/config/ffmpeg-override.d.ts +3 -0
- package/dist/config/ffmpeg-override.js +12 -0
- package/dist/config/frame-range.d.ts +4 -0
- package/dist/config/frame-range.js +35 -0
- package/dist/config/height.d.ts +2 -0
- package/dist/config/height.js +14 -0
- package/dist/config/image-format.d.ts +5 -0
- package/dist/config/image-format.js +49 -0
- package/dist/config/image-sequence.d.ts +3 -0
- package/dist/config/image-sequence.js +15 -0
- package/dist/config/index.d.ts +289 -0
- package/dist/config/index.js +177 -0
- package/dist/config/keyboard-shortcuts.d.ts +2 -0
- package/dist/config/keyboard-shortcuts.js +12 -0
- package/dist/config/log.d.ts +3 -0
- package/dist/config/log.js +12 -0
- package/dist/config/max-timeline-tracks.d.ts +2 -0
- package/dist/config/max-timeline-tracks.js +24 -0
- package/dist/config/muted.d.ts +2 -0
- package/dist/config/muted.js +13 -0
- package/dist/config/number-of-gif-loops.d.ts +3 -0
- package/dist/config/number-of-gif-loops.js +15 -0
- 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 +2 -0
- package/dist/config/output-location.js +16 -0
- package/dist/config/override-webpack.d.ts +5 -0
- package/dist/config/override-webpack.js +14 -0
- package/dist/config/overwrite.d.ts +4 -0
- package/dist/config/overwrite.js +13 -0
- package/dist/config/pixel-format.d.ts +3 -0
- package/dist/config/pixel-format.js +16 -0
- package/dist/config/preview-server.d.ts +2 -0
- package/dist/config/preview-server.js +20 -0
- package/dist/config/prores-profile.d.ts +3 -0
- package/dist/config/prores-profile.js +12 -0
- package/dist/config/public-dir.d.ts +2 -0
- package/dist/config/public-dir.js +12 -0
- package/dist/config/quality.d.ts +2 -0
- package/dist/config/quality.js +17 -0
- package/dist/config/scale.d.ts +3 -0
- package/dist/config/scale.js +15 -0
- package/dist/config/still-frame.d.ts +2 -0
- package/dist/config/still-frame.js +16 -0
- package/dist/config/timeout.d.ts +2 -0
- package/dist/config/timeout.js +17 -0
- package/dist/config/webpack-caching.d.ts +3 -0
- package/dist/config/webpack-caching.js +16 -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 +12 -0
- package/dist/determine-image-format.js +61 -0
- package/dist/download-progress.d.ts +3 -2
- package/dist/download-progress.js +21 -6
- package/dist/editor/components/AudioWaveform.d.ts +1 -0
- package/dist/editor/components/AudioWaveform.js +10 -3
- 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 +206 -1
- package/dist/editor/components/CheckboardToggle.d.ts +0 -0
- package/dist/editor/components/CheckboardToggle.js +8 -1
- package/dist/editor/components/Checkbox.d.ts +6 -0
- package/dist/editor/components/Checkbox.js +42 -0
- package/dist/editor/components/ClipboardIcon.d.ts +0 -0
- package/dist/editor/components/ClipboardIcon.js +0 -0
- package/dist/editor/components/CollapsableOptions.d.ts +6 -0
- package/dist/editor/components/CollapsableOptions.js +35 -0
- package/dist/editor/components/CollapsedSidebarExpander.d.ts +5 -0
- package/dist/editor/components/{CollapsedCompositionSelector.js → CollapsedSidebarExpander.js} +9 -8
- package/dist/editor/components/CompositionSelector.d.ts +0 -0
- package/dist/editor/components/CompositionSelector.js +4 -4
- package/dist/editor/components/CompositionSelectorItem.d.ts +3 -3
- package/dist/editor/components/CompositionSelectorItem.js +27 -7
- 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 +4 -17
- package/dist/editor/components/CurrentComposition.d.ts +0 -0
- package/dist/editor/components/CurrentComposition.js +9 -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 +5 -96
- package/dist/editor/components/EditorContent.d.ts +0 -0
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.d.ts +4 -0
- package/dist/editor/components/EditorContexts.js +85 -0
- 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 +49 -11
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/InitialCompositionLoader.js +30 -4
- package/dist/editor/components/InlineAction.d.ts +5 -0
- package/dist/editor/components/InlineAction.js +35 -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 +0 -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 +3 -2
- package/dist/editor/components/Menu/MenuItem.js +21 -4
- package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -0
- package/dist/editor/components/Menu/MenuSubItem.js +5 -3
- package/dist/editor/components/Menu/SubMenu.d.ts +0 -0
- package/dist/editor/components/Menu/SubMenu.js +0 -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 +0 -0
- package/dist/editor/components/Menu/portals.js +0 -0
- package/dist/editor/components/Menu/styles.d.ts +5 -2
- package/dist/editor/components/Menu/styles.js +12 -5
- package/dist/editor/components/MenuBuildIndicator.d.ts +0 -0
- package/dist/editor/components/MenuBuildIndicator.js +0 -0
- package/dist/editor/components/MenuToolbar.d.ts +0 -0
- package/dist/editor/components/MenuToolbar.js +5 -422
- package/dist/editor/components/ModalContainer.d.ts +0 -0
- package/dist/editor/components/ModalContainer.js +0 -0
- 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/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 +2 -1
- package/dist/editor/components/NewComposition/ComboBox.js +50 -5
- package/dist/editor/components/NewComposition/CopyHint.d.ts +0 -0
- package/dist/editor/components/NewComposition/CopyHint.js +0 -0
- package/dist/editor/components/NewComposition/InputDragger.d.ts +4 -0
- package/dist/editor/components/NewComposition/InputDragger.js +33 -9
- package/dist/editor/components/NewComposition/MenuContent.d.ts +0 -0
- package/dist/editor/components/NewComposition/MenuContent.js +60 -8
- 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 +8 -5
- package/dist/editor/components/NewComposition/RemInput.d.ts +14 -1
- package/dist/editor/components/NewComposition/RemInput.js +24 -10
- 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 +2 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +16 -6
- 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 +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 +6 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +50 -0
- package/dist/editor/components/PlayPause.d.ts +0 -0
- package/dist/editor/components/PlayPause.js +111 -29
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.d.ts +0 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +30 -21
- 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 -0
- package/dist/editor/components/PlaybackRateSelector.js +6 -0
- package/dist/editor/components/Preview.d.ts +1 -0
- package/dist/editor/components/Preview.js +17 -9
- package/dist/editor/components/PreviewToolbar.d.ts +0 -0
- package/dist/editor/components/PreviewToolbar.js +5 -3
- 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 +273 -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 +29 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +63 -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 +6 -0
- package/dist/editor/components/RenderButton.js +74 -0
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/CliCopyButton.js +22 -0
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +16 -0
- package/dist/editor/components/RenderModal/CrfSetting.js +43 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +16 -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 +115 -0
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +5 -0
- package/dist/editor/components/RenderModal/InfoTooltip.js +40 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +5 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +14 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +12 -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 +16 -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 +45 -0
- package/dist/editor/components/RenderModal/RenderModal.d.ts +34 -0
- package/dist/editor/components/RenderModal/RenderModal.js +566 -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 +48 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +23 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.js +79 -0
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +9 -0
- package/dist/editor/components/RenderModal/RenderModalData.js +61 -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/RenderModalJSONInputPropsEditor.d.ts +9 -0
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.js +96 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +28 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.js +56 -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/SchemaEditor.d.ts +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +70 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.js +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +43 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +70 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +76 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +51 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +68 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +23 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +8 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +23 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +89 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +57 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +43 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +61 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +21 -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/zod-types.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +2 -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 +7 -0
- package/dist/editor/components/RenderModal/layout.js +46 -0
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +15 -0
- package/dist/editor/components/RenderModal/out-name-checker.js +79 -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 +22 -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 +22 -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 +33 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +22 -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 +59 -0
- package/dist/editor/components/RenderQueue/actions.js +114 -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 +19 -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/RenderToolbarIcon.d.ts +2 -0
- package/dist/editor/components/RenderToolbarIcon.js +84 -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 +4 -0
- package/dist/editor/components/ResetZoomButton.js +9 -0
- package/dist/editor/components/RightPanel.d.ts +8 -0
- package/dist/editor/components/RightPanel.js +82 -0
- package/dist/editor/components/SegmentedControl.d.ts +16 -0
- package/dist/editor/components/SegmentedControl.js +63 -0
- package/dist/editor/components/SizeSelector.d.ts +2 -1
- package/dist/editor/components/SizeSelector.js +59 -18
- package/dist/editor/components/Splitter/SplitterContainer.d.ts +0 -0
- package/dist/editor/components/Splitter/SplitterContainer.js +0 -0
- package/dist/editor/components/Splitter/SplitterContext.d.ts +0 -0
- 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 -1
- package/dist/editor/components/Splitter/SplitterHandle.js +9 -1
- package/dist/editor/components/Tabs/index.d.ts +11 -0
- package/dist/editor/components/Tabs/index.js +51 -0
- package/dist/editor/components/TimeValue.d.ts +0 -0
- package/dist/editor/components/TimeValue.js +9 -5
- package/dist/editor/components/Timeline/LoopedIndicator.d.ts +0 -0
- package/dist/editor/components/Timeline/LoopedIndicator.js +0 -0
- 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 +7 -5
- package/dist/editor/components/Timeline/Timeline.d.ts +0 -0
- package/dist/editor/components/Timeline/Timeline.js +22 -9
- 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 +123 -25
- package/dist/editor/components/Timeline/TimelineInOutPointer.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointer.js +2 -1
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineInOutPointerHandle.js +0 -0
- package/dist/editor/components/Timeline/TimelineList.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineList.js +7 -4
- package/dist/editor/components/Timeline/TimelineListItem.d.ts +1 -0
- package/dist/editor/components/Timeline/TimelineListItem.js +11 -5
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +76 -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 +0 -0
- package/dist/editor/components/Timeline/TimelineSequence.js +2 -14
- 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 +3 -0
- package/dist/editor/components/Timeline/TimelineSlider.js +35 -2
- package/dist/editor/components/Timeline/TimelineSliderHandle.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineSliderHandle.js +1 -3
- package/dist/editor/components/Timeline/TimelineTimeIndicators.d.ts +5 -0
- package/dist/editor/components/Timeline/TimelineTimeIndicators.js +168 -0
- package/dist/editor/components/Timeline/TimelineTracks.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineTracks.js +14 -9
- package/dist/editor/components/Timeline/TimelineVideoInfo.d.ts +0 -0
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +0 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.d.ts +2 -0
- package/dist/editor/components/Timeline/TimelineZoomControls.js +44 -0
- package/dist/editor/components/Timeline/imperative-state.d.ts +12 -0
- package/dist/editor/components/Timeline/imperative-state.js +39 -0
- 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 +2 -0
- package/dist/editor/components/Timeline/timeline-refs.js +3 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +44 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +218 -0
- package/dist/editor/components/Timeline/timeline-state-reducer.d.ts +0 -0
- package/dist/editor/components/Timeline/timeline-state-reducer.js +0 -0
- package/dist/editor/components/TimelineInOutToggle.d.ts +2 -2
- package/dist/editor/components/TimelineInOutToggle.js +92 -21
- package/dist/editor/components/TopPanel.d.ts +0 -0
- package/dist/editor/components/TopPanel.js +35 -16
- package/dist/editor/components/UpdateCheck.d.ts +0 -0
- package/dist/editor/components/UpdateCheck.js +0 -0
- package/dist/editor/components/UpdateModal/UpdateModal.d.ts +0 -0
- package/dist/editor/components/UpdateModal/UpdateModal.js +1 -1
- package/dist/editor/components/ZoomPersistor.d.ts +4 -0
- package/dist/editor/components/ZoomPersistor.js +37 -0
- package/dist/editor/components/layout.d.ts +2 -1
- package/dist/editor/components/layout.js +4 -3
- package/dist/editor/helpers/calculate-timeline.d.ts +0 -0
- package/dist/editor/helpers/calculate-timeline.js +0 -0
- 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/editor/helpers/client-id.js +46 -0
- package/dist/editor/helpers/colors.d.ts +5 -1
- package/dist/editor/helpers/colors.js +5 -1
- 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 +1 -1
- package/dist/editor/helpers/copy-text.js +5 -4
- package/dist/editor/helpers/create-folder-tree.d.ts +2 -2
- package/dist/editor/helpers/create-folder-tree.js +0 -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 +7 -4
- 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 +29 -9
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +0 -0
- package/dist/editor/helpers/get-timeline-sequence-sort-key.js +0 -0
- package/dist/editor/helpers/is-composition-still.d.ts +2 -2
- package/dist/editor/helpers/is-composition-still.js +3 -0
- package/dist/editor/helpers/is-current-selected-still.d.ts +4 -0
- package/dist/editor/helpers/is-current-selected-still.js +15 -1
- 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 +0 -0
- package/dist/editor/helpers/persist-open-folders.js +0 -0
- package/dist/editor/helpers/pick-color.d.ts +1 -0
- package/dist/editor/helpers/pick-color.js +36 -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 +9 -1
- package/dist/editor/helpers/use-keybinding.js +34 -6
- package/dist/editor/helpers/use-menu-structure.d.ts +7 -0
- package/dist/editor/helpers/use-menu-structure.js +717 -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/RenderStillIcon.d.ts +3 -0
- package/dist/editor/icons/RenderStillIcon.js +8 -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 +1 -0
- package/dist/editor/icons/caret.js +3 -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 +0 -0
- package/dist/editor/icons/{film.d.ts → minus.d.ts} +1 -1
- package/dist/editor/icons/minus.js +8 -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 -0
- package/dist/editor/icons/plus.js +8 -0
- package/dist/editor/icons/render.d.ts +5 -0
- package/dist/editor/icons/render.js +8 -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 +0 -0
- 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 +0 -0
- package/dist/editor/state/folders.js +0 -0
- package/dist/editor/state/highest-z-index.d.ts +0 -0
- package/dist/editor/state/highest-z-index.js +0 -0
- package/dist/editor/state/in-out.d.ts +12 -0
- package/dist/editor/state/in-out.js +23 -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 +0 -0
- package/dist/editor/state/keybindings.js +3 -1
- 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 +41 -1
- 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 +5 -2
- package/dist/editor/state/preview-size.js +49 -5
- package/dist/editor/state/render-frame.d.ts +0 -0
- package/dist/editor/state/render-frame.js +12 -3
- package/dist/editor/state/sidebar.d.ts +6 -3
- package/dist/editor/state/sidebar.js +28 -13
- package/dist/editor/state/timeline-ref.d.ts +0 -0
- package/dist/editor/state/timeline-ref.js +0 -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 +0 -0
- package/dist/editor/state/timeline.js +0 -0
- package/dist/editor/state/z-index.d.ts +0 -0
- package/dist/editor/state/z-index.js +38 -12
- package/dist/entry-point.d.ts +5 -0
- package/dist/entry-point.js +89 -0
- package/dist/event-source-events.d.ts +28 -0
- package/dist/event-source-events.js +2 -0
- package/dist/event-source.d.ts +3 -0
- package/dist/event-source.js +59 -0
- package/dist/ffmpeg.d.ts +2 -0
- package/dist/ffmpeg.js +21 -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-audio-codec.d.ts +2 -0
- package/dist/get-audio-codec.js +10 -0
- package/dist/get-cli-options.d.ts +18 -11
- package/dist/get-cli-options.js +54 -117
- package/dist/get-composition-id.d.ts +11 -2
- package/dist/get-composition-id.js +44 -8
- package/dist/get-composition-with-dimension-override.d.ts +13 -0
- package/dist/get-composition-with-dimension-override.js +20 -0
- package/dist/get-config-file-name.d.ts +1 -1
- package/dist/get-config-file-name.js +9 -6
- 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 +55 -10
- package/dist/get-filename.d.ts +8 -4
- package/dist/get-filename.js +13 -27
- package/dist/get-final-output-codec.d.ts +11 -0
- package/dist/get-final-output-codec.js +60 -0
- package/dist/get-input-props.d.ts +1 -1
- package/dist/get-input-props.js +12 -1
- 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 +0 -0
- package/dist/handle-common-errors.js +28 -1
- package/dist/image-formats.d.ts +6 -3
- package/dist/image-formats.js +21 -9
- package/dist/index.d.ts +84 -20
- package/dist/index.js +59 -19
- package/dist/initialize-cli.d.ts +1 -0
- package/dist/initialize-cli.js +22 -0
- package/dist/is-javascript.d.ts +0 -0
- package/dist/is-javascript.js +0 -0
- package/dist/lambda-command.d.ts +1 -1
- package/dist/lambda-command.js +5 -8
- package/dist/list-of-remotion-packages.d.ts +1 -0
- package/dist/list-of-remotion-packages.js +27 -0
- package/dist/load-config.d.ts +1 -1
- package/dist/load-config.js +23 -22
- package/dist/log.d.ts +14 -0
- package/dist/log.js +27 -10
- package/dist/make-progress-bar.d.ts +0 -0
- package/dist/make-progress-bar.js +14 -1
- package/dist/parse-command-line.d.ts +25 -7
- package/dist/parse-command-line.js +63 -47
- package/dist/preview-server/api-routes.d.ts +4 -0
- package/dist/preview-server/api-routes.js +19 -0
- package/dist/preview-server/api-types.d.ts +28 -0
- package/dist/preview-server/api-types.js +2 -0
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +0 -0
- package/dist/preview-server/dev-middleware/compatible-api.js +0 -0
- package/dist/preview-server/dev-middleware/get-paths.d.ts +0 -0
- 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/is-color-supported.d.ts +0 -0
- package/dist/preview-server/dev-middleware/is-color-supported.js +0 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +0 -0
- package/dist/preview-server/dev-middleware/middleware.js +4 -5
- package/dist/preview-server/dev-middleware/range-parser.d.ts +0 -0
- 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 +15 -4
- 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 +0 -0
- 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 +0 -0
- package/dist/preview-server/error-overlay/react-overlay/effects/map-error-to-react-stack.js +2 -2
- package/dist/preview-server/error-overlay/react-overlay/effects/proxy-console.d.ts +0 -0
- 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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/dist/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.js +9 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.d.ts +1 -1
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +3 -3
- 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 +0 -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 +8 -4
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +76 -34
- 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 +0 -0
- 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 +3 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +22 -2
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +21 -11
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +2 -0
- 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 +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +6 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +2 -2
- 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 +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +5 -9
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.d.ts +6 -0
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +37 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +24 -11
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.d.ts +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +8 -7
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +22 -2
- 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 +0 -0
- package/dist/preview-server/error-overlay/remotion-overlay/StackFrame.js +3 -1
- 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 +4 -2
- package/dist/preview-server/error-overlay/remotion-overlay/carets.js +2 -2
- 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 +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 +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 +2 -1
- package/dist/preview-server/get-package-manager.js +19 -3
- 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 +0 -0
- package/dist/preview-server/hot-middleware/client.js +0 -0
- package/dist/preview-server/hot-middleware/index.d.ts +94 -0
- package/dist/preview-server/hot-middleware/index.js +1 -2
- 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/strip-ansi.d.ts +0 -0
- package/dist/preview-server/hot-middleware/strip-ansi.js +0 -0
- package/dist/preview-server/hot-middleware/types.d.ts +0 -0
- package/dist/preview-server/hot-middleware/types.js +0 -0
- package/dist/preview-server/live-events.d.ts +10 -0
- package/dist/preview-server/live-events.js +61 -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 +1 -1
- package/dist/preview-server/project-info.js +12 -4
- package/dist/preview-server/public-folder.d.ts +17 -0
- package/dist/preview-server/public-folder.js +56 -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 +129 -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 +89 -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 +21 -0
- package/dist/preview-server/render-queue/queue.js +208 -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/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-default-props.d.ts +3 -0
- package/dist/preview-server/routes/update-default-props.js +22 -0
- package/dist/preview-server/routes.d.ts +8 -1
- package/dist/preview-server/routes.js +130 -30
- package/dist/preview-server/serve-static.d.ts +0 -0
- package/dist/preview-server/serve-static.js +4 -3
- package/dist/preview-server/start-server.d.ts +19 -6
- package/dist/preview-server/start-server.js +72 -28
- package/dist/preview-server/update-available.d.ts +1 -1
- package/dist/preview-server/update-available.js +8 -5
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +115 -16
- package/dist/previewEntry.d.ts +0 -0
- package/dist/previewEntry.js +10 -2
- package/dist/print-compositions.d.ts +2 -0
- package/dist/print-compositions.js +50 -0
- package/dist/print-error.d.ts +0 -0
- package/dist/print-error.js +4 -2
- package/dist/print-help.d.ts +0 -0
- package/dist/print-help.js +16 -5
- package/dist/progress-bar.d.ts +36 -30
- package/dist/progress-bar.js +151 -31
- 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 +290 -0
- package/dist/render-flows/still.d.ts +29 -0
- package/dist/render-flows/still.js +168 -0
- package/dist/render.d.ts +1 -1
- package/dist/render.js +55 -213
- 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 +0 -0
- package/dist/select-composition.d.ts +7 -0
- package/dist/select-composition.js +51 -0
- package/dist/setup-cache.d.ts +31 -2
- package/dist/setup-cache.js +122 -24
- package/dist/smooth-zoom.d.ts +4 -0
- package/dist/smooth-zoom.js +20 -0
- package/dist/step.d.ts +0 -0
- package/dist/step.js +0 -0
- package/dist/still.d.ts +1 -1
- package/dist/still.js +41 -131
- package/dist/truthy.d.ts +3 -0
- package/dist/truthy.js +7 -0
- package/dist/upgrade.d.ts +1 -1
- package/dist/upgrade.js +21 -29
- package/dist/user-passed-output-location.d.ts +7 -1
- package/dist/user-passed-output-location.js +15 -9
- package/dist/versions.d.ts +2 -2
- package/dist/versions.js +15 -26
- package/package.json +30 -20
- package/styles/styles.css +9 -3
- package/web/favicon.png +0 -0
- package/.prettierrc.js +0 -14
- package/dist/bundle-on-cli.d.ts +0 -2
- package/dist/bundle-on-cli.js +0 -41
- package/dist/bundle.d.ts +0 -1
- package/dist/bundle.js +0 -31
- package/dist/chalk/symbols.d.ts +0 -111
- package/dist/chalk/symbols.js +0 -75
- package/dist/chalk/utilities.d.ts +0 -2
- package/dist/chalk/utilities.js +0 -37
- package/dist/check-version.d.ts +0 -1
- package/dist/check-version.js +0 -14
- package/dist/editor/components/CollapsedCompositionSelector.d.ts +0 -4
- package/dist/editor/components/CompositionManager.d.ts +0 -4
- package/dist/editor/components/CompositionManager.js +0 -60
- package/dist/editor/components/KeyboardShortcutsModal.d.ts +0 -2
- package/dist/editor/components/KeyboardShortcutsModal.js +0 -53
- package/dist/editor/components/LoadingIndicator.d.ts +0 -2
- package/dist/editor/components/LoadingIndicator.js +0 -35
- 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.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/initialize-render-cli.d.ts +0 -1
- package/dist/initialize-render-cli.js +0 -17
- package/dist/prepare-entry-point.d.ts +0 -11
- package/dist/prepare-entry-point.js +0 -36
- package/dist/preview-server/fast-refresh/helpers.d.ts +0 -39
- package/dist/preview-server/fast-refresh/helpers.js +0 -145
- package/dist/preview-server/fast-refresh/index.d.ts +0 -30
- package/dist/preview-server/fast-refresh/index.js +0 -86
- package/dist/preview-server/fast-refresh/loader.d.ts +0 -35
- package/dist/preview-server/fast-refresh/loader.js +0 -81
- package/dist/preview-server/fast-refresh/runtime.d.ts +0 -35
- package/dist/preview-server/fast-refresh/runtime.js +0 -32
- package/dist/preview-server/static-preview.d.ts +0 -1
- package/dist/preview-server/static-preview.js +0 -40
- package/dist/preview-server/webpack-cache.d.ts +0 -12
- package/dist/preview-server/webpack-cache.js +0 -66
- package/dist/validate-ffmpeg-version.d.ts +0 -3
- package/dist/validate-ffmpeg-version.js +0 -17
- package/dist/warn-about-ffmpeg-version.d.ts +0 -5
- package/dist/warn-about-ffmpeg-version.js +0 -38
- package/dist/webpack-cache.d.ts +0 -12
- package/dist/webpack-cache.js +0 -66
- package/tsconfig.json +0 -16
package/dist/preview.js
CHANGED
|
@@ -4,36 +4,135 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.previewCommand = void 0;
|
|
7
|
-
const
|
|
7
|
+
const crypto_1 = __importDefault(require("crypto"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const
|
|
9
|
+
const better_opn_1 = require("./better-opn");
|
|
10
|
+
const chalk_1 = require("./chalk");
|
|
11
|
+
const config_1 = require("./config");
|
|
12
|
+
const convert_entry_point_to_serve_url_1 = require("./convert-entry-point-to-serve-url");
|
|
13
|
+
const entry_point_1 = require("./entry-point");
|
|
10
14
|
const get_env_1 = require("./get-env");
|
|
11
15
|
const get_input_props_1 = require("./get-input-props");
|
|
12
|
-
const
|
|
16
|
+
const get_network_address_1 = require("./get-network-address");
|
|
13
17
|
const log_1 = require("./log");
|
|
14
18
|
const parse_command_line_1 = require("./parse-command-line");
|
|
19
|
+
const get_absolute_public_dir_1 = require("./preview-server/get-absolute-public-dir");
|
|
20
|
+
const live_events_1 = require("./preview-server/live-events");
|
|
21
|
+
const public_folder_1 = require("./preview-server/public-folder");
|
|
15
22
|
const start_server_1 = require("./preview-server/start-server");
|
|
16
23
|
const noop = () => undefined;
|
|
17
|
-
const
|
|
18
|
-
|
|
24
|
+
const getShouldOpenBrowser = () => {
|
|
25
|
+
var _a;
|
|
26
|
+
if (parse_command_line_1.parsedCli['no-open']) {
|
|
27
|
+
return {
|
|
28
|
+
shouldOpenBrowser: false,
|
|
29
|
+
reasonForBrowserDecision: '--no-open specified',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (((_a = process.env.BROWSER) !== null && _a !== void 0 ? _a : '').toLowerCase() === 'none') {
|
|
33
|
+
return {
|
|
34
|
+
shouldOpenBrowser: false,
|
|
35
|
+
reasonForBrowserDecision: 'env BROWSER=none was set',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
if (config_1.ConfigInternals.getShouldOpenBrowser() === false) {
|
|
39
|
+
return { shouldOpenBrowser: false, reasonForBrowserDecision: 'Config file' };
|
|
40
|
+
}
|
|
41
|
+
return { shouldOpenBrowser: true, reasonForBrowserDecision: 'default' };
|
|
42
|
+
};
|
|
43
|
+
const getPort = () => {
|
|
44
|
+
if (parse_command_line_1.parsedCli.port) {
|
|
45
|
+
return parse_command_line_1.parsedCli.port;
|
|
46
|
+
}
|
|
47
|
+
const serverPort = config_1.ConfigInternals.getServerPort();
|
|
48
|
+
if (serverPort) {
|
|
49
|
+
return serverPort;
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
};
|
|
53
|
+
const previewCommand = async (remotionRoot, args) => {
|
|
54
|
+
const { file, reason } = (0, entry_point_1.findEntryPoint)(args, remotionRoot);
|
|
55
|
+
log_1.Log.verbose('Entry point:', file, 'reason:', reason);
|
|
19
56
|
if (!file) {
|
|
20
57
|
log_1.Log.error('The preview command requires you to specify a root file. For example');
|
|
21
|
-
log_1.Log.error(' npx remotion preview src/index.
|
|
58
|
+
log_1.Log.error(' npx remotion preview src/index.ts');
|
|
22
59
|
log_1.Log.error('See https://www.remotion.dev/docs/register-root for more information.');
|
|
23
60
|
process.exit(1);
|
|
24
61
|
}
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
62
|
+
const desiredPort = getPort();
|
|
63
|
+
const fullEntryPath = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
|
|
64
|
+
let inputProps = (0, get_input_props_1.getInputProps)((newProps) => {
|
|
65
|
+
(0, live_events_1.waitForLiveEventsListener)().then((listener) => {
|
|
66
|
+
inputProps = newProps;
|
|
67
|
+
listener.sendEventToClient({
|
|
68
|
+
type: 'new-input-props',
|
|
69
|
+
newProps,
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
let envVariables = await (0, get_env_1.getEnvironmentVariables)((newEnvVariables) => {
|
|
74
|
+
(0, live_events_1.waitForLiveEventsListener)().then((listener) => {
|
|
75
|
+
envVariables = newEnvVariables;
|
|
76
|
+
listener.sendEventToClient({
|
|
77
|
+
type: 'new-env-variables',
|
|
78
|
+
newEnvVariables,
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
const publicDir = (0, get_absolute_public_dir_1.getAbsolutePublicDir)({
|
|
83
|
+
userPassedPublicDir: config_1.ConfigInternals.getPublicDir(),
|
|
84
|
+
remotionRoot,
|
|
85
|
+
});
|
|
86
|
+
const hashPrefix = '/static-';
|
|
87
|
+
const staticHash = `${hashPrefix}${crypto_1.default.randomBytes(6).toString('hex')}`;
|
|
88
|
+
(0, public_folder_1.initPublicFolderWatch)({
|
|
89
|
+
publicDir,
|
|
90
|
+
remotionRoot,
|
|
91
|
+
onUpdate: () => {
|
|
92
|
+
(0, live_events_1.waitForLiveEventsListener)().then((listener) => {
|
|
93
|
+
listener.sendEventToClient({
|
|
94
|
+
type: 'new-public-folder',
|
|
95
|
+
files: (0, public_folder_1.getFiles)(),
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
staticHash,
|
|
100
|
+
});
|
|
101
|
+
const { port, liveEventsServer } = await (0, start_server_1.startServer)({
|
|
102
|
+
entry: path_1.default.resolve(__dirname, 'previewEntry.js'),
|
|
103
|
+
userDefinedComponent: fullEntryPath,
|
|
104
|
+
getCurrentInputProps: () => inputProps,
|
|
105
|
+
getEnvVariables: () => envVariables,
|
|
33
106
|
port: desiredPort,
|
|
34
|
-
maxTimelineTracks:
|
|
107
|
+
maxTimelineTracks: config_1.ConfigInternals.getMaxTimelineTracks(),
|
|
108
|
+
remotionRoot,
|
|
109
|
+
keyboardShortcutsEnabled: config_1.ConfigInternals.getKeyboardShortcutsEnabled(),
|
|
110
|
+
publicDir,
|
|
111
|
+
webpackOverride: config_1.ConfigInternals.getWebpackOverrideFn(),
|
|
112
|
+
poll: config_1.ConfigInternals.getWebpackPolling(),
|
|
113
|
+
userPassedPublicDir: config_1.ConfigInternals.getPublicDir(),
|
|
114
|
+
hash: staticHash,
|
|
115
|
+
hashPrefix,
|
|
35
116
|
});
|
|
36
|
-
(0,
|
|
117
|
+
(0, live_events_1.setLiveEventsListener)(liveEventsServer);
|
|
118
|
+
const networkAddress = (0, get_network_address_1.getNetworkAddress)();
|
|
119
|
+
if (networkAddress) {
|
|
120
|
+
log_1.Log.info(`Server ready - Local: ${chalk_1.chalk.underline(`http://localhost:${port}`)}, Network: ${chalk_1.chalk.underline(`http://${networkAddress}:${port}`)}`);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
log_1.Log.info(`Running on http://localhost:${port}`);
|
|
124
|
+
}
|
|
125
|
+
const { reasonForBrowserDecision, shouldOpenBrowser } = getShouldOpenBrowser();
|
|
126
|
+
if (shouldOpenBrowser) {
|
|
127
|
+
await (0, better_opn_1.openBrowser)({
|
|
128
|
+
url: `http://localhost:${port}`,
|
|
129
|
+
browserArgs: parse_command_line_1.parsedCli['browser-args'],
|
|
130
|
+
browserFlag: parse_command_line_1.parsedCli.browser,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
log_1.Log.verbose(`Not opening browser, reason: ${reasonForBrowserDecision}`);
|
|
135
|
+
}
|
|
37
136
|
await new Promise(noop);
|
|
38
137
|
};
|
|
39
138
|
exports.previewCommand = previewCommand;
|
package/dist/previewEntry.d.ts
CHANGED
|
File without changes
|
package/dist/previewEntry.js
CHANGED
|
@@ -4,15 +4,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_dom_1 = require("react-dom");
|
|
7
8
|
const client_1 = __importDefault(require("react-dom/client"));
|
|
8
9
|
const remotion_1 = require("remotion");
|
|
9
10
|
require("../styles/styles.css");
|
|
10
11
|
const Editor_1 = require("./editor/components/Editor");
|
|
12
|
+
const EditorContexts_1 = require("./editor/components/EditorContexts");
|
|
13
|
+
const ServerDisconnected_1 = require("./editor/components/Notifications/ServerDisconnected");
|
|
14
|
+
const event_source_1 = require("./event-source");
|
|
11
15
|
remotion_1.Internals.CSSUtils.injectCSS(remotion_1.Internals.CSSUtils.makeDefaultCSS(null, '#1f2428'));
|
|
12
|
-
const
|
|
16
|
+
const getServerDisconnectedDomElement = () => {
|
|
17
|
+
return document.getElementById('server-disconnected-overlay');
|
|
18
|
+
};
|
|
19
|
+
const content = ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { numberOfAudioTags: window.remotion_numberOfAudioTags, children: (0, jsx_runtime_1.jsxs)(EditorContexts_1.EditorContexts, { children: [(0, jsx_runtime_1.jsx)(Editor_1.Editor, {}), (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(ServerDisconnected_1.ServerDisconnected, {}), getServerDisconnectedDomElement())] }) }));
|
|
13
20
|
if (client_1.default.createRoot) {
|
|
14
21
|
client_1.default.createRoot(remotion_1.Internals.getPreviewDomElement()).render(content);
|
|
15
22
|
}
|
|
16
23
|
else {
|
|
17
|
-
client_1.default.render(
|
|
24
|
+
client_1.default.render(content, remotion_1.Internals.getPreviewDomElement());
|
|
18
25
|
}
|
|
26
|
+
(0, event_source_1.openEventSource)();
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printCompositions = void 0;
|
|
4
|
+
const log_1 = require("./log");
|
|
5
|
+
const parse_command_line_1 = require("./parse-command-line");
|
|
6
|
+
const max = (arr) => {
|
|
7
|
+
if (arr.length === 0) {
|
|
8
|
+
throw new Error('Array of 0 length');
|
|
9
|
+
}
|
|
10
|
+
let biggest = arr[0];
|
|
11
|
+
for (let i = 0; i < arr.length; i++) {
|
|
12
|
+
const elem = arr[i];
|
|
13
|
+
if (elem > biggest) {
|
|
14
|
+
biggest = elem;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return biggest;
|
|
18
|
+
};
|
|
19
|
+
const printCompositions = (compositions) => {
|
|
20
|
+
if (!(0, parse_command_line_1.quietFlagProvided)()) {
|
|
21
|
+
log_1.Log.info();
|
|
22
|
+
log_1.Log.info('The following compositions are available:');
|
|
23
|
+
log_1.Log.info();
|
|
24
|
+
}
|
|
25
|
+
if ((0, parse_command_line_1.quietFlagProvided)()) {
|
|
26
|
+
log_1.Log.info(compositions.map((c) => c.id).join(' '));
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const firstColumnLength = max(compositions.map(({ id }) => id.length)) + 4;
|
|
30
|
+
const secondColumnLength = 8;
|
|
31
|
+
const thirdColumnLength = 15;
|
|
32
|
+
log_1.Log.info(compositions
|
|
33
|
+
.map((comp) => {
|
|
34
|
+
const isStill = comp.durationInFrames === 1;
|
|
35
|
+
const dimensions = `${comp.width}x${comp.height}`;
|
|
36
|
+
const fps = isStill ? '' : comp.fps.toString();
|
|
37
|
+
const durationInSeconds = (comp.durationInFrames / comp.fps).toFixed(2);
|
|
38
|
+
const formattedDuration = isStill
|
|
39
|
+
? 'Still'
|
|
40
|
+
: `${comp.durationInFrames} (${durationInSeconds} sec)`;
|
|
41
|
+
return [
|
|
42
|
+
comp.id.padEnd(firstColumnLength, ' '),
|
|
43
|
+
fps.padEnd(secondColumnLength, ' '),
|
|
44
|
+
dimensions.padEnd(thirdColumnLength, ' '),
|
|
45
|
+
formattedDuration,
|
|
46
|
+
].join('');
|
|
47
|
+
})
|
|
48
|
+
.join('\n'));
|
|
49
|
+
};
|
|
50
|
+
exports.printCompositions = printCompositions;
|
package/dist/print-error.d.ts
CHANGED
|
File without changes
|
package/dist/print-error.js
CHANGED
|
@@ -8,7 +8,10 @@ const log_1 = require("./log");
|
|
|
8
8
|
const progress_bar_1 = require("./progress-bar");
|
|
9
9
|
const printError = async (err) => {
|
|
10
10
|
if (err instanceof renderer_1.RenderInternals.SymbolicateableError) {
|
|
11
|
-
const output = (0, progress_bar_1.createOverwriteableCliOutput)(
|
|
11
|
+
const output = (0, progress_bar_1.createOverwriteableCliOutput)({
|
|
12
|
+
quiet: false,
|
|
13
|
+
cancelSignal: null,
|
|
14
|
+
});
|
|
12
15
|
output.update(chalk_1.chalk.red('Symbolicating minified error message...\n' + err.message));
|
|
13
16
|
try {
|
|
14
17
|
const symbolicated = await renderer_1.RenderInternals.symbolicateError(err);
|
|
@@ -27,7 +30,6 @@ const printError = async (err) => {
|
|
|
27
30
|
}
|
|
28
31
|
return;
|
|
29
32
|
}
|
|
30
|
-
log_1.Log.error('An error occurred:');
|
|
31
33
|
log_1.Log.error(err.stack || err);
|
|
32
34
|
};
|
|
33
35
|
exports.printError = printError;
|
package/dist/print-help.d.ts
CHANGED
|
File without changes
|
package/dist/print-help.js
CHANGED
|
@@ -11,7 +11,7 @@ const printFlags = (flags) => {
|
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
const printHelp = () => {
|
|
14
|
-
log_1.Log.info(`@remotion/cli ${packagejson.version} © ${new Date().getFullYear()}
|
|
14
|
+
log_1.Log.info(`@remotion/cli ${packagejson.version} © ${new Date().getFullYear()} The Remotion developers`);
|
|
15
15
|
log_1.Log.info();
|
|
16
16
|
log_1.Log.info('Available commands:');
|
|
17
17
|
log_1.Log.info('');
|
|
@@ -19,18 +19,20 @@ const printHelp = () => {
|
|
|
19
19
|
log_1.Log.info(chalk_1.chalk.gray('Start the preview server.'));
|
|
20
20
|
printFlags([['--props', 'Pass input props as filename or as JSON']]);
|
|
21
21
|
log_1.Log.info();
|
|
22
|
-
log_1.Log.info('remotion render <entry-point.ts> <comp-
|
|
22
|
+
log_1.Log.info('remotion render <entry-point.ts> <comp-id> <output-file.mp4>');
|
|
23
23
|
log_1.Log.info(chalk_1.chalk.gray('Render video, audio or an image sequence.'));
|
|
24
24
|
printFlags([
|
|
25
25
|
['--props', 'Pass input props as filename or as JSON'],
|
|
26
26
|
['--concurrency', 'How many frames to render in parallel'],
|
|
27
|
-
['--image-format', 'Format to render the
|
|
27
|
+
['--image-format', 'Format to render the video/still in'],
|
|
28
28
|
['--pixel-format', 'Custom pixel format, see docs for available values'],
|
|
29
29
|
['--config', 'Custom location for a Remotion config file'],
|
|
30
30
|
['--quality', 'Quality for rendered frames, JPEG only, 0-100'],
|
|
31
31
|
['--overwrite', 'Overwrite if file exists, default true'],
|
|
32
32
|
['--sequence', 'Output as an image sequence'],
|
|
33
33
|
['--codec', 'Video of audio codec'],
|
|
34
|
+
['--audio-bitrate', 'Customize the output audio bitrate'],
|
|
35
|
+
['--video-bitrate', 'Customize the output video bitrate'],
|
|
34
36
|
['--crf', 'FFMPEG CRF value, controls quality, see docs for info'],
|
|
35
37
|
['--browser-executable', 'Custom path for browser executable'],
|
|
36
38
|
['--frames', 'Render a portion or a still of a video'],
|
|
@@ -40,11 +42,11 @@ const printHelp = () => {
|
|
|
40
42
|
['--env-file', 'Specify a location for a dotenv file'],
|
|
41
43
|
]);
|
|
42
44
|
log_1.Log.info();
|
|
43
|
-
log_1.Log.info('remotion still <entry-point.ts> <comp-
|
|
45
|
+
log_1.Log.info('remotion still <entry-point.ts> <comp-id> <still.png>');
|
|
44
46
|
log_1.Log.info(chalk_1.chalk.gray('Render a still frame and save it as an image.'));
|
|
45
47
|
printFlags([
|
|
46
48
|
['--frame', 'Which frame to render (default 0)'],
|
|
47
|
-
['--image-format', 'Format to render the
|
|
49
|
+
['--image-format', 'Format to render the video/still in'],
|
|
48
50
|
['--props', 'Pass input props as filename or as JSON'],
|
|
49
51
|
['--config', 'Custom location for a Remotion config file'],
|
|
50
52
|
['--quality', 'Quality for rendered frames, JPEG only, 0-100'],
|
|
@@ -59,11 +61,20 @@ const printHelp = () => {
|
|
|
59
61
|
log_1.Log.info('remotion compositions <index-file.ts>');
|
|
60
62
|
log_1.Log.info(chalk_1.chalk.gray('Prints the available compositions.'));
|
|
61
63
|
log_1.Log.info();
|
|
64
|
+
log_1.Log.info('remotion benchmark <index-file.ts> <list-of-compositions>');
|
|
65
|
+
log_1.Log.info(chalk_1.chalk.gray('Benchmarks rendering a composition. Same options as for render.'));
|
|
66
|
+
log_1.Log.info();
|
|
62
67
|
log_1.Log.info('remotion ' + versions_1.VERSIONS_COMMAND);
|
|
63
68
|
log_1.Log.info(chalk_1.chalk.gray('Prints and validates versions of all Remotion packages.'));
|
|
64
69
|
log_1.Log.info();
|
|
65
70
|
log_1.Log.info('remotion upgrade');
|
|
66
71
|
log_1.Log.info(chalk_1.chalk.gray('Ensure Remotion is on the newest version.'));
|
|
72
|
+
printFlags([
|
|
73
|
+
[
|
|
74
|
+
'--package-manager',
|
|
75
|
+
'Force a specific package manager, defaults to use from lockfile',
|
|
76
|
+
],
|
|
77
|
+
]);
|
|
67
78
|
log_1.Log.info();
|
|
68
79
|
log_1.Log.info('Visit https://www.remotion.dev/docs/cli for browsable CLI documentation.');
|
|
69
80
|
};
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -1,40 +1,46 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export declare const createProgressBar: (quiet: boolean) => {
|
|
1
|
+
import type { CancelSignal } from '@remotion/renderer';
|
|
2
|
+
import type { AggregateRenderProgress, RenderingProgressInput, StitchingProgressInput } from './progress-types';
|
|
3
|
+
export declare const createProgressBar: (quiet: boolean, cancelSignal: CancelSignal | null) => {
|
|
4
4
|
update: (str: string) => boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare
|
|
6
|
+
export declare type OverwriteableCliOutput = {
|
|
7
7
|
update: (up: string) => boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
frames: number;
|
|
16
|
-
totalFrames: number;
|
|
17
|
-
steps: RenderStep[];
|
|
18
|
-
concurrency: number;
|
|
9
|
+
export declare const createOverwriteableCliOutput: (options: {
|
|
10
|
+
quiet: boolean;
|
|
11
|
+
cancelSignal: CancelSignal | null;
|
|
12
|
+
}) => OverwriteableCliOutput;
|
|
13
|
+
export declare type CopyingState = {
|
|
14
|
+
bytes: number;
|
|
19
15
|
doneIn: number | null;
|
|
20
16
|
};
|
|
21
|
-
export declare
|
|
22
|
-
|
|
23
|
-
frames: number;
|
|
24
|
-
totalFrames: number;
|
|
25
|
-
steps: RenderStep[];
|
|
17
|
+
export declare type BundlingState = {
|
|
18
|
+
progress: number;
|
|
26
19
|
doneIn: number | null;
|
|
27
|
-
stage: StitchingState;
|
|
28
20
|
};
|
|
29
|
-
export declare
|
|
30
|
-
|
|
31
|
-
name: string;
|
|
32
|
-
id: number;
|
|
33
|
-
progress: number;
|
|
21
|
+
export declare type SymbolicLinksState = {
|
|
22
|
+
symlinks: string[];
|
|
34
23
|
};
|
|
35
|
-
export declare const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
export declare const makeBundlingAndCopyProgress: ({ bundling, copying, symLinks, }: {
|
|
25
|
+
bundling: BundlingState;
|
|
26
|
+
copying: CopyingState;
|
|
27
|
+
symLinks: SymbolicLinksState;
|
|
28
|
+
}, indent: boolean, bundlingStep: number, steps: number) => string;
|
|
29
|
+
export declare const makeRenderingProgress: ({ frames, totalFrames, steps, concurrency, doneIn }: RenderingProgressInput, indent: boolean) => string;
|
|
30
|
+
export declare const makeStitchingProgress: ({ stitchingProgress, indent, steps, stitchingStep, }: {
|
|
31
|
+
stitchingProgress: StitchingProgressInput;
|
|
32
|
+
indent: boolean;
|
|
33
|
+
steps: number;
|
|
34
|
+
stitchingStep: number;
|
|
39
35
|
}) => string;
|
|
40
|
-
export {}
|
|
36
|
+
export declare const makeRenderingAndStitchingProgress: ({ prog, indent, steps, stitchingStep, }: {
|
|
37
|
+
prog: AggregateRenderProgress;
|
|
38
|
+
indent: boolean;
|
|
39
|
+
steps: number;
|
|
40
|
+
stitchingStep: number;
|
|
41
|
+
}) => {
|
|
42
|
+
output: string;
|
|
43
|
+
progress: number;
|
|
44
|
+
message: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const getGuiProgressSubtitle: (progress: AggregateRenderProgress) => string;
|
package/dist/progress-bar.js
CHANGED
|
@@ -1,70 +1,190 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeRenderingAndStitchingProgress = exports.makeStitchingProgress = exports.makeRenderingProgress = exports.
|
|
4
|
-
const
|
|
3
|
+
exports.getGuiProgressSubtitle = exports.makeRenderingAndStitchingProgress = exports.makeStitchingProgress = exports.makeRenderingProgress = exports.makeBundlingAndCopyProgress = exports.createOverwriteableCliOutput = exports.createProgressBar = void 0;
|
|
4
|
+
const renderer_1 = require("@remotion/renderer");
|
|
5
5
|
const ansi_diff_1 = require("./ansi/ansi-diff");
|
|
6
6
|
const chalk_1 = require("./chalk");
|
|
7
|
+
const config_1 = require("./config");
|
|
7
8
|
const download_progress_1 = require("./download-progress");
|
|
9
|
+
const log_1 = require("./log");
|
|
8
10
|
const make_progress_bar_1 = require("./make-progress-bar");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
+
const truthy_1 = require("./truthy");
|
|
12
|
+
const createProgressBar = (quiet, cancelSignal) => {
|
|
13
|
+
if (!renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'info')) {
|
|
11
14
|
return { update: () => false };
|
|
12
15
|
}
|
|
13
|
-
return (0, exports.createOverwriteableCliOutput)(quiet);
|
|
16
|
+
return (0, exports.createOverwriteableCliOutput)({ quiet, cancelSignal });
|
|
14
17
|
};
|
|
15
18
|
exports.createProgressBar = createProgressBar;
|
|
16
|
-
const createOverwriteableCliOutput = (
|
|
17
|
-
|
|
19
|
+
const createOverwriteableCliOutput = (options) => {
|
|
20
|
+
var _a;
|
|
21
|
+
if (options.quiet) {
|
|
18
22
|
return {
|
|
19
23
|
update: () => false,
|
|
20
24
|
};
|
|
21
25
|
}
|
|
22
26
|
const diff = new ansi_diff_1.AnsiDiff();
|
|
27
|
+
(_a = options.cancelSignal) === null || _a === void 0 ? void 0 : _a.call(options, () => {
|
|
28
|
+
process.stdout.write(diff.finish());
|
|
29
|
+
});
|
|
23
30
|
return {
|
|
24
31
|
update: (up) => process.stdout.write(diff.update(up)),
|
|
25
32
|
};
|
|
26
33
|
};
|
|
27
34
|
exports.createOverwriteableCliOutput = createOverwriteableCliOutput;
|
|
28
|
-
const makeBundlingProgress = ({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
const makeBundlingProgress = ({ bundlingState, indent, bundlingStep, steps, }) => {
|
|
36
|
+
const { doneIn, progress } = bundlingState;
|
|
37
|
+
return [
|
|
38
|
+
indent ? log_1.INDENT_TOKEN : null,
|
|
39
|
+
`(${bundlingStep + 1}/${steps})`,
|
|
40
|
+
(0, make_progress_bar_1.makeProgressBar)(progress),
|
|
41
|
+
`${doneIn ? 'Bundled' : 'Bundling'} code`,
|
|
42
|
+
doneIn === null
|
|
43
|
+
? (progress * 100).toFixed(0) + '%'
|
|
44
|
+
: chalk_1.chalk.gray(`${doneIn}ms`),
|
|
45
|
+
]
|
|
46
|
+
.filter(truthy_1.truthy)
|
|
47
|
+
.join(' ');
|
|
48
|
+
};
|
|
49
|
+
const makeCopyingProgress = (options, indent) => {
|
|
50
|
+
// Don't show copy progress lower than 200MB
|
|
51
|
+
if (options.bytes < 1000 * 1000 * 200) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return [
|
|
55
|
+
indent ? log_1.INDENT_TOKEN : null,
|
|
56
|
+
' +',
|
|
57
|
+
options.doneIn ? (0, make_progress_bar_1.makeProgressBar)(1) : (0, download_progress_1.getFileSizeDownloadBar)(options.bytes),
|
|
58
|
+
'Copying public dir',
|
|
59
|
+
options.doneIn === null ? null : chalk_1.chalk.gray(`${options.doneIn}ms`),
|
|
60
|
+
]
|
|
61
|
+
.filter(truthy_1.truthy)
|
|
62
|
+
.join(' ');
|
|
63
|
+
};
|
|
64
|
+
const makeSymlinkProgress = (options, indent) => {
|
|
65
|
+
if (options.symlinks.length === 0) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
if (options.symlinks.length === 1) {
|
|
69
|
+
return [
|
|
70
|
+
chalk_1.chalk.gray(` Found a symbolic link in the public folder:`),
|
|
71
|
+
chalk_1.chalk.gray(' ' + options.symlinks[0]),
|
|
72
|
+
chalk_1.chalk.gray(' The symlink will be forwarded in to the bundle.'),
|
|
73
|
+
]
|
|
74
|
+
.map((l) => {
|
|
75
|
+
return indent ? `${log_1.INDENT_TOKEN} ${l}` : null;
|
|
76
|
+
})
|
|
77
|
+
.join('\n');
|
|
78
|
+
}
|
|
79
|
+
return [
|
|
80
|
+
chalk_1.chalk.gray(` Found ${options.symlinks.length} symbolic links in the public folder.`),
|
|
81
|
+
chalk_1.chalk.gray(' The symlinks will be forwarded in to the bundle.'),
|
|
82
|
+
]
|
|
83
|
+
.map((l) => {
|
|
84
|
+
return indent ? `${log_1.INDENT_TOKEN} ${l}` : null;
|
|
85
|
+
})
|
|
86
|
+
.join('\n');
|
|
87
|
+
};
|
|
88
|
+
const makeBundlingAndCopyProgress = ({ bundling, copying, symLinks, }, indent, bundlingStep, steps) => {
|
|
89
|
+
return [
|
|
90
|
+
makeBundlingProgress({
|
|
91
|
+
bundlingState: bundling,
|
|
92
|
+
indent,
|
|
93
|
+
bundlingStep,
|
|
94
|
+
steps,
|
|
95
|
+
}),
|
|
96
|
+
makeCopyingProgress(copying, indent),
|
|
97
|
+
makeSymlinkProgress(symLinks, indent),
|
|
98
|
+
]
|
|
99
|
+
.filter(truthy_1.truthy)
|
|
100
|
+
.join('\n');
|
|
101
|
+
};
|
|
102
|
+
exports.makeBundlingAndCopyProgress = makeBundlingAndCopyProgress;
|
|
103
|
+
const makeRenderingProgress = ({ frames, totalFrames, steps, concurrency, doneIn }, indent) => {
|
|
38
104
|
const progress = frames / totalFrames;
|
|
39
105
|
return [
|
|
106
|
+
indent ? log_1.INDENT_TOKEN : null,
|
|
40
107
|
`(${steps.indexOf('rendering') + 1}/${steps.length})`,
|
|
41
108
|
(0, make_progress_bar_1.makeProgressBar)(progress),
|
|
42
109
|
[doneIn ? 'Rendered' : 'Rendering', `frames (${concurrency}x)`]
|
|
43
|
-
.filter(
|
|
110
|
+
.filter(truthy_1.truthy)
|
|
44
111
|
.join(' '),
|
|
45
112
|
doneIn === null ? `${frames}/${totalFrames}` : chalk_1.chalk.gray(`${doneIn}ms`),
|
|
46
|
-
]
|
|
113
|
+
]
|
|
114
|
+
.filter(truthy_1.truthy)
|
|
115
|
+
.join(' ');
|
|
47
116
|
};
|
|
48
117
|
exports.makeRenderingProgress = makeRenderingProgress;
|
|
49
|
-
const makeStitchingProgress = ({
|
|
118
|
+
const makeStitchingProgress = ({ stitchingProgress, indent, steps, stitchingStep, }) => {
|
|
119
|
+
const { frames, totalFrames, doneIn, stage, codec } = stitchingProgress;
|
|
50
120
|
const progress = frames / totalFrames;
|
|
121
|
+
const mediaType = codec === 'gif'
|
|
122
|
+
? 'GIF'
|
|
123
|
+
: renderer_1.RenderInternals.isAudioCodec(codec)
|
|
124
|
+
? 'audio'
|
|
125
|
+
: 'video';
|
|
51
126
|
return [
|
|
52
|
-
|
|
127
|
+
indent ? log_1.INDENT_TOKEN : null,
|
|
128
|
+
`(${stitchingStep + 1}/${steps})`,
|
|
53
129
|
(0, make_progress_bar_1.makeProgressBar)(progress),
|
|
54
|
-
stage === 'muxing'
|
|
55
|
-
? `${doneIn ? 'Muxed' : 'Muxing'}
|
|
56
|
-
: `${doneIn ? 'Encoded' : 'Encoding'}
|
|
130
|
+
stage === 'muxing' && renderer_1.RenderInternals.canUseParallelEncoding(codec)
|
|
131
|
+
? `${doneIn ? 'Muxed' : 'Muxing'} ${mediaType}`
|
|
132
|
+
: `${doneIn ? 'Encoded' : 'Encoding'} ${mediaType}`,
|
|
57
133
|
doneIn === null ? `${frames}/${totalFrames}` : chalk_1.chalk.gray(`${doneIn}ms`),
|
|
58
|
-
]
|
|
134
|
+
]
|
|
135
|
+
.filter(truthy_1.truthy)
|
|
136
|
+
.join(' ');
|
|
59
137
|
};
|
|
60
138
|
exports.makeStitchingProgress = makeStitchingProgress;
|
|
61
|
-
const makeRenderingAndStitchingProgress = ({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
(0,
|
|
65
|
-
|
|
139
|
+
const makeRenderingAndStitchingProgress = ({ prog, indent, steps, stitchingStep, }) => {
|
|
140
|
+
const { rendering, stitching, downloads, bundling } = prog;
|
|
141
|
+
const output = [
|
|
142
|
+
rendering ? (0, exports.makeRenderingProgress)(rendering, indent) : null,
|
|
143
|
+
(0, download_progress_1.makeMultiDownloadProgress)(downloads, indent),
|
|
144
|
+
stitching === null
|
|
145
|
+
? null
|
|
146
|
+
: (0, exports.makeStitchingProgress)({
|
|
147
|
+
stitchingProgress: stitching,
|
|
148
|
+
indent,
|
|
149
|
+
steps,
|
|
150
|
+
stitchingStep,
|
|
151
|
+
}),
|
|
66
152
|
]
|
|
67
|
-
.filter(
|
|
153
|
+
.filter(truthy_1.truthy)
|
|
68
154
|
.join('\n');
|
|
155
|
+
const renderProgress = rendering
|
|
156
|
+
? rendering.frames / rendering.totalFrames
|
|
157
|
+
: 0;
|
|
158
|
+
const stitchingProgress = stitching
|
|
159
|
+
? stitching.frames / stitching.totalFrames
|
|
160
|
+
: 0;
|
|
161
|
+
const progress = bundling.progress * 0.3 + renderProgress * 0.6 + stitchingProgress * 0.1;
|
|
162
|
+
return { output, progress, message: (0, exports.getGuiProgressSubtitle)(prog) };
|
|
69
163
|
};
|
|
70
164
|
exports.makeRenderingAndStitchingProgress = makeRenderingAndStitchingProgress;
|
|
165
|
+
const getGuiProgressSubtitle = (progress) => {
|
|
166
|
+
if (progress.bundling.progress < 1) {
|
|
167
|
+
return `Bundling ${Math.round(progress.bundling.progress * 100)}%`;
|
|
168
|
+
}
|
|
169
|
+
if (!progress.copyingState.doneIn) {
|
|
170
|
+
if (progress.copyingState.bytes < 100000000) {
|
|
171
|
+
return 'Bundling 100%';
|
|
172
|
+
}
|
|
173
|
+
const bytes = new Intl.NumberFormat('en', {
|
|
174
|
+
notation: 'compact',
|
|
175
|
+
style: 'unit',
|
|
176
|
+
unit: 'byte',
|
|
177
|
+
unitDisplay: 'narrow',
|
|
178
|
+
});
|
|
179
|
+
return `Copying ${bytes.format(progress.copyingState.bytes)}`;
|
|
180
|
+
}
|
|
181
|
+
if (!progress.rendering) {
|
|
182
|
+
return `Getting compositions`;
|
|
183
|
+
}
|
|
184
|
+
const allRendered = progress.rendering.frames === progress.rendering.totalFrames;
|
|
185
|
+
if (!allRendered || !progress.stitching || progress.stitching.frames === 0) {
|
|
186
|
+
return `Rendering ${progress.rendering.frames}/${progress.rendering.totalFrames}`;
|
|
187
|
+
}
|
|
188
|
+
return `Stitching ${progress.stitching.frames}/${progress.stitching.totalFrames}`;
|
|
189
|
+
};
|
|
190
|
+
exports.getGuiProgressSubtitle = getGuiProgressSubtitle;
|