remotion 4.0.16 → 4.0.17
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.
|
@@ -17,11 +17,15 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
|
|
|
17
17
|
abortSignal: signal,
|
|
18
18
|
})
|
|
19
19
|
: null;
|
|
20
|
+
const fallbackProps = {
|
|
21
|
+
...((_c = composition.defaultProps) !== null && _c !== void 0 ? _c : {}),
|
|
22
|
+
...(inputProps !== null && inputProps !== void 0 ? inputProps : {}),
|
|
23
|
+
};
|
|
20
24
|
if (calculatedProm !== null &&
|
|
21
25
|
typeof calculatedProm === 'object' &&
|
|
22
26
|
'then' in calculatedProm) {
|
|
23
27
|
return calculatedProm.then((c) => {
|
|
24
|
-
var _a, _b
|
|
28
|
+
var _a, _b;
|
|
25
29
|
const { height, width, durationInFrames, fps } = validateCalculated({
|
|
26
30
|
calculated: c,
|
|
27
31
|
composition,
|
|
@@ -33,7 +37,7 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
|
|
|
33
37
|
durationInFrames,
|
|
34
38
|
id: composition.id,
|
|
35
39
|
defaultProps: (_a = composition.defaultProps) !== null && _a !== void 0 ? _a : {},
|
|
36
|
-
props: (
|
|
40
|
+
props: (_b = c.props) !== null && _b !== void 0 ? _b : fallbackProps,
|
|
37
41
|
};
|
|
38
42
|
});
|
|
39
43
|
}
|
|
@@ -45,11 +49,8 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
|
|
|
45
49
|
return {
|
|
46
50
|
...data,
|
|
47
51
|
id: composition.id,
|
|
48
|
-
defaultProps: (
|
|
49
|
-
props:
|
|
50
|
-
...((_d = composition.defaultProps) !== null && _d !== void 0 ? _d : {}),
|
|
51
|
-
...(inputProps !== null && inputProps !== void 0 ? inputProps : {}),
|
|
52
|
-
},
|
|
52
|
+
defaultProps: (_d = composition.defaultProps) !== null && _d !== void 0 ? _d : {},
|
|
53
|
+
props: fallbackProps,
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
return {
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.
|
|
1
|
+
export declare const VERSION = "4.0.17";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ function truthy(value) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// Automatically generated on publish
|
|
62
|
-
const VERSION = '4.0.
|
|
62
|
+
const VERSION = '4.0.17';
|
|
63
63
|
|
|
64
64
|
const checkMultipleRemotionVersions = () => {
|
|
65
65
|
if (typeof globalThis === 'undefined') {
|
|
@@ -549,11 +549,15 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
|
|
|
549
549
|
abortSignal: signal,
|
|
550
550
|
})
|
|
551
551
|
: null;
|
|
552
|
+
const fallbackProps = {
|
|
553
|
+
...((_c = composition.defaultProps) !== null && _c !== void 0 ? _c : {}),
|
|
554
|
+
...(inputProps !== null && inputProps !== void 0 ? inputProps : {}),
|
|
555
|
+
};
|
|
552
556
|
if (calculatedProm !== null &&
|
|
553
557
|
typeof calculatedProm === 'object' &&
|
|
554
558
|
'then' in calculatedProm) {
|
|
555
559
|
return calculatedProm.then((c) => {
|
|
556
|
-
var _a, _b
|
|
560
|
+
var _a, _b;
|
|
557
561
|
const { height, width, durationInFrames, fps } = validateCalculated({
|
|
558
562
|
calculated: c,
|
|
559
563
|
composition,
|
|
@@ -565,7 +569,7 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
|
|
|
565
569
|
durationInFrames,
|
|
566
570
|
id: composition.id,
|
|
567
571
|
defaultProps: (_a = composition.defaultProps) !== null && _a !== void 0 ? _a : {},
|
|
568
|
-
props: (
|
|
572
|
+
props: (_b = c.props) !== null && _b !== void 0 ? _b : fallbackProps,
|
|
569
573
|
};
|
|
570
574
|
});
|
|
571
575
|
}
|
|
@@ -577,11 +581,8 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
|
|
|
577
581
|
return {
|
|
578
582
|
...data,
|
|
579
583
|
id: composition.id,
|
|
580
|
-
defaultProps: (
|
|
581
|
-
props:
|
|
582
|
-
...((_d = composition.defaultProps) !== null && _d !== void 0 ? _d : {}),
|
|
583
|
-
...(inputProps !== null && inputProps !== void 0 ? inputProps : {}),
|
|
584
|
-
},
|
|
584
|
+
defaultProps: (_d = composition.defaultProps) !== null && _d !== void 0 ? _d : {},
|
|
585
|
+
props: fallbackProps,
|
|
585
586
|
};
|
|
586
587
|
}
|
|
587
588
|
return {
|
package/dist/esm/version.mjs
CHANGED