@remotion/studio-shared 4.0.462 → 4.0.464
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/api-requests.d.ts +2 -0
- package/dist/event-source-event.d.ts +5 -0
- package/dist/package-info.d.ts +1 -1
- package/dist/package-info.js +4 -0
- package/dist/schema-field-info.js +12 -6
- package/package.json +4 -4
- package/dist/find-props-to-delete.d.ts +0 -6
- package/dist/find-props-to-delete.js +0 -38
- package/dist/source-map-endpoint.d.ts +0 -1
- package/dist/source-map-endpoint.js +0 -4
package/dist/api-requests.d.ts
CHANGED
|
@@ -194,6 +194,7 @@ export type SaveSequencePropsRequest = {
|
|
|
194
194
|
value: string;
|
|
195
195
|
defaultValue: string | null;
|
|
196
196
|
schema: SequenceSchema;
|
|
197
|
+
clientId: string;
|
|
197
198
|
};
|
|
198
199
|
export type SaveSequencePropsResponse = {
|
|
199
200
|
canUpdate: true;
|
|
@@ -210,6 +211,7 @@ export type SaveEffectPropsRequest = {
|
|
|
210
211
|
value: string;
|
|
211
212
|
defaultValue: string | null;
|
|
212
213
|
schema: SequenceSchema;
|
|
214
|
+
clientId: string;
|
|
213
215
|
};
|
|
214
216
|
export type SaveEffectPropsResponse = CanUpdateEffectPropsResponse;
|
|
215
217
|
export type DeleteJsxNodeRequest = {
|
|
@@ -41,6 +41,11 @@ export type EventSourceEvent = {
|
|
|
41
41
|
fileName: string;
|
|
42
42
|
nodePath: SequencePropsSubscriptionKey;
|
|
43
43
|
result: CanUpdateSequencePropsResponse;
|
|
44
|
+
} | {
|
|
45
|
+
type: 'lost-node-path';
|
|
46
|
+
fileName: string;
|
|
47
|
+
line: number;
|
|
48
|
+
column: number;
|
|
44
49
|
} | {
|
|
45
50
|
type: 'default-props-updatable-changed';
|
|
46
51
|
compositionId: string;
|
package/dist/package-info.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const packages: readonly ["svg-3d-engine", "animation-utils", "animated-emoji", "astro-example", "babel-loader", "bugs", "brand", "bundler", "cli", "cloudrun", "codex-plugin", "compositor-darwin-arm64", "compositor-darwin-x64", "compositor-linux-arm64-gnu", "compositor-linux-arm64-musl", "compositor-linux-x64-gnu", "compositor-linux-x64-musl", "compositor-win32-x64-msvc", "core", "create-video", "discord-poster", "docusaurus-plugin", "docs", "enable-scss", "eslint-config", "eslint-config-flat", "eslint-config-internal", "eslint-plugin", "example-without-zod", "example", "fonts", "gif", "google-fonts", "install-whisper-cpp", "it-tests", "react18-tests", "lambda-go-example", "lambda-go", "lambda-php", "lambda-ruby", "lambda-python", "lambda", "lambda-client", "layout-utils", "rounded-text-box", "licensing", "lottie", "mcp", "media-utils", "motion-blur", "noise", "paths", "player-a11y", "player-example", "player", "preload", "renderer", "rive", "shapes", "skia", "promo-pages", "streaming", "serverless", "serverless-client", "skills", "skills-evals", "studio-server", "studio-shared", "studio", "tailwind", "tailwind-v4", "timeline-utils", "test-utils", "three", "transitions", "media-parser", "zod-types", "zod-types-v3", "webcodecs", "convert", "captions", "openai-whisper", "elevenlabs", "compositor", "example-videos", "whisper-web", "media", "web-renderer", "design", "light-leaks", "starburst", "vercel", "sfx", "effects"];
|
|
1
|
+
export declare const packages: readonly ["svg-3d-engine", "animation-utils", "animated-emoji", "astro-example", "babel-loader", "bugs", "brand", "bundler", "cli", "cloudrun", "codex-plugin", "compositor-darwin-arm64", "compositor-darwin-x64", "compositor-linux-arm64-gnu", "compositor-linux-arm64-musl", "compositor-linux-x64-gnu", "compositor-linux-x64-musl", "compositor-win32-x64-msvc", "core", "create-video", "discord-poster", "docusaurus-plugin", "docs", "enable-scss", "eslint-config", "eslint-config-flat", "eslint-config-internal", "eslint-plugin", "example-without-zod", "example", "fonts", "gif", "google-fonts", "install-whisper-cpp", "it-tests", "react18-tests", "lambda-go-example", "lambda-go", "lambda-php", "lambda-ruby", "lambda-python", "lambda", "lambda-client", "layout-utils", "rounded-text-box", "licensing", "lottie", "mcp", "media-utils", "motion-blur", "noise", "paths", "player-a11y", "player-example", "player", "preload", "renderer", "rive", "shapes", "skia", "promo-pages", "streaming", "serverless", "serverless-client", "skills", "skills-evals", "studio-server", "studio-shared", "studio", "tailwind", "tailwind-v4", "timeline-utils", "test-utils", "three", "transitions", "media-parser", "zod-types", "zod-types-v3", "webcodecs", "convert", "captions", "openai-whisper", "elevenlabs", "compositor", "example-videos", "whisper-web", "media", "remotion-media", "web-renderer", "design", "light-leaks", "starburst", "vercel", "sfx", "effects"];
|
|
2
2
|
export type Pkgs = (typeof packages)[number];
|
|
3
3
|
export type ExtraPackage = {
|
|
4
4
|
name: string;
|
package/dist/package-info.js
CHANGED
|
@@ -89,6 +89,7 @@ exports.packages = [
|
|
|
89
89
|
'example-videos',
|
|
90
90
|
'whisper-web',
|
|
91
91
|
'media',
|
|
92
|
+
'remotion-media',
|
|
92
93
|
'web-renderer',
|
|
93
94
|
'design',
|
|
94
95
|
'light-leaks',
|
|
@@ -204,6 +205,7 @@ exports.descriptions = {
|
|
|
204
205
|
'svg-3d-engine': '3D SVG extrusion effects',
|
|
205
206
|
'serverless-client': null,
|
|
206
207
|
media: 'Experimental WebCodecs-based media tags',
|
|
208
|
+
'remotion-media': null,
|
|
207
209
|
'web-renderer': 'Render videos in the browser (not yet released)',
|
|
208
210
|
design: 'Design system',
|
|
209
211
|
'light-leaks': 'Light leak effects for Remotion',
|
|
@@ -301,6 +303,7 @@ exports.installableMap = {
|
|
|
301
303
|
compositor: false,
|
|
302
304
|
'example-videos': false,
|
|
303
305
|
media: true,
|
|
306
|
+
'remotion-media': false,
|
|
304
307
|
'web-renderer': false,
|
|
305
308
|
design: false,
|
|
306
309
|
'light-leaks': true,
|
|
@@ -395,6 +398,7 @@ exports.apiDocs = {
|
|
|
395
398
|
compositor: null,
|
|
396
399
|
'example-videos': null,
|
|
397
400
|
'promo-pages': null,
|
|
401
|
+
'remotion-media': null,
|
|
398
402
|
'svg-3d-engine': null,
|
|
399
403
|
media: 'https://remotion.dev/docs/media',
|
|
400
404
|
'web-renderer': 'https://www.remotion.dev/docs/web-renderer/',
|
|
@@ -30,6 +30,11 @@ const getFieldsToShow = ({ getDragOverrides, codeValues, nodePath, schema, curre
|
|
|
30
30
|
if (typeName === 'hidden') {
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
33
|
+
// `hidden` is represented as the eye/speaker icon on the timeline track,
|
|
34
|
+
// so we don't render it as a regular field in the expanded section.
|
|
35
|
+
if (key === 'hidden') {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
33
38
|
return {
|
|
34
39
|
kind: 'sequence-field',
|
|
35
40
|
key,
|
|
@@ -43,16 +48,17 @@ const getFieldsToShow = ({ getDragOverrides, codeValues, nodePath, schema, curre
|
|
|
43
48
|
};
|
|
44
49
|
exports.getFieldsToShow = getFieldsToShow;
|
|
45
50
|
const getEffectFieldsToShow = (effect, effectIndex) => {
|
|
46
|
-
|
|
47
|
-
if (!effectSchema) {
|
|
48
|
-
return [];
|
|
49
|
-
}
|
|
50
|
-
return Object.entries(effectSchema)
|
|
51
|
+
return Object.entries(effect.schema)
|
|
51
52
|
.map(([key, fieldSchema]) => {
|
|
52
53
|
const typeName = fieldSchema.type;
|
|
53
54
|
if (typeName === 'hidden') {
|
|
54
55
|
return null;
|
|
55
56
|
}
|
|
57
|
+
// `disabled` is represented as the eye icon on the effect timeline row,
|
|
58
|
+
// so we don't render it as a regular field in the expanded section.
|
|
59
|
+
if (key === 'disabled') {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
56
62
|
if (SUPPORTED_SCHEMA_TYPES.indexOf(typeName) === -1) {
|
|
57
63
|
throw new Error(`Unsupported field type: ${typeName}`);
|
|
58
64
|
}
|
|
@@ -63,7 +69,7 @@ const getEffectFieldsToShow = (effect, effectIndex) => {
|
|
|
63
69
|
typeName,
|
|
64
70
|
rowHeight: exports.SCHEMA_FIELD_ROW_HEIGHT,
|
|
65
71
|
fieldSchema,
|
|
66
|
-
effectSchema,
|
|
72
|
+
effectSchema: effect.schema,
|
|
67
73
|
effectIndex,
|
|
68
74
|
};
|
|
69
75
|
})
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio-shared"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/studio-shared",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.464",
|
|
7
7
|
"description": "Internal package for shared objects between the Studio backend and frontend",
|
|
8
8
|
"main": "dist",
|
|
9
9
|
"scripts": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"remotion": "4.0.
|
|
23
|
+
"remotion": "4.0.464"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@remotion/renderer": "4.0.
|
|
27
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
26
|
+
"@remotion/renderer": "4.0.464",
|
|
27
|
+
"@remotion/eslint-config-internal": "4.0.464",
|
|
28
28
|
"eslint": "9.19.0",
|
|
29
29
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
30
30
|
},
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findPropsToDelete = void 0;
|
|
4
|
-
const findPropsToDelete = ({ schema, key, value, }) => {
|
|
5
|
-
const fieldSchema = schema[key];
|
|
6
|
-
if (!fieldSchema) {
|
|
7
|
-
// could be a non-top-level key, we don't support it for now
|
|
8
|
-
return [];
|
|
9
|
-
}
|
|
10
|
-
if (typeof value !== 'string') {
|
|
11
|
-
throw new Error('Value must be a string, but is ' + JSON.stringify(value));
|
|
12
|
-
}
|
|
13
|
-
if (fieldSchema.type !== 'enum') {
|
|
14
|
-
throw new Error('Key ' + JSON.stringify(key) + ' is not an enum');
|
|
15
|
-
}
|
|
16
|
-
const currentVariant = fieldSchema.variants[value];
|
|
17
|
-
if (!currentVariant) {
|
|
18
|
-
throw new Error('Value for ' +
|
|
19
|
-
JSON.stringify(key) +
|
|
20
|
-
' must be one of ' +
|
|
21
|
-
Object.keys(fieldSchema.variants)
|
|
22
|
-
.map((v) => JSON.stringify(v))
|
|
23
|
-
.join(', ') +
|
|
24
|
-
', got ' +
|
|
25
|
-
JSON.stringify(value));
|
|
26
|
-
}
|
|
27
|
-
const otherVariants = Object.keys(fieldSchema.variants).filter((v) => v !== value);
|
|
28
|
-
const otherKeys = new Set();
|
|
29
|
-
for (const variant of otherVariants) {
|
|
30
|
-
const otherVariant = fieldSchema.variants[variant];
|
|
31
|
-
const keys = Object.keys(otherVariant);
|
|
32
|
-
for (const k of keys) {
|
|
33
|
-
otherKeys.add(k);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return [...otherKeys];
|
|
37
|
-
};
|
|
38
|
-
exports.findPropsToDelete = findPropsToDelete;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SOURCE_MAP_ENDPOINT = "/source-map-helper.wasm";
|