@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
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createZodValues = void 0;
|
|
4
|
-
const createZodValues = (schema, zodRuntime, zColorRuntime) => {
|
|
5
|
-
if (!schema) {
|
|
6
|
-
throw new Error('Invalid zod schema');
|
|
7
|
-
}
|
|
8
|
-
const def = schema._def;
|
|
9
|
-
const typeName = def.typeName;
|
|
10
|
-
switch (typeName) {
|
|
11
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodString:
|
|
12
|
-
return '';
|
|
13
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodNumber:
|
|
14
|
-
return 0;
|
|
15
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodBigInt:
|
|
16
|
-
return BigInt(0);
|
|
17
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodBoolean:
|
|
18
|
-
return false;
|
|
19
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodNaN:
|
|
20
|
-
return NaN;
|
|
21
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodDate:
|
|
22
|
-
return new Date();
|
|
23
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodSymbol:
|
|
24
|
-
return Symbol('remotion');
|
|
25
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodUndefined:
|
|
26
|
-
return undefined;
|
|
27
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodNull:
|
|
28
|
-
return null;
|
|
29
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodAny:
|
|
30
|
-
throw new Error('Cannot create a value for type z.any()');
|
|
31
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodUnknown:
|
|
32
|
-
throw new Error('Cannot create a value for type z.unknown()');
|
|
33
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodNever:
|
|
34
|
-
throw new Error('Cannot create a value for type z.never()');
|
|
35
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodVoid:
|
|
36
|
-
return undefined;
|
|
37
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodObject: {
|
|
38
|
-
const shape = def.shape();
|
|
39
|
-
const keys = Object.keys(shape);
|
|
40
|
-
const returnValue = keys.reduce((existing, key) => {
|
|
41
|
-
existing[key] = (0, exports.createZodValues)(shape[key], zodRuntime, zColorRuntime);
|
|
42
|
-
return existing;
|
|
43
|
-
}, {});
|
|
44
|
-
return returnValue;
|
|
45
|
-
}
|
|
46
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodArray: {
|
|
47
|
-
return [
|
|
48
|
-
(0, exports.createZodValues)(def.type, zodRuntime, zColorRuntime),
|
|
49
|
-
];
|
|
50
|
-
}
|
|
51
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodUnion: {
|
|
52
|
-
const firstOptions = def.options[0];
|
|
53
|
-
return firstOptions
|
|
54
|
-
? (0, exports.createZodValues)(firstOptions, zodRuntime, zColorRuntime)
|
|
55
|
-
: undefined;
|
|
56
|
-
}
|
|
57
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodDiscriminatedUnion: {
|
|
58
|
-
const options = def.options[0];
|
|
59
|
-
return (0, exports.createZodValues)(options, zodRuntime, zColorRuntime);
|
|
60
|
-
}
|
|
61
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodLiteral: {
|
|
62
|
-
return def.value;
|
|
63
|
-
}
|
|
64
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodEffects: {
|
|
65
|
-
if (zColorRuntime &&
|
|
66
|
-
schema._def.description ===
|
|
67
|
-
zColorRuntime.ZColorInternals.REMOTION_COLOR_BRAND) {
|
|
68
|
-
return '#ffffff';
|
|
69
|
-
}
|
|
70
|
-
return (0, exports.createZodValues)(def.schema, zodRuntime, zColorRuntime);
|
|
71
|
-
}
|
|
72
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodIntersection: {
|
|
73
|
-
const { left, right } = def;
|
|
74
|
-
const leftValue = (0, exports.createZodValues)(left, zodRuntime, zColorRuntime);
|
|
75
|
-
if (typeof leftValue !== 'object') {
|
|
76
|
-
throw new Error('Cannot create value for type z.intersection: Left side is not an object');
|
|
77
|
-
}
|
|
78
|
-
const rightValue = (0, exports.createZodValues)(right, zodRuntime, zColorRuntime);
|
|
79
|
-
if (typeof rightValue !== 'object') {
|
|
80
|
-
throw new Error('Cannot create value for type z.intersection: Right side is not an object');
|
|
81
|
-
}
|
|
82
|
-
return { ...leftValue, ...rightValue };
|
|
83
|
-
}
|
|
84
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodTuple: {
|
|
85
|
-
const items = def.items.map((item) => (0, exports.createZodValues)(item, zodRuntime, zColorRuntime));
|
|
86
|
-
return items;
|
|
87
|
-
}
|
|
88
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodRecord: {
|
|
89
|
-
const values = (0, exports.createZodValues)(def.valueType, zodRuntime, zColorRuntime);
|
|
90
|
-
return { key: values };
|
|
91
|
-
}
|
|
92
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodMap: {
|
|
93
|
-
const defType = def;
|
|
94
|
-
const values = (0, exports.createZodValues)(defType.valueType, zodRuntime, zColorRuntime);
|
|
95
|
-
const key = (0, exports.createZodValues)(defType.keyType, zodRuntime, zColorRuntime);
|
|
96
|
-
return new Map([[key, values]]);
|
|
97
|
-
}
|
|
98
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodLazy: {
|
|
99
|
-
const defType = def;
|
|
100
|
-
const type = defType.getter();
|
|
101
|
-
return (0, exports.createZodValues)(type, zodRuntime, zColorRuntime);
|
|
102
|
-
}
|
|
103
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodSet: {
|
|
104
|
-
const defType = def;
|
|
105
|
-
const values = (0, exports.createZodValues)(defType.valueType, zodRuntime, zColorRuntime);
|
|
106
|
-
return new Set([values]);
|
|
107
|
-
}
|
|
108
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodFunction: {
|
|
109
|
-
throw new Error('Cannot create a value for type function');
|
|
110
|
-
}
|
|
111
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodEnum: {
|
|
112
|
-
const { values } = def;
|
|
113
|
-
return values[0];
|
|
114
|
-
}
|
|
115
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodNativeEnum: {
|
|
116
|
-
return 0;
|
|
117
|
-
}
|
|
118
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodOptional: {
|
|
119
|
-
const defType = def;
|
|
120
|
-
const value = (0, exports.createZodValues)(defType.innerType, zodRuntime, zColorRuntime);
|
|
121
|
-
return value;
|
|
122
|
-
}
|
|
123
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodNullable: {
|
|
124
|
-
const defType = def;
|
|
125
|
-
const value = (0, exports.createZodValues)(defType.innerType, zodRuntime, zColorRuntime);
|
|
126
|
-
return value;
|
|
127
|
-
}
|
|
128
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodDefault: {
|
|
129
|
-
const defType = def;
|
|
130
|
-
return defType.defaultValue();
|
|
131
|
-
}
|
|
132
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodCatch: {
|
|
133
|
-
const defType = def;
|
|
134
|
-
const value = (0, exports.createZodValues)(defType.innerType, zodRuntime, zColorRuntime);
|
|
135
|
-
return value;
|
|
136
|
-
}
|
|
137
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodPromise: {
|
|
138
|
-
const defType = def;
|
|
139
|
-
const value = (0, exports.createZodValues)(defType.type, zodRuntime, zColorRuntime);
|
|
140
|
-
return Promise.resolve(value);
|
|
141
|
-
}
|
|
142
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodBranded: {
|
|
143
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
144
|
-
const defType = def;
|
|
145
|
-
const value = (0, exports.createZodValues)(defType.type, zodRuntime, zColorRuntime);
|
|
146
|
-
return value;
|
|
147
|
-
}
|
|
148
|
-
case zodRuntime.ZodFirstPartyTypeKind.ZodPipeline: {
|
|
149
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
150
|
-
const defType = def;
|
|
151
|
-
const value = (0, exports.createZodValues)(defType.out, zodRuntime, zColorRuntime);
|
|
152
|
-
return value;
|
|
153
|
-
}
|
|
154
|
-
default:
|
|
155
|
-
throw new Error('Not implemented: ' + typeName);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
exports.createZodValues = createZodValues;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeJSONWithDate = exports.serializeJSONWithDate = void 0;
|
|
4
|
-
const serializeJSONWithDate = (data, indent) => {
|
|
5
|
-
return JSON.stringify(data, function (key, value) {
|
|
6
|
-
if (this[key] instanceof Date) {
|
|
7
|
-
return `remotion-date:${this[key].toISOString()}`;
|
|
8
|
-
}
|
|
9
|
-
return value;
|
|
10
|
-
}, indent);
|
|
11
|
-
};
|
|
12
|
-
exports.serializeJSONWithDate = serializeJSONWithDate;
|
|
13
|
-
const deserializeJSONWithDate = (data) => {
|
|
14
|
-
return JSON.parse(data, (_, value) => {
|
|
15
|
-
if (typeof value === 'string' && value.startsWith('remotion-date:')) {
|
|
16
|
-
return new Date(value.replace('remotion-date:', ''));
|
|
17
|
-
}
|
|
18
|
-
return value;
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.deserializeJSONWithDate = deserializeJSONWithDate;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSchemaLabel = void 0;
|
|
4
|
-
const getSchemaLabel = (jsonPath) => {
|
|
5
|
-
const lastKey = jsonPath[jsonPath.length - 1];
|
|
6
|
-
if (typeof lastKey === 'number') {
|
|
7
|
-
const secondLastKey = jsonPath[jsonPath.length - 2];
|
|
8
|
-
if (typeof secondLastKey === 'undefined') {
|
|
9
|
-
return `[${lastKey}]`;
|
|
10
|
-
}
|
|
11
|
-
return `${(0, exports.getSchemaLabel)(jsonPath.slice(0, jsonPath.length - 1))}[${lastKey}]`;
|
|
12
|
-
}
|
|
13
|
-
return lastKey;
|
|
14
|
-
};
|
|
15
|
-
exports.getSchemaLabel = getSchemaLabel;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type JSONPath = (string | number)[];
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarningIndicatorButton = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const colors_1 = require("../../helpers/colors");
|
|
7
|
-
const caret_1 = require("../../icons/caret");
|
|
8
|
-
const layout_1 = require("../layout");
|
|
9
|
-
const style = {
|
|
10
|
-
fontSize: 12,
|
|
11
|
-
display: 'inline-flex',
|
|
12
|
-
justifyContent: 'center',
|
|
13
|
-
alignItems: 'center',
|
|
14
|
-
backgroundColor: 'transparent',
|
|
15
|
-
color: colors_1.LIGHT_TEXT,
|
|
16
|
-
borderStyle: 'solid',
|
|
17
|
-
borderWidth: 1,
|
|
18
|
-
cursor: 'pointer',
|
|
19
|
-
paddingLeft: 8,
|
|
20
|
-
paddingRight: 8,
|
|
21
|
-
paddingTop: 4,
|
|
22
|
-
paddingBottom: 4,
|
|
23
|
-
};
|
|
24
|
-
const triangleStyle = {
|
|
25
|
-
width: 12,
|
|
26
|
-
height: 12,
|
|
27
|
-
flexShrink: 0,
|
|
28
|
-
fill: colors_1.WARNING_COLOR,
|
|
29
|
-
};
|
|
30
|
-
const WarningTriangle = (props) => {
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 576 512", ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M248.747 204.705l6.588 112c.373 6.343 5.626 11.295 11.979 11.295h41.37a12 12 0 0 0 11.979-11.295l6.588-112c.405-6.893-5.075-12.705-11.979-12.705h-54.547c-6.903 0-12.383 5.812-11.978 12.705zM330 384c0 23.196-18.804 42-42 42s-42-18.804-42-42 18.804-42 42-42 42 18.804 42 42zm-.423-360.015c-18.433-31.951-64.687-32.009-83.154 0L6.477 440.013C-11.945 471.946 11.118 512 48.054 512H527.94c36.865 0 60.035-39.993 41.577-71.987L329.577 23.985zM53.191 455.002L282.803 57.008c2.309-4.002 8.085-4.002 10.394 0l229.612 397.993c2.308 4-.579 8.998-5.197 8.998H58.388c-4.617.001-7.504-4.997-5.197-8.997z" }) }));
|
|
32
|
-
};
|
|
33
|
-
const WarningIndicatorButton = ({ setShowWarning, showWarning, warningCount }) => {
|
|
34
|
-
const onClick = (0, react_1.useCallback)(() => {
|
|
35
|
-
setShowWarning((s) => !s);
|
|
36
|
-
}, [setShowWarning]);
|
|
37
|
-
const buttonStyle = (0, react_1.useMemo)(() => {
|
|
38
|
-
return {
|
|
39
|
-
...style,
|
|
40
|
-
backgroundColor: showWarning ? colors_1.INPUT_BACKGROUND : 'transparent',
|
|
41
|
-
borderColor: showWarning
|
|
42
|
-
? colors_1.INPUT_BORDER_COLOR_HOVERED
|
|
43
|
-
: colors_1.INPUT_BORDER_COLOR_UNHOVERED,
|
|
44
|
-
color: showWarning ? 'white' : colors_1.LIGHT_TEXT,
|
|
45
|
-
};
|
|
46
|
-
}, [showWarning]);
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", style: buttonStyle, onClick: onClick, children: [(0, jsx_runtime_1.jsx)(WarningTriangle, { style: triangleStyle }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), warningCount, (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)(caret_1.AngleDown, { down: showWarning })] }));
|
|
48
|
-
};
|
|
49
|
-
exports.WarningIndicatorButton = WarningIndicatorButton;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare type TypeCanSaveState = {
|
|
2
|
-
canUpdate: true;
|
|
3
|
-
} | {
|
|
4
|
-
canUpdate: false;
|
|
5
|
-
reason: string;
|
|
6
|
-
determined: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const getRenderModalWarnings: ({ cliProps, canSaveDefaultProps, }: {
|
|
9
|
-
cliProps: unknown;
|
|
10
|
-
canSaveDefaultProps: TypeCanSaveState;
|
|
11
|
-
}) => string[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRenderModalWarnings = void 0;
|
|
4
|
-
const truthy_1 = require("../../../truthy");
|
|
5
|
-
const getInputPropsWarning = ({ cliProps }) => {
|
|
6
|
-
if (Object.keys(cliProps).length > 0) {
|
|
7
|
-
return 'The data that was passed using --props takes priority over the data you enter here.';
|
|
8
|
-
}
|
|
9
|
-
return null;
|
|
10
|
-
};
|
|
11
|
-
const getCannotSaveDefaultProps = ({ canSaveDefaultProps, }) => {
|
|
12
|
-
if (canSaveDefaultProps.canUpdate) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
if (!canSaveDefaultProps.determined) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return `Can't save default props: ${canSaveDefaultProps.reason}`;
|
|
19
|
-
};
|
|
20
|
-
const getRenderModalWarnings = ({ cliProps, canSaveDefaultProps, }) => {
|
|
21
|
-
return [
|
|
22
|
-
getInputPropsWarning({ cliProps }),
|
|
23
|
-
getCannotSaveDefaultProps({ canSaveDefaultProps }),
|
|
24
|
-
].filter(truthy_1.truthy);
|
|
25
|
-
};
|
|
26
|
-
exports.getRenderModalWarnings = getRenderModalWarnings;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.humanReadableAudioCodec = void 0;
|
|
4
|
-
const humanReadableAudioCodec = (audioCodec) => {
|
|
5
|
-
if (audioCodec === 'aac') {
|
|
6
|
-
return 'AAC';
|
|
7
|
-
}
|
|
8
|
-
if (audioCodec === 'mp3') {
|
|
9
|
-
return 'MP3';
|
|
10
|
-
}
|
|
11
|
-
if (audioCodec === 'pcm-16') {
|
|
12
|
-
return 'Lossless';
|
|
13
|
-
}
|
|
14
|
-
if (audioCodec === 'opus') {
|
|
15
|
-
return 'Opus';
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
exports.humanReadableAudioCodec = humanReadableAudioCodec;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.humanReadableCodec = void 0;
|
|
4
|
-
const humanReadableCodec = (codec) => {
|
|
5
|
-
if (codec === 'aac') {
|
|
6
|
-
return 'AAC';
|
|
7
|
-
}
|
|
8
|
-
if (codec === 'mp3') {
|
|
9
|
-
return 'MP3';
|
|
10
|
-
}
|
|
11
|
-
if (codec === 'gif') {
|
|
12
|
-
return 'GIF';
|
|
13
|
-
}
|
|
14
|
-
if (codec === 'h264') {
|
|
15
|
-
return 'H.264';
|
|
16
|
-
}
|
|
17
|
-
if (codec === 'h264-mkv') {
|
|
18
|
-
return 'H.264 Matroska';
|
|
19
|
-
}
|
|
20
|
-
if (codec === 'h265') {
|
|
21
|
-
return 'H.265';
|
|
22
|
-
}
|
|
23
|
-
if (codec === 'prores') {
|
|
24
|
-
return 'ProRes';
|
|
25
|
-
}
|
|
26
|
-
if (codec === 'vp8') {
|
|
27
|
-
return 'WebM VP8';
|
|
28
|
-
}
|
|
29
|
-
if (codec === 'vp9') {
|
|
30
|
-
return 'WebM VP9';
|
|
31
|
-
}
|
|
32
|
-
if (codec === 'wav') {
|
|
33
|
-
return 'Waveform';
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.humanReadableCodec = humanReadableCodec;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
export declare const optionRow: React.CSSProperties;
|
|
3
|
-
export declare const narrowOption: React.CSSProperties;
|
|
4
|
-
export declare const label: React.CSSProperties;
|
|
5
|
-
export declare const rightRow: React.CSSProperties;
|
|
6
|
-
export declare const input: React.CSSProperties;
|
|
7
|
-
export declare const fieldsetLabel: React.CSSProperties;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fieldsetLabel = exports.input = exports.rightRow = exports.label = exports.narrowOption = exports.optionRow = void 0;
|
|
4
|
-
const colors_1 = require("../../helpers/colors");
|
|
5
|
-
exports.optionRow = {
|
|
6
|
-
display: 'flex',
|
|
7
|
-
flexDirection: 'row',
|
|
8
|
-
minHeight: 40,
|
|
9
|
-
paddingLeft: 16,
|
|
10
|
-
paddingRight: 16,
|
|
11
|
-
paddingTop: 8,
|
|
12
|
-
paddingBottom: 8,
|
|
13
|
-
};
|
|
14
|
-
exports.narrowOption = {
|
|
15
|
-
display: 'flex',
|
|
16
|
-
flexDirection: 'column',
|
|
17
|
-
};
|
|
18
|
-
exports.label = {
|
|
19
|
-
width: 170,
|
|
20
|
-
fontSize: 15,
|
|
21
|
-
lineHeight: '40px',
|
|
22
|
-
color: colors_1.LIGHT_TEXT,
|
|
23
|
-
fontFamily: 'sans-serif',
|
|
24
|
-
};
|
|
25
|
-
exports.rightRow = {
|
|
26
|
-
display: 'flex',
|
|
27
|
-
flexDirection: 'row',
|
|
28
|
-
justifyContent: 'flex-end',
|
|
29
|
-
alignSelf: 'center',
|
|
30
|
-
flex: 1,
|
|
31
|
-
};
|
|
32
|
-
exports.input = {
|
|
33
|
-
minWidth: 250,
|
|
34
|
-
};
|
|
35
|
-
exports.fieldsetLabel = {
|
|
36
|
-
color: colors_1.LIGHT_TEXT,
|
|
37
|
-
fontSize: 14,
|
|
38
|
-
paddingLeft: 5,
|
|
39
|
-
paddingRight: 5,
|
|
40
|
-
display: 'flex',
|
|
41
|
-
flexDirection: 'row',
|
|
42
|
-
fontFamily: 'monospace',
|
|
43
|
-
alignItems: 'center',
|
|
44
|
-
width: '100%',
|
|
45
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AudioCodec, Codec, StillImageFormat } from '@remotion/renderer';
|
|
2
|
-
import type { RenderType } from './RenderModalAdvanced';
|
|
3
|
-
export declare const validateOutnameGui: ({ outName, codec, audioCodec, renderMode, stillImageFormat, }: {
|
|
4
|
-
outName: string;
|
|
5
|
-
codec: Codec;
|
|
6
|
-
audioCodec: AudioCodec;
|
|
7
|
-
renderMode: RenderType;
|
|
8
|
-
stillImageFormat: StillImageFormat | null;
|
|
9
|
-
}) => {
|
|
10
|
-
valid: true;
|
|
11
|
-
} | {
|
|
12
|
-
valid: false;
|
|
13
|
-
error: Error;
|
|
14
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateOutnameGui = void 0;
|
|
4
|
-
const client_1 = require("@remotion/renderer/client");
|
|
5
|
-
const invalidCharacters = ['?', '*', '+', ':', '%'];
|
|
6
|
-
const isValidStillExtension = (extension, stillImageFormat) => {
|
|
7
|
-
if (stillImageFormat === 'jpeg' && extension === 'jpg') {
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
return extension === stillImageFormat;
|
|
11
|
-
};
|
|
12
|
-
const validateOutnameGui = ({ outName, codec, audioCodec, renderMode, stillImageFormat, }) => {
|
|
13
|
-
try {
|
|
14
|
-
isValidOutName({
|
|
15
|
-
audioCodec,
|
|
16
|
-
codec,
|
|
17
|
-
outName,
|
|
18
|
-
renderMode,
|
|
19
|
-
stillImageFormat,
|
|
20
|
-
});
|
|
21
|
-
return { valid: true };
|
|
22
|
-
}
|
|
23
|
-
catch (err) {
|
|
24
|
-
return { valid: false, error: err };
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.validateOutnameGui = validateOutnameGui;
|
|
28
|
-
const isValidOutName = ({ outName, codec, audioCodec, renderMode, stillImageFormat, }) => {
|
|
29
|
-
const extension = outName.substring(outName.lastIndexOf('.') + 1);
|
|
30
|
-
const prefix = outName.substring(0, outName.lastIndexOf('.'));
|
|
31
|
-
const map = client_1.BrowserSafeApis.defaultFileExtensionMap[codec];
|
|
32
|
-
if (client_1.BrowserSafeApis.supportedAudioCodecs[codec].length > 0 &&
|
|
33
|
-
!(audioCodec in map.forAudioCodec)) {
|
|
34
|
-
throw new Error(`Audio codec ${audioCodec} is not supported for codec ${codec}`);
|
|
35
|
-
}
|
|
36
|
-
const hasDotAfterSlash = () => {
|
|
37
|
-
const substrings = prefix.split('/');
|
|
38
|
-
for (const str of substrings) {
|
|
39
|
-
if (str[0] === '.') {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return false;
|
|
44
|
-
};
|
|
45
|
-
const hasInvalidChar = () => {
|
|
46
|
-
return prefix.split('').some((char) => invalidCharacters.includes(char));
|
|
47
|
-
};
|
|
48
|
-
if (renderMode === 'video') {
|
|
49
|
-
client_1.BrowserSafeApis.validateOutputFilename({
|
|
50
|
-
codec,
|
|
51
|
-
audioCodec: audioCodec !== null && audioCodec !== void 0 ? audioCodec : null,
|
|
52
|
-
extension,
|
|
53
|
-
preferLossless: false,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
if (prefix.length < 1) {
|
|
57
|
-
throw new Error('The prefix must be at least 1 character long');
|
|
58
|
-
}
|
|
59
|
-
if (prefix[0] === '.' || hasDotAfterSlash()) {
|
|
60
|
-
throw new Error('The output name must not start with a dot');
|
|
61
|
-
}
|
|
62
|
-
if (hasInvalidChar()) {
|
|
63
|
-
throw new Error("Filename can't contain the following characters: ?, *, +, %, :");
|
|
64
|
-
}
|
|
65
|
-
if (renderMode === 'still' &&
|
|
66
|
-
stillImageFormat &&
|
|
67
|
-
!isValidStillExtension(extension, stillImageFormat)) {
|
|
68
|
-
throw new Error(`The extension ${extension} is not supported for still image format ${stillImageFormat}`);
|
|
69
|
-
}
|
|
70
|
-
if (renderMode === 'audio') {
|
|
71
|
-
if (audioCodec === 'pcm-16') {
|
|
72
|
-
if (extension !== 'wav' && extension !== 'wave') {
|
|
73
|
-
throw new Error(`The extension ${extension} is not supported for audio codec ${audioCodec}`);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if (audioCodec !== extension) {
|
|
77
|
-
throw new Error(`The extension ${extension} is not supported for audio codec ${audioCodec}`);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CircularProgress = exports.RENDER_STATUS_INDICATOR_SIZE = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const colors_1 = require("../../helpers/colors");
|
|
6
|
-
exports.RENDER_STATUS_INDICATOR_SIZE = 16;
|
|
7
|
-
const STROKE_WIDTH = 3;
|
|
8
|
-
const container = {
|
|
9
|
-
height: exports.RENDER_STATUS_INDICATOR_SIZE,
|
|
10
|
-
width: exports.RENDER_STATUS_INDICATOR_SIZE,
|
|
11
|
-
transform: `rotate(-90deg)`,
|
|
12
|
-
};
|
|
13
|
-
const CircularProgress = ({ progress }) => {
|
|
14
|
-
const r = exports.RENDER_STATUS_INDICATOR_SIZE / 2 - STROKE_WIDTH;
|
|
15
|
-
const circumference = r * Math.PI * 2;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)("svg", { style: container, viewBox: `0 0 ${exports.RENDER_STATUS_INDICATOR_SIZE} ${exports.RENDER_STATUS_INDICATOR_SIZE}`, children: (0, jsx_runtime_1.jsx)("circle", { r: exports.RENDER_STATUS_INDICATOR_SIZE / 2 - STROKE_WIDTH, stroke: colors_1.LIGHT_TEXT, fill: "none", strokeWidth: STROKE_WIDTH, cx: exports.RENDER_STATUS_INDICATOR_SIZE / 2, cy: exports.RENDER_STATUS_INDICATOR_SIZE / 2, strokeDasharray: `${circumference} ${circumference}`, strokeMiterlimit: 0, strokeDashoffset: (1 - progress) * circumference }) }));
|
|
17
|
-
};
|
|
18
|
-
exports.CircularProgress = CircularProgress;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RenderQueueError = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const modals_1 = require("../../state/modals");
|
|
7
|
-
const z_index_1 = require("../../state/z-index");
|
|
8
|
-
const item_style_1 = require("./item-style");
|
|
9
|
-
const outputLocation = {
|
|
10
|
-
...item_style_1.renderQueueItemSubtitleStyle,
|
|
11
|
-
};
|
|
12
|
-
const RenderQueueError = ({ job }) => {
|
|
13
|
-
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
14
|
-
const { tabIndex } = (0, z_index_1.useZIndex)();
|
|
15
|
-
const onClick = (0, react_1.useCallback)(() => {
|
|
16
|
-
setSelectedModal({
|
|
17
|
-
type: 'render-progress',
|
|
18
|
-
jobId: job.id,
|
|
19
|
-
});
|
|
20
|
-
}, [job.id, setSelectedModal]);
|
|
21
|
-
if (job.status !== 'failed') {
|
|
22
|
-
throw new Error('should not have rendered this component');
|
|
23
|
-
}
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)("button", { onClick: onClick, type: "button", style: outputLocation, tabIndex: tabIndex, title: job.error.message, children: job.error.message }));
|
|
25
|
-
};
|
|
26
|
-
exports.RenderQueueError = RenderQueueError;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RenderQueueItem = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const layout_1 = require("../layout");
|
|
6
|
-
const RenderQueueError_1 = require("./RenderQueueError");
|
|
7
|
-
const RenderQueueItemCancelButton_1 = require("./RenderQueueItemCancelButton");
|
|
8
|
-
const RenderQueueItemStatus_1 = require("./RenderQueueItemStatus");
|
|
9
|
-
const RenderQueueOpenInFolder_1 = require("./RenderQueueOpenInFolder");
|
|
10
|
-
const RenderQueueOutputName_1 = require("./RenderQueueOutputName");
|
|
11
|
-
const RenderQueueProgressMessage_1 = require("./RenderQueueProgressMessage");
|
|
12
|
-
const RenderQueueRemoveItem_1 = require("./RenderQueueRemoveItem");
|
|
13
|
-
const RenderQueueRepeat_1 = require("./RenderQueueRepeat");
|
|
14
|
-
const container = {
|
|
15
|
-
padding: 12,
|
|
16
|
-
display: 'flex',
|
|
17
|
-
flexDirection: 'row',
|
|
18
|
-
paddingBottom: 10,
|
|
19
|
-
paddingRight: 4,
|
|
20
|
-
};
|
|
21
|
-
const title = {
|
|
22
|
-
fontSize: 13,
|
|
23
|
-
lineHeight: 1,
|
|
24
|
-
};
|
|
25
|
-
const right = {
|
|
26
|
-
flex: 1,
|
|
27
|
-
display: 'flex',
|
|
28
|
-
flexDirection: 'column',
|
|
29
|
-
overflow: 'hidden',
|
|
30
|
-
};
|
|
31
|
-
const subtitle = {
|
|
32
|
-
maxWidth: '100%',
|
|
33
|
-
flex: 1,
|
|
34
|
-
display: 'flex',
|
|
35
|
-
overflow: 'hidden',
|
|
36
|
-
};
|
|
37
|
-
const RenderQueueItem = ({ job }) => {
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)(layout_1.Row, { style: container, align: "center", children: [(0, jsx_runtime_1.jsx)(RenderQueueItemStatus_1.RenderQueueItemStatus, { job: job }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsxs)("div", { style: right, children: [(0, jsx_runtime_1.jsx)("div", { style: title, children: job.compositionId }), (0, jsx_runtime_1.jsx)("div", { style: subtitle, children: job.status === 'done' ? ((0, jsx_runtime_1.jsx)(RenderQueueOutputName_1.RenderQueueOutputName, { job: job })) : job.status === 'failed' ? ((0, jsx_runtime_1.jsx)(RenderQueueError_1.RenderQueueError, { job: job })) : job.status === 'running' ? ((0, jsx_runtime_1.jsx)(RenderQueueProgressMessage_1.RenderQueueProgressMessage, { job: job })) : null })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), job.status === 'done' || job.status === 'failed' ? ((0, jsx_runtime_1.jsx)(RenderQueueRepeat_1.RenderQueueRepeatItem, { job: job })) : null, job.status === 'running' ? ((0, jsx_runtime_1.jsx)(RenderQueueItemCancelButton_1.RenderQueueCancelButton, { job: job })) : ((0, jsx_runtime_1.jsx)(RenderQueueRemoveItem_1.RenderQueueRemoveItem, { job: job })), job.status === 'done' ? (0, jsx_runtime_1.jsx)(RenderQueueOpenInFolder_1.RenderQueueOpenInFinderItem, { job: job }) : null] }));
|
|
39
|
-
};
|
|
40
|
-
exports.RenderQueueItem = RenderQueueItem;
|