@remotion/cli 4.0.0-alpha4 → 4.0.0-alpha5
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 +2 -1
- package/dist/ansi/ansi-diff.js +14 -20
- package/dist/ansi/ansi-split.d.ts +1 -0
- package/dist/ansi/ansi-split.js +16 -3
- package/dist/benchmark.js +64 -23
- package/dist/codemods/update-default-props.d.ts +5 -0
- package/dist/codemods/update-default-props.js +143 -0
- package/dist/color-math.d.ts +2 -0
- package/dist/color-math.js +11 -0
- package/dist/composition-prompts.d.ts +3 -4
- package/dist/composition-prompts.js +0 -1
- package/dist/compositions.js +10 -4
- package/dist/config/bitrate.d.ts +2 -2
- package/dist/config/bitrate.js +2 -2
- package/dist/config/browser.d.ts +1 -3
- package/dist/config/browser.js +2 -12
- package/dist/config/codec.d.ts +0 -4
- package/dist/config/codec.js +1 -21
- package/dist/config/image-format.d.ts +5 -3
- package/dist/config/image-format.js +32 -10
- package/dist/config/index.d.ts +255 -14
- package/dist/config/index.js +16 -49
- package/dist/config/jpeg-quality.d.ts +2 -0
- package/dist/config/jpeg-quality.js +17 -0
- package/dist/config/public-dir.d.ts +1 -1
- package/dist/config/scale.d.ts +2 -1
- package/dist/convert-entry-point-to-serve-url.d.ts +1 -0
- package/dist/convert-entry-point-to-serve-url.js +15 -0
- package/dist/determine-image-format.d.ts +5 -4
- package/dist/determine-image-format.js +17 -4
- package/dist/download-progress.d.ts +2 -2
- package/dist/download-progress.js +12 -3
- package/dist/editor/components/Canvas.js +3 -0
- package/dist/editor/components/Checkbox.d.ts +6 -0
- package/dist/editor/components/Checkbox.js +42 -0
- package/dist/editor/components/CheckerboardProvider.d.ts +4 -0
- package/dist/editor/components/CheckerboardProvider.js +24 -0
- package/dist/editor/components/CompositionSelector.js +2 -4
- package/dist/editor/components/CompositionSelectorItem.d.ts +3 -3
- package/dist/editor/components/CompositionSelectorItem.js +24 -6
- package/dist/editor/components/CurrentComposition.js +4 -19
- package/dist/editor/components/CurrentCompositionSideEffects.d.ts +3 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +51 -0
- package/dist/editor/components/Editor.js +2 -11
- package/dist/editor/components/EditorContent.js +1 -1
- package/dist/editor/components/EditorContexts.js +10 -86
- package/dist/editor/components/GlobalKeybindings.js +4 -0
- package/dist/editor/components/InitialCompositionLoader.d.ts +2 -2
- package/dist/editor/components/InlineAction.d.ts +7 -0
- package/dist/editor/components/InlineAction.js +31 -0
- package/dist/editor/components/KeyboardShortcutsExplainer.js +5 -4
- package/dist/editor/components/MediaVolumeProvider.d.ts +4 -0
- package/dist/editor/components/MediaVolumeProvider.js +25 -0
- package/dist/editor/components/Menu/MenuSubItem.d.ts +0 -1
- package/dist/editor/components/Menu/MenuSubItem.js +15 -3
- package/dist/editor/components/Menu/is-menu-item.d.ts +2 -0
- package/dist/editor/components/Menu/is-menu-item.js +3 -1
- package/dist/editor/components/Menu/styles.d.ts +4 -0
- package/dist/editor/components/Menu/styles.js +13 -4
- package/dist/editor/components/MenuToolbar.js +2 -1
- package/dist/editor/components/ModalContainer.d.ts +2 -0
- package/dist/editor/components/ModalContainer.js +12 -3
- package/dist/editor/components/ModalHeader.js +6 -2
- package/dist/editor/components/Modals.d.ts +2 -0
- package/dist/editor/components/Modals.js +23 -0
- package/dist/editor/components/ModalsProvider.d.ts +4 -0
- package/dist/editor/components/ModalsProvider.js +17 -0
- package/dist/editor/components/NewComposition/CancelButton.js +3 -0
- package/dist/editor/components/NewComposition/ComboBox.js +23 -15
- package/dist/editor/components/NewComposition/InputDragger.d.ts +4 -0
- package/dist/editor/components/NewComposition/InputDragger.js +12 -7
- package/dist/editor/components/NewComposition/MenuContent.js +14 -1
- package/dist/editor/components/NewComposition/NewCompDuration.js +2 -2
- package/dist/editor/components/NewComposition/NewComposition.js +8 -5
- package/dist/editor/components/NewComposition/RemInput.d.ts +14 -2
- package/dist/editor/components/NewComposition/RemInput.js +24 -9
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +7 -0
- package/dist/editor/components/NewComposition/RemInputTypeColor.js +53 -0
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +7 -0
- package/dist/editor/components/NewComposition/RemTextarea.js +92 -0
- package/dist/editor/components/NewComposition/ValidationMessage.d.ts +2 -0
- package/dist/editor/components/NewComposition/ValidationMessage.js +18 -8
- package/dist/editor/components/Notifications/NotificationCenter.d.ts +1 -0
- package/dist/editor/components/Notifications/NotificationCenter.js +11 -1
- package/dist/editor/components/Notifications/ServerDisconnected.d.ts +0 -4
- package/dist/editor/components/Notifications/ServerDisconnected.js +4 -14
- package/dist/editor/components/PlayPause.js +6 -0
- package/dist/editor/components/PlaybackKeyboardShortcutsManager.js +3 -0
- package/dist/editor/components/PlaybackRateSelector.d.ts +0 -2
- package/dist/editor/components/PlaybackRateSelector.js +5 -6
- package/dist/editor/components/PlayerEmitterContext.d.ts +4 -0
- package/dist/editor/components/PlayerEmitterContext.js +11 -0
- package/dist/editor/components/Preview.d.ts +0 -1
- package/dist/editor/components/Preview.js +4 -4
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/QuickSwitcherContent.js +8 -3
- package/dist/editor/components/QuickSwitcher/QuickSwitcherResult.js +4 -2
- package/dist/editor/components/QuickSwitcher/algolia-search.d.ts +0 -27
- package/dist/editor/components/QuickSwitcher/algolia-search.js +2 -3
- package/dist/editor/components/RenderButton.d.ts +2 -0
- package/dist/editor/components/RenderButton.js +103 -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 +15 -0
- package/dist/editor/components/RenderModal/CrfSetting.js +42 -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 +17 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +17 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +12 -0
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +8 -0
- package/dist/editor/components/RenderModal/MutedSetting.js +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 +35 -0
- package/dist/editor/components/RenderModal/RenderModal.js +597 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +26 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +61 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.d.ts +17 -0
- package/dist/editor/components/RenderModal/RenderModalAudio.js +46 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +23 -0
- package/dist/editor/components/RenderModal/RenderModalBasic.js +79 -0
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +20 -0
- package/dist/editor/components/RenderModal/RenderModalData.js +249 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +5 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +55 -0
- package/dist/editor/components/RenderModal/RenderModalGif.d.ts +9 -0
- package/dist/editor/components/RenderModal/RenderModalGif.js +19 -0
- package/dist/editor/components/RenderModal/RenderModalHr.d.ts +2 -0
- package/dist/editor/components/RenderModal/RenderModalHr.js +18 -0
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +10 -0
- package/dist/editor/components/RenderModal/RenderModalInput.js +13 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.js +109 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +28 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.js +54 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +4 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.js +72 -0
- package/dist/editor/components/RenderModal/ScaleSetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/ScaleSetting.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +39 -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/SchemaErrorMessages.d.ts +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +59 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +40 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +84 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +116 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +76 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +55 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +72 -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 +9 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +88 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +64 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +52 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +48 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +84 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +49 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +158 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +6 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +24 -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/WarningIndicatorButton.d.ts +6 -0
- package/dist/editor/components/RenderModal/WarningIndicatorButton.js +49 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +15 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +34 -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 +45 -0
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +14 -0
- package/dist/editor/components/RenderModal/out-name-checker.js +80 -0
- package/dist/editor/components/RenderQueue/CircularProgress.d.ts +5 -0
- package/dist/editor/components/RenderQueue/CircularProgress.js +18 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItem.js +40 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +43 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +26 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +37 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.d.ts +5 -0
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +26 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +2 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.js +14 -0
- package/dist/editor/components/RenderQueue/actions.d.ts +58 -0
- package/dist/editor/components/RenderQueue/actions.js +120 -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 +43 -0
- package/dist/editor/components/RenderQueue/item-style.d.ts +2 -0
- package/dist/editor/components/RenderQueue/item-style.js +21 -0
- package/dist/editor/components/RendersTab.d.ts +6 -0
- package/dist/editor/components/RendersTab.js +43 -0
- package/dist/editor/components/RightPanel.d.ts +8 -0
- package/dist/editor/components/RightPanel.js +76 -0
- package/dist/editor/components/SegmentedControl.d.ts +11 -0
- package/dist/editor/components/SegmentedControl.js +62 -0
- package/dist/editor/components/SetTimelineInOutProvider.d.ts +4 -0
- package/dist/editor/components/SetTimelineInOutProvider.js +19 -0
- package/dist/editor/components/SidebarCollapserControls.d.ts +2 -0
- package/dist/editor/components/SidebarCollapserControls.js +129 -0
- package/dist/editor/components/SidebarRenderButton.d.ts +6 -0
- package/dist/editor/components/SidebarRenderButton.js +85 -0
- package/dist/editor/components/SizeSelector.d.ts +0 -1
- package/dist/editor/components/SizeSelector.js +3 -3
- package/dist/editor/components/Splitter/SplitterHandle.d.ts +1 -2
- package/dist/editor/components/Splitter/SplitterHandle.js +15 -7
- package/dist/editor/components/Tabs/index.d.ts +11 -0
- package/dist/editor/components/Tabs/index.js +58 -0
- package/dist/editor/components/Tabs/vertical.d.ts +7 -0
- package/dist/editor/components/Tabs/vertical.js +43 -0
- 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 +1 -0
- package/dist/editor/components/Timeline/TimelineCollapseToggle.js +4 -5
- package/dist/editor/components/Timeline/TimelineListItem.js +2 -1
- package/dist/editor/components/Timeline/TimelineScrollable.js +2 -1
- package/dist/editor/components/Timeline/TimelineSequence.js +2 -14
- package/dist/editor/components/Timeline/TimelineSequenceFrame.js +2 -1
- package/dist/editor/components/Timeline/TimelineZoomControls.js +2 -5
- package/dist/editor/components/Timeline/imperative-state.d.ts +0 -4
- package/dist/editor/components/Timeline/imperative-state.js +13 -13
- package/dist/editor/components/Timeline/is-collapsed.js +2 -3
- package/dist/editor/components/Timeline/timeline-scroll-logic.d.ts +0 -1
- package/dist/editor/components/Timeline/timeline-scroll-logic.js +5 -6
- package/dist/editor/components/TimelineInOutToggle.js +3 -0
- package/dist/editor/components/TopPanel.d.ts +1 -0
- package/dist/editor/components/TopPanel.js +30 -16
- package/dist/editor/components/ZoomGesturesProvider.d.ts +4 -0
- package/dist/editor/components/ZoomGesturesProvider.js +24 -0
- package/dist/editor/components/ZoomPersistor.d.ts +0 -1
- package/dist/editor/components/ZoomPersistor.js +2 -3
- package/dist/editor/components/get-zod-if-possible.d.ts +10 -0
- package/dist/editor/components/get-zod-if-possible.js +79 -0
- package/dist/editor/components/layout.d.ts +3 -1
- package/dist/editor/components/layout.js +9 -7
- package/dist/editor/helpers/calculate-timeline.d.ts +0 -4
- package/dist/editor/helpers/client-id.d.ts +17 -0
- package/dist/editor/helpers/client-id.js +46 -0
- package/dist/editor/helpers/colors.d.ts +3 -1
- package/dist/editor/helpers/colors.js +6 -3
- 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/create-folder-tree.d.ts +2 -3
- package/dist/editor/helpers/create-folder-tree.js +3 -4
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/get-timeline-sequence-sort-key.d.ts +2 -1
- 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/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/use-breakpoint.d.ts +1 -0
- package/dist/editor/helpers/use-breakpoint.js +17 -0
- package/dist/editor/helpers/use-file-existence.d.ts +1 -0
- package/dist/editor/helpers/use-file-existence.js +66 -0
- package/dist/editor/helpers/use-keybinding.d.ts +1 -0
- package/dist/editor/helpers/use-keybinding.js +9 -0
- package/dist/editor/helpers/use-menu-structure.js +99 -51
- package/dist/editor/helpers/validate-new-comp-data.d.ts +2 -2
- package/dist/editor/icons/Checkmark.js +1 -1
- package/dist/editor/icons/audio.d.ts +2 -0
- package/dist/editor/icons/audio.js +6 -0
- package/dist/editor/icons/caret.d.ts +4 -1
- package/dist/editor/icons/caret.js +17 -1
- package/dist/editor/icons/data.d.ts +2 -0
- package/dist/editor/icons/data.js +8 -0
- package/dist/editor/icons/file.d.ts +2 -0
- package/dist/editor/icons/file.js +6 -0
- package/dist/editor/icons/folder.d.ts +6 -2
- package/dist/editor/icons/folder.js +4 -4
- package/dist/editor/icons/frame.d.ts +2 -0
- package/dist/editor/icons/frame.js +6 -0
- package/dist/editor/icons/gear.d.ts +2 -0
- package/dist/editor/icons/gear.js +6 -0
- package/dist/editor/icons/gif.d.ts +2 -0
- package/dist/editor/icons/gif.js +6 -0
- package/dist/editor/icons/render.d.ts +9 -0
- package/dist/editor/icons/render.js +12 -0
- package/dist/editor/icons/still.d.ts +3 -1
- package/dist/editor/icons/still.js +2 -2
- package/dist/editor/icons/video.d.ts +5 -0
- package/dist/editor/icons/video.js +8 -0
- package/dist/editor/state/keybindings.d.ts +2 -1
- package/dist/editor/state/modals.d.ts +38 -0
- package/dist/editor/state/preview-size.d.ts +0 -1
- package/dist/editor/state/preview-size.js +3 -4
- package/dist/editor/state/sidebar.d.ts +7 -3
- package/dist/editor/state/sidebar.js +42 -13
- package/dist/editor/state/timeline-ref.d.ts +2 -1
- package/dist/editor/state/z-index.d.ts +0 -5
- package/dist/editor/state/z-index.js +16 -6
- package/dist/event-source-events.d.ts +15 -0
- package/dist/event-source.d.ts +2 -0
- package/dist/event-source.js +31 -5
- 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/get-cli-options.d.ts +3 -12
- package/dist/get-cli-options.js +7 -60
- package/dist/get-composition-id.d.ts +7 -3
- package/dist/get-composition-id.js +17 -3
- package/dist/get-composition-with-dimension-override.d.ts +5 -4
- package/dist/get-composition-with-dimension-override.js +6 -2
- package/dist/get-config-file-name.d.ts +0 -2
- package/dist/get-config-file-name.js +7 -7
- 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 +39 -48
- package/dist/get-filename.d.ts +5 -1
- package/dist/get-filename.js +6 -4
- package/dist/get-final-output-codec.d.ts +2 -1
- package/dist/get-final-output-codec.js +4 -1
- package/dist/get-input-props.d.ts +1 -5
- package/dist/get-input-props.js +11 -13
- package/dist/image-formats.d.ts +5 -2
- package/dist/image-formats.js +16 -6
- package/dist/index.d.ts +91 -22
- package/dist/index.js +12 -13
- package/dist/list-of-remotion-packages.js +1 -0
- package/dist/load-config.js +1 -1
- package/dist/log.d.ts +14 -0
- package/dist/log.js +24 -8
- package/dist/parse-command-line.d.ts +5 -5
- package/dist/parse-command-line.js +6 -14
- package/dist/preview-server/api-routes.d.ts +4 -0
- package/dist/preview-server/api-routes.js +21 -0
- package/dist/preview-server/api-types.d.ts +25 -0
- package/dist/preview-server/api-types.js +2 -0
- package/dist/preview-server/dev-middleware/middleware.d.ts +0 -1
- package/dist/preview-server/dev-middleware/middleware.js +1 -2
- package/dist/preview-server/error-overlay/remotion-overlay/AskOnDiscord.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Button.d.ts +8 -4
- package/dist/preview-server/error-overlay/remotion-overlay/Button.js +12 -8
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +2 -1
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/OpenInEditor.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ShortcutHint.js +16 -1
- 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/handler.d.ts +9 -0
- package/dist/preview-server/handler.js +34 -0
- package/dist/preview-server/hot-middleware/client.js +2 -2
- package/dist/preview-server/live-events.d.ts +2 -0
- package/dist/preview-server/live-events.js +22 -2
- package/dist/preview-server/parse-body.d.ts +2 -0
- package/dist/preview-server/parse-body.js +16 -0
- package/dist/preview-server/public-folder.d.ts +0 -5
- package/dist/preview-server/public-folder.js +3 -4
- 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 +138 -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 +91 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +1 -0
- package/dist/preview-server/render-queue/open-directory-in-finder.js +43 -0
- package/dist/preview-server/render-queue/process-still.d.ts +8 -0
- package/dist/preview-server/render-queue/process-still.js +46 -0
- package/dist/preview-server/render-queue/process-video.d.ts +8 -0
- package/dist/preview-server/render-queue/process-video.js +63 -0
- package/dist/preview-server/render-queue/queue.d.ts +9 -0
- package/dist/preview-server/render-queue/queue.js +212 -0
- package/dist/preview-server/routes/add-render.d.ts +3 -0
- package/dist/preview-server/routes/add-render.js +76 -0
- package/dist/preview-server/routes/can-update-default-props.d.ts +4 -0
- package/dist/preview-server/routes/can-update-default-props.js +39 -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 +24 -0
- package/dist/preview-server/routes.d.ts +2 -1
- package/dist/preview-server/routes.js +71 -13
- package/dist/preview-server/start-server.js +1 -0
- package/dist/preview.js +8 -21
- package/dist/previewEntry.js +2 -3
- package/dist/print-compositions.d.ts +2 -2
- package/dist/print-error.js +4 -2
- package/dist/print-help.js +4 -8
- package/dist/progress-bar.d.ts +17 -37
- package/dist/progress-bar.js +102 -41
- 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 +293 -0
- package/dist/render-flows/still.d.ts +29 -0
- package/dist/render-flows/still.js +174 -0
- package/dist/render.js +42 -232
- package/dist/required-chromium-options.d.ts +3 -0
- package/dist/required-chromium-options.js +2 -0
- package/dist/select-composition.d.ts +2 -1
- package/dist/setup-cache.d.ts +12 -9
- package/dist/setup-cache.js +29 -20
- package/dist/still.js +25 -130
- package/dist/user-passed-output-location.js +2 -7
- package/package.json +22 -7
- package/styles/styles.css +13 -3
package/dist/setup-cache.js
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.bundleOnCliOrTakeServeUrl = void 0;
|
|
4
4
|
const bundler_1 = require("@remotion/bundler");
|
|
5
5
|
const renderer_1 = require("@remotion/renderer");
|
|
6
6
|
const config_1 = require("./config");
|
|
7
7
|
const log_1 = require("./log");
|
|
8
8
|
const parse_command_line_1 = require("./parse-command-line");
|
|
9
9
|
const progress_bar_1 = require("./progress-bar");
|
|
10
|
-
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, steps,
|
|
10
|
+
const bundleOnCliOrTakeServeUrl = async ({ fullPath, remotionRoot, publicDir, onProgress, indentOutput, logLevel, bundlingStep, steps, onDirectoryCreated, }) => {
|
|
11
11
|
if (renderer_1.RenderInternals.isServeUrl(fullPath)) {
|
|
12
12
|
return {
|
|
13
13
|
urlOrBundle: fullPath,
|
|
14
14
|
cleanup: () => Promise.resolve(undefined),
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
const bundled = await
|
|
17
|
+
const bundled = await bundleOnCli({
|
|
18
|
+
fullPath,
|
|
19
|
+
remotionRoot,
|
|
20
|
+
publicDir,
|
|
21
|
+
onProgressCallback: onProgress,
|
|
22
|
+
indent: indentOutput,
|
|
23
|
+
logLevel,
|
|
24
|
+
bundlingStep,
|
|
25
|
+
steps,
|
|
26
|
+
onDirectoryCreated,
|
|
27
|
+
});
|
|
18
28
|
return {
|
|
19
29
|
urlOrBundle: bundled,
|
|
20
30
|
cleanup: () => renderer_1.RenderInternals.deleteDirectory(bundled),
|
|
21
31
|
};
|
|
22
32
|
};
|
|
23
33
|
exports.bundleOnCliOrTakeServeUrl = bundleOnCliOrTakeServeUrl;
|
|
24
|
-
const bundleOnCli = async ({ fullPath,
|
|
34
|
+
const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallback, indent, logLevel, bundlingStep, steps, onDirectoryCreated, }) => {
|
|
25
35
|
var _a;
|
|
26
36
|
const shouldCache = config_1.ConfigInternals.getWebpackCaching();
|
|
27
37
|
const symlinkState = {
|
|
@@ -30,14 +40,9 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
|
|
|
30
40
|
const onProgress = (progress) => {
|
|
31
41
|
bundlingState = {
|
|
32
42
|
progress: progress / 100,
|
|
33
|
-
steps,
|
|
34
43
|
doneIn: null,
|
|
35
44
|
};
|
|
36
|
-
|
|
37
|
-
bundling: bundlingState,
|
|
38
|
-
copying: copyingState,
|
|
39
|
-
symLinks: symlinkState,
|
|
40
|
-
}));
|
|
45
|
+
updateProgress(false);
|
|
41
46
|
};
|
|
42
47
|
let copyingState = {
|
|
43
48
|
bytes: 0,
|
|
@@ -49,7 +54,11 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
|
|
|
49
54
|
bundling: bundlingState,
|
|
50
55
|
copying: copyingState,
|
|
51
56
|
symLinks: symlinkState,
|
|
52
|
-
}) + (newline ? '\n' : ''));
|
|
57
|
+
}, indent, bundlingStep, steps) + (newline ? '\n' : ''));
|
|
58
|
+
onProgressCallback({
|
|
59
|
+
bundling: bundlingState,
|
|
60
|
+
copying: copyingState,
|
|
61
|
+
});
|
|
53
62
|
};
|
|
54
63
|
const onPublicDirCopyProgress = (bytes) => {
|
|
55
64
|
if (copyStart === null) {
|
|
@@ -82,18 +91,20 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
|
|
|
82
91
|
});
|
|
83
92
|
const cacheExistedBefore = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash);
|
|
84
93
|
if (cacheExistedBefore !== 'does-not-exist' && !shouldCache) {
|
|
85
|
-
log_1.Log.
|
|
94
|
+
log_1.Log.infoAdvanced({ indent, logLevel }, '🧹 Cache disabled but found. Deleting... ');
|
|
86
95
|
await bundler_1.BundlerInternals.clearCache(remotionRoot);
|
|
87
96
|
}
|
|
88
97
|
if (cacheExistedBefore === 'other-exists' && shouldCache) {
|
|
89
|
-
log_1.Log.
|
|
98
|
+
log_1.Log.infoAdvanced({ indent, logLevel }, '🧹 Webpack config change detected. Clearing cache... ');
|
|
90
99
|
await bundler_1.BundlerInternals.clearCache(remotionRoot);
|
|
91
100
|
}
|
|
92
101
|
const bundleStartTime = Date.now();
|
|
93
|
-
const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)(
|
|
102
|
+
const bundlingProgress = (0, progress_bar_1.createOverwriteableCliOutput)({
|
|
103
|
+
quiet: (0, parse_command_line_1.quietFlagProvided)(),
|
|
104
|
+
cancelSignal: null,
|
|
105
|
+
});
|
|
94
106
|
let bundlingState = {
|
|
95
107
|
progress: 0,
|
|
96
|
-
steps,
|
|
97
108
|
doneIn: null,
|
|
98
109
|
};
|
|
99
110
|
const bundled = await (0, bundler_1.bundle)({
|
|
@@ -101,16 +112,15 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
|
|
|
101
112
|
onProgress: (progress) => {
|
|
102
113
|
bundlingState = {
|
|
103
114
|
progress: progress / 100,
|
|
104
|
-
steps,
|
|
105
115
|
doneIn: null,
|
|
106
116
|
};
|
|
107
117
|
updateProgress(false);
|
|
108
118
|
},
|
|
119
|
+
onDirectoryCreated,
|
|
109
120
|
...options,
|
|
110
121
|
});
|
|
111
122
|
bundlingState = {
|
|
112
123
|
progress: 1,
|
|
113
|
-
steps,
|
|
114
124
|
doneIn: Date.now() - bundleStartTime,
|
|
115
125
|
};
|
|
116
126
|
copyingState = {
|
|
@@ -118,14 +128,13 @@ const bundleOnCli = async ({ fullPath, steps, remotionRoot, publicDir, }) => {
|
|
|
118
128
|
doneIn: copyStart ? Date.now() - copyStart : null,
|
|
119
129
|
};
|
|
120
130
|
updateProgress(true);
|
|
121
|
-
log_1.Log.
|
|
131
|
+
log_1.Log.verboseAdvanced({ indent, logLevel }, 'Bundled under', bundled);
|
|
122
132
|
const cacheExistedAfter = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash) === 'exists';
|
|
123
133
|
if (cacheExistedAfter) {
|
|
124
134
|
if (cacheExistedBefore === 'does-not-exist' ||
|
|
125
135
|
cacheExistedBefore === 'other-exists') {
|
|
126
|
-
log_1.Log.
|
|
136
|
+
log_1.Log.infoAdvanced({ indent, logLevel }, '⚡️ Cached bundle. Subsequent renders will be faster.');
|
|
127
137
|
}
|
|
128
138
|
}
|
|
129
139
|
return bundled;
|
|
130
140
|
};
|
|
131
|
-
exports.bundleOnCli = bundleOnCli;
|
package/dist/still.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.still = void 0;
|
|
7
|
-
const renderer_1 = require("@remotion/renderer");
|
|
8
|
-
const fs_1 = require("fs");
|
|
9
|
-
const path_1 = __importDefault(require("path"));
|
|
10
|
-
const chalk_1 = require("./chalk");
|
|
11
4
|
const cleanup_before_quit_1 = require("./cleanup-before-quit");
|
|
12
|
-
const
|
|
13
|
-
const determine_image_format_1 = require("./determine-image-format");
|
|
5
|
+
const convert_entry_point_to_serve_url_1 = require("./convert-entry-point-to-serve-url");
|
|
14
6
|
const entry_point_1 = require("./entry-point");
|
|
15
7
|
const get_cli_options_1 = require("./get-cli-options");
|
|
16
|
-
const get_composition_with_dimension_override_1 = require("./get-composition-with-dimension-override");
|
|
17
8
|
const log_1 = require("./log");
|
|
18
9
|
const parse_command_line_1 = require("./parse-command-line");
|
|
19
|
-
const
|
|
20
|
-
const setup_cache_1 = require("./setup-cache");
|
|
21
|
-
const truthy_1 = require("./truthy");
|
|
22
|
-
const user_passed_output_location_1 = require("./user-passed-output-location");
|
|
10
|
+
const still_1 = require("./render-flows/still");
|
|
23
11
|
const still = async (remotionRoot, args) => {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
const startTime = Date.now();
|
|
26
12
|
const { file, remainingArgs, reason: entryPointReason, } = (0, entry_point_1.findEntryPoint)(args, remotionRoot);
|
|
27
13
|
if (!file) {
|
|
28
14
|
log_1.Log.error('No entry point specified. Pass more arguments:');
|
|
@@ -30,135 +16,44 @@ const still = async (remotionRoot, args) => {
|
|
|
30
16
|
log_1.Log.error('Documentation: https://www.remotion.dev/docs/render');
|
|
31
17
|
process.exit(1);
|
|
32
18
|
}
|
|
19
|
+
const fullEntryPoint = (0, convert_entry_point_to_serve_url_1.convertEntryPointToServeUrl)(file);
|
|
33
20
|
if (parse_command_line_1.parsedCli.frames) {
|
|
34
21
|
log_1.Log.error('--frames flag was passed to the `still` command. This flag only works with the `render` command. Did you mean `--frame`? See reference: https://www.remotion.dev/docs/cli/');
|
|
35
22
|
process.exit(1);
|
|
36
23
|
}
|
|
37
|
-
const {
|
|
24
|
+
const { browser, browserExecutable, chromiumOptions, envVariables, height, inputProps, overwrite, port, publicDir, puppeteerTimeout, jpegQuality, scale, stillFrame, width, logLevel, } = await (0, get_cli_options_1.getCliOptions)({
|
|
38
25
|
isLambda: false,
|
|
39
26
|
type: 'still',
|
|
40
27
|
remotionRoot,
|
|
41
28
|
});
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
await (0, still_1.renderStillFlow)({
|
|
30
|
+
remotionRoot,
|
|
31
|
+
entryPointReason,
|
|
32
|
+
fullEntryPoint,
|
|
33
|
+
remainingArgs,
|
|
34
|
+
browser,
|
|
44
35
|
browserExecutable,
|
|
45
36
|
chromiumOptions,
|
|
46
|
-
shouldDumpIo: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
|
|
47
|
-
forceDeviceScaleFactor: scale,
|
|
48
|
-
});
|
|
49
|
-
const steps = [
|
|
50
|
-
renderer_1.RenderInternals.isServeUrl(file) ? null : 'bundling',
|
|
51
|
-
'rendering',
|
|
52
|
-
].filter(truthy_1.truthy);
|
|
53
|
-
const { cleanup: cleanupBundle, urlOrBundle } = await (0, setup_cache_1.bundleOnCliOrTakeServeUrl)({ fullPath: file, remotionRoot, steps, publicDir });
|
|
54
|
-
(0, cleanup_before_quit_1.registerCleanupJob)(() => cleanupBundle());
|
|
55
|
-
const puppeteerInstance = await browserInstance;
|
|
56
|
-
const downloadMap = renderer_1.RenderInternals.makeDownloadMap();
|
|
57
|
-
(0, cleanup_before_quit_1.registerCleanupJob)(() => renderer_1.RenderInternals.cleanDownloadMap(downloadMap));
|
|
58
|
-
const comps = await (0, renderer_1.getCompositions)(urlOrBundle, {
|
|
59
|
-
inputProps,
|
|
60
|
-
puppeteerInstance,
|
|
61
37
|
envVariables,
|
|
62
|
-
timeoutInMilliseconds: puppeteerTimeout,
|
|
63
|
-
chromiumOptions,
|
|
64
|
-
port,
|
|
65
|
-
browserExecutable,
|
|
66
|
-
ffmpegExecutable,
|
|
67
|
-
ffprobeExecutable,
|
|
68
|
-
downloadMap,
|
|
69
|
-
});
|
|
70
|
-
const { compositionId, config, reason, argsAfterComposition } = await (0, get_composition_with_dimension_override_1.getCompositionWithDimensionOverride)({
|
|
71
|
-
validCompositions: comps,
|
|
72
38
|
height,
|
|
73
|
-
width,
|
|
74
|
-
args: remainingArgs,
|
|
75
|
-
});
|
|
76
|
-
const { format: imageFormat, source } = (0, determine_image_format_1.determineFinalImageFormat)({
|
|
77
|
-
cliFlag: (_a = parse_command_line_1.parsedCli['image-format']) !== null && _a !== void 0 ? _a : null,
|
|
78
|
-
configImageFormat: (_b = config_1.ConfigInternals.getUserPreferredImageFormat()) !== null && _b !== void 0 ? _b : null,
|
|
79
|
-
downloadName: null,
|
|
80
|
-
outName: (0, user_passed_output_location_1.getUserPassedOutputLocation)(argsAfterComposition),
|
|
81
|
-
isLambda: false,
|
|
82
|
-
});
|
|
83
|
-
const relativeOutputLocation = (0, user_passed_output_location_1.getOutputLocation)({
|
|
84
|
-
compositionId,
|
|
85
|
-
defaultExtension: imageFormat,
|
|
86
|
-
args: argsAfterComposition,
|
|
87
|
-
type: 'asset',
|
|
88
|
-
});
|
|
89
|
-
const absoluteOutputLocation = (0, get_cli_options_1.getAndValidateAbsoluteOutputFile)(relativeOutputLocation, overwrite);
|
|
90
|
-
(0, fs_1.mkdirSync)(path_1.default.join(absoluteOutputLocation, '..'), {
|
|
91
|
-
recursive: true,
|
|
92
|
-
});
|
|
93
|
-
log_1.Log.info(chalk_1.chalk.gray(`Entry point = ${file} (${entryPointReason}), Output = ${relativeOutputLocation}, Format = ${imageFormat} (${source}), Composition = ${compositionId} (${reason})`));
|
|
94
|
-
const renderProgress = (0, progress_bar_1.createOverwriteableCliOutput)((0, parse_command_line_1.quietFlagProvided)());
|
|
95
|
-
const renderStart = Date.now();
|
|
96
|
-
const downloads = [];
|
|
97
|
-
let frames = 0;
|
|
98
|
-
const totalFrames = 1;
|
|
99
|
-
const updateProgress = () => {
|
|
100
|
-
renderProgress.update((0, progress_bar_1.makeRenderingAndStitchingProgress)({
|
|
101
|
-
rendering: {
|
|
102
|
-
frames,
|
|
103
|
-
concurrency: 1,
|
|
104
|
-
doneIn: frames === totalFrames ? Date.now() - renderStart : null,
|
|
105
|
-
steps,
|
|
106
|
-
totalFrames,
|
|
107
|
-
},
|
|
108
|
-
downloads,
|
|
109
|
-
stitching: null,
|
|
110
|
-
}));
|
|
111
|
-
};
|
|
112
|
-
updateProgress();
|
|
113
|
-
const onDownload = (src) => {
|
|
114
|
-
const id = Math.random();
|
|
115
|
-
const download = {
|
|
116
|
-
id,
|
|
117
|
-
name: src,
|
|
118
|
-
progress: 0,
|
|
119
|
-
downloaded: 0,
|
|
120
|
-
totalBytes: null,
|
|
121
|
-
};
|
|
122
|
-
downloads.push(download);
|
|
123
|
-
updateProgress();
|
|
124
|
-
return ({ percent }) => {
|
|
125
|
-
download.progress = percent;
|
|
126
|
-
updateProgress();
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
await (0, renderer_1.renderStill)({
|
|
130
|
-
composition: config,
|
|
131
|
-
frame: stillFrame,
|
|
132
|
-
output: absoluteOutputLocation,
|
|
133
|
-
serveUrl: urlOrBundle,
|
|
134
|
-
quality,
|
|
135
|
-
dumpBrowserLogs: renderer_1.RenderInternals.isEqualOrBelowLogLevel(config_1.ConfigInternals.Logging.getLogLevel(), 'verbose'),
|
|
136
|
-
envVariables,
|
|
137
|
-
imageFormat,
|
|
138
39
|
inputProps,
|
|
139
|
-
chromiumOptions,
|
|
140
|
-
timeoutInMilliseconds: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
|
|
141
|
-
scale,
|
|
142
|
-
ffmpegExecutable,
|
|
143
|
-
browserExecutable,
|
|
144
40
|
overwrite,
|
|
145
|
-
onDownload,
|
|
146
41
|
port,
|
|
147
|
-
|
|
42
|
+
publicDir,
|
|
43
|
+
puppeteerTimeout,
|
|
44
|
+
jpegQuality,
|
|
45
|
+
scale,
|
|
46
|
+
stillFrame,
|
|
47
|
+
width,
|
|
48
|
+
compositionIdFromUi: null,
|
|
49
|
+
imageFormatFromUi: null,
|
|
50
|
+
logLevel,
|
|
51
|
+
onProgress: () => undefined,
|
|
52
|
+
indentOutput: false,
|
|
53
|
+
addCleanupCallback: (c) => {
|
|
54
|
+
(0, cleanup_before_quit_1.registerCleanupJob)(c);
|
|
55
|
+
},
|
|
56
|
+
cancelSignal: null,
|
|
148
57
|
});
|
|
149
|
-
frames = 1;
|
|
150
|
-
updateProgress();
|
|
151
|
-
log_1.Log.info();
|
|
152
|
-
const closeBrowserPromise = puppeteerInstance.close(false);
|
|
153
|
-
log_1.Log.info(chalk_1.chalk.green('\nYour still frame is ready!'));
|
|
154
|
-
const seconds = Math.round((Date.now() - startTime) / 1000);
|
|
155
|
-
log_1.Log.info([
|
|
156
|
-
'- Total render time:',
|
|
157
|
-
seconds,
|
|
158
|
-
seconds === 1 ? 'second' : 'seconds',
|
|
159
|
-
].join(' '));
|
|
160
|
-
log_1.Log.info('-', 'Output can be found at:');
|
|
161
|
-
log_1.Log.info(chalk_1.chalk.cyan(`▶️ ${absoluteOutputLocation}`));
|
|
162
|
-
await closeBrowserPromise;
|
|
163
58
|
};
|
|
164
59
|
exports.still = still;
|
|
@@ -2,21 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOutputLocation = exports.getUserPassedOutputLocation = void 0;
|
|
4
4
|
const config_1 = require("./config");
|
|
5
|
+
const get_default_out_name_1 = require("./get-default-out-name");
|
|
5
6
|
const getUserPassedOutputLocation = (args) => {
|
|
6
7
|
var _a;
|
|
7
8
|
const filename = (_a = args[0]) !== null && _a !== void 0 ? _a : config_1.ConfigInternals.getOutputLocation();
|
|
8
9
|
return filename;
|
|
9
10
|
};
|
|
10
11
|
exports.getUserPassedOutputLocation = getUserPassedOutputLocation;
|
|
11
|
-
const getDefaultOutLocation = ({ compositionName, defaultExtension, type, }) => {
|
|
12
|
-
if (type === 'sequence') {
|
|
13
|
-
return `out/${compositionName}`;
|
|
14
|
-
}
|
|
15
|
-
return `out/${compositionName}.${defaultExtension}`;
|
|
16
|
-
};
|
|
17
12
|
const getOutputLocation = ({ compositionId, defaultExtension, args, type, }) => {
|
|
18
13
|
var _a;
|
|
19
|
-
return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a : getDefaultOutLocation({
|
|
14
|
+
return ((_a = (0, exports.getUserPassedOutputLocation)(args)) !== null && _a !== void 0 ? _a : (0, get_default_out_name_1.getDefaultOutLocation)({
|
|
20
15
|
compositionName: compositionId,
|
|
21
16
|
defaultExtension,
|
|
22
17
|
type,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-alpha5",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -13,19 +13,31 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
15
15
|
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": "./dist/index.js",
|
|
18
|
+
"./config": "./dist/config/index.js",
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"typesVersions": {
|
|
22
|
+
">=1.0": {
|
|
23
|
+
"config": [
|
|
24
|
+
"dist/config/index.d.ts"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
16
28
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
17
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
18
30
|
"dependencies": {
|
|
19
|
-
"@remotion/bundler": "4.0.0-
|
|
20
|
-
"@remotion/media-utils": "4.0.0-
|
|
21
|
-
"@remotion/player": "4.0.0-
|
|
22
|
-
"@remotion/renderer": "4.0.0-
|
|
31
|
+
"@remotion/bundler": "4.0.0-alpha5",
|
|
32
|
+
"@remotion/media-utils": "4.0.0-alpha5",
|
|
33
|
+
"@remotion/player": "4.0.0-alpha5",
|
|
34
|
+
"@remotion/renderer": "4.0.0-alpha5",
|
|
23
35
|
"dotenv": "9.0.2",
|
|
24
36
|
"memfs": "3.4.3",
|
|
25
37
|
"minimist": "1.2.6",
|
|
26
38
|
"open": "^8.4.2",
|
|
27
39
|
"prompts": "2.4.1",
|
|
28
|
-
"remotion": "4.0.0-
|
|
40
|
+
"remotion": "4.0.0-alpha5",
|
|
29
41
|
"semver": "7.3.5",
|
|
30
42
|
"source-map": "0.6.1"
|
|
31
43
|
},
|
|
@@ -39,10 +51,12 @@
|
|
|
39
51
|
"@types/node": "^16.7.5",
|
|
40
52
|
"@types/prompts": "^2.4.1",
|
|
41
53
|
"@types/react": "18.0.26",
|
|
54
|
+
"@types/prettier": "^2.7.2",
|
|
42
55
|
"@types/react-dom": "18.0.10",
|
|
43
56
|
"@types/semver": "^7.3.4",
|
|
44
57
|
"@typescript-eslint/eslint-plugin": "5.18.0",
|
|
45
58
|
"@typescript-eslint/parser": "5.18.0",
|
|
59
|
+
"@remotion/zod-types": "4.0.0-alpha5",
|
|
46
60
|
"eslint": "8.25.0",
|
|
47
61
|
"eslint-plugin-10x": "1.5.2",
|
|
48
62
|
"eslint-plugin-react": "7.29.4",
|
|
@@ -52,7 +66,8 @@
|
|
|
52
66
|
"react": "^18.0.0",
|
|
53
67
|
"react-dom": "^18.0.0",
|
|
54
68
|
"typescript": "^4.7.0",
|
|
55
|
-
"vitest": "0.24.3"
|
|
69
|
+
"vitest": "0.24.3",
|
|
70
|
+
"zod": "^3.21.4"
|
|
56
71
|
},
|
|
57
72
|
"keywords": [
|
|
58
73
|
"remotion",
|
package/styles/styles.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
html {
|
|
2
|
-
--blue: #
|
|
2
|
+
--blue: #0b84f3;
|
|
3
|
+
--blue-disabled: #284f73;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
6
|
body {
|
|
@@ -27,9 +28,18 @@ input::-webkit-inner-spin-button {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
input:focus,
|
|
31
|
+
textarea:focus,
|
|
30
32
|
button:focus,
|
|
31
33
|
a:focus {
|
|
32
34
|
outline: none;
|
|
33
|
-
box-shadow:
|
|
34
|
-
|
|
35
|
+
box-shadow: inset 1px 1px #555, inset -1px -1px #555, inset 1px -1px #555,
|
|
36
|
+
inset -1px 1px #555;
|
|
37
|
+
border-radius: 0 !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input[type="color"].__remotion_color_picker::-webkit-color-swatch-wrapper {
|
|
41
|
+
padding: 0;
|
|
42
|
+
}
|
|
43
|
+
input[type="color"].__remotion_color_picker::-webkit-color-swatch {
|
|
44
|
+
border: none;
|
|
35
45
|
}
|