@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.
@@ -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(componentProps);
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,
@@ -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(componentProps);
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 : {};
@@ -0,0 +1,3 @@
1
+ export declare const shown: {
2
+ shown: boolean;
3
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.shown = void 0;
4
+ exports.shown = {
5
+ shown: false,
6
+ };
@@ -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(componentProps);
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(componentProps);
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.258",
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.258"
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.14.0",
46
- "@remotion/eslint-config-internal": "4.0.258"
45
+ "eslint": "9.19.0",
46
+ "@remotion/eslint-config-internal": "4.0.260"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",