@remotion/renderer 4.0.425 → 4.0.426

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.
Files changed (49) hide show
  1. package/dist/client.d.ts +289 -0
  2. package/dist/esm/client.mjs +1426 -619
  3. package/dist/esm/index.mjs +12 -7
  4. package/dist/index.d.ts +3 -1
  5. package/dist/options/browser.d.ts +19 -0
  6. package/dist/options/browser.js +30 -0
  7. package/dist/options/bundle-cache.d.ts +16 -0
  8. package/dist/options/bundle-cache.js +34 -0
  9. package/dist/options/concurrency.js +22 -1
  10. package/dist/options/config.d.ts +19 -0
  11. package/dist/options/config.js +29 -0
  12. package/dist/options/env-file.d.ts +19 -0
  13. package/dist/options/env-file.js +38 -0
  14. package/dist/options/experimental-client-side-rendering.js +2 -3
  15. package/dist/options/frames.d.ts +17 -0
  16. package/dist/options/frames.js +83 -0
  17. package/dist/options/image-sequence.d.ts +16 -0
  18. package/dist/options/image-sequence.js +30 -0
  19. package/dist/options/index.d.ts +289 -0
  20. package/dist/options/index.js +32 -0
  21. package/dist/options/no-open.d.ts +19 -0
  22. package/dist/options/no-open.js +30 -0
  23. package/dist/options/out-dir.d.ts +19 -0
  24. package/dist/options/out-dir.js +41 -0
  25. package/dist/options/package-manager.d.ts +19 -0
  26. package/dist/options/package-manager.js +47 -0
  27. package/dist/options/port.d.ts +19 -0
  28. package/dist/options/port.js +36 -0
  29. package/dist/options/props.d.ts +19 -0
  30. package/dist/options/props.js +33 -0
  31. package/dist/options/rspack.d.ts +16 -0
  32. package/dist/options/rspack.js +31 -0
  33. package/dist/options/runs.d.ts +16 -0
  34. package/dist/options/runs.js +37 -0
  35. package/dist/options/still-frame.d.ts +19 -0
  36. package/dist/options/still-frame.js +51 -0
  37. package/dist/options/version-flag.d.ts +19 -0
  38. package/dist/options/version-flag.js +29 -0
  39. package/dist/options/webpack-poll.d.ts +19 -0
  40. package/dist/options/webpack-poll.js +43 -0
  41. package/dist/prespawn-ffmpeg.d.ts +1 -0
  42. package/dist/prespawn-ffmpeg.js +4 -3
  43. package/dist/render-frames.d.ts +43 -3
  44. package/dist/render-media.d.ts +4 -2
  45. package/dist/render-media.js +4 -2
  46. package/dist/render-still.d.ts +1 -0
  47. package/dist/render-still.js +5 -1
  48. package/dist/select-composition.d.ts +25 -3
  49. package/package.json +13 -13
@@ -479,6 +479,41 @@ export declare const allOptions: {
479
479
  setConfig: (should: boolean) => void;
480
480
  id: "repro";
481
481
  };
