@remotion/cli 4.0.65 → 4.0.67
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/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/log.d.ts +1 -1
- package/dist/editor/components/AudioWaveform.js +0 -1
- package/dist/editor/components/NewComposition/CopyHint.js +1 -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/OpenEditorButton.js +1 -0
- package/dist/editor/components/RenderModal/DataEditor.js +1 -0
- package/dist/editor/components/RenderModal/RenderStatusModal.js +0 -2
- package/dist/editor/components/RenderModal/human-readable-codec.d.ts +1 -1
- package/dist/editor/components/RenderQueue/RenderQueueRemoveItem.js +0 -1
- package/dist/editor/components/Timeline/TimelineVideoInfo.js +1 -0
- package/dist/editor/components/UpdateCheck.js +2 -0
- package/dist/editor/helpers/colors.d.ts +1 -1
- package/dist/editor/helpers/create-folder-tree.js +1 -0
- package/dist/editor/helpers/editor-ruler.js +0 -1
- package/dist/editor/helpers/use-keybinding.js +1 -0
- package/dist/editor/helpers/use-menu-structure.js +1 -0
- package/dist/get-cli-options.d.ts +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/package.json +8 -8
|
@@ -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
|
@@ -329,7 +329,7 @@ export declare const ConfigInternals: {
|
|
|
329
329
|
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
|
|
330
330
|
getDotEnvLocation: () => string | null;
|
|
331
331
|
getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
332
|
-
getUserPreferredVideoImageFormat: () => "
|
|
332
|
+
getUserPreferredVideoImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
333
333
|
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
334
334
|
getWebpackCaching: () => boolean;
|
|
335
335
|
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;
|
|
@@ -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(
|
|
16
|
-
export declare const RemotionInput: React.ForwardRefExoticComponent<Pick<Props, "
|
|
15
|
+
}) => "#ff3232" | "hsla(0, 0%, 100%, 0.15)" | "#f1c40f" | "rgba(255, 255, 255, 0.05)" | "rgba(0, 0, 0, 0.6)";
|
|
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 {};
|
|
@@ -231,6 +231,7 @@ const DataEditor = ({ unresolvedComposition, inputProps, setInputProps, mayShowS
|
|
|
231
231
|
(0, actions_1.updateDefaultProps)(unresolvedComposition.id, updater((_a = unresolvedComposition.defaultProps) !== null && _a !== void 0 ? _a : {}), (0, extract_enum_json_paths_1.extractEnumJsonPaths)(schema, z, []))
|
|
232
232
|
.then((response) => {
|
|
233
233
|
if (!response.success) {
|
|
234
|
+
// eslint-disable-next-line no-console
|
|
234
235
|
console.log(response.stack);
|
|
235
236
|
(0, NotificationCenter_1.sendErrorNotification)(`Cannot update default props: ${response.reason}. See console for more information.`);
|
|
236
237
|
}
|
|
@@ -55,13 +55,11 @@ const RenderStatusModal = ({ jobId }) => {
|
|
|
55
55
|
setSelectedModal(null);
|
|
56
56
|
(0, actions_1.removeRenderJob)(job).catch((err) => {
|
|
57
57
|
(0, NotificationCenter_1.sendErrorNotification)(`Could not remove job: ${err.message}`);
|
|
58
|
-
console.log(err);
|
|
59
58
|
});
|
|
60
59
|
}, [job, setSelectedModal]);
|
|
61
60
|
const onClickOnCancel = (0, react_1.useCallback)(() => {
|
|
62
61
|
(0, actions_1.cancelRenderJob)(job).catch((err) => {
|
|
63
62
|
(0, NotificationCenter_1.sendErrorNotification)(`Could not cancel job: ${err.message}`);
|
|
64
|
-
console.log(err);
|
|
65
63
|
});
|
|
66
64
|
}, [job]);
|
|
67
65
|
if (!job || job.status === 'idle') {
|
|
@@ -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;
|
|
@@ -37,6 +37,7 @@ const UpdateCheck = () => {
|
|
|
37
37
|
if (err.message.includes('aborted')) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
+
// eslint-disable-next-line no-console
|
|
40
41
|
console.log('Could not check for updates', err);
|
|
41
42
|
});
|
|
42
43
|
return controller;
|
|
@@ -54,6 +55,7 @@ const UpdateCheck = () => {
|
|
|
54
55
|
if (err.message.includes('aborted')) {
|
|
55
56
|
return;
|
|
56
57
|
}
|
|
58
|
+
// eslint-disable-next-line no-console
|
|
57
59
|
console.log('Could not check for bugs in this version', err);
|
|
58
60
|
});
|
|
59
61
|
return controller;
|
|
@@ -21,4 +21,4 @@ export declare const SELECTED_GUIDE = "#d22d3a";
|
|
|
21
21
|
export declare const getBackgroundFromHoverState: ({ selected, hovered, }: {
|
|
22
22
|
selected: boolean;
|
|
23
23
|
hovered: boolean;
|
|
24
|
-
}) => "transparent" | "hsla(0, 0%, 100%, 0.
|
|
24
|
+
}) => "transparent" | "hsla(0, 0%, 100%, 0.25)" | "hsla(0, 0%, 100%, 0.15)" | "rgba(255, 255, 255, 0.06)";
|
|
@@ -72,6 +72,7 @@ const findItemListToPush = (items, folderName, parentName) => {
|
|
|
72
72
|
}
|
|
73
73
|
const folder = doesFolderExist(items, folderName, parentName);
|
|
74
74
|
if (!folder) {
|
|
75
|
+
// eslint-disable-next-line no-console
|
|
75
76
|
console.log({ items, folderName, parentName });
|
|
76
77
|
throw new Error('did not find folder ' + folderName);
|
|
77
78
|
}
|
|
@@ -96,7 +96,6 @@ const drawMarkingOnRulerCanvas = ({ scale, points, startMarking, originOffset, m
|
|
|
96
96
|
context.strokeStyle = colors_1.RULER_COLOR;
|
|
97
97
|
context.lineWidth = 1;
|
|
98
98
|
context.beginPath();
|
|
99
|
-
console.log(points);
|
|
100
99
|
points.forEach((point) => {
|
|
101
100
|
context.strokeStyle = colors_1.RULER_COLOR;
|
|
102
101
|
context.lineWidth = 1;
|
|
@@ -5,6 +5,7 @@ const react_1 = require("react");
|
|
|
5
5
|
const keybindings_1 = require("../state/keybindings");
|
|
6
6
|
const z_index_1 = require("../state/z-index");
|
|
7
7
|
if (!process.env.KEYBOARD_SHORTCUTS_ENABLED) {
|
|
8
|
+
// eslint-disable-next-line no-console
|
|
8
9
|
console.warn('Keyboard shortcuts disabled either due to: a) --disable-keyboard-shortcuts being passed b) Config.setKeyboardShortcutsEnabled(false) being set or c) a Remotion version mismatch.');
|
|
9
10
|
}
|
|
10
11
|
const areKeyboardShortcutsDisabled = () => {
|
|
@@ -22,7 +22,7 @@ export declare const getCliOptions: (options: {
|
|
|
22
22
|
numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
|
|
23
23
|
stillFrame: number;
|
|
24
24
|
browserExecutable: BrowserExecutable;
|
|
25
|
-
logLevel: "
|
|
25
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
26
26
|
scale: number;
|
|
27
27
|
chromiumOptions: ChromiumOptions;
|
|
28
28
|
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
|
deleteAfter: ("1-day" | "3-days" | "7-days" | "30-days") | null;
|
|
40
40
|
colorSpace: "default" | "bt709";
|
package/dist/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare const CliInternals: {
|
|
|
74
74
|
isLambda: boolean;
|
|
75
75
|
type: "still" | "series" | "get-compositions";
|
|
76
76
|
remotionRoot: string;
|
|
77
|
-
logLevel: "
|
|
77
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
78
78
|
}) => Promise<{
|
|
79
79
|
puppeteerTimeout: number;
|
|
80
80
|
concurrency: string | number | null;
|
|
@@ -92,7 +92,7 @@ export declare const CliInternals: {
|
|
|
92
92
|
numberOfGifLoops: import("./config/number-of-gif-loops").Loop;
|
|
93
93
|
stillFrame: number;
|
|
94
94
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
95
|
-
logLevel: "
|
|
95
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
96
96
|
scale: number;
|
|
97
97
|
chromiumOptions: import("@remotion/renderer").ChromiumOptions;
|
|
98
98
|
overwrite: boolean;
|
|
@@ -104,19 +104,19 @@ export declare const CliInternals: {
|
|
|
104
104
|
videoBitrate: string | null;
|
|
105
105
|
height: number | null;
|
|
106
106
|
width: number | null;
|
|
107
|
-
configFileImageFormat: "
|
|
107
|
+
configFileImageFormat: "none" | "png" | "jpeg" | undefined;
|
|
108
108
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
109
109
|
deleteAfter: ("1-day" | "3-days" | "7-days" | "30-days") | null;
|
|
110
110
|
colorSpace: "default" | "bt709";
|
|
111
111
|
}>;
|
|
112
112
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
113
|
-
initializeCli: (remotionRoot: string) => Promise<"
|
|
113
|
+
initializeCli: (remotionRoot: string) => Promise<"error" | "verbose" | "info" | "warn">;
|
|
114
114
|
BooleanFlags: string[];
|
|
115
115
|
quietFlagProvided: () => boolean;
|
|
116
116
|
parsedCli: {
|
|
117
117
|
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
118
118
|
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
119
|
-
"image-format": "
|
|
119
|
+
"image-format": "none" | "png" | "jpeg" | "pdf" | "webp";
|
|
120
120
|
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
121
121
|
"x264-preset": "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
122
122
|
"bundle-cache": string;
|
|
@@ -175,7 +175,7 @@ export declare const CliInternals: {
|
|
|
175
175
|
} & {
|
|
176
176
|
_: string[];
|
|
177
177
|
};
|
|
178
|
-
printError: (err: Error, logLevel: "
|
|
178
|
+
printError: (err: Error, logLevel: "error" | "verbose" | "info" | "warn") => Promise<void>;
|
|
179
179
|
formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
|
|
180
180
|
locale: string;
|
|
181
181
|
bits?: boolean | undefined;
|
|
@@ -187,7 +187,7 @@ export declare const CliInternals: {
|
|
|
187
187
|
downloadName: string | null;
|
|
188
188
|
outName: string | null;
|
|
189
189
|
configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
190
|
-
cliFlag: "
|
|
190
|
+
cliFlag: "none" | "png" | "jpeg" | "pdf" | "webp" | null;
|
|
191
191
|
isLambda: boolean;
|
|
192
192
|
fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
193
193
|
}) => {
|
|
@@ -195,15 +195,15 @@ export declare const CliInternals: {
|
|
|
195
195
|
source: string;
|
|
196
196
|
};
|
|
197
197
|
minimist: typeof minimist;
|
|
198
|
-
findEntryPoint: (args: string[], remotionRoot: string, logLevel: "
|
|
198
|
+
findEntryPoint: (args: string[], remotionRoot: string, logLevel: "error" | "verbose" | "info" | "warn") => {
|
|
199
199
|
file: string | null;
|
|
200
200
|
remainingArgs: string[];
|
|
201
201
|
reason: string;
|
|
202
202
|
};
|
|
203
203
|
getVideoImageFormat: ({ codec, uiImageFormat, }: {
|
|
204
204
|
codec: import("@remotion/renderer").CodecOrUndefined;
|
|
205
|
-
uiImageFormat: "
|
|
206
|
-
}) => "
|
|
205
|
+
uiImageFormat: "none" | "png" | "jpeg" | null;
|
|
206
|
+
}) => "none" | "png" | "jpeg";
|
|
207
207
|
printCompositions: (compositions: import("remotion").VideoConfig[]) => void;
|
|
208
208
|
getFinalOutputCodec: ({ cliFlag, configFile, downloadName, outName, uiCodec, compositionCodec, }: {
|
|
209
209
|
cliFlag: import("@remotion/renderer").CodecOrUndefined;
|
|
@@ -218,7 +218,7 @@ export declare const CliInternals: {
|
|
|
218
218
|
};
|
|
219
219
|
listOfRemotionPackages: string[];
|
|
220
220
|
shouldUseNonOverlayingLogger: ({ logLevel, }: {
|
|
221
|
-
logLevel: "
|
|
221
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
222
222
|
}) => boolean;
|
|
223
223
|
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, }: {
|
|
224
224
|
height: number | null;
|
|
@@ -233,7 +233,7 @@ export declare const CliInternals: {
|
|
|
233
233
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
234
234
|
serveUrlOrWebpackUrl: string;
|
|
235
235
|
indent: boolean;
|
|
236
|
-
logLevel: "
|
|
236
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
237
237
|
serializedInputPropsWithCustomSchema: string;
|
|
238
238
|
server: import("@remotion/renderer").RemotionServer;
|
|
239
239
|
offthreadVideoCacheSizeInBytes: number | null;
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.67",
|
|
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/
|
|
39
|
-
"@remotion/
|
|
40
|
-
"
|
|
41
|
-
"remotion": "4.0.
|
|
42
|
-
"@remotion/
|
|
38
|
+
"@remotion/media-utils": "4.0.67",
|
|
39
|
+
"@remotion/player": "4.0.67",
|
|
40
|
+
"remotion": "4.0.67",
|
|
41
|
+
"@remotion/renderer": "4.0.67",
|
|
42
|
+
"@remotion/bundler": "4.0.67"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=16.8.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"react-dom": "18.2.0",
|
|
66
66
|
"vitest": "0.31.1",
|
|
67
67
|
"zod": "^3.22.3",
|
|
68
|
-
"@remotion/
|
|
69
|
-
"@remotion/
|
|
68
|
+
"@remotion/tailwind": "4.0.67",
|
|
69
|
+
"@remotion/zod-types": "4.0.67"
|
|
70
70
|
},
|
|
71
71
|
"keywords": [
|
|
72
72
|
"remotion",
|