remotion 4.0.50 → 4.0.51

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.
@@ -22,7 +22,7 @@ const validateCalculated = ({ composition, calculated, }) => {
22
22
  return { width, height, fps, durationInFrames };
23
23
  };
24
24
  const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined, signal, inputProps, }) => {
25
- var _a, _b, _c, _d, _e, _f, _g;
25
+ var _a, _b, _c, _d, _e, _f;
26
26
  const calculatedProm = composition.calculateMetadata
27
27
  ? composition.calculateMetadata({
28
28
  defaultProps: (_a = composition.defaultProps) !== null && _a !== void 0 ? _a : {},
@@ -74,7 +74,7 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
74
74
  ...data,
75
75
  id: composition.id,
76
76
  defaultProps: (_e = composition.defaultProps) !== null && _e !== void 0 ? _e : {},
77
- props: (_g = (_f = calculatedProm.props) !== null && _f !== void 0 ? _f : composition.defaultProps) !== null && _g !== void 0 ? _g : {},
77
+ props: (_f = calculatedProm.props) !== null && _f !== void 0 ? _f : fallbackProps,
78
78
  };
79
79
  };
80
80
  exports.resolveVideoConfig = resolveVideoConfig;
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.50";
1
+ export declare const VERSION = "4.0.51";
@@ -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.50';
5
+ exports.VERSION = '4.0.51';
@@ -59,7 +59,7 @@ function truthy(value) {
59
59
  }
60
60
 
61
61
  // Automatically generated on publish
62
- const VERSION = '4.0.50';
62
+ const VERSION = '4.0.51';
63
63
 
64
64
  const checkMultipleRemotionVersions = () => {
65
65
  if (typeof globalThis === 'undefined') {
@@ -588,7 +588,7 @@ const validateCalculated = ({ composition, calculated, }) => {
588
588
  return { width, height, fps, durationInFrames };
589
589
  };
590
590
  const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined, signal, inputProps, }) => {
591
- var _a, _b, _c, _d, _e, _f, _g;
591
+ var _a, _b, _c, _d, _e, _f;
592
592
  const calculatedProm = composition.calculateMetadata
593
593
  ? composition.calculateMetadata({
594
594
  defaultProps: (_a = composition.defaultProps) !== null && _a !== void 0 ? _a : {},
@@ -640,7 +640,7 @@ const resolveVideoConfig = ({ composition, editorProps: editorPropsOrUndefined,
640
640
  ...data,
641
641
  id: composition.id,
642
642
  defaultProps: (_e = composition.defaultProps) !== null && _e !== void 0 ? _e : {},
643
- props: (_g = (_f = calculatedProm.props) !== null && _f !== void 0 ? _f : composition.defaultProps) !== null && _g !== void 0 ? _g : {},
643
+ props: (_f = calculatedProm.props) !== null && _f !== void 0 ? _f : fallbackProps,
644
644
  };
645
645
  };
646
646
 
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.0.50';
2
+ const VERSION = '4.0.51';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.50",
3
+ "version": "4.0.51",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -1,3 +0,0 @@
1
- export type RemotionEnvironment = 'preview' | 'rendering' | 'player-development' | 'player-production';
2
- export declare const getRemotionEnvironment: () => RemotionEnvironment;
3
- export declare const useRemotionEnvironment: () => RemotionEnvironment;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useRemotionEnvironment = exports.getRemotionEnvironment = void 0;
4
- const is_player_js_1 = require("./is-player.js");
5
- const getRemotionEnvironment = () => {
6
- if (process.env.NODE_ENV === 'production') {
7
- if (typeof window !== 'undefined' && window.remotion_isPlayer) {
8
- return 'player-production';
9
- }
10
- return 'rendering';
11
- }
12
- // The Vitest framework sets NODE_ENV as test.
13
- // Right now we don't need to treat it in a special
14
- // way which is good - defaulting to `rendering`.
15
- if (process.env.NODE_ENV === 'test') {
16
- return 'rendering';
17
- }
18
- if (typeof window !== 'undefined' && window.remotion_isPlayer) {
19
- return 'player-development';
20
- }
21
- return 'preview';
22
- };
23
- exports.getRemotionEnvironment = getRemotionEnvironment;
24
- const useRemotionEnvironment = () => {
25
- const isPlayer = (0, is_player_js_1.useIsPlayer)();
26
- if (isPlayer) {
27
- if (process.env.NODE_ENV === 'production') {
28
- return 'player-production';
29
- }
30
- return 'player-development';
31
- }
32
- return (0, exports.getRemotionEnvironment)();
33
- };
34
- exports.useRemotionEnvironment = useRemotionEnvironment;