@remotion/player 4.0.461 → 4.0.463
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/esm/index.mjs
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
// src/_check-rsc.ts
|
|
3
|
+
import { createContext } from "react";
|
|
4
|
+
if (typeof createContext !== "function") {
|
|
5
|
+
const err = [
|
|
6
|
+
'Remotion requires React.createContext, but it is "undefined".',
|
|
7
|
+
'If you are in a React Server Component, turn it into a client component by adding "use client" at the top of the file.',
|
|
8
|
+
"",
|
|
9
|
+
"Before:",
|
|
10
|
+
' import {Player} from "@remotion/player";',
|
|
11
|
+
"",
|
|
12
|
+
"After:",
|
|
13
|
+
' "use client";',
|
|
14
|
+
' import {Player} from "@remotion/player";'
|
|
15
|
+
];
|
|
16
|
+
throw new Error(err.join(`
|
|
17
|
+
`));
|
|
18
|
+
}
|
|
19
|
+
|
|
2
20
|
// src/icons.tsx
|
|
3
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
22
|
var ICON_SIZE = 25;
|
package/package.json
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/player"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/player",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.463",
|
|
7
7
|
"description": "React component for embedding a Remotion preview into your app",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
10
10
|
"module": "dist/esm/index.mjs",
|
|
11
|
-
"sideEffects": false,
|
|
12
11
|
"scripts": {
|
|
13
12
|
"formatting": "oxfmt src --check",
|
|
14
13
|
"format": "oxfmt src",
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
],
|
|
37
36
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
37
|
"dependencies": {
|
|
39
|
-
"remotion": "4.0.
|
|
38
|
+
"remotion": "4.0.463"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
41
|
"react": ">=16.8.0",
|
|
@@ -50,7 +49,7 @@
|
|
|
50
49
|
"react-dom": "19.2.3",
|
|
51
50
|
"webpack": "5.105.0",
|
|
52
51
|
"zod": "4.3.6",
|
|
53
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
52
|
+
"@remotion/eslint-config-internal": "4.0.463",
|
|
54
53
|
"eslint": "9.19.0",
|
|
55
54
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
56
55
|
},
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFrameImperative = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const remotion_1 = require("remotion");
|
|
6
|
-
const useFrameImperative = () => {
|
|
7
|
-
const frame = remotion_1.Internals.Timeline.useTimelinePosition();
|
|
8
|
-
const frameRef = (0, react_1.useRef)(frame);
|
|
9
|
-
frameRef.current = frame;
|
|
10
|
-
const getCurrentFrame = (0, react_1.useCallback)(() => {
|
|
11
|
-
return frameRef.current;
|
|
12
|
-
}, []);
|
|
13
|
-
return getCurrentFrame;
|
|
14
|
-
};
|
|
15
|
-
exports.useFrameImperative = useFrameImperative;
|