@remotion/cli 4.0.0-alpha.217 → 4.0.0-alpha4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ansi/ansi-diff.d.ts +1 -2
- package/dist/ansi/ansi-diff.js +20 -14
- package/dist/ansi/ansi-split.d.ts +0 -1
- package/dist/ansi/ansi-split.js +3 -16
- package/dist/benchmark.js +23 -64
- package/dist/composition-prompts.d.ts +4 -3
- package/dist/composition-prompts.js +1 -0
- package/dist/compositions.js +4 -10
- package/dist/config/bitrate.d.ts +2 -2
- package/dist/config/bitrate.js +2 -2
- package/dist/config/browser.d.ts +3 -1
- package/dist/config/browser.js +12 -2
- package/dist/config/codec.d.ts +4 -0
- package/dist/config/codec.js +21 -1
- package/dist/config/image-format.d.ts +3 -5
- package/dist/config/image-format.js +10 -32
- package/dist/config/index.d.ts +14 -255
- package/dist/config/index.js +49 -16
- package/dist/config/public-dir.d.ts +1 -1
- package/dist/config/scale.d.ts +1 -2
- package/dist/determine-image-format.d.ts +4 -5
- package/dist/determine-image-format.js +4 -17
- package/dist/download-progress.d.ts +2 -2
- package/dist/download-progress.js +3 -11
- package/dist/editor/components/Canvas.js +0 -3
- package/dist/editor/components/CompositionSelector.js +4 -2
- package/dist/editor/components/CompositionSelectorItem.d.ts +3 -3
- package/dist/editor/components/CompositionSelectorItem.js +6 -24
- package/dist/editor/components/CurrentComposition.js +19 -4
- package/dist/editor/components/Editor.js +11 -2
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.js +86 -10
- package/dist/editor/components/GlobalKeybindings.js +0 -4
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/KeyboardShortcutsExplainer.js +4 -5
- package/dist/editor/components/Menu/MenuSubItem.d.ts +1 -0
- package/dist/editor/components/Menu/MenuSubItem.js +3 -15
- package/dist/editor/components/Menu/is-menu-item.d.ts +0 -2
- package/dist/editor/components/Menu/is-menu-item.js +1 -3
- package/dist/editor/components/Menu/styles.d.ts +0 -4
- package/dist/editor/components/Menu/styles.js +4 -13
- package/dist/editor/components/MenuToolbar.js +1 -2
- package/dist/editor/components/ModalContainer.d.ts +0 -2
- package/dist/editor/components/ModalContainer.js +3 -12
- package/dist/editor/components/ModalHeader.js +2 -6
- package/dist/editor/components/NewComposition/CancelButton.js +0 -3
- package/dist/editor/components/NewComposition/ComboBox.js +15 -23
- package/dist/editor/components/NewComposition/InputDragger.d.ts +0 -4
- package/dist/editor/components/NewComposition/InputDragger.js +7 -12
- package/dist/editor/components/NewComposition/MenuContent.js +1 -14
- package/dist/editor/components/NewComposition/NewCompDuration.js +2 -2
- package/dist/editor/components/NewComposition/NewComposition.js +5 -8
- package/dist/editor/components/NewComposition/RemInput.d.ts +2 -14
- package/dist/editor/components/NewComposition/RemInput.js +9 -24
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +0 -2
- package/dist/editor/components/NewComposition/ValidationMessage.js +8 -18
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +0 -1
- package/dist/editor/components/Notifications/NotificationCenter.js +1 -11
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +4 -0
- package/dist/editor/components/Notifications/ServerDisconnected.js +14 -4
- package/dist/editor/components/PlayPause.js +0 -6
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +0 -3
- package/dist/editor/components/PlaybackRateSelector.d.ts +2 -0
- package/dist/editor/components/PlaybackRateSelector.js +6 -5
- package/dist/editor/components/Preview.d.ts +1 -0
- package/dist/editor/components/Preview.js +4 -4
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +3 -8
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +2 -4
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +27 -0
- package/dist/editor/components/QuickSwitcher/algolia-search.js +3 -2
- package/dist/editor/components/SizeSelector.d.ts +1 -0
- package/dist/editor/components/SizeSelector.js +3 -3
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +2 -1
- package/dist/editor/components/Splitter/SplitterHandle.js +7 -15
- package/dist/editor/components/Timeline/MaxTimelineTracks.js +1 -1
- package/dist/editor/components/Timeline/Timeline.js +1 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.d.ts +0 -1
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +5 -4
- package/dist/editor/components/Timeline/TimelineListItem.js +1 -2
- package/dist/editor/components/Timeline/TimelineScrollable.js +1 -2
- package/dist/editor/components/Timeline/TimelineSequence.js +14 -2
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +1 -2
- package/dist/editor/components/Timeline/TimelineZoomControls.js +5 -2
- package/dist/editor/components/Timeline/imperative-state.d.ts +4 -0
- package/dist/editor/components/Timeline/imperative-state.js +13 -13
- package/dist/editor/components/Timeline/is-collapsed.js +3 -2
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +1 -0
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +6 -5
- package/dist/editor/components/TimelineInOutToggle.js +0 -3
- package/dist/editor/components/TopPanel.d.ts +0 -1
- package/dist/editor/components/TopPanel.js +16 -30
- package/dist/editor/components/ZoomPersistor.d.ts +1 -0
- package/dist/editor/components/ZoomPersistor.js +3 -2
- package/dist/editor/components/layout.d.ts +1 -3
- package/dist/editor/components/layout.js +7 -9
- package/dist/editor/helpers/calculate-timeline.d.ts +4 -0
- package/dist/editor/helpers/colors.d.ts +1 -3
- package/dist/editor/helpers/colors.js +3 -6
- package/dist/editor/helpers/create-folder-tree.d.ts +3 -2
- package/dist/editor/helpers/create-folder-tree.js +4 -3
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +1 -2
- package/dist/editor/helpers/is-composition-still.d.ts +2 -2
- package/dist/editor/helpers/is-composition-still.js +0 -3
- package/dist/editor/helpers/use-keybinding.d.ts +0 -1
- package/dist/editor/helpers/use-keybinding.js +0 -9
- package/dist/editor/helpers/use-menu-structure.js +51 -99
- package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/caret.d.ts +1 -4
- package/dist/editor/icons/caret.js +1 -17
- package/dist/editor/icons/folder.d.ts +2 -6
- package/dist/editor/icons/folder.js +4 -4
- package/dist/editor/icons/still.d.ts +1 -3
- package/dist/editor/icons/still.js +2 -2
- package/dist/editor/state/keybindings.d.ts +1 -2
- package/dist/editor/state/modals.d.ts +0 -38
- package/dist/editor/state/preview-size.d.ts +1 -0
- package/dist/editor/state/preview-size.js +4 -3
- package/dist/editor/state/sidebar.d.ts +3 -7
- package/dist/editor/state/sidebar.js +13 -42
- package/dist/editor/state/timeline-ref.d.ts +1 -2
- package/dist/editor/state/z-index.d.ts +5 -0
- package/dist/editor/state/z-index.js +6 -16
- package/dist/event-source-events.d.ts +0 -15
- package/dist/event-source.d.ts +0 -2
- package/dist/event-source.js +5 -31
- package/dist/get-cli-options.d.ts +12 -3
- package/dist/get-cli-options.js +60 -7
- package/dist/get-composition-id.d.ts +3 -7
- package/dist/get-composition-id.js +3 -17
- package/dist/get-composition-with-dimension-override.d.ts +4 -5
- package/dist/get-composition-with-dimension-override.js +2 -6
- package/dist/get-config-file-name.d.ts +2 -0
- package/dist/get-config-file-name.js +7 -7
- package/dist/get-env.d.ts +1 -1
- package/dist/get-env.js +48 -39
- package/dist/get-filename.d.ts +1 -5
- package/dist/get-filename.js +4 -6
- package/dist/get-final-output-codec.d.ts +1 -2
- package/dist/get-final-output-codec.js +1 -4
- package/dist/get-input-props.d.ts +5 -1
- package/dist/get-input-props.js +13 -11
- package/dist/image-formats.d.ts +2 -5
- package/dist/image-formats.js +6 -16
- package/dist/index.d.ts +22 -91
- package/dist/index.js +13 -12
- package/dist/list-of-remotion-packages.js +0 -1
- package/dist/load-config.js +1 -1
- package/dist/log.d.ts +0 -14
- package/dist/log.js +8 -24
- package/dist/parse-command-line.d.ts +5 -5
- package/dist/parse-command-line.js +14 -6
- package/dist/preview-server/dev-middleware/middleware.d.ts +1 -0
- package/dist/preview-server/dev-middleware/middleware.js +2 -1
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +4 -8
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +8 -12
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +1 -2
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +0 -1
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +1 -16
- package/dist/preview-server/hot-middleware/client.js +2 -2
- package/dist/preview-server/live-events.d.ts +0 -2
- package/dist/preview-server/live-events.js +2 -22
- package/dist/preview-server/public-folder.d.ts +5 -0
- package/dist/preview-server/public-folder.js +4 -3
- package/dist/preview-server/routes.d.ts +1 -2
- package/dist/preview-server/routes.js +13 -71
- package/dist/preview-server/start-server.js +0 -1
- package/dist/preview.js +21 -8
- package/dist/previewEntry.js +3 -2
- package/dist/print-compositions.d.ts +2 -2
- package/dist/print-error.js +2 -4
- package/dist/print-help.js +8 -4
- package/dist/progress-bar.d.ts +37 -17
- package/dist/progress-bar.js +41 -102
- package/dist/render.js +232 -42
- package/dist/select-composition.d.ts +1 -2
- package/dist/setup-cache.d.ts +9 -12
- package/dist/setup-cache.js +20 -29
- package/dist/still.js +130 -25
- package/dist/user-passed-output-location.js +7 -2
- package/package.json +72 -88
- package/styles/styles.css +3 -13
- package/dist/codemods/update-default-props.d.ts +0 -5
- package/dist/codemods/update-default-props.js +0 -143
- package/dist/color-math.d.ts +0 -2
- package/dist/color-math.js +0 -11
- package/dist/config/jpeg-quality.d.ts +0 -2
- package/dist/config/jpeg-quality.js +0 -17
- package/dist/convert-entry-point-to-serve-url.d.ts +0 -1
- package/dist/convert-entry-point-to-serve-url.js +0 -15
- package/dist/editor/components/Checkbox.d.ts +0 -6
- package/dist/editor/components/Checkbox.js +0 -42
- package/dist/editor/components/CheckerboardProvider.d.ts +0 -4
- package/dist/editor/components/CheckerboardProvider.js +0 -24
- package/dist/editor/components/CollapsableOptions.d.ts +0 -6
- package/dist/editor/components/CollapsableOptions.js +0 -35
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +0 -3
- package/dist/editor/components/CurrentCompositionSideEffects.js +0 -51
- package/dist/editor/components/InlineAction.d.ts +0 -5
- package/dist/editor/components/InlineAction.js +0 -35
- package/dist/editor/components/MediaVolumeProvider.d.ts +0 -4
- package/dist/editor/components/MediaVolumeProvider.js +0 -25
- package/dist/editor/components/Modals.d.ts +0 -2
- package/dist/editor/components/Modals.js +0 -23
- package/dist/editor/components/ModalsProvider.d.ts +0 -4
- package/dist/editor/components/ModalsProvider.js +0 -17
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +0 -7
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +0 -53
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +0 -7
- package/dist/editor/components/NewComposition/RemTextarea.js +0 -92
- package/dist/editor/components/PlayerEmitterContext.d.ts +0 -4
- package/dist/editor/components/PlayerEmitterContext.js +0 -11
- package/dist/editor/components/RenderButton.d.ts +0 -6
- package/dist/editor/components/RenderButton.js +0 -80
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/CliCopyButton.js +0 -22
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +0 -16
- package/dist/editor/components/RenderModal/CrfSetting.js +0 -43
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +0 -16
- package/dist/editor/components/RenderModal/EnvInput.d.ts +0 -11
- package/dist/editor/components/RenderModal/EnvInput.js +0 -74
- package/dist/editor/components/RenderModal/FrameRangeSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +0 -42
- package/dist/editor/components/RenderModal/GuiRenderStatus.d.ts +0 -5
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +0 -78
- package/dist/editor/components/RenderModal/InfoBubble.d.ts +0 -5
- package/dist/editor/components/RenderModal/InfoBubble.js +0 -115
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +0 -5
- package/dist/editor/components/RenderModal/InfoTooltip.js +0 -40
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +0 -5
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +0 -14
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +0 -12
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +0 -12
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +0 -8
- package/dist/editor/components/RenderModal/MutedSetting.js +0 -16
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +0 -26
- package/dist/editor/components/RenderModal/NumberSetting.d.ts +0 -12
- package/dist/editor/components/RenderModal/NumberSetting.js +0 -29
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +0 -5
- package/dist/editor/components/RenderModal/OptionExplainer.js +0 -45
- package/dist/editor/components/RenderModal/RenderModal.d.ts +0 -35
- package/dist/editor/components/RenderModal/RenderModal.js +0 -575
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +0 -26
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +0 -61
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +0 -17
- package/dist/editor/components/RenderModal/RenderModalAudio.js +0 -46
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +0 -23
- package/dist/editor/components/RenderModal/RenderModalBasic.js +0 -79
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +0 -9
- package/dist/editor/components/RenderModal/RenderModalData.js +0 -210
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +0 -5
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +0 -55
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +0 -9
- package/dist/editor/components/RenderModal/RenderModalGif.js +0 -19
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +0 -2
- package/dist/editor/components/RenderModal/RenderModalHr.js +0 -18
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +0 -10
- package/dist/editor/components/RenderModal/RenderModalInput.js +0 -13
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.d.ts +0 -10
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.js +0 -118
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +0 -28
- package/dist/editor/components/RenderModal/RenderModalPicture.js +0 -56
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +0 -4
- package/dist/editor/components/RenderModal/RenderStatusModal.js +0 -72
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/ScaleSetting.js +0 -17
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +0 -39
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEmptyStateGraphic.js +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +0 -11
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +0 -55
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +0 -40
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +0 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +0 -84
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +0 -13
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +0 -28
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +0 -12
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +0 -116
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +0 -76
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +0 -55
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +0 -72
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +0 -5
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +0 -23
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +0 -8
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +0 -27
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +0 -88
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +0 -64
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +0 -10
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +0 -52
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +0 -48
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +0 -81
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +0 -14
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +0 -49
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +0 -158
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +0 -21
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +0 -2
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +0 -15
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +0 -1
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +0 -2
- package/dist/editor/components/RenderModal/WarningIndicatorButton.d.ts +0 -6
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +0 -49
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +0 -11
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +0 -26
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-audio-codecs.js +0 -18
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +0 -2
- package/dist/editor/components/RenderModal/human-readable-codec.js +0 -36
- package/dist/editor/components/RenderModal/layout.d.ts +0 -7
- package/dist/editor/components/RenderModal/layout.js +0 -45
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +0 -14
- package/dist/editor/components/RenderModal/out-name-checker.js +0 -80
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +0 -5
- package/dist/editor/components/RenderQueue/CircularProgress.js +0 -18
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueError.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +0 -40
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +0 -22
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +0 -43
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +0 -22
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +0 -26
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +0 -33
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +0 -5
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +0 -22
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +0 -2
- package/dist/editor/components/RenderQueue/SuccessIcon.js +0 -14
- package/dist/editor/components/RenderQueue/actions.d.ts +0 -58
- package/dist/editor/components/RenderQueue/actions.js +0 -119
- package/dist/editor/components/RenderQueue/context.d.ts +0 -18
- package/dist/editor/components/RenderQueue/context.js +0 -49
- package/dist/editor/components/RenderQueue/index.d.ts +0 -2
- package/dist/editor/components/RenderQueue/index.js +0 -43
- package/dist/editor/components/RenderQueue/item-style.d.ts +0 -2
- package/dist/editor/components/RenderQueue/item-style.js +0 -21
- package/dist/editor/components/RenderToolbarIcon.d.ts +0 -2
- package/dist/editor/components/RenderToolbarIcon.js +0 -101
- package/dist/editor/components/RendersTab.d.ts +0 -6
- package/dist/editor/components/RendersTab.js +0 -43
- package/dist/editor/components/RightPanel.d.ts +0 -8
- package/dist/editor/components/RightPanel.js +0 -76
- package/dist/editor/components/SegmentedControl.d.ts +0 -11
- package/dist/editor/components/SegmentedControl.js +0 -62
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +0 -4
- package/dist/editor/components/SetTimelineInOutProvider.js +0 -19
- package/dist/editor/components/SidebarCollapserControls.d.ts +0 -2
- package/dist/editor/components/SidebarCollapserControls.js +0 -122
- package/dist/editor/components/Tabs/index.d.ts +0 -11
- package/dist/editor/components/Tabs/index.js +0 -58
- package/dist/editor/components/Tabs/vertical.d.ts +0 -7
- package/dist/editor/components/Tabs/vertical.js +0 -43
- package/dist/editor/components/ZoomGesturesProvider.d.ts +0 -4
- package/dist/editor/components/ZoomGesturesProvider.js +0 -24
- package/dist/editor/components/get-zod-if-possible.d.ts +0 -10
- package/dist/editor/components/get-zod-if-possible.js +0 -79
- package/dist/editor/helpers/client-id.d.ts +0 -17
- package/dist/editor/helpers/client-id.js +0 -46
- package/dist/editor/helpers/convert-env-variables.d.ts +0 -2
- package/dist/editor/helpers/convert-env-variables.js +0 -20
- package/dist/editor/helpers/prores-labels.d.ts +0 -2
- package/dist/editor/helpers/prores-labels.js +0 -25
- package/dist/editor/helpers/render-modal-sections.d.ts +0 -10
- package/dist/editor/helpers/render-modal-sections.js +0 -32
- package/dist/editor/helpers/use-breakpoint.d.ts +0 -1
- package/dist/editor/helpers/use-breakpoint.js +0 -17
- package/dist/editor/helpers/use-file-existence.d.ts +0 -1
- package/dist/editor/helpers/use-file-existence.js +0 -66
- package/dist/editor/icons/RenderStillIcon.d.ts +0 -3
- package/dist/editor/icons/RenderStillIcon.js +0 -8
- package/dist/editor/icons/audio.d.ts +0 -2
- package/dist/editor/icons/audio.js +0 -6
- package/dist/editor/icons/data.d.ts +0 -2
- package/dist/editor/icons/data.js +0 -8
- package/dist/editor/icons/file.d.ts +0 -2
- package/dist/editor/icons/file.js +0 -6
- package/dist/editor/icons/frame.d.ts +0 -2
- package/dist/editor/icons/frame.js +0 -6
- package/dist/editor/icons/gear.d.ts +0 -2
- package/dist/editor/icons/gear.js +0 -6
- package/dist/editor/icons/gif.d.ts +0 -2
- package/dist/editor/icons/gif.js +0 -6
- package/dist/editor/icons/render.d.ts +0 -8
- package/dist/editor/icons/render.js +0 -12
- package/dist/editor/icons/video.d.ts +0 -5
- package/dist/editor/icons/video.js +0 -8
- package/dist/ffmpeg.d.ts +0 -2
- package/dist/ffmpeg.js +0 -21
- package/dist/file-watcher.d.ts +0 -9
- package/dist/file-watcher.js +0 -35
- package/dist/get-default-out-name.d.ts +0 -5
- package/dist/get-default-out-name.js +0 -10
- package/dist/preview-server/api-routes.d.ts +0 -4
- package/dist/preview-server/api-routes.js +0 -21
- package/dist/preview-server/api-types.d.ts +0 -25
- package/dist/preview-server/api-types.js +0 -2
- package/dist/preview-server/file-existence-watchers.d.ts +0 -13
- package/dist/preview-server/file-existence-watchers.js +0 -62
- package/dist/preview-server/handler.d.ts +0 -9
- package/dist/preview-server/handler.js +0 -34
- package/dist/preview-server/parse-body.d.ts +0 -2
- package/dist/preview-server/parse-body.js +0 -16
- package/dist/preview-server/render-queue/get-default-video-contexts.d.ts +0 -10
- package/dist/preview-server/render-queue/get-default-video-contexts.js +0 -13
- package/dist/preview-server/render-queue/job.d.ts +0 -138
- package/dist/preview-server/render-queue/job.js +0 -2
- package/dist/preview-server/render-queue/make-retry-payload.d.ts +0 -3
- package/dist/preview-server/render-queue/make-retry-payload.js +0 -91
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +0 -1
- package/dist/preview-server/render-queue/open-directory-in-finder.js +0 -43
- package/dist/preview-server/render-queue/process-still.d.ts +0 -8
- package/dist/preview-server/render-queue/process-still.js +0 -46
- package/dist/preview-server/render-queue/process-video.d.ts +0 -8
- package/dist/preview-server/render-queue/process-video.js +0 -63
- package/dist/preview-server/render-queue/queue.d.ts +0 -9
- package/dist/preview-server/render-queue/queue.js +0 -212
- package/dist/preview-server/routes/add-render.d.ts +0 -3
- package/dist/preview-server/routes/add-render.js +0 -76
- package/dist/preview-server/routes/can-update-default-props.d.ts +0 -4
- package/dist/preview-server/routes/can-update-default-props.js +0 -39
- package/dist/preview-server/routes/cancel-render.d.ts +0 -3
- package/dist/preview-server/routes/cancel-render.js +0 -9
- package/dist/preview-server/routes/open-in-file-explorer.d.ts +0 -3
- package/dist/preview-server/routes/open-in-file-explorer.js +0 -8
- package/dist/preview-server/routes/remove-render.d.ts +0 -3
- package/dist/preview-server/routes/remove-render.js +0 -9
- package/dist/preview-server/routes/subscribe-to-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/subscribe-to-file-existence.js +0 -13
- package/dist/preview-server/routes/unsubscribe-from-file-existence.d.ts +0 -3
- package/dist/preview-server/routes/unsubscribe-from-file-existence.js +0 -13
- package/dist/preview-server/routes/update-default-props.d.ts +0 -3
- package/dist/preview-server/routes/update-default-props.js +0 -24
- package/dist/progress-types.d.ts +0 -32
- package/dist/progress-types.js +0 -17
- package/dist/render-flows/render.d.ts +0 -47
- package/dist/render-flows/render.js +0 -293
- package/dist/render-flows/still.d.ts +0 -29
- package/dist/render-flows/still.js +0 -174
- package/dist/required-chromium-options.d.ts +0 -3
- package/dist/required-chromium-options.js +0 -2
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ShortcutHint = exports.cmdOrCtrlCharacter = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const use_keybinding_1 = require("../../../editor/helpers/use-keybinding");
|
|
7
5
|
exports.cmdOrCtrlCharacter = window.navigator.platform.startsWith('Mac')
|
|
8
6
|
? '⌘'
|
|
9
7
|
: 'Ctrl';
|
|
@@ -11,21 +9,8 @@ const container = {
|
|
|
11
9
|
display: 'inline-block',
|
|
12
10
|
marginLeft: 6,
|
|
13
11
|
opacity: 0.6,
|
|
14
|
-
verticalAlign: 'middle',
|
|
15
12
|
};
|
|
16
13
|
const ShortcutHint = ({ keyToPress, cmdOrCtrl }) => {
|
|
17
|
-
|
|
18
|
-
if (keyToPress === '↵') {
|
|
19
|
-
return {
|
|
20
|
-
display: 'inline-block',
|
|
21
|
-
transform: `translateY(2px)`,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
return {};
|
|
25
|
-
}, [keyToPress]);
|
|
26
|
-
if ((0, use_keybinding_1.areKeyboardShortcutsDisabled)()) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)("span", { style: container, children: [cmdOrCtrl ? `${exports.cmdOrCtrlCharacter}` : '', (0, jsx_runtime_1.jsx)("span", { style: style, children: keyToPress.toUpperCase() })] }));
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("span", { style: container, children: [cmdOrCtrl ? `${exports.cmdOrCtrlCharacter}+` : '', keyToPress.toUpperCase()] }));
|
|
30
15
|
};
|
|
31
16
|
exports.ShortcutHint = ShortcutHint;
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
* https://github.com/webpack-contrib/webpack-hot-middleware#readme
|
|
7
7
|
* and rewritten in TypeScript. This file is MIT licensed
|
|
8
8
|
*/
|
|
9
|
-
const ansi_split_1 = require("../../ansi/ansi-split");
|
|
10
9
|
const process_update_1 = require("./process-update");
|
|
10
|
+
const strip_ansi_1 = require("./strip-ansi");
|
|
11
11
|
const types_1 = require("./types");
|
|
12
12
|
if (typeof window === 'undefined') {
|
|
13
13
|
// do nothing
|
|
@@ -107,7 +107,7 @@ function createReporter() {
|
|
|
107
107
|
}
|
|
108
108
|
const newProblems = obj[type]
|
|
109
109
|
.map((msg) => {
|
|
110
|
-
return (0,
|
|
110
|
+
return (0, strip_ansi_1.stripAnsi)(msg);
|
|
111
111
|
})
|
|
112
112
|
.join('\n');
|
|
113
113
|
if (previousProblems === newProblems) {
|
|
@@ -6,5 +6,3 @@ export declare type LiveEventsServer = {
|
|
|
6
6
|
router: (request: IncomingMessage, response: ServerResponse) => void;
|
|
7
7
|
};
|
|
8
8
|
export declare const makeLiveEventsRouter: () => LiveEventsServer;
|
|
9
|
-
export declare const waitForLiveEventsListener: () => Promise<LiveEventsServer>;
|
|
10
|
-
export declare const setLiveEventsListener: (listener: LiveEventsServer) => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const file_existence_watchers_1 = require("./file-existence-watchers");
|
|
3
|
+
exports.makeLiveEventsRouter = void 0;
|
|
5
4
|
const serializeMessage = (message) => {
|
|
6
5
|
return `data: ${JSON.stringify(message)}\n\n`;
|
|
7
6
|
};
|
|
@@ -18,15 +17,14 @@ const makeLiveEventsRouter = () => {
|
|
|
18
17
|
response.end();
|
|
19
18
|
return;
|
|
20
19
|
}
|
|
20
|
+
response.write(serializeMessage({ type: 'init' }));
|
|
21
21
|
const clientId = String(Math.random());
|
|
22
|
-
response.write(serializeMessage({ type: 'init', clientId }));
|
|
23
22
|
const newClient = {
|
|
24
23
|
id: clientId,
|
|
25
24
|
response,
|
|
26
25
|
};
|
|
27
26
|
clients.push(newClient);
|
|
28
27
|
request.on('close', () => {
|
|
29
|
-
(0, file_existence_watchers_1.unsubscribeClientFileExistenceWatchers)(clientId);
|
|
30
28
|
clients = clients.filter((client) => client.id !== clientId);
|
|
31
29
|
});
|
|
32
30
|
};
|
|
@@ -41,21 +39,3 @@ const makeLiveEventsRouter = () => {
|
|
|
41
39
|
};
|
|
42
40
|
};
|
|
43
41
|
exports.makeLiveEventsRouter = makeLiveEventsRouter;
|
|
44
|
-
let liveEventsListener = null;
|
|
45
|
-
const waiters = [];
|
|
46
|
-
const waitForLiveEventsListener = () => {
|
|
47
|
-
if (liveEventsListener) {
|
|
48
|
-
return Promise.resolve(liveEventsListener);
|
|
49
|
-
}
|
|
50
|
-
return new Promise((resolve) => {
|
|
51
|
-
waiters.push((list) => {
|
|
52
|
-
resolve(list);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
exports.waitForLiveEventsListener = waitForLiveEventsListener;
|
|
57
|
-
const setLiveEventsListener = (listener) => {
|
|
58
|
-
liveEventsListener = listener;
|
|
59
|
-
waiters.forEach((w) => w(listener));
|
|
60
|
-
};
|
|
61
|
-
exports.setLiveEventsListener = setLiveEventsListener;
|
|
@@ -9,4 +9,9 @@ export declare const fetchFolder: ({ publicDir, staticHash, }: {
|
|
|
9
9
|
publicDir: string;
|
|
10
10
|
staticHash: string;
|
|
11
11
|
}) => void;
|
|
12
|
+
export declare const watchPublicFolder: ({ publicDir, onUpdate, staticHash, }: {
|
|
13
|
+
publicDir: string;
|
|
14
|
+
onUpdate: () => void;
|
|
15
|
+
staticHash: string;
|
|
16
|
+
}) => void;
|
|
12
17
|
export declare const getFiles: () => StaticFile[];
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getFiles = exports.fetchFolder = exports.initPublicFolderWatch = void 0;
|
|
6
|
+
exports.getFiles = exports.watchPublicFolder = exports.fetchFolder = exports.initPublicFolderWatch = void 0;
|
|
7
7
|
const bundler_1 = require("@remotion/bundler");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -11,7 +11,7 @@ const env_supports_fs_recursive_1 = require("./env-supports-fs-recursive");
|
|
|
11
11
|
let files = [];
|
|
12
12
|
const initPublicFolderWatch = ({ publicDir, onUpdate, staticHash, }) => {
|
|
13
13
|
(0, exports.fetchFolder)({ publicDir, staticHash });
|
|
14
|
-
watchPublicFolder({ publicDir, onUpdate, staticHash });
|
|
14
|
+
(0, exports.watchPublicFolder)({ publicDir, onUpdate, staticHash });
|
|
15
15
|
};
|
|
16
16
|
exports.initPublicFolderWatch = initPublicFolderWatch;
|
|
17
17
|
const fetchFolder = ({ publicDir, staticHash, }) => {
|
|
@@ -33,7 +33,7 @@ const watchPublicFolder = ({ publicDir, onUpdate, staticHash, }) => {
|
|
|
33
33
|
const parentDir = path_1.default.dirname(publicDir);
|
|
34
34
|
const onDirChange = () => {
|
|
35
35
|
if ((0, fs_1.existsSync)(publicDir)) {
|
|
36
|
-
watchPublicFolder({
|
|
36
|
+
(0, exports.watchPublicFolder)({
|
|
37
37
|
publicDir,
|
|
38
38
|
onUpdate,
|
|
39
39
|
staticHash,
|
|
@@ -49,6 +49,7 @@ const watchPublicFolder = ({ publicDir, onUpdate, staticHash, }) => {
|
|
|
49
49
|
onUpdate();
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
+
exports.watchPublicFolder = watchPublicFolder;
|
|
52
53
|
const getFiles = () => {
|
|
53
54
|
return files;
|
|
54
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
2
2
|
import type { LiveEventsServer } from './live-events';
|
|
3
|
-
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot,
|
|
3
|
+
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, publicDir, }: {
|
|
4
4
|
hash: string;
|
|
5
5
|
hashPrefix: string;
|
|
6
6
|
request: IncomingMessage;
|
|
@@ -9,6 +9,5 @@ export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveE
|
|
|
9
9
|
getCurrentInputProps: () => object;
|
|
10
10
|
getEnvVariables: () => Record<string, string>;
|
|
11
11
|
remotionRoot: string;
|
|
12
|
-
entryPoint: string;
|
|
13
12
|
publicDir: string;
|
|
14
13
|
}) => void | Promise<void>;
|
|
@@ -5,22 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.handleRoutes = void 0;
|
|
7
7
|
const bundler_1 = require("@remotion/bundler");
|
|
8
|
-
const renderer_1 = require("@remotion/renderer");
|
|
9
8
|
const fs_1 = require("fs");
|
|
10
9
|
const path_1 = __importDefault(require("path"));
|
|
11
10
|
const url_1 = require("url");
|
|
12
|
-
const config_1 = require("../config");
|
|
13
11
|
const number_of_shared_audio_tags_1 = require("../config/number-of-shared-audio-tags");
|
|
14
12
|
const parse_command_line_1 = require("../parse-command-line");
|
|
15
|
-
const api_routes_1 = require("./api-routes");
|
|
16
13
|
const get_file_source_1 = require("./error-overlay/react-overlay/utils/get-file-source");
|
|
17
14
|
const open_in_editor_1 = require("./error-overlay/react-overlay/utils/open-in-editor");
|
|
18
15
|
const get_package_manager_1 = require("./get-package-manager");
|
|
19
|
-
const handler_1 = require("./handler");
|
|
20
|
-
const parse_body_1 = require("./parse-body");
|
|
21
16
|
const project_info_1 = require("./project-info");
|
|
22
17
|
const public_folder_1 = require("./public-folder");
|
|
23
|
-
const queue_1 = require("./render-queue/queue");
|
|
24
18
|
const serve_static_1 = require("./serve-static");
|
|
25
19
|
const update_available_1 = require("./update-available");
|
|
26
20
|
const handleUpdate = async (remotionRoot, _, response) => {
|
|
@@ -35,32 +29,9 @@ const static404 = (response) => {
|
|
|
35
29
|
response.end('The static/ prefix has been changed, this URL is no longer valid.');
|
|
36
30
|
};
|
|
37
31
|
const handleFallback = async ({ remotionRoot, hash, response, getCurrentInputProps, getEnvVariables, publicDir, }) => {
|
|
38
|
-
var _a
|
|
32
|
+
var _a;
|
|
39
33
|
const [edit] = await editorGuess;
|
|
40
34
|
const displayName = (0, open_in_editor_1.getDisplayNameForEditor)(edit ? edit.command : null);
|
|
41
|
-
const defaultJpegQuality = config_1.ConfigInternals.getJpegQuality();
|
|
42
|
-
const defaultScale = config_1.ConfigInternals.getScale();
|
|
43
|
-
const logLevel = config_1.ConfigInternals.Logging.getLogLevel();
|
|
44
|
-
const defaultCodec = config_1.ConfigInternals.getOutputCodecOrUndefined();
|
|
45
|
-
const concurrency = renderer_1.RenderInternals.getActualConcurrency(config_1.ConfigInternals.getConcurrency());
|
|
46
|
-
const muted = config_1.ConfigInternals.getMuted();
|
|
47
|
-
const enforceAudioTrack = config_1.ConfigInternals.getEnforceAudioTrack();
|
|
48
|
-
const pixelFormat = config_1.ConfigInternals.getPixelFormat();
|
|
49
|
-
const proResProfile = (_a = config_1.ConfigInternals.getProResProfile()) !== null && _a !== void 0 ? _a : 'hq';
|
|
50
|
-
const audioBitrate = config_1.ConfigInternals.getAudioBitrate();
|
|
51
|
-
const videoBitrate = config_1.ConfigInternals.getVideoBitrate();
|
|
52
|
-
const everyNthFrame = config_1.ConfigInternals.getEveryNthFrame();
|
|
53
|
-
const numberOfGifLoops = config_1.ConfigInternals.getNumberOfGifLoops();
|
|
54
|
-
const delayRenderTimeout = config_1.ConfigInternals.getCurrentPuppeteerTimeout();
|
|
55
|
-
const audioCodec = config_1.ConfigInternals.getAudioCodec();
|
|
56
|
-
const stillImageFormat = config_1.ConfigInternals.getUserPreferredStillImageFormat();
|
|
57
|
-
const videoImageFormat = config_1.ConfigInternals.getUserPreferredVideoImageFormat();
|
|
58
|
-
const disableWebSecurity = config_1.ConfigInternals.getChromiumDisableWebSecurity();
|
|
59
|
-
const headless = config_1.ConfigInternals.getChromiumHeadlessMode();
|
|
60
|
-
const ignoreCertificateErrors = config_1.ConfigInternals.getIgnoreCertificateErrors();
|
|
61
|
-
const openGlRenderer = config_1.ConfigInternals.getChromiumOpenGlRenderer();
|
|
62
|
-
const maxConcurrency = renderer_1.RenderInternals.getMaxConcurrency();
|
|
63
|
-
const minConcurrency = renderer_1.RenderInternals.getMinConcurrency();
|
|
64
35
|
response.setHeader('content-type', 'text/html');
|
|
65
36
|
response.writeHead(200);
|
|
66
37
|
const packageManager = (0, get_package_manager_1.getPackageManager)(remotionRoot, undefined);
|
|
@@ -73,36 +44,10 @@ const handleFallback = async ({ remotionRoot, hash, response, getCurrentInputPro
|
|
|
73
44
|
inputProps: getCurrentInputProps(),
|
|
74
45
|
remotionRoot,
|
|
75
46
|
previewServerCommand: packageManager === 'unknown' ? null : packageManager.startCommand,
|
|
76
|
-
|
|
77
|
-
numberOfAudioTags: (_b = parse_command_line_1.parsedCli['number-of-shared-audio-tags']) !== null && _b !== void 0 ? _b : (0, number_of_shared_audio_tags_1.getNumberOfSharedAudioTags)(),
|
|
47
|
+
numberOfAudioTags: (_a = parse_command_line_1.parsedCli['number-of-shared-audio-tags']) !== null && _a !== void 0 ? _a : (0, number_of_shared_audio_tags_1.getNumberOfSharedAudioTags)(),
|
|
78
48
|
publicFiles: (0, public_folder_1.getFiles)(),
|
|
79
49
|
includeFavicon: true,
|
|
80
50
|
title: 'Remotion Preview',
|
|
81
|
-
renderDefaults: {
|
|
82
|
-
jpegQuality: defaultJpegQuality !== null && defaultJpegQuality !== void 0 ? defaultJpegQuality : 80,
|
|
83
|
-
scale: defaultScale !== null && defaultScale !== void 0 ? defaultScale : 1,
|
|
84
|
-
logLevel,
|
|
85
|
-
codec: defaultCodec !== null && defaultCodec !== void 0 ? defaultCodec : 'h264',
|
|
86
|
-
concurrency,
|
|
87
|
-
maxConcurrency,
|
|
88
|
-
minConcurrency,
|
|
89
|
-
stillImageFormat: stillImageFormat !== null && stillImageFormat !== void 0 ? stillImageFormat : renderer_1.RenderInternals.DEFAULT_STILL_IMAGE_FORMAT,
|
|
90
|
-
videoImageFormat: videoImageFormat !== null && videoImageFormat !== void 0 ? videoImageFormat : renderer_1.RenderInternals.DEFAULT_VIDEO_IMAGE_FORMAT,
|
|
91
|
-
muted,
|
|
92
|
-
enforceAudioTrack,
|
|
93
|
-
proResProfile,
|
|
94
|
-
pixelFormat,
|
|
95
|
-
audioBitrate,
|
|
96
|
-
videoBitrate,
|
|
97
|
-
everyNthFrame,
|
|
98
|
-
numberOfGifLoops,
|
|
99
|
-
delayRenderTimeout,
|
|
100
|
-
audioCodec,
|
|
101
|
-
disableWebSecurity,
|
|
102
|
-
headless,
|
|
103
|
-
ignoreCertificateErrors,
|
|
104
|
-
openGlRenderer,
|
|
105
|
-
},
|
|
106
51
|
}));
|
|
107
52
|
};
|
|
108
53
|
const handleProjectInfo = async (remotionRoot, _, response) => {
|
|
@@ -134,10 +79,18 @@ const handleOpenInEditor = async (remotionRoot, req, res) => {
|
|
|
134
79
|
if (req.method === 'OPTIONS') {
|
|
135
80
|
res.statusCode = 200;
|
|
136
81
|
res.end();
|
|
137
|
-
return;
|
|
138
82
|
}
|
|
139
83
|
try {
|
|
140
|
-
const
|
|
84
|
+
const b = await new Promise((_resolve) => {
|
|
85
|
+
let data = '';
|
|
86
|
+
req.on('data', (chunk) => {
|
|
87
|
+
data += chunk;
|
|
88
|
+
});
|
|
89
|
+
req.on('end', () => {
|
|
90
|
+
_resolve(data.toString());
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
const body = JSON.parse(b);
|
|
141
94
|
if (!('stack' in body)) {
|
|
142
95
|
throw new TypeError('Need to pass stack');
|
|
143
96
|
}
|
|
@@ -174,7 +127,7 @@ const handleFavicon = (_, response) => {
|
|
|
174
127
|
const readStream = (0, fs_1.createReadStream)(filePath);
|
|
175
128
|
readStream.pipe(response);
|
|
176
129
|
};
|
|
177
|
-
const handleRoutes = ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot,
|
|
130
|
+
const handleRoutes = ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, publicDir, }) => {
|
|
178
131
|
const url = new URL(request.url, 'http://localhost');
|
|
179
132
|
if (url.pathname === '/api/update') {
|
|
180
133
|
return handleUpdate(remotionRoot, request, response);
|
|
@@ -193,17 +146,6 @@ const handleRoutes = ({ hash, hashPrefix, request, response, liveEventsServer, g
|
|
|
193
146
|
if (url.pathname === '/api/open-in-editor') {
|
|
194
147
|
return handleOpenInEditor(remotionRoot, request, response);
|
|
195
148
|
}
|
|
196
|
-
for (const [key, value] of Object.entries(api_routes_1.allApiRoutes)) {
|
|
197
|
-
if (url.pathname === key) {
|
|
198
|
-
return (0, handler_1.handleRequest)({
|
|
199
|
-
remotionRoot,
|
|
200
|
-
entryPoint,
|
|
201
|
-
handler: value,
|
|
202
|
-
request,
|
|
203
|
-
response,
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
149
|
if (url.pathname === '/remotion.png') {
|
|
208
150
|
return handleFavicon(request, response);
|
|
209
151
|
}
|
|
@@ -58,7 +58,6 @@ const startServer = async (options) => {
|
|
|
58
58
|
getCurrentInputProps: options.getCurrentInputProps,
|
|
59
59
|
getEnvVariables: options.getEnvVariables,
|
|
60
60
|
remotionRoot: options.remotionRoot,
|
|
61
|
-
entryPoint: options.userDefinedComponent,
|
|
62
61
|
publicDir: options.publicDir,
|
|
63
62
|
});
|
|
64
63
|
})
|
package/dist/preview.js
CHANGED
|
@@ -9,7 +9,6 @@ const path_1 = __importDefault(require("path"));
|
|
|
9
9
|
const better_opn_1 = require("./better-opn");
|
|
10
10
|
const chalk_1 = require("./chalk");
|
|
11
11
|
const config_1 = require("./config");
|
|
12
|
-
const convert_entry_point_to_serve_url_1 = require("./convert-entry-point-to-serve-url");
|
|
13
12
|
const entry_point_1 = require("./entry-point");
|
|
14
13
|
const get_env_1 = require("./get-env");
|
|
15
14
|
const get_input_props_1 = require("./get-input-props");
|
|
@@ -17,10 +16,25 @@ const get_network_address_1 = require("./get-network-address");
|
|
|
17
16
|
const log_1 = require("./log");
|
|
18
17
|
const parse_command_line_1 = require("./parse-command-line");
|
|
19
18
|
const get_absolute_public_dir_1 = require("./preview-server/get-absolute-public-dir");
|
|
20
|
-
const live_events_1 = require("./preview-server/live-events");
|
|
21
19
|
const public_folder_1 = require("./preview-server/public-folder");
|
|
22
20
|
const start_server_1 = require("./preview-server/start-server");
|
|
23
21
|
const noop = () => undefined;
|
|
22
|
+
let liveEventsListener = null;
|
|
23
|
+
const waiters = [];
|
|
24
|
+
const setLiveEventsListener = (listener) => {
|
|
25
|
+
liveEventsListener = listener;
|
|
26
|
+
waiters.forEach((w) => w(listener));
|
|
27
|
+
};
|
|
28
|
+
const waitForLiveEventsListener = () => {
|
|
29
|
+
if (liveEventsListener) {
|
|
30
|
+
return Promise.resolve(liveEventsListener);
|
|
31
|
+
}
|
|
32
|
+
return new Promise((resolve) => {
|
|
33
|
+
waiters.push((list) => {
|
|
34
|
+
resolve(list);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
};
|
|
24
38
|
const getShouldOpenBrowser = () => {
|
|
25
39
|
var _a;
|
|
26
40
|
if (parse_command_line_1.parsedCli['no-open']) {
|
|
@@ -60,9 +74,8 @@ const previewCommand = async (remotionRoot, args) => {
|
|
|
60
74
|
process.exit(1);
|
|
61
75
|
}
|
|
62
76
|
const desiredPort = getPort();
|
|
63
|
-
const fullEntryPath = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
|
|
64
77
|
let inputProps = (0, get_input_props_1.getInputProps)((newProps) => {
|
|
65
|
-
|
|
78
|
+
waitForLiveEventsListener().then((listener) => {
|
|
66
79
|
inputProps = newProps;
|
|
67
80
|
listener.sendEventToClient({
|
|
68
81
|
type: 'new-input-props',
|
|
@@ -71,7 +84,7 @@ const previewCommand = async (remotionRoot, args) => {
|
|
|
71
84
|
});
|
|
72
85
|
});
|
|
73
86
|
let envVariables = await (0, get_env_1.getEnvironmentVariables)((newEnvVariables) => {
|
|
74
|
-
|
|
87
|
+
waitForLiveEventsListener().then((listener) => {
|
|
75
88
|
envVariables = newEnvVariables;
|
|
76
89
|
listener.sendEventToClient({
|
|
77
90
|
type: 'new-env-variables',
|
|
@@ -89,7 +102,7 @@ const previewCommand = async (remotionRoot, args) => {
|
|
|
89
102
|
publicDir,
|
|
90
103
|
remotionRoot,
|
|
91
104
|
onUpdate: () => {
|
|
92
|
-
|
|
105
|
+
waitForLiveEventsListener().then((listener) => {
|
|
93
106
|
listener.sendEventToClient({
|
|
94
107
|
type: 'new-public-folder',
|
|
95
108
|
files: (0, public_folder_1.getFiles)(),
|
|
@@ -100,7 +113,7 @@ const previewCommand = async (remotionRoot, args) => {
|
|
|
100
113
|
});
|
|
101
114
|
const { port, liveEventsServer } = await (0, start_server_1.startServer)({
|
|
102
115
|
entry: path_1.default.resolve(__dirname, 'previewEntry.js'),
|
|
103
|
-
userDefinedComponent:
|
|
116
|
+
userDefinedComponent: file,
|
|
104
117
|
getCurrentInputProps: () => inputProps,
|
|
105
118
|
getEnvVariables: () => envVariables,
|
|
106
119
|
port: desiredPort,
|
|
@@ -114,7 +127,7 @@ const previewCommand = async (remotionRoot, args) => {
|
|
|
114
127
|
hash: staticHash,
|
|
115
128
|
hashPrefix,
|
|
116
129
|
});
|
|
117
|
-
|
|
130
|
+
setLiveEventsListener(liveEventsServer);
|
|
118
131
|
const networkAddress = (0, get_network_address_1.getNetworkAddress)();
|
|
119
132
|
if (networkAddress) {
|
|
120
133
|
log_1.Log.info(`Server ready - Local: ${chalk_1.chalk.underline(`http://localhost:${port}`)}, Network: ${chalk_1.chalk.underline(`http://${networkAddress}:${port}`)}`);
|
package/dist/previewEntry.js
CHANGED
|
@@ -4,7 +4,6 @@ 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");
|
|
8
7
|
const client_1 = __importDefault(require("react-dom/client"));
|
|
9
8
|
const remotion_1 = require("remotion");
|
|
10
9
|
require("../styles/styles.css");
|
|
@@ -16,11 +15,13 @@ remotion_1.Internals.CSSUtils.injectCSS(remotion_1.Internals.CSSUtils.makeDefaul
|
|
|
16
15
|
const getServerDisconnectedDomElement = () => {
|
|
17
16
|
return document.getElementById('server-disconnected-overlay');
|
|
18
17
|
};
|
|
19
|
-
const content = ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { numberOfAudioTags: window.remotion_numberOfAudioTags, children: (0, jsx_runtime_1.
|
|
18
|
+
const content = ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { numberOfAudioTags: window.remotion_numberOfAudioTags, children: (0, jsx_runtime_1.jsx)(EditorContexts_1.EditorContexts, { children: (0, jsx_runtime_1.jsx)(Editor_1.Editor, {}) }) }));
|
|
20
19
|
if (client_1.default.createRoot) {
|
|
21
20
|
client_1.default.createRoot(remotion_1.Internals.getPreviewDomElement()).render(content);
|
|
21
|
+
client_1.default.createRoot(getServerDisconnectedDomElement()).render((0, jsx_runtime_1.jsx)(ServerDisconnected_1.ServerDisconnected, {}));
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
client_1.default.render(content, remotion_1.Internals.getPreviewDomElement());
|
|
25
|
+
client_1.default.render((0, jsx_runtime_1.jsx)(ServerDisconnected_1.ServerDisconnected, {}), getServerDisconnectedDomElement());
|
|
25
26
|
}
|
|
26
27
|
(0, event_source_1.openEventSource)();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const printCompositions: (compositions:
|
|
1
|
+
import type { TCompMetadata } from 'remotion';
|
|
2
|
+
export declare const printCompositions: (compositions: TCompMetadata[]) => void;
|
package/dist/print-error.js
CHANGED
|
@@ -8,10 +8,7 @@ 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)(
|
|
12
|
-
quiet: false,
|
|
13
|
-
cancelSignal: null,
|
|
14
|
-
});
|
|
11
|
+
const output = (0, progress_bar_1.createOverwriteableCliOutput)(false);
|
|
15
12
|
output.update(chalk_1.chalk.red('Symbolicating minified error message...\n' + err.message));
|
|
16
13
|
try {
|
|
17
14
|
const symbolicated = await renderer_1.RenderInternals.symbolicateError(err);
|
|
@@ -30,6 +27,7 @@ const printError = async (err) => {
|
|
|
30
27
|
}
|
|
31
28
|
return;
|
|
32
29
|
}
|
|
30
|
+
log_1.Log.error('An error occurred:');
|
|
33
31
|
log_1.Log.error(err.stack || err);
|
|
34
32
|
};
|
|
35
33
|
exports.printError = printError;
|
package/dist/print-help.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printHelp = void 0;
|
|
4
4
|
const chalk_1 = require("./chalk");
|
|
5
|
+
const install_1 = require("./install");
|
|
5
6
|
const log_1 = require("./log");
|
|
6
7
|
const versions_1 = require("./versions");
|
|
7
8
|
const packagejson = require('../package.json');
|
|
@@ -24,10 +25,10 @@ const printHelp = () => {
|
|
|
24
25
|
printFlags([
|
|
25
26
|
['--props', 'Pass input props as filename or as JSON'],
|
|
26
27
|
['--concurrency', 'How many frames to render in parallel'],
|
|
27
|
-
['--image-format', 'Format to render the
|
|
28
|
+
['--image-format', 'Format to render the frames in, "jpeg" or "png"'],
|
|
28
29
|
['--pixel-format', 'Custom pixel format, see docs for available values'],
|
|
29
30
|
['--config', 'Custom location for a Remotion config file'],
|
|
30
|
-
['--
|
|
31
|
+
['--quality', 'Quality for rendered frames, JPEG only, 0-100'],
|
|
31
32
|
['--overwrite', 'Overwrite if file exists, default true'],
|
|
32
33
|
['--sequence', 'Output as an image sequence'],
|
|
33
34
|
['--codec', 'Video of audio codec'],
|
|
@@ -46,10 +47,10 @@ const printHelp = () => {
|
|
|
46
47
|
log_1.Log.info(chalk_1.chalk.gray('Render a still frame and save it as an image.'));
|
|
47
48
|
printFlags([
|
|
48
49
|
['--frame', 'Which frame to render (default 0)'],
|
|
49
|
-
['--image-format', 'Format to render the
|
|
50
|
+
['--image-format', 'Format to render the frames in, "jpeg" or "png"'],
|
|
50
51
|
['--props', 'Pass input props as filename or as JSON'],
|
|
51
52
|
['--config', 'Custom location for a Remotion config file'],
|
|
52
|
-
['--
|
|
53
|
+
['--quality', 'Quality for rendered frames, JPEG only, 0-100'],
|
|
53
54
|
['--overwrite', 'Overwrite if file exists, default true'],
|
|
54
55
|
['--browser-executable', 'Custom path for browser executable'],
|
|
55
56
|
['--bundle-cache', 'Cache webpack bundle, boolean, default true'],
|
|
@@ -67,6 +68,9 @@ const printHelp = () => {
|
|
|
67
68
|
log_1.Log.info('remotion ' + versions_1.VERSIONS_COMMAND);
|
|
68
69
|
log_1.Log.info(chalk_1.chalk.gray('Prints and validates versions of all Remotion packages.'));
|
|
69
70
|
log_1.Log.info();
|
|
71
|
+
log_1.Log.info(`remotion ${install_1.INSTALL_COMMAND} <ffmpeg|ffprobe>`);
|
|
72
|
+
log_1.Log.info(chalk_1.chalk.gray('Installs dependencies of Remotion'));
|
|
73
|
+
log_1.Log.info();
|
|
70
74
|
log_1.Log.info('remotion upgrade');
|
|
71
75
|
log_1.Log.info(chalk_1.chalk.gray('Ensure Remotion is on the newest version.'));
|
|
72
76
|
printFlags([
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export declare
|
|
1
|
+
import type { Codec, StitchingState } from '@remotion/renderer';
|
|
2
|
+
import type { RenderStep } from './step';
|
|
3
|
+
export declare const createProgressBar: (quiet: boolean) => {
|
|
4
|
+
update: (str: string) => boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const createOverwriteableCliOutput: (quiet: boolean) => {
|
|
4
7
|
update: (up: string) => boolean;
|
|
5
8
|
};
|
|
6
|
-
export declare const createOverwriteableCliOutput: (options: {
|
|
7
|
-
quiet: boolean;
|
|
8
|
-
cancelSignal: CancelSignal | null;
|
|
9
|
-
}) => OverwriteableCliOutput;
|
|
10
9
|
export declare type CopyingState = {
|
|
11
10
|
bytes: number;
|
|
12
11
|
doneIn: number | null;
|
|
13
12
|
};
|
|
14
13
|
export declare type BundlingState = {
|
|
15
14
|
progress: number;
|
|
15
|
+
steps: RenderStep[];
|
|
16
16
|
doneIn: number | null;
|
|
17
17
|
};
|
|
18
18
|
export declare type SymbolicLinksState = {
|
|
@@ -22,14 +22,34 @@ export declare const makeBundlingAndCopyProgress: ({ bundling, copying, symLinks
|
|
|
22
22
|
bundling: BundlingState;
|
|
23
23
|
copying: CopyingState;
|
|
24
24
|
symLinks: SymbolicLinksState;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
steps:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
}) => string;
|
|
26
|
+
declare type RenderingProgressInput = {
|
|
27
|
+
frames: number;
|
|
28
|
+
totalFrames: number;
|
|
29
|
+
steps: RenderStep[];
|
|
30
|
+
concurrency: number;
|
|
31
|
+
doneIn: number | null;
|
|
32
|
+
};
|
|
33
|
+
export declare const makeRenderingProgress: ({ frames, totalFrames, steps, concurrency, doneIn, }: RenderingProgressInput) => string;
|
|
34
|
+
declare type StitchingProgressInput = {
|
|
35
|
+
frames: number;
|
|
36
|
+
totalFrames: number;
|
|
37
|
+
steps: RenderStep[];
|
|
38
|
+
doneIn: number | null;
|
|
39
|
+
stage: StitchingState;
|
|
40
|
+
codec: Codec;
|
|
41
|
+
};
|
|
42
|
+
export declare const makeStitchingProgress: ({ frames, totalFrames, steps, doneIn, stage, codec, }: StitchingProgressInput) => string;
|
|
43
|
+
export declare type DownloadProgress = {
|
|
44
|
+
name: string;
|
|
45
|
+
id: number;
|
|
46
|
+
progress: number | null;
|
|
47
|
+
totalBytes: number | null;
|
|
48
|
+
downloaded: number;
|
|
35
49
|
};
|
|
50
|
+
export declare const makeRenderingAndStitchingProgress: ({ rendering, stitching, downloads, }: {
|
|
51
|
+
rendering: RenderingProgressInput;
|
|
52
|
+
stitching: StitchingProgressInput | null;
|
|
53
|
+
downloads: DownloadProgress[];
|
|
54
|
+
}) => string;
|
|
55
|
+
export {};
|