remotion 4.0.479 → 4.0.482
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/cjs/CompositionManager.d.ts +2 -0
- package/dist/cjs/HtmlInCanvas.d.ts +74 -0
- package/dist/cjs/HtmlInCanvas.js +13 -10
- package/dist/cjs/Img.d.ts +7 -0
- package/dist/cjs/Img.js +6 -5
- package/dist/cjs/Interactive.d.ts +88 -2
- package/dist/cjs/Interactive.js +5 -2
- package/dist/cjs/Sequence.d.ts +1 -0
- package/dist/cjs/Sequence.js +27 -6
- package/dist/cjs/animated-image/AnimatedImage.js +1 -0
- package/dist/cjs/audio/AudioForPreview.js +3 -3
- package/dist/cjs/canvas-image/CanvasImage.d.ts +7 -0
- package/dist/cjs/canvas-image/CanvasImage.js +3 -2
- package/dist/cjs/effects/Solid.d.ts +95 -0
- package/dist/cjs/effects/Solid.js +15 -5
- package/dist/cjs/interactivity-schema.d.ts +106 -0
- package/dist/cjs/interactivity-schema.js +81 -1
- package/dist/cjs/internals.d.ts +86 -1
- package/dist/cjs/internals.js +2 -1
- package/dist/cjs/no-react.d.ts +7 -0
- package/dist/cjs/prefetch.js +15 -10
- package/dist/cjs/series/index.js +1 -0
- package/dist/cjs/use-media-in-timeline.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/VideoForPreview.js +2 -2
- package/dist/cjs/volume-position-state.d.ts +4 -4
- package/dist/cjs/volume-position-state.js +9 -9
- package/dist/cjs/with-interactivity-schema.d.ts +2 -1
- package/dist/cjs/with-interactivity-schema.js +2 -1
- package/dist/esm/index.mjs +184 -35
- package/dist/esm/no-react.mjs +9 -0
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
|
@@ -13,5 +13,100 @@ type OptionalProps = {
|
|
|
13
13
|
readonly pixelDensity: number | undefined;
|
|
14
14
|
};
|
|
15
15
|
export type SolidProps = MandatoryProps & Partial<OptionalProps>;
|
|
16
|
+
export declare const solidSchema: {
|
|
17
|
+
readonly 'style.transformOrigin': {
|
|
18
|
+
readonly type: "transform-origin";
|
|
19
|
+
readonly step: 1;
|
|
20
|
+
readonly default: "50% 50%";
|
|
21
|
+
readonly description: "Transform origin";
|
|
22
|
+
};
|
|
23
|
+
readonly 'style.translate': {
|
|
24
|
+
readonly type: "translate";
|
|
25
|
+
readonly step: 1;
|
|
26
|
+
readonly default: "0px 0px";
|
|
27
|
+
readonly description: "Offset";
|
|
28
|
+
};
|
|
29
|
+
readonly 'style.scale': {
|
|
30
|
+
readonly type: "scale";
|
|
31
|
+
readonly max: 100;
|
|
32
|
+
readonly step: 0.01;
|
|
33
|
+
readonly default: 1;
|
|
34
|
+
readonly description: "Scale";
|
|
35
|
+
};
|
|
36
|
+
readonly 'style.rotate': {
|
|
37
|
+
readonly type: "rotation-css";
|
|
38
|
+
readonly step: 1;
|
|
39
|
+
readonly default: "0deg";
|
|
40
|
+
readonly description: "Rotation";
|
|
41
|
+
};
|
|
42
|
+
readonly 'style.opacity': {
|
|
43
|
+
readonly type: "number";
|
|
44
|
+
readonly min: 0;
|
|
45
|
+
readonly max: 1;
|
|
46
|
+
readonly step: 0.01;
|
|
47
|
+
readonly default: 1;
|
|
48
|
+
readonly description: "Opacity";
|
|
49
|
+
readonly hiddenFromList: false;
|
|
50
|
+
};
|
|
51
|
+
readonly durationInFrames: {
|
|
52
|
+
readonly type: "number";
|
|
53
|
+
readonly default: undefined;
|
|
54
|
+
readonly min: 1;
|
|
55
|
+
readonly step: 1;
|
|
56
|
+
readonly hiddenFromList: true;
|
|
57
|
+
};
|
|
58
|
+
readonly from: {
|
|
59
|
+
readonly type: "number";
|
|
60
|
+
readonly default: 0;
|
|
61
|
+
readonly step: 1;
|
|
62
|
+
readonly hiddenFromList: true;
|
|
63
|
+
};
|
|
64
|
+
readonly trimBefore: {
|
|
65
|
+
readonly type: "number";
|
|
66
|
+
readonly default: 0;
|
|
67
|
+
readonly min: 0;
|
|
68
|
+
readonly step: 1;
|
|
69
|
+
readonly hiddenFromList: true;
|
|
70
|
+
};
|
|
71
|
+
readonly freeze: {
|
|
72
|
+
readonly type: "number";
|
|
73
|
+
readonly default: null;
|
|
74
|
+
readonly step: 1;
|
|
75
|
+
readonly hiddenFromList: true;
|
|
76
|
+
};
|
|
77
|
+
readonly hidden: import("../interactivity-schema.js").BooleanFieldSchema;
|
|
78
|
+
readonly name: import("../interactivity-schema.js").HiddenFieldSchema;
|
|
79
|
+
readonly showInTimeline: import("../interactivity-schema.js").HiddenFieldSchema;
|
|
80
|
+
readonly color: {
|
|
81
|
+
readonly type: "color";
|
|
82
|
+
readonly default: "transparent";
|
|
83
|
+
readonly description: "Color";
|
|
84
|
+
};
|
|
85
|
+
readonly width: {
|
|
86
|
+
readonly type: "number";
|
|
87
|
+
readonly min: 1;
|
|
88
|
+
readonly step: 1;
|
|
89
|
+
readonly default: 1920;
|
|
90
|
+
readonly description: "Width";
|
|
91
|
+
readonly hiddenFromList: false;
|
|
92
|
+
};
|
|
93
|
+
readonly height: {
|
|
94
|
+
readonly type: "number";
|
|
95
|
+
readonly min: 1;
|
|
96
|
+
readonly step: 1;
|
|
97
|
+
readonly default: 1080;
|
|
98
|
+
readonly description: "Height";
|
|
99
|
+
readonly hiddenFromList: false;
|
|
100
|
+
};
|
|
101
|
+
readonly pixelDensity: {
|
|
102
|
+
readonly type: "number";
|
|
103
|
+
readonly min: 1;
|
|
104
|
+
readonly max: 3;
|
|
105
|
+
readonly step: 0.1;
|
|
106
|
+
readonly default: 1;
|
|
107
|
+
readonly description: "Pixel density";
|
|
108
|
+
readonly hiddenFromList: false;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
16
111
|
export declare const Solid: React.ComponentType<MandatoryProps & Partial<OptionalProps> & InteractiveBaseProps & React.RefAttributes<HTMLCanvasElement>>;
|
|
17
112
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Solid = void 0;
|
|
3
|
+
exports.Solid = exports.solidSchema = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const enable_sequence_stack_traces_js_1 = require("../enable-sequence-stack-traces.js");
|
|
@@ -22,7 +22,7 @@ const resolveSolidPixelDensity = (pixelDensity) => {
|
|
|
22
22
|
}
|
|
23
23
|
return pixelDensity;
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
exports.solidSchema = {
|
|
26
26
|
...interactivity_schema_js_1.baseSchema,
|
|
27
27
|
color: {
|
|
28
28
|
type: 'color',
|
|
@@ -45,6 +45,15 @@ const solidSchema = {
|
|
|
45
45
|
description: 'Height',
|
|
46
46
|
hiddenFromList: false,
|
|
47
47
|
},
|
|
48
|
+
pixelDensity: {
|
|
49
|
+
type: 'number',
|
|
50
|
+
min: 1,
|
|
51
|
+
max: 3,
|
|
52
|
+
step: 0.1,
|
|
53
|
+
default: 1,
|
|
54
|
+
description: 'Pixel density',
|
|
55
|
+
hiddenFromList: false,
|
|
56
|
+
},
|
|
48
57
|
...interactivity_schema_js_1.transformSchema,
|
|
49
58
|
};
|
|
50
59
|
const SolidInner = ({ color, width, height, effects = [], className, style, pixelDensity, overrideId, reference, }) => {
|
|
@@ -138,7 +147,7 @@ const SolidInner = ({ color, width, height, effects = [], className, style, pixe
|
|
|
138
147
|
}, [height, style, width]);
|
|
139
148
|
return (jsx_runtime_1.jsx("canvas", { ref: canvasRef, width: canvasWidth, height: canvasHeight, className: className, style: canvasStyle }));
|
|
140
149
|
};
|
|
141
|
-
const SolidOuter = (0, react_1.forwardRef)(({ effects = [], controls, color, height, width, className, durationInFrames, style, name, from, freeze, hidden, showInTimeline, pixelDensity, ...props }, ref) => {
|
|
150
|
+
const SolidOuter = (0, react_1.forwardRef)(({ effects = [], controls, color, height, width, className, durationInFrames, style, name, from, trimBefore, freeze, hidden, showInTimeline, pixelDensity, ...props }, ref) => {
|
|
142
151
|
var _a;
|
|
143
152
|
props;
|
|
144
153
|
const memoizedEffectDefinitions = (0, use_memoized_effects_js_1.useMemoizedEffectDefinitions)(effects);
|
|
@@ -146,12 +155,13 @@ const SolidOuter = (0, react_1.forwardRef)(({ effects = [], controls, color, hei
|
|
|
146
155
|
(0, react_1.useImperativeHandle)(ref, () => {
|
|
147
156
|
return actualRef.current;
|
|
148
157
|
}, []);
|
|
149
|
-
return (jsx_runtime_1.jsx(Sequence_js_1.Sequence, { layout: "none", from: from, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline, controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, durationInFrames: durationInFrames, name: name !== null && name !== void 0 ? name : '<Solid>', outlineRef: actualRef, _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/solid", ...props, children: jsx_runtime_1.jsx(SolidInner, { reference: actualRef, overrideId: (_a = controls === null || controls === void 0 ? void 0 : controls.overrideId) !== null && _a !== void 0 ? _a : null, color: color, height: height, width: width, className: className, style: style, effects: effects, pixelDensity: pixelDensity }) }));
|
|
158
|
+
return (jsx_runtime_1.jsx(Sequence_js_1.Sequence, { layout: "none", from: from, trimBefore: trimBefore, freeze: freeze, hidden: hidden, showInTimeline: showInTimeline, controls: controls, _remotionInternalEffects: memoizedEffectDefinitions, durationInFrames: durationInFrames, name: name !== null && name !== void 0 ? name : '<Solid>', outlineRef: actualRef, _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/solid", ...props, children: jsx_runtime_1.jsx(SolidInner, { reference: actualRef, overrideId: (_a = controls === null || controls === void 0 ? void 0 : controls.overrideId) !== null && _a !== void 0 ? _a : null, color: color, height: height, width: width, className: className, style: style, effects: effects, pixelDensity: pixelDensity }) }));
|
|
150
159
|
});
|
|
151
160
|
exports.Solid = (0, with_interactivity_schema_js_1.withInteractivitySchema)({
|
|
152
161
|
Component: SolidOuter,
|
|
162
|
+
componentName: '<Solid>',
|
|
153
163
|
componentIdentity: 'dev.remotion.remotion.Solid',
|
|
154
|
-
schema: solidSchema,
|
|
164
|
+
schema: exports.solidSchema,
|
|
155
165
|
supportsEffects: true,
|
|
156
166
|
});
|
|
157
167
|
exports.Solid.displayName = 'Solid';
|
|
@@ -180,6 +180,77 @@ export declare const sequenceVisualStyleSchema: {
|
|
|
180
180
|
readonly hiddenFromList: false;
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
+
export declare const textSchema: {
|
|
184
|
+
readonly 'style.color': {
|
|
185
|
+
readonly type: "color";
|
|
186
|
+
readonly default: undefined;
|
|
187
|
+
readonly description: "Color";
|
|
188
|
+
};
|
|
189
|
+
readonly 'style.fontSize': {
|
|
190
|
+
readonly type: "number";
|
|
191
|
+
readonly default: undefined;
|
|
192
|
+
readonly min: 0;
|
|
193
|
+
readonly step: 1;
|
|
194
|
+
readonly description: "Font size";
|
|
195
|
+
readonly hiddenFromList: false;
|
|
196
|
+
};
|
|
197
|
+
readonly 'style.lineHeight': {
|
|
198
|
+
readonly type: "number";
|
|
199
|
+
readonly default: undefined;
|
|
200
|
+
readonly min: 0;
|
|
201
|
+
readonly step: 0.05;
|
|
202
|
+
readonly description: "Line height";
|
|
203
|
+
readonly hiddenFromList: false;
|
|
204
|
+
};
|
|
205
|
+
readonly 'style.fontWeight': {
|
|
206
|
+
readonly type: "enum";
|
|
207
|
+
readonly default: "400";
|
|
208
|
+
readonly description: "Font weight";
|
|
209
|
+
readonly variants: {
|
|
210
|
+
readonly '100': {};
|
|
211
|
+
readonly '200': {};
|
|
212
|
+
readonly '300': {};
|
|
213
|
+
readonly '400': {};
|
|
214
|
+
readonly '500': {};
|
|
215
|
+
readonly '600': {};
|
|
216
|
+
readonly '700': {};
|
|
217
|
+
readonly '800': {};
|
|
218
|
+
readonly '900': {};
|
|
219
|
+
readonly normal: {};
|
|
220
|
+
readonly bold: {};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly 'style.fontStyle': {
|
|
224
|
+
readonly type: "enum";
|
|
225
|
+
readonly default: "normal";
|
|
226
|
+
readonly description: "Font style";
|
|
227
|
+
readonly variants: {
|
|
228
|
+
readonly normal: {};
|
|
229
|
+
readonly italic: {};
|
|
230
|
+
readonly oblique: {};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly 'style.textAlign': {
|
|
234
|
+
readonly type: "enum";
|
|
235
|
+
readonly default: "left";
|
|
236
|
+
readonly description: "Text align";
|
|
237
|
+
readonly variants: {
|
|
238
|
+
readonly left: {};
|
|
239
|
+
readonly center: {};
|
|
240
|
+
readonly right: {};
|
|
241
|
+
readonly justify: {};
|
|
242
|
+
readonly start: {};
|
|
243
|
+
readonly end: {};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
readonly 'style.letterSpacing': {
|
|
247
|
+
readonly type: "number";
|
|
248
|
+
readonly default: undefined;
|
|
249
|
+
readonly step: 0.1;
|
|
250
|
+
readonly description: "Letter spacing";
|
|
251
|
+
readonly hiddenFromList: false;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
183
254
|
export declare const premountSchema: {
|
|
184
255
|
readonly premountFor: {
|
|
185
256
|
readonly type: "number";
|
|
@@ -301,6 +372,13 @@ export declare const fromField: {
|
|
|
301
372
|
readonly step: 1;
|
|
302
373
|
readonly hiddenFromList: true;
|
|
303
374
|
};
|
|
375
|
+
export declare const trimBeforeField: {
|
|
376
|
+
readonly type: "number";
|
|
377
|
+
readonly default: 0;
|
|
378
|
+
readonly min: 0;
|
|
379
|
+
readonly step: 1;
|
|
380
|
+
readonly hiddenFromList: true;
|
|
381
|
+
};
|
|
304
382
|
export declare const freezeField: {
|
|
305
383
|
readonly type: "number";
|
|
306
384
|
readonly default: null;
|
|
@@ -321,6 +399,13 @@ export declare const baseSchema: {
|
|
|
321
399
|
readonly step: 1;
|
|
322
400
|
readonly hiddenFromList: true;
|
|
323
401
|
};
|
|
402
|
+
readonly trimBefore: {
|
|
403
|
+
readonly type: "number";
|
|
404
|
+
readonly default: 0;
|
|
405
|
+
readonly min: 0;
|
|
406
|
+
readonly step: 1;
|
|
407
|
+
readonly hiddenFromList: true;
|
|
408
|
+
};
|
|
324
409
|
readonly freeze: {
|
|
325
410
|
readonly type: "number";
|
|
326
411
|
readonly default: null;
|
|
@@ -345,6 +430,13 @@ export declare const sequenceSchema: {
|
|
|
345
430
|
readonly step: 1;
|
|
346
431
|
readonly hiddenFromList: true;
|
|
347
432
|
};
|
|
433
|
+
readonly trimBefore: {
|
|
434
|
+
readonly type: "number";
|
|
435
|
+
readonly default: 0;
|
|
436
|
+
readonly min: 0;
|
|
437
|
+
readonly step: 1;
|
|
438
|
+
readonly hiddenFromList: true;
|
|
439
|
+
};
|
|
348
440
|
readonly freeze: {
|
|
349
441
|
readonly type: "number";
|
|
350
442
|
readonly default: null;
|
|
@@ -428,6 +520,13 @@ export declare const baseSchemaWithoutFrom: {
|
|
|
428
520
|
readonly step: 1;
|
|
429
521
|
readonly hiddenFromList: true;
|
|
430
522
|
};
|
|
523
|
+
readonly trimBefore: {
|
|
524
|
+
readonly type: "number";
|
|
525
|
+
readonly default: 0;
|
|
526
|
+
readonly min: 0;
|
|
527
|
+
readonly step: 1;
|
|
528
|
+
readonly hiddenFromList: true;
|
|
529
|
+
};
|
|
431
530
|
readonly freeze: {
|
|
432
531
|
readonly type: "number";
|
|
433
532
|
readonly default: null;
|
|
@@ -446,6 +545,13 @@ export declare const sequenceSchemaWithoutFrom: {
|
|
|
446
545
|
readonly step: 1;
|
|
447
546
|
readonly hiddenFromList: true;
|
|
448
547
|
};
|
|
548
|
+
readonly trimBefore: {
|
|
549
|
+
readonly type: "number";
|
|
550
|
+
readonly default: 0;
|
|
551
|
+
readonly min: 0;
|
|
552
|
+
readonly step: 1;
|
|
553
|
+
readonly hiddenFromList: true;
|
|
554
|
+
};
|
|
449
555
|
readonly freeze: {
|
|
450
556
|
readonly type: "number";
|
|
451
557
|
readonly default: null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.baseSchemaWithoutFrom = exports.sequenceSchema = exports.baseSchema = exports.freezeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.premountSchema = exports.sequenceVisualStyleSchema = exports.transformSchema = void 0;
|
|
3
|
+
exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchemaWithoutFrom = exports.baseSchemaWithoutFrom = exports.sequenceSchema = exports.baseSchema = exports.freezeField = exports.trimBeforeField = exports.fromField = exports.durationInFramesField = exports.extendSchemaWithSequenceName = exports.sequenceNameField = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.premountSchema = exports.textSchema = exports.sequenceVisualStyleSchema = exports.transformSchema = void 0;
|
|
4
4
|
exports.transformSchema = {
|
|
5
5
|
'style.transformOrigin': {
|
|
6
6
|
type: 'transform-origin',
|
|
@@ -38,6 +38,77 @@ exports.transformSchema = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
exports.sequenceVisualStyleSchema = exports.transformSchema;
|
|
41
|
+
exports.textSchema = {
|
|
42
|
+
'style.color': {
|
|
43
|
+
type: 'color',
|
|
44
|
+
default: undefined,
|
|
45
|
+
description: 'Color',
|
|
46
|
+
},
|
|
47
|
+
'style.fontSize': {
|
|
48
|
+
type: 'number',
|
|
49
|
+
default: undefined,
|
|
50
|
+
min: 0,
|
|
51
|
+
step: 1,
|
|
52
|
+
description: 'Font size',
|
|
53
|
+
hiddenFromList: false,
|
|
54
|
+
},
|
|
55
|
+
'style.lineHeight': {
|
|
56
|
+
type: 'number',
|
|
57
|
+
default: undefined,
|
|
58
|
+
min: 0,
|
|
59
|
+
step: 0.05,
|
|
60
|
+
description: 'Line height',
|
|
61
|
+
hiddenFromList: false,
|
|
62
|
+
},
|
|
63
|
+
'style.fontWeight': {
|
|
64
|
+
type: 'enum',
|
|
65
|
+
default: '400',
|
|
66
|
+
description: 'Font weight',
|
|
67
|
+
variants: {
|
|
68
|
+
'100': {},
|
|
69
|
+
'200': {},
|
|
70
|
+
'300': {},
|
|
71
|
+
'400': {},
|
|
72
|
+
'500': {},
|
|
73
|
+
'600': {},
|
|
74
|
+
'700': {},
|
|
75
|
+
'800': {},
|
|
76
|
+
'900': {},
|
|
77
|
+
normal: {},
|
|
78
|
+
bold: {},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
'style.fontStyle': {
|
|
82
|
+
type: 'enum',
|
|
83
|
+
default: 'normal',
|
|
84
|
+
description: 'Font style',
|
|
85
|
+
variants: {
|
|
86
|
+
normal: {},
|
|
87
|
+
italic: {},
|
|
88
|
+
oblique: {},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
'style.textAlign': {
|
|
92
|
+
type: 'enum',
|
|
93
|
+
default: 'left',
|
|
94
|
+
description: 'Text align',
|
|
95
|
+
variants: {
|
|
96
|
+
left: {},
|
|
97
|
+
center: {},
|
|
98
|
+
right: {},
|
|
99
|
+
justify: {},
|
|
100
|
+
start: {},
|
|
101
|
+
end: {},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
'style.letterSpacing': {
|
|
105
|
+
type: 'number',
|
|
106
|
+
default: undefined,
|
|
107
|
+
step: 0.1,
|
|
108
|
+
description: 'Letter spacing',
|
|
109
|
+
hiddenFromList: false,
|
|
110
|
+
},
|
|
111
|
+
};
|
|
41
112
|
exports.premountSchema = {
|
|
42
113
|
premountFor: {
|
|
43
114
|
type: 'number',
|
|
@@ -97,6 +168,13 @@ exports.fromField = {
|
|
|
97
168
|
step: 1,
|
|
98
169
|
hiddenFromList: true,
|
|
99
170
|
};
|
|
171
|
+
exports.trimBeforeField = {
|
|
172
|
+
type: 'number',
|
|
173
|
+
default: 0,
|
|
174
|
+
min: 0,
|
|
175
|
+
step: 1,
|
|
176
|
+
hiddenFromList: true,
|
|
177
|
+
};
|
|
100
178
|
exports.freezeField = {
|
|
101
179
|
type: 'number',
|
|
102
180
|
default: null,
|
|
@@ -106,6 +184,7 @@ exports.freezeField = {
|
|
|
106
184
|
exports.baseSchema = {
|
|
107
185
|
durationInFrames: exports.durationInFramesField,
|
|
108
186
|
from: exports.fromField,
|
|
187
|
+
trimBefore: exports.trimBeforeField,
|
|
109
188
|
freeze: exports.freezeField,
|
|
110
189
|
hidden: exports.hiddenField,
|
|
111
190
|
name: exports.sequenceNameField,
|
|
@@ -125,6 +204,7 @@ exports.sequenceSchema = {
|
|
|
125
204
|
};
|
|
126
205
|
exports.baseSchemaWithoutFrom = {
|
|
127
206
|
durationInFrames: exports.durationInFramesField,
|
|
207
|
+
trimBefore: exports.trimBeforeField,
|
|
128
208
|
freeze: exports.freezeField,
|
|
129
209
|
hidden: exports.hiddenField,
|
|
130
210
|
name: exports.sequenceNameField,
|
package/dist/cjs/internals.d.ts
CHANGED
|
@@ -91,6 +91,13 @@ export declare const Internals: {
|
|
|
91
91
|
readonly step: 1;
|
|
92
92
|
readonly hiddenFromList: true;
|
|
93
93
|
};
|
|
94
|
+
readonly trimBefore: {
|
|
95
|
+
readonly type: "number";
|
|
96
|
+
readonly default: 0;
|
|
97
|
+
readonly min: 0;
|
|
98
|
+
readonly step: 1;
|
|
99
|
+
readonly hiddenFromList: true;
|
|
100
|
+
};
|
|
94
101
|
readonly freeze: {
|
|
95
102
|
readonly type: "number";
|
|
96
103
|
readonly default: null;
|
|
@@ -115,6 +122,13 @@ export declare const Internals: {
|
|
|
115
122
|
readonly step: 1;
|
|
116
123
|
readonly hiddenFromList: true;
|
|
117
124
|
};
|
|
125
|
+
readonly trimBefore: {
|
|
126
|
+
readonly type: "number";
|
|
127
|
+
readonly default: 0;
|
|
128
|
+
readonly min: 0;
|
|
129
|
+
readonly step: 1;
|
|
130
|
+
readonly hiddenFromList: true;
|
|
131
|
+
};
|
|
118
132
|
readonly freeze: {
|
|
119
133
|
readonly type: "number";
|
|
120
134
|
readonly default: null;
|
|
@@ -307,6 +321,77 @@ export declare const Internals: {
|
|
|
307
321
|
readonly type: "hidden";
|
|
308
322
|
};
|
|
309
323
|
};
|
|
324
|
+
readonly textSchema: {
|
|
325
|
+
readonly 'style.color': {
|
|
326
|
+
readonly type: "color";
|
|
327
|
+
readonly default: undefined;
|
|
328
|
+
readonly description: "Color";
|
|
329
|
+
};
|
|
330
|
+
readonly 'style.fontSize': {
|
|
331
|
+
readonly type: "number";
|
|
332
|
+
readonly default: undefined;
|
|
333
|
+
readonly min: 0;
|
|
334
|
+
readonly step: 1;
|
|
335
|
+
readonly description: "Font size";
|
|
336
|
+
readonly hiddenFromList: false;
|
|
337
|
+
};
|
|
338
|
+
readonly 'style.lineHeight': {
|
|
339
|
+
readonly type: "number";
|
|
340
|
+
readonly default: undefined;
|
|
341
|
+
readonly min: 0;
|
|
342
|
+
readonly step: 0.05;
|
|
343
|
+
readonly description: "Line height";
|
|
344
|
+
readonly hiddenFromList: false;
|
|
345
|
+
};
|
|
346
|
+
readonly 'style.fontWeight': {
|
|
347
|
+
readonly type: "enum";
|
|
348
|
+
readonly default: "400";
|
|
349
|
+
readonly description: "Font weight";
|
|
350
|
+
readonly variants: {
|
|
351
|
+
readonly '100': {};
|
|
352
|
+
readonly '200': {};
|
|
353
|
+
readonly '300': {};
|
|
354
|
+
readonly '400': {};
|
|
355
|
+
readonly '500': {};
|
|
356
|
+
readonly '600': {};
|
|
357
|
+
readonly '700': {};
|
|
358
|
+
readonly '800': {};
|
|
359
|
+
readonly '900': {};
|
|
360
|
+
readonly normal: {};
|
|
361
|
+
readonly bold: {};
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
readonly 'style.fontStyle': {
|
|
365
|
+
readonly type: "enum";
|
|
366
|
+
readonly default: "normal";
|
|
367
|
+
readonly description: "Font style";
|
|
368
|
+
readonly variants: {
|
|
369
|
+
readonly normal: {};
|
|
370
|
+
readonly italic: {};
|
|
371
|
+
readonly oblique: {};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly 'style.textAlign': {
|
|
375
|
+
readonly type: "enum";
|
|
376
|
+
readonly default: "left";
|
|
377
|
+
readonly description: "Text align";
|
|
378
|
+
readonly variants: {
|
|
379
|
+
readonly left: {};
|
|
380
|
+
readonly center: {};
|
|
381
|
+
readonly right: {};
|
|
382
|
+
readonly justify: {};
|
|
383
|
+
readonly start: {};
|
|
384
|
+
readonly end: {};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
readonly 'style.letterSpacing': {
|
|
388
|
+
readonly type: "number";
|
|
389
|
+
readonly default: undefined;
|
|
390
|
+
readonly step: 0.1;
|
|
391
|
+
readonly description: "Letter spacing";
|
|
392
|
+
readonly hiddenFromList: false;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
310
395
|
readonly transformSchema: {
|
|
311
396
|
readonly 'style.transformOrigin': {
|
|
312
397
|
readonly type: "transform-origin";
|
|
@@ -390,7 +475,7 @@ export declare const Internals: {
|
|
|
390
475
|
}) | null;
|
|
391
476
|
readonly getRoot: () => import("react").FC<{}> | null;
|
|
392
477
|
readonly useMediaVolumeState: () => readonly [number, (u: number) => void];
|
|
393
|
-
readonly
|
|
478
|
+
readonly usePlayerMutedState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
394
479
|
readonly useMediaInTimeline: ({ volume, mediaVolume, src, mediaType, playbackRate, displayName, id, getStack, showInTimeline, premountDisplay, postmountDisplay, loopDisplay, documentationLink, refForOutline, }: {
|
|
395
480
|
volume: import("./volume-prop.js").VolumeProp | undefined;
|
|
396
481
|
mediaVolume: number;
|
package/dist/cjs/internals.js
CHANGED
|
@@ -146,6 +146,7 @@ exports.Internals = {
|
|
|
146
146
|
sequenceStyleSchema: interactivity_schema_js_1.sequenceStyleSchema,
|
|
147
147
|
sequenceVisualStyleSchema: interactivity_schema_js_1.sequenceVisualStyleSchema,
|
|
148
148
|
sequencePremountSchema: interactivity_schema_js_1.sequencePremountSchema,
|
|
149
|
+
textSchema: interactivity_schema_js_1.textSchema,
|
|
149
150
|
transformSchema: interactivity_schema_js_1.transformSchema,
|
|
150
151
|
premountSchema: interactivity_schema_js_1.premountSchema,
|
|
151
152
|
flattenActiveSchema: flatten_schema_js_1.flattenActiveSchema,
|
|
@@ -155,7 +156,7 @@ exports.Internals = {
|
|
|
155
156
|
useVideo: use_video_js_1.useVideo,
|
|
156
157
|
getRoot: register_root_js_1.getRoot,
|
|
157
158
|
useMediaVolumeState: volume_position_state_js_1.useMediaVolumeState,
|
|
158
|
-
|
|
159
|
+
usePlayerMutedState: volume_position_state_js_1.usePlayerMutedState,
|
|
159
160
|
useMediaInTimeline: use_media_in_timeline_js_1.useMediaInTimeline,
|
|
160
161
|
useLazyComponent: use_lazy_component_js_1.useLazyComponent,
|
|
161
162
|
truthy: truthy_js_1.truthy,
|
package/dist/cjs/no-react.d.ts
CHANGED
|
@@ -75,6 +75,13 @@ export declare const NoReactInternals: {
|
|
|
75
75
|
readonly step: 1;
|
|
76
76
|
readonly hiddenFromList: true;
|
|
77
77
|
};
|
|
78
|
+
readonly trimBefore: {
|
|
79
|
+
readonly type: "number";
|
|
80
|
+
readonly default: 0;
|
|
81
|
+
readonly min: 0;
|
|
82
|
+
readonly step: 1;
|
|
83
|
+
readonly hiddenFromList: true;
|
|
84
|
+
};
|
|
78
85
|
readonly freeze: {
|
|
79
86
|
readonly type: "number";
|
|
80
87
|
readonly default: null;
|
package/dist/cjs/prefetch.js
CHANGED
|
@@ -96,15 +96,15 @@ const prefetch = (src, options) => {
|
|
|
96
96
|
resolve = res;
|
|
97
97
|
reject = rej;
|
|
98
98
|
});
|
|
99
|
+
waitUntilDone.catch(() => undefined);
|
|
99
100
|
const controller = new AbortController();
|
|
100
|
-
let
|
|
101
|
+
let reader = null;
|
|
101
102
|
fetch(srcWithoutHash, {
|
|
102
103
|
signal: controller.signal,
|
|
103
104
|
credentials: (_c = options === null || options === void 0 ? void 0 : options.credentials) !== null && _c !== void 0 ? _c : undefined,
|
|
104
105
|
})
|
|
105
106
|
.then((res) => {
|
|
106
107
|
var _a, _b, _c;
|
|
107
|
-
canBeAborted = false;
|
|
108
108
|
if (canceled) {
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
@@ -124,9 +124,10 @@ const prefetch = (src, options) => {
|
|
|
124
124
|
if (!res.body) {
|
|
125
125
|
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const responseReader = res.body.getReader();
|
|
128
|
+
reader = responseReader;
|
|
128
129
|
return getBlobFromReader({
|
|
129
|
-
reader,
|
|
130
|
+
reader: responseReader,
|
|
130
131
|
contentType: (_c = (_b = options === null || options === void 0 ? void 0 : options.contentType) !== null && _b !== void 0 ? _b : headerContentType) !== null && _c !== void 0 ? _c : null,
|
|
131
132
|
contentLength: res.headers.get('Content-Length')
|
|
132
133
|
? parseInt(res.headers.get('Content-Length'), 10)
|
|
@@ -135,7 +136,7 @@ const prefetch = (src, options) => {
|
|
|
135
136
|
});
|
|
136
137
|
})
|
|
137
138
|
.then((buf) => {
|
|
138
|
-
if (!buf) {
|
|
139
|
+
if (!buf || canceled) {
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
142
|
const actualBlob = (options === null || options === void 0 ? void 0 : options.contentType)
|
|
@@ -188,13 +189,17 @@ const prefetch = (src, options) => {
|
|
|
188
189
|
});
|
|
189
190
|
}
|
|
190
191
|
else {
|
|
192
|
+
if (canceled) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
191
195
|
canceled = true;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
catch (_a) { }
|
|
196
|
+
const cancellationError = new Error('free() called');
|
|
197
|
+
reject(cancellationError);
|
|
198
|
+
try {
|
|
199
|
+
controller.abort(cancellationError);
|
|
197
200
|
}
|
|
201
|
+
catch (_a) { }
|
|
202
|
+
reader === null || reader === void 0 ? void 0 : reader.cancel(cancellationError).catch(() => undefined);
|
|
198
203
|
}
|
|
199
204
|
},
|
|
200
205
|
waitUntilDone: () => {
|
package/dist/cjs/series/index.js
CHANGED
|
@@ -67,6 +67,7 @@ const SeriesInner = (props) => {
|
|
|
67
67
|
*/
|
|
68
68
|
const Series = Object.assign((0, with_interactivity_schema_js_1.withInteractivitySchema)({
|
|
69
69
|
Component: SeriesInner,
|
|
70
|
+
componentName: '<Series>',
|
|
70
71
|
componentIdentity: 'dev.remotion.remotion.Series',
|
|
71
72
|
schema: interactivity_schema_js_1.sequenceSchemaDefaultLayoutNone,
|
|
72
73
|
supportsEffects: false,
|
|
@@ -124,6 +124,7 @@ const useMediaInTimeline = ({ volume, mediaVolume, src, mediaType, playbackRate,
|
|
|
124
124
|
id,
|
|
125
125
|
duration,
|
|
126
126
|
from: 0,
|
|
127
|
+
trimBefore: null,
|
|
127
128
|
parent: (_c = parentSequence === null || parentSequence === void 0 ? void 0 : parentSequence.id) !== null && _c !== void 0 ? _c : null,
|
|
128
129
|
displayName: finalDisplayName,
|
|
129
130
|
documentationLink,
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -108,7 +108,7 @@ const VideoForDevelopmentRefForwardingFunction = (props, ref) => {
|
|
|
108
108
|
throw new Error('acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.');
|
|
109
109
|
}
|
|
110
110
|
const [mediaVolume] = (0, volume_position_state_js_1.useMediaVolumeState)();
|
|
111
|
-
const [
|
|
111
|
+
const [playerMuted] = (0, volume_position_state_js_1.usePlayerMutedState)();
|
|
112
112
|
const userPreferredVolume = (0, volume_prop_js_1.evaluateVolume)({
|
|
113
113
|
frame: volumePropFrame,
|
|
114
114
|
volume,
|
|
@@ -280,6 +280,6 @@ const VideoForDevelopmentRefForwardingFunction = (props, ref) => {
|
|
|
280
280
|
requestsVideoFrame: Boolean(onVideoFrame),
|
|
281
281
|
isClientSideRendering: false,
|
|
282
282
|
});
|
|
283
|
-
return (jsx_runtime_1.jsx("video", { ...nativeProps, ref: videoRef, muted: muted ||
|
|
283
|
+
return (jsx_runtime_1.jsx("video", { ...nativeProps, ref: videoRef, muted: muted || playerMuted || userPreferredVolume <= 0, playsInline: true, src: actualSrc, loop: _remotionInternalNativeLoopPassed, style: actualStyle, disableRemotePlayback: true, crossOrigin: crossOriginValue, controls: false }));
|
|
284
284
|
};
|
|
285
285
|
exports.VideoForPreview = (0, react_1.forwardRef)(VideoForDevelopmentRefForwardingFunction);
|