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, _c;
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: (_c = (_b = c.props) !== null && _b !== void 0 ? _b : composition.defaultProps) !== null && _c !== void 0 ? _c : {},
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: (_c = composition.defaultProps) !== null && _c !== void 0 ? _c : {},
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 {
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.16";
1
+ export declare const VERSION = "4.0.17";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '4.0.16';
5
+ exports.VERSION = '4.0.17';
@@ -59,7 +59,7 @@ function truthy(value) {
59
59
  }
60
60
 
61
61
  // Automatically generated on publish
62
- const VERSION = '4.0.16';
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, _c;
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: (_c = (_b = c.props) !== null && _b !== void 0 ? _b : composition.defaultProps) !== null && _c !== void 0 ? _c : {},
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: (_c = composition.defaultProps) !== null && _c !== void 0 ? _c : {},
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 {
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.0.16';
2
+ const VERSION = '4.0.17';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",