@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
package/dist/config/index.d.ts
CHANGED
|
@@ -1,263 +1,22 @@
|
|
|
1
1
|
import * as Logging from './log';
|
|
2
2
|
import type { WebpackConfiguration } from '@remotion/bundler';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConfigType } from 'remotion';
|
|
4
4
|
import type { Concurrency } from './concurrency';
|
|
5
|
-
import type { Loop } from './number-of-gif-loops';
|
|
6
5
|
import type { WebpackOverrideFn } from './override-webpack';
|
|
7
|
-
declare
|
|
8
|
-
interface RemotionBundlingOptions {
|
|
9
|
-
/**
|
|
10
|
-
* Specify the entry point so you don't have to specify it in the
|
|
11
|
-
* CLI command
|
|
12
|
-
*/
|
|
13
|
-
readonly setEntryPoint: (src: string) => void;
|
|
14
|
-
/**
|
|
15
|
-
* Whether Webpack bundles should be cached to make
|
|
16
|
-
* subsequent renders faster. Default: true
|
|
17
|
-
*/
|
|
18
|
-
readonly setCachingEnabled: (flag: boolean) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Define on which port Remotion should start it's HTTP servers during preview and rendering.
|
|
21
|
-
* By default, Remotion will try to find a free port.
|
|
22
|
-
* If you specify a port, but it's not available, Remotion will throw an error.
|
|
23
|
-
*/
|
|
24
|
-
readonly setPort: (port: number | undefined) => void;
|
|
25
|
-
/**
|
|
26
|
-
* Define the location of the public/ directory.
|
|
27
|
-
* By default it is a folder named "public" inside the current working directory.
|
|
28
|
-
* You can set an absolute path or a relative path that will be resolved from the closest package.json location.
|
|
29
|
-
*/
|
|
30
|
-
readonly setPublicDir: (publicDir: string | null) => void;
|
|
31
|
-
readonly overrideWebpackConfig: (f: WebpackOverrideFn) => void;
|
|
32
|
-
}
|
|
33
|
-
interface RemotionConfigObject {
|
|
34
|
-
/**
|
|
35
|
-
* Change the maximum amount of tracks that are shown in the timeline.
|
|
36
|
-
* @param maxTracks The maximum amount of timeline tracks that you would like to show.
|
|
37
|
-
* @default 15
|
|
38
|
-
*/
|
|
39
|
-
readonly setMaxTimelineTracks: (maxTracks: number) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Enable Keyboard shortcuts in the Remotion Preview.
|
|
42
|
-
* @param enabled Boolean whether to enable the keyboard shortcuts
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
|
|
46
|
-
/**
|
|
47
|
-
* Set number of shared audio tags. https://www.remotion.dev/docs/player/autoplay#use-the-numberofsharedaudiotags-property
|
|
48
|
-
* @param numberOfAudioTags
|
|
49
|
-
* @default 0
|
|
50
|
-
*/
|
|
51
|
-
readonly setNumberOfSharedAudioTags: (numberOfAudioTags: number) => void;
|
|
52
|
-
/**
|
|
53
|
-
* Enable Webpack polling instead of file system listeners for hot reloading in the preview.
|
|
54
|
-
* This is useful if you are using a remote directory or a virtual machine.
|
|
55
|
-
* @param interval
|
|
56
|
-
* @default null
|
|
57
|
-
*/
|
|
58
|
-
readonly setWebpackPollingInMilliseconds: (interval: number | null) => void;
|
|
59
|
-
/**
|
|
60
|
-
* Whether Remotion should open a browser when starting the Preview.
|
|
61
|
-
* @param should
|
|
62
|
-
* @default true
|
|
63
|
-
*/
|
|
64
|
-
readonly setShouldOpenBrowser: (should: boolean) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Set the log level.
|
|
67
|
-
* Acceptable values: 'error' | 'warning' | 'info' | 'verbose'
|
|
68
|
-
* Default value: 'info'
|
|
69
|
-
*
|
|
70
|
-
* Set this to 'verbose' to get browser logs and other IO.
|
|
71
|
-
*/
|
|
72
|
-
readonly setLevel: (newLogLevel: 'verbose' | 'info' | 'warn' | 'error') => void;
|
|
73
|
-
/**
|
|
74
|
-
* Specify executable path for the browser to use.
|
|
75
|
-
* Default: null, which will make Remotion find or download a version of said browser.
|
|
76
|
-
*/
|
|
77
|
-
readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
|
|
78
|
-
/**
|
|
79
|
-
* Set how many milliseconds a frame may take to render before it times out.
|
|
80
|
-
* Default: `30000`
|
|
81
|
-
*/
|
|
82
|
-
readonly setDelayRenderTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated Renamed to `setDelayRenderTimeoutInMilliseconds`.
|
|
85
|
-
* Set how many milliseconds a frame may take to render before it times out.
|
|
86
|
-
* Default: `30000`
|
|
87
|
-
*/
|
|
88
|
-
readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
89
|
-
/**
|
|
90
|
-
* Setting deciding whether to disable CORS and other Chrome security features.
|
|
91
|
-
* Default: false
|
|
92
|
-
*/
|
|
93
|
-
readonly setChromiumDisableWebSecurity: (should: boolean) => void;
|
|
94
|
-
/**
|
|
95
|
-
* Setting whether to ignore any invalid SSL certificates, such as self-signed ones.
|
|
96
|
-
* Default: false
|
|
97
|
-
*/
|
|
98
|
-
readonly setChromiumIgnoreCertificateErrors: (should: boolean) => void;
|
|
99
|
-
/**
|
|
100
|
-
* If false, will open an actual browser during rendering to observe progress.
|
|
101
|
-
* Default: true
|
|
102
|
-
*/
|
|
103
|
-
readonly setChromiumHeadlessMode: (should: boolean) => void;
|
|
104
|
-
/**
|
|
105
|
-
* Set the OpenGL rendering backend for Chrome. Possible values: 'egl', 'angle', 'swiftshader' and 'swangle'.
|
|
106
|
-
* Default: 'swangle' in Lambda, null elsewhere.
|
|
107
|
-
*/
|
|
108
|
-
readonly setChromiumOpenGlRenderer: (renderer: 'swangle' | 'angle' | 'egl' | 'swiftshader') => void;
|
|
109
|
-
/**
|
|
110
|
-
* Set the user agent for Chrome. Only works during rendering.
|
|
111
|
-
* Default is the default user agent for Chrome
|
|
112
|
-
*/
|
|
113
|
-
readonly setChromiumUserAgent: (userAgent: string | null) => void;
|
|
114
|
-
/**
|
|
115
|
-
* Set a custom location for a .env file.
|
|
116
|
-
* Default: `.env`
|
|
117
|
-
*/
|
|
118
|
-
readonly setDotEnvLocation: (file: string) => void;
|
|
119
|
-
/**
|
|
120
|
-
* Sets how many Puppeteer instances will work on rendering your video in parallel.
|
|
121
|
-
* Default: `null`, meaning half of the threads available on your CPU.
|
|
122
|
-
*/
|
|
123
|
-
readonly setConcurrency: (newConcurrency: Concurrency) => void;
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated Renamed to `setJpegQuality`.
|
|
126
|
-
*/
|
|
127
|
-
readonly setQuality: (q: never) => void;
|
|
128
|
-
/**
|
|
129
|
-
* @deprecated Separated into `setStillImageFormat()` and `setVideoImageFormat()`.
|
|
130
|
-
*/
|
|
131
|
-
readonly setImageFormat: (q: never) => void;
|
|
132
|
-
/**
|
|
133
|
-
* Set the JPEG quality for the frames.
|
|
134
|
-
* Must be between 0 and 100.
|
|
135
|
-
* Default: 80
|
|
136
|
-
*/
|
|
137
|
-
readonly setJpegQuality: (q: number | undefined) => void;
|
|
138
|
-
/** Decide the image format for still renders.
|
|
139
|
-
*/
|
|
140
|
-
readonly setStillImageFormat: (format: StillImageFormat) => void;
|
|
141
|
-
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
|
|
142
|
-
* PNG is slower, but supports transparency.
|
|
143
|
-
*/
|
|
144
|
-
readonly setVideoImageFormat: (format: VideoImageFormat) => void;
|
|
145
|
-
/**
|
|
146
|
-
* Render only a subset of a video.
|
|
147
|
-
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
|
|
148
|
-
* Pass in a single number `20` to only render a single frame as an image.
|
|
149
|
-
* The frame count starts at 0.
|
|
150
|
-
*/
|
|
151
|
-
readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
|
|
152
|
-
/**
|
|
153
|
-
* Scales the output dimensions by a factor.
|
|
154
|
-
* Default: 1.
|
|
155
|
-
*/
|
|
156
|
-
readonly setScale: (newScale: number) => void;
|
|
157
|
-
/**
|
|
158
|
-
* Specify which frames should be picked for rendering a GIF
|
|
159
|
-
* Default: 1, which means every frame
|
|
160
|
-
* https://remotion.dev/docs/render-as-gif
|
|
161
|
-
*/
|
|
162
|
-
readonly setEveryNthFrame: (frame: number) => void;
|
|
163
|
-
/**
|
|
164
|
-
* Specify the number of Loop a GIF should have.
|
|
165
|
-
* Default: null (means GIF will loop infinite)
|
|
166
|
-
*/
|
|
167
|
-
readonly setNumberOfGifLoops: (newLoop: Loop) => void;
|
|
168
|
-
/**
|
|
169
|
-
* Disable audio output.
|
|
170
|
-
* Default: false
|
|
171
|
-
*/
|
|
172
|
-
readonly setMuted: (muted: boolean) => void;
|
|
173
|
-
/**
|
|
174
|
-
* Don't render an audio track if it would be silent.
|
|
175
|
-
* Default: true
|
|
176
|
-
*/
|
|
177
|
-
readonly setEnforceAudioTrack: (enforceAudioTrack: boolean) => void;
|
|
178
|
-
/**
|
|
179
|
-
* Set the output file location string. Default: `out/{composition}.{codec}`
|
|
180
|
-
*/
|
|
181
|
-
readonly setOutputLocation: (newOutputLocation: string) => void;
|
|
182
|
-
/**
|
|
183
|
-
* If the video file already exists, should Remotion overwrite
|
|
184
|
-
* the output? Default: true
|
|
185
|
-
*/
|
|
186
|
-
readonly setOverwriteOutput: (newOverwrite: boolean) => void;
|
|
187
|
-
/**
|
|
188
|
-
* Sets the pixel format in FFMPEG.
|
|
189
|
-
* See https://trac.ffmpeg.org/wiki/Chroma%20Subsampling for an explanation.
|
|
190
|
-
* You can override this using the `--pixel-format` Cli flag.
|
|
191
|
-
*/
|
|
192
|
-
readonly setPixelFormat: (format: 'yuv420p' | 'yuva420p' | 'yuv422p' | 'yuv444p' | 'yuv420p10le' | 'yuv422p10le' | 'yuv444p10le' | 'yuva444p10le') => void;
|
|
193
|
-
/**
|
|
194
|
-
* Specify the codec for stitching the frames into a video.
|
|
195
|
-
* Can be `h264` (default), `h265`, `vp8` or `vp9`
|
|
196
|
-
*/
|
|
197
|
-
readonly setCodec: (newCodec: CodecOrUndefined) => void;
|
|
198
|
-
/**
|
|
199
|
-
* Set the Constant Rate Factor to pass to FFMPEG.
|
|
200
|
-
* Lower values mean better quality, but be aware that the ranges of
|
|
201
|
-
* possible values greatly differs between codecs.
|
|
202
|
-
*/
|
|
203
|
-
readonly setCrf: (newCrf: Crf) => void;
|
|
204
|
-
/**
|
|
205
|
-
* Set to true if don't want a video but an image sequence as the output.
|
|
206
|
-
*/
|
|
207
|
-
readonly setImageSequence: (newImageSequence: boolean) => void;
|
|
208
|
-
/**
|
|
209
|
-
* Overrides the height of a composition
|
|
210
|
-
*/
|
|
211
|
-
readonly overrideHeight: (newHeight: number) => void;
|
|
212
|
-
/**
|
|
213
|
-
* Overrides the width of a composition
|
|
214
|
-
*/
|
|
215
|
-
readonly overrideWidth: (newWidth: number) => void;
|
|
216
|
-
/**
|
|
217
|
-
* Set the ProRes profile.
|
|
218
|
-
* This method is only valid if the codec has been set to 'prores'.
|
|
219
|
-
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
|
|
220
|
-
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
|
|
221
|
-
*/
|
|
222
|
-
readonly setProResProfile: (profile: '4444-xq' | '4444' | 'hq' | 'standard' | 'light' | 'proxy' | undefined) => void;
|
|
223
|
-
/**
|
|
224
|
-
* Override the arguments that Remotion passes to FFMPEG.
|
|
225
|
-
* Consult https://remotion.dev/docs/renderer/render-media#ffmpegoverride before using this feature.
|
|
226
|
-
*/
|
|
227
|
-
readonly overrideFfmpegCommand: (command: (info: {
|
|
228
|
-
type: 'pre-stitcher' | 'stitcher';
|
|
229
|
-
args: string[];
|
|
230
|
-
}) => string[]) => void;
|
|
231
|
-
/**
|
|
232
|
-
* Set a target audio bitrate to be passed to FFMPEG.
|
|
233
|
-
*/
|
|
234
|
-
readonly setAudioBitrate: (bitrate: string | null) => void;
|
|
235
|
-
/**
|
|
236
|
-
* Set a target video bitrate to be passed to FFMPEG.
|
|
237
|
-
* Mutually exclusive with setCrf().
|
|
238
|
-
*/
|
|
239
|
-
readonly setVideoBitrate: (bitrate: string | null) => void;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
declare type FlatConfig = RemotionConfigObject & RemotionBundlingOptions & {
|
|
243
|
-
/**
|
|
244
|
-
* Set the audio codec to use for the output video.
|
|
245
|
-
* See the Encoding guide in the docs for defaults and available options.
|
|
246
|
-
*/
|
|
247
|
-
setAudioCodec: (codec: 'pcm-16' | 'aac' | 'mp3' | 'opus') => void;
|
|
248
|
-
};
|
|
249
|
-
export declare const Config: FlatConfig;
|
|
6
|
+
export declare const Config: ConfigType;
|
|
250
7
|
export type { Concurrency, WebpackConfiguration, WebpackOverrideFn };
|
|
251
8
|
export declare const ConfigInternals: {
|
|
252
|
-
getRange: () => FrameRange | null;
|
|
253
|
-
getOutputCodecOrUndefined: () => CodecOrUndefined;
|
|
254
|
-
|
|
9
|
+
getRange: () => import("@remotion/renderer").FrameRange | null;
|
|
10
|
+
getOutputCodecOrUndefined: () => import("@remotion/renderer").CodecOrUndefined;
|
|
11
|
+
getCustomFfmpegExecutable: () => import("@remotion/renderer").FfmpegExecutable;
|
|
12
|
+
getBrowser: () => import("@remotion/renderer").Browser | null;
|
|
255
13
|
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
256
14
|
getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
|
|
257
15
|
getShouldOverwrite: ({ defaultValue, }: {
|
|
258
16
|
defaultValue: boolean;
|
|
259
17
|
}) => boolean;
|
|
260
|
-
getBrowserExecutable: () => BrowserExecutable;
|
|
18
|
+
getBrowserExecutable: () => import("@remotion/renderer").BrowserExecutable;
|
|
19
|
+
getCustomFfprobeExecutable: () => import("@remotion/renderer").FfmpegExecutable;
|
|
261
20
|
getScale: () => number;
|
|
262
21
|
getServerPort: () => number | undefined;
|
|
263
22
|
getChromiumDisableWebSecurity: () => boolean;
|
|
@@ -267,13 +26,12 @@ export declare const ConfigInternals: {
|
|
|
267
26
|
getEveryNthFrame: () => number;
|
|
268
27
|
getConcurrency: () => string | number | null;
|
|
269
28
|
getCurrentPuppeteerTimeout: () => number;
|
|
270
|
-
|
|
29
|
+
getQuality: () => number | undefined;
|
|
271
30
|
getAudioCodec: () => "mp3" | "aac" | "pcm-16" | "opus" | null;
|
|
272
31
|
getStillFrame: () => number;
|
|
273
|
-
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
|
|
32
|
+
getShouldOutputImageSequence: (frameRange: import("@remotion/renderer").FrameRange | null) => boolean;
|
|
274
33
|
getDotEnvLocation: () => string | null;
|
|
275
|
-
|
|
276
|
-
getUserPreferredVideoImageFormat: () => "png" | "jpeg" | "none" | undefined;
|
|
34
|
+
getUserPreferredImageFormat: () => "png" | "jpeg" | "none" | undefined;
|
|
277
35
|
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
278
36
|
getWebpackCaching: () => boolean;
|
|
279
37
|
getOutputLocation: () => string | null;
|
|
@@ -293,10 +51,11 @@ export declare const ConfigInternals: {
|
|
|
293
51
|
getVideoBitrate: () => string | null;
|
|
294
52
|
getHeight: () => number | null;
|
|
295
53
|
getWidth: () => number | null;
|
|
296
|
-
getCrfOrUndefined: () => Crf;
|
|
54
|
+
getCrfOrUndefined: () => import("@remotion/renderer").Crf;
|
|
297
55
|
getEntryPoint: () => string | null;
|
|
298
|
-
getNumberOfGifLoops: () => Loop;
|
|
56
|
+
getNumberOfGifLoops: () => import("./number-of-gif-loops").Loop;
|
|
299
57
|
getWebpackPolling: () => number | null;
|
|
300
58
|
getShouldOpenBrowser: () => boolean;
|
|
301
59
|
getChromiumUserAgent: () => string | null;
|
|
302
60
|
};
|
|
61
|
+
export declare const overrideRemotion: () => void;
|
package/dist/config/index.js
CHANGED
|
@@ -23,17 +23,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.ConfigInternals = exports.Config = void 0;
|
|
26
|
+
exports.overrideRemotion = exports.ConfigInternals = exports.Config = void 0;
|
|
27
|
+
const remotion_1 = require("remotion");
|
|
27
28
|
const browser_1 = require("./browser");
|
|
28
29
|
const browser_executable_1 = require("./browser-executable");
|
|
29
30
|
const chromium_flags_1 = require("./chromium-flags");
|
|
30
31
|
const codec_1 = require("./codec");
|
|
31
32
|
const concurrency_1 = require("./concurrency");
|
|
32
33
|
const env_file_1 = require("./env-file");
|
|
34
|
+
const ffmpeg_executable_1 = require("./ffmpeg-executable");
|
|
33
35
|
const frame_range_1 = require("./frame-range");
|
|
34
36
|
const image_format_1 = require("./image-format");
|
|
35
37
|
const image_sequence_1 = require("./image-sequence");
|
|
36
|
-
const jpeg_quality_1 = require("./jpeg-quality");
|
|
37
38
|
const Logging = __importStar(require("./log"));
|
|
38
39
|
const max_timeline_tracks_1 = require("./max-timeline-tracks");
|
|
39
40
|
const output_location_1 = require("./output-location");
|
|
@@ -42,6 +43,7 @@ const overwrite_1 = require("./overwrite");
|
|
|
42
43
|
const pixel_format_1 = require("./pixel-format");
|
|
43
44
|
const preview_server_1 = require("./preview-server");
|
|
44
45
|
const prores_profile_1 = require("./prores-profile");
|
|
46
|
+
const quality_1 = require("./quality");
|
|
45
47
|
const scale_1 = require("./scale");
|
|
46
48
|
const still_frame_1 = require("./still-frame");
|
|
47
49
|
const timeout_1 = require("./timeout");
|
|
@@ -57,11 +59,12 @@ const enforce_audio_track_1 = require("./enforce-audio-track");
|
|
|
57
59
|
const entry_point_1 = require("./entry-point");
|
|
58
60
|
const env_file_2 = require("./env-file");
|
|
59
61
|
const every_nth_frame_1 = require("./every-nth-frame");
|
|
62
|
+
const ffmpeg_executable_2 = require("./ffmpeg-executable");
|
|
60
63
|
const ffmpeg_override_1 = require("./ffmpeg-override");
|
|
61
64
|
const frame_range_2 = require("./frame-range");
|
|
62
65
|
const height_1 = require("./height");
|
|
66
|
+
const image_format_2 = require("./image-format");
|
|
63
67
|
const image_sequence_2 = require("./image-sequence");
|
|
64
|
-
const jpeg_quality_2 = require("./jpeg-quality");
|
|
65
68
|
const keyboard_shortcuts_1 = require("./keyboard-shortcuts");
|
|
66
69
|
const log_1 = require("./log");
|
|
67
70
|
const max_timeline_tracks_2 = require("./max-timeline-tracks");
|
|
@@ -76,24 +79,31 @@ const pixel_format_2 = require("./pixel-format");
|
|
|
76
79
|
const preview_server_2 = require("./preview-server");
|
|
77
80
|
const prores_profile_2 = require("./prores-profile");
|
|
78
81
|
const public_dir_1 = require("./public-dir");
|
|
82
|
+
const quality_2 = require("./quality");
|
|
79
83
|
const scale_2 = require("./scale");
|
|
80
84
|
const timeout_2 = require("./timeout");
|
|
81
85
|
const user_agent_1 = require("./user-agent");
|
|
82
86
|
const webpack_caching_2 = require("./webpack-caching");
|
|
83
87
|
const webpack_poll_1 = require("./webpack-poll");
|
|
84
88
|
const width_1 = require("./width");
|
|
85
|
-
|
|
89
|
+
const Preview = {
|
|
86
90
|
setMaxTimelineTracks: max_timeline_tracks_2.setMaxTimelineTracks,
|
|
87
91
|
setKeyboardShortcutsEnabled: keyboard_shortcuts_1.setKeyboardShortcutsEnabled,
|
|
88
92
|
setNumberOfSharedAudioTags: number_of_shared_audio_tags_1.setNumberOfSharedAudioTags,
|
|
89
93
|
setWebpackPollingInMilliseconds: webpack_poll_1.setWebpackPollingInMilliseconds,
|
|
90
94
|
setShouldOpenBrowser: open_browser_1.setShouldOpenBrowser,
|
|
95
|
+
};
|
|
96
|
+
const Bundling = {
|
|
91
97
|
overrideWebpackConfig: override_webpack_2.overrideWebpackConfig,
|
|
92
98
|
setCachingEnabled: webpack_caching_2.setWebpackCaching,
|
|
93
99
|
setPort: preview_server_2.setPort,
|
|
94
100
|
setPublicDir: public_dir_1.setPublicDir,
|
|
95
101
|
setEntryPoint: entry_point_1.setEntryPoint,
|
|
102
|
+
};
|
|
103
|
+
const Log = {
|
|
96
104
|
setLevel: log_1.setLogLevel,
|
|
105
|
+
};
|
|
106
|
+
const Puppeteer = {
|
|
97
107
|
setBrowserExecutable: browser_executable_2.setBrowserExecutable,
|
|
98
108
|
setTimeoutInMilliseconds: timeout_2.setPuppeteerTimeout,
|
|
99
109
|
setDelayRenderTimeoutInMilliseconds: timeout_2.setPuppeteerTimeout,
|
|
@@ -102,26 +112,26 @@ exports.Config = {
|
|
|
102
112
|
setChromiumHeadlessMode: chromium_flags_2.setChromiumHeadlessMode,
|
|
103
113
|
setChromiumOpenGlRenderer: chromium_flags_2.setChromiumOpenGlRenderer,
|
|
104
114
|
setChromiumUserAgent: user_agent_1.setChromiumUserAgent,
|
|
115
|
+
};
|
|
116
|
+
const Rendering = {
|
|
105
117
|
setDotEnvLocation: env_file_2.setDotEnvLocation,
|
|
106
118
|
setConcurrency: concurrency_2.setConcurrency,
|
|
107
|
-
setQuality:
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
setImageFormat: () => {
|
|
111
|
-
throw new Error('setImageFormat() has been renamed - use setVideoImageFormat() or setStillImageFormat() instead.');
|
|
112
|
-
},
|
|
113
|
-
setJpegQuality: jpeg_quality_2.setJpegQuality,
|
|
114
|
-
setStillImageFormat: image_format_1.setStillImageFormat,
|
|
115
|
-
setVideoImageFormat: image_format_1.setVideoImageFormat,
|
|
119
|
+
setQuality: quality_2.setQuality,
|
|
120
|
+
setImageFormat: image_format_2.setImageFormat,
|
|
116
121
|
setFrameRange: frame_range_2.setFrameRange,
|
|
122
|
+
setFfmpegExecutable: ffmpeg_executable_2.setFfmpegExecutable,
|
|
123
|
+
setFfprobeExecutable: ffmpeg_executable_2.setFfprobeExecutable,
|
|
117
124
|
setScale: scale_2.setScale,
|
|
118
125
|
setEveryNthFrame: every_nth_frame_1.setEveryNthFrame,
|
|
119
126
|
setNumberOfGifLoops: number_of_gif_loops_1.setNumberOfGifLoops,
|
|
120
127
|
setMuted: muted_1.setMuted,
|
|
121
128
|
setEnforceAudioTrack: enforce_audio_track_1.setEnforceAudioTrack,
|
|
129
|
+
};
|
|
130
|
+
const Output = {
|
|
122
131
|
setOutputLocation: output_location_2.setOutputLocation,
|
|
123
132
|
setOverwriteOutput: overwrite_2.setOverwriteOutput,
|
|
124
133
|
setPixelFormat: pixel_format_2.setPixelFormat,
|
|
134
|
+
setOutputFormat: codec_2.setOutputFormat,
|
|
125
135
|
setCodec: codec_2.setCodec,
|
|
126
136
|
setCrf: crf_1.setCrf,
|
|
127
137
|
setImageSequence: image_sequence_2.setImageSequence,
|
|
@@ -131,16 +141,35 @@ exports.Config = {
|
|
|
131
141
|
overrideHeight: height_1.overrideHeight,
|
|
132
142
|
overrideWidth: width_1.overrideWidth,
|
|
133
143
|
overrideFfmpegCommand: ffmpeg_override_1.setFfmpegOverrideFunction,
|
|
144
|
+
};
|
|
145
|
+
exports.Config = {
|
|
146
|
+
// New flat config format
|
|
147
|
+
...Preview,
|
|
148
|
+
...Bundling,
|
|
149
|
+
...Log,
|
|
150
|
+
...Puppeteer,
|
|
151
|
+
...Rendering,
|
|
152
|
+
...Output,
|
|
153
|
+
// Legacy config format
|
|
154
|
+
Preview,
|
|
155
|
+
Bundling,
|
|
156
|
+
Log,
|
|
157
|
+
Puppeteer,
|
|
158
|
+
Rendering,
|
|
159
|
+
Output,
|
|
160
|
+
// Options added after migration
|
|
134
161
|
setAudioCodec: audio_codec_1.setAudioCodec,
|
|
135
162
|
};
|
|
136
163
|
exports.ConfigInternals = {
|
|
137
164
|
getRange: frame_range_1.getRange,
|
|
138
165
|
getOutputCodecOrUndefined: codec_1.getOutputCodecOrUndefined,
|
|
166
|
+
getCustomFfmpegExecutable: ffmpeg_executable_1.getCustomFfmpegExecutable,
|
|
139
167
|
getBrowser: browser_1.getBrowser,
|
|
140
168
|
getPixelFormat: pixel_format_1.getPixelFormat,
|
|
141
169
|
getProResProfile: prores_profile_1.getProResProfile,
|
|
142
170
|
getShouldOverwrite: overwrite_1.getShouldOverwrite,
|
|
143
171
|
getBrowserExecutable: browser_executable_1.getBrowserExecutable,
|
|
172
|
+
getCustomFfprobeExecutable: ffmpeg_executable_1.getCustomFfprobeExecutable,
|
|
144
173
|
getScale: scale_1.getScale,
|
|
145
174
|
getServerPort: preview_server_1.getServerPort,
|
|
146
175
|
getChromiumDisableWebSecurity: chromium_flags_1.getChromiumDisableWebSecurity,
|
|
@@ -150,13 +179,12 @@ exports.ConfigInternals = {
|
|
|
150
179
|
getEveryNthFrame: every_nth_frame_1.getEveryNthFrame,
|
|
151
180
|
getConcurrency: concurrency_1.getConcurrency,
|
|
152
181
|
getCurrentPuppeteerTimeout: timeout_1.getCurrentPuppeteerTimeout,
|
|
153
|
-
|
|
182
|
+
getQuality: quality_1.getQuality,
|
|
154
183
|
getAudioCodec: audio_codec_1.getAudioCodec,
|
|
155
184
|
getStillFrame: still_frame_1.getStillFrame,
|
|
156
185
|
getShouldOutputImageSequence: image_sequence_1.getShouldOutputImageSequence,
|
|
157
186
|
getDotEnvLocation: env_file_1.getDotEnvLocation,
|
|
158
|
-
|
|
159
|
-
getUserPreferredVideoImageFormat: image_format_1.getUserPreferredVideoImageFormat,
|
|
187
|
+
getUserPreferredImageFormat: image_format_1.getUserPreferredImageFormat,
|
|
160
188
|
getWebpackOverrideFn: override_webpack_1.getWebpackOverrideFn,
|
|
161
189
|
getWebpackCaching: webpack_caching_1.getWebpackCaching,
|
|
162
190
|
getOutputLocation: output_location_1.getOutputLocation,
|
|
@@ -183,3 +211,8 @@ exports.ConfigInternals = {
|
|
|
183
211
|
getShouldOpenBrowser: open_browser_1.getShouldOpenBrowser,
|
|
184
212
|
getChromiumUserAgent: user_agent_1.getChromiumUserAgent,
|
|
185
213
|
};
|
|
214
|
+
const overrideRemotion = () => {
|
|
215
|
+
Object.assign(remotion_1.Config, exports.Config);
|
|
216
|
+
remotion_1.Internals.enableLegacyRemotionConfig();
|
|
217
|
+
};
|
|
218
|
+
exports.overrideRemotion = overrideRemotion;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const getPublicDir: () => string | null;
|
|
2
|
-
export declare const setPublicDir: (dir: string
|
|
2
|
+
export declare const setPublicDir: (dir: string) => void;
|
package/dist/config/scale.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const
|
|
1
|
+
import type { ImageFormat, StillImageFormat } from '@remotion/renderer';
|
|
2
|
+
export declare const determineFinalImageFormat: ({ downloadName, outName, configImageFormat, cliFlag, isLambda, }: {
|
|
3
3
|
downloadName: string | null;
|
|
4
4
|
outName: string | null;
|
|
5
|
-
configImageFormat:
|
|
6
|
-
cliFlag:
|
|
5
|
+
configImageFormat: ImageFormat | null;
|
|
6
|
+
cliFlag: ImageFormat | null;
|
|
7
7
|
isLambda: boolean;
|
|
8
|
-
fromUi: StillImageFormat | null;
|
|
9
8
|
}) => {
|
|
10
9
|
format: StillImageFormat;
|
|
11
10
|
source: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.determineFinalImageFormat = void 0;
|
|
4
4
|
const deriveExtensionFromFilename = (filename) => {
|
|
5
5
|
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.png')) {
|
|
6
6
|
return 'png';
|
|
@@ -11,18 +11,9 @@ const deriveExtensionFromFilename = (filename) => {
|
|
|
11
11
|
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.jpeg')) {
|
|
12
12
|
return 'jpeg';
|
|
13
13
|
}
|
|
14
|
-
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.pdf')) {
|
|
15
|
-
return 'pdf';
|
|
16
|
-
}
|
|
17
|
-
if (filename === null || filename === void 0 ? void 0 : filename.endsWith('.webp')) {
|
|
18
|
-
return 'webp';
|
|
19
|
-
}
|
|
20
14
|
return null;
|
|
21
15
|
};
|
|
22
|
-
const
|
|
23
|
-
if (fromUi) {
|
|
24
|
-
return { format: fromUi, source: 'via UI' };
|
|
25
|
-
}
|
|
16
|
+
const determineFinalImageFormat = ({ downloadName, outName, configImageFormat, cliFlag, isLambda, }) => {
|
|
26
17
|
const outNameExtension = deriveExtensionFromFilename(outName);
|
|
27
18
|
const downloadNameExtension = deriveExtensionFromFilename(downloadName);
|
|
28
19
|
const outNameDescription = isLambda ? 'S3 output key' : 'out name';
|
|
@@ -49,13 +40,9 @@ const determineFinalStillImageFormat = ({ downloadName, outName, configImageForm
|
|
|
49
40
|
if (cliFlag !== null) {
|
|
50
41
|
return { format: cliFlag, source: '--image-format flag' };
|
|
51
42
|
}
|
|
52
|
-
if (configImageFormat !== null) {
|
|
53
|
-
// @ts-expect-error
|
|
54
|
-
if (configImageFormat === 'none') {
|
|
55
|
-
throw new Error('The still simage format in the config file must not be "none"');
|
|
56
|
-
}
|
|
43
|
+
if (configImageFormat !== null && configImageFormat !== 'none') {
|
|
57
44
|
return { format: configImageFormat, source: 'Config file' };
|
|
58
45
|
}
|
|
59
46
|
return { format: 'png', source: 'Default' };
|
|
60
47
|
};
|
|
61
|
-
exports.
|
|
48
|
+
exports.determineFinalImageFormat = determineFinalImageFormat;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DownloadProgress } from './progress-
|
|
1
|
+
import type { DownloadProgress } from './progress-bar';
|
|
2
2
|
export declare const getFileSizeDownloadBar: (downloaded: number) => string;
|
|
3
|
-
export declare const makeMultiDownloadProgress: (progresses: DownloadProgress[]
|
|
3
|
+
export declare const makeMultiDownloadProgress: (progresses: DownloadProgress[]) => string | null;
|
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeMultiDownloadProgress = exports.getFileSizeDownloadBar = void 0;
|
|
4
4
|
const format_bytes_1 = require("./format-bytes");
|
|
5
|
-
const log_1 = require("./log");
|
|
6
5
|
const make_progress_bar_1 = require("./make-progress-bar");
|
|
7
|
-
const truthy_1 = require("./truthy");
|
|
8
6
|
const getFileSizeDownloadBar = (downloaded) => {
|
|
9
7
|
const desiredLength = (0, make_progress_bar_1.makeProgressBar)(0).length;
|
|
10
8
|
return `[${(0, format_bytes_1.formatBytes)(downloaded).padEnd(desiredLength - 2, ' ')}]`;
|
|
11
9
|
};
|
|
12
10
|
exports.getFileSizeDownloadBar = getFileSizeDownloadBar;
|
|
13
|
-
const makeMultiDownloadProgress = (progresses
|
|
11
|
+
const makeMultiDownloadProgress = (progresses) => {
|
|
14
12
|
if (progresses.length === 0) {
|
|
15
13
|
return null;
|
|
16
14
|
}
|
|
@@ -20,27 +18,21 @@ const makeMultiDownloadProgress = (progresses, indent) => {
|
|
|
20
18
|
? progress.name.substring(0, 57) + '...'
|
|
21
19
|
: progress.name;
|
|
22
20
|
return [
|
|
23
|
-
indent ? log_1.INDENT_TOKEN : null,
|
|
24
21
|
` +`,
|
|
25
22
|
progress.progress
|
|
26
23
|
? (0, make_progress_bar_1.makeProgressBar)(progress.progress)
|
|
27
24
|
: (0, exports.getFileSizeDownloadBar)(progress.downloaded),
|
|
28
25
|
`Downloading ${truncatedFileName}`,
|
|
29
|
-
]
|
|
30
|
-
.filter(truthy_1.truthy)
|
|
31
|
-
.join(' ');
|
|
26
|
+
].join(' ');
|
|
32
27
|
}
|
|
33
28
|
const everyFileHasContentLength = progresses.every((p) => p.totalBytes !== null);
|
|
34
29
|
return [
|
|
35
|
-
indent ? log_1.INDENT_TOKEN : null,
|
|
36
30
|
` +`,
|
|
37
31
|
everyFileHasContentLength
|
|
38
32
|
? (0, make_progress_bar_1.makeProgressBar)(progresses.reduce((a, b) => a + b.progress, 0) /
|
|
39
33
|
progresses.length)
|
|
40
34
|
: (0, exports.getFileSizeDownloadBar)(progresses.reduce((a, b) => a + b.downloaded, 0)),
|
|
41
35
|
`Downloading ${progresses.length} files`,
|
|
42
|
-
]
|
|
43
|
-
.filter(truthy_1.truthy)
|
|
44
|
-
.join(' ');
|
|
36
|
+
].join(' ');
|
|
45
37
|
};
|
|
46
38
|
exports.makeMultiDownloadProgress = makeMultiDownloadProgress;
|
|
@@ -195,7 +195,6 @@ const Canvas = () => {
|
|
|
195
195
|
commandCtrlKey: false,
|
|
196
196
|
callback: onReset,
|
|
197
197
|
preventDefault: true,
|
|
198
|
-
triggerIfInputFieldFocused: false,
|
|
199
198
|
});
|
|
200
199
|
const zoomIn = keybindings.registerKeybinding({
|
|
201
200
|
event: 'keydown',
|
|
@@ -203,7 +202,6 @@ const Canvas = () => {
|
|
|
203
202
|
commandCtrlKey: false,
|
|
204
203
|
callback: onZoomIn,
|
|
205
204
|
preventDefault: true,
|
|
206
|
-
triggerIfInputFieldFocused: false,
|
|
207
205
|
});
|
|
208
206
|
const zoomOut = keybindings.registerKeybinding({
|
|
209
207
|
event: 'keydown',
|
|
@@ -211,7 +209,6 @@ const Canvas = () => {
|
|
|
211
209
|
commandCtrlKey: false,
|
|
212
210
|
callback: onZoomOut,
|
|
213
211
|
preventDefault: true,
|
|
214
|
-
triggerIfInputFieldFocused: false,
|
|
215
212
|
});
|
|
216
213
|
return () => {
|
|
217
214
|
resetBinding.unregister();
|
|
@@ -12,6 +12,7 @@ const CompositionSelectorItem_1 = require("./CompositionSelectorItem");
|
|
|
12
12
|
const CurrentComposition_1 = require("./CurrentComposition");
|
|
13
13
|
const InitialCompositionLoader_1 = require("./InitialCompositionLoader");
|
|
14
14
|
const container = {
|
|
15
|
+
borderRight: '1px solid black',
|
|
15
16
|
position: 'absolute',
|
|
16
17
|
height: '100%',
|
|
17
18
|
width: '100%',
|
|
@@ -19,7 +20,8 @@ const container = {
|
|
|
19
20
|
backgroundColor: colors_1.BACKGROUND,
|
|
20
21
|
};
|
|
21
22
|
const list = {
|
|
22
|
-
|
|
23
|
+
padding: 5,
|
|
24
|
+
height: 'calc(100% - 100px)',
|
|
23
25
|
overflowY: 'auto',
|
|
24
26
|
};
|
|
25
27
|
const getKeysToExpand = (initialFolderName, parentFolderName, initial = []) => {
|
|
@@ -52,7 +54,7 @@ const CompositionSelector = () => {
|
|
|
52
54
|
const items = (0, react_1.useMemo)(() => {
|
|
53
55
|
return (0, create_folder_tree_1.createFolderTree)(compositions, folders, foldersExpanded);
|
|
54
56
|
}, [compositions, folders, foldersExpanded]);
|
|
55
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(CurrentComposition_1.CurrentComposition, {}), (0, jsx_runtime_1.jsx)("div", {
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(CurrentComposition_1.CurrentComposition, {}), (0, jsx_runtime_1.jsx)("div", { style: list, children: items.map((c) => {
|
|
56
58
|
return ((0, jsx_runtime_1.jsx)(CompositionSelectorItem_1.CompositionSelectorItem, { level: 0, currentComposition: currentComposition, selectComposition: selectComposition, toggleFolder: toggleFolder, tabIndex: tabIndex, item: c }, c.key + c.type));
|
|
57
59
|
}) })] }));
|
|
58
60
|
};
|