@remotion/studio 4.0.374 → 4.0.376
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/Studio.js +3 -3
- package/dist/components/Modals.js +5 -2
- package/dist/components/QuickSwitcher/fuzzy-search.js +0 -1
- package/dist/components/RenderButton.js +1 -1
- package/dist/components/RenderModal/RenderModalAdvanced.js +2 -2
- package/dist/components/RenderModal/{RenderModal.js → ServerRenderModal.js} +5 -62
- package/dist/components/RenderModal/WebRenderModal.d.ts +3 -0
- package/dist/components/RenderModal/WebRenderModal.js +351 -0
- package/dist/components/RenderModal/WebRenderModalAdvanced.d.ts +13 -0
- package/dist/components/RenderModal/WebRenderModalAdvanced.js +75 -0
- package/dist/components/RenderModal/WebRenderModalBasic.d.ts +29 -0
- package/dist/components/RenderModal/WebRenderModalBasic.js +133 -0
- package/dist/components/RenderModal/WebRenderModalPicture.d.ts +14 -0
- package/dist/components/RenderModal/WebRenderModalPicture.js +82 -0
- package/dist/components/RenderModal/layout.js +1 -1
- package/dist/components/RenderModal/render-modals.d.ts +11 -0
- package/dist/components/RenderModal/render-modals.js +63 -0
- package/dist/components/SidebarRenderButton.js +1 -1
- package/dist/components/WebRender/TriggerWebRender.d.ts +1 -1
- package/dist/components/WebRender/TriggerWebRender.js +20 -21
- package/dist/esm/{chunk-1bd2r4wv.js → chunk-fbkf30v3.js} +10733 -2061
- package/dist/esm/internals.mjs +10800 -2116
- package/dist/esm/previewEntry.mjs +10995 -2311
- package/dist/esm/renderEntry.mjs +19 -12
- package/dist/helpers/retry-payload.js +3 -3
- package/dist/renderEntry.js +5 -4
- package/dist/state/modals.d.ts +8 -2
- package/package.json +10 -10
- package/dist/esm/chunk-df4kyjv3.js +0 -42509
- package/dist/esm/chunk-dx9vebsw.js +0 -42509
- /package/dist/components/RenderModal/{RenderModal.d.ts → ServerRenderModal.d.ts} +0 -0
package/dist/esm/renderEntry.mjs
CHANGED
|
@@ -158,19 +158,22 @@ var renderContent = (Root) => {
|
|
|
158
158
|
defaultProResProfile: bundleMode.compositionDefaultProResProfile
|
|
159
159
|
},
|
|
160
160
|
initialCompositions: [],
|
|
161
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ jsx(Internals.RemotionRootContexts, {
|
|
162
162
|
frameState: null,
|
|
163
163
|
audioEnabled: window.remotion_audioEnabled,
|
|
164
164
|
videoEnabled: window.remotion_videoEnabled,
|
|
165
165
|
logLevel: window.remotion_logLevel,
|
|
166
166
|
numberOfAudioTags: 0,
|
|
167
167
|
audioLatencyHint: window.remotion_audioLatencyHint ?? "interactive",
|
|
168
|
-
children:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
168
|
+
children: /* @__PURE__ */ jsxs(Internals.RenderAssetManagerProvider, {
|
|
169
|
+
collectAssets: null,
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ jsx(Root, {}),
|
|
172
|
+
/* @__PURE__ */ jsx(GetVideoComposition, {
|
|
173
|
+
state: bundleMode
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
})
|
|
174
177
|
})
|
|
175
178
|
});
|
|
176
179
|
renderToDOM(markup);
|
|
@@ -181,14 +184,17 @@ var renderContent = (Root) => {
|
|
|
181
184
|
onlyRenderComposition: null,
|
|
182
185
|
currentCompositionMetadata: null,
|
|
183
186
|
initialCompositions: [],
|
|
184
|
-
children: /* @__PURE__ */ jsx(Internals.
|
|
187
|
+
children: /* @__PURE__ */ jsx(Internals.RemotionRootContexts, {
|
|
185
188
|
frameState: null,
|
|
186
189
|
audioEnabled: window.remotion_audioEnabled,
|
|
187
190
|
videoEnabled: window.remotion_videoEnabled,
|
|
188
191
|
logLevel: window.remotion_logLevel,
|
|
189
192
|
numberOfAudioTags: 0,
|
|
190
193
|
audioLatencyHint: window.remotion_audioLatencyHint ?? "interactive",
|
|
191
|
-
children: /* @__PURE__ */ jsx(
|
|
194
|
+
children: /* @__PURE__ */ jsx(Internals.RenderAssetManagerProvider, {
|
|
195
|
+
collectAssets: null,
|
|
196
|
+
children: /* @__PURE__ */ jsx(Root, {})
|
|
197
|
+
})
|
|
192
198
|
})
|
|
193
199
|
});
|
|
194
200
|
renderToDOM(markup);
|
|
@@ -200,9 +206,10 @@ var renderContent = (Root) => {
|
|
|
200
206
|
renderToDOM(/* @__PURE__ */ jsx("div", {
|
|
201
207
|
children: /* @__PURE__ */ jsx(DelayedSpinner, {})
|
|
202
208
|
}));
|
|
203
|
-
import("./chunk-
|
|
209
|
+
import("./chunk-fbkf30v3.js").then(({ StudioInternals }) => {
|
|
204
210
|
window.remotion_isStudio = true;
|
|
205
211
|
window.remotion_isReadOnlyStudio = true;
|
|
212
|
+
window.remotion_inputProps = "{}";
|
|
206
213
|
Internals.enableSequenceStackTraces();
|
|
207
214
|
renderToDOM(/* @__PURE__ */ jsx(StudioInternals.Studio, {
|
|
208
215
|
readOnly: true,
|
|
@@ -271,7 +278,7 @@ if (typeof window !== "undefined") {
|
|
|
271
278
|
compositionHeight: c.height ?? null,
|
|
272
279
|
compositionWidth: c.width ?? null,
|
|
273
280
|
signal: new AbortController().signal,
|
|
274
|
-
originalProps,
|
|
281
|
+
inputProps: originalProps,
|
|
275
282
|
defaultProps: c.defaultProps ?? {},
|
|
276
283
|
compositionId: c.id
|
|
277
284
|
});
|
|
@@ -315,7 +322,7 @@ if (typeof window !== "undefined") {
|
|
|
315
322
|
compositionFps: selectedComp.fps ?? null,
|
|
316
323
|
compositionHeight: selectedComp.height ?? null,
|
|
317
324
|
compositionWidth: selectedComp.width ?? null,
|
|
318
|
-
originalProps,
|
|
325
|
+
inputProps: originalProps,
|
|
319
326
|
signal: abortController.signal,
|
|
320
327
|
defaultProps: selectedComp.defaultProps ?? {},
|
|
321
328
|
compositionId: selectedComp.id
|
|
@@ -10,7 +10,7 @@ const makeRetryPayload = (job) => {
|
|
|
10
10
|
}
|
|
11
11
|
if (job.type === 'still') {
|
|
12
12
|
return {
|
|
13
|
-
type: 'render',
|
|
13
|
+
type: 'server-render',
|
|
14
14
|
compositionId: job.compositionId,
|
|
15
15
|
initialFrame: job.frame,
|
|
16
16
|
initialStillImageFormat: job.imageFormat,
|
|
@@ -61,7 +61,7 @@ const makeRetryPayload = (job) => {
|
|
|
61
61
|
}
|
|
62
62
|
if (job.type === 'sequence') {
|
|
63
63
|
return {
|
|
64
|
-
type: 'render',
|
|
64
|
+
type: 'server-render',
|
|
65
65
|
initialFrame: 0,
|
|
66
66
|
compositionId: job.compositionId,
|
|
67
67
|
initialVideoImageFormat: null,
|
|
@@ -112,7 +112,7 @@ const makeRetryPayload = (job) => {
|
|
|
112
112
|
}
|
|
113
113
|
if (job.type === 'video') {
|
|
114
114
|
return {
|
|
115
|
-
type: 'render',
|
|
115
|
+
type: 'server-render',
|
|
116
116
|
compositionId: job.compositionId,
|
|
117
117
|
initialStillImageFormat: defaults.stillImageFormat,
|
|
118
118
|
initialVideoImageFormat: job.imageFormat,
|
package/dist/renderEntry.js
CHANGED
|
@@ -185,11 +185,11 @@ const renderContent = (Root) => {
|
|
|
185
185
|
defaultVideoImageFormat: bundleMode.compositionDefaultVideoImageFormat,
|
|
186
186
|
defaultPixelFormat: bundleMode.compositionDefaultPixelFormat,
|
|
187
187
|
defaultProResProfile: bundleMode.compositionDefaultProResProfile,
|
|
188
|
-
}, initialCompositions: [], children: (0, jsx_runtime_1.
|
|
188
|
+
}, initialCompositions: [], children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRootContexts, { frameState: null, 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', children: (0, jsx_runtime_1.jsxs)(remotion_1.Internals.RenderAssetManagerProvider, { collectAssets: null, children: [(0, jsx_runtime_1.jsx)(Root, {}), (0, jsx_runtime_1.jsx)(GetVideoComposition, { state: bundleMode })] }) }) }));
|
|
189
189
|
renderToDOM(markup);
|
|
190
190
|
}
|
|
191
191
|
if (bundleMode.type === 'evaluation') {
|
|
192
|
-
const markup = ((0, jsx_runtime_1.jsx)(remotion_1.Internals.CompositionManagerProvider, { initialCanvasContent: null, onlyRenderComposition: null, currentCompositionMetadata: null, initialCompositions: [], children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.
|
|
192
|
+
const markup = ((0, jsx_runtime_1.jsx)(remotion_1.Internals.CompositionManagerProvider, { initialCanvasContent: null, onlyRenderComposition: null, currentCompositionMetadata: null, initialCompositions: [], children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.RemotionRootContexts, { frameState: null, audioEnabled: window.remotion_audioEnabled, videoEnabled: window.remotion_videoEnabled, logLevel: window.remotion_logLevel, numberOfAudioTags: 0, audioLatencyHint: (_b = window.remotion_audioLatencyHint) !== null && _b !== void 0 ? _b : 'interactive', children: (0, jsx_runtime_1.jsx)(remotion_1.Internals.RenderAssetManagerProvider, { collectAssets: null, children: (0, jsx_runtime_1.jsx)(Root, {}) }) }) }));
|
|
193
193
|
renderToDOM(markup);
|
|
194
194
|
}
|
|
195
195
|
if (bundleMode.type === 'index') {
|
|
@@ -200,6 +200,7 @@ const renderContent = (Root) => {
|
|
|
200
200
|
Promise.resolve().then(() => __importStar(require('./internals'))).then(({ StudioInternals }) => {
|
|
201
201
|
window.remotion_isStudio = true;
|
|
202
202
|
window.remotion_isReadOnlyStudio = true;
|
|
203
|
+
window.remotion_inputProps = '{}';
|
|
203
204
|
remotion_1.Internals.enableSequenceStackTraces();
|
|
204
205
|
renderToDOM((0, jsx_runtime_1.jsx)(StudioInternals.Studio, { readOnly: true, rootComponent: Root }));
|
|
205
206
|
})
|
|
@@ -266,7 +267,7 @@ if (typeof window !== 'undefined') {
|
|
|
266
267
|
compositionHeight: (_d = c.height) !== null && _d !== void 0 ? _d : null,
|
|
267
268
|
compositionWidth: (_e = c.width) !== null && _e !== void 0 ? _e : null,
|
|
268
269
|
signal: new AbortController().signal,
|
|
269
|
-
originalProps,
|
|
270
|
+
inputProps: originalProps,
|
|
270
271
|
defaultProps: (_f = c.defaultProps) !== null && _f !== void 0 ? _f : {},
|
|
271
272
|
compositionId: c.id,
|
|
272
273
|
});
|
|
@@ -315,7 +316,7 @@ if (typeof window !== 'undefined') {
|
|
|
315
316
|
compositionFps: (_d = selectedComp.fps) !== null && _d !== void 0 ? _d : null,
|
|
316
317
|
compositionHeight: (_e = selectedComp.height) !== null && _e !== void 0 ? _e : null,
|
|
317
318
|
compositionWidth: (_f = selectedComp.width) !== null && _f !== void 0 ? _f : null,
|
|
318
|
-
originalProps,
|
|
319
|
+
inputProps: originalProps,
|
|
319
320
|
signal: abortController.signal,
|
|
320
321
|
defaultProps: (_g = selectedComp.defaultProps) !== null && _g !== void 0 ? _g : {},
|
|
321
322
|
compositionId: selectedComp.id,
|
package/dist/state/modals.d.ts
CHANGED
|
@@ -7,8 +7,14 @@ import type { CompType } from '../components/NewComposition/DuplicateComposition
|
|
|
7
7
|
import type { QuickSwitcherMode } from '../components/QuickSwitcher/NoResults';
|
|
8
8
|
import type { RenderType } from '../components/RenderModal/RenderModalAdvanced';
|
|
9
9
|
import type { Bug, UpdateInfo } from '../components/UpdateCheck';
|
|
10
|
+
export type WebRenderModalState = {
|
|
11
|
+
type: 'web-render';
|
|
12
|
+
initialFrame: number;
|
|
13
|
+
compositionId: string;
|
|
14
|
+
defaultProps: Record<string, unknown>;
|
|
15
|
+
};
|
|
10
16
|
export type RenderModalState = {
|
|
11
|
-
type: 'render';
|
|
17
|
+
type: 'server-render';
|
|
12
18
|
compositionId: string;
|
|
13
19
|
initialFrame: number;
|
|
14
20
|
initialStillImageFormat: StillImageFormat;
|
|
@@ -68,7 +74,7 @@ export type ModalState = {
|
|
|
68
74
|
compositionId: string;
|
|
69
75
|
} | {
|
|
70
76
|
type: 'input-props-override';
|
|
71
|
-
} | RenderModalState | {
|
|
77
|
+
} | RenderModalState | WebRenderModalState | {
|
|
72
78
|
type: 'render-progress';
|
|
73
79
|
jobId: string;
|
|
74
80
|
} | {
|
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.376",
|
|
7
7
|
"description": "APIs for interacting with the Remotion Studio",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -25,14 +25,14 @@
|
|
|
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/renderer": "4.0.
|
|
32
|
-
"@remotion/web-renderer": "4.0.
|
|
33
|
-
"@remotion/studio-shared": "4.0.
|
|
34
|
-
"@remotion/zod-types": "4.0.
|
|
35
|
-
"mediabunny": "1.24.
|
|
28
|
+
"remotion": "4.0.376",
|
|
29
|
+
"@remotion/player": "4.0.376",
|
|
30
|
+
"@remotion/media-utils": "4.0.376",
|
|
31
|
+
"@remotion/renderer": "4.0.376",
|
|
32
|
+
"@remotion/web-renderer": "4.0.376",
|
|
33
|
+
"@remotion/studio-shared": "4.0.376",
|
|
34
|
+
"@remotion/zod-types": "4.0.376",
|
|
35
|
+
"mediabunny": "1.24.5",
|
|
36
36
|
"memfs": "3.4.3",
|
|
37
37
|
"source-map": "0.7.3",
|
|
38
38
|
"open": "^8.4.2",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react": "19.0.0",
|
|
43
43
|
"react-dom": "19.0.0",
|
|
44
44
|
"@types/semver": "^7.3.4",
|
|
45
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/eslint-config-internal": "4.0.376",
|
|
46
46
|
"eslint": "9.19.0"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|