@remotion/renderer 3.3.43 → 3.3.44
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/determine-vcodec-ffmepg-flags.d.ts +2 -0
- package/dist/determine-vcodec-ffmepg-flags.js +13 -0
- package/dist/error-handling/symbolicate-error.js +2 -1
- package/dist/get-compositions-from-markup.d.ts +3 -0
- package/dist/get-compositions-from-markup.js +17 -0
- package/dist/get-compositions-on-server.d.ts +3 -0
- package/dist/get-compositions-on-server.js +18 -0
- package/dist/index.d.ts +3 -3
- package/dist/lock-port-selection.d.ts +2 -0
- package/dist/lock-port-selection.js +11 -0
- package/dist/render-web-frame.d.ts +1 -0
- package/dist/seek-to-frame.js +25 -0
- package/package.json +10 -10
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.determineVcodecFfmepgFlags = void 0;
|
|
4
|
+
const truthy_1 = require("./truthy");
|
|
5
|
+
const determineVcodecFfmepgFlags = (vcodecFlag) => {
|
|
6
|
+
return [
|
|
7
|
+
vcodecFlag === 'vp9' ? '-vcodec' : null,
|
|
8
|
+
vcodecFlag === 'vp9' ? 'libvpx-vp9' : null,
|
|
9
|
+
vcodecFlag === 'vp8' ? '-vcodec' : null,
|
|
10
|
+
vcodecFlag === 'vp8' ? 'libvpx' : null,
|
|
11
|
+
].filter(truthy_1.truthy);
|
|
12
|
+
};
|
|
13
|
+
exports.determineVcodecFfmepgFlags = determineVcodecFfmepgFlags;
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.symbolicateError = void 0;
|
|
4
4
|
const symbolicate_stacktrace_1 = require("../symbolicate-stacktrace");
|
|
5
|
+
const truthy_1 = require("../truthy");
|
|
5
6
|
const handle_javascript_exception_1 = require("./handle-javascript-exception");
|
|
6
7
|
const symbolicateError = async (symbolicateableError) => {
|
|
7
8
|
const { delayRenderCall, stackFrame } = symbolicateableError;
|
|
8
9
|
const [mainErrorFrames, delayRenderFrames] = await Promise.all([
|
|
9
10
|
stackFrame ? (0, symbolicate_stacktrace_1.symbolicateStackTrace)(stackFrame) : null,
|
|
10
11
|
delayRenderCall ? (0, symbolicate_stacktrace_1.symbolicateStackTrace)(delayRenderCall) : null,
|
|
11
|
-
]);
|
|
12
|
+
].filter(truthy_1.truthy));
|
|
12
13
|
const symbolicatedErr = new handle_javascript_exception_1.ErrorWithStackFrame({
|
|
13
14
|
message: symbolicateableError.message,
|
|
14
15
|
symbolicatedStackFrames: mainErrorFrames,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCompositionsFromMarkup = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const server_1 = require("react-dom/server");
|
|
6
|
+
const getCompositionsFromMarkup = (Comp) => {
|
|
7
|
+
process.env.REMOTION_SERVER_RENDERING = 'true';
|
|
8
|
+
const str = (0, server_1.renderToString)((0, jsx_runtime_1.jsx)(Comp, {}));
|
|
9
|
+
const matches = str.matchAll(/<div>(.*?)<\/div>/g);
|
|
10
|
+
const metadata = [];
|
|
11
|
+
for (const match of matches) {
|
|
12
|
+
const json = JSON.parse(match[1]);
|
|
13
|
+
metadata.push(json);
|
|
14
|
+
}
|
|
15
|
+
return metadata;
|
|
16
|
+
};
|
|
17
|
+
exports.getCompositionsFromMarkup = getCompositionsFromMarkup;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCompositionsFromMarkup = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const server_1 = require("react-dom/server");
|
|
6
|
+
const getCompositionsFromMarkup = (Comp) => {
|
|
7
|
+
process.env.REMOTION_SERVER_RENDERING = 'true';
|
|
8
|
+
const str = (0, server_1.renderToString)((0, jsx_runtime_1.jsx)(Comp, {}));
|
|
9
|
+
console.log({ str }, (0, jsx_runtime_1.jsx)(Comp, {}));
|
|
10
|
+
const matches = str.matchAll(/<div>(.*?)<\/div>/g);
|
|
11
|
+
const metadata = [];
|
|
12
|
+
for (const match of matches) {
|
|
13
|
+
const json = JSON.parse(match[1]);
|
|
14
|
+
metadata.push(json);
|
|
15
|
+
}
|
|
16
|
+
return metadata;
|
|
17
|
+
};
|
|
18
|
+
exports.getCompositionsFromMarkup = getCompositionsFromMarkup;
|
package/dist/index.d.ts
CHANGED
|
@@ -119,8 +119,8 @@ export declare const RenderInternals: {
|
|
|
119
119
|
validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
|
|
120
120
|
DEFAULT_BROWSER: import("./browser").Browser;
|
|
121
121
|
validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
|
|
122
|
-
DEFAULT_OPENGL_RENDERER: "
|
|
123
|
-
validateOpenGlRenderer: (option: "
|
|
122
|
+
DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
123
|
+
validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
|
|
124
124
|
validImageFormats: readonly ["png", "jpeg", "none"];
|
|
125
125
|
validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
|
|
126
126
|
DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
|
@@ -130,7 +130,7 @@ export declare const RenderInternals: {
|
|
|
130
130
|
DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
|
|
131
131
|
isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
|
|
132
132
|
logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
133
|
-
isEqualOrBelowLogLevel: (currentLevel: "
|
|
133
|
+
isEqualOrBelowLogLevel: (currentLevel: "verbose" | "error" | "info" | "warn", level: "verbose" | "error" | "info" | "warn") => boolean;
|
|
134
134
|
isValidLogLevel: (level: string) => boolean;
|
|
135
135
|
perf: typeof perf;
|
|
136
136
|
makeDownloadMap: () => import("./assets/download-map").DownloadMap;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unlockPortSelection = exports.lockPortSelection = void 0;
|
|
4
|
+
const locks = [];
|
|
5
|
+
const waitForPortSelection = () => { };
|
|
6
|
+
const lockPortSelection = () => {
|
|
7
|
+
locks.push();
|
|
8
|
+
};
|
|
9
|
+
exports.lockPortSelection = lockPortSelection;
|
|
10
|
+
const unlockPortSelection = () => { };
|
|
11
|
+
exports.unlockPortSelection = unlockPortSelection;
|
package/dist/seek-to-frame.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.seekToFrame = exports.waitForReady = void 0;
|
|
4
|
+
const symbolicateable_error_1 = require("./error-handling/symbolicateable-error");
|
|
5
|
+
const parse_browser_error_stack_1 = require("./parse-browser-error-stack");
|
|
4
6
|
const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
|
|
5
7
|
const waitForReady = (page) => {
|
|
6
8
|
return Promise.race([
|
|
@@ -20,6 +22,29 @@ const waitForReady = (page) => {
|
|
|
20
22
|
.catch((err) => {
|
|
21
23
|
throw err;
|
|
22
24
|
}),
|
|
25
|
+
page
|
|
26
|
+
.mainFrame()
|
|
27
|
+
._mainWorld.waitForFunction(page.browser, 'window.remotion_cancelledError !== undefined')
|
|
28
|
+
.then(() => {
|
|
29
|
+
return (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
30
|
+
pageFunction: () => window.remotion_cancelledError,
|
|
31
|
+
args: [],
|
|
32
|
+
frame: null,
|
|
33
|
+
page,
|
|
34
|
+
});
|
|
35
|
+
})
|
|
36
|
+
.then((val) => {
|
|
37
|
+
if (typeof val !== 'string') {
|
|
38
|
+
throw val;
|
|
39
|
+
}
|
|
40
|
+
throw new symbolicateable_error_1.SymbolicateableError({
|
|
41
|
+
frame: null,
|
|
42
|
+
stack: val,
|
|
43
|
+
name: 'CancelledError',
|
|
44
|
+
message: val.split('\n')[0],
|
|
45
|
+
stackFrame: (0, parse_browser_error_stack_1.parseStack)(val.split('\n')),
|
|
46
|
+
});
|
|
47
|
+
}),
|
|
23
48
|
]);
|
|
24
49
|
};
|
|
25
50
|
exports.waitForReady = waitForReady;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.44",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"execa": "5.1.1",
|
|
26
26
|
"extract-zip": "2.0.1",
|
|
27
|
-
"remotion": "3.3.
|
|
27
|
+
"remotion": "3.3.44",
|
|
28
28
|
"source-map": "^0.8.0-beta.0",
|
|
29
29
|
"ws": "8.7.0"
|
|
30
30
|
},
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"vitest": "0.24.3"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"@remotion/compositor-darwin-arm64": "3.3.
|
|
53
|
-
"@remotion/compositor-darwin-x64": "3.3.
|
|
54
|
-
"@remotion/compositor-linux-arm64-gnu": "3.3.
|
|
55
|
-
"@remotion/compositor-linux-arm64-musl": "3.3.
|
|
56
|
-
"@remotion/compositor-linux-x64-gnu": "3.3.
|
|
57
|
-
"@remotion/compositor-linux-x64-musl": "3.3.
|
|
58
|
-
"@remotion/compositor-win32-x64-msvc": "3.3.
|
|
52
|
+
"@remotion/compositor-darwin-arm64": "3.3.44",
|
|
53
|
+
"@remotion/compositor-darwin-x64": "3.3.44",
|
|
54
|
+
"@remotion/compositor-linux-arm64-gnu": "3.3.44",
|
|
55
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.44",
|
|
56
|
+
"@remotion/compositor-linux-x64-gnu": "3.3.44",
|
|
57
|
+
"@remotion/compositor-linux-x64-musl": "3.3.44",
|
|
58
|
+
"@remotion/compositor-win32-x64-msvc": "3.3.44"
|
|
59
59
|
},
|
|
60
60
|
"keywords": [
|
|
61
61
|
"remotion",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "7ba7bbdacbda1499ecdb92f1d9581d5db458edf8"
|
|
71
71
|
}
|