@remotion/player 4.0.317 → 4.0.319

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.
@@ -49,6 +49,6 @@ export declare const calculateOuter: ({ layout, scale, config, overflowVisible,
49
49
  readonly position: "absolute";
50
50
  readonly left: number;
51
51
  readonly top: number;
52
- readonly overflow: "hidden" | "visible";
52
+ readonly overflow: "visible" | "hidden";
53
53
  };
54
54
  export {};
@@ -11,7 +11,6 @@ const acknowledgeRemotionLicenseMessage = (acknowledge, logLevel) => {
11
11
  return;
12
12
  }
13
13
  warningShown = true;
14
- remotion_1.Internals.Log.warn(logLevel, 'Note: Some companies are required to obtain a license to use Remotion. See: https://remotion.dev/license');
15
- remotion_1.Internals.Log.warn(logLevel, 'Pass the `acknowledgeRemotionLicense` prop to `<Player />` function to make this message disappear.');
14
+ remotion_1.Internals.Log.warn(logLevel, 'Note: Some companies are required to obtain a license to use Remotion. See: https://remotion.dev/license\nPass the `acknowledgeRemotionLicense` prop to `<Player />` function to make this message disappear.');
16
15
  };
17
16
  exports.acknowledgeRemotionLicenseMessage = acknowledgeRemotionLicenseMessage;
@@ -42,7 +42,9 @@ const useElementSize = (ref, options) => {
42
42
  setSize(null);
43
43
  return;
44
44
  }
45
- const probableCssParentScale = contentRect.width === 0 ? 1 : newSize[0].width / contentRect.width;
45
+ const probableCssParentScale = contentRect.width === 0 || contentRect.width === 0
46
+ ? 1
47
+ : newSize[0].width / contentRect.width;
46
48
  const width = options.shouldApplyCssTransforms
47
49
  ? newSize[0].width
48
50
  : newSize[0].width * (1 / probableCssParentScale);
@@ -1049,7 +1049,7 @@ var useElementSize = (ref, options) => {
1049
1049
  setSize(null);
1050
1050
  return;
1051
1051
  }
1052
- const probableCssParentScale = contentRect.width === 0 ? 1 : newSize[0].width / contentRect.width;
1052
+ const probableCssParentScale = contentRect.width === 0 || contentRect.width === 0 ? 1 : newSize[0].width / contentRect.width;
1053
1053
  const width = options.shouldApplyCssTransforms ? newSize[0].width : newSize[0].width * (1 / probableCssParentScale);
1054
1054
  const height = options.shouldApplyCssTransforms ? newSize[0].height : newSize[0].height * (1 / probableCssParentScale);
1055
1055
  setSize((prevState) => {
@@ -2963,8 +2963,7 @@ var acknowledgeRemotionLicenseMessage = (acknowledge, logLevel) => {
2963
2963
  return;
2964
2964
  }
2965
2965
  warningShown = true;
2966
- Internals14.Log.warn(logLevel, "Note: Some companies are required to obtain a license to use Remotion. See: https://remotion.dev/license");
2967
- Internals14.Log.warn(logLevel, "Pass the `acknowledgeRemotionLicense` prop to `<Player />` function to make this message disappear.");
2966
+ Internals14.Log.warn(logLevel, "Note: Some companies are required to obtain a license to use Remotion. See: https://remotion.dev/license\nPass the `acknowledgeRemotionLicense` prop to `<Player />` function to make this message disappear.");
2968
2967
  };
2969
2968
 
2970
2969
  // src/utils/validate-in-out-frame.ts
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.317",
6
+ "version": "4.0.319",
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.317"
31
+ "remotion": "4.0.319"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=16.8.0",
@@ -43,7 +43,7 @@
43
43
  "webpack": "5.96.1",
44
44
  "zod": "3.22.3",
45
45
  "eslint": "9.19.0",
46
- "@remotion/eslint-config-internal": "4.0.317"
46
+ "@remotion/eslint-config-internal": "4.0.319"
47
47
  },
48
48
  "keywords": [
49
49
  "remotion",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "homepage": "https://www.remotion.dev/docs/player",
59
59
  "scripts": {
60
- "formatting": "prettier src --check",
60
+ "formatting": "prettier --experimental-cli src --check",
61
61
  "lint": "eslint src",
62
62
  "make": "tsc -d && bun ensure-correct-version.ts && bun --env-file=../.env.bundle bundle.ts",
63
63
  "test": "bun test src",