@remotion/cli 4.0.30 → 4.0.31
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/config/enable-folder-expiry.d.ts +2 -0
- package/dist/config/enable-folder-expiry.js +12 -0
- package/dist/config/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/log.d.ts +1 -1
- package/dist/config/presets-profile.d.ts +3 -0
- package/dist/config/presets-profile.js +12 -0
- package/dist/config/render-folder-expiry.d.ts +2 -0
- package/dist/config/render-folder-expiry.js +12 -0
- package/dist/editor/components/KnownBugs.d.ts +5 -0
- package/dist/editor/components/KnownBugs.js +17 -0
- package/dist/editor/components/NewComposition/RemInput.d.ts +2 -2
- package/dist/editor/components/NewComposition/RemInputTypeColor.d.ts +1 -1
- package/dist/editor/components/NewComposition/RemTextarea.d.ts +1 -1
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +1 -1
- package/dist/editor/components/UpdateModal/OpenIssueButton.d.ts +4 -0
- package/dist/editor/components/UpdateModal/OpenIssueButton.js +37 -0
- package/dist/editor/helpers/colors.d.ts +1 -1
- package/dist/get-cli-options.d.ts +2 -2
- package/dist/handle-common-errors.d.ts +2 -0
- package/dist/handle-common-errors.js +60 -0
- package/dist/index.d.ts +13 -13
- package/dist/log.d.ts +4 -4
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/dist/setup-cache.js +2 -0
- package/package.json +8 -8
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setEnableFolderExpiry = exports.getEnableFolderExpiry = void 0;
|
|
4
|
+
let enableFolderExpiry = null;
|
|
5
|
+
const getEnableFolderExpiry = () => {
|
|
6
|
+
return enableFolderExpiry;
|
|
7
|
+
};
|
|
8
|
+
exports.getEnableFolderExpiry = getEnableFolderExpiry;
|
|
9
|
+
const setEnableFolderExpiry = (value) => {
|
|
10
|
+
enableFolderExpiry = value;
|
|
11
|
+
};
|
|
12
|
+
exports.setEnableFolderExpiry = setEnableFolderExpiry;
|
|
@@ -2,4 +2,4 @@ import type { StillImageFormat, VideoImageFormat } from '@remotion/renderer';
|
|
|
2
2
|
export declare const setStillImageFormat: (format: StillImageFormat) => void;
|
|
3
3
|
export declare const setVideoImageFormat: (format: VideoImageFormat) => void;
|
|
4
4
|
export declare const getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
5
|
-
export declare const getUserPreferredVideoImageFormat: () => "
|
|
5
|
+
export declare const getUserPreferredVideoImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -304,7 +304,7 @@ export declare const ConfigInternals: {
|
|
|
304
304
|
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
|
|
305
305
|
getDotEnvLocation: () => string | null;
|
|
306
306
|
getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
307
|
-
getUserPreferredVideoImageFormat: () => "
|
|
307
|
+
getUserPreferredVideoImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
308
308
|
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
309
309
|
getWebpackCaching: () => boolean;
|
|
310
310
|
getOutputLocation: () => string | null;
|
package/dist/config/log.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLogLevel: () => "
|
|
1
|
+
export declare const getLogLevel: () => "error" | "verbose" | "info" | "warn", setLogLevel: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setPresetProfile = exports.getPresetProfile = void 0;
|
|
4
|
+
let preset;
|
|
5
|
+
const getPresetProfile = () => {
|
|
6
|
+
return preset;
|
|
7
|
+
};
|
|
8
|
+
exports.getPresetProfile = getPresetProfile;
|
|
9
|
+
const setPresetProfile = (profile) => {
|
|
10
|
+
preset = profile;
|
|
11
|
+
};
|
|
12
|
+
exports.setPresetProfile = setPresetProfile;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setRenderFolderExpiry = exports.getRenderFolderExpiry = void 0;
|
|
4
|
+
let renderFolderExpiry = null;
|
|
5
|
+
const getRenderFolderExpiry = () => {
|
|
6
|
+
return renderFolderExpiry;
|
|
7
|
+
};
|
|
8
|
+
exports.getRenderFolderExpiry = getRenderFolderExpiry;
|
|
9
|
+
const setRenderFolderExpiry = (day) => {
|
|
10
|
+
renderFolderExpiry = day;
|
|
11
|
+
};
|
|
12
|
+
exports.setRenderFolderExpiry = setRenderFolderExpiry;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KnownBugs = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const OpenIssueButton_1 = require("./UpdateModal/OpenIssueButton");
|
|
6
|
+
const container = {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'row',
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
};
|
|
11
|
+
const KnownBugs = ({ bugs }) => {
|
|
12
|
+
const bugElements = bugs.map((bug) => {
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsxs)("div", { children: ["\uD83E\uDEB2 ", bug.title] }), (0, jsx_runtime_1.jsx)(OpenIssueButton_1.OpenIssueButton, { link: bug.link })] }, bug.description + bug.link));
|
|
14
|
+
});
|
|
15
|
+
return (0, jsx_runtime_1.jsx)("div", { children: bugElements });
|
|
16
|
+
};
|
|
17
|
+
exports.KnownBugs = KnownBugs;
|
|
@@ -12,6 +12,6 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
|
|
|
12
12
|
status: 'error' | 'warning' | 'ok';
|
|
13
13
|
isFocused: boolean;
|
|
14
14
|
isHovered: boolean;
|
|
15
|
-
}) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#
|
|
16
|
-
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "
|
|
15
|
+
}) => "#ff3232" | "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#f1c40f";
|
|
16
|
+
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | "rightAlign" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
export {};
|
|
@@ -4,5 +4,5 @@ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>
|
|
|
4
4
|
status: RemInputStatus;
|
|
5
5
|
name: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "
|
|
7
|
+
export declare const RemInputTypeColor: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | keyof React.InputHTMLAttributes<HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
8
8
|
export {};
|
|
@@ -3,5 +3,5 @@ type Props = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLTextAreaEleme
|
|
|
3
3
|
status: 'error' | 'warning' | 'ok';
|
|
4
4
|
};
|
|
5
5
|
export declare const inputBaseStyle: React.CSSProperties;
|
|
6
|
-
export declare const RemTextarea: React.ForwardRefExoticComponent<Pick<Props, "
|
|
6
|
+
export declare const RemTextarea: React.ForwardRefExoticComponent<Pick<Props, "key" | "status" | keyof React.InputHTMLAttributes<HTMLTextAreaElement>> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Codec } from '@remotion/renderer';
|
|
2
|
-
export declare const humanReadableCodec: (codec: Codec) => "
|
|
2
|
+
export declare const humanReadableCodec: (codec: Codec) => "AAC" | "MP3" | "GIF" | "H.264" | "H.264 Matroska" | "H.265" | "ProRes" | "WebM VP8" | "WebM VP9" | "Waveform" | undefined;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenIssueButton = 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 svgStyle = {
|
|
8
|
+
width: '11px',
|
|
9
|
+
height: '11px',
|
|
10
|
+
};
|
|
11
|
+
const buttonStyle = {
|
|
12
|
+
border: 'none',
|
|
13
|
+
width: '24px',
|
|
14
|
+
height: '24px',
|
|
15
|
+
display: 'flex',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
};
|
|
19
|
+
const OpenIssueButton = ({ link }) => {
|
|
20
|
+
const [hovered, setHovered] = (0, react_1.useState)(false);
|
|
21
|
+
const buttonTooltip = `Open GitHub issue in new Tab`;
|
|
22
|
+
const handleClick = (0, react_1.useCallback)(() => {
|
|
23
|
+
window.open(link, '_blank');
|
|
24
|
+
}, [link]);
|
|
25
|
+
const svgFillColor = (0, react_1.useMemo)(() => {
|
|
26
|
+
return hovered ? 'white' : colors_1.LIGHT_TEXT;
|
|
27
|
+
}, [hovered]);
|
|
28
|
+
const openInEditorSvg = ((0, jsx_runtime_1.jsx)("svg", { viewBox: "0 0 512 512", style: svgStyle, children: (0, jsx_runtime_1.jsx)("path", { fill: svgFillColor, d: "M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z" }) }));
|
|
29
|
+
const onPointerEnter = (0, react_1.useCallback)(() => {
|
|
30
|
+
setHovered(true);
|
|
31
|
+
}, []);
|
|
32
|
+
const onPointerLeave = (0, react_1.useCallback)(() => {
|
|
33
|
+
setHovered(false);
|
|
34
|
+
}, []);
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("button", { title: buttonTooltip, type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: buttonStyle, onClick: handleClick, children: openInEditorSvg }));
|
|
36
|
+
};
|
|
37
|
+
exports.OpenIssueButton = OpenIssueButton;
|
|
@@ -16,4 +16,4 @@ export declare const BLUE_DISABLED = "#284f73";
|
|
|
16
16
|
export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
|
|
17
17
|
selected: boolean;
|
|
18
18
|
hovered: boolean;
|
|
19
|
-
}) => "transparent" | "
|
|
19
|
+
}) => "transparent" | "rgba(255, 255, 255, 0.06)" | "hsla(0, 0%, 100%, 0.15)" | "hsla(0, 0%, 100%, 0.25)";
|
|
@@ -21,7 +21,7 @@ export declare const getCliOptions: (options: {
|
|
|
21
21
|
numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
|
|
22
22
|
stillFrame: number;
|
|
23
23
|
browserExecutable: BrowserExecutable;
|
|
24
|
-
logLevel: "
|
|
24
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
25
25
|
scale: number;
|
|
26
26
|
chromiumOptions: ChromiumOptions;
|
|
27
27
|
overwrite: boolean;
|
|
@@ -34,7 +34,7 @@ export declare const getCliOptions: (options: {
|
|
|
34
34
|
videoBitrate: string | null;
|
|
35
35
|
height: number | null;
|
|
36
36
|
width: number | null;
|
|
37
|
-
configFileImageFormat: "
|
|
37
|
+
configFileImageFormat: "none" | "png" | "jpeg" | undefined;
|
|
38
38
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
39
39
|
colorSpace: "default" | "bt709";
|
|
40
40
|
}>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleCommonError = void 0;
|
|
4
|
+
const chalk_1 = require("./chalk");
|
|
5
|
+
const log_1 = require("./log");
|
|
6
|
+
const print_error_1 = require("./print-error");
|
|
7
|
+
const truthy_1 = require("./truthy");
|
|
8
|
+
const handleCommonError = async (err, logLevel) => {
|
|
9
|
+
var _a;
|
|
10
|
+
await (0, print_error_1.printError)(err, logLevel);
|
|
11
|
+
if (err.message.includes('Could not play video with')) {
|
|
12
|
+
log_1.Log.info();
|
|
13
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/media-playback-error');
|
|
14
|
+
}
|
|
15
|
+
if (err.message.includes('A delayRender()') &&
|
|
16
|
+
err.message.includes('was called but not cleared after')) {
|
|
17
|
+
log_1.Log.info();
|
|
18
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/timeout');
|
|
19
|
+
}
|
|
20
|
+
if (err.message.includes('Target closed')) {
|
|
21
|
+
log_1.Log.info();
|
|
22
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/target-closed');
|
|
23
|
+
}
|
|
24
|
+
if (err.message.includes('ENAMETOOLONG')) {
|
|
25
|
+
log_1.Log.info();
|
|
26
|
+
log_1.Log.info('💡 Get help for this issue at https://remotion.dev/docs/enametoolong');
|
|
27
|
+
}
|
|
28
|
+
if (err.message.includes('Error creating WebGL context')) {
|
|
29
|
+
log_1.Log.info();
|
|
30
|
+
log_1.Log.warn('💡 You might need to set the OpenGL renderer to "angle" (or "swangle" if rendering on lambda). Learn why at https://www.remotion.dev/docs/three');
|
|
31
|
+
log_1.Log.warn("💡 Check how it's done at https://www.remotion.dev/docs/chromium-flags#--gl");
|
|
32
|
+
}
|
|
33
|
+
if (err.message.includes('The bucket does not allow ACLs')) {
|
|
34
|
+
log_1.Log.info();
|
|
35
|
+
log_1.Log.info(chalk_1.chalk.green('💡 Fix this issue https://remotion.dev/docs/lambda/troubleshooting/bucket-disallows-acl'));
|
|
36
|
+
}
|
|
37
|
+
if (err.message.includes('Minified React error #306')) {
|
|
38
|
+
const componentName = (_a = err.message.match(/<\w+>/)) === null || _a === void 0 ? void 0 : _a[0];
|
|
39
|
+
log_1.Log.info([
|
|
40
|
+
'💡 This error indicates that the component',
|
|
41
|
+
componentName ? `(${componentName})` : null,
|
|
42
|
+
'you are trying to render is not imported correctly.',
|
|
43
|
+
]
|
|
44
|
+
.filter(truthy_1.truthy)
|
|
45
|
+
.join(' '));
|
|
46
|
+
log_1.Log.info();
|
|
47
|
+
log_1.Log.info(' Check the root file and ensure that the component is not undefined.');
|
|
48
|
+
log_1.Log.info(' Oftentimes, this happens if the component is missing the `export` keyword');
|
|
49
|
+
log_1.Log.info(' or if the component was renamed and the import statement not properly adjusted.');
|
|
50
|
+
}
|
|
51
|
+
if (err.message.includes('GLIBC_')) {
|
|
52
|
+
log_1.Log.info('💡 Remotion requires at least Libc 2.35.');
|
|
53
|
+
log_1.Log.info('💡 Get help for this issue: https://github.com/remotion-dev/remotion/issues/2439');
|
|
54
|
+
}
|
|
55
|
+
if (err.message.includes('EBADF')) {
|
|
56
|
+
log_1.Log.info('💡 This error might be fixed by changing your Node version:');
|
|
57
|
+
log_1.Log.info(' https://github.com/remotion-dev/remotion/issues/2452');
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.handleCommonError = handleCommonError;
|
package/dist/index.d.ts
CHANGED
|
@@ -63,24 +63,24 @@ export declare const CliInternals: {
|
|
|
63
63
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
64
64
|
verboseAdvanced: (options: {
|
|
65
65
|
indent: boolean;
|
|
66
|
-
logLevel: "
|
|
66
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
67
67
|
} & {
|
|
68
68
|
tag?: string | undefined;
|
|
69
69
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
70
70
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
71
71
|
infoAdvanced: (options: {
|
|
72
72
|
indent: boolean;
|
|
73
|
-
logLevel: "
|
|
73
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
74
74
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
75
75
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
76
76
|
warnAdvanced: (options: {
|
|
77
77
|
indent: boolean;
|
|
78
|
-
logLevel: "
|
|
78
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
79
79
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
80
80
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
81
81
|
errorAdvanced: (options: {
|
|
82
82
|
indent: boolean;
|
|
83
|
-
logLevel: "
|
|
83
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
84
84
|
} & {
|
|
85
85
|
tag?: string | undefined;
|
|
86
86
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
@@ -106,7 +106,7 @@ export declare const CliInternals: {
|
|
|
106
106
|
numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
|
|
107
107
|
stillFrame: number;
|
|
108
108
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
109
|
-
logLevel: "
|
|
109
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
110
110
|
scale: number;
|
|
111
111
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
112
112
|
overwrite: boolean;
|
|
@@ -119,7 +119,7 @@ export declare const CliInternals: {
|
|
|
119
119
|
videoBitrate: string | null;
|
|
120
120
|
height: number | null;
|
|
121
121
|
width: number | null;
|
|
122
|
-
configFileImageFormat: "
|
|
122
|
+
configFileImageFormat: "none" | "png" | "jpeg" | undefined;
|
|
123
123
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
124
124
|
colorSpace: "default" | "bt709";
|
|
125
125
|
}>;
|
|
@@ -130,7 +130,7 @@ export declare const CliInternals: {
|
|
|
130
130
|
parsedCli: {
|
|
131
131
|
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
132
132
|
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
133
|
-
"image-format": "
|
|
133
|
+
"image-format": "none" | "png" | "jpeg" | "pdf" | "webp";
|
|
134
134
|
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
135
135
|
"x264-preset": "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
136
136
|
"bundle-cache": string;
|
|
@@ -186,7 +186,7 @@ export declare const CliInternals: {
|
|
|
186
186
|
} & {
|
|
187
187
|
_: string[];
|
|
188
188
|
};
|
|
189
|
-
printError: (err: Error, logLevel: "
|
|
189
|
+
printError: (err: Error, logLevel: "error" | "verbose" | "info" | "warn") => Promise<void>;
|
|
190
190
|
formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
|
|
191
191
|
locale: string;
|
|
192
192
|
bits?: boolean | undefined;
|
|
@@ -198,7 +198,7 @@ export declare const CliInternals: {
|
|
|
198
198
|
downloadName: string | null;
|
|
199
199
|
outName: string | null;
|
|
200
200
|
configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
201
|
-
cliFlag: "
|
|
201
|
+
cliFlag: "none" | "png" | "jpeg" | "pdf" | "webp" | null;
|
|
202
202
|
isLambda: boolean;
|
|
203
203
|
fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
204
204
|
}) => {
|
|
@@ -213,8 +213,8 @@ export declare const CliInternals: {
|
|
|
213
213
|
};
|
|
214
214
|
getVideoImageFormat: ({ codec, uiImageFormat, }: {
|
|
215
215
|
codec: import("@remotion/renderer").CodecOrUndefined;
|
|
216
|
-
uiImageFormat: "
|
|
217
|
-
}) => "
|
|
216
|
+
uiImageFormat: "none" | "png" | "jpeg" | null;
|
|
217
|
+
}) => "none" | "png" | "jpeg";
|
|
218
218
|
printCompositions: (compositions: import("remotion").VideoConfig[]) => void;
|
|
219
219
|
getFinalOutputCodec: ({ cliFlag, configFile, downloadName, outName, uiCodec, }: {
|
|
220
220
|
cliFlag: import("@remotion/renderer").CodecOrUndefined;
|
|
@@ -228,7 +228,7 @@ export declare const CliInternals: {
|
|
|
228
228
|
};
|
|
229
229
|
listOfRemotionPackages: string[];
|
|
230
230
|
shouldUseNonOverlayingLogger: ({ logLevel, }: {
|
|
231
|
-
logLevel: "
|
|
231
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
232
232
|
}) => boolean;
|
|
233
233
|
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, }: {
|
|
234
234
|
height: number | null;
|
|
@@ -243,7 +243,7 @@ export declare const CliInternals: {
|
|
|
243
243
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
244
244
|
serveUrlOrWebpackUrl: string;
|
|
245
245
|
indent: boolean;
|
|
246
|
-
logLevel: "
|
|
246
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
247
247
|
serializedInputPropsWithCustomSchema: string;
|
|
248
248
|
server: import("@remotion/renderer").RemotionServer;
|
|
249
249
|
offthreadVideoCacheSizeInBytes: number | null;
|
package/dist/log.d.ts
CHANGED
|
@@ -2,24 +2,24 @@ export declare const Log: {
|
|
|
2
2
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
3
3
|
verboseAdvanced: (options: {
|
|
4
4
|
indent: boolean;
|
|
5
|
-
logLevel: "
|
|
5
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
6
6
|
} & {
|
|
7
7
|
tag?: string | undefined;
|
|
8
8
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
9
9
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
10
10
|
infoAdvanced: (options: {
|
|
11
11
|
indent: boolean;
|
|
12
|
-
logLevel: "
|
|
12
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
13
13
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
14
14
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
15
15
|
warnAdvanced: (options: {
|
|
16
16
|
indent: boolean;
|
|
17
|
-
logLevel: "
|
|
17
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
18
18
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
19
19
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
20
20
|
errorAdvanced: (options: {
|
|
21
21
|
indent: boolean;
|
|
22
|
-
logLevel: "
|
|
22
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
23
23
|
} & {
|
|
24
24
|
tag?: string | undefined;
|
|
25
25
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
@@ -11,5 +11,5 @@ type Range = {
|
|
|
11
11
|
type Ranges = Range[] & {
|
|
12
12
|
type?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare function parseRange(size: number, str: string | string[]): -1 |
|
|
14
|
+
export declare function parseRange(size: number, str: string | string[]): -1 | -2 | Ranges;
|
|
15
15
|
export {};
|
package/dist/setup-cache.js
CHANGED
|
@@ -137,10 +137,12 @@ const bundleOnCli = async ({ fullPath, remotionRoot, publicDir, onProgressCallba
|
|
|
137
137
|
progress: 1,
|
|
138
138
|
doneIn: Date.now() - bundleStartTime,
|
|
139
139
|
};
|
|
140
|
+
log_1.Log.verboseAdvanced({ logLevel, indent }, 'Bundling done in', bundlingState.doneIn + 'ms');
|
|
140
141
|
copyingState = {
|
|
141
142
|
...copyingState,
|
|
142
143
|
doneIn: copyStart ? Date.now() - copyStart : 0,
|
|
143
144
|
};
|
|
145
|
+
log_1.Log.verboseAdvanced({ logLevel, indent }, 'Copying done in ', copyingState.doneIn + 'ms');
|
|
144
146
|
updateProgress(true);
|
|
145
147
|
log_1.Log.verboseAdvanced({ indent, logLevel }, 'Bundled under', bundled);
|
|
146
148
|
const cacheExistedAfter = bundler_1.BundlerInternals.cacheExists(remotionRoot, 'production', hash) === 'exists';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.31",
|
|
4
4
|
"description": "CLI for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"prompts": "2.4.1",
|
|
36
36
|
"semver": "7.5.3",
|
|
37
37
|
"source-map": "0.6.1",
|
|
38
|
-
"@remotion/bundler": "4.0.
|
|
39
|
-
"@remotion/
|
|
40
|
-
"remotion": "4.0.
|
|
41
|
-
"
|
|
42
|
-
"@remotion/
|
|
38
|
+
"@remotion/bundler": "4.0.31",
|
|
39
|
+
"@remotion/player": "4.0.31",
|
|
40
|
+
"@remotion/renderer": "4.0.31",
|
|
41
|
+
"remotion": "4.0.31",
|
|
42
|
+
"@remotion/media-utils": "4.0.31"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"react-dom": "^18.0.0",
|
|
66
66
|
"vitest": "0.31.1",
|
|
67
67
|
"zod": "^3.21.4",
|
|
68
|
-
"@remotion/zod-types": "4.0.
|
|
69
|
-
"@remotion/tailwind": "4.0.
|
|
68
|
+
"@remotion/zod-types": "4.0.31",
|
|
69
|
+
"@remotion/tailwind": "4.0.31"
|
|
70
70
|
},
|
|
71
71
|
"keywords": [
|
|
72
72
|
"remotion",
|