@remotion/cli 4.0.0-alpha.217 → 4.0.0-alpha10
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/benchmark.js +11 -6
- package/dist/better-opn/index.js +3 -3
- package/dist/chalk/index.d.ts +45 -54
- package/dist/chalk/index.js +2 -135
- package/dist/codemods/stringify-with-path.d.ts +5 -0
- package/dist/codemods/stringify-with-path.js +44 -0
- package/dist/codemods/update-default-props.d.ts +4 -2
- package/dist/codemods/update-default-props.js +3 -18
- package/dist/color-math.d.ts +2 -2
- package/dist/color-math.js +5 -3
- package/dist/compositions.js +1 -0
- package/dist/config/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/log.d.ts +1 -3
- package/dist/config/log.js +2 -9
- package/dist/convert-entry-point-to-serve-url.js +2 -2
- package/dist/download-progress.d.ts +1 -1
- package/dist/download-progress.js +1 -4
- package/dist/editor/components/CanvasOrLoading.d.ts +5 -0
- package/dist/editor/components/CanvasOrLoading.js +66 -0
- package/dist/editor/components/CheckboardToggle.js +2 -1
- package/dist/editor/components/CompositionSelectorItem.js +2 -2
- package/dist/editor/components/CurrentCompositionSideEffects.js +3 -3
- package/dist/editor/components/InitialCompositionLoader.js +1 -1
- package/dist/editor/components/InlineAction.d.ts +6 -4
- package/dist/editor/components/InlineAction.js +7 -8
- package/dist/editor/components/LoopToggle.js +2 -1
- package/dist/editor/components/Menu/MenuItem.js +1 -1
- package/dist/editor/components/Menu/SubMenu.js +1 -1
- package/dist/editor/components/Menu/styles.d.ts +1 -0
- package/dist/editor/components/Menu/styles.js +6 -1
- package/dist/editor/components/MenuBuildIndicator.js +20 -1
- package/dist/editor/components/MenuToolbar.js +15 -3
- package/dist/editor/components/Modals.js +2 -2
- package/dist/editor/components/NewComposition/ComboBox.js +20 -5
- package/dist/editor/components/NewComposition/InputDragger.js +3 -2
- package/dist/editor/components/NewComposition/MenuContent.d.ts +1 -0
- package/dist/editor/components/NewComposition/MenuContent.js +12 -4
- package/dist/editor/components/Notifications/ServerDisconnected.js +2 -2
- package/dist/editor/components/OpenEditorButton.d.ts +2 -0
- package/dist/editor/components/OpenEditorButton.js +52 -0
- package/dist/editor/components/PlayPause.js +4 -2
- package/dist/editor/components/PreviewToolbar.js +2 -2
- package/dist/editor/components/QuickSwitcher/algolia-search.js +1 -1
- package/dist/editor/components/RenderButton.d.ts +1 -5
- package/dist/editor/components/RenderButton.js +48 -21
- package/dist/editor/components/RenderModal/CliCopyButton.js +51 -14
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +0 -1
- package/dist/editor/components/RenderModal/CrfSetting.js +0 -1
- package/dist/editor/components/RenderModal/DataEditor.d.ts +21 -0
- package/dist/editor/components/RenderModal/DataEditor.js +287 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +3 -2
- package/dist/editor/components/RenderModal/InfoBubble.js +2 -1
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +1 -0
- package/dist/editor/components/RenderModal/InfoTooltip.js +6 -5
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +6 -3
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +6 -1
- package/dist/editor/components/RenderModal/MutedSetting.js +3 -2
- package/dist/editor/components/RenderModal/OptionExplainer.js +14 -3
- package/dist/editor/components/RenderModal/RenderModal.d.ts +7 -3
- package/dist/editor/components/RenderModal/RenderModal.js +108 -49
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +0 -2
- package/dist/editor/components/RenderModal/RenderModalAudio.js +1 -1
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +3 -2
- package/dist/editor/components/RenderModal/RenderModalBasic.js +4 -3
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +16 -4
- package/dist/editor/components/RenderModal/RenderModalData.js +109 -42
- package/dist/editor/components/RenderModal/RenderModalJSONPropsEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/{RenderModalJSONInputPropsEditor.js → RenderModalJSONPropsEditor.js} +51 -30
- package/dist/editor/components/RenderModal/RenderModalPicture.d.ts +2 -2
- package/dist/editor/components/RenderModal/RenderModalPicture.js +2 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +6 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +4 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaErrorMessages.js +15 -6
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +5 -4
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +6 -1
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +7 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +19 -29
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +4 -4
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +7 -7
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodColorEditor.js +23 -66
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +13 -21
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDefaultEditor.js +10 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +4 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +20 -19
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.d.ts +4 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEnumEditor.js +12 -26
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNullableEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +16 -32
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +7 -4
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +18 -11
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOptionalEditor.js +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodOrNullishEditor.js +44 -11
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.d.ts +17 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStaticFileEditor.js +59 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +12 -23
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +32 -21
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.d.ts +5 -2
- package/dist/editor/components/RenderModal/SchemaEditor/ZodUnionEditor.js +6 -6
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.d.ts +2 -2
- package/dist/editor/components/RenderModal/SchemaEditor/create-zod-values.js +22 -22
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/deep-equal.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.d.ts +3 -0
- package/dist/editor/components/RenderModal/SchemaEditor/extract-enum-json-paths.js +126 -0
- package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/input-props-serialization.js +42 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.d.ts +16 -0
- package/dist/editor/components/RenderModal/SchemaEditor/local-state.js +38 -0
- package/dist/editor/components/RenderModal/get-render-modal-warnings.d.ts +9 -1
- package/dist/editor/components/RenderModal/get-render-modal-warnings.js +42 -8
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +1 -1
- package/dist/editor/components/RenderModal/layout.js +3 -0
- package/dist/editor/components/RenderModal/out-name-checker.js +1 -11
- package/dist/editor/components/RenderQueue/RenderQueueItemCancelButton.js +5 -1
- package/dist/editor/components/RenderQueue/RenderQueueOpenInFolder.js +5 -1
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +5 -1
- package/dist/editor/components/RenderQueue/RenderQueueRepeat.js +5 -1
- package/dist/editor/components/RenderQueue/actions.d.ts +4 -3
- package/dist/editor/components/RenderQueue/actions.js +8 -3
- package/dist/editor/components/RenderQueue/index.js +9 -2
- package/dist/editor/components/RightPanel.js +8 -5
- package/dist/editor/components/SidebarCollapserControls.js +22 -9
- package/dist/editor/components/SidebarRenderButton.d.ts +6 -0
- package/dist/editor/components/{RenderToolbarIcon.js → SidebarRenderButton.js} +27 -41
- package/dist/editor/components/Spinner.d.ts +5 -0
- package/dist/editor/components/Spinner.js +41 -0
- package/dist/editor/components/Tabs/index.js +12 -14
- package/dist/editor/components/Timeline/Timeline.js +3 -1
- package/dist/editor/components/Timeline/TimelinePlayCursorSyncer.js +4 -3
- package/dist/editor/components/Timeline/TimelineSequence.js +8 -6
- package/dist/editor/components/TimelineInOutToggle.js +2 -4
- package/dist/editor/components/TopPanel.js +2 -2
- package/dist/editor/components/UpdateCheck.js +2 -1
- package/dist/editor/components/get-zod-if-possible.d.ts +3 -3
- package/dist/editor/components/get-zod-if-possible.js +11 -11
- package/dist/editor/helpers/calculate-timeline.js +1 -1
- package/dist/editor/helpers/client-id.d.ts +2 -2
- package/dist/editor/helpers/client-id.js +5 -5
- package/dist/editor/helpers/colors.d.ts +4 -2
- package/dist/editor/helpers/colors.js +4 -2
- package/dist/editor/helpers/get-timeline-sequence-layout.d.ts +2 -2
- package/dist/editor/helpers/is-composition-still.d.ts +3 -2
- package/dist/editor/helpers/is-current-selected-still.js +3 -4
- package/dist/editor/helpers/use-file-existence.js +1 -1
- package/dist/editor/helpers/use-menu-structure.js +1 -1
- package/dist/editor/icons/media-volume.js +2 -1
- package/dist/editor/icons/render.d.ts +1 -0
- package/dist/editor/icons/render.js +1 -1
- package/dist/editor/state/modals.d.ts +3 -1
- package/dist/entry-point.js +17 -17
- package/dist/event-source-events.d.ts +2 -0
- package/dist/event-source.js +2 -2
- package/dist/ffmpeg.js +14 -5
- package/dist/file-watcher.js +5 -5
- package/dist/get-cli-options.d.ts +3 -3
- package/dist/get-cli-options.js +4 -4
- package/dist/get-composition-id.d.ts +14 -2
- package/dist/get-composition-id.js +32 -8
- package/dist/get-composition-with-dimension-override.d.ts +13 -2
- package/dist/get-composition-with-dimension-override.js +12 -2
- package/dist/get-config-file-name.js +6 -6
- package/dist/get-env.js +10 -10
- package/dist/get-filename.js +1 -0
- package/dist/get-input-props.d.ts +1 -1
- package/dist/get-input-props.js +9 -9
- package/dist/get-network-address.js +2 -2
- package/dist/handle-common-errors.d.ts +2 -1
- package/dist/handle-common-errors.js +2 -2
- package/dist/index.d.ts +41 -19
- package/dist/index.js +9 -6
- package/dist/list-of-remotion-packages.js +2 -1
- package/dist/load-config.js +8 -8
- package/dist/log.d.ts +5 -5
- package/dist/log.js +3 -42
- package/dist/parse-command-line.d.ts +1 -0
- package/dist/preview-server/api-types.d.ts +3 -3
- package/dist/preview-server/dev-middleware/compatible-api.d.ts +2 -2
- package/dist/preview-server/dev-middleware/middleware.d.ts +1 -1
- package/dist/preview-server/dev-middleware/middleware.js +7 -7
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/dist/preview-server/dev-middleware/setup-hooks.js +2 -2
- package/dist/preview-server/error-overlay/react-overlay/utils/get-file-source.js +5 -5
- package/dist/preview-server/error-overlay/react-overlay/utils/open-in-editor.js +17 -17
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.d.ts +2 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +18 -0
- package/dist/preview-server/error-overlay/remotion-overlay/CodeFrame.js +30 -12
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorDisplay.js +5 -2
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorLoader.js +5 -5
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.d.ts +1 -0
- package/dist/preview-server/error-overlay/remotion-overlay/ErrorTitle.js +4 -3
- package/dist/preview-server/error-overlay/remotion-overlay/HelpLink.js +2 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Overlay.js +1 -1
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.d.ts +4 -0
- package/dist/preview-server/error-overlay/remotion-overlay/Retry.js +9 -0
- package/dist/preview-server/file-existence-watchers.js +3 -3
- package/dist/preview-server/get-absolute-public-dir.js +3 -3
- package/dist/preview-server/get-package-manager.js +3 -3
- package/dist/preview-server/handler.d.ts +1 -1
- package/dist/preview-server/hot-middleware/index.d.ts +1 -1
- package/dist/preview-server/hot-middleware/index.js +2 -2
- package/dist/preview-server/live-events.d.ts +1 -1
- package/dist/preview-server/parse-body.d.ts +1 -1
- package/dist/preview-server/project-info.js +5 -5
- package/dist/preview-server/public-folder.js +8 -8
- package/dist/preview-server/render-queue/job.d.ts +11 -2
- package/dist/preview-server/render-queue/make-retry-payload.js +5 -1
- package/dist/preview-server/render-queue/open-directory-in-finder.js +8 -8
- package/dist/preview-server/render-queue/process-still.js +1 -0
- package/dist/preview-server/render-queue/queue.js +4 -4
- package/dist/preview-server/routes/can-update-default-props.js +3 -2
- package/dist/preview-server/routes/update-default-props.d.ts +2 -2
- package/dist/preview-server/routes/update-default-props.js +26 -15
- package/dist/preview-server/routes.d.ts +3 -2
- package/dist/preview-server/routes.js +10 -10
- package/dist/preview-server/serve-static.d.ts +1 -1
- package/dist/preview-server/serve-static.js +7 -7
- package/dist/preview-server/start-server.js +3 -3
- package/dist/preview.js +6 -4
- package/dist/print-error.d.ts +2 -1
- package/dist/print-error.js +8 -5
- package/dist/print-help.js +1 -1
- package/dist/progress-bar.d.ts +5 -4
- package/dist/progress-bar.js +42 -29
- package/dist/render-flows/render.d.ts +1 -1
- package/dist/render-flows/render.js +62 -35
- package/dist/render-flows/still.d.ts +3 -2
- package/dist/render-flows/still.js +34 -28
- package/dist/resolve-from.js +5 -5
- package/dist/setup-cache.d.ts +2 -1
- package/dist/setup-cache.js +10 -6
- package/dist/should-use-non-overlaying-logger.d.ts +4 -0
- package/dist/should-use-non-overlaying-logger.js +12 -0
- package/dist/show-compositions-picker.d.ts +8 -0
- package/dist/show-compositions-picker.js +51 -0
- package/dist/still.js +1 -0
- package/dist/studio.d.ts +1 -0
- package/dist/studio.js +140 -0
- package/dist/upgrade.js +2 -2
- package/dist/user-passed-output-location.d.ts +3 -2
- package/dist/user-passed-output-location.js +10 -5
- package/dist/versions.js +2 -2
- package/dist/watch-root-file.d.ts +1 -0
- package/dist/watch-root-file.js +22 -0
- package/package.json +89 -88
- package/styles/styles.css +4 -5
- package/dist/editor/components/CollapsableOptions.d.ts +0 -6
- package/dist/editor/components/CollapsableOptions.js +0 -35
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.d.ts +0 -10
- 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/RenderToolbarIcon.d.ts +0 -2
- package/dist/editor/icons/RenderStillIcon.d.ts +0 -3
- package/dist/editor/icons/RenderStillIcon.js +0 -8
|
@@ -4,13 +4,14 @@ exports.MutedSetting = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const Checkbox_1 = require("../Checkbox");
|
|
7
|
+
const layout_1 = require("../layout");
|
|
7
8
|
const InfoBubble_1 = require("./InfoBubble");
|
|
8
|
-
const
|
|
9
|
+
const layout_2 = require("./layout");
|
|
9
10
|
const OptionExplainer_1 = require("./OptionExplainer");
|
|
10
11
|
const MutedSetting = ({ muted, setMuted, enforceAudioTrack, hint }) => {
|
|
11
12
|
const onMutedChanged = (0, react_1.useCallback)((e) => {
|
|
12
13
|
setMuted(e.target.checked);
|
|
13
14
|
}, [setMuted]);
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style:
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Muted", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(InfoBubble_1.InfoBubble, { title: "Learn more about this option", children: (0, jsx_runtime_1.jsx)(OptionExplainer_1.OptionExplainer, { option: hint }) })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.25 }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: muted, disabled: enforceAudioTrack && !muted, onChange: onMutedChanged }) })] }));
|
|
15
16
|
};
|
|
16
17
|
exports.MutedSetting = MutedSetting;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OptionExplainer = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const colors_1 = require("../../helpers/colors");
|
|
5
6
|
const layout_1 = require("../layout");
|
|
6
7
|
const MenuDivider_1 = require("../Menu/MenuDivider");
|
|
7
8
|
const CliCopyButton_1 = require("./CliCopyButton");
|
|
@@ -9,10 +10,11 @@ const container = {
|
|
|
9
10
|
fontSize: 14,
|
|
10
11
|
paddingTop: 10,
|
|
11
12
|
paddingBottom: 10,
|
|
13
|
+
backgroundColor: colors_1.INPUT_BACKGROUND,
|
|
12
14
|
};
|
|
13
15
|
const padding = {
|
|
14
|
-
paddingLeft:
|
|
15
|
-
paddingRight:
|
|
16
|
+
paddingLeft: 20,
|
|
17
|
+
paddingRight: 20,
|
|
16
18
|
};
|
|
17
19
|
const title = {
|
|
18
20
|
fontSize: 14,
|
|
@@ -26,6 +28,7 @@ const link = {
|
|
|
26
28
|
maxWidth: 200,
|
|
27
29
|
color: '#0b84f3',
|
|
28
30
|
wordWrap: 'break-word',
|
|
31
|
+
textDecoration: 'none',
|
|
29
32
|
};
|
|
30
33
|
const infoRow = {
|
|
31
34
|
...padding,
|
|
@@ -39,7 +42,15 @@ const infoRowLabel = {
|
|
|
39
42
|
fontSize: 14,
|
|
40
43
|
color: 'white',
|
|
41
44
|
};
|
|
45
|
+
const flexSpacer = {
|
|
46
|
+
display: 'flex',
|
|
47
|
+
flex: 1,
|
|
48
|
+
};
|
|
49
|
+
const copyWrapper = {
|
|
50
|
+
display: 'flex',
|
|
51
|
+
justifyContent: 'flex-end',
|
|
52
|
+
};
|
|
42
53
|
const OptionExplainer = ({ option }) => {
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: "__remotion-info-button-container", children: [(0, jsx_runtime_1.jsxs)("div", { style: padding, children: [(0, jsx_runtime_1.
|
|
54
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: "__remotion-info-button-container", children: [(0, jsx_runtime_1.jsxs)("div", { style: padding, children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("strong", { style: title, children: option.name }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("a", { style: link, href: option.docLink, target: "_blank", children: "Docs" })] }), (0, jsx_runtime_1.jsx)("div", { style: description, children: option.description })] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 0.5, block: true }), (0, jsx_runtime_1.jsx)(MenuDivider_1.MenuDivider, {}), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 0.5, block: true }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: infoRow, children: [(0, jsx_runtime_1.jsx)("div", { style: infoRowLabel, children: "CLI flag" }), (0, jsx_runtime_1.jsx)("div", { style: flexSpacer }), (0, jsx_runtime_1.jsx)("code", { children: option.cliFlag }), (0, jsx_runtime_1.jsx)("div", { style: copyWrapper, children: (0, jsx_runtime_1.jsx)(CliCopyButton_1.CliCopyButton, { valueToCopy: option.cliFlag }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: infoRow, children: [(0, jsx_runtime_1.jsx)("div", { style: infoRowLabel, children: "Node.JS option" }), (0, jsx_runtime_1.jsx)("div", { style: flexSpacer }), (0, jsx_runtime_1.jsx)("code", { children: option.ssrName }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 3.75 })] }), (0, jsx_runtime_1.jsx)("div", { style: infoRow })] })] }));
|
|
44
55
|
};
|
|
45
56
|
exports.OptionExplainer = OptionExplainer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AudioCodec, Codec, OpenGlRenderer, PixelFormat, ProResProfile, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { RenderType } from './RenderModalAdvanced';
|
|
4
|
-
|
|
4
|
+
declare type RenderModalProps = {
|
|
5
5
|
compositionId: string;
|
|
6
6
|
initialFrame: number;
|
|
7
7
|
initialVideoImageFormat: VideoImageFormat;
|
|
@@ -31,5 +31,9 @@ export declare const RenderModal: React.FC<{
|
|
|
31
31
|
initialGl: OpenGlRenderer | null;
|
|
32
32
|
initialIgnoreCertificateErrors: boolean;
|
|
33
33
|
initialHeadless: boolean;
|
|
34
|
-
defaultProps: unknown
|
|
35
|
-
|
|
34
|
+
defaultProps: Record<string, unknown>;
|
|
35
|
+
inFrameMark: number | null;
|
|
36
|
+
outFrameMark: number | null;
|
|
37
|
+
};
|
|
38
|
+
export declare const RenderModalWithLoader: React.FC<RenderModalProps>;
|
|
39
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RenderModalWithLoader = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const client_1 = require("@remotion/renderer/client");
|
|
6
6
|
const react_1 = require("react");
|
|
@@ -16,21 +16,25 @@ const file_1 = require("../../icons/file");
|
|
|
16
16
|
const frame_1 = require("../../icons/frame");
|
|
17
17
|
const gear_1 = require("../../icons/gear");
|
|
18
18
|
const gif_1 = require("../../icons/gif");
|
|
19
|
+
const colors_1 = require("../../helpers/colors");
|
|
19
20
|
const modals_1 = require("../../state/modals");
|
|
20
21
|
const sidebar_1 = require("../../state/sidebar");
|
|
22
|
+
const layout_1 = require("../layout");
|
|
21
23
|
const is_menu_item_1 = require("../Menu/is-menu-item");
|
|
24
|
+
const styles_1 = require("../Menu/styles");
|
|
22
25
|
const ModalContainer_1 = require("../ModalContainer");
|
|
23
26
|
const ModalHeader_1 = require("../ModalHeader");
|
|
24
27
|
const actions_1 = require("../RenderQueue/actions");
|
|
25
28
|
const RightPanel_1 = require("../RightPanel");
|
|
26
29
|
const SegmentedControl_1 = require("../SegmentedControl");
|
|
30
|
+
const Spinner_1 = require("../Spinner");
|
|
27
31
|
const vertical_1 = require("../Tabs/vertical");
|
|
28
32
|
const CrfSetting_1 = require("./CrfSetting");
|
|
33
|
+
const DataEditor_1 = require("./DataEditor");
|
|
29
34
|
const out_name_checker_1 = require("./out-name-checker");
|
|
30
35
|
const RenderModalAdvanced_1 = require("./RenderModalAdvanced");
|
|
31
36
|
const RenderModalAudio_1 = require("./RenderModalAudio");
|
|
32
37
|
const RenderModalBasic_1 = require("./RenderModalBasic");
|
|
33
|
-
const RenderModalData_1 = require("./RenderModalData");
|
|
34
38
|
const RenderModalGif_1 = require("./RenderModalGif");
|
|
35
39
|
const RenderModalPicture_1 = require("./RenderModalPicture");
|
|
36
40
|
const initialState = { type: 'idle' };
|
|
@@ -62,12 +66,12 @@ const container = {
|
|
|
62
66
|
const rightPanel = {
|
|
63
67
|
display: 'flex',
|
|
64
68
|
width: '100%',
|
|
65
|
-
height: 600,
|
|
66
69
|
};
|
|
67
70
|
const horizontalLayout = {
|
|
68
71
|
display: 'flex',
|
|
69
72
|
flexDirection: 'row',
|
|
70
73
|
overflowY: 'auto',
|
|
74
|
+
flex: 1,
|
|
71
75
|
};
|
|
72
76
|
const leftSidebar = {
|
|
73
77
|
padding: 12,
|
|
@@ -97,7 +101,7 @@ const icon = {
|
|
|
97
101
|
height: 20,
|
|
98
102
|
};
|
|
99
103
|
const buttonStyle = {
|
|
100
|
-
backgroundColor:
|
|
104
|
+
backgroundColor: colors_1.BLUE,
|
|
101
105
|
color: 'white',
|
|
102
106
|
};
|
|
103
107
|
const flexer = {
|
|
@@ -107,12 +111,10 @@ const outer = {
|
|
|
107
111
|
width: (0, ModalContainer_1.getMaxModalWidth)(1000),
|
|
108
112
|
height: (0, ModalContainer_1.getMaxModalHeight)(640),
|
|
109
113
|
overflow: 'hidden',
|
|
114
|
+
display: 'flex',
|
|
115
|
+
flexDirection: 'column',
|
|
110
116
|
};
|
|
111
|
-
const RenderModal = ({
|
|
112
|
-
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
113
|
-
const onQuit = (0, react_1.useCallback)(() => {
|
|
114
|
-
setSelectedModal(null);
|
|
115
|
-
}, [setSelectedModal]);
|
|
117
|
+
const RenderModal = ({ initialFrame, initialVideoImageFormat, initialStillImageFormat, initialJpegQuality, initialScale, initialVerbose, initialOutName, initialRenderType, initialVideoCodecForAudioTab, initialVideoCodecForVideoTab, initialConcurrency, maxConcurrency, minConcurrency, initialMuted, initialEnforceAudioTrack, initialProResProfile, initialPixelFormat, initialVideoBitrate, initialAudioBitrate, initialEveryNthFrame, initialNumberOfGifLoops, initialDelayRenderTimeout, initialAudioCodec, initialEnvVariables, initialDisableWebSecurity, initialGl, initialHeadless, initialIgnoreCertificateErrors, defaultProps, inFrameMark, outFrameMark, onClose, resolvedComposition, unresolvedComposition, }) => {
|
|
116
118
|
const isMounted = (0, react_1.useRef)(true);
|
|
117
119
|
const [state, dispatch] = (0, react_1.useReducer)(reducer, initialState);
|
|
118
120
|
const [unclampedFrame, setFrame] = (0, react_1.useState)(() => initialFrame);
|
|
@@ -145,11 +147,11 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
145
147
|
};
|
|
146
148
|
}, [headless, disableWebSecurity, ignoreCertificateErrors, openGlOption]);
|
|
147
149
|
const [outName, setOutName] = (0, react_1.useState)(() => initialOutName);
|
|
148
|
-
const [endFrameOrNull, setEndFrame] = (0, react_1.useState)(() => null);
|
|
149
|
-
const [startFrameOrNull, setStartFrame] = (0, react_1.useState)(() => null);
|
|
150
|
+
const [endFrameOrNull, setEndFrame] = (0, react_1.useState)(() => outFrameMark !== null && outFrameMark !== void 0 ? outFrameMark : null);
|
|
151
|
+
const [startFrameOrNull, setStartFrame] = (0, react_1.useState)(() => inFrameMark !== null && inFrameMark !== void 0 ? inFrameMark : null);
|
|
150
152
|
const [proResProfileSetting, setProResProfile] = (0, react_1.useState)(() => initialProResProfile);
|
|
151
153
|
const [pixelFormat, setPixelFormat] = (0, react_1.useState)(() => initialPixelFormat);
|
|
152
|
-
const [
|
|
154
|
+
const [preferredQualityControlType, setQualityControl] = (0, react_1.useState)(() => initialVideoBitrate === null ? 'crf' : 'bitrate');
|
|
153
155
|
const [shouldHaveCustomTargetAudioBitrate, setShouldHaveCustomTargetAudioBitrate,] = (0, react_1.useState)(() => initialAudioBitrate !== null);
|
|
154
156
|
const [customTargetAudioBitrate, setCustomTargetAudioBitrateValue] = (0, react_1.useState)(() => initialAudioBitrate !== null && initialAudioBitrate !== void 0 ? initialAudioBitrate : '320K');
|
|
155
157
|
const [customTargetVideoBitrate, setCustomTargetVideoBitrateValue] = (0, react_1.useState)(() => initialVideoBitrate !== null && initialVideoBitrate !== void 0 ? initialVideoBitrate : '1M');
|
|
@@ -174,13 +176,35 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
174
176
|
}
|
|
175
177
|
return null;
|
|
176
178
|
}, [customTargetAudioBitrate, shouldHaveCustomTargetAudioBitrate]);
|
|
179
|
+
const supportsCrf = client_1.BrowserSafeApis.codecSupportsCrf(codec);
|
|
180
|
+
const supportsVideoBitrate = client_1.BrowserSafeApis.codecSupportsVideoBitrate(codec);
|
|
181
|
+
const supportsBothQualityControls = (0, react_1.useMemo)(() => {
|
|
182
|
+
return supportsCrf && supportsVideoBitrate;
|
|
183
|
+
}, [supportsCrf, supportsVideoBitrate]);
|
|
184
|
+
const qualityControlType = (0, react_1.useMemo)(() => {
|
|
185
|
+
if (supportsBothQualityControls) {
|
|
186
|
+
return preferredQualityControlType;
|
|
187
|
+
}
|
|
188
|
+
if (supportsCrf) {
|
|
189
|
+
return 'crf';
|
|
190
|
+
}
|
|
191
|
+
if (supportsVideoBitrate) {
|
|
192
|
+
return 'bitrate';
|
|
193
|
+
}
|
|
194
|
+
return null;
|
|
195
|
+
}, [
|
|
196
|
+
preferredQualityControlType,
|
|
197
|
+
supportsBothQualityControls,
|
|
198
|
+
supportsCrf,
|
|
199
|
+
supportsVideoBitrate,
|
|
200
|
+
]);
|
|
177
201
|
const videoBitrate = (0, react_1.useMemo)(() => {
|
|
178
202
|
if (qualityControlType === 'bitrate') {
|
|
179
203
|
return customTargetVideoBitrate;
|
|
180
204
|
}
|
|
181
205
|
return null;
|
|
182
206
|
}, [customTargetVideoBitrate, qualityControlType]);
|
|
183
|
-
const { crf, maxCrf, minCrf, setCrf
|
|
207
|
+
const { crf, maxCrf, minCrf, setCrf } = (0, CrfSetting_1.useCrfState)(codec);
|
|
184
208
|
const dispatchIfMounted = (0, react_1.useCallback)((payload) => {
|
|
185
209
|
if (isMounted.current === false)
|
|
186
210
|
return;
|
|
@@ -196,6 +220,9 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
196
220
|
if (renderMode === 'video') {
|
|
197
221
|
return enforceAudioTrackState;
|
|
198
222
|
}
|
|
223
|
+
if (renderMode === 'audio') {
|
|
224
|
+
return enforceAudioTrackState;
|
|
225
|
+
}
|
|
199
226
|
return false;
|
|
200
227
|
}, [enforceAudioTrackState, renderMode]);
|
|
201
228
|
const proResProfile = (0, react_1.useMemo)(() => {
|
|
@@ -204,25 +231,13 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
204
231
|
}
|
|
205
232
|
return null;
|
|
206
233
|
}, [codec, proResProfileSetting, renderMode]);
|
|
207
|
-
const { compositions } = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
208
|
-
const currentComposition = (0, react_1.useMemo)(() => {
|
|
209
|
-
for (const composition of compositions) {
|
|
210
|
-
if (composition.id === compositionId) {
|
|
211
|
-
return composition;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return null;
|
|
215
|
-
}, [compositionId, compositions]);
|
|
216
|
-
if (currentComposition === null) {
|
|
217
|
-
throw new Error('This composition does not exist');
|
|
218
|
-
}
|
|
219
234
|
const [inputProps, setInputProps] = (0, react_1.useState)(() => defaultProps);
|
|
220
235
|
const endFrame = (0, react_1.useMemo)(() => {
|
|
221
236
|
if (endFrameOrNull === null) {
|
|
222
|
-
return
|
|
237
|
+
return resolvedComposition.durationInFrames - 1;
|
|
223
238
|
}
|
|
224
|
-
return Math.max(0, Math.min(
|
|
225
|
-
}, [
|
|
239
|
+
return Math.max(0, Math.min(resolvedComposition.durationInFrames - 1, endFrameOrNull));
|
|
240
|
+
}, [resolvedComposition.durationInFrames, endFrameOrNull]);
|
|
226
241
|
const startFrame = (0, react_1.useMemo)(() => {
|
|
227
242
|
if (startFrameOrNull === null) {
|
|
228
243
|
return 0;
|
|
@@ -231,8 +246,8 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
231
246
|
}, [endFrame, startFrameOrNull]);
|
|
232
247
|
const frame = (0, react_1.useMemo)(() => {
|
|
233
248
|
const parsed = Math.floor(unclampedFrame);
|
|
234
|
-
return Math.max(0, Math.min(
|
|
235
|
-
}, [
|
|
249
|
+
return Math.max(0, Math.min(resolvedComposition.durationInFrames - 1, parsed));
|
|
250
|
+
}, [resolvedComposition.durationInFrames, unclampedFrame]);
|
|
236
251
|
const getStringBeforeSuffix = (0, react_1.useCallback)((fileName) => {
|
|
237
252
|
const dotPos = fileName.lastIndexOf('.');
|
|
238
253
|
const bitBeforeDot = fileName.substring(0, dotPos);
|
|
@@ -299,7 +314,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
299
314
|
(_a = RightPanel_1.rightSidebarTabs.current) === null || _a === void 0 ? void 0 : _a.selectRendersPanel();
|
|
300
315
|
dispatchIfMounted({ type: 'start' });
|
|
301
316
|
(0, actions_1.addStillRenderJob)({
|
|
302
|
-
compositionId,
|
|
317
|
+
compositionId: resolvedComposition.id,
|
|
303
318
|
outName,
|
|
304
319
|
imageFormat: stillImageFormat,
|
|
305
320
|
jpegQuality: stillImageFormat === 'jpeg' ? jpegQuality : null,
|
|
@@ -313,7 +328,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
313
328
|
})
|
|
314
329
|
.then(() => {
|
|
315
330
|
dispatchIfMounted({ type: 'succeed' });
|
|
316
|
-
|
|
331
|
+
onClose();
|
|
317
332
|
})
|
|
318
333
|
.catch(() => {
|
|
319
334
|
dispatchIfMounted({ type: 'fail' });
|
|
@@ -321,7 +336,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
321
336
|
}, [
|
|
322
337
|
setSidebarCollapsedState,
|
|
323
338
|
dispatchIfMounted,
|
|
324
|
-
|
|
339
|
+
resolvedComposition.id,
|
|
325
340
|
outName,
|
|
326
341
|
stillImageFormat,
|
|
327
342
|
jpegQuality,
|
|
@@ -332,7 +347,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
332
347
|
delayRenderTimeout,
|
|
333
348
|
envVariables,
|
|
334
349
|
inputProps,
|
|
335
|
-
|
|
350
|
+
onClose,
|
|
336
351
|
]);
|
|
337
352
|
const [everyNthFrameSetting, setEveryNthFrameSetting] = (0, react_1.useState)(() => initialEveryNthFrame);
|
|
338
353
|
const everyNthFrame = (0, react_1.useMemo)(() => {
|
|
@@ -349,7 +364,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
349
364
|
(_a = RightPanel_1.rightSidebarTabs.current) === null || _a === void 0 ? void 0 : _a.selectRendersPanel();
|
|
350
365
|
dispatchIfMounted({ type: 'start' });
|
|
351
366
|
(0, actions_1.addVideoRenderJob)({
|
|
352
|
-
compositionId,
|
|
367
|
+
compositionId: resolvedComposition.id,
|
|
353
368
|
outName,
|
|
354
369
|
imageFormat: videoImageFormat,
|
|
355
370
|
jpegQuality: stillImageFormat === 'jpeg' ? jpegQuality : null,
|
|
@@ -377,7 +392,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
377
392
|
})
|
|
378
393
|
.then(() => {
|
|
379
394
|
dispatchIfMounted({ type: 'succeed' });
|
|
380
|
-
|
|
395
|
+
onClose();
|
|
381
396
|
})
|
|
382
397
|
.catch(() => {
|
|
383
398
|
dispatchIfMounted({ type: 'fail' });
|
|
@@ -385,7 +400,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
385
400
|
}, [
|
|
386
401
|
setSidebarCollapsedState,
|
|
387
402
|
dispatchIfMounted,
|
|
388
|
-
|
|
403
|
+
resolvedComposition.id,
|
|
389
404
|
outName,
|
|
390
405
|
videoImageFormat,
|
|
391
406
|
stillImageFormat,
|
|
@@ -412,7 +427,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
412
427
|
chromiumOptions,
|
|
413
428
|
envVariables,
|
|
414
429
|
inputProps,
|
|
415
|
-
|
|
430
|
+
onClose,
|
|
416
431
|
]);
|
|
417
432
|
(0, react_1.useEffect)(() => {
|
|
418
433
|
return () => {
|
|
@@ -491,7 +506,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
491
506
|
videoCodecForVideoTab,
|
|
492
507
|
]);
|
|
493
508
|
const renderTabOptions = (0, react_1.useMemo)(() => {
|
|
494
|
-
if ((
|
|
509
|
+
if ((resolvedComposition === null || resolvedComposition === void 0 ? void 0 : resolvedComposition.durationInFrames) < 2) {
|
|
495
510
|
return [
|
|
496
511
|
{
|
|
497
512
|
label: 'Still',
|
|
@@ -529,7 +544,7 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
529
544
|
selected: renderMode === 'audio',
|
|
530
545
|
},
|
|
531
546
|
];
|
|
532
|
-
}, [
|
|
547
|
+
}, [resolvedComposition === null || resolvedComposition === void 0 ? void 0 : resolvedComposition.durationInFrames, renderMode, setRenderMode]);
|
|
533
548
|
const outnameValidation = (0, out_name_checker_1.validateOutnameGui)({
|
|
534
549
|
outName,
|
|
535
550
|
codec,
|
|
@@ -563,13 +578,57 @@ const RenderModal = ({ compositionId, initialFrame, initialVideoImageFormat, ini
|
|
|
563
578
|
triggerIfInputFieldFocused: false,
|
|
564
579
|
});
|
|
565
580
|
}, [registerKeybinding, trigger]);
|
|
566
|
-
return ((0, jsx_runtime_1.
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
581
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: outer, children: [(0, jsx_runtime_1.jsx)(ModalHeader_1.NewCompHeader, { title: `Render ${resolvedComposition.id}` }), (0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(SegmentedControl_1.SegmentedControl, { items: renderTabOptions, needsWrapping: false }), (0, jsx_runtime_1.jsx)("div", { style: flexer }), (0, jsx_runtime_1.jsxs)(Button_1.Button, { autoFocus: true, onClick: trigger, disabled: renderDisabled, style: {
|
|
582
|
+
...buttonStyle,
|
|
583
|
+
backgroundColor: outnameValidation.valid ? colors_1.BLUE : colors_1.BLUE_DISABLED,
|
|
584
|
+
}, children: [state.type === 'idle' ? `Render ${renderMode}` : 'Rendering...', (0, jsx_runtime_1.jsx)(ShortcutHint_1.ShortcutHint, { keyToPress: "\u21B5", cmdOrCtrl: true })] })] }), (0, jsx_runtime_1.jsxs)("div", { style: horizontalLayout, children: [(0, jsx_runtime_1.jsxs)("div", { style: leftSidebar, children: [shownTabs.includes('general') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'general', onClick: () => setTab('general'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(file_1.FileIcon, { style: icon }) }), "General"] })) : null, shownTabs.includes('data') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'data', onClick: () => setTab('data'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(data_1.DataIcon, { style: icon }) }), "Input Props"] })) : null, shownTabs.includes('picture') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'picture', onClick: () => setTab('picture'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(frame_1.PicIcon, { style: icon }) }), "Picture"] })) : null, shownTabs.includes('audio') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'audio', onClick: () => setTab('audio'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(audio_1.AudioIcon, { style: icon }) }), "Audio"] })) : null, shownTabs.includes('gif') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'gif', onClick: () => setTab('gif'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(gif_1.GifIcon, { style: icon }) }), "GIF"] })) : null, shownTabs.includes('advanced') ? ((0, jsx_runtime_1.jsxs)(vertical_1.VerticalTab, { style: horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), children: [(0, jsx_runtime_1.jsx)("div", { style: iconContainer, children: (0, jsx_runtime_1.jsx)(gear_1.GearIcon, { style: icon }) }), "Other"] })) : null] }), (0, jsx_runtime_1.jsx)("div", { style: rightPanel, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: tab === 'general' ? ((0, jsx_runtime_1.jsx)(RenderModalBasic_1.RenderModalBasic, { codec: codec, resolvedComposition: resolvedComposition, frame: frame, imageFormatOptions: imageFormatOptions, outName: outName, proResProfile: proResProfile, renderMode: renderMode, setVideoCodec: setCodec, setFrame: setFrame, setOutName: setOutName, setProResProfile: setProResProfile, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, startFrame: startFrame, validationMessage: outnameValidation.valid ? null : outnameValidation.error.message })) : tab === 'picture' ? ((0, jsx_runtime_1.jsx)(RenderModalPicture_1.RenderModalPicture, { renderMode: renderMode, scale: scale, setScale: setScale, pixelFormat: pixelFormat, setPixelFormat: setPixelFormat, imageFormatOptions: imageFormatOptions, crf: crf, setCrf: setCrf, customTargetVideoBitrate: customTargetVideoBitrate, maxCrf: maxCrf, minCrf: minCrf, jpegQuality: jpegQuality, qualityControlType: qualityControlType, setJpegQuality: setJpegQuality, setCustomTargetVideoBitrateValue: setCustomTargetVideoBitrateValue, setQualityControl: setQualityControl, videoImageFormat: videoImageFormat, stillImageFormat: stillImageFormat, shouldDisplayQualityControlPicker: supportsBothQualityControls })) : tab === 'audio' ? ((0, jsx_runtime_1.jsx)(RenderModalAudio_1.RenderModalAudio, { muted: muted, renderMode: renderMode, setMuted: setMuted, codec: codec, audioCodec: audioCodec, setAudioCodec: setAudioCodec, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrackState: setEnforceAudioTrackState, customTargetAudioBitrate: customTargetAudioBitrate, setCustomTargetAudioBitrateValue: setCustomTargetAudioBitrateValue, setShouldHaveCustomTargetAudioBitrate: setShouldHaveCustomTargetAudioBitrate, shouldHaveCustomTargetAudioBitrate: shouldHaveCustomTargetAudioBitrate })) : tab === 'gif' ? ((0, jsx_runtime_1.jsx)(RenderModalGif_1.RenderModalGif, { everyNthFrame: everyNthFrame, limitNumberOfGifLoops: limitNumberOfGifLoops, numberOfGifLoopsSetting: numberOfGifLoopsSetting, setEveryNthFrameSetting: setEveryNthFrameSetting, setLimitNumberOfGifLoops: setLimitNumberOfGifLoops, setNumberOfGifLoopsSetting: setNumberOfGifLoopsSetting })) : tab === 'data' ? ((0, jsx_runtime_1.jsx)(DataEditor_1.DataEditor, { inputProps: inputProps, setInputProps: setInputProps, unresolvedComposition: unresolvedComposition, compact: false, mayShowSaveButton: false, propsEditType: "input-props" })) : ((0, jsx_runtime_1.jsx)(RenderModalAdvanced_1.RenderModalAdvanced, { concurrency: concurrency, maxConcurrency: maxConcurrency, minConcurrency: minConcurrency, renderMode: renderMode, setConcurrency: setConcurrency, setVerboseLogging: setVerboseLogging, verbose: verbose, delayRenderTimeout: delayRenderTimeout, setDelayRenderTimeout: setDelayRenderTimeout, disallowParallelEncoding: disallowParallelEncoding, setDisallowParallelEncoding: setDisallowParallelEncoding, setDisableWebSecurity: setDisableWebSecurity, setIgnoreCertificateErrors: setIgnoreCertificateErrors, setHeadless: setHeadless, headless: headless, ignoreCertificateErrors: ignoreCertificateErrors, disableWebSecurity: disableWebSecurity, openGlOption: openGlOption, setOpenGlOption: setOpenGlOption, setEnvVariables: setEnvVariables, envVariables: envVariables })) })] })] }));
|
|
585
|
+
};
|
|
586
|
+
const RenderModalWithLoader = (props) => {
|
|
587
|
+
const { setSelectedModal } = (0, react_1.useContext)(modals_1.ModalsContext);
|
|
588
|
+
const onQuit = (0, react_1.useCallback)(() => {
|
|
589
|
+
setSelectedModal(null);
|
|
590
|
+
}, [setSelectedModal]);
|
|
591
|
+
(0, react_1.useEffect)(() => {
|
|
592
|
+
const { current } = remotion_1.Internals.resolveCompositionsRef;
|
|
593
|
+
if (!current) {
|
|
594
|
+
throw new Error('resolveCompositionsRef');
|
|
595
|
+
}
|
|
596
|
+
current.setCurrentRenderModalComposition(props.compositionId);
|
|
597
|
+
return () => {
|
|
598
|
+
current.setCurrentRenderModalComposition(null);
|
|
599
|
+
};
|
|
600
|
+
}, [props.compositionId]);
|
|
601
|
+
const resolved = remotion_1.Internals.useResolvedVideoConfig(props.compositionId);
|
|
602
|
+
const unresolvedContext = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
|
|
603
|
+
const unresolved = unresolvedContext.compositions.find((c) => props.compositionId === c.id);
|
|
604
|
+
if (!unresolved) {
|
|
605
|
+
throw new Error('Composition not found: ' + props.compositionId);
|
|
606
|
+
}
|
|
607
|
+
if (!resolved) {
|
|
608
|
+
return null;
|
|
609
|
+
}
|
|
610
|
+
if (resolved.type === 'loading') {
|
|
611
|
+
return ((0, jsx_runtime_1.jsx)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: (0, jsx_runtime_1.jsxs)("div", { style: loaderContainer, children: [(0, jsx_runtime_1.jsx)(Spinner_1.Spinner, { duration: 1, size: 30 }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2 }), (0, jsx_runtime_1.jsxs)("div", { style: loaderLabel, children: ["Running ", (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "calculateMetadata()" })] })] }) }));
|
|
612
|
+
}
|
|
613
|
+
if (resolved.type === 'error') {
|
|
614
|
+
return ((0, jsx_runtime_1.jsx)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: (0, jsx_runtime_1.jsxs)("div", { style: loaderContainer, children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 2 }), (0, jsx_runtime_1.jsxs)("div", { style: loaderLabel, children: ["Running ", (0, jsx_runtime_1.jsx)("code", { style: styles_1.inlineCodeSnippet, children: "calculateMetadata()" }), ' ', "yielded an error:"] }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 }), (0, jsx_runtime_1.jsx)("div", { style: loaderLabel, children: resolved.error.message || 'Unknown error' })] }) }));
|
|
615
|
+
}
|
|
616
|
+
return ((0, jsx_runtime_1.jsx)(ModalContainer_1.ModalContainer, { onOutsideClick: onQuit, onEscape: onQuit, children: (0, jsx_runtime_1.jsx)(RenderModal, { unresolvedComposition: unresolved, ...props, onClose: onQuit, resolvedComposition: resolved.result }) }));
|
|
617
|
+
};
|
|
618
|
+
exports.RenderModalWithLoader = RenderModalWithLoader;
|
|
619
|
+
const loaderContainer = {
|
|
620
|
+
paddingTop: 40,
|
|
621
|
+
paddingBottom: 40,
|
|
622
|
+
paddingLeft: 100,
|
|
623
|
+
paddingRight: 100,
|
|
624
|
+
display: 'flex',
|
|
625
|
+
justifyContent: 'center',
|
|
626
|
+
alignItems: 'center',
|
|
627
|
+
flexDirection: 'column',
|
|
628
|
+
};
|
|
629
|
+
const loaderLabel = {
|
|
630
|
+
fontSize: 14,
|
|
631
|
+
color: colors_1.LIGHT_TEXT,
|
|
632
|
+
fontFamily: 'sans-serif',
|
|
633
|
+
lineHeight: 1.5,
|
|
574
634
|
};
|
|
575
|
-
exports.RenderModal = RenderModal;
|
|
@@ -51,10 +51,8 @@ const RenderModalAdvanced = ({ renderMode, maxConcurrency, minConcurrency, setCo
|
|
|
51
51
|
});
|
|
52
52
|
}, [extendedOpenGlOptions, openGlOption, setOpenGlOption]);
|
|
53
53
|
return ((0, jsx_runtime_1.jsxs)("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: [renderMode === 'still' ? null : ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: minConcurrency, max: maxConcurrency, step: 1, name: "Concurrency", formatter: (w) => `${w}x`, onValueChanged: setConcurrency, value: concurrency })), (0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting
|
|
54
|
-
// TODO: Should be right aligned
|
|
55
54
|
// Also appears in packages/renderer/src/validate-puppeteer-timeout.ts
|
|
56
55
|
, {
|
|
57
|
-
// TODO: Should be right aligned
|
|
58
56
|
// Also appears in packages/renderer/src/validate-puppeteer-timeout.ts
|
|
59
57
|
min: 7000, max: 900000, name: "delayRender() timeout", onValueChanged: setDelayRenderTimeout, formatter: (w) => `${w}ms`, step: 1000, value: delayRenderTimeout }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "No parallel encoding" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: disallowParallelEncoding, onChange: onDisallowParallelEncodingChanged }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Verbose logging" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: verbose, onChange: onVerboseLoggingChanged }) })] }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Disable web security" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: disableWebSecurity, onChange: onDisableWebSecurityChanged }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Ignore certificate errors " }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: ignoreCertificateErrors, onChange: onIgnoreCertificatErrors }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Headless mode" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: headless, onChange: onHeadless }) })] }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "OpenGL render backend" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: openGlOptions, selectedId: openGlOption, title: "OpenGl option" }) })] }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {}), (0, jsx_runtime_1.jsx)(RenderModalEnvironmentVariables_1.RenderModalEnvironmentVariables, { envVariables: envVariables, setEnvVariables: setEnvVariables })] }));
|
|
60
58
|
};
|
|
@@ -41,6 +41,6 @@ const RenderModalAudio = ({ muted, setMuted, renderMode, enforceAudioTrack, setE
|
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
}, [codec, setAudioCodec]);
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [renderMode === 'video' && audioCodecOptions(codec).length >= 2 ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Audio Codec" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: audioCodecOptions(codec), selectedId: audioCodec, title: "AudioCodec" }) })] })) : null, renderMode === 'video'
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [renderMode === 'video' && audioCodecOptions(codec).length >= 2 ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Audio Codec" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: audioCodecOptions(codec), selectedId: audioCodec, title: "AudioCodec" }) })] })) : null, renderMode === 'video' ? ((0, jsx_runtime_1.jsx)(MutedSetting_1.MutedSetting, { enforceAudioTrack: enforceAudioTrack, muted: muted, setMuted: setMuted, hint: client_1.BrowserSafeApis.options.muteOption })) : null, (renderMode === 'video' || renderMode === 'audio') && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(EnforceAudioTrackSetting_1.EnforceAudioTrackSetting, { muted: muted, enforceAudioTrack: enforceAudioTrack, setEnforceAudioTrack: setEnforceAudioTrackState, option: client_1.BrowserSafeApis.options.enforceAudioOption }), (0, jsx_runtime_1.jsx)(RenderModalHr_1.RenderModalHr, {})] })), renderMode === 'still' ? null : ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Custom audio bitrate" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: shouldHaveCustomTargetAudioBitrate, onChange: onShouldHaveTargetAudioBitrateChanged }) })] })), shouldHaveCustomTargetAudioBitrate && renderMode !== 'still' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Target audio bitrate" }), (0, jsx_runtime_1.jsx)(InfoBubble_1.InfoBubble, { title: "Learn more about this option", children: (0, jsx_runtime_1.jsx)(OptionExplainer_1.OptionExplainer, { option: client_1.BrowserSafeApis.options.audioBitrateOption }) }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { style: layout_1.input, value: customTargetAudioBitrate, onChange: onTargetAudioBitrateChanged, status: "ok", rightAlign: true }) }) })] })) : null] }));
|
|
45
45
|
};
|
|
46
46
|
exports.RenderModalAudio = RenderModalAudio;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Codec, ProResProfile } from '@remotion/renderer';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TCompMetadata } from 'remotion';
|
|
4
|
+
import type { AnyZodObject } from 'zod';
|
|
4
5
|
import type { SegmentedControlItem } from '../SegmentedControl';
|
|
5
6
|
import type { RenderType } from './RenderModalAdvanced';
|
|
6
7
|
export declare const RenderModalBasic: React.FC<{
|
|
@@ -13,7 +14,7 @@ export declare const RenderModalBasic: React.FC<{
|
|
|
13
14
|
setProResProfile: React.Dispatch<React.SetStateAction<ProResProfile>>;
|
|
14
15
|
frame: number;
|
|
15
16
|
setFrame: React.Dispatch<React.SetStateAction<number>>;
|
|
16
|
-
|
|
17
|
+
resolvedComposition: TCompMetadata<AnyZodObject, Record<string, unknown> | undefined>;
|
|
17
18
|
setOutName: (value: React.SetStateAction<string>) => void;
|
|
18
19
|
setEndFrame: React.Dispatch<React.SetStateAction<number | null>>;
|
|
19
20
|
startFrame: number;
|
|
@@ -7,6 +7,7 @@ const react_1 = require("react");
|
|
|
7
7
|
const prores_labels_1 = require("../../helpers/prores-labels");
|
|
8
8
|
const use_file_existence_1 = require("../../helpers/use-file-existence");
|
|
9
9
|
const Checkmark_1 = require("../../icons/Checkmark");
|
|
10
|
+
const layout_1 = require("../layout");
|
|
10
11
|
const ComboBox_1 = require("../NewComposition/ComboBox");
|
|
11
12
|
const InputDragger_1 = require("../NewComposition/InputDragger");
|
|
12
13
|
const RemInput_1 = require("../NewComposition/RemInput");
|
|
@@ -14,13 +15,13 @@ const SegmentedControl_1 = require("../SegmentedControl");
|
|
|
14
15
|
const FrameRangeSetting_1 = require("./FrameRangeSetting");
|
|
15
16
|
const human_readable_codec_1 = require("./human-readable-codec");
|
|
16
17
|
const InfoBubble_1 = require("./InfoBubble");
|
|
17
|
-
const
|
|
18
|
+
const layout_2 = require("./layout");
|
|
18
19
|
const OptionExplainer_1 = require("./OptionExplainer");
|
|
19
20
|
const RenderModalInput_1 = require("./RenderModalInput");
|
|
20
21
|
const container = {
|
|
21
22
|
flex: 1,
|
|
22
23
|
};
|
|
23
|
-
const RenderModalBasic = ({ renderMode, imageFormatOptions, outName, codec, setVideoCodec: setCodec, proResProfile, setProResProfile, frame, setFrame,
|
|
24
|
+
const RenderModalBasic = ({ renderMode, imageFormatOptions, outName, codec, setVideoCodec: setCodec, proResProfile, setProResProfile, frame, setFrame, resolvedComposition, setOutName, setEndFrame, endFrame, setStartFrame, startFrame, validationMessage, }) => {
|
|
24
25
|
const existence = (0, use_file_existence_1.useFileExistence)(outName);
|
|
25
26
|
const videoCodecOptions = (0, react_1.useMemo)(() => {
|
|
26
27
|
return client_1.BrowserSafeApis.validCodecs
|
|
@@ -74,6 +75,6 @@ const RenderModalBasic = ({ renderMode, imageFormatOptions, outName, codec, setV
|
|
|
74
75
|
const onValueChange = (0, react_1.useCallback)((e) => {
|
|
75
76
|
setOutName(e.target.value);
|
|
76
77
|
}, [setOutName]);
|
|
77
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [renderMode === 'still' ? ((0, jsx_runtime_1.jsxs)("div", { style:
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [renderMode === 'still' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Format" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(SegmentedControl_1.SegmentedControl, { items: imageFormatOptions, needsWrapping: true }) })] })) : ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: ["Codec", (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.5 }), (0, jsx_runtime_1.jsx)(InfoBubble_1.InfoBubble, { title: "Learn more about this option", children: (0, jsx_runtime_1.jsx)(OptionExplainer_1.OptionExplainer, { option: client_1.BrowserSafeApis.options.videoCodecOption }) })] }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { values: videoCodecOptions, selectedId: codec, title: "Codec" }) })] })), renderMode === 'still' && resolvedComposition.durationInFrames > 1 ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "Frame" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: frame, onTextChange: onFrameChanged, placeholder: `0-${resolvedComposition.durationInFrames - 1}`, onValueChange: onFrameSetDirectly, name: "frame", step: 1, min: 0, status: "ok", max: resolvedComposition.durationInFrames - 1, rightAlign: true }) }) })] })) : null, renderMode === 'video' && codec === 'prores' ? ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_2.label, children: "ProRes profile" }), (0, jsx_runtime_1.jsx)("div", { style: layout_2.rightRow, children: (0, jsx_runtime_1.jsx)(ComboBox_1.Combobox, { title: proResProfile, selectedId: proResProfile, values: proResProfileOptions }) })] })) : null, renderMode === 'still' ? null : ((0, jsx_runtime_1.jsx)(FrameRangeSetting_1.FrameRangeSetting, { durationInFrames: resolvedComposition.durationInFrames, endFrame: endFrame, setEndFrame: setEndFrame, setStartFrame: setStartFrame, startFrame: startFrame })), (0, jsx_runtime_1.jsx)(RenderModalInput_1.RenderModalInput, { existence: existence, inputStyle: layout_2.input, outName: outName, onValueChange: onValueChange, validationMessage: validationMessage })] }));
|
|
78
79
|
};
|
|
79
80
|
exports.RenderModalBasic = RenderModalBasic;
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AnyComposition } from 'remotion';
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare type State = {
|
|
4
|
+
str: string;
|
|
5
|
+
value: Record<string, unknown>;
|
|
6
|
+
validJSON: true;
|
|
7
|
+
zodValidation: Zod.SafeParseReturnType<unknown, unknown>;
|
|
8
|
+
} | {
|
|
9
|
+
str: string;
|
|
10
|
+
validJSON: false;
|
|
11
|
+
error: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type PropsEditType = 'input-props' | 'default-props';
|
|
14
|
+
export declare const DataEditor: React.FC<{
|
|
15
|
+
unresolvedComposition: AnyComposition;
|
|
16
|
+
inputProps: Record<string, unknown>;
|
|
17
|
+
setInputProps: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
|
|
7
18
|
compact: boolean;
|
|
8
19
|
mayShowSaveButton: boolean;
|
|
20
|
+
propsEditType: PropsEditType;
|
|
9
21
|
}>;
|