remotion 4.0.57 → 4.0.58
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/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.
|
|
1
|
+
export declare const VERSION = "4.0.58";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.58",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"jsdom": "21.1.0",
|
|
31
31
|
"prettier": "3.0.2",
|
|
32
32
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
33
|
-
"react": "
|
|
34
|
-
"react-dom": "
|
|
33
|
+
"react": "18.2.0",
|
|
34
|
+
"react-dom": "18.2.0",
|
|
35
35
|
"rimraf": "^3.0.2",
|
|
36
36
|
"rollup": "^2.70.1",
|
|
37
37
|
"vitest": "0.31.1",
|
|
@@ -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;
|