@remotion/player 4.0.258 → 4.0.260
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/Player.js +4 -1
- package/dist/cjs/Thumbnail.js +4 -1
- package/dist/cjs/shown.d.ts +3 -0
- package/dist/cjs/shown.js +6 -0
- package/dist/esm/index.mjs +8 -2
- package/package.json +4 -4
package/dist/cjs/Player.js
CHANGED
|
@@ -43,7 +43,10 @@ const PlayerFn = ({ durationInFrames, compositionHeight, compositionWidth, fps,
|
|
|
43
43
|
throw new TypeError(`'component' must not be the 'Composition' component. Pass your own React component directly, and set the duration, fps and dimensions as separate props. See https://www.remotion.dev/docs/player/examples for an example.`);
|
|
44
44
|
}
|
|
45
45
|
(0, react_1.useState)(() => (0, use_remotion_license_acknowledge_js_1.acknowledgeRemotionLicenseMessage)(Boolean(acknowledgeRemotionLicense), logLevel));
|
|
46
|
-
const component = remotion_1.Internals.useLazyComponent(
|
|
46
|
+
const component = remotion_1.Internals.useLazyComponent({
|
|
47
|
+
compProps: componentProps,
|
|
48
|
+
componentName: 'Player',
|
|
49
|
+
});
|
|
47
50
|
(0, validate_initial_frame_js_1.validateInitialFrame)({ initialFrame, durationInFrames });
|
|
48
51
|
const [frame, setFrame] = (0, react_1.useState)(() => ({
|
|
49
52
|
[SharedPlayerContext_js_1.PLAYER_COMP_ID]: initialFrame !== null && initialFrame !== void 0 ? initialFrame : 0,
|
package/dist/cjs/Thumbnail.js
CHANGED
|
@@ -39,7 +39,10 @@ const ThumbnailFn = ({ frameToDisplay, style, inputProps, compositionHeight, com
|
|
|
39
39
|
return value;
|
|
40
40
|
}, [frameToDisplay, thumbnailId]);
|
|
41
41
|
(0, react_1.useImperativeHandle)(ref, () => rootRef.current, []);
|
|
42
|
-
const Component = remotion_1.Internals.useLazyComponent(
|
|
42
|
+
const Component = remotion_1.Internals.useLazyComponent({
|
|
43
|
+
compProps: componentProps,
|
|
44
|
+
componentName: 'Thumbnail',
|
|
45
|
+
});
|
|
43
46
|
const [emitter] = (0, react_1.useState)(() => new event_emitter_js_1.ThumbnailEmitter());
|
|
44
47
|
const passedInputProps = (0, react_1.useMemo)(() => {
|
|
45
48
|
return inputProps !== null && inputProps !== void 0 ? inputProps : {};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3149,7 +3149,10 @@ var PlayerFn = ({
|
|
|
3149
3149
|
throw new TypeError(`'component' must not be the 'Composition' component. Pass your own React component directly, and set the duration, fps and dimensions as separate props. See https://www.remotion.dev/docs/player/examples for an example.`);
|
|
3150
3150
|
}
|
|
3151
3151
|
useState13(() => acknowledgeRemotionLicenseMessage(Boolean(acknowledgeRemotionLicense), logLevel));
|
|
3152
|
-
const component = Internals15.useLazyComponent(
|
|
3152
|
+
const component = Internals15.useLazyComponent({
|
|
3153
|
+
compProps: componentProps,
|
|
3154
|
+
componentName: "Player"
|
|
3155
|
+
});
|
|
3153
3156
|
validateInitialFrame({ initialFrame, durationInFrames });
|
|
3154
3157
|
const [frame, setFrame] = useState13(() => ({
|
|
3155
3158
|
[PLAYER_COMP_ID]: initialFrame ?? 0
|
|
@@ -3513,7 +3516,10 @@ var ThumbnailFn = ({
|
|
|
3513
3516
|
return value;
|
|
3514
3517
|
}, [frameToDisplay, thumbnailId]);
|
|
3515
3518
|
useImperativeHandle4(ref, () => rootRef.current, []);
|
|
3516
|
-
const Component = Internals17.useLazyComponent(
|
|
3519
|
+
const Component = Internals17.useLazyComponent({
|
|
3520
|
+
compProps: componentProps,
|
|
3521
|
+
componentName: "Thumbnail"
|
|
3522
|
+
});
|
|
3517
3523
|
const [emitter] = useState14(() => new ThumbnailEmitter);
|
|
3518
3524
|
const passedInputProps = useMemo17(() => {
|
|
3519
3525
|
return inputProps ?? {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.260",
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"remotion": "4.0.
|
|
31
|
+
"remotion": "4.0.260"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"react-dom": "19.0.0",
|
|
43
43
|
"webpack": "5.96.1",
|
|
44
44
|
"zod": "3.22.3",
|
|
45
|
-
"eslint": "9.
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"eslint": "9.19.0",
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.260"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|