@remotion/renderer 4.0.407 → 4.0.409
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/client.d.ts +45 -0
- package/dist/esm/client.mjs +507 -411
- package/dist/options/ask-ai.d.ts +15 -0
- package/dist/options/ask-ai.js +30 -0
- package/dist/options/experimental-client-side-rendering.d.ts +15 -0
- package/dist/options/experimental-client-side-rendering.js +30 -0
- package/dist/options/index.d.ts +45 -0
- package/dist/options/index.js +6 -0
- package/dist/options/is-production-key.d.ts +15 -0
- package/dist/options/is-production-key.js +35 -0
- package/dist/options/keyboard-shortcuts.d.ts +15 -0
- package/dist/options/keyboard-shortcuts.js +30 -0
- package/package.json +13 -13
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const askAIOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "disable-ask-ai";
|
|
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: boolean;
|
|
12
|
+
source: string;
|
|
13
|
+
};
|
|
14
|
+
setConfig(value: boolean): void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askAIOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let askAIEnabled = true;
|
|
6
|
+
const cliFlag = 'disable-ask-ai';
|
|
7
|
+
exports.askAIOption = {
|
|
8
|
+
name: 'Disable or Enable the Ask AI option',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "If the Cmd + I shortcut of the Ask AI modal conflicts with your Studio, you can disable it using this." })),
|
|
11
|
+
ssrName: null,
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/config#setaskaienabled',
|
|
13
|
+
type: false,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
askAIEnabled = false;
|
|
17
|
+
return {
|
|
18
|
+
value: askAIEnabled,
|
|
19
|
+
source: 'cli',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
value: askAIEnabled,
|
|
24
|
+
source: 'config',
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
setConfig(value) {
|
|
28
|
+
askAIEnabled = value;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const experimentalClientSideRenderingOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "enable-experimental-client-side-rendering";
|
|
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: boolean;
|
|
12
|
+
source: string;
|
|
13
|
+
};
|
|
14
|
+
setConfig(value: boolean): void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.experimentalClientSideRenderingOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let experimentalClientSideRenderingEnabled = false;
|
|
6
|
+
const cliFlag = 'enable-experimental-client-side-rendering';
|
|
7
|
+
exports.experimentalClientSideRenderingOption = {
|
|
8
|
+
name: 'Enable Experimental Client-Side Rendering',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Enable WIP client-side rendering in the Remotion Studio. See https://www.remotion.dev/docs/client-side-rendering/ for notes." })),
|
|
11
|
+
ssrName: null,
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/client-side-rendering',
|
|
13
|
+
type: false,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
experimentalClientSideRenderingEnabled = true;
|
|
17
|
+
return {
|
|
18
|
+
value: experimentalClientSideRenderingEnabled,
|
|
19
|
+
source: 'cli',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
value: experimentalClientSideRenderingEnabled,
|
|
24
|
+
source: 'config',
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
setConfig(value) {
|
|
28
|
+
experimentalClientSideRenderingEnabled = value;
|
|
29
|
+
},
|
|
30
|
+
};
|
package/dist/options/index.d.ts
CHANGED
|
@@ -787,6 +787,51 @@ export declare const allOptions: {
|
|
|
787
787
|
setConfig: (value: string | null) => void;
|
|
788
788
|
type: string | null;
|
|
789
789
|
};
|
|
790
|
+
askAIOption: {
|
|
791
|
+
name: string;
|
|
792
|
+
cliFlag: "disable-ask-ai";
|
|
793
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
794
|
+
ssrName: null;
|
|
795
|
+
docLink: string;
|
|
796
|
+
type: boolean;
|
|
797
|
+
getValue: ({ commandLine }: {
|
|
798
|
+
commandLine: Record<string, unknown>;
|
|
799
|
+
}) => {
|
|
800
|
+
value: boolean;
|
|
801
|
+
source: string;
|
|
802
|
+
};
|
|
803
|
+
setConfig(value: boolean): void;
|
|
804
|
+
};
|
|
805
|
+
experimentalClientSideRenderingOption: {
|
|
806
|
+
name: string;
|
|
807
|
+
cliFlag: "enable-experimental-client-side-rendering";
|
|
808
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
809
|
+
ssrName: null;
|
|
810
|
+
docLink: string;
|
|
811
|
+
type: boolean;
|
|
812
|
+
getValue: ({ commandLine }: {
|
|
813
|
+
commandLine: Record<string, unknown>;
|
|
814
|
+
}) => {
|
|
815
|
+
value: boolean;
|
|
816
|
+
source: string;
|
|
817
|
+
};
|
|
818
|
+
setConfig(value: boolean): void;
|
|
819
|
+
};
|
|
820
|
+
keyboardShortcutsOption: {
|
|
821
|
+
name: string;
|
|
822
|
+
cliFlag: "disable-keyboard-shortcuts";
|
|
823
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
824
|
+
ssrName: null;
|
|
825
|
+
docLink: string;
|
|
826
|
+
type: boolean;
|
|
827
|
+
getValue: ({ commandLine }: {
|
|
828
|
+
commandLine: Record<string, unknown>;
|
|
829
|
+
}) => {
|
|
830
|
+
value: boolean;
|
|
831
|
+
source: string;
|
|
832
|
+
};
|
|
833
|
+
setConfig(value: boolean): void;
|
|
834
|
+
};
|
|
790
835
|
};
|
|
791
836
|
export type AvailableOptions = keyof typeof allOptions;
|
|
792
837
|
export type TypeOfOption<Type> = Type extends AnyRemotionOption<infer X> ? X : never;
|
package/dist/options/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.allOptions = void 0;
|
|
4
4
|
const api_key_1 = require("./api-key");
|
|
5
|
+
const ask_ai_1 = require("./ask-ai");
|
|
5
6
|
const audio_bitrate_1 = require("./audio-bitrate");
|
|
6
7
|
const audio_codec_1 = require("./audio-codec");
|
|
7
8
|
const beep_on_finish_1 = require("./beep-on-finish");
|
|
@@ -19,6 +20,7 @@ const enable_multiprocess_on_linux_1 = require("./enable-multiprocess-on-linux")
|
|
|
19
20
|
const encoding_buffer_size_1 = require("./encoding-buffer-size");
|
|
20
21
|
const encoding_max_rate_1 = require("./encoding-max-rate");
|
|
21
22
|
const enforce_audio_1 = require("./enforce-audio");
|
|
23
|
+
const experimental_client_side_rendering_1 = require("./experimental-client-side-rendering");
|
|
22
24
|
const folder_expiry_1 = require("./folder-expiry");
|
|
23
25
|
const for_seamless_aac_concatenation_1 = require("./for-seamless-aac-concatenation");
|
|
24
26
|
const gl_1 = require("./gl");
|
|
@@ -26,6 +28,7 @@ const hardware_acceleration_1 = require("./hardware-acceleration");
|
|
|
26
28
|
const headless_1 = require("./headless");
|
|
27
29
|
const image_sequence_pattern_1 = require("./image-sequence-pattern");
|
|
28
30
|
const jpeg_quality_1 = require("./jpeg-quality");
|
|
31
|
+
const keyboard_shortcuts_1 = require("./keyboard-shortcuts");
|
|
29
32
|
const latency_hint_1 = require("./latency-hint");
|
|
30
33
|
const license_key_1 = require("./license-key");
|
|
31
34
|
const log_level_1 = require("./log-level");
|
|
@@ -100,4 +103,7 @@ exports.allOptions = {
|
|
|
100
103
|
mediaCacheSizeInBytesOption: video_cache_size_1.mediaCacheSizeInBytesOption,
|
|
101
104
|
darkModeOption: dark_mode_1.darkModeOption,
|
|
102
105
|
publicLicenseKeyOption: public_license_key_1.publicLicenseKeyOption,
|
|
106
|
+
askAIOption: ask_ai_1.askAIOption,
|
|
107
|
+
experimentalClientSideRenderingOption: experimental_client_side_rendering_1.experimentalClientSideRenderingOption,
|
|
108
|
+
keyboardShortcutsOption: keyboard_shortcuts_1.keyboardShortcutsOption,
|
|
103
109
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const isProductionKeyOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "is-production-key";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "isProductionKey";
|
|
6
|
+
docLink: string;
|
|
7
|
+
getValue: ({ commandLine }: {
|
|
8
|
+
commandLine: Record<string, unknown>;
|
|
9
|
+
}) => {
|
|
10
|
+
source: string;
|
|
11
|
+
value: string | null;
|
|
12
|
+
};
|
|
13
|
+
setConfig: (value: string | null) => void;
|
|
14
|
+
type: string | null;
|
|
15
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isProductionKeyOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'is-production-key';
|
|
6
|
+
let currentIsProductionKey = null;
|
|
7
|
+
exports.isProductionKeyOption = {
|
|
8
|
+
name: 'Is Production Key',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Pass \"true\" if you are rendering in production. All the production renders are considered as billable renders on the Pro platform." })),
|
|
11
|
+
ssrName: 'isProductionKey',
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/licensing',
|
|
13
|
+
getValue: ({ commandLine }) => {
|
|
14
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
+
return {
|
|
16
|
+
source: 'cli',
|
|
17
|
+
value: commandLine[cliFlag],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
if (currentIsProductionKey !== null) {
|
|
21
|
+
return {
|
|
22
|
+
source: 'config',
|
|
23
|
+
value: currentIsProductionKey.toString(),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
source: 'default',
|
|
28
|
+
value: null,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
setConfig: (value) => {
|
|
32
|
+
currentIsProductionKey = value === 'true';
|
|
33
|
+
},
|
|
34
|
+
type: null,
|
|
35
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const keyboardShortcutsOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "disable-keyboard-shortcuts";
|
|
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: boolean;
|
|
12
|
+
source: string;
|
|
13
|
+
};
|
|
14
|
+
setConfig(value: boolean): void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.keyboardShortcutsOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
let keyboardShortcutsEnabled = true;
|
|
6
|
+
const cliFlag = 'disable-keyboard-shortcuts';
|
|
7
|
+
exports.keyboardShortcutsOption = {
|
|
8
|
+
name: 'Disable or Enable keyboard shortcuts',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Enable or disable keyboard shortcuts in the Remotion Studio." })),
|
|
11
|
+
ssrName: null,
|
|
12
|
+
docLink: 'https://www.remotion.dev/docs/config#setkeyboardshortcutsenabled',
|
|
13
|
+
type: false,
|
|
14
|
+
getValue: ({ commandLine }) => {
|
|
15
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
+
keyboardShortcutsEnabled = commandLine[cliFlag] === false;
|
|
17
|
+
return {
|
|
18
|
+
value: keyboardShortcutsEnabled,
|
|
19
|
+
source: 'cli',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
value: keyboardShortcutsEnabled,
|
|
24
|
+
source: 'config',
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
setConfig(value) {
|
|
28
|
+
keyboardShortcutsEnabled = value;
|
|
29
|
+
},
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.409",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"execa": "5.1.1",
|
|
25
25
|
"extract-zip": "2.0.1",
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/streaming": "4.0.
|
|
26
|
+
"remotion": "4.0.409",
|
|
27
|
+
"@remotion/streaming": "4.0.409",
|
|
28
28
|
"source-map": "^0.8.0-beta.0",
|
|
29
29
|
"ws": "8.17.1",
|
|
30
|
-
"@remotion/licensing": "4.0.
|
|
30
|
+
"@remotion/licensing": "4.0.409"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=16.8.0",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"react-dom": "19.2.3",
|
|
42
42
|
"@typescript/native-preview": "7.0.0-dev.20260105.1",
|
|
43
43
|
"@types/ws": "8.5.10",
|
|
44
|
-
"@remotion/example-videos": "4.0.
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
44
|
+
"@remotion/example-videos": "4.0.409",
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.409",
|
|
46
46
|
"eslint": "9.19.0",
|
|
47
47
|
"@types/node": "20.12.14"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
51
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
52
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
53
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
54
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
55
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
56
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
50
|
+
"@remotion/compositor-darwin-arm64": "4.0.409",
|
|
51
|
+
"@remotion/compositor-darwin-x64": "4.0.409",
|
|
52
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.409",
|
|
53
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.409",
|
|
54
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.409",
|
|
55
|
+
"@remotion/compositor-linux-x64-musl": "4.0.409",
|
|
56
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.409"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"remotion",
|