@remotion/studio-shared 4.0.501 → 4.0.502
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 +1 -1
- package/dist/browser-studio-operations.d.ts +6 -1
- package/dist/composition-drag-data.d.ts +1 -1
- package/dist/effect-catalog.d.ts +1 -1
- package/dist/esm/index.mjs +3700 -0
- package/dist/esm/keyframe-easing-presets.mjs +123 -0
- package/dist/esm/keyframe-interpolation-function.mjs +114 -0
- package/dist/esm/parse-spring-easing-config.mjs +92 -0
- package/dist/esm/studio-entry-points.mjs +19 -0
- package/dist/esm/studio-html.mjs +102 -0
- package/dist/package-info.d.ts +2 -2
- package/dist/package-info.js +4 -4
- package/package.json +56 -9
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// src/keyframe-easing-presets.ts
|
|
2
|
+
var LINEAR_KEYFRAME_EASING = { type: "linear" };
|
|
3
|
+
var EASE_KEYFRAME_EASING = {
|
|
4
|
+
type: "bezier",
|
|
5
|
+
x1: 0.42,
|
|
6
|
+
y1: 0,
|
|
7
|
+
x2: 1,
|
|
8
|
+
y2: 1
|
|
9
|
+
};
|
|
10
|
+
var QUAD_KEYFRAME_EASING = {
|
|
11
|
+
type: "bezier",
|
|
12
|
+
x1: 1 / 3,
|
|
13
|
+
y1: 0,
|
|
14
|
+
x2: 2 / 3,
|
|
15
|
+
y2: 1 / 3
|
|
16
|
+
};
|
|
17
|
+
var CUBIC_KEYFRAME_EASING = {
|
|
18
|
+
type: "bezier",
|
|
19
|
+
x1: 1 / 3,
|
|
20
|
+
y1: 0,
|
|
21
|
+
x2: 2 / 3,
|
|
22
|
+
y2: 0
|
|
23
|
+
};
|
|
24
|
+
var getBackKeyframeEasing = (s = 1.70158) => ({
|
|
25
|
+
type: "bezier",
|
|
26
|
+
x1: 1 / 3,
|
|
27
|
+
y1: 0,
|
|
28
|
+
x2: 2 / 3,
|
|
29
|
+
y2: -s / 3
|
|
30
|
+
});
|
|
31
|
+
var getPolyKeyframeEasing = (n) => {
|
|
32
|
+
if (n === 1) {
|
|
33
|
+
return LINEAR_KEYFRAME_EASING;
|
|
34
|
+
}
|
|
35
|
+
if (n === 2) {
|
|
36
|
+
return QUAD_KEYFRAME_EASING;
|
|
37
|
+
}
|
|
38
|
+
if (n === 3) {
|
|
39
|
+
return CUBIC_KEYFRAME_EASING;
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
};
|
|
43
|
+
var getOutKeyframeEasing = (easing) => {
|
|
44
|
+
if (easing.type === "linear") {
|
|
45
|
+
return LINEAR_KEYFRAME_EASING;
|
|
46
|
+
}
|
|
47
|
+
if (easing.type !== "bezier") {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
type: "bezier",
|
|
52
|
+
x1: 1 - easing.x2,
|
|
53
|
+
y1: 1 - easing.y2,
|
|
54
|
+
x2: 1 - easing.x1,
|
|
55
|
+
y2: 1 - easing.y1
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
var KEYFRAME_EASING_PRESETS = [
|
|
59
|
+
{
|
|
60
|
+
id: "ease-in",
|
|
61
|
+
label: "Ease in",
|
|
62
|
+
easing: { type: "bezier", x1: 0.42, y1: 0, x2: 1, y2: 1 }
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "ease-out",
|
|
66
|
+
label: "Ease out",
|
|
67
|
+
easing: { type: "bezier", x1: 0, y1: 0, x2: 0.58, y2: 1 }
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "ease-in-out",
|
|
71
|
+
label: "Ease in-out",
|
|
72
|
+
easing: { type: "bezier", x1: 0.42, y1: 0, x2: 0.58, y2: 1 }
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "tail-spring",
|
|
76
|
+
label: "Tail spring",
|
|
77
|
+
easing: {
|
|
78
|
+
type: "spring",
|
|
79
|
+
allowTail: true,
|
|
80
|
+
damping: 200,
|
|
81
|
+
durationRestThreshold: 0.02,
|
|
82
|
+
mass: 1,
|
|
83
|
+
overshootClamping: false,
|
|
84
|
+
stiffness: 100
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "spring",
|
|
89
|
+
label: "Spring",
|
|
90
|
+
easing: {
|
|
91
|
+
type: "spring",
|
|
92
|
+
allowTail: true,
|
|
93
|
+
damping: 10,
|
|
94
|
+
durationRestThreshold: 0.02,
|
|
95
|
+
mass: 1,
|
|
96
|
+
overshootClamping: false,
|
|
97
|
+
stiffness: 100
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "bouncy-spring",
|
|
102
|
+
label: "Bouncy spring",
|
|
103
|
+
easing: {
|
|
104
|
+
type: "spring",
|
|
105
|
+
allowTail: true,
|
|
106
|
+
damping: 5,
|
|
107
|
+
durationRestThreshold: 0.02,
|
|
108
|
+
mass: 1,
|
|
109
|
+
overshootClamping: false,
|
|
110
|
+
stiffness: 120
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
];
|
|
114
|
+
export {
|
|
115
|
+
getPolyKeyframeEasing,
|
|
116
|
+
getOutKeyframeEasing,
|
|
117
|
+
getBackKeyframeEasing,
|
|
118
|
+
QUAD_KEYFRAME_EASING,
|
|
119
|
+
LINEAR_KEYFRAME_EASING,
|
|
120
|
+
KEYFRAME_EASING_PRESETS,
|
|
121
|
+
EASE_KEYFRAME_EASING,
|
|
122
|
+
CUBIC_KEYFRAME_EASING
|
|
123
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// src/keyframe-interpolation-function.ts
|
|
2
|
+
var keyframeInterpolationFunctions = [
|
|
3
|
+
"interpolate",
|
|
4
|
+
"interpolateColors"
|
|
5
|
+
];
|
|
6
|
+
var KEYFRAME_FIELD_TYPE_SUPPORT = {
|
|
7
|
+
array: false,
|
|
8
|
+
asset: false,
|
|
9
|
+
boolean: false,
|
|
10
|
+
"remotion-captions": false,
|
|
11
|
+
color: true,
|
|
12
|
+
enum: false,
|
|
13
|
+
"font-family": false,
|
|
14
|
+
hidden: true,
|
|
15
|
+
number: true,
|
|
16
|
+
"rotation-css": true,
|
|
17
|
+
"rotation-degrees": true,
|
|
18
|
+
scale: true,
|
|
19
|
+
"text-content": false,
|
|
20
|
+
"transform-origin": true,
|
|
21
|
+
translate: true,
|
|
22
|
+
"uv-coordinate": true
|
|
23
|
+
};
|
|
24
|
+
var KEYFRAME_FIELD_TYPE_INTERPOLATION = {
|
|
25
|
+
array: "unsupported",
|
|
26
|
+
asset: "unsupported",
|
|
27
|
+
boolean: "unsupported",
|
|
28
|
+
"remotion-captions": "unsupported",
|
|
29
|
+
color: "interpolateColors",
|
|
30
|
+
enum: "unsupported",
|
|
31
|
+
"font-family": "unsupported",
|
|
32
|
+
hidden: "infer",
|
|
33
|
+
number: "infer",
|
|
34
|
+
"rotation-css": "interpolate",
|
|
35
|
+
"rotation-degrees": "infer",
|
|
36
|
+
scale: "interpolate",
|
|
37
|
+
"text-content": "unsupported",
|
|
38
|
+
"transform-origin": "interpolate",
|
|
39
|
+
translate: "interpolate",
|
|
40
|
+
"uv-coordinate": "infer"
|
|
41
|
+
};
|
|
42
|
+
var KEYFRAME_INTERPOLATION_EASING_SUPPORT = {
|
|
43
|
+
interpolate: true,
|
|
44
|
+
interpolateColors: true
|
|
45
|
+
};
|
|
46
|
+
var isKeyframeInterpolationFunction = (name) => {
|
|
47
|
+
return keyframeInterpolationFunctions.includes(name);
|
|
48
|
+
};
|
|
49
|
+
var canEditEasingForInterpolationFunction = (interpolationFunction) => isKeyframeInterpolationFunction(interpolationFunction) && KEYFRAME_INTERPOLATION_EASING_SUPPORT[interpolationFunction];
|
|
50
|
+
var isInteractivitySchemaFieldKeyframable = (field) => {
|
|
51
|
+
if (!field) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
return KEYFRAME_FIELD_TYPE_SUPPORT[field.type] && field.keyframable !== false;
|
|
55
|
+
};
|
|
56
|
+
var findFieldInSchema = (schema, key) => {
|
|
57
|
+
if (key in schema) {
|
|
58
|
+
return schema[key];
|
|
59
|
+
}
|
|
60
|
+
for (const field of Object.values(schema)) {
|
|
61
|
+
if (field.type !== "enum") {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
for (const variant of Object.values(field.variants)) {
|
|
65
|
+
const found = findFieldInSchema(variant, key);
|
|
66
|
+
if (found) {
|
|
67
|
+
return found;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return;
|
|
72
|
+
};
|
|
73
|
+
var isSchemaFieldKeyframable = ({
|
|
74
|
+
schema,
|
|
75
|
+
key
|
|
76
|
+
}) => {
|
|
77
|
+
const field = schema ? findFieldInSchema(schema, key) : undefined;
|
|
78
|
+
return isInteractivitySchemaFieldKeyframable(field);
|
|
79
|
+
};
|
|
80
|
+
var getKeyframeInterpolationFunctionForSchemaField = ({
|
|
81
|
+
schema,
|
|
82
|
+
key
|
|
83
|
+
}) => {
|
|
84
|
+
const field = schema ? findFieldInSchema(schema, key) : undefined;
|
|
85
|
+
if (!field) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
const strategy = KEYFRAME_FIELD_TYPE_INTERPOLATION[field.type];
|
|
89
|
+
return strategy === "infer" || strategy === "unsupported" ? null : strategy;
|
|
90
|
+
};
|
|
91
|
+
var getKeyframeInterpolationFunction = ({
|
|
92
|
+
schema,
|
|
93
|
+
key,
|
|
94
|
+
staticValue,
|
|
95
|
+
newValue
|
|
96
|
+
}) => {
|
|
97
|
+
const schemaFunction = getKeyframeInterpolationFunctionForSchemaField({
|
|
98
|
+
schema,
|
|
99
|
+
key
|
|
100
|
+
});
|
|
101
|
+
if (schemaFunction) {
|
|
102
|
+
return schemaFunction;
|
|
103
|
+
}
|
|
104
|
+
return typeof staticValue === "string" && typeof newValue === "string" ? "interpolateColors" : "interpolate";
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
keyframeInterpolationFunctions,
|
|
108
|
+
isSchemaFieldKeyframable,
|
|
109
|
+
isKeyframeInterpolationFunction,
|
|
110
|
+
isInteractivitySchemaFieldKeyframable,
|
|
111
|
+
getKeyframeInterpolationFunctionForSchemaField,
|
|
112
|
+
getKeyframeInterpolationFunction,
|
|
113
|
+
canEditEasingForInterpolationFunction
|
|
114
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// src/parse-spring-easing-config.ts
|
|
2
|
+
var DEFAULT_SPRING_EASING = {
|
|
3
|
+
type: "spring",
|
|
4
|
+
allowTail: null,
|
|
5
|
+
damping: 10,
|
|
6
|
+
durationRestThreshold: null,
|
|
7
|
+
mass: 1,
|
|
8
|
+
overshootClamping: false,
|
|
9
|
+
stiffness: 100
|
|
10
|
+
};
|
|
11
|
+
var isAstNode = (value) => {
|
|
12
|
+
return typeof value === "object" && value !== null && typeof value.type === "string";
|
|
13
|
+
};
|
|
14
|
+
var getNumericValue = (node) => {
|
|
15
|
+
if (node.type === "NumericLiteral") {
|
|
16
|
+
return typeof node.value === "number" ? node.value : null;
|
|
17
|
+
}
|
|
18
|
+
if (node.type === "UnaryExpression" && (node.operator === "-" || node.operator === "+") && isAstNode(node.argument) && node.argument.type === "NumericLiteral" && typeof node.argument.value === "number") {
|
|
19
|
+
return node.operator === "-" ? -node.argument.value : node.argument.value;
|
|
20
|
+
}
|
|
21
|
+
if (node.type === "TSAsExpression" && isAstNode(node.expression)) {
|
|
22
|
+
return getNumericValue(node.expression);
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
};
|
|
26
|
+
var getBooleanValue = (node) => {
|
|
27
|
+
if (node.type === "BooleanLiteral") {
|
|
28
|
+
return typeof node.value === "boolean" ? node.value : null;
|
|
29
|
+
}
|
|
30
|
+
if (node.type === "TSAsExpression" && isAstNode(node.expression)) {
|
|
31
|
+
return getBooleanValue(node.expression);
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
};
|
|
35
|
+
var getObjectPropertyName = (prop) => {
|
|
36
|
+
if (prop.computed === true || !isAstNode(prop.key)) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
if (prop.key.type === "Identifier") {
|
|
40
|
+
return typeof prop.key.name === "string" ? prop.key.name : null;
|
|
41
|
+
}
|
|
42
|
+
if (prop.key.type === "StringLiteral") {
|
|
43
|
+
return typeof prop.key.value === "string" ? prop.key.value : null;
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
};
|
|
47
|
+
var parseSpringEasingConfig = (node) => {
|
|
48
|
+
if (node === undefined) {
|
|
49
|
+
return { ...DEFAULT_SPRING_EASING };
|
|
50
|
+
}
|
|
51
|
+
if (!isAstNode(node)) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
if (node.type === "TSAsExpression") {
|
|
55
|
+
return parseSpringEasingConfig(node.expression);
|
|
56
|
+
}
|
|
57
|
+
if (node.type !== "ObjectExpression" || !Array.isArray(node.properties)) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
const spring = { ...DEFAULT_SPRING_EASING };
|
|
61
|
+
for (const prop of node.properties) {
|
|
62
|
+
if (!isAstNode(prop) || prop.type !== "ObjectProperty") {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
const key = getObjectPropertyName(prop);
|
|
66
|
+
if (!key || !isAstNode(prop.value)) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
if (key === "damping" || key === "mass" || key === "stiffness" || key === "durationRestThreshold") {
|
|
70
|
+
const numericValue = getNumericValue(prop.value);
|
|
71
|
+
if (numericValue === null || !Number.isFinite(numericValue) || numericValue <= 0) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
spring[key] = numericValue;
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
if (key === "overshootClamping" || key === "allowTail") {
|
|
78
|
+
const booleanValue = getBooleanValue(prop.value);
|
|
79
|
+
if (booleanValue === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
spring[key] = booleanValue;
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
return spring;
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
parseSpringEasingConfig,
|
|
91
|
+
DEFAULT_SPRING_EASING
|
|
92
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/studio-entry-points.ts
|
|
2
|
+
var getStudioEntryPoints = ({
|
|
3
|
+
fastRefreshRuntime,
|
|
4
|
+
environmentSetup,
|
|
5
|
+
sequenceStackTraces,
|
|
6
|
+
userDefinedComponent,
|
|
7
|
+
reactShim,
|
|
8
|
+
studioRenderEntry
|
|
9
|
+
}) => [
|
|
10
|
+
fastRefreshRuntime,
|
|
11
|
+
environmentSetup,
|
|
12
|
+
sequenceStackTraces,
|
|
13
|
+
userDefinedComponent,
|
|
14
|
+
reactShim,
|
|
15
|
+
studioRenderEntry
|
|
16
|
+
].filter(Boolean);
|
|
17
|
+
export {
|
|
18
|
+
getStudioEntryPoints
|
|
19
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// src/studio-html.ts
|
|
2
|
+
import { Internals, VERSION } from "remotion";
|
|
3
|
+
var studioHtml = ({
|
|
4
|
+
publicPath,
|
|
5
|
+
editorName,
|
|
6
|
+
inputProps,
|
|
7
|
+
envVariables,
|
|
8
|
+
staticHash,
|
|
9
|
+
remotionRoot,
|
|
10
|
+
studioServerCommand,
|
|
11
|
+
renderQueue,
|
|
12
|
+
completedClientRenders,
|
|
13
|
+
numberOfAudioTags,
|
|
14
|
+
publicFiles,
|
|
15
|
+
includeFavicon,
|
|
16
|
+
title,
|
|
17
|
+
renderDefaults,
|
|
18
|
+
publicFolderExists,
|
|
19
|
+
fileSystemPlatform,
|
|
20
|
+
gitSource,
|
|
21
|
+
projectName,
|
|
22
|
+
installedDependencies,
|
|
23
|
+
packageManager,
|
|
24
|
+
audioLatencyHint,
|
|
25
|
+
sampleRate,
|
|
26
|
+
logLevel,
|
|
27
|
+
mode,
|
|
28
|
+
bundleScriptUrl,
|
|
29
|
+
readOnlyStudio,
|
|
30
|
+
studioRuntimeConfig
|
|
31
|
+
}) => {
|
|
32
|
+
const scriptUrl = bundleScriptUrl ?? `${publicPath}bundle.js`;
|
|
33
|
+
const isRelativeBundle = mode === "bundle" && publicPath === "./";
|
|
34
|
+
const staticBaseValue = isRelativeBundle ? `new URL(${JSON.stringify(staticHash)}, window.location.href).pathname` : JSON.stringify(staticHash);
|
|
35
|
+
const staticFilesValue = isRelativeBundle ? `${JSON.stringify(publicFiles)}.map((file) => ({...file, src: new URL(file.src, window.location.href).pathname}))` : JSON.stringify(publicFiles);
|
|
36
|
+
const publicFolderExistsValue = isRelativeBundle && publicFolderExists ? `new URL(${JSON.stringify(publicFolderExists)}, window.location.href).pathname` : JSON.stringify(publicFolderExists);
|
|
37
|
+
return `
|
|
38
|
+
<!DOCTYPE html>
|
|
39
|
+
<html lang="en">
|
|
40
|
+
<head>
|
|
41
|
+
<meta charset="UTF-8" />
|
|
42
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
43
|
+
${includeFavicon ? `<link id="__remotion_favicon" rel="icon" type="image/png" href="${publicPath}favicon.ico" />` : ""}
|
|
44
|
+
<title>${title}</title>
|
|
45
|
+
</head>
|
|
46
|
+
<body>
|
|
47
|
+
<script>window.remotion_numberOfAudioTags = ${numberOfAudioTags};</script>
|
|
48
|
+
<script>window.remotion_audioLatencyHint = "${audioLatencyHint}";</script>
|
|
49
|
+
<script>window.remotion_sampleRate = ${sampleRate};</script>
|
|
50
|
+
<script>window.remotion_previewSampleRate = ${sampleRate};</script>
|
|
51
|
+
${mode === "dev" ? `<script>window.remotion_logLevel = "${logLevel}";</script>` : ""}
|
|
52
|
+
<script>window.remotion_staticBase = ${staticBaseValue};</script>
|
|
53
|
+
${editorName ? `<script>window.remotion_editorName = "${editorName}";</script>` : "<script>window.remotion_editorName = null;</script>"}
|
|
54
|
+
<script>window.remotion_projectName = ${JSON.stringify(projectName)};</script>
|
|
55
|
+
<script>window.remotion_publicPath = ${JSON.stringify(publicPath)};</script>
|
|
56
|
+
<script>window.remotion_audioEnabled = true;</script>
|
|
57
|
+
<script>window.remotion_videoEnabled = true;</script>
|
|
58
|
+
<script>window.remotion_studioConfig = ${JSON.stringify(studioRuntimeConfig ?? null)};</script>
|
|
59
|
+
<script>window.remotion_renderDefaults = ${JSON.stringify(renderDefaults)};</script>
|
|
60
|
+
<script>window.remotion_cwd = ${JSON.stringify(remotionRoot)};</script>
|
|
61
|
+
<script>window.remotion_fileSystemPlatform = ${JSON.stringify(fileSystemPlatform)};</script>
|
|
62
|
+
<script>window.remotion_studioServerCommand = ${studioServerCommand ? JSON.stringify(studioServerCommand) : "null"};</script>
|
|
63
|
+
${inputProps ? `<script>window.remotion_inputProps = ${JSON.stringify(JSON.stringify(inputProps))};</script>` : ""}
|
|
64
|
+
${renderQueue ? `<script>window.remotion_initialRenderQueue = ${JSON.stringify(renderQueue)};</script>` : ""}
|
|
65
|
+
${completedClientRenders ? `<script>window.remotion_initialClientRenders = ${JSON.stringify(completedClientRenders)};</script>` : ""}
|
|
66
|
+
${envVariables ? `<script>window.process = {env: ${JSON.stringify(envVariables)}};</script>` : ""}
|
|
67
|
+
${gitSource ? `<script>window.remotion_gitSource = ${JSON.stringify(gitSource)};</script>` : ""}
|
|
68
|
+
${mode === "dev" ? `
|
|
69
|
+
<script>window.remotion_isStudio = true;</script>
|
|
70
|
+
<script>window.remotion_isReadOnlyStudio = ${readOnlyStudio ? "true" : "false"};</script>`.trimStart() : ""}
|
|
71
|
+
<script>window.remotion_staticFiles = ${staticFilesValue}</script>
|
|
72
|
+
<script>window.remotion_installedPackages = ${JSON.stringify(installedDependencies)}</script>
|
|
73
|
+
<script>window.remotion_packageManager = ${JSON.stringify(packageManager)}</script>
|
|
74
|
+
<script>window.remotion_publicFolderExists = ${publicFolderExistsValue};</script>
|
|
75
|
+
<script>
|
|
76
|
+
// Increment this value when the generated bundle format or behavior changes
|
|
77
|
+
// in a backwards-incompatible way. It is not the Remotion package version
|
|
78
|
+
// and should not be bumped for every generated HTML change.
|
|
79
|
+
// Keep it synchronized with requiredVersion in
|
|
80
|
+
// packages/renderer/src/set-props-and-env.ts by incrementing both values.
|
|
81
|
+
window.siteVersion = '11';
|
|
82
|
+
window.remotion_version = '${VERSION}';
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<div id="video-container"></div>
|
|
86
|
+
<div id="${Internals.REMOTION_STUDIO_CONTAINER_ELEMENT}"></div>
|
|
87
|
+
<div id="remotion-error-overlay"></div>
|
|
88
|
+
<div id="server-disconnected-overlay"></div>
|
|
89
|
+
<div id="menuportal-0"></div>
|
|
90
|
+
<div id="menuportal-1"></div>
|
|
91
|
+
<div id="menuportal-2"></div>
|
|
92
|
+
<div id="menuportal-3"></div>
|
|
93
|
+
<div id="menuportal-4"></div>
|
|
94
|
+
<div id="menuportal-5"></div>
|
|
95
|
+
<script src="${scriptUrl}"></script>
|
|
96
|
+
</body>
|
|
97
|
+
</html>
|
|
98
|
+
`.trim();
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
studioHtml
|
|
102
|
+
};
|
package/dist/package-info.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const allPackages: readonly ["svg-3d-engine", "animation-utils", "animated-emoji", "astro-example", "babel-loader", "bugs", "brand", "bundler", "browser-studio", "canvas-capture", "claude-code-plugin", "cli", "cloudrun", "codex-plugin", "kimi-code-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-codemods", "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", "
|
|
1
|
+
declare const allPackages: readonly ["svg-3d-engine", "animation-utils", "animated-emoji", "astro-example", "babel-loader", "bugs", "brand", "bundler", "browser-studio", "canvas-capture", "claude-code-plugin", "cli", "cloudrun", "codex-plugin", "kimi-code-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-codemods", "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", "studio-protocol", "light-leaks", "rough-notation", "starburst", "vercel", "sfx", "effects"];
|
|
2
2
|
export type Pkgs = (typeof allPackages)[number];
|
|
3
|
-
export declare const packages: ("animated-emoji" | "animation-utils" | "astro-example" | "babel-loader" | "brand" | "browser-studio" | "bugs" | "bundler" | "canvas-capture" | "captions" | "claude-code-plugin" | "cli" | "cloudrun" | "codex-plugin" | "compositor" | "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" | "convert" | "core" | "create-video" | "design" | "discord-poster" | "docs" | "docusaurus-plugin" | "
|
|
3
|
+
export declare const packages: ("animated-emoji" | "animation-utils" | "astro-example" | "babel-loader" | "brand" | "browser-studio" | "bugs" | "bundler" | "canvas-capture" | "captions" | "claude-code-plugin" | "cli" | "cloudrun" | "codex-plugin" | "compositor" | "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" | "convert" | "core" | "create-video" | "design" | "discord-poster" | "docs" | "docusaurus-plugin" | "effects" | "elevenlabs" | "enable-scss" | "eslint-config" | "eslint-config-flat" | "eslint-config-internal" | "eslint-plugin" | "example" | "example-videos" | "example-without-zod" | "fonts" | "gif" | "google-fonts" | "install-whisper-cpp" | "it-tests" | "kimi-code-plugin" | "lambda" | "lambda-client" | "lambda-go" | "lambda-go-example" | "lambda-php" | "lambda-python" | "lambda-ruby" | "layout-utils" | "licensing" | "light-leaks" | "lottie" | "mcp" | "media" | "media-parser" | "media-utils" | "motion-blur" | "noise" | "openai-whisper" | "paths" | "player" | "player-a11y" | "player-example" | "preload" | "promo-pages" | "react18-tests" | "remotion-media" | "renderer" | "rive" | "rough-notation" | "rounded-text-box" | "serverless" | "serverless-client" | "sfx" | "shapes" | "skia" | "skills" | "skills-evals" | "starburst" | "streaming" | "studio" | "studio-codemods" | "studio-protocol" | "studio-server" | "studio-shared" | "svg-3d-engine" | "tailwind" | "tailwind-v4" | "test-utils" | "three" | "timeline-utils" | "transitions" | "vercel" | "web-renderer" | "webcodecs" | "whisper-web" | "zod-types" | "zod-types-v3")[];
|
|
4
4
|
export type ExtraPackage = {
|
|
5
5
|
name: string;
|
|
6
6
|
version: string;
|
package/dist/package-info.js
CHANGED
|
@@ -99,7 +99,7 @@ const allPackages = [
|
|
|
99
99
|
'remotion-media',
|
|
100
100
|
'web-renderer',
|
|
101
101
|
'design',
|
|
102
|
-
'
|
|
102
|
+
'studio-protocol',
|
|
103
103
|
'light-leaks',
|
|
104
104
|
'rough-notation',
|
|
105
105
|
'starburst',
|
|
@@ -232,7 +232,7 @@ exports.descriptions = {
|
|
|
232
232
|
'remotion-media': null,
|
|
233
233
|
'web-renderer': 'Render videos in the browser',
|
|
234
234
|
design: 'Design system',
|
|
235
|
-
'
|
|
235
|
+
'studio-protocol': 'Create Element payloads and request installation into Remotion Studio',
|
|
236
236
|
'light-leaks': 'Light leak effects for Remotion',
|
|
237
237
|
'rough-notation': 'Rough annotation primitives for Remotion',
|
|
238
238
|
'player-a11y': 'Internal accessibility wrapper around @remotion/player',
|
|
@@ -343,7 +343,7 @@ exports.installableMap = {
|
|
|
343
343
|
'remotion-media': false,
|
|
344
344
|
'web-renderer': false,
|
|
345
345
|
design: false,
|
|
346
|
-
'
|
|
346
|
+
'studio-protocol': true,
|
|
347
347
|
'light-leaks': (0, release_package_policy_1.shouldReleasePackage)({
|
|
348
348
|
packageName: '@remotion/light-leaks',
|
|
349
349
|
releaseVersion: remotion_1.VERSION,
|
|
@@ -453,7 +453,7 @@ exports.apiDocs = {
|
|
|
453
453
|
media: 'https://remotion.dev/docs/media',
|
|
454
454
|
'web-renderer': 'https://www.remotion.dev/docs/web-renderer/',
|
|
455
455
|
design: 'https://www.remotion.dev/design',
|
|
456
|
-
'
|
|
456
|
+
'studio-protocol': 'https://www.remotion.dev/docs/studio-protocol',
|
|
457
457
|
'light-leaks': 'https://www.remotion.dev/docs/light-leaks',
|
|
458
458
|
'rough-notation': 'https://www.remotion.dev/docs/rough-notation',
|
|
459
459
|
starburst: 'https://www.remotion.dev/docs/starburst',
|
package/package.json
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
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.502",
|
|
7
7
|
"description": "Internal package for shared objects between the Studio backend and frontend",
|
|
8
8
|
"main": "dist",
|
|
9
|
+
"module": "dist/esm/index.mjs",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"lint": "eslint src",
|
|
11
12
|
"test": "bun test src",
|
|
12
13
|
"formatting": "oxfmt src --check",
|
|
13
14
|
"format": "oxfmt src",
|
|
14
|
-
"make": "tsgo -d"
|
|
15
|
+
"make": "tsgo -d && bun --env-file=../.env.bundle bundle.ts"
|
|
15
16
|
},
|
|
16
17
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
17
18
|
"contributors": [],
|
|
@@ -20,12 +21,12 @@
|
|
|
20
21
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@remotion/
|
|
24
|
-
"remotion": "4.0.
|
|
24
|
+
"@remotion/studio-protocol": "4.0.502",
|
|
25
|
+
"remotion": "4.0.502"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@remotion/renderer": "4.0.
|
|
28
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
28
|
+
"@remotion/renderer": "4.0.502",
|
|
29
|
+
"@remotion/eslint-config-internal": "4.0.502",
|
|
29
30
|
"eslint": "9.19.0",
|
|
30
31
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
31
32
|
},
|
|
@@ -33,15 +34,61 @@
|
|
|
33
34
|
"access": "public"
|
|
34
35
|
},
|
|
35
36
|
"exports": {
|
|
36
|
-
".":
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"require": "./dist/index.js",
|
|
40
|
+
"module": "./dist/esm/index.mjs",
|
|
41
|
+
"import": "./dist/esm/index.mjs"
|
|
42
|
+
},
|
|
37
43
|
"./studio-entry-points": {
|
|
38
44
|
"types": "./dist/studio-entry-points.d.ts",
|
|
39
|
-
"
|
|
45
|
+
"require": "./dist/studio-entry-points.js",
|
|
46
|
+
"module": "./dist/esm/studio-entry-points.mjs",
|
|
47
|
+
"import": "./dist/esm/studio-entry-points.mjs"
|
|
40
48
|
},
|
|
41
49
|
"./studio-html": {
|
|
42
50
|
"types": "./dist/studio-html.d.ts",
|
|
43
|
-
"
|
|
51
|
+
"require": "./dist/studio-html.js",
|
|
52
|
+
"module": "./dist/esm/studio-html.mjs",
|
|
53
|
+
"import": "./dist/esm/studio-html.mjs"
|
|
54
|
+
},
|
|
55
|
+
"./keyframe-easing-presets": {
|
|
56
|
+
"types": "./dist/keyframe-easing-presets.d.ts",
|
|
57
|
+
"require": "./dist/keyframe-easing-presets.js",
|
|
58
|
+
"module": "./dist/esm/keyframe-easing-presets.mjs",
|
|
59
|
+
"import": "./dist/esm/keyframe-easing-presets.mjs"
|
|
60
|
+
},
|
|
61
|
+
"./keyframe-interpolation-function": {
|
|
62
|
+
"types": "./dist/keyframe-interpolation-function.d.ts",
|
|
63
|
+
"require": "./dist/keyframe-interpolation-function.js",
|
|
64
|
+
"module": "./dist/esm/keyframe-interpolation-function.mjs",
|
|
65
|
+
"import": "./dist/esm/keyframe-interpolation-function.mjs"
|
|
66
|
+
},
|
|
67
|
+
"./parse-spring-easing-config": {
|
|
68
|
+
"types": "./dist/parse-spring-easing-config.d.ts",
|
|
69
|
+
"require": "./dist/parse-spring-easing-config.js",
|
|
70
|
+
"module": "./dist/esm/parse-spring-easing-config.mjs",
|
|
71
|
+
"import": "./dist/esm/parse-spring-easing-config.mjs"
|
|
44
72
|
},
|
|
45
73
|
"./package.json": "./package.json"
|
|
74
|
+
},
|
|
75
|
+
"typesVersions": {
|
|
76
|
+
">=1.0": {
|
|
77
|
+
"studio-entry-points": [
|
|
78
|
+
"./dist/studio-entry-points.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"studio-html": [
|
|
81
|
+
"./dist/studio-html.d.ts"
|
|
82
|
+
],
|
|
83
|
+
"keyframe-easing-presets": [
|
|
84
|
+
"./dist/keyframe-easing-presets.d.ts"
|
|
85
|
+
],
|
|
86
|
+
"keyframe-interpolation-function": [
|
|
87
|
+
"./dist/keyframe-interpolation-function.d.ts"
|
|
88
|
+
],
|
|
89
|
+
"parse-spring-easing-config": [
|
|
90
|
+
"./dist/parse-spring-easing-config.d.ts"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
46
93
|
}
|
|
47
94
|
}
|