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
|
|
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: (
|
|
77
|
+
props: (_f = calculatedProm.props) !== null && _f !== void 0 ? _f : fallbackProps,
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
exports.resolveVideoConfig = resolveVideoConfig;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.
|
|
1
|
+
export declare const VERSION = "4.0.51";
|
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.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
|
|
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: (
|
|
643
|
+
props: (_f = calculatedProm.props) !== null && _f !== void 0 ? _f : fallbackProps,
|
|
644
644
|
};
|
|
645
645
|
};
|
|
646
646
|
|
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -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;
|