@remotion/cli 4.0.25 → 4.0.27
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 +2 -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/editor/components/CurrentComposition.d.ts +1 -0
- package/dist/editor/components/NewComposition/NewCompCode.d.ts +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/RenderModal/human-readable-codec.d.ts +1 -1
- package/dist/editor/components/UpdateCheck.d.ts +1 -0
- package/dist/editor/helpers/colors.d.ts +1 -1
- package/dist/editor/helpers/convert-env-variables.d.ts +2 -8
- package/dist/editor/helpers/render-modal-sections.d.ts +1 -0
- package/dist/editor/icons/Checkmark.d.ts +1 -0
- package/dist/get-cli-options.d.ts +2 -2
- package/dist/get-cli-options.js +5 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +3 -3
- package/dist/log.d.ts +4 -4
- package/dist/preview-server/dev-middleware/range-parser.d.ts +1 -1
- package/dist/preview-server/render-queue/queue.js +2 -2
- package/dist/preview-server/routes.d.ts +1 -0
- package/package.json +8 -8
- package/dist/config/presets-profile.d.ts +0 -3
- package/dist/config/presets-profile.js +0 -12
- package/dist/handle-common-errors.d.ts +0 -2
- package/dist/handle-common-errors.js +0 -60
|
@@ -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
|
@@ -300,7 +300,7 @@ export declare const ConfigInternals: {
|
|
|
300
300
|
getShouldOutputImageSequence: (frameRange: FrameRange | null) => boolean;
|
|
301
301
|
getDotEnvLocation: () => string | null;
|
|
302
302
|
getUserPreferredStillImageFormat: () => "png" | "jpeg" | "pdf" | "webp" | undefined;
|
|
303
|
-
getUserPreferredVideoImageFormat: () => "
|
|
303
|
+
getUserPreferredVideoImageFormat: () => "none" | "png" | "jpeg" | undefined;
|
|
304
304
|
getWebpackOverrideFn: () => WebpackOverrideFn;
|
|
305
305
|
getWebpackCaching: () => boolean;
|
|
306
306
|
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(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;
|
|
@@ -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)";
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export declare const envVariablesObjectToArray: (envVariables: Record<string, string>) => [
|
|
2
|
-
|
|
3
|
-
string
|
|
4
|
-
][];
|
|
5
|
-
export declare const envVariablesArrayToObject: (envVariables: [
|
|
6
|
-
string,
|
|
7
|
-
string
|
|
8
|
-
][]) => Record<string, string>;
|
|
1
|
+
export declare const envVariablesObjectToArray: (envVariables: Record<string, string>) => [string, string][];
|
|
2
|
+
export declare const envVariablesArrayToObject: (envVariables: [string, string][]) => Record<string, string>;
|
|
@@ -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,6 +34,6 @@ 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
|
}>;
|
package/dist/get-cli-options.js
CHANGED
|
@@ -91,7 +91,11 @@ const getCliOptions = async (options) => {
|
|
|
91
91
|
const concurrency = config_1.ConfigInternals.getConcurrency();
|
|
92
92
|
const height = config_1.ConfigInternals.getHeight();
|
|
93
93
|
const width = config_1.ConfigInternals.getWidth();
|
|
94
|
-
renderer_1.RenderInternals.validateConcurrency(
|
|
94
|
+
renderer_1.RenderInternals.validateConcurrency({
|
|
95
|
+
value: concurrency,
|
|
96
|
+
setting: 'concurrency',
|
|
97
|
+
checkIfValidForCurrentMachine: false,
|
|
98
|
+
});
|
|
95
99
|
return {
|
|
96
100
|
puppeteerTimeout: config_1.ConfigInternals.getCurrentPuppeteerTimeout(),
|
|
97
101
|
concurrency,
|
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
|
}>;
|
|
125
125
|
loadConfig: (remotionRoot: string) => Promise<string | null>;
|
|
@@ -129,7 +129,7 @@ export declare const CliInternals: {
|
|
|
129
129
|
parsedCli: {
|
|
130
130
|
"browser-executable": import("@remotion/renderer").BrowserExecutable;
|
|
131
131
|
"pixel-format": "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
132
|
-
"image-format": "
|
|
132
|
+
"image-format": "none" | "png" | "jpeg" | "pdf" | "webp";
|
|
133
133
|
"prores-profile": "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy";
|
|
134
134
|
"x264-preset": "medium" | "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "slow" | "slower" | "veryslow" | "placebo";
|
|
135
135
|
"bundle-cache": string;
|
|
@@ -184,7 +184,7 @@ export declare const CliInternals: {
|
|
|
184
184
|
} & {
|
|
185
185
|
_: string[];
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
printError: (err: Error, logLevel: "error" | "verbose" | "info" | "warn") => Promise<void>;
|
|
188
188
|
formatBytes: (number: number, options?: Intl.NumberFormatOptions & {
|
|
189
189
|
locale: string;
|
|
190
190
|
bits?: boolean | undefined;
|
|
@@ -196,7 +196,7 @@ export declare const CliInternals: {
|
|
|
196
196
|
downloadName: string | null;
|
|
197
197
|
outName: string | null;
|
|
198
198
|
configImageFormat: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
199
|
-
cliFlag: "
|
|
199
|
+
cliFlag: "none" | "png" | "jpeg" | "pdf" | "webp" | null;
|
|
200
200
|
isLambda: boolean;
|
|
201
201
|
fromUi: "png" | "jpeg" | "pdf" | "webp" | null;
|
|
202
202
|
}) => {
|
|
@@ -211,8 +211,8 @@ export declare const CliInternals: {
|
|
|
211
211
|
};
|
|
212
212
|
getVideoImageFormat: ({ codec, uiImageFormat, }: {
|
|
213
213
|
codec: import("@remotion/renderer").CodecOrUndefined;
|
|
214
|
-
uiImageFormat: "
|
|
215
|
-
}) => "
|
|
214
|
+
uiImageFormat: "none" | "png" | "jpeg" | null;
|
|
215
|
+
}) => "none" | "png" | "jpeg";
|
|
216
216
|
printCompositions: (compositions: import("remotion").VideoConfig[]) => void;
|
|
217
217
|
getFinalOutputCodec: ({ cliFlag, configFile, downloadName, outName, uiCodec, }: {
|
|
218
218
|
cliFlag: import("@remotion/renderer").CodecOrUndefined;
|
|
@@ -226,7 +226,7 @@ export declare const CliInternals: {
|
|
|
226
226
|
};
|
|
227
227
|
listOfRemotionPackages: string[];
|
|
228
228
|
shouldUseNonOverlayingLogger: ({ logLevel, }: {
|
|
229
|
-
logLevel: "
|
|
229
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
230
230
|
}) => boolean;
|
|
231
231
|
getCompositionWithDimensionOverride: ({ height, width, args, compositionIdFromUi, chromiumOptions, envVariables, port, puppeteerInstance, timeoutInMilliseconds, browserExecutable, serveUrlOrWebpackUrl, indent, serializedInputPropsWithCustomSchema, logLevel, server, offthreadVideoCacheSizeInBytes, }: {
|
|
232
232
|
height: number | null;
|
|
@@ -241,7 +241,7 @@ export declare const CliInternals: {
|
|
|
241
241
|
browserExecutable: import("@remotion/renderer").BrowserExecutable;
|
|
242
242
|
serveUrlOrWebpackUrl: string;
|
|
243
243
|
indent: boolean;
|
|
244
|
-
logLevel: "
|
|
244
|
+
logLevel: "error" | "verbose" | "info" | "warn";
|
|
245
245
|
serializedInputPropsWithCustomSchema: string;
|
|
246
246
|
server: import("@remotion/renderer").RemotionServer;
|
|
247
247
|
offthreadVideoCacheSizeInBytes: number | null;
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,6 @@ const get_cli_options_1 = require("./get-cli-options");
|
|
|
35
35
|
const get_composition_with_dimension_override_1 = require("./get-composition-with-dimension-override");
|
|
36
36
|
const get_config_file_name_1 = require("./get-config-file-name");
|
|
37
37
|
const get_final_output_codec_1 = require("./get-final-output-codec");
|
|
38
|
-
const handle_common_errors_1 = require("./handle-common-errors");
|
|
39
38
|
const image_formats_1 = require("./image-formats");
|
|
40
39
|
const initialize_cli_1 = require("./initialize-cli");
|
|
41
40
|
const lambda_command_1 = require("./lambda-command");
|
|
@@ -44,6 +43,7 @@ const log_1 = require("./log");
|
|
|
44
43
|
const make_progress_bar_1 = require("./make-progress-bar");
|
|
45
44
|
const parse_command_line_1 = require("./parse-command-line");
|
|
46
45
|
const print_compositions_1 = require("./print-compositions");
|
|
46
|
+
const print_error_1 = require("./print-error");
|
|
47
47
|
const print_help_1 = require("./print-help");
|
|
48
48
|
const progress_bar_1 = require("./progress-bar");
|
|
49
49
|
const render_1 = require("./render");
|
|
@@ -116,7 +116,7 @@ const cli = async () => {
|
|
|
116
116
|
}
|
|
117
117
|
catch (err) {
|
|
118
118
|
log_1.Log.info();
|
|
119
|
-
await (0,
|
|
119
|
+
await (0, print_error_1.printError)(err, config_1.ConfigInternals.Logging.getLogLevel());
|
|
120
120
|
(0, cleanup_before_quit_1.cleanupBeforeQuit)();
|
|
121
121
|
process.exit(1);
|
|
122
122
|
}
|
|
@@ -138,7 +138,7 @@ exports.CliInternals = {
|
|
|
138
138
|
BooleanFlags: parse_command_line_1.BooleanFlags,
|
|
139
139
|
quietFlagProvided: parse_command_line_1.quietFlagProvided,
|
|
140
140
|
parsedCli: parse_command_line_1.parsedCli,
|
|
141
|
-
|
|
141
|
+
printError: print_error_1.printError,
|
|
142
142
|
formatBytes: format_bytes_1.formatBytes,
|
|
143
143
|
getFileSizeDownloadBar: download_progress_1.getFileSizeDownloadBar,
|
|
144
144
|
determineFinalStillImageFormat: determine_image_format_1.determineFinalStillImageFormat,
|
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 {};
|
|
@@ -8,8 +8,8 @@ const node_path_1 = __importDefault(require("node:path"));
|
|
|
8
8
|
const chalk_1 = require("../../chalk");
|
|
9
9
|
const config_1 = require("../../config");
|
|
10
10
|
const file_watcher_1 = require("../../file-watcher");
|
|
11
|
-
const handle_common_errors_1 = require("../../handle-common-errors");
|
|
12
11
|
const log_1 = require("../../log");
|
|
12
|
+
const print_error_1 = require("../../print-error");
|
|
13
13
|
const progress_types_1 = require("../../progress-types");
|
|
14
14
|
const live_events_1 = require("../live-events");
|
|
15
15
|
const process_still_1 = require("./process-still");
|
|
@@ -196,7 +196,7 @@ const processJobIfPossible = async ({ remotionRoot, entryPoint, }) => {
|
|
|
196
196
|
},
|
|
197
197
|
};
|
|
198
198
|
});
|
|
199
|
-
await (0,
|
|
199
|
+
await (0, print_error_1.printError)(err, config_1.ConfigInternals.Logging.getLogLevel());
|
|
200
200
|
(0, live_events_1.waitForLiveEventsListener)().then((listener) => {
|
|
201
201
|
listener.sendEventToClient({
|
|
202
202
|
type: 'render-job-failed',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
3
|
import type { LiveEventsServer } from './live-events';
|
|
3
4
|
export declare const handleRoutes: ({ hash, hashPrefix, request, response, liveEventsServer, getCurrentInputProps, getEnvVariables, remotionRoot, entryPoint, publicDir, }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.27",
|
|
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/media-utils": "4.0.
|
|
40
|
-
"@remotion/player": "4.0.
|
|
41
|
-
"
|
|
42
|
-
"remotion": "4.0.
|
|
38
|
+
"@remotion/bundler": "4.0.27",
|
|
39
|
+
"@remotion/media-utils": "4.0.27",
|
|
40
|
+
"@remotion/player": "4.0.27",
|
|
41
|
+
"remotion": "4.0.27",
|
|
42
|
+
"@remotion/renderer": "4.0.27"
|
|
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/
|
|
69
|
-
"@remotion/
|
|
68
|
+
"@remotion/tailwind": "4.0.27",
|
|
69
|
+
"@remotion/zod-types": "4.0.27"
|
|
70
70
|
},
|
|
71
71
|
"keywords": [
|
|
72
72
|
"remotion",
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,60 +0,0 @@
|
|
|
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;
|