@remotion/promo-pages 4.0.287 → 4.0.289

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.287 make /Users/jonathanburger/remotion/packages/promo-pages
3
+ > @remotion/promo-pages@4.0.289 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 28ms
8
+ Done in 50ms
package/dist/Homepage.js CHANGED
@@ -5034,6 +5034,7 @@ import React13, {
5034
5034
  useCallback as useCallback6,
5035
5035
  useContext as useContext16,
5036
5036
  useEffect as useEffect8,
5037
+ useLayoutEffect as useLayoutEffect4,
5037
5038
  useMemo as useMemo14,
5038
5039
  useRef as useRef5,
5039
5040
  useState as useState10
@@ -5061,7 +5062,7 @@ import {
5061
5062
  useContext as useContext22,
5062
5063
  useEffect as useEffect15,
5063
5064
  useImperativeHandle as useImperativeHandle6,
5064
- useLayoutEffect as useLayoutEffect4,
5065
+ useLayoutEffect as useLayoutEffect5,
5065
5066
  useMemo as useMemo20,
5066
5067
  useRef as useRef12
5067
5068
  } from "react";
@@ -5081,7 +5082,7 @@ import {
5081
5082
  useCallback as useCallback13,
5082
5083
  useContext as useContext26,
5083
5084
  useImperativeHandle as useImperativeHandle7,
5084
- useLayoutEffect as useLayoutEffect5,
5085
+ useLayoutEffect as useLayoutEffect6,
5085
5086
  useRef as useRef13
5086
5087
  } from "react";
5087
5088
  import { jsx as jsx24 } from "react/jsx-runtime";
@@ -5096,7 +5097,7 @@ import React22, {
5096
5097
  import { jsx as jsx25 } from "react/jsx-runtime";
5097
5098
  import {
5098
5099
  useEffect as useEffect18,
5099
- useLayoutEffect as useLayoutEffect6,
5100
+ useLayoutEffect as useLayoutEffect7,
5100
5101
  useMemo as useMemo24,
5101
5102
  useRef as useRef15,
5102
5103
  useState as useState16
@@ -5116,7 +5117,7 @@ import {
5116
5117
  useCallback as useCallback15,
5117
5118
  useContext as useContext27,
5118
5119
  useEffect as useEffect19,
5119
- useLayoutEffect as useLayoutEffect7,
5120
+ useLayoutEffect as useLayoutEffect8,
5120
5121
  useMemo as useMemo27,
5121
5122
  useState as useState17
5122
5123
  } from "react";
@@ -5139,7 +5140,7 @@ import {
5139
5140
  useContext as useContext29,
5140
5141
  useEffect as useEffect222,
5141
5142
  useImperativeHandle as useImperativeHandle10,
5142
- useLayoutEffect as useLayoutEffect8,
5143
+ useLayoutEffect as useLayoutEffect9,
5143
5144
  useMemo as useMemo29,
5144
5145
  useRef as useRef17
5145
5146
  } from "react";
@@ -5228,7 +5229,7 @@ var useIsPlayer = () => {
5228
5229
  function truthy(value) {
5229
5230
  return Boolean(value);
5230
5231
  }
5231
- var VERSION = "4.0.287";
5232
+ var VERSION = "4.0.289";
5232
5233
  var checkMultipleRemotionVersions = () => {
5233
5234
  if (typeof globalThis === "undefined") {
5234
5235
  return;
@@ -7769,7 +7770,7 @@ var useBufferManager = (logLevel, mountTime) => {
7769
7770
  });
7770
7771
  }
7771
7772
  }, [blocks]);
7772
- useEffect8(() => {
7773
+ useLayoutEffect4(() => {
7773
7774
  if (blocks.length === 0) {
7774
7775
  onResumeCallbacks.forEach((c) => c());
7775
7776
  playbackLogging({
@@ -7830,9 +7831,9 @@ var useBufferState = () => {
7830
7831
  }
7831
7832
  }), [addBlock]);
7832
7833
  };
7833
- var isWebkit = () => {
7834
- const isAppleWebKit = /AppleWebKit/.test(window.navigator.userAgent);
7835
- return isAppleWebKit;
7834
+ var isSafariWebkit = () => {
7835
+ const isSafari = /^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);
7836
+ return isSafari;
7836
7837
  };
7837
7838
  var useBufferUntilFirstFrame = ({
7838
7839
  mediaRef,
@@ -7855,16 +7856,22 @@ var useBufferUntilFirstFrame = ({
7855
7856
  if (!current) {
7856
7857
  return;
7857
7858
  }
7858
- playbackLogging({
7859
- logLevel,
7860
- message: `Checking if should buffer until first frame, ${current.readyState}`,
7861
- mountTime,
7862
- tag: "buffer"
7863
- });
7864
- if (current.readyState >= current.HAVE_ENOUGH_DATA && !isWebkit()) {
7859
+ if (current.readyState >= current.HAVE_ENOUGH_DATA && !isSafariWebkit()) {
7860
+ playbackLogging({
7861
+ logLevel,
7862
+ message: `Not using buffer until first frame, because readyState is ${current.readyState} and is not Safari`,
7863
+ mountTime,
7864
+ tag: "buffer"
7865
+ });
7865
7866
  return;
7866
7867
  }
7867
7868
  if (!current.requestVideoFrameCallback) {
7869
+ playbackLogging({
7870
+ logLevel,
7871
+ message: `Not using buffer until first frame, because requestVideoFrameCallback is not supported`,
7872
+ mountTime,
7873
+ tag: "buffer"
7874
+ });
7868
7875
  return;
7869
7876
  }
7870
7877
  bufferingRef.current = true;
@@ -8449,7 +8456,8 @@ var useMediaPlayback = ({
8449
8456
  return;
8450
8457
  }
8451
8458
  const isMediaTagBufferingOrStalled = isMediaTagBuffering || isBuffering();
8452
- if (isPlayerBuffering && !isMediaTagBufferingOrStalled) {
8459
+ const playerBufferingNotStateButLive = buffering.buffering.current;
8460
+ if (playerBufferingNotStateButLive && !isMediaTagBufferingOrStalled) {
8453
8461
  playbackLogging({
8454
8462
  logLevel,
8455
8463
  tag: "pause",
@@ -8461,6 +8469,7 @@ var useMediaPlayback = ({
8461
8469
  }, [
8462
8470
  isBuffering,
8463
8471
  isMediaTagBuffering,
8472
+ buffering,
8464
8473
  isPlayerBuffering,
8465
8474
  isPremounting,
8466
8475
  logLevel,
@@ -9068,7 +9077,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
9068
9077
  ]);
9069
9078
  const { src } = props;
9070
9079
  const needsToRenderAudioTag = ref || _remotionInternalNeedsDurationCalculation;
9071
- useLayoutEffect4(() => {
9080
+ useLayoutEffect5(() => {
9072
9081
  if (window.process?.env?.NODE_ENV === "test") {
9073
9082
  return;
9074
9083
  }
@@ -9553,7 +9562,7 @@ var ImgRefForwarding = ({
9553
9562
  }, [maxRetries, onError, retryIn]);
9554
9563
  if (typeof window !== "undefined") {
9555
9564
  const isPremounting = Boolean(sequenceContext?.premounting);
9556
- useLayoutEffect5(() => {
9565
+ useLayoutEffect6(() => {
9557
9566
  if (window.process?.env?.NODE_ENV === "test") {
9558
9567
  if (imageRef.current) {
9559
9568
  imageRef.current.src = actualSrc;
@@ -9824,7 +9833,7 @@ var RemotionRoot = ({
9824
9833
  const [playbackRate, setPlaybackRate] = useState16(1);
9825
9834
  const audioAndVideoTags = useRef15([]);
9826
9835
  if (typeof window !== "undefined") {
9827
- useLayoutEffect6(() => {
9836
+ useLayoutEffect7(() => {
9828
9837
  window.remotion_setFrame = (f, composition, attempt) => {
9829
9838
  window.remotion_attempt = attempt;
9830
9839
  const id = delayRender(`Setting the current frame to ${f}`);
@@ -10682,7 +10691,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
10682
10691
  }, []);
10683
10692
  useState18(() => playbackLogging({
10684
10693
  logLevel,
10685
- message: `Mounting video with source = ${actualSrc}`,
10694
+ message: `Mounting video with source = ${actualSrc}, v=${VERSION}, user agent=${typeof navigator === "undefined" ? "server" : navigator.userAgent}`,
10686
10695
  tag: "video",
10687
10696
  mountTime
10688
10697
  }));
@@ -11049,7 +11058,7 @@ var VideoForRenderingForwardFunction = ({
11049
11058
  ]);
11050
11059
  const { src } = props2;
11051
11060
  if (environment.isRendering) {
11052
- useLayoutEffect8(() => {
11061
+ useLayoutEffect9(() => {
11053
11062
  if (window.process?.env?.NODE_ENV === "test") {
11054
11063
  return;
11055
11064
  }
@@ -11216,7 +11225,7 @@ import {
11216
11225
  forwardRef as forwardRef22,
11217
11226
  useEffect as useEffect142,
11218
11227
  useImperativeHandle as useImperativeHandle22,
11219
- useLayoutEffect as useLayoutEffect9,
11228
+ useLayoutEffect as useLayoutEffect10,
11220
11229
  useMemo as useMemo142,
11221
11230
  useRef as useRef112,
11222
11231
  useState as useState132
@@ -14811,7 +14820,7 @@ var PlayerFn = ({
14811
14820
  ...componentProps
14812
14821
  }, ref) => {
14813
14822
  if (typeof window !== "undefined") {
14814
- useLayoutEffect9(() => {
14823
+ useLayoutEffect10(() => {
14815
14824
  window.remotion_isPlayer = true;
14816
14825
  }, []);
14817
14826
  }
@@ -14920,7 +14929,7 @@ var PlayerFn = ({
14920
14929
  };
14921
14930
  }, [setFrame]);
14922
14931
  if (typeof window !== "undefined") {
14923
- useLayoutEffect9(() => {
14932
+ useLayoutEffect10(() => {
14924
14933
  Internals.CSSUtils.injectCSS(Internals.CSSUtils.makeDefaultPreviewCSS(`.${playerCssClassname(overrideInternalClassName)}`, "#fff"));
14925
14934
  }, [overrideInternalClassName]);
14926
14935
  }
@@ -18738,7 +18747,7 @@ var EvaluateRemotion_default = EvaluateRemotionSection;
18738
18747
  // src/components/homepage/IfYouKnowReact.tsx
18739
18748
  import { useEffect as useEffect41, useState as useState36 } from "react";
18740
18749
  import { jsx as jsx89, jsxs as jsxs38 } from "react/jsx-runtime";
18741
- var isWebkit2 = () => {
18750
+ var isWebkit = () => {
18742
18751
  if (typeof window === "undefined") {
18743
18752
  return false;
18744
18753
  }
@@ -18749,7 +18758,7 @@ var isWebkit2 = () => {
18749
18758
  var IfYouKnowReact = () => {
18750
18759
  const [vid, setVid] = useState36("/img/compose.webm");
18751
18760
  useEffect41(() => {
18752
- if (isWebkit2()) {
18761
+ if (isWebkit()) {
18753
18762
  setVid("/img/compose.mp4");
18754
18763
  }
18755
18764
  }, []);
@@ -18903,7 +18912,7 @@ var RealMP4Videos = () => {
18903
18912
  const videoRef = useRef30(null);
18904
18913
  const [vid, setVid] = useState38("/img/render-progress.webm");
18905
18914
  useEffect43(() => {
18906
- if (isWebkit2()) {
18915
+ if (isWebkit()) {
18907
18916
  setVid("/img/render-progress.mp4");
18908
18917
  }
18909
18918
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.287",
3
+ "version": "4.0.289",
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/lambda": "4.0.287",
14
- "@remotion/lottie": "4.0.287",
15
- "@remotion/player": "4.0.287",
16
- "@remotion/animated-emoji": "4.0.287",
17
- "create-video": "4.0.287",
18
- "@remotion/shapes": "4.0.287",
19
- "remotion": "4.0.287",
20
- "@remotion/paths": "4.0.287"
13
+ "@remotion/animated-emoji": "4.0.289",
14
+ "@remotion/lambda": "4.0.289",
15
+ "@remotion/lottie": "4.0.289",
16
+ "@remotion/paths": "4.0.289",
17
+ "@remotion/player": "4.0.289",
18
+ "create-video": "4.0.289",
19
+ "remotion": "4.0.289",
20
+ "@remotion/shapes": "4.0.289"
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.287"
37
+ "@remotion/eslint-config-internal": "4.0.289"
38
38
  },
39
39
  "repository": {
40
40
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/promo-pages"