@remotion/promo-pages 4.0.324 → 4.0.325

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.
@@ -1,8 +1,8 @@
1
1
 
2
2
  
3
- > @remotion/promo-pages@4.0.324 make /Users/jonathanburger/remotion/packages/promo-pages
3
+ > @remotion/promo-pages@4.0.325 make /Users/jonathanburger/remotion/packages/promo-pages
4
4
  > bun --env-file=../.env.bundle bundle.ts
5
5
 
6
6
  ≈ tailwindcss v4.1.1
7
7
 
8
- Done in 109ms
8
+ Done in 25ms
package/dist/Homepage.js CHANGED
@@ -735,7 +735,7 @@ var __defProp2, __export2 = (target, all) => {
735
735
  });
736
736
  }, useIsPlayer = () => {
737
737
  return useContext(IsPlayerContext);
738
- }, VERSION = "4.0.324", checkMultipleRemotionVersions = () => {
738
+ }, VERSION = "4.0.325", checkMultipleRemotionVersions = () => {
739
739
  if (typeof globalThis === "undefined") {
740
740
  return;
741
741
  }
@@ -13279,8 +13279,8 @@ var useElementSize = (ref, options) => {
13279
13279
  return;
13280
13280
  }
13281
13281
  const probableCssParentScale = contentRect.width === 0 ? 1 : newSize[0].width / contentRect.width;
13282
- const width = options.shouldApplyCssTransforms && probableCssParentScale > 0 ? newSize[0].width : newSize[0].width * (1 / probableCssParentScale);
13283
- const height = options.shouldApplyCssTransforms ? newSize[0].height : newSize[0].height * (1 / probableCssParentScale);
13282
+ const width = options.shouldApplyCssTransforms || probableCssParentScale === 0 ? newSize[0].width : newSize[0].width * (1 / probableCssParentScale);
13283
+ const height = options.shouldApplyCssTransforms || probableCssParentScale === 0 ? newSize[0].height : newSize[0].height * (1 / probableCssParentScale);
13284
13284
  setSize((prevState) => {
13285
13285
  const isSame = prevState && prevState.width === width && prevState.height === height && prevState.left === newSize[0].x && prevState.top === newSize[0].y && prevState.windowSize.height === window.innerHeight && prevState.windowSize.width === window.innerWidth;
13286
13286
  if (isSame) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.324",
3
+ "version": "4.0.325",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,14 +10,14 @@
10
10
  "polished": "4.3.1",
11
11
  "zod": "3.22.3",
12
12
  "bun-plugin-tailwind": "0.0.15",
13
- "@remotion/animated-emoji": "4.0.324",
14
- "@remotion/lottie": "4.0.324",
15
- "@remotion/shapes": "4.0.324",
16
- "@remotion/player": "4.0.324",
17
- "create-video": "4.0.324",
18
- "remotion": "4.0.324",
19
- "@remotion/lambda": "4.0.324",
20
- "@remotion/paths": "4.0.324"
13
+ "@remotion/animated-emoji": "4.0.325",
14
+ "@remotion/lambda": "4.0.325",
15
+ "@remotion/lottie": "4.0.325",
16
+ "@remotion/paths": "4.0.325",
17
+ "@remotion/shapes": "4.0.325",
18
+ "create-video": "4.0.325",
19
+ "@remotion/player": "4.0.325",
20
+ "remotion": "4.0.325"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@eslint/eslintrc": "3.1.0",
@@ -34,7 +34,7 @@
34
34
  "tailwind-merge": "2.5.2",
35
35
  "bun-plugin-tailwind": "0.0.13",
36
36
  "clsx": "2.1.1",
37
- "@remotion/eslint-config-internal": "4.0.324"
37
+ "@remotion/eslint-config-internal": "4.0.325"
38
38
  },
39
39
  "repository": {
40
40
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/promo-pages"