@remotion/studio 4.0.362 → 4.0.364
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/.turbo/turbo-formatting.log +1 -1
- package/.turbo/turbo-make.log +1 -1
- package/dist/Studio.js +1 -1
- package/dist/components/WebRender/TriggerWebRender.js +5 -2
- package/dist/esm/chunk-1kph2e4h.js +47177 -0
- package/dist/esm/chunk-3qv6hm39.js +47188 -0
- package/dist/esm/chunk-69ne0ps0.js +47177 -0
- package/dist/esm/chunk-72w0j7dc.js +47183 -0
- package/dist/esm/chunk-cbjby2d0.js +47184 -0
- package/dist/esm/chunk-egzp23gr.js +47184 -0
- package/dist/esm/chunk-ha1wm1xf.js +47184 -0
- package/dist/esm/chunk-hct4arff.js +47183 -0
- package/dist/esm/chunk-ts9m07wj.js +47176 -0
- package/dist/esm/chunk-v5pq7tm1.js +47180 -0
- package/dist/esm/chunk-xm30bwr8.js +47180 -0
- package/dist/esm/internals.mjs +13 -5
- package/dist/esm/previewEntry.mjs +13 -7
- package/dist/esm/renderEntry.mjs +5 -1
- package/dist/previewEntry.js +0 -2
- package/dist/renderEntry.js +2 -2
- package/package.json +11 -11
- package/tsconfig.tsbuildinfo +1 -1
package/dist/esm/internals.mjs
CHANGED
|
@@ -17983,12 +17983,13 @@ var waitForReady = (timeoutInMilliseconds) => {
|
|
|
17983
17983
|
}, 50);
|
|
17984
17984
|
return promise;
|
|
17985
17985
|
};
|
|
17986
|
-
var
|
|
17986
|
+
var renderStillOnWeb = async ({
|
|
17987
17987
|
Component,
|
|
17988
17988
|
width,
|
|
17989
17989
|
height,
|
|
17990
17990
|
fps,
|
|
17991
|
-
durationInFrames
|
|
17991
|
+
durationInFrames,
|
|
17992
|
+
frame: frame2
|
|
17992
17993
|
}) => {
|
|
17993
17994
|
const div = document.createElement("div");
|
|
17994
17995
|
div.style.display = "flex";
|
|
@@ -18045,6 +18046,8 @@ var renderMediaOnWeb = async ({
|
|
|
18045
18046
|
isClientSideRendering: true
|
|
18046
18047
|
},
|
|
18047
18048
|
children: /* @__PURE__ */ jsx176(Internals44.RemotionRoot, {
|
|
18049
|
+
audioEnabled: true,
|
|
18050
|
+
videoEnabled: true,
|
|
18048
18051
|
logLevel: "info",
|
|
18049
18052
|
numberOfAudioTags: 0,
|
|
18050
18053
|
onlyRenderComposition: null,
|
|
@@ -18069,6 +18072,7 @@ var renderMediaOnWeb = async ({
|
|
|
18069
18072
|
})
|
|
18070
18073
|
})
|
|
18071
18074
|
}));
|
|
18075
|
+
window.remotion_setFrame(frame2, "markup", frame2);
|
|
18072
18076
|
await waitForReady(delayRenderTimeoutInMilliseconds);
|
|
18073
18077
|
const canvasElements = findCanvasElements(div);
|
|
18074
18078
|
const composed = compose({
|
|
@@ -18102,18 +18106,20 @@ var button4 = {
|
|
|
18102
18106
|
};
|
|
18103
18107
|
var TriggerWebRender = () => {
|
|
18104
18108
|
const video = Internals45.useVideo();
|
|
18109
|
+
const frame2 = getCurrentFrame();
|
|
18105
18110
|
const onClick = useCallback89(() => {
|
|
18106
18111
|
if (!video) {
|
|
18107
18112
|
throw new Error("No video found");
|
|
18108
18113
|
}
|
|
18109
|
-
|
|
18114
|
+
renderStillOnWeb({
|
|
18110
18115
|
Component: video.component,
|
|
18111
18116
|
width: video.width,
|
|
18112
18117
|
height: video.height,
|
|
18113
18118
|
fps: video.fps,
|
|
18114
|
-
durationInFrames: video.durationInFrames
|
|
18119
|
+
durationInFrames: video.durationInFrames,
|
|
18120
|
+
frame: frame2
|
|
18115
18121
|
});
|
|
18116
|
-
}, [video]);
|
|
18122
|
+
}, [video, frame2]);
|
|
18117
18123
|
return /* @__PURE__ */ jsx177(Button, {
|
|
18118
18124
|
id: "render-modal-button",
|
|
18119
18125
|
onClick,
|
|
@@ -47168,6 +47174,8 @@ var Studio = ({ rootComponent, readOnly }) => {
|
|
|
47168
47174
|
injectCSS();
|
|
47169
47175
|
}, []);
|
|
47170
47176
|
return /* @__PURE__ */ jsx274(Internals67.RemotionRoot, {
|
|
47177
|
+
audioEnabled: window.remotion_audioEnabled,
|
|
47178
|
+
videoEnabled: window.remotion_videoEnabled,
|
|
47171
47179
|
logLevel: window.remotion_logLevel,
|
|
47172
47180
|
numberOfAudioTags: window.remotion_numberOfAudioTags,
|
|
47173
47181
|
onlyRenderComposition: null,
|
|
@@ -18263,12 +18263,13 @@ var waitForReady = (timeoutInMilliseconds) => {
|
|
|
18263
18263
|
}, 50);
|
|
18264
18264
|
return promise;
|
|
18265
18265
|
};
|
|
18266
|
-
var
|
|
18266
|
+
var renderStillOnWeb = async ({
|
|
18267
18267
|
Component,
|
|
18268
18268
|
width,
|
|
18269
18269
|
height,
|
|
18270
18270
|
fps,
|
|
18271
|
-
durationInFrames
|
|
18271
|
+
durationInFrames,
|
|
18272
|
+
frame: frame2
|
|
18272
18273
|
}) => {
|
|
18273
18274
|
const div = document.createElement("div");
|
|
18274
18275
|
div.style.display = "flex";
|
|
@@ -18325,6 +18326,8 @@ var renderMediaOnWeb = async ({
|
|
|
18325
18326
|
isClientSideRendering: true
|
|
18326
18327
|
},
|
|
18327
18328
|
children: /* @__PURE__ */ jsx177(Internals44.RemotionRoot, {
|
|
18329
|
+
audioEnabled: true,
|
|
18330
|
+
videoEnabled: true,
|
|
18328
18331
|
logLevel: "info",
|
|
18329
18332
|
numberOfAudioTags: 0,
|
|
18330
18333
|
onlyRenderComposition: null,
|
|
@@ -18349,6 +18352,7 @@ var renderMediaOnWeb = async ({
|
|
|
18349
18352
|
})
|
|
18350
18353
|
})
|
|
18351
18354
|
}));
|
|
18355
|
+
window.remotion_setFrame(frame2, "markup", frame2);
|
|
18352
18356
|
await waitForReady(delayRenderTimeoutInMilliseconds);
|
|
18353
18357
|
const canvasElements = findCanvasElements(div);
|
|
18354
18358
|
const composed = compose({
|
|
@@ -18382,18 +18386,20 @@ var button4 = {
|
|
|
18382
18386
|
};
|
|
18383
18387
|
var TriggerWebRender = () => {
|
|
18384
18388
|
const video = Internals45.useVideo();
|
|
18389
|
+
const frame2 = getCurrentFrame();
|
|
18385
18390
|
const onClick = useCallback90(() => {
|
|
18386
18391
|
if (!video) {
|
|
18387
18392
|
throw new Error("No video found");
|
|
18388
18393
|
}
|
|
18389
|
-
|
|
18394
|
+
renderStillOnWeb({
|
|
18390
18395
|
Component: video.component,
|
|
18391
18396
|
width: video.width,
|
|
18392
18397
|
height: video.height,
|
|
18393
18398
|
fps: video.fps,
|
|
18394
|
-
durationInFrames: video.durationInFrames
|
|
18399
|
+
durationInFrames: video.durationInFrames,
|
|
18400
|
+
frame: frame2
|
|
18395
18401
|
});
|
|
18396
|
-
}, [video]);
|
|
18402
|
+
}, [video, frame2]);
|
|
18397
18403
|
return /* @__PURE__ */ jsx178(Button, {
|
|
18398
18404
|
id: "render-modal-button",
|
|
18399
18405
|
onClick,
|
|
@@ -47448,6 +47454,8 @@ var Studio = ({ rootComponent, readOnly }) => {
|
|
|
47448
47454
|
injectCSS();
|
|
47449
47455
|
}, []);
|
|
47450
47456
|
return /* @__PURE__ */ jsx275(Internals67.RemotionRoot, {
|
|
47457
|
+
audioEnabled: window.remotion_audioEnabled,
|
|
47458
|
+
videoEnabled: window.remotion_videoEnabled,
|
|
47451
47459
|
logLevel: window.remotion_logLevel,
|
|
47452
47460
|
numberOfAudioTags: window.remotion_numberOfAudioTags,
|
|
47453
47461
|
onlyRenderComposition: null,
|
|
@@ -47858,8 +47866,6 @@ var renderToDOM = (content7) => {
|
|
|
47858
47866
|
};
|
|
47859
47867
|
renderToDOM(/* @__PURE__ */ jsx278(NoRegisterRoot, {}));
|
|
47860
47868
|
Internals68.waitForRoot((NewRoot) => {
|
|
47861
|
-
window.remotion_isStudio = true;
|
|
47862
|
-
window.remotion_isReadOnlyStudio = false;
|
|
47863
47869
|
Internals68.enableSequenceStackTraces();
|
|
47864
47870
|
renderToDOM(/* @__PURE__ */ jsx278(Studio, {
|
|
47865
47871
|
readOnly: false,
|
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -143,6 +143,8 @@ var renderContent = (Root) => {
|
|
|
143
143
|
const bundleMode = getBundleMode();
|
|
144
144
|
if (bundleMode.type === "composition") {
|
|
145
145
|
const markup = /* @__PURE__ */ jsxs(Internals.RemotionRoot, {
|
|
146
|
+
audioEnabled: window.remotion_audioEnabled,
|
|
147
|
+
videoEnabled: window.remotion_videoEnabled,
|
|
146
148
|
logLevel: window.remotion_logLevel,
|
|
147
149
|
numberOfAudioTags: 0,
|
|
148
150
|
audioLatencyHint: window.remotion_audioLatencyHint ?? "interactive",
|
|
@@ -169,6 +171,8 @@ var renderContent = (Root) => {
|
|
|
169
171
|
}
|
|
170
172
|
if (bundleMode.type === "evaluation") {
|
|
171
173
|
const markup = /* @__PURE__ */ jsx(Internals.RemotionRoot, {
|
|
174
|
+
audioEnabled: window.remotion_audioEnabled,
|
|
175
|
+
videoEnabled: window.remotion_videoEnabled,
|
|
172
176
|
logLevel: window.remotion_logLevel,
|
|
173
177
|
numberOfAudioTags: 0,
|
|
174
178
|
onlyRenderComposition: null,
|
|
@@ -185,7 +189,7 @@ var renderContent = (Root) => {
|
|
|
185
189
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
186
190
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
187
191
|
}));
|
|
188
|
-
import("./chunk-
|
|
192
|
+
import("./chunk-ha1wm1xf.js").then(({ StudioInternals }) => {
|
|
189
193
|
window.remotion_isStudio = true;
|
|
190
194
|
window.remotion_isReadOnlyStudio = true;
|
|
191
195
|
Internals.enableSequenceStackTraces();
|
package/dist/previewEntry.js
CHANGED
|
@@ -33,8 +33,6 @@ const renderToDOM = (content) => {
|
|
|
33
33
|
};
|
|
34
34
|
renderToDOM((0, jsx_runtime_1.jsx)(NoRegisterRoot_1.NoRegisterRoot, {}));
|
|
35
35
|
remotion_1.Internals.waitForRoot((NewRoot) => {
|
|
36
|
-
window.remotion_isStudio = true;
|
|
37
|
-
window.remotion_isReadOnlyStudio = false;
|
|
38
36
|
remotion_1.Internals.enableSequenceStackTraces();
|
|
39
37
|
renderToDOM((0, jsx_runtime_1.jsx)(Studio_1.Studio, { readOnly: false, rootComponent: NewRoot }));
|
|
40
38
|
});
|
package/dist/renderEntry.js
CHANGED
|
@@ -174,7 +174,7 @@ const renderContent = (Root) => {
|
|
|
174
174
|
var _a, _b;
|
|
175
175
|
const bundleMode = getBundleMode();
|
|
176
176
|
if (bundleMode.type === 'composition') {
|
|
177
|
-
const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { logLevel: window.remotion_logLevel, numberOfAudioTags: 0, audioLatencyHint: (_a = window.remotion_audioLatencyHint) !== null && _a !== void 0 ? _a : 'interactive', onlyRenderComposition: bundleMode.compositionName, currentCompositionMetadata: {
|
|
177
|
+
const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: window.remotion_logLevel, numberOfAudioTags: 0, audioLatencyHint: (_a = window.remotion_audioLatencyHint) !== null && _a !== void 0 ? _a : 'interactive', onlyRenderComposition: bundleMode.compositionName, currentCompositionMetadata: {
|
|
178
178
|
props: no_react_1.NoReactInternals.deserializeJSONWithSpecialTypes(bundleMode.serializedResolvedPropsWithSchema),
|
|
179
179
|
durationInFrames: bundleMode.compositionDurationInFrames,
|
|
180
180
|
fps: bundleMode.compositionFps,
|
|
@@ -188,7 +188,7 @@ const renderContent = (Root) => {
|
|
|
188
188
|
renderToDOM(markup);
|
|
189
189
|
}
|
|
190
190
|
if (bundleMode.type === 'evaluation') {
|
|
191
|
-
const markup = ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { logLevel: window.remotion_logLevel, numberOfAudioTags: 0, onlyRenderComposition: null, currentCompositionMetadata: null, audioLatencyHint: (_b = window.remotion_audioLatencyHint) !== null && _b !== void 0 ? _b : 'interactive', children: (0, jsx_runtime_1.jsx)(Root, {}) }));
|
|
191
|
+
const markup = ((0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRoot, { audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: window.remotion_logLevel, numberOfAudioTags: 0, onlyRenderComposition: null, currentCompositionMetadata: null, audioLatencyHint: (_b = window.remotion_audioLatencyHint) !== null && _b !== void 0 ? _b : 'interactive', children: (0, jsx_runtime_1.jsx)(Root, {}) }));
|
|
192
192
|
renderToDOM(markup);
|
|
193
193
|
}
|
|
194
194
|
if (bundleMode.type === 'index') {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/studio",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.364",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"semver": "7.5.3",
|
|
28
|
-
"remotion": "4.0.
|
|
29
|
-
"@remotion/player": "4.0.
|
|
30
|
-
"@remotion/media-utils": "4.0.
|
|
31
|
-
"@remotion/media-parser": "4.0.
|
|
32
|
-
"@remotion/renderer": "4.0.
|
|
33
|
-
"@remotion/web-renderer": "4.0.
|
|
34
|
-
"@remotion/studio-shared": "4.0.
|
|
35
|
-
"@remotion/webcodecs": "4.0.
|
|
36
|
-
"@remotion/zod-types": "4.0.
|
|
28
|
+
"remotion": "4.0.364",
|
|
29
|
+
"@remotion/player": "4.0.364",
|
|
30
|
+
"@remotion/media-utils": "4.0.364",
|
|
31
|
+
"@remotion/media-parser": "4.0.364",
|
|
32
|
+
"@remotion/renderer": "4.0.364",
|
|
33
|
+
"@remotion/web-renderer": "4.0.364",
|
|
34
|
+
"@remotion/studio-shared": "4.0.364",
|
|
35
|
+
"@remotion/webcodecs": "4.0.364",
|
|
36
|
+
"@remotion/zod-types": "4.0.364",
|
|
37
37
|
"memfs": "3.4.3",
|
|
38
38
|
"source-map": "0.7.3",
|
|
39
39
|
"open": "^8.4.2",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react": "19.0.0",
|
|
44
44
|
"react-dom": "19.0.0",
|
|
45
45
|
"@types/semver": "^7.3.4",
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.364",
|
|
47
47
|
"eslint": "9.19.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|