@remotion/promo-pages 4.0.322 → 4.0.323

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.322 make /Users/jonathanburger/remotion/packages/promo-pages
3
+ > @remotion/promo-pages@4.0.323 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 108ms
8
+ Done in 307ms
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.322", checkMultipleRemotionVersions = () => {
738
+ }, VERSION = "4.0.323", checkMultipleRemotionVersions = () => {
739
739
  if (typeof globalThis === "undefined") {
740
740
  return;
741
741
  }
@@ -8076,7 +8076,7 @@ var Counter = ({
8076
8076
  children: [
8077
8077
  /* @__PURE__ */ jsx("button", {
8078
8078
  type: "button",
8079
- className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text",
8079
+ className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text border-b-[var(--box-stroke)] border-l-[var(--box-stroke)]",
8080
8080
  style: {
8081
8081
  ...buttonContainer
8082
8082
  },
@@ -8087,7 +8087,7 @@ var Counter = ({
8087
8087
  }),
8088
8088
  /* @__PURE__ */ jsx("button", {
8089
8089
  type: "button",
8090
- className: "border-0 border-l-2 border-l-solid flex-1 border-text",
8090
+ className: "border-0 border-l-2 border-l-solid flex-1 border-text border-l-[var(--box-stroke)]",
8091
8091
  style: {
8092
8092
  ...buttonContainer
8093
8093
  },
@@ -12537,14 +12537,23 @@ var calculateOuterStyle = ({
12537
12537
  };
12538
12538
  var calculateContainerStyle = ({
12539
12539
  config,
12540
- canvasSize,
12541
12540
  layout,
12542
12541
  scale,
12543
12542
  overflowVisible
12544
12543
  }) => {
12545
- if (!config || !canvasSize || !layout) {
12544
+ if (!config) {
12546
12545
  return {};
12547
12546
  }
12547
+ if (!layout) {
12548
+ return {
12549
+ position: "absolute",
12550
+ width: config.width,
12551
+ height: config.height,
12552
+ display: "flex",
12553
+ transform: `scale(${scale})`,
12554
+ overflow: overflowVisible ? "visible" : "hidden"
12555
+ };
12556
+ }
12548
12557
  return {
12549
12558
  position: "absolute",
12550
12559
  width: config.width,
@@ -12562,9 +12571,19 @@ var calculateOuter = ({
12562
12571
  config,
12563
12572
  overflowVisible
12564
12573
  }) => {
12565
- if (!layout || !config) {
12574
+ if (!config) {
12566
12575
  return {};
12567
12576
  }
12577
+ if (!layout) {
12578
+ return {
12579
+ width: config.width * scale,
12580
+ height: config.height * scale,
12581
+ display: "flex",
12582
+ flexDirection: "column",
12583
+ position: "absolute",
12584
+ overflow: overflowVisible ? "visible" : "hidden"
12585
+ };
12586
+ }
12568
12587
  const { centerX, centerY } = layout;
12569
12588
  return {
12570
12589
  width: config.width * scale,
@@ -14751,13 +14770,12 @@ var PlayerUI = ({
14751
14770
  }, [config, layout, overflowVisible, scale]);
14752
14771
  const containerStyle3 = useMemo122(() => {
14753
14772
  return calculateContainerStyle({
14754
- canvasSize,
14755
14773
  config,
14756
14774
  layout,
14757
14775
  scale,
14758
14776
  overflowVisible
14759
14777
  });
14760
- }, [canvasSize, config, layout, overflowVisible, scale]);
14778
+ }, [config, layout, overflowVisible, scale]);
14761
14779
  const playerPause = player.pause;
14762
14780
  const playerDispatchError = player.emitter.dispatchError;
14763
14781
  const onError = useCallback112((error) => {
@@ -15450,13 +15468,12 @@ var ThumbnailUI = ({
15450
15468
  }, [config, layout, overflowVisible, scale]);
15451
15469
  const containerStyle3 = useMemo162(() => {
15452
15470
  return calculateContainerStyle({
15453
- canvasSize,
15454
15471
  config,
15455
15472
  layout,
15456
15473
  scale,
15457
15474
  overflowVisible
15458
15475
  });
15459
- }, [canvasSize, config, layout, overflowVisible, scale]);
15476
+ }, [config, layout, overflowVisible, scale]);
15460
15477
  const onError = useCallback132((error) => {
15461
15478
  thumbnail.emitter.dispatchError(error);
15462
15479
  }, [thumbnail.emitter]);
@@ -1435,7 +1435,7 @@ var Counter = ({
1435
1435
  children: [
1436
1436
  /* @__PURE__ */ jsx("button", {
1437
1437
  type: "button",
1438
- className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text",
1438
+ className: "border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text border-b-[var(--box-stroke)] border-l-[var(--box-stroke)]",
1439
1439
  style: {
1440
1440
  ...buttonContainer
1441
1441
  },
@@ -1446,7 +1446,7 @@ var Counter = ({
1446
1446
  }),
1447
1447
  /* @__PURE__ */ jsx("button", {
1448
1448
  type: "button",
1449
- className: "border-0 border-l-2 border-l-solid flex-1 border-text",
1449
+ className: "border-0 border-l-2 border-l-solid flex-1 border-text border-l-[var(--box-stroke)]",
1450
1450
  style: {
1451
1451
  ...buttonContainer
1452
1452
  },
package/dist/tailwind.css CHANGED
@@ -523,9 +523,15 @@
523
523
  .border-r-transparent {
524
524
  border-right-color: transparent;
525
525
  }
526
+ .border-b-\[var\(--box-stroke\)\] {
527
+ border-bottom-color: var(--box-stroke);
528
+ }
526
529
  .border-b-transparent {
527
530
  border-bottom-color: transparent;
528
531
  }
532
+ .border-l-\[var\(--box-stroke\)\] {
533
+ border-left-color: var(--box-stroke);
534
+ }
529
535
  .border-l-transparent {
530
536
  border-left-color: transparent;
531
537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.322",
3
+ "version": "4.0.323",
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.322",
14
- "@remotion/lambda": "4.0.322",
15
- "@remotion/lottie": "4.0.322",
16
- "@remotion/paths": "4.0.322",
17
- "@remotion/player": "4.0.322",
18
- "@remotion/shapes": "4.0.322",
19
- "remotion": "4.0.322",
20
- "create-video": "4.0.322"
13
+ "@remotion/animated-emoji": "4.0.323",
14
+ "@remotion/lambda": "4.0.323",
15
+ "@remotion/paths": "4.0.323",
16
+ "@remotion/player": "4.0.323",
17
+ "@remotion/lottie": "4.0.323",
18
+ "@remotion/shapes": "4.0.323",
19
+ "create-video": "4.0.323",
20
+ "remotion": "4.0.323"
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.322"
37
+ "@remotion/eslint-config-internal": "4.0.323"
38
38
  },
39
39
  "repository": {
40
40
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/promo-pages"
@@ -83,7 +83,7 @@ export const Counter: React.FC<CounterProps> = ({
83
83
 
84
84
  const inputValue = parseInt(e.target.value, 10);
85
85
  const validValue = Math.max(inputValue, minCount);
86
-
86
+
87
87
  // For steps > 1, round to the nearest valid step
88
88
  if (step > 1) {
89
89
  const roundedValue = Math.round(validValue / step) * step;
@@ -96,7 +96,7 @@ export const Counter: React.FC<CounterProps> = ({
96
96
  <div className="flex flex-col ml-3 h-full">
97
97
  <button
98
98
  type="button"
99
- className="border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text"
99
+ className="border-0 border-l-2 border-l-solid border-b-2 flex-1 border-text border-b-[var(--box-stroke)] border-l-[var(--box-stroke)]"
100
100
  style={{
101
101
  ...buttonContainer,
102
102
  }}
@@ -106,7 +106,7 @@ export const Counter: React.FC<CounterProps> = ({
106
106
  </button>
107
107
  <button
108
108
  type="button"
109
- className="border-0 border-l-2 border-l-solid flex-1 border-text"
109
+ className="border-0 border-l-2 border-l-solid flex-1 border-text border-l-[var(--box-stroke)]"
110
110
  style={{
111
111
  ...buttonContainer,
112
112
  }}