@remotion/promo-pages 4.0.493 → 4.0.494

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.
package/dist/Homepage.js CHANGED
@@ -2359,7 +2359,7 @@ var getSingleChildComponent = (children) => {
2359
2359
  }
2360
2360
  return child.type;
2361
2361
  };
2362
- var VERSION = "4.0.493";
2362
+ var VERSION = "4.0.494";
2363
2363
  var checkMultipleRemotionVersions = () => {
2364
2364
  if (typeof globalThis === "undefined") {
2365
2365
  return;
@@ -5724,7 +5724,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
5724
5724
  const style = useMemo14(() => {
5725
5725
  return {
5726
5726
  ...passedStyle,
5727
- opacity: premountingActive || postmountingActive ? 0 : 1,
5727
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
5728
5728
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
5729
5729
  ...premountingActive ? styleWhilePremounted : {},
5730
5730
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -6302,6 +6302,13 @@ var decodeImage = async ({
6302
6302
  frameCount: selectedTrack.frameCount
6303
6303
  };
6304
6304
  };
6305
+ var getCurrentTime = ({
6306
+ frame,
6307
+ playbackRate,
6308
+ fps
6309
+ }) => {
6310
+ return frame * playbackRate / fps;
6311
+ };
6305
6312
  var serializeRequestInit = (requestInit) => {
6306
6313
  if (!requestInit) {
6307
6314
  return null;
@@ -6369,7 +6376,7 @@ var AnimatedImageContent = forwardRef4(({
6369
6376
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
6370
6377
  const frame = useCurrentFrame();
6371
6378
  const { fps } = useVideoConfig();
6372
- const currentTime = frame / playbackRate / fps;
6379
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
6373
6380
  const currentTimeRef = useRef9(currentTime);
6374
6381
  currentTimeRef.current = currentTime;
6375
6382
  const requestInitKey = serializeRequestInit(requestInit);
@@ -6497,8 +6504,6 @@ var AnimatedImageInner = ({
6497
6504
  ref,
6498
6505
  ...sequenceProps
6499
6506
  }) => {
6500
- const { durationInFrames: videoDuration } = useVideoConfig();
6501
- const resolvedDuration = durationInFrames ?? videoDuration;
6502
6507
  const actualRef = useRef9(null);
6503
6508
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
6504
6509
  useImperativeHandle2(ref, () => {
@@ -6521,7 +6526,7 @@ var AnimatedImageInner = ({
6521
6526
  };
6522
6527
  return /* @__PURE__ */ jsx14(Sequence, {
6523
6528
  layout: "none",
6524
- durationInFrames: resolvedDuration,
6529
+ durationInFrames,
6525
6530
  name: "<AnimatedImage>",
6526
6531
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
6527
6532
  controls,
@@ -10149,8 +10154,6 @@ var HtmlInCanvasInner = forwardRef9(({
10149
10154
  name,
10150
10155
  ...sequenceProps
10151
10156
  }, ref) => {
10152
- const { durationInFrames: videoDuration } = useVideoConfig();
10153
- const resolvedDuration = durationInFrames ?? videoDuration;
10154
10157
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
10155
10158
  const actualRef = useRef22(null);
10156
10159
  const setCanvasRef = useCallback16((node) => {
@@ -10162,7 +10165,7 @@ var HtmlInCanvasInner = forwardRef9(({
10162
10165
  }
10163
10166
  }, [ref]);
10164
10167
  return /* @__PURE__ */ jsx25(Sequence, {
10165
- durationInFrames: resolvedDuration,
10168
+ durationInFrames,
10166
10169
  name: name ?? "<HtmlInCanvas>",
10167
10170
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
10168
10171
  controls,
@@ -40936,7 +40939,7 @@ var getVideoSequenceDuration = ({
40936
40939
  };
40937
40940
  var PRORES_DOCS_URL = "https://www.remotion.dev/docs/videos/prores";
40938
40941
  var proresDecoderNotEnabledMessage = (src) => {
40939
- return `Cannot decode "${src}": it is encoded with Apple ProRes, which WebCodecs does not support natively. ` + `ProRes decoding is not enabled by default. Register the ProRes decoder by calling ` + `registerProresDecoder() from "@mediabunny/prores" in your entry point, before registerRoot(). ` + `See ${PRORES_DOCS_URL}. ` + `(This is required to decode a ProRes source for both preview and rendering — it is unrelated to exporting a video as ProRes.)`;
40942
+ return `Cannot decode "${src}": it is encoded with Apple ProRes, which WebCodecs does not support natively. ` + `ProRes decoding is not enabled by default. Register the ProRes decoder by calling ` + `registerProresDecoder() from "@mediabunny/prores" in your entry point, before registerRoot(). ` + `See ${PRORES_DOCS_URL}.`;
40940
40943
  };
40941
40944
 
40942
40945
  class ProResDecoderNotEnabledError extends Error {
@@ -43308,7 +43311,7 @@ import {
43308
43311
  import { BufferTarget, StreamTarget } from "mediabunny";
43309
43312
 
43310
43313
  // ../core/dist/esm/version.mjs
43311
- var VERSION2 = "4.0.493";
43314
+ var VERSION2 = "4.0.494";
43312
43315
 
43313
43316
  // ../web-renderer/dist/esm/index.mjs
43314
43317
  import { AudioSample, VideoSample } from "mediabunny";
package/dist/design.js CHANGED
@@ -5589,7 +5589,7 @@ var getSingleChildComponent = (children) => {
5589
5589
  }
5590
5590
  return child.type;
5591
5591
  };
5592
- var VERSION = "4.0.493";
5592
+ var VERSION = "4.0.494";
5593
5593
  var checkMultipleRemotionVersions = () => {
5594
5594
  if (typeof globalThis === "undefined") {
5595
5595
  return;
@@ -8954,7 +8954,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8954
8954
  const style = useMemo14(() => {
8955
8955
  return {
8956
8956
  ...passedStyle,
8957
- opacity: premountingActive || postmountingActive ? 0 : 1,
8957
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8958
8958
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8959
8959
  ...premountingActive ? styleWhilePremounted : {},
8960
8960
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -9532,6 +9532,13 @@ var decodeImage = async ({
9532
9532
  frameCount: selectedTrack.frameCount
9533
9533
  };
9534
9534
  };
9535
+ var getCurrentTime = ({
9536
+ frame,
9537
+ playbackRate,
9538
+ fps
9539
+ }) => {
9540
+ return frame * playbackRate / fps;
9541
+ };
9535
9542
  var serializeRequestInit = (requestInit) => {
9536
9543
  if (!requestInit) {
9537
9544
  return null;
@@ -9599,7 +9606,7 @@ var AnimatedImageContent = forwardRef4(({
9599
9606
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
9600
9607
  const frame = useCurrentFrame();
9601
9608
  const { fps } = useVideoConfig();
9602
- const currentTime = frame / playbackRate / fps;
9609
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
9603
9610
  const currentTimeRef = useRef9(currentTime);
9604
9611
  currentTimeRef.current = currentTime;
9605
9612
  const requestInitKey = serializeRequestInit(requestInit);
@@ -9727,8 +9734,6 @@ var AnimatedImageInner = ({
9727
9734
  ref,
9728
9735
  ...sequenceProps
9729
9736
  }) => {
9730
- const { durationInFrames: videoDuration } = useVideoConfig();
9731
- const resolvedDuration = durationInFrames ?? videoDuration;
9732
9737
  const actualRef = useRef9(null);
9733
9738
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
9734
9739
  useImperativeHandle2(ref, () => {
@@ -9751,7 +9756,7 @@ var AnimatedImageInner = ({
9751
9756
  };
9752
9757
  return /* @__PURE__ */ jsx14(Sequence, {
9753
9758
  layout: "none",
9754
- durationInFrames: resolvedDuration,
9759
+ durationInFrames,
9755
9760
  name: "<AnimatedImage>",
9756
9761
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
9757
9762
  controls,
@@ -13379,8 +13384,6 @@ var HtmlInCanvasInner = forwardRef9(({
13379
13384
  name,
13380
13385
  ...sequenceProps
13381
13386
  }, ref) => {
13382
- const { durationInFrames: videoDuration } = useVideoConfig();
13383
- const resolvedDuration = durationInFrames ?? videoDuration;
13384
13387
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
13385
13388
  const actualRef = useRef22(null);
13386
13389
  const setCanvasRef = useCallback16((node) => {
@@ -13392,7 +13395,7 @@ var HtmlInCanvasInner = forwardRef9(({
13392
13395
  }
13393
13396
  }, [ref]);
13394
13397
  return /* @__PURE__ */ jsx25(Sequence, {
13395
- durationInFrames: resolvedDuration,
13398
+ durationInFrames,
13396
13399
  name: name ?? "<HtmlInCanvas>",
13397
13400
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
13398
13401
  controls,
package/dist/experts.js CHANGED
@@ -2359,7 +2359,7 @@ var getSingleChildComponent = (children) => {
2359
2359
  }
2360
2360
  return child.type;
2361
2361
  };
2362
- var VERSION = "4.0.493";
2362
+ var VERSION = "4.0.494";
2363
2363
  var checkMultipleRemotionVersions = () => {
2364
2364
  if (typeof globalThis === "undefined") {
2365
2365
  return;
@@ -5724,7 +5724,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
5724
5724
  const style = useMemo14(() => {
5725
5725
  return {
5726
5726
  ...passedStyle,
5727
- opacity: premountingActive || postmountingActive ? 0 : 1,
5727
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
5728
5728
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
5729
5729
  ...premountingActive ? styleWhilePremounted : {},
5730
5730
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -6302,6 +6302,13 @@ var decodeImage = async ({
6302
6302
  frameCount: selectedTrack.frameCount
6303
6303
  };
6304
6304
  };
6305
+ var getCurrentTime = ({
6306
+ frame,
6307
+ playbackRate,
6308
+ fps
6309
+ }) => {
6310
+ return frame * playbackRate / fps;
6311
+ };
6305
6312
  var serializeRequestInit = (requestInit) => {
6306
6313
  if (!requestInit) {
6307
6314
  return null;
@@ -6369,7 +6376,7 @@ var AnimatedImageContent = forwardRef4(({
6369
6376
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
6370
6377
  const frame = useCurrentFrame();
6371
6378
  const { fps } = useVideoConfig();
6372
- const currentTime = frame / playbackRate / fps;
6379
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
6373
6380
  const currentTimeRef = useRef9(currentTime);
6374
6381
  currentTimeRef.current = currentTime;
6375
6382
  const requestInitKey = serializeRequestInit(requestInit);
@@ -6497,8 +6504,6 @@ var AnimatedImageInner = ({
6497
6504
  ref,
6498
6505
  ...sequenceProps
6499
6506
  }) => {
6500
- const { durationInFrames: videoDuration } = useVideoConfig();
6501
- const resolvedDuration = durationInFrames ?? videoDuration;
6502
6507
  const actualRef = useRef9(null);
6503
6508
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
6504
6509
  useImperativeHandle2(ref, () => {
@@ -6521,7 +6526,7 @@ var AnimatedImageInner = ({
6521
6526
  };
6522
6527
  return /* @__PURE__ */ jsx14(Sequence, {
6523
6528
  layout: "none",
6524
- durationInFrames: resolvedDuration,
6529
+ durationInFrames,
6525
6530
  name: "<AnimatedImage>",
6526
6531
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
6527
6532
  controls,
@@ -10149,8 +10154,6 @@ var HtmlInCanvasInner = forwardRef9(({
10149
10154
  name,
10150
10155
  ...sequenceProps
10151
10156
  }, ref) => {
10152
- const { durationInFrames: videoDuration } = useVideoConfig();
10153
- const resolvedDuration = durationInFrames ?? videoDuration;
10154
10157
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
10155
10158
  const actualRef = useRef22(null);
10156
10159
  const setCanvasRef = useCallback16((node) => {
@@ -10162,7 +10165,7 @@ var HtmlInCanvasInner = forwardRef9(({
10162
10165
  }
10163
10166
  }, [ref]);
10164
10167
  return /* @__PURE__ */ jsx25(Sequence, {
10165
- durationInFrames: resolvedDuration,
10168
+ durationInFrames,
10166
10169
  name: name ?? "<HtmlInCanvas>",
10167
10170
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
10168
10171
  controls,
@@ -5592,7 +5592,7 @@ var getSingleChildComponent = (children) => {
5592
5592
  }
5593
5593
  return child.type;
5594
5594
  };
5595
- var VERSION = "4.0.493";
5595
+ var VERSION = "4.0.494";
5596
5596
  var checkMultipleRemotionVersions = () => {
5597
5597
  if (typeof globalThis === "undefined") {
5598
5598
  return;
@@ -8957,7 +8957,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8957
8957
  const style = useMemo14(() => {
8958
8958
  return {
8959
8959
  ...passedStyle,
8960
- opacity: premountingActive || postmountingActive ? 0 : 1,
8960
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8961
8961
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8962
8962
  ...premountingActive ? styleWhilePremounted : {},
8963
8963
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -9535,6 +9535,13 @@ var decodeImage = async ({
9535
9535
  frameCount: selectedTrack.frameCount
9536
9536
  };
9537
9537
  };
9538
+ var getCurrentTime = ({
9539
+ frame,
9540
+ playbackRate,
9541
+ fps
9542
+ }) => {
9543
+ return frame * playbackRate / fps;
9544
+ };
9538
9545
  var serializeRequestInit = (requestInit) => {
9539
9546
  if (!requestInit) {
9540
9547
  return null;
@@ -9602,7 +9609,7 @@ var AnimatedImageContent = forwardRef4(({
9602
9609
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
9603
9610
  const frame = useCurrentFrame();
9604
9611
  const { fps } = useVideoConfig();
9605
- const currentTime = frame / playbackRate / fps;
9612
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
9606
9613
  const currentTimeRef = useRef9(currentTime);
9607
9614
  currentTimeRef.current = currentTime;
9608
9615
  const requestInitKey = serializeRequestInit(requestInit);
@@ -9730,8 +9737,6 @@ var AnimatedImageInner = ({
9730
9737
  ref,
9731
9738
  ...sequenceProps
9732
9739
  }) => {
9733
- const { durationInFrames: videoDuration } = useVideoConfig();
9734
- const resolvedDuration = durationInFrames ?? videoDuration;
9735
9740
  const actualRef = useRef9(null);
9736
9741
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
9737
9742
  useImperativeHandle2(ref, () => {
@@ -9754,7 +9759,7 @@ var AnimatedImageInner = ({
9754
9759
  };
9755
9760
  return /* @__PURE__ */ jsx14(Sequence, {
9756
9761
  layout: "none",
9757
- durationInFrames: resolvedDuration,
9762
+ durationInFrames,
9758
9763
  name: "<AnimatedImage>",
9759
9764
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
9760
9765
  controls,
@@ -13382,8 +13387,6 @@ var HtmlInCanvasInner = forwardRef9(({
13382
13387
  name,
13383
13388
  ...sequenceProps
13384
13389
  }, ref) => {
13385
- const { durationInFrames: videoDuration } = useVideoConfig();
13386
- const resolvedDuration = durationInFrames ?? videoDuration;
13387
13390
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
13388
13391
  const actualRef = useRef22(null);
13389
13392
  const setCanvasRef = useCallback16((node) => {
@@ -13395,7 +13398,7 @@ var HtmlInCanvasInner = forwardRef9(({
13395
13398
  }
13396
13399
  }, [ref]);
13397
13400
  return /* @__PURE__ */ jsx25(Sequence, {
13398
- durationInFrames: resolvedDuration,
13401
+ durationInFrames,
13399
13402
  name: name ?? "<HtmlInCanvas>",
13400
13403
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
13401
13404
  controls,
@@ -5589,7 +5589,7 @@ var getSingleChildComponent = (children) => {
5589
5589
  }
5590
5590
  return child.type;
5591
5591
  };
5592
- var VERSION = "4.0.493";
5592
+ var VERSION = "4.0.494";
5593
5593
  var checkMultipleRemotionVersions = () => {
5594
5594
  if (typeof globalThis === "undefined") {
5595
5595
  return;
@@ -8954,7 +8954,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8954
8954
  const style = useMemo14(() => {
8955
8955
  return {
8956
8956
  ...passedStyle,
8957
- opacity: premountingActive || postmountingActive ? 0 : 1,
8957
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8958
8958
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8959
8959
  ...premountingActive ? styleWhilePremounted : {},
8960
8960
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -9532,6 +9532,13 @@ var decodeImage = async ({
9532
9532
  frameCount: selectedTrack.frameCount
9533
9533
  };
9534
9534
  };
9535
+ var getCurrentTime = ({
9536
+ frame,
9537
+ playbackRate,
9538
+ fps
9539
+ }) => {
9540
+ return frame * playbackRate / fps;
9541
+ };
9535
9542
  var serializeRequestInit = (requestInit) => {
9536
9543
  if (!requestInit) {
9537
9544
  return null;
@@ -9599,7 +9606,7 @@ var AnimatedImageContent = forwardRef4(({
9599
9606
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
9600
9607
  const frame = useCurrentFrame();
9601
9608
  const { fps } = useVideoConfig();
9602
- const currentTime = frame / playbackRate / fps;
9609
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
9603
9610
  const currentTimeRef = useRef9(currentTime);
9604
9611
  currentTimeRef.current = currentTime;
9605
9612
  const requestInitKey = serializeRequestInit(requestInit);
@@ -9727,8 +9734,6 @@ var AnimatedImageInner = ({
9727
9734
  ref,
9728
9735
  ...sequenceProps
9729
9736
  }) => {
9730
- const { durationInFrames: videoDuration } = useVideoConfig();
9731
- const resolvedDuration = durationInFrames ?? videoDuration;
9732
9737
  const actualRef = useRef9(null);
9733
9738
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
9734
9739
  useImperativeHandle2(ref, () => {
@@ -9751,7 +9756,7 @@ var AnimatedImageInner = ({
9751
9756
  };
9752
9757
  return /* @__PURE__ */ jsx14(Sequence, {
9753
9758
  layout: "none",
9754
- durationInFrames: resolvedDuration,
9759
+ durationInFrames,
9755
9760
  name: "<AnimatedImage>",
9756
9761
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
9757
9762
  controls,
@@ -13379,8 +13384,6 @@ var HtmlInCanvasInner = forwardRef9(({
13379
13384
  name,
13380
13385
  ...sequenceProps
13381
13386
  }, ref) => {
13382
- const { durationInFrames: videoDuration } = useVideoConfig();
13383
- const resolvedDuration = durationInFrames ?? videoDuration;
13384
13387
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
13385
13388
  const actualRef = useRef22(null);
13386
13389
  const setCanvasRef = useCallback16((node) => {
@@ -13392,7 +13395,7 @@ var HtmlInCanvasInner = forwardRef9(({
13392
13395
  }
13393
13396
  }, [ref]);
13394
13397
  return /* @__PURE__ */ jsx25(Sequence, {
13395
- durationInFrames: resolvedDuration,
13398
+ durationInFrames,
13396
13399
  name: name ?? "<HtmlInCanvas>",
13397
13400
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
13398
13401
  controls,
@@ -22923,7 +22923,7 @@ var getSingleChildComponent = (children) => {
22923
22923
  }
22924
22924
  return child.type;
22925
22925
  };
22926
- var VERSION = "4.0.493";
22926
+ var VERSION = "4.0.494";
22927
22927
  var checkMultipleRemotionVersions = () => {
22928
22928
  if (typeof globalThis === "undefined") {
22929
22929
  return;
@@ -26288,7 +26288,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
26288
26288
  const style = useMemo14(() => {
26289
26289
  return {
26290
26290
  ...passedStyle,
26291
- opacity: premountingActive || postmountingActive ? 0 : 1,
26291
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
26292
26292
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
26293
26293
  ...premountingActive ? styleWhilePremounted : {},
26294
26294
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -26866,6 +26866,13 @@ var decodeImage = async ({
26866
26866
  frameCount: selectedTrack.frameCount
26867
26867
  };
26868
26868
  };
26869
+ var getCurrentTime = ({
26870
+ frame,
26871
+ playbackRate,
26872
+ fps
26873
+ }) => {
26874
+ return frame * playbackRate / fps;
26875
+ };
26869
26876
  var serializeRequestInit = (requestInit) => {
26870
26877
  if (!requestInit) {
26871
26878
  return null;
@@ -26933,7 +26940,7 @@ var AnimatedImageContent = forwardRef4(({
26933
26940
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
26934
26941
  const frame = useCurrentFrame();
26935
26942
  const { fps } = useVideoConfig();
26936
- const currentTime = frame / playbackRate / fps;
26943
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
26937
26944
  const currentTimeRef = useRef9(currentTime);
26938
26945
  currentTimeRef.current = currentTime;
26939
26946
  const requestInitKey = serializeRequestInit(requestInit);
@@ -27061,8 +27068,6 @@ var AnimatedImageInner = ({
27061
27068
  ref,
27062
27069
  ...sequenceProps
27063
27070
  }) => {
27064
- const { durationInFrames: videoDuration } = useVideoConfig();
27065
- const resolvedDuration = durationInFrames ?? videoDuration;
27066
27071
  const actualRef = useRef9(null);
27067
27072
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
27068
27073
  useImperativeHandle2(ref, () => {
@@ -27085,7 +27090,7 @@ var AnimatedImageInner = ({
27085
27090
  };
27086
27091
  return /* @__PURE__ */ jsx14(Sequence, {
27087
27092
  layout: "none",
27088
- durationInFrames: resolvedDuration,
27093
+ durationInFrames,
27089
27094
  name: "<AnimatedImage>",
27090
27095
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
27091
27096
  controls,
@@ -30713,8 +30718,6 @@ var HtmlInCanvasInner = forwardRef9(({
30713
30718
  name,
30714
30719
  ...sequenceProps
30715
30720
  }, ref) => {
30716
- const { durationInFrames: videoDuration } = useVideoConfig();
30717
- const resolvedDuration = durationInFrames ?? videoDuration;
30718
30721
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
30719
30722
  const actualRef = useRef22(null);
30720
30723
  const setCanvasRef = useCallback16((node) => {
@@ -30726,7 +30729,7 @@ var HtmlInCanvasInner = forwardRef9(({
30726
30729
  }
30727
30730
  }, [ref]);
30728
30731
  return /* @__PURE__ */ jsx25(Sequence, {
30729
- durationInFrames: resolvedDuration,
30732
+ durationInFrames,
30730
30733
  name: name ?? "<HtmlInCanvas>",
30731
30734
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
30732
30735
  controls,
@@ -5589,7 +5589,7 @@ var getSingleChildComponent = (children) => {
5589
5589
  }
5590
5590
  return child.type;
5591
5591
  };
5592
- var VERSION = "4.0.493";
5592
+ var VERSION = "4.0.494";
5593
5593
  var checkMultipleRemotionVersions = () => {
5594
5594
  if (typeof globalThis === "undefined") {
5595
5595
  return;
@@ -8954,7 +8954,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8954
8954
  const style = useMemo14(() => {
8955
8955
  return {
8956
8956
  ...passedStyle,
8957
- opacity: premountingActive || postmountingActive ? 0 : 1,
8957
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8958
8958
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8959
8959
  ...premountingActive ? styleWhilePremounted : {},
8960
8960
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -9532,6 +9532,13 @@ var decodeImage = async ({
9532
9532
  frameCount: selectedTrack.frameCount
9533
9533
  };
9534
9534
  };
9535
+ var getCurrentTime = ({
9536
+ frame,
9537
+ playbackRate,
9538
+ fps
9539
+ }) => {
9540
+ return frame * playbackRate / fps;
9541
+ };
9535
9542
  var serializeRequestInit = (requestInit) => {
9536
9543
  if (!requestInit) {
9537
9544
  return null;
@@ -9599,7 +9606,7 @@ var AnimatedImageContent = forwardRef4(({
9599
9606
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
9600
9607
  const frame = useCurrentFrame();
9601
9608
  const { fps } = useVideoConfig();
9602
- const currentTime = frame / playbackRate / fps;
9609
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
9603
9610
  const currentTimeRef = useRef9(currentTime);
9604
9611
  currentTimeRef.current = currentTime;
9605
9612
  const requestInitKey = serializeRequestInit(requestInit);
@@ -9727,8 +9734,6 @@ var AnimatedImageInner = ({
9727
9734
  ref,
9728
9735
  ...sequenceProps
9729
9736
  }) => {
9730
- const { durationInFrames: videoDuration } = useVideoConfig();
9731
- const resolvedDuration = durationInFrames ?? videoDuration;
9732
9737
  const actualRef = useRef9(null);
9733
9738
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
9734
9739
  useImperativeHandle2(ref, () => {
@@ -9751,7 +9756,7 @@ var AnimatedImageInner = ({
9751
9756
  };
9752
9757
  return /* @__PURE__ */ jsx14(Sequence, {
9753
9758
  layout: "none",
9754
- durationInFrames: resolvedDuration,
9759
+ durationInFrames,
9755
9760
  name: "<AnimatedImage>",
9756
9761
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
9757
9762
  controls,
@@ -13379,8 +13384,6 @@ var HtmlInCanvasInner = forwardRef9(({
13379
13384
  name,
13380
13385
  ...sequenceProps
13381
13386
  }, ref) => {
13382
- const { durationInFrames: videoDuration } = useVideoConfig();
13383
- const resolvedDuration = durationInFrames ?? videoDuration;
13384
13387
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
13385
13388
  const actualRef = useRef22(null);
13386
13389
  const setCanvasRef = useCallback16((node) => {
@@ -13392,7 +13395,7 @@ var HtmlInCanvasInner = forwardRef9(({
13392
13395
  }
13393
13396
  }, [ref]);
13394
13397
  return /* @__PURE__ */ jsx25(Sequence, {
13395
- durationInFrames: resolvedDuration,
13398
+ durationInFrames,
13396
13399
  name: name ?? "<HtmlInCanvas>",
13397
13400
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
13398
13401
  controls,
package/dist/team.js CHANGED
@@ -5770,7 +5770,7 @@ var getSingleChildComponent = (children) => {
5770
5770
  }
5771
5771
  return child.type;
5772
5772
  };
5773
- var VERSION = "4.0.493";
5773
+ var VERSION = "4.0.494";
5774
5774
  var checkMultipleRemotionVersions = () => {
5775
5775
  if (typeof globalThis === "undefined") {
5776
5776
  return;
@@ -9135,7 +9135,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
9135
9135
  const style = useMemo14(() => {
9136
9136
  return {
9137
9137
  ...passedStyle,
9138
- opacity: premountingActive || postmountingActive ? 0 : 1,
9138
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
9139
9139
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
9140
9140
  ...premountingActive ? styleWhilePremounted : {},
9141
9141
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -9713,6 +9713,13 @@ var decodeImage = async ({
9713
9713
  frameCount: selectedTrack.frameCount
9714
9714
  };
9715
9715
  };
9716
+ var getCurrentTime = ({
9717
+ frame,
9718
+ playbackRate,
9719
+ fps
9720
+ }) => {
9721
+ return frame * playbackRate / fps;
9722
+ };
9716
9723
  var serializeRequestInit = (requestInit) => {
9717
9724
  if (!requestInit) {
9718
9725
  return null;
@@ -9780,7 +9787,7 @@ var AnimatedImageContent = forwardRef4(({
9780
9787
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
9781
9788
  const frame = useCurrentFrame();
9782
9789
  const { fps } = useVideoConfig();
9783
- const currentTime = frame / playbackRate / fps;
9790
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
9784
9791
  const currentTimeRef = useRef9(currentTime);
9785
9792
  currentTimeRef.current = currentTime;
9786
9793
  const requestInitKey = serializeRequestInit(requestInit);
@@ -9908,8 +9915,6 @@ var AnimatedImageInner = ({
9908
9915
  ref,
9909
9916
  ...sequenceProps
9910
9917
  }) => {
9911
- const { durationInFrames: videoDuration } = useVideoConfig();
9912
- const resolvedDuration = durationInFrames ?? videoDuration;
9913
9918
  const actualRef = useRef9(null);
9914
9919
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
9915
9920
  useImperativeHandle2(ref, () => {
@@ -9932,7 +9937,7 @@ var AnimatedImageInner = ({
9932
9937
  };
9933
9938
  return /* @__PURE__ */ jsx14(Sequence, {
9934
9939
  layout: "none",
9935
- durationInFrames: resolvedDuration,
9940
+ durationInFrames,
9936
9941
  name: "<AnimatedImage>",
9937
9942
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
9938
9943
  controls,
@@ -13560,8 +13565,6 @@ var HtmlInCanvasInner = forwardRef9(({
13560
13565
  name,
13561
13566
  ...sequenceProps
13562
13567
  }, ref) => {
13563
- const { durationInFrames: videoDuration } = useVideoConfig();
13564
- const resolvedDuration = durationInFrames ?? videoDuration;
13565
13568
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
13566
13569
  const actualRef = useRef22(null);
13567
13570
  const setCanvasRef = useCallback16((node) => {
@@ -13573,7 +13576,7 @@ var HtmlInCanvasInner = forwardRef9(({
13573
13576
  }
13574
13577
  }, [ref]);
13575
13578
  return /* @__PURE__ */ jsx25(Sequence, {
13576
- durationInFrames: resolvedDuration,
13579
+ durationInFrames,
13577
13580
  name: name ?? "<HtmlInCanvas>",
13578
13581
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
13579
13582
  controls,
@@ -5589,7 +5589,7 @@ var getSingleChildComponent = (children) => {
5589
5589
  }
5590
5590
  return child.type;
5591
5591
  };
5592
- var VERSION = "4.0.493";
5592
+ var VERSION = "4.0.494";
5593
5593
  var checkMultipleRemotionVersions = () => {
5594
5594
  if (typeof globalThis === "undefined") {
5595
5595
  return;
@@ -8954,7 +8954,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8954
8954
  const style = useMemo14(() => {
8955
8955
  return {
8956
8956
  ...passedStyle,
8957
- opacity: premountingActive || postmountingActive ? 0 : 1,
8957
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8958
8958
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8959
8959
  ...premountingActive ? styleWhilePremounted : {},
8960
8960
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -9532,6 +9532,13 @@ var decodeImage = async ({
9532
9532
  frameCount: selectedTrack.frameCount
9533
9533
  };
9534
9534
  };
9535
+ var getCurrentTime = ({
9536
+ frame,
9537
+ playbackRate,
9538
+ fps
9539
+ }) => {
9540
+ return frame * playbackRate / fps;
9541
+ };
9535
9542
  var serializeRequestInit = (requestInit) => {
9536
9543
  if (!requestInit) {
9537
9544
  return null;
@@ -9599,7 +9606,7 @@ var AnimatedImageContent = forwardRef4(({
9599
9606
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
9600
9607
  const frame = useCurrentFrame();
9601
9608
  const { fps } = useVideoConfig();
9602
- const currentTime = frame / playbackRate / fps;
9609
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
9603
9610
  const currentTimeRef = useRef9(currentTime);
9604
9611
  currentTimeRef.current = currentTime;
9605
9612
  const requestInitKey = serializeRequestInit(requestInit);
@@ -9727,8 +9734,6 @@ var AnimatedImageInner = ({
9727
9734
  ref,
9728
9735
  ...sequenceProps
9729
9736
  }) => {
9730
- const { durationInFrames: videoDuration } = useVideoConfig();
9731
- const resolvedDuration = durationInFrames ?? videoDuration;
9732
9737
  const actualRef = useRef9(null);
9733
9738
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
9734
9739
  useImperativeHandle2(ref, () => {
@@ -9751,7 +9756,7 @@ var AnimatedImageInner = ({
9751
9756
  };
9752
9757
  return /* @__PURE__ */ jsx14(Sequence, {
9753
9758
  layout: "none",
9754
- durationInFrames: resolvedDuration,
9759
+ durationInFrames,
9755
9760
  name: "<AnimatedImage>",
9756
9761
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
9757
9762
  controls,
@@ -13379,8 +13384,6 @@ var HtmlInCanvasInner = forwardRef9(({
13379
13384
  name,
13380
13385
  ...sequenceProps
13381
13386
  }, ref) => {
13382
- const { durationInFrames: videoDuration } = useVideoConfig();
13383
- const resolvedDuration = durationInFrames ?? videoDuration;
13384
13387
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
13385
13388
  const actualRef = useRef22(null);
13386
13389
  const setCanvasRef = useCallback16((node) => {
@@ -13392,7 +13395,7 @@ var HtmlInCanvasInner = forwardRef9(({
13392
13395
  }
13393
13396
  }, [ref]);
13394
13397
  return /* @__PURE__ */ jsx25(Sequence, {
13395
- durationInFrames: resolvedDuration,
13398
+ durationInFrames,
13396
13399
  name: name ?? "<HtmlInCanvas>",
13397
13400
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
13398
13401
  controls,
package/dist/templates.js CHANGED
@@ -5589,7 +5589,7 @@ var getSingleChildComponent = (children) => {
5589
5589
  }
5590
5590
  return child.type;
5591
5591
  };
5592
- var VERSION = "4.0.493";
5592
+ var VERSION = "4.0.494";
5593
5593
  var checkMultipleRemotionVersions = () => {
5594
5594
  if (typeof globalThis === "undefined") {
5595
5595
  return;
@@ -8954,7 +8954,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
8954
8954
  const style = useMemo14(() => {
8955
8955
  return {
8956
8956
  ...passedStyle,
8957
- opacity: premountingActive || postmountingActive ? 0 : 1,
8957
+ opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
8958
8958
  pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
8959
8959
  ...premountingActive ? styleWhilePremounted : {},
8960
8960
  ...postmountingActive ? styleWhilePostmounted : {}
@@ -9532,6 +9532,13 @@ var decodeImage = async ({
9532
9532
  frameCount: selectedTrack.frameCount
9533
9533
  };
9534
9534
  };
9535
+ var getCurrentTime = ({
9536
+ frame,
9537
+ playbackRate,
9538
+ fps
9539
+ }) => {
9540
+ return frame * playbackRate / fps;
9541
+ };
9535
9542
  var serializeRequestInit = (requestInit) => {
9536
9543
  if (!requestInit) {
9537
9544
  return null;
@@ -9599,7 +9606,7 @@ var AnimatedImageContent = forwardRef4(({
9599
9606
  const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
9600
9607
  const frame = useCurrentFrame();
9601
9608
  const { fps } = useVideoConfig();
9602
- const currentTime = frame / playbackRate / fps;
9609
+ const currentTime = getCurrentTime({ frame, playbackRate, fps });
9603
9610
  const currentTimeRef = useRef9(currentTime);
9604
9611
  currentTimeRef.current = currentTime;
9605
9612
  const requestInitKey = serializeRequestInit(requestInit);
@@ -9727,8 +9734,6 @@ var AnimatedImageInner = ({
9727
9734
  ref,
9728
9735
  ...sequenceProps
9729
9736
  }) => {
9730
- const { durationInFrames: videoDuration } = useVideoConfig();
9731
- const resolvedDuration = durationInFrames ?? videoDuration;
9732
9737
  const actualRef = useRef9(null);
9733
9738
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
9734
9739
  useImperativeHandle2(ref, () => {
@@ -9751,7 +9756,7 @@ var AnimatedImageInner = ({
9751
9756
  };
9752
9757
  return /* @__PURE__ */ jsx14(Sequence, {
9753
9758
  layout: "none",
9754
- durationInFrames: resolvedDuration,
9759
+ durationInFrames,
9755
9760
  name: "<AnimatedImage>",
9756
9761
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
9757
9762
  controls,
@@ -13379,8 +13384,6 @@ var HtmlInCanvasInner = forwardRef9(({
13379
13384
  name,
13380
13385
  ...sequenceProps
13381
13386
  }, ref) => {
13382
- const { durationInFrames: videoDuration } = useVideoConfig();
13383
- const resolvedDuration = durationInFrames ?? videoDuration;
13384
13387
  const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
13385
13388
  const actualRef = useRef22(null);
13386
13389
  const setCanvasRef = useCallback16((node) => {
@@ -13392,7 +13395,7 @@ var HtmlInCanvasInner = forwardRef9(({
13392
13395
  }
13393
13396
  }, [ref]);
13394
13397
  return /* @__PURE__ */ jsx25(Sequence, {
13395
- durationInFrames: resolvedDuration,
13398
+ durationInFrames,
13396
13399
  name: name ?? "<HtmlInCanvas>",
13397
13400
  _remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
13398
13401
  controls,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.493",
3
+ "version": "4.0.494",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,19 +11,19 @@
11
11
  },
12
12
  "type": "module",
13
13
  "dependencies": {
14
- "@remotion/animated-emoji": "4.0.493",
15
- "@remotion/design": "4.0.493",
16
- "@remotion/web-renderer": "4.0.493",
17
- "@remotion/lottie": "4.0.493",
18
- "@remotion/paths": "4.0.493",
19
- "@remotion/player": "4.0.493",
20
- "@remotion/shapes": "4.0.493",
21
- "@remotion/media": "4.0.493",
22
- "@remotion/svg-3d-engine": "4.0.493",
23
- "create-video": "4.0.493",
14
+ "@remotion/animated-emoji": "4.0.494",
15
+ "@remotion/design": "4.0.494",
16
+ "@remotion/web-renderer": "4.0.494",
17
+ "@remotion/lottie": "4.0.494",
18
+ "@remotion/paths": "4.0.494",
19
+ "@remotion/player": "4.0.494",
20
+ "@remotion/shapes": "4.0.494",
21
+ "@remotion/media": "4.0.494",
22
+ "@remotion/svg-3d-engine": "4.0.494",
23
+ "create-video": "4.0.494",
24
24
  "hls.js": "1.5.19",
25
25
  "polished": "4.3.1",
26
- "remotion": "4.0.493",
26
+ "remotion": "4.0.494",
27
27
  "zod": "4.3.6",
28
28
  "@mux/upchunk": "3.5.0",
29
29
  "@vidstack/react": "1.12.13",
@@ -34,7 +34,7 @@
34
34
  "@mediabunny/mp3-encoder": "1.50.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@remotion/eslint-config-internal": "4.0.493",
37
+ "@remotion/eslint-config-internal": "4.0.494",
38
38
  "@eslint/eslintrc": "3.1.0",
39
39
  "@types/react": "19.2.7",
40
40
  "@types/react-dom": "19.2.3",