@remotion/cli 3.3.78 → 3.3.80
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/better-opn/index.d.ts +6 -0
- package/dist/better-opn/index.js +202 -0
- package/dist/codemods/update-default-props.d.ts +5 -0
- package/dist/codemods/update-default-props.js +98 -0
- package/dist/editor/components/Checkbox.js +1 -0
- package/dist/editor/components/CollapsedSidebarExpander.d.ts +5 -0
- package/dist/editor/components/CollapsedSidebarExpander.js +40 -0
- package/dist/editor/components/CurrentCompositionSideEffects.js +11 -2
- package/dist/editor/components/InlineAction.js +1 -1
- package/dist/editor/components/Modals.js +3 -3
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +7 -0
- package/dist/editor/components/NewComposition/RemTextarea.js +90 -0
- package/dist/editor/components/RenderButton.d.ts +2 -2
- package/dist/editor/components/RenderButton.js +5 -0
- package/dist/editor/components/RenderModal/CliCopyButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/CliCopyButton.js +22 -0
- package/dist/editor/components/RenderModal/CrfSetting.d.ts +2 -1
- package/dist/editor/components/RenderModal/CrfSetting.js +2 -2
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.d.ts +2 -0
- package/dist/editor/components/RenderModal/EnforceAudioTrackSetting.js +4 -2
- package/dist/editor/components/RenderModal/EnvInput.d.ts +10 -0
- package/dist/editor/components/RenderModal/EnvInput.js +54 -0
- package/dist/editor/components/RenderModal/FrameRangeSetting.js +1 -1
- package/dist/editor/components/RenderModal/{RenderErrorModal.d.ts → GuiRenderStatus.d.ts} +1 -1
- package/dist/editor/components/RenderModal/GuiRenderStatus.js +78 -0
- package/dist/editor/components/RenderModal/InfoBubble.js +16 -12
- package/dist/editor/components/RenderModal/InfoTooltip.d.ts +1 -0
- package/dist/editor/components/RenderModal/InfoTooltip.js +25 -16
- package/dist/editor/components/RenderModal/InlineEyeIcon.d.ts +5 -0
- package/dist/editor/components/RenderModal/InlineEyeIcon.js +38 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/InlineRemoveButton.js +14 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.d.ts +5 -0
- package/dist/editor/components/RenderModal/JpegQualitySetting.js +12 -0
- package/dist/editor/components/RenderModal/MutedSetting.d.ts +2 -0
- package/dist/editor/components/RenderModal/MutedSetting.js +4 -2
- package/dist/editor/components/RenderModal/NumberOfLoopsSetting.js +1 -1
- package/dist/editor/components/RenderModal/NumberSetting.js +1 -1
- package/dist/editor/components/RenderModal/OptionExplainer.d.ts +1 -1
- package/dist/editor/components/RenderModal/OptionExplainer.js +26 -2
- package/dist/editor/components/RenderModal/RenderModal.d.ts +6 -1
- package/dist/editor/components/RenderModal/RenderModal.js +52 -9
- package/dist/editor/components/RenderModal/RenderModalAdvanced.d.ts +11 -0
- package/dist/editor/components/RenderModal/RenderModalAdvanced.js +34 -2
- package/dist/editor/components/RenderModal/RenderModalAudio.js +3 -1
- package/dist/editor/components/RenderModal/RenderModalBasic.d.ts +3 -2
- package/dist/editor/components/RenderModal/RenderModalBasic.js +5 -7
- package/dist/editor/components/RenderModal/RenderModalData.d.ts +10 -0
- package/dist/editor/components/RenderModal/RenderModalData.js +55 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.d.ts +5 -0
- package/dist/editor/components/RenderModal/RenderModalEnvironmentVariables.js +52 -0
- package/dist/editor/components/RenderModal/RenderModalInput.d.ts +10 -0
- package/dist/editor/components/RenderModal/RenderModalInput.js +13 -0
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.d.ts +8 -0
- package/dist/editor/components/RenderModal/RenderModalJSONInputPropsEditor.js +87 -0
- package/dist/editor/components/RenderModal/RenderModalPicture.js +6 -4
- package/dist/editor/components/RenderModal/RenderStatusModal.d.ts +4 -0
- package/dist/editor/components/RenderModal/{RenderErrorModal.js → RenderStatusModal.js} +21 -14
- package/dist/editor/components/RenderModal/ScaleSetting.js +6 -3
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.d.ts +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaEditor.js +36 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.d.ts +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaLabel.js +43 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaResetButton.js +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.d.ts +4 -0
- package/dist/editor/components/RenderModal/SchemaEditor/SchemaSaveButton.js +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayEditor.js +70 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.d.ts +13 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodArrayItemEditor.js +28 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.d.ts +12 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodBooleanEditor.js +27 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodDateEditor.js +75 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodEffectEditor.js +51 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.d.ts +5 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodErrorMessages.js +23 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.d.ts +8 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +23 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodNumberEditor.js +89 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodObjectEditor.js +57 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodStringEditor.js +43 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.d.ts +14 -0
- package/dist/editor/components/RenderModal/SchemaEditor/ZodSwitch.js +56 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/date-serialization.js +21 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.d.ts +2 -0
- package/dist/editor/components/RenderModal/SchemaEditor/get-schema-label.js +15 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.d.ts +1 -0
- package/dist/editor/components/RenderModal/SchemaEditor/zod-types.js +2 -0
- package/dist/editor/components/RenderModal/layout.d.ts +3 -1
- package/dist/editor/components/RenderModal/layout.js +19 -3
- package/dist/editor/components/RenderModal/out-name-checker.d.ts +15 -0
- package/dist/editor/components/RenderModal/out-name-checker.js +79 -0
- package/dist/editor/components/RenderQueue/RenderQueueError.js +3 -3
- package/dist/editor/components/RenderQueue/RenderQueueItemStatus.js +18 -2
- package/dist/editor/components/RenderQueue/RenderQueueOutputName.js +4 -2
- package/dist/editor/components/RenderQueue/RenderQueueProgressMessage.js +3 -4
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +11 -1
- package/dist/editor/components/RenderQueue/SuccessIcon.d.ts +2 -0
- package/dist/editor/components/RenderQueue/SuccessIcon.js +14 -0
- package/dist/editor/components/RenderQueue/actions.d.ts +11 -2
- package/dist/editor/components/RenderQueue/actions.js +18 -3
- package/dist/editor/components/RenderToolbarIcon.js +5 -0
- package/dist/editor/components/RightPanel.d.ts +2 -0
- package/dist/editor/components/RightPanel.js +43 -0
- package/dist/editor/components/SidebarContent.js +1 -0
- package/dist/editor/helpers/convert-env-variables.d.ts +2 -0
- package/dist/editor/helpers/convert-env-variables.js +20 -0
- package/dist/editor/helpers/get-timeline-sequence-layout.js +1 -1
- package/dist/editor/helpers/render-modal-sections.d.ts +1 -1
- package/dist/editor/helpers/render-modal-sections.js +4 -4
- package/dist/editor/icons/data.d.ts +2 -0
- package/dist/editor/icons/data.js +8 -0
- package/dist/editor/icons/save.d.ts +2 -0
- package/dist/editor/icons/save.js +8 -0
- package/dist/handle-common-errors.js +16 -0
- package/dist/parse-command-line.d.ts +2 -0
- package/dist/preview-server/api-routes.js +2 -0
- package/dist/preview-server/api-types.d.ts +2 -1
- package/dist/preview-server/render-queue/job.d.ts +25 -12
- package/dist/preview-server/render-queue/make-retry-payload.js +11 -1
- package/dist/preview-server/render-queue/open-directory-in-finder.d.ts +1 -1
- package/dist/preview-server/render-queue/open-directory-in-finder.js +10 -1
- package/dist/preview-server/render-queue/process-still.js +4 -10
- package/dist/preview-server/render-queue/process-video.js +4 -10
- package/dist/preview-server/render-queue/queue.js +38 -16
- package/dist/preview-server/routes/add-render.js +7 -0
- package/dist/preview-server/routes/open-in-file-explorer.js +1 -7
- package/dist/preview-server/routes/update-default-props.d.ts +3 -0
- package/dist/preview-server/routes/update-default-props.js +22 -0
- package/dist/preview.js +8 -3
- package/dist/progress-types.d.ts +32 -0
- package/dist/progress-types.js +17 -0
- package/dist/render-flows/render.js +66 -52
- package/dist/render-flows/still.js +18 -18
- package/dist/required-chromium-options.d.ts +3 -0
- package/dist/required-chromium-options.js +2 -0
- package/package.json +7 -7
- package/dist/editor/components/RenderModal/QualitySetting.d.ts +0 -5
- package/dist/editor/components/RenderModal/QualitySetting.js +0 -27
- package/dist/gcp-command.d.ts +0 -1
- package/dist/gcp-command.js +0 -27
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const EnvInput: React.FC<{
|
|
3
|
+
onEnvKeyChange: (index: number, newValue: string) => void;
|
|
4
|
+
onEnvValChange: (index: number, newValue: string) => void;
|
|
5
|
+
envKey: string;
|
|
6
|
+
envVal: string;
|
|
7
|
+
onDelete: (index: number) => void;
|
|
8
|
+
index: number;
|
|
9
|
+
autoFocus: boolean;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.EnvInput = void 0;
|
|
27
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
const react_1 = __importStar(require("react"));
|
|
29
|
+
const layout_1 = require("../layout");
|
|
30
|
+
const RemInput_1 = require("../NewComposition/RemInput");
|
|
31
|
+
const InlineEyeIcon_1 = require("./InlineEyeIcon");
|
|
32
|
+
const InlineRemoveButton_1 = require("./InlineRemoveButton");
|
|
33
|
+
const layout_2 = require("./layout");
|
|
34
|
+
const input = {
|
|
35
|
+
flex: 1,
|
|
36
|
+
width: '100%',
|
|
37
|
+
};
|
|
38
|
+
const EnvInput = ({ onEnvKeyChange, onEnvValChange, envKey, envVal, onDelete, index, autoFocus, }) => {
|
|
39
|
+
const [showInPlainText, setShowInPlainText] = react_1.default.useState(false);
|
|
40
|
+
const handleDelete = (0, react_1.useCallback)(() => {
|
|
41
|
+
onDelete(index);
|
|
42
|
+
}, [index, onDelete]);
|
|
43
|
+
const togglePlainText = (0, react_1.useCallback)(() => {
|
|
44
|
+
setShowInPlainText((prev) => !prev);
|
|
45
|
+
}, []);
|
|
46
|
+
const handleKeyChange = (0, react_1.useCallback)((e) => {
|
|
47
|
+
onEnvKeyChange(index, e.target.value);
|
|
48
|
+
}, [index, onEnvKeyChange]);
|
|
49
|
+
const handleValueChange = (0, react_1.useCallback)((e) => {
|
|
50
|
+
onEnvValChange(index, e.target.value);
|
|
51
|
+
}, [index, onEnvValChange]);
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { status: "ok", type: "text", placeholder: "Key", style: input, value: envKey, autoFocus: autoFocus, onChange: handleKeyChange }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)(RemInput_1.RemotionInput, { status: "ok", placeholder: "Value", type: showInPlainText ? 'text' : 'password', style: input, value: envVal, onChange: handleValueChange }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1.5 }), (0, jsx_runtime_1.jsx)(InlineEyeIcon_1.InlineEyeButton, { enabled: !showInPlainText, onClick: togglePlainText }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1.5 }), (0, jsx_runtime_1.jsx)(InlineRemoveButton_1.InlineRemoveButton, { onClick: handleDelete })] }));
|
|
53
|
+
};
|
|
54
|
+
exports.EnvInput = EnvInput;
|
|
@@ -37,6 +37,6 @@ const FrameRangeSetting = ({ startFrame, endFrame, setEndFrame, durationInFrames
|
|
|
37
37
|
return newEndFrameClamped;
|
|
38
38
|
});
|
|
39
39
|
}, [maxEndFrame, minEndFrame, setEndFrame]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Frame range" }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.rightRow, children: [(0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: startFrame, onTextChange: onStartFrameChanged, placeholder: `${minStartFrame}-${maxStartFrame}`, onValueChange: onStartFrameChangedDirectly, name: "startFrame", step: 1, min: minStartFrame, max: maxStartFrame }) }), (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: endFrame, onTextChange: onEndFrameChanged, placeholder: `${minEndFrame}-${maxEndFrame}`, onValueChange: onEndFrameChangedDirectly, name: "endFrame", step: 1, min: minEndFrame, max: maxEndFrame }) })] })] }));
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Frame range" }), (0, jsx_runtime_1.jsxs)("div", { style: layout_1.rightRow, children: [(0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: startFrame, onTextChange: onStartFrameChanged, placeholder: `${minStartFrame}-${maxStartFrame}`, onValueChange: onStartFrameChangedDirectly, name: "startFrame", step: 1, min: minStartFrame, max: maxStartFrame, status: "ok" }) }), (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: endFrame, onTextChange: onEndFrameChanged, placeholder: `${minEndFrame}-${maxEndFrame}`, onValueChange: onEndFrameChangedDirectly, name: "endFrame", step: 1, min: minEndFrame, max: maxEndFrame, status: "ok" }) })] })] }));
|
|
41
41
|
};
|
|
42
42
|
exports.FrameRangeSetting = FrameRangeSetting;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GuiRenderStatus = 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 layout_1 = require("../layout");
|
|
8
|
+
const actions_1 = require("../RenderQueue/actions");
|
|
9
|
+
const CircularProgress_1 = require("../RenderQueue/CircularProgress");
|
|
10
|
+
const RenderQueueOpenInFolder_1 = require("../RenderQueue/RenderQueueOpenInFolder");
|
|
11
|
+
const SuccessIcon_1 = require("../RenderQueue/SuccessIcon");
|
|
12
|
+
const progressItem = {
|
|
13
|
+
padding: 10,
|
|
14
|
+
display: 'flex',
|
|
15
|
+
flexDirection: 'row',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
};
|
|
18
|
+
const label = {
|
|
19
|
+
fontSize: 14,
|
|
20
|
+
width: 400,
|
|
21
|
+
color: 'white',
|
|
22
|
+
};
|
|
23
|
+
const right = {
|
|
24
|
+
fontSize: 14,
|
|
25
|
+
color: colors_1.LIGHT_TEXT,
|
|
26
|
+
textAlign: 'right',
|
|
27
|
+
flex: 1,
|
|
28
|
+
};
|
|
29
|
+
const BundlingProgress = ({ progress, doneIn }) => {
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: progressItem, children: [progress === 1 ? ((0, jsx_runtime_1.jsx)(SuccessIcon_1.SuccessIcon, {})) : ((0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { progress: progress })), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("div", { style: label, children: progress === 1 ? 'Bundled' : `Bundling ${progress * 100}%` }), doneIn ? (0, jsx_runtime_1.jsxs)("div", { style: right, children: [doneIn, "ms"] }) : null] }));
|
|
31
|
+
};
|
|
32
|
+
const RenderingProgress = ({ progress }) => {
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: progressItem, children: [progress.frames === progress.totalFrames ? ((0, jsx_runtime_1.jsx)(SuccessIcon_1.SuccessIcon, {})) : ((0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { progress: progress.frames / progress.totalFrames })), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("div", { style: label, children: progress.doneIn
|
|
34
|
+
? `Rendered ${progress.totalFrames} frames`
|
|
35
|
+
: `Rendering ${progress.frames} / ${progress.totalFrames} frames` }), progress.doneIn ? (0, jsx_runtime_1.jsxs)("div", { style: right, children: [progress.doneIn, "ms"] }) : null] }));
|
|
36
|
+
};
|
|
37
|
+
const StitchingProgress = ({ progress }) => {
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: progressItem, children: [progress.frames === progress.totalFrames ? ((0, jsx_runtime_1.jsx)(SuccessIcon_1.SuccessIcon, {})) : ((0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { progress: progress.frames / progress.totalFrames })), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("div", { style: label, children: progress.doneIn
|
|
39
|
+
? `Stitched ${progress.totalFrames} frames`
|
|
40
|
+
: `Stitching ${progress.frames} / ${progress.totalFrames} frames` }), progress.doneIn ? (0, jsx_runtime_1.jsxs)("div", { style: right, children: [progress.doneIn, "ms"] }) : null] }));
|
|
41
|
+
};
|
|
42
|
+
const DownloadsProgress = ({ downloads }) => {
|
|
43
|
+
const allHaveProgress = downloads.every((a) => a.totalBytes);
|
|
44
|
+
const totalBytes = allHaveProgress
|
|
45
|
+
? downloads.reduce((a, b) => a + b.totalBytes, 0)
|
|
46
|
+
: null;
|
|
47
|
+
const downloaded = allHaveProgress
|
|
48
|
+
? downloads.reduce((a, b) => a + b.downloaded, 0)
|
|
49
|
+
: null;
|
|
50
|
+
const progress = allHaveProgress
|
|
51
|
+
? downloaded / totalBytes
|
|
52
|
+
: 0.1;
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: progressItem, children: [progress === 1 ? ((0, jsx_runtime_1.jsx)(SuccessIcon_1.SuccessIcon, {})) : ((0, jsx_runtime_1.jsx)(CircularProgress_1.CircularProgress, { progress: progress })), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsxs)("div", { style: label, children: ["Downloading ", downloads.length, " file", downloads.length === 1 ? '' : 's'] })] }));
|
|
54
|
+
};
|
|
55
|
+
const OpenFile = ({ job }) => {
|
|
56
|
+
const labelStyle = (0, react_1.useMemo)(() => {
|
|
57
|
+
return {
|
|
58
|
+
...label,
|
|
59
|
+
textAlign: 'left',
|
|
60
|
+
appearance: 'none',
|
|
61
|
+
border: 0,
|
|
62
|
+
paddingLeft: 0,
|
|
63
|
+
cursor: job.deletedOutputLocation ? 'inherit' : 'pointer',
|
|
64
|
+
textDecoration: job.deletedOutputLocation ? 'line-through' : 'none',
|
|
65
|
+
};
|
|
66
|
+
}, [job.deletedOutputLocation]);
|
|
67
|
+
const onClick = (0, react_1.useCallback)(() => {
|
|
68
|
+
(0, actions_1.openInFileExplorer)({ directory: job.outName });
|
|
69
|
+
}, [job.outName]);
|
|
70
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: progressItem, children: [(0, jsx_runtime_1.jsx)(SuccessIcon_1.SuccessIcon, {}), (0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 1 }), (0, jsx_runtime_1.jsx)("button", { style: labelStyle, type: "button", onClick: onClick, children: job.outName }), (0, jsx_runtime_1.jsx)("div", { style: right, children: (0, jsx_runtime_1.jsx)(RenderQueueOpenInFolder_1.RenderQueueOpenInFinderItem, { job: job }) })] }));
|
|
71
|
+
};
|
|
72
|
+
const GuiRenderStatus = ({ job }) => {
|
|
73
|
+
if (job.status === 'idle' || job.status === 'failed') {
|
|
74
|
+
throw new Error('This component should not be rendered when the job is idle');
|
|
75
|
+
}
|
|
76
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 0.5 }), (0, jsx_runtime_1.jsx)(BundlingProgress, { progress: job.progress.bundling.progress, doneIn: job.progress.bundling.doneIn }), job.progress.rendering ? ((0, jsx_runtime_1.jsx)(RenderingProgress, { progress: job.progress.rendering })) : null, job.progress.stitching ? ((0, jsx_runtime_1.jsx)(StitchingProgress, { progress: job.progress.stitching })) : null, job.progress.downloads.length > 0 ? ((0, jsx_runtime_1.jsx)(DownloadsProgress, { downloads: job.progress.downloads })) : null, job.status === 'done' ? (0, jsx_runtime_1.jsx)(OpenFile, { job: job }) : null, (0, jsx_runtime_1.jsx)(layout_1.Spacing, { y: 1 })] }));
|
|
77
|
+
};
|
|
78
|
+
exports.GuiRenderStatus = GuiRenderStatus;
|
|
@@ -43,8 +43,7 @@ const InfoBubble = ({ title, children }) => {
|
|
|
43
43
|
}
|
|
44
44
|
const onMouseEnter = () => setIsHovered(true);
|
|
45
45
|
const onMouseLeave = () => setIsHovered(false);
|
|
46
|
-
const
|
|
47
|
-
e.stopPropagation();
|
|
46
|
+
const onPointerUp = () => {
|
|
48
47
|
return setOpened((o) => {
|
|
49
48
|
if (!o) {
|
|
50
49
|
refresh === null || refresh === void 0 ? void 0 : refresh();
|
|
@@ -64,24 +63,30 @@ const InfoBubble = ({ title, children }) => {
|
|
|
64
63
|
};
|
|
65
64
|
current.addEventListener('mouseenter', onMouseEnter);
|
|
66
65
|
current.addEventListener('mouseleave', onMouseLeave);
|
|
67
|
-
current.addEventListener('
|
|
66
|
+
current.addEventListener('pointerup', onPointerUp);
|
|
68
67
|
current.addEventListener('click', onClick);
|
|
69
68
|
return () => {
|
|
70
69
|
current.removeEventListener('mouseenter', onMouseEnter);
|
|
71
70
|
current.removeEventListener('mouseleave', onMouseLeave);
|
|
72
|
-
current.removeEventListener('
|
|
71
|
+
current.removeEventListener('pointerup', onPointerUp);
|
|
73
72
|
current.removeEventListener('click', onClick);
|
|
74
73
|
};
|
|
75
74
|
}, [refresh]);
|
|
76
|
-
const
|
|
77
|
-
if (!
|
|
78
|
-
return
|
|
75
|
+
const layout = (0, react_1.useMemo)(() => {
|
|
76
|
+
if (!size) {
|
|
77
|
+
return 'down';
|
|
79
78
|
}
|
|
80
79
|
const spaceToBottom = size.windowSize.height - (size.top + size.height);
|
|
81
80
|
const spaceToTop = size.top;
|
|
82
|
-
const
|
|
81
|
+
const l = spaceToTop > spaceToBottom ? 'down' : 'up';
|
|
82
|
+
return l;
|
|
83
|
+
}, [size]);
|
|
84
|
+
const portalStyle = (0, react_1.useMemo)(() => {
|
|
85
|
+
if (!size || !opened) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
83
88
|
return {
|
|
84
|
-
...(layout === '
|
|
89
|
+
...(layout === 'up'
|
|
85
90
|
? {
|
|
86
91
|
position: 'fixed',
|
|
87
92
|
top: size.top + size.height,
|
|
@@ -92,7 +97,7 @@ const InfoBubble = ({ title, children }) => {
|
|
|
92
97
|
}),
|
|
93
98
|
left: size.left,
|
|
94
99
|
};
|
|
95
|
-
}, [opened, size]);
|
|
100
|
+
}, [layout, opened, size]);
|
|
96
101
|
const style = (0, react_1.useMemo)(() => {
|
|
97
102
|
return {
|
|
98
103
|
...container,
|
|
@@ -103,9 +108,8 @@ const InfoBubble = ({ title, children }) => {
|
|
|
103
108
|
alignItems: 'center',
|
|
104
109
|
};
|
|
105
110
|
}, []);
|
|
106
|
-
// TODO: Can click two info bubbles at the same time
|
|
107
111
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { ref: ref, tabIndex: tabIndex, style: style, title: title, type: "button", children: (0, jsx_runtime_1.jsx)("svg", { style: icon, viewBox: "0 0 512 512", children: (0, jsx_runtime_1.jsx)("path", { fill: hovered ? 'white' : colors_1.LIGHT_TEXT, d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-8V248c0-13.3-10.7-24-24-24H216c-13.3 0-24 10.7-24 24s10.7 24 24 24h24v64H216zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" }) }) }), portalStyle
|
|
108
|
-
? react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)("div", { style: styles_1.outerPortal, className: "css-reset", children: (0, jsx_runtime_1.jsx)(z_index_1.HigherZIndex, { onOutsideClick: onHide, onEscape: onHide, children: (0, jsx_runtime_1.jsx)("div", { style: portalStyle, children: (0, jsx_runtime_1.jsx)(InfoTooltip_1.InfoTooltip, { children: children }) }) }) }), (0, portals_1.getPortal)(currentZIndex))
|
|
112
|
+
? react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)("div", { style: styles_1.outerPortal, className: "css-reset", children: (0, jsx_runtime_1.jsx)(z_index_1.HigherZIndex, { onOutsideClick: onHide, onEscape: onHide, children: (0, jsx_runtime_1.jsx)("div", { style: portalStyle, children: (0, jsx_runtime_1.jsx)(InfoTooltip_1.InfoTooltip, { arrowDirection: layout, children: children }) }) }) }), (0, portals_1.getPortal)(currentZIndex))
|
|
109
113
|
: null] }));
|
|
110
114
|
};
|
|
111
115
|
exports.InfoBubble = InfoBubble;
|
|
@@ -2,29 +2,38 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InfoTooltip = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const colors_1 = require("../../helpers/colors");
|
|
6
7
|
const styles_1 = require("../Menu/styles");
|
|
7
|
-
const container = {
|
|
8
|
-
padding: '10px 12px',
|
|
9
|
-
// TODO: Depending on direction
|
|
10
|
-
boxShadow: styles_1.SHADOW_TOWARDS_TOP,
|
|
11
|
-
background: colors_1.BACKGROUND,
|
|
12
|
-
color: 'white',
|
|
13
|
-
border: '0.5px solid ' + colors_1.BORDER_COLOR,
|
|
14
|
-
maxHeight: 200,
|
|
15
|
-
overflow: 'auto',
|
|
16
|
-
};
|
|
17
8
|
const arrow = {
|
|
18
9
|
height: 7,
|
|
19
10
|
display: 'block',
|
|
20
11
|
overflow: 'visible',
|
|
21
|
-
marginTop: -0.5,
|
|
22
12
|
marginLeft: 7,
|
|
23
13
|
};
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
const arrowUp = {
|
|
15
|
+
...arrow,
|
|
16
|
+
transform: `translateY(1px)`,
|
|
17
|
+
};
|
|
18
|
+
const arrowDown = {
|
|
19
|
+
...arrow,
|
|
20
|
+
marginTop: -0.5,
|
|
21
|
+
};
|
|
22
|
+
const InfoTooltip = ({ children, arrowDirection }) => {
|
|
23
|
+
const container = (0, react_1.useMemo)(() => {
|
|
24
|
+
return {
|
|
25
|
+
boxShadow: arrowDirection === 'down' ? styles_1.SHADOW_TOWARDS_TOP : styles_1.SHADOW_TOWARDS_BOTTOM,
|
|
26
|
+
background: colors_1.BACKGROUND,
|
|
27
|
+
color: 'white',
|
|
28
|
+
border: '0.5px solid ' + colors_1.BORDER_COLOR,
|
|
29
|
+
maxHeight: 200,
|
|
30
|
+
overflow: 'auto',
|
|
31
|
+
};
|
|
32
|
+
}, [arrowDirection]);
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
34
|
+
display: 'flex',
|
|
35
|
+
flexDirection: arrowDirection === 'up' ? 'column-reverse' : 'column',
|
|
36
|
+
alignItems: 'flex-start',
|
|
37
|
+
}, children: [(0, jsx_runtime_1.jsx)("div", { style: container, className: "__remotion-vertical-scrollbar", children: children }), arrowDirection === 'down' ? ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 14 7", style: arrowDown, children: (0, jsx_runtime_1.jsx)("path", { d: `M 14 0 L 7 7 L 0 0`, fill: colors_1.BACKGROUND, strokeLinecap: "butt", stroke: colors_1.BORDER_COLOR, strokeWidth: 0.5 }) })) : null, arrowDirection === 'up' ? ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 14 7", style: arrowUp, children: (0, jsx_runtime_1.jsx)("path", { d: `M 0 7 L 7 0 L 14 7`, fill: colors_1.BACKGROUND, strokeLinecap: "butt", stroke: colors_1.BORDER_COLOR, strokeWidth: 0.5 }) })) : null] }));
|
|
29
38
|
};
|
|
30
39
|
exports.InfoTooltip = InfoTooltip;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineEyeButton = 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 clearIcon = {
|
|
8
|
+
height: 16,
|
|
9
|
+
color: colors_1.LIGHT_TEXT,
|
|
10
|
+
};
|
|
11
|
+
const InlineEyeButton = ({ onClick, enabled }) => {
|
|
12
|
+
const [hovered, setHovered] = (0, react_1.useState)(false);
|
|
13
|
+
const onPointerEnter = (0, react_1.useCallback)(() => {
|
|
14
|
+
setHovered(true);
|
|
15
|
+
}, []);
|
|
16
|
+
const onPointerLeave = (0, react_1.useCallback)(() => {
|
|
17
|
+
setHovered(false);
|
|
18
|
+
}, []);
|
|
19
|
+
const handleClick = (0, react_1.useCallback)((e) => {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
onClick();
|
|
22
|
+
}, [onClick]);
|
|
23
|
+
const color = hovered ? 'white' : colors_1.LIGHT_TEXT;
|
|
24
|
+
const style = (0, react_1.useMemo)(() => {
|
|
25
|
+
return {
|
|
26
|
+
display: 'inline-flex',
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
appearance: 'none',
|
|
30
|
+
padding: 0,
|
|
31
|
+
cursor: 'pointer',
|
|
32
|
+
border: 'none',
|
|
33
|
+
width: 24,
|
|
34
|
+
};
|
|
35
|
+
}, []);
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)("button", { onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: style, onClick: handleClick, type: "button", children: enabled ? ((0, jsx_runtime_1.jsx)("svg", { style: clearIcon, viewBox: "0 0 640 512", children: (0, jsx_runtime_1.jsx)("path", { fill: color, d: "M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z" }) })) : ((0, jsx_runtime_1.jsx)("svg", { style: clearIcon, viewBox: "0 0 576 512", children: (0, jsx_runtime_1.jsx)("path", { fill: color, d: "M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z" }) })) }));
|
|
37
|
+
};
|
|
38
|
+
exports.InlineEyeButton = InlineEyeButton;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineRemoveButton = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const colors_1 = require("../../helpers/colors");
|
|
6
|
+
const InlineAction_1 = require("../InlineAction");
|
|
7
|
+
const clearIcon = {
|
|
8
|
+
height: 14,
|
|
9
|
+
color: colors_1.LIGHT_TEXT,
|
|
10
|
+
};
|
|
11
|
+
const InlineRemoveButton = ({ onClick }) => {
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(InlineAction_1.InlineAction, { onClick: onClick, children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: clearIcon, children: (0, jsx_runtime_1.jsx)("path", { d: "M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z", fill: "currentcolor" }) }) }));
|
|
13
|
+
};
|
|
14
|
+
exports.InlineRemoveButton = InlineRemoveButton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JpegQualitySetting = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const client_1 = require("@remotion/renderer/client");
|
|
6
|
+
const NumberSetting_1 = require("./NumberSetting");
|
|
7
|
+
const MIN_QUALITY = 1;
|
|
8
|
+
const MAX_QUALITY = 100;
|
|
9
|
+
const JpegQualitySetting = ({ quality: scale, setQuality: setScale }) => {
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(NumberSetting_1.NumberSetting, { min: MIN_QUALITY, max: MAX_QUALITY, step: 1, name: "JPEG Quality", onValueChanged: setScale, value: scale, hint: client_1.BrowserSafeApis.options.jpegQualityOption }));
|
|
11
|
+
};
|
|
12
|
+
exports.JpegQualitySetting = JpegQualitySetting;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { RemotionOption } from '@remotion/renderer';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
export declare const MutedSetting: React.FC<{
|
|
3
4
|
muted: boolean;
|
|
4
5
|
setMuted: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
6
|
enforceAudioTrack: boolean;
|
|
7
|
+
hint: RemotionOption;
|
|
6
8
|
}>;
|
|
@@ -4,11 +4,13 @@ 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 InfoBubble_1 = require("./InfoBubble");
|
|
7
8
|
const layout_1 = require("./layout");
|
|
8
|
-
const
|
|
9
|
+
const OptionExplainer_1 = require("./OptionExplainer");
|
|
10
|
+
const MutedSetting = ({ muted, setMuted, enforceAudioTrack, hint }) => {
|
|
9
11
|
const onMutedChanged = (0, react_1.useCallback)((e) => {
|
|
10
12
|
setMuted(e.target.checked);
|
|
11
13
|
}, [setMuted]);
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_1.label, children: ["Muted", (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)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: muted, disabled: enforceAudioTrack && !muted, onChange: onMutedChanged }) })] }));
|
|
13
15
|
};
|
|
14
16
|
exports.MutedSetting = MutedSetting;
|
|
@@ -21,6 +21,6 @@ const NumberOfLoopsSetting = ({ numberOfGifLoops, setNumberOfGifLoops }) => {
|
|
|
21
21
|
return newConcurrencyClamped;
|
|
22
22
|
});
|
|
23
23
|
}, [setNumberOfGifLoops]);
|
|
24
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Number of loops" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: numberOfGifLoops, onTextChange: onNumberOfGifLoopsChanged, placeholder: `${min}-`, onValueChange: onNumberOfGifLoopsChangedDirectly, name: "number-of-gif-loops", step: 1, min: min }) }) })] }));
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_1.optionRow, children: [(0, jsx_runtime_1.jsx)("div", { style: layout_1.label, children: "Number of loops" }), (0, jsx_runtime_1.jsx)("div", { style: layout_1.rightRow, children: (0, jsx_runtime_1.jsx)(RemInput_1.RightAlignInput, { children: (0, jsx_runtime_1.jsx)(InputDragger_1.InputDragger, { value: numberOfGifLoops, onTextChange: onNumberOfGifLoopsChanged, placeholder: `${min}-`, onValueChange: onNumberOfGifLoopsChangedDirectly, name: "number-of-gif-loops", step: 1, min: min, status: "ok" }) }) })] }));
|
|
25
25
|
};
|
|
26
26
|
exports.NumberOfLoopsSetting = NumberOfLoopsSetting;
|
|
@@ -24,6 +24,6 @@ const NumberSetting = ({ name, value, step, hint, onValueChanged, max, min, form
|
|
|
24
24
|
}, [onValueChanged]);
|
|
25
25
|
return ((0, jsx_runtime_1.jsxs)("div", { style: layout_2.optionRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: layout_2.label, children: [name, hint ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(layout_1.Spacing, { x: 0.25 }), ' ', (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 }) })] })) : null] }), (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: value, name: name.toLowerCase(), onTextChange: onTextChanged, onValueChange: onValueChange, step: step, placeholder: [min, max]
|
|
26
26
|
.map((f) => (f !== null && f !== undefined ? f : ''))
|
|
27
|
-
.join('-'), min: min, max: max, formatter: formatter }) }) })] }));
|
|
27
|
+
.join('-'), min: min, max: max, formatter: formatter, status: "ok" }) }) })] }));
|
|
28
28
|
};
|
|
29
29
|
exports.NumberSetting = NumberSetting;
|
|
@@ -4,18 +4,42 @@ exports.OptionExplainer = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const layout_1 = require("../layout");
|
|
6
6
|
const MenuDivider_1 = require("../Menu/MenuDivider");
|
|
7
|
+
const CliCopyButton_1 = require("./CliCopyButton");
|
|
7
8
|
const container = {
|
|
8
9
|
fontSize: 14,
|
|
10
|
+
paddingTop: 10,
|
|
11
|
+
paddingBottom: 10,
|
|
12
|
+
};
|
|
13
|
+
const padding = {
|
|
14
|
+
paddingLeft: 12,
|
|
15
|
+
paddingRight: 12,
|
|
9
16
|
};
|
|
10
17
|
const title = {
|
|
11
18
|
fontSize: 14,
|
|
12
19
|
};
|
|
13
20
|
const description = {
|
|
21
|
+
fontSize: 14,
|
|
22
|
+
maxWidth: 400,
|
|
23
|
+
};
|
|
24
|
+
const link = {
|
|
14
25
|
fontSize: 14,
|
|
15
26
|
maxWidth: 200,
|
|
27
|
+
color: '#0b84f3',
|
|
28
|
+
wordWrap: 'break-word',
|
|
29
|
+
};
|
|
30
|
+
const infoRow = {
|
|
31
|
+
...padding,
|
|
32
|
+
fontSize: 14,
|
|
33
|
+
display: 'flex',
|
|
34
|
+
flexDirection: 'row',
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
};
|
|
37
|
+
const infoRowLabel = {
|
|
38
|
+
width: 150,
|
|
39
|
+
fontSize: 14,
|
|
40
|
+
color: 'white',
|
|
16
41
|
};
|
|
17
|
-
// TODO: No style of <code>
|
|
18
42
|
const OptionExplainer = ({ option }) => {
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("strong", { style: title, children: option.name }) }), (0, jsx_runtime_1.jsx)("div", { style: description, children: option.description }), (0, jsx_runtime_1.jsx)(layout_1.Spacing, {
|
|
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.jsx)("div", { children: (0, jsx_runtime_1.jsx)("strong", { style: title, children: option.name }) }), (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)("code", { children: option.cliFlag }), (0, jsx_runtime_1.jsx)("div", { style: { display: 'flex', justifyContent: 'flex-end', flex: 1 }, 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)("code", { children: option.ssrName })] }), (0, jsx_runtime_1.jsx)("div", { style: infoRow, children: (0, jsx_runtime_1.jsx)("a", { style: link, href: option.docLink, target: "_blank", children: "Docs" }) })] })] }));
|
|
20
44
|
};
|
|
21
45
|
exports.OptionExplainer = OptionExplainer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioCodec, Codec, PixelFormat, ProResProfile, StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
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
|
export declare const RenderModal: React.FC<{
|
|
@@ -26,4 +26,9 @@ export declare const RenderModal: React.FC<{
|
|
|
26
26
|
initialEveryNthFrame: number;
|
|
27
27
|
initialNumberOfGifLoops: number | null;
|
|
28
28
|
initialDelayRenderTimeout: number;
|
|
29
|
+
initialEnvVariables: Record<string, string>;
|
|
30
|
+
initialDisableWebSecurity: boolean;
|
|
31
|
+
initialGl: OpenGlRenderer | null;
|
|
32
|
+
initialIgnoreCertificateErrors: boolean;
|
|
33
|
+
initialHeadless: boolean;
|
|
29
34
|
}>;
|