482
+ runsOption: {
483
+ name: string;
484
+ cliFlag: "runs";
485
+ description: () => import("react/jsx-runtime").JSX.Element;
486
+ ssrName: null;
487
+ docLink: string;
488
+ type: number;
489
+ getValue: ({ commandLine }: {
490
+ commandLine: Record<string, unknown>;
491
+ }) => {
492
+ value: number;
493
+ source: string;
494
+ };
495
+ setConfig: (value: number) => void;
496
+ id: "runs";
497
+ };
498
+ noOpenOption: {
499
+ name: string;
500
+ cliFlag: "no-open";
501
+ description: () => import("react/jsx-runtime").JSX.Element;
502
+ ssrName: null;
503
+ docLink: string;
504
+ type: boolean;
505
+ getValue: ({ commandLine }: {
506
+ commandLine: Record<string, unknown>;
507
+ }) => {
508
+ value: true;
509
+ source: string;
510
+ } | {
511
+ value: false;
512
+ source: string;
513
+ };
514
+ setConfig: (shouldOpen: boolean) => void;
515
+ id: "no-open";
516
+ };
482
517
  pixelFormatOption: {
483
518
  name: string;
484
519
  cliFlag: "pixel-format";
@@ -1015,6 +1050,22 @@ export declare const allOptions: {
1015
1050
  setConfig(value: boolean): void;
1016
1051
  id: "disable-keyboard-shortcuts";
1017
1052
  };
1053
+ framesOption: {
1054
+ name: string;
1055
+ cliFlag: "frames";
1056
+ description: () => import("react/jsx-runtime").JSX.Element;
1057
+ ssrName: "frameRange";
1058
+ docLink: string;
1059
+ type: import("..").FrameRange | null;
1060
+ getValue: ({ commandLine }: {
1061
+ commandLine: Record<string, unknown>;
1062
+ }) => {
1063
+ source: string;
1064
+ value: import("..").FrameRange | null;
1065
+ };
1066
+ setConfig: (value: import("..").FrameRange | null) => void;
1067
+ id: "frames";
1068
+ };
1018
1069
  forceNewStudioOption: {
1019
1070
  name: string;
1020
1071
  cliFlag: "force-new";
@@ -1196,6 +1247,244 @@ export declare const allOptions: {
1196
1247
  setConfig: (duration: number | null) => void;
1197
1248
  id: "duration";
1198
1249
  };
1250
+ rspackOption: {
1251
+ name: string;
1252
+ cliFlag: "experimental-rspack";
1253
+ description: () => import("react/jsx-runtime").JSX.Element;
1254
+ ssrName: null;
1255
+ docLink: null;
1256
+ type: boolean;
1257
+ getValue: ({ commandLine }: {
1258
+ commandLine: Record<string, unknown>;
1259
+ }) => {
1260
+ value: boolean;
1261
+ source: string;
1262
+ };
1263
+ setConfig(value: boolean): void;
1264
+ id: "experimental-rspack";
1265
+ };
1266
+ outDirOption: {
1267
+ name: string;
1268
+ cliFlag: "out-dir";
1269
+ description: () => import("react/jsx-runtime").JSX.Element;
1270
+ ssrName: "outDir";
1271
+ docLink: string;
1272
+ getValue: ({ commandLine }: {
1273
+ commandLine: Record<string, unknown>;
1274
+ }) => {
1275
+ source: string;
1276
+ value: string;
1277
+ } | {
1278
+ source: string;
1279
+ value: null;
1280
+ };
1281
+ setConfig: (value: string | null) => void;
1282
+ type: string | null;
1283
+ id: "out-dir";
1284
+ };
1285
+ packageManagerOption: {
1286
+ name: string;
1287
+ cliFlag: "package-manager";
1288
+ description: () => import("react/jsx-runtime").JSX.Element;
1289
+ ssrName: "packageManager";
1290
+ docLink: string;
1291
+ getValue: ({ commandLine }: {
1292
+ commandLine: Record<string, unknown>;
1293
+ }) => {
1294
+ source: string;
1295
+ value: string;
1296
+ } | {
1297
+ source: string;
1298
+ value: null;
1299
+ };
1300
+ setConfig: (value: string | null) => void;
1301
+ type: string | null;
1302
+ id: "package-manager";
1303
+ };
1304
+ webpackPollOption: {
1305
+ name: string;
1306
+ cliFlag: "webpack-poll";
1307
+ description: () => import("react/jsx-runtime").JSX.Element;
1308
+ ssrName: null;
1309
+ docLink: string;
1310
+ getValue: ({ commandLine }: {
1311
+ commandLine: Record<string, unknown>;
1312
+ }) => {
1313
+ source: string;
1314
+ value: number;
1315
+ } | {
1316
+ source: string;
1317
+ value: null;
1318
+ };
1319
+ setConfig: (value: number | null) => void;
1320
+ type: number | null;
1321
+ id: "webpack-poll";
1322
+ };
1323
+ stillFrameOption: {
1324
+ name: string;
1325
+ cliFlag: "frame";
1326
+ description: () => import("react/jsx-runtime").JSX.Element;
1327
+ ssrName: "frame";
1328
+ docLink: string;
1329
+ getValue: ({ commandLine }: {
1330
+ commandLine: Record<string, unknown>;
1331
+ }) => {
1332
+ source: string;
1333
+ value: number;
1334
+ } | {
1335
+ source: string;
1336
+ value: null;
1337
+ };
1338
+ setConfig: (value: number | null) => void;
1339
+ type: number | null;
1340
+ id: "frame";
1341
+ };
1342
+ imageSequenceOption: {
1343
+ name: string;
1344
+ cliFlag: "sequence";
1345
+ description: () => import("react/jsx-runtime").JSX.Element;
1346
+ ssrName: null;
1347
+ docLink: string;
1348
+ getValue: ({ commandLine }: {
1349
+ commandLine: Record<string, unknown>;
1350
+ }) => {
1351
+ source: string;
1352
+ value: boolean;
1353
+ };
1354
+ setConfig: (value: boolean) => void;
1355
+ type: boolean;
1356
+ id: "sequence";
1357
+ };
1358
+ versionFlagOption: {
1359
+ name: string;
1360
+ cliFlag: "version";
1361
+ description: () => import("react/jsx-runtime").JSX.Element;
1362
+ ssrName: null;
1363
+ docLink: string;
1364
+ getValue: ({ commandLine }: {
1365
+ commandLine: Record<string, unknown>;
1366
+ }) => {
1367
+ source: string;
1368
+ value: string;
1369
+ } | {
1370
+ source: string;
1371
+ value: null;
1372
+ };
1373
+ setConfig: () => never;
1374
+ type: string | null;
1375
+ id: "version";
1376
+ };
1377
+ bundleCacheOption: {
1378
+ name: string;
1379
+ cliFlag: "bundle-cache";
1380
+ description: () => import("react/jsx-runtime").JSX.Element;
1381
+ ssrName: null;
1382
+ docLink: string;
1383
+ getValue: ({ commandLine }: {
1384
+ commandLine: Record<string, unknown>;
1385
+ }) => {
1386
+ source: string;
1387
+ value: boolean;
1388
+ };
1389
+ setConfig: (value: boolean) => void;
1390
+ type: boolean;
1391
+ id: "bundle-cache";
1392
+ };
1393
+ envFileOption: {
1394
+ name: string;
1395
+ cliFlag: "env-file";
1396
+ description: () => import("react/jsx-runtime").JSX.Element;
1397
+ ssrName: null;
1398
+ docLink: string;
1399
+ getValue: ({ commandLine }: {
1400
+ commandLine: Record<string, unknown>;
1401
+ }) => {
1402
+ source: string;
1403
+ value: string;
1404
+ } | {
1405
+ source: string;
1406
+ value: null;
1407
+ };
1408
+ setConfig: (value: string | null) => void;
1409
+ type: string | null;
1410
+ id: "env-file";
1411
+ };
1412
+ portOption: {
1413
+ name: string;
1414
+ cliFlag: "port";
1415
+ description: () => import("react/jsx-runtime").JSX.Element;
1416
+ ssrName: null;
1417
+ docLink: string;
1418
+ getValue: ({ commandLine }: {
1419
+ commandLine: Record<string, unknown>;
1420
+ }) => {
1421
+ source: string;
1422
+ value: number;
1423
+ } | {
1424
+ source: string;
1425
+ value: null;
1426
+ };
1427
+ setConfig: (value: number | null) => void;
1428
+ type: number | null;
1429
+ id: "port";
1430
+ };
1431
+ propsOption: {
1432
+ name: string;
1433
+ cliFlag: "props";
1434
+ description: () => import("react/jsx-runtime").JSX.Element;
1435
+ ssrName: null;
1436
+ docLink: string;
1437
+ getValue: ({ commandLine }: {
1438
+ commandLine: Record<string, unknown>;
1439
+ }) => {
1440
+ source: string;
1441
+ value: string;
1442
+ } | {
1443
+ source: string;
1444
+ value: null;
1445
+ };
1446
+ setConfig: () => never;
1447
+ type: string | null;
1448
+ id: "props";
1449
+ };
1450
+ configOption: {
1451
+ name: string;
1452
+ cliFlag: "config";
1453
+ description: () => import("react/jsx-runtime").JSX.Element;
1454
+ ssrName: null;
1455
+ docLink: string;
1456
+ getValue: ({ commandLine }: {
1457
+ commandLine: Record<string, unknown>;
1458
+ }) => {
1459
+ source: string;
1460
+ value: string;
1461
+ } | {
1462
+ source: string;
1463
+ value: null;
1464
+ };
1465
+ setConfig: () => never;
1466
+ type: string | null;
1467
+ id: "config";
1468
+ };
1469
+ browserOption: {
1470
+ name: string;
1471
+ cliFlag: "browser";
1472
+ description: () => import("react/jsx-runtime").JSX.Element;
1473
+ ssrName: null;
1474
+ docLink: string;
1475
+ getValue: ({ commandLine }: {
1476
+ commandLine: Record<string, unknown>;
1477
+ }) => {
1478
+ source: string;
1479
+ value: string;
1480
+ } | {
1481
+ source: string;
1482
+ value: null;
1483
+ };
1484
+ setConfig: () => never;
1485
+ type: string | null;
1486
+ id: "browser";
1487
+ };
1199
1488
  };
1200
1489
  export type AvailableOptions = keyof typeof allOptions;
1201
1490
  export type TypeOfOption<Type> = Type extends AnyRemotionOption<infer X> ? X : never;
@@ -7,10 +7,13 @@ const audio_bitrate_1 = require("./audio-bitrate");
7
7
  const audio_codec_1 = require("./audio-codec");
8
8
  const beep_on_finish_1 = require("./beep-on-finish");
9
9
  const binaries_directory_1 = require("./binaries-directory");
10
+ const browser_1 = require("./browser");
10
11
  const browser_executable_1 = require("./browser-executable");
12
+ const bundle_cache_1 = require("./bundle-cache");
11
13
  const chrome_mode_1 = require("./chrome-mode");
12
14
  const color_space_1 = require("./color-space");
13
15
  const concurrency_1 = require("./concurrency");
16
+ const config_1 = require("./config");
14
17
  const crf_1 = require("./crf");
15
18
  const cross_site_isolation_1 = require("./cross-site-isolation");
16
19
  const dark_mode_1 = require("./dark-mode");
@@ -23,15 +26,18 @@ const enable_multiprocess_on_linux_1 = require("./enable-multiprocess-on-linux")
23
26
  const encoding_buffer_size_1 = require("./encoding-buffer-size");
24
27
  const encoding_max_rate_1 = require("./encoding-max-rate");
25
28
  const enforce_audio_1 = require("./enforce-audio");
29
+ const env_file_1 = require("./env-file");
26
30
  const every_nth_frame_1 = require("./every-nth-frame");
27
31
  const experimental_client_side_rendering_1 = require("./experimental-client-side-rendering");
28
32
  const folder_expiry_1 = require("./folder-expiry");
29
33
  const for_seamless_aac_concatenation_1 = require("./for-seamless-aac-concatenation");
30
34
  const force_new_studio_1 = require("./force-new-studio");
35
+ const frames_1 = require("./frames");
31
36
  const gl_1 = require("./gl");
32
37
  const hardware_acceleration_1 = require("./hardware-acceleration");
33
38
  const headless_1 = require("./headless");
34
39
  const ignore_certificate_errors_1 = require("./ignore-certificate-errors");
40
+ const image_sequence_1 = require("./image-sequence");
35
41
  const image_sequence_pattern_1 = require("./image-sequence-pattern");
36
42
  const ipv4_1 = require("./ipv4");
37
43
  const is_production_1 = require("./is-production");
@@ -42,34 +48,44 @@ const license_key_1 = require("./license-key");
42
48
  const log_level_1 = require("./log-level");
43
49
  const metadata_1 = require("./metadata");
44
50
  const mute_1 = require("./mute");
51
+ const no_open_1 = require("./no-open");
45
52
  const number_of_gif_loops_1 = require("./number-of-gif-loops");
46
53
  const number_of_shared_audio_tags_1 = require("./number-of-shared-audio-tags");
47
54
  const offthreadvideo_cache_size_1 = require("./offthreadvideo-cache-size");
48
55
  const offthreadvideo_threads_1 = require("./offthreadvideo-threads");
49
56
  const on_browser_download_1 = require("./on-browser-download");
57
+ const out_dir_1 = require("./out-dir");
50
58
  const override_duration_1 = require("./override-duration");
51
59
  const override_fps_1 = require("./override-fps");
52
60
  const override_height_1 = require("./override-height");
53
61
  const override_width_1 = require("./override-width");
54
62
  const overwrite_1 = require("./overwrite");
63
+ const package_manager_1 = require("./package-manager");
55
64
  const pixel_format_1 = require("./pixel-format");
65
+ const port_1 = require("./port");
56
66
  const prefer_lossless_1 = require("./prefer-lossless");
67
+ const props_1 = require("./props");
57
68
  const prores_profile_1 = require("./prores-profile");
58
69
  const public_dir_1 = require("./public-dir");
59
70
  const public_license_key_1 = require("./public-license-key");
60
71
  const public_path_1 = require("./public-path");
61
72
  const repro_1 = require("./repro");
73
+ const rspack_1 = require("./rspack");
74
+ const runs_1 = require("./runs");
62
75
  const scale_1 = require("./scale");
63
76
  const separate_audio_1 = require("./separate-audio");
77
+ const still_frame_1 = require("./still-frame");
64
78
  const still_image_format_1 = require("./still-image-format");
65
79
  const throw_if_site_exists_1 = require("./throw-if-site-exists");
66
80
  const timeout_1 = require("./timeout");
67
81
  const user_agent_1 = require("./user-agent");
82
+ const version_flag_1 = require("./version-flag");
68
83
  const video_bitrate_1 = require("./video-bitrate");
69
84
  const video_cache_size_1 = require("./video-cache-size");
70
85
  const video_codec_1 = require("./video-codec");
71
86
  const video_image_format_1 = require("./video-image-format");
72
87
  const webhook_custom_data_1 = require("./webhook-custom-data");
88
+ const webpack_poll_1 = require("./webpack-poll");
73
89
  const x264_preset_1 = require("./x264-preset");
74
90
  exports.allOptions = {
75
91
  audioCodecOption: audio_codec_1.audioCodecOption,
@@ -100,6 +116,8 @@ exports.allOptions = {
100
116
  beepOnFinishOption: beep_on_finish_1.beepOnFinishOption,
101
117
  numberOfGifLoopsOption: number_of_gif_loops_1.numberOfGifLoopsOption,
102
118
  reproOption: repro_1.reproOption,
119
+ runsOption: runs_1.runsOption,
120
+ noOpenOption: no_open_1.noOpenOption,
103
121
  pixelFormatOption: pixel_format_1.pixelFormatOption,
104
122
  preferLosslessOption: prefer_lossless_1.preferLosslessAudioOption,
105
123
  proResProfileOption: prores_profile_1.proResProfileOption,
@@ -132,6 +150,7 @@ exports.allOptions = {
132
150
  askAIOption: ask_ai_1.askAIOption,
133
151
  experimentalClientSideRenderingOption: experimental_client_side_rendering_1.experimentalClientSideRenderingOption,
134
152
  keyboardShortcutsOption: keyboard_shortcuts_1.keyboardShortcutsOption,
153
+ framesOption: frames_1.framesOption,
135
154
  forceNewStudioOption: force_new_studio_1.forceNewStudioOption,
136
155
  numberOfSharedAudioTagsOption: number_of_shared_audio_tags_1.numberOfSharedAudioTagsOption,
137
156
  ipv4Option: ipv4_1.ipv4Option,
@@ -142,4 +161,17 @@ exports.allOptions = {
142
161
  overrideWidthOption: override_width_1.overrideWidthOption,
143
162
  overrideFpsOption: override_fps_1.overrideFpsOption,
144
163
  overrideDurationOption: override_duration_1.overrideDurationOption,
164
+ rspackOption: rspack_1.rspackOption,
165
+ outDirOption: out_dir_1.outDirOption,
166
+ packageManagerOption: package_manager_1.packageManagerOption,
167
+ webpackPollOption: webpack_poll_1.webpackPollOption,
168
+ stillFrameOption: still_frame_1.stillFrameOption,
169
+ imageSequenceOption: image_sequence_1.imageSequenceOption,
170
+ versionFlagOption: version_flag_1.versionFlagOption,
171
+ bundleCacheOption: bundle_cache_1.bundleCacheOption,
172
+ envFileOption: env_file_1.envFileOption,
173
+ portOption: port_1.portOption,
174
+ propsOption: props_1.propsOption,
175
+ configOption: config_1.configOption,
176
+ browserOption: browser_1.browserOption,
145
177
  };
@@ -0,0 +1,19 @@
1
+ export declare const noOpenOption: {
2
+ name: string;
3
+ cliFlag: "no-open";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ type: boolean;
8
+ getValue: ({ commandLine }: {
9
+ commandLine: Record<string, unknown>;
10
+ }) => {
11
+ value: true;
12
+ source: string;
13
+ } | {
14
+ value: false;
15
+ source: string;
16
+ };
17
+ setConfig: (shouldOpen: boolean) => void;
18
+ id: "no-open";
19
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.noOpenOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ let shouldOpenBrowser = true;
6
+ const cliFlag = 'no-open';
7
+ exports.noOpenOption = {
8
+ name: 'Disable browser auto-open',
9
+ cliFlag,
10
+ description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "If specified, Remotion will not open a browser window when starting the Studio." })),
11
+ ssrName: null,
12
+ docLink: 'https://www.remotion.dev/docs/cli/studio#--no-open',
13
+ type: false,
14
+ getValue: ({ commandLine }) => {
15
+ // Minimist quirk: `--no-open` sets `open` to `false`.
16
+ // When no flag is passed, `open` is `undefined`.
17
+ const cliValue = commandLine.open;
18
+ if (cliValue === false) {
19
+ return { value: true, source: 'cli' };
20
+ }
21
+ if (!shouldOpenBrowser) {
22
+ return { value: true, source: 'config' };
23
+ }
24
+ return { value: false, source: 'default' };
25
+ },
26
+ setConfig: (shouldOpen) => {
27
+ shouldOpenBrowser = shouldOpen;
28
+ },
29
+ id: cliFlag,
30
+ };
@@ -0,0 +1,19 @@
1
+ export declare const outDirOption: {
2
+ name: string;
3
+ cliFlag: "out-dir";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "outDir";
6
+ docLink: string;
7
+ getValue: ({ commandLine }: {
8
+ commandLine: Record<string, unknown>;
9
+ }) => {
10
+ source: string;
11
+ value: string;
12
+ } | {
13
+ source: string;
14
+ value: null;
15
+ };
16
+ setConfig: (value: string | null) => void;
17
+ type: string | null;
18
+ id: "out-dir";
19
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.outDirOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'out-dir';
6
+ let currentOutDir = null;
7
+ exports.outDirOption = {
8
+ name: 'Output Directory',
9
+ cliFlag,
10
+ description: () => {
11
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Define the location of the resulting bundle. By default it is a folder called ",
12
+ jsx_runtime_1.jsx("code", { children: "build" }),
13
+ ", adjacent to the", ' ', jsx_runtime_1.jsx("a", { href: "/docs/terminology/remotion-root", children: "Remotion Root" }),
14
+ "."] }));
15
+ },
16
+ ssrName: 'outDir',
17
+ docLink: 'https://www.remotion.dev/docs/cli/bundle#--out-dir',
18
+ getValue: ({ commandLine }) => {
19
+ if (commandLine[cliFlag] !== undefined) {
20
+ return {
21
+ source: 'cli',
22
+ value: commandLine[cliFlag],
23
+ };
24
+ }
25
+ if (currentOutDir !== null) {
26
+ return {
27
+ source: 'config',
28
+ value: currentOutDir,
29
+ };
30
+ }
31
+ return {
32
+ source: 'default',
33
+ value: null,
34
+ };
35
+ },
36
+ setConfig: (value) => {
37
+ currentOutDir = value;
38
+ },
39
+ type: '',
40
+ id: cliFlag,
41
+ };
@@ -0,0 +1,19 @@
1
+ export declare const packageManagerOption: {
2
+ name: string;
3
+ cliFlag: "package-manager";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: "packageManager";
6
+ docLink: string;
7
+ getValue: ({ commandLine }: {
8
+ commandLine: Record<string, unknown>;
9
+ }) => {
10
+ source: string;
11
+ value: string;
12
+ } | {
13
+ source: string;
14
+ value: null;
15
+ };
16
+ setConfig: (value: string | null) => void;
17
+ type: string | null;
18
+ id: "package-manager";
19
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packageManagerOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'package-manager';
6
+ let currentPackageManager = null;
7
+ exports.packageManagerOption = {
8
+ name: 'Package Manager',
9
+ cliFlag,
10
+ description: () => {
11
+ return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Forces a specific package manager to be used. By default, Remotion will auto-detect the package manager based on your lockfile.",
12
+ jsx_runtime_1.jsx("br", {}),
13
+ "Acceptable values are ",
14
+ jsx_runtime_1.jsx("code", { children: "npm" }),
15
+ ", ",
16
+ jsx_runtime_1.jsx("code", { children: "yarn" }),
17
+ ",", ' ', jsx_runtime_1.jsx("code", { children: "pnpm" }),
18
+ " and ",
19
+ jsx_runtime_1.jsx("code", { children: "bun" }),
20
+ "."] }));
21
+ },
22
+ ssrName: 'packageManager',
23
+ docLink: 'https://www.remotion.dev/docs/cli/upgrade#--package-manager',
24
+ getValue: ({ commandLine }) => {
25
+ if (commandLine[cliFlag] !== undefined) {
26
+ return {
27
+ source: 'cli',
28
+ value: commandLine[cliFlag],
29
+ };
30
+ }
31
+ if (currentPackageManager !== null) {
32
+ return {
33
+ source: 'config',
34
+ value: currentPackageManager,
35
+ };
36
+ }
37
+ return {
38
+ source: 'default',
39
+ value: null,
40
+ };
41
+ },
42
+ setConfig: (value) => {
43
+ currentPackageManager = value;
44
+ },
45
+ type: '',
46
+ id: cliFlag,
47
+ };
@@ -0,0 +1,19 @@
1
+ export declare const portOption: {
2
+ name: string;
3
+ cliFlag: "port";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ getValue: ({ commandLine }: {
8
+ commandLine: Record<string, unknown>;
9
+ }) => {
10
+ source: string;
11
+ value: number;
12
+ } | {
13
+ source: string;
14
+ value: null;
15
+ };
16
+ setConfig: (value: number | null) => void;
17
+ type: number | null;
18
+ id: "port";
19
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.portOption = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const cliFlag = 'port';
6
+ let currentPort = null;
7
+ exports.portOption = {
8
+ name: 'Port',
9
+ cliFlag,
10
+ description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Set a custom HTTP server port for the Studio or the render process. If not defined, Remotion will try to find a free port." })),
11
+ ssrName: null,
12
+ docLink: 'https://www.remotion.dev/docs/config#setstudioport',
13
+ getValue: ({ commandLine }) => {
14
+ if (commandLine[cliFlag] !== undefined) {
15
+ return {
16
+ source: 'cli',
17
+ value: commandLine[cliFlag],
18
+ };
19
+ }
20
+ if (currentPort !== null) {
21
+ return {
22
+ source: 'config',
23
+ value: currentPort,
24
+ };
25
+ }
26
+ return {
27
+ source: 'default',
28
+ value: null,
29
+ };
30
+ },
31
+ setConfig: (value) => {
32
+ currentPort = value;
33
+ },
34
+ type: 0,
35
+ id: cliFlag,
36
+ };
@@ -0,0 +1,19 @@
1
+ export declare const propsOption: {
2
+ name: string;
3
+ cliFlag: "props";
4
+ description: () => import("react/jsx-runtime").JSX.Element;
5
+ ssrName: null;
6
+ docLink: string;
7
+ getValue: ({ commandLine }: {
8
+ commandLine: Record<string, unknown>;
9
+ }) => {
10
+ source: string;
11
+ value: string;
12
+ } | {
13
+ source: string;
14
+ value: null;
15
+ };
16
+ setConfig: () => never;
17
+ type: string | null;
18
+ id: "props";
19
+ };