@remotion/promo-pages 4.0.379 → 4.0.380

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.
@@ -198,7 +198,7 @@ import {
198
198
  } from "react";
199
199
  import { jsx as jsx26 } from "react/jsx-runtime";
200
200
  import React26 from "react";
201
- import { useEffect as useEffect17, useMemo as useMemo27, useState as useState18 } from "react";
201
+ import { useContext as useContext32, useEffect as useEffect17, useMemo as useMemo27, useState as useState18 } from "react";
202
202
  import { createContext as createContext19, useContext as useContext31, useMemo as useMemo26 } from "react";
203
203
  import { jsx as jsx27 } from "react/jsx-runtime";
204
204
  import { jsx as jsx28 } from "react/jsx-runtime";
@@ -206,7 +206,7 @@ import React28, { createContext as createContext20 } from "react";
206
206
  import { useCallback as useCallback16 } from "react";
207
207
  import {
208
208
  useCallback as useCallback15,
209
- useContext as useContext32,
209
+ useContext as useContext33,
210
210
  useEffect as useEffect18,
211
211
  useLayoutEffect as useLayoutEffect10,
212
212
  useMemo as useMemo28,
@@ -215,7 +215,7 @@ import {
215
215
  import { jsx as jsx29 } from "react/jsx-runtime";
216
216
  import {
217
217
  forwardRef as forwardRef9,
218
- useContext as useContext33,
218
+ useContext as useContext34,
219
219
  useEffect as useEffect20,
220
220
  useImperativeHandle as useImperativeHandle10,
221
221
  useMemo as useMemo29,
@@ -233,10 +233,10 @@ import React34, { createContext as createContext21 } from "react";
233
233
  import { jsx as jsx33 } from "react/jsx-runtime";
234
234
  import { jsx as jsx34 } from "react/jsx-runtime";
235
235
  import React36 from "react";
236
- import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext35 } from "react";
236
+ import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext36 } from "react";
237
237
  import {
238
238
  forwardRef as forwardRef11,
239
- useContext as useContext34,
239
+ useContext as useContext35,
240
240
  useEffect as useEffect21,
241
241
  useImperativeHandle as useImperativeHandle11,
242
242
  useLayoutEffect as useLayoutEffect11,
@@ -756,7 +756,7 @@ var __defProp2, __export2 = (target, all) => {
756
756
  });
757
757
  }, useIsPlayer = () => {
758
758
  return useContext(IsPlayerContext);
759
- }, VERSION = "4.0.379", checkMultipleRemotionVersions = () => {
759
+ }, VERSION = "4.0.380", checkMultipleRemotionVersions = () => {
760
760
  if (typeof globalThis === "undefined") {
761
761
  return;
762
762
  }
@@ -3061,14 +3061,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
3061
3061
  return false;
3062
3062
  }
3063
3063
  return true;
3064
- }, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint }) => {
3064
+ }, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint, component }) => {
3065
3065
  const audios = useRef5([]);
3066
3066
  const [initialNumberOfAudioTags] = useState11(numberOfAudioTags);
3067
3067
  if (numberOfAudioTags !== initialNumberOfAudioTags) {
3068
3068
  throw new Error("The number of shared audio tags has changed dynamically. Once you have set this property, you cannot change it afterwards.");
3069
3069
  }
3070
- const compositionManager = useContext16(CompositionManager);
3071
- const component = compositionManager.compositions.find((c) => compositionManager.canvasContent?.type === "composition" ? c.id === compositionManager.canvasContent.compositionId : null);
3072
3070
  const logLevel = useLogLevel();
3073
3071
  const audioContext = useSingletonAudioContext(logLevel, audioLatencyHint);
3074
3072
  const refs = useMemo15(() => {
@@ -5432,6 +5430,10 @@ Check that all your Remotion packages are on the same version. If your dependenc
5432
5430
  const logging = useMemo27(() => {
5433
5431
  return { logLevel, mountTime: Date.now() };
5434
5432
  }, [logLevel]);
5433
+ const compositionManager = useContext32(CompositionManager);
5434
+ const composition = useMemo27(() => {
5435
+ return compositionManager.compositions.find((c2) => compositionManager.canvasContent?.type === "composition" ? c2.id === compositionManager.canvasContent.compositionId : false);
5436
+ }, [compositionManager.compositions, compositionManager.canvasContent]);
5435
5437
  return /* @__PURE__ */ jsx28(LogLevelContext.Provider, {
5436
5438
  value: logging,
5437
5439
  children: /* @__PURE__ */ jsx28(NonceContext.Provider, {
@@ -5449,6 +5451,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5449
5451
  children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5450
5452
  numberOfAudioTags,
5451
5453
  audioLatencyHint,
5454
+ component: composition?.component ?? null,
5452
5455
  children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5453
5456
  children: /* @__PURE__ */ jsx28(BufferingProvider, {
5454
5457
  children
@@ -5532,9 +5535,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5532
5535
  const frame = useCurrentFrame();
5533
5536
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
5534
5537
  const videoConfig = useUnsafeVideoConfig();
5535
- const sequenceContext = useContext32(SequenceContext);
5538
+ const sequenceContext = useContext33(SequenceContext);
5536
5539
  const mediaStartsAt = useMediaStartsAt();
5537
- const { registerRenderAsset, unregisterRenderAsset } = useContext32(RenderAssetManager);
5540
+ const { registerRenderAsset, unregisterRenderAsset } = useContext33(RenderAssetManager);
5538
5541
  if (!src) {
5539
5542
  throw new TypeError("No `src` was passed to <OffthreadVideo>.");
5540
5543
  }
@@ -5735,7 +5738,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5735
5738
  };
5736
5739
  }, [onVideoFrame, ref]);
5737
5740
  }, VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
5738
- const context = useContext33(SharedAudioContext);
5741
+ const context = useContext34(SharedAudioContext);
5739
5742
  if (!context) {
5740
5743
  throw new Error("SharedAudioContext not found");
5741
5744
  }
@@ -5783,8 +5786,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
5783
5786
  }
5784
5787
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
5785
5788
  const { fps, durationInFrames } = useVideoConfig();
5786
- const parentSequence = useContext33(SequenceContext);
5787
- const { hidden } = useContext33(SequenceVisibilityToggleContext);
5789
+ const parentSequence = useContext34(SequenceContext);
5790
+ const { hidden } = useContext34(SequenceVisibilityToggleContext);
5788
5791
  const logLevel = useLogLevel();
5789
5792
  const mountTime = useMountTime();
5790
5793
  const [timelineId] = useState20(() => String(Math.random()));
@@ -6463,13 +6466,13 @@ Check that all your Remotion packages are on the same version. If your dependenc
6463
6466
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
6464
6467
  const videoConfig = useUnsafeVideoConfig();
6465
6468
  const videoRef = useRef17(null);
6466
- const sequenceContext = useContext34(SequenceContext);
6469
+ const sequenceContext = useContext35(SequenceContext);
6467
6470
  const mediaStartsAt = useMediaStartsAt();
6468
6471
  const environment = useRemotionEnvironment();
6469
6472
  const logLevel = useLogLevel();
6470
6473
  const mountTime = useMountTime();
6471
6474
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
6472
- const { registerRenderAsset, unregisterRenderAsset } = useContext34(RenderAssetManager);
6475
+ const { registerRenderAsset, unregisterRenderAsset } = useContext35(RenderAssetManager);
6473
6476
  const id = useMemo32(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
6474
6477
  props2.src,
6475
6478
  sequenceContext?.cumulatedFrom,
@@ -6668,7 +6671,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
6668
6671
  const { loop, ...propsOtherThanLoop } = props2;
6669
6672
  const { fps } = useVideoConfig();
6670
6673
  const environment = useRemotionEnvironment();
6671
- const { durations, setDurations } = useContext35(DurationsContext);
6674
+ const { durations, setDurations } = useContext36(DurationsContext);
6672
6675
  if (typeof ref === "string") {
6673
6676
  throw new Error("string refs are not supported");
6674
6677
  }
@@ -198,7 +198,7 @@ import {
198
198
  } from "react";
199
199
  import { jsx as jsx26 } from "react/jsx-runtime";
200
200
  import React26 from "react";
201
- import { useEffect as useEffect17, useMemo as useMemo27, useState as useState18 } from "react";
201
+ import { useContext as useContext32, useEffect as useEffect17, useMemo as useMemo27, useState as useState18 } from "react";
202
202
  import { createContext as createContext19, useContext as useContext31, useMemo as useMemo26 } from "react";
203
203
  import { jsx as jsx27 } from "react/jsx-runtime";
204
204
  import { jsx as jsx28 } from "react/jsx-runtime";
@@ -206,7 +206,7 @@ import React28, { createContext as createContext20 } from "react";
206
206
  import { useCallback as useCallback16 } from "react";
207
207
  import {
208
208
  useCallback as useCallback15,
209
- useContext as useContext32,
209
+ useContext as useContext33,
210
210
  useEffect as useEffect18,
211
211
  useLayoutEffect as useLayoutEffect10,
212
212
  useMemo as useMemo28,
@@ -215,7 +215,7 @@ import {
215
215
  import { jsx as jsx29 } from "react/jsx-runtime";
216
216
  import {
217
217
  forwardRef as forwardRef9,
218
- useContext as useContext33,
218
+ useContext as useContext34,
219
219
  useEffect as useEffect20,
220
220
  useImperativeHandle as useImperativeHandle10,
221
221
  useMemo as useMemo29,
@@ -233,10 +233,10 @@ import React34, { createContext as createContext21 } from "react";
233
233
  import { jsx as jsx33 } from "react/jsx-runtime";
234
234
  import { jsx as jsx34 } from "react/jsx-runtime";
235
235
  import React36 from "react";
236
- import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext35 } from "react";
236
+ import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext36 } from "react";
237
237
  import {
238
238
  forwardRef as forwardRef11,
239
- useContext as useContext34,
239
+ useContext as useContext35,
240
240
  useEffect as useEffect21,
241
241
  useImperativeHandle as useImperativeHandle11,
242
242
  useLayoutEffect as useLayoutEffect11,
@@ -756,7 +756,7 @@ var __defProp2, __export2 = (target, all) => {
756
756
  });
757
757
  }, useIsPlayer = () => {
758
758
  return useContext(IsPlayerContext);
759
- }, VERSION = "4.0.379", checkMultipleRemotionVersions = () => {
759
+ }, VERSION = "4.0.380", checkMultipleRemotionVersions = () => {
760
760
  if (typeof globalThis === "undefined") {
761
761
  return;
762
762
  }
@@ -3061,14 +3061,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
3061
3061
  return false;
3062
3062
  }
3063
3063
  return true;
3064
- }, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint }) => {
3064
+ }, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint, component }) => {
3065
3065
  const audios = useRef5([]);
3066
3066
  const [initialNumberOfAudioTags] = useState11(numberOfAudioTags);
3067
3067
  if (numberOfAudioTags !== initialNumberOfAudioTags) {
3068
3068
  throw new Error("The number of shared audio tags has changed dynamically. Once you have set this property, you cannot change it afterwards.");
3069
3069
  }
3070
- const compositionManager = useContext16(CompositionManager);
3071
- const component = compositionManager.compositions.find((c) => compositionManager.canvasContent?.type === "composition" ? c.id === compositionManager.canvasContent.compositionId : null);
3072
3070
  const logLevel = useLogLevel();
3073
3071
  const audioContext = useSingletonAudioContext(logLevel, audioLatencyHint);
3074
3072
  const refs = useMemo15(() => {
@@ -5432,6 +5430,10 @@ Check that all your Remotion packages are on the same version. If your dependenc
5432
5430
  const logging = useMemo27(() => {
5433
5431
  return { logLevel, mountTime: Date.now() };
5434
5432
  }, [logLevel]);
5433
+ const compositionManager = useContext32(CompositionManager);
5434
+ const composition = useMemo27(() => {
5435
+ return compositionManager.compositions.find((c2) => compositionManager.canvasContent?.type === "composition" ? c2.id === compositionManager.canvasContent.compositionId : false);
5436
+ }, [compositionManager.compositions, compositionManager.canvasContent]);
5435
5437
  return /* @__PURE__ */ jsx28(LogLevelContext.Provider, {
5436
5438
  value: logging,
5437
5439
  children: /* @__PURE__ */ jsx28(NonceContext.Provider, {
@@ -5449,6 +5451,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5449
5451
  children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5450
5452
  numberOfAudioTags,
5451
5453
  audioLatencyHint,
5454
+ component: composition?.component ?? null,
5452
5455
  children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5453
5456
  children: /* @__PURE__ */ jsx28(BufferingProvider, {
5454
5457
  children
@@ -5532,9 +5535,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5532
5535
  const frame = useCurrentFrame();
5533
5536
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
5534
5537
  const videoConfig = useUnsafeVideoConfig();
5535
- const sequenceContext = useContext32(SequenceContext);
5538
+ const sequenceContext = useContext33(SequenceContext);
5536
5539
  const mediaStartsAt = useMediaStartsAt();
5537
- const { registerRenderAsset, unregisterRenderAsset } = useContext32(RenderAssetManager);
5540
+ const { registerRenderAsset, unregisterRenderAsset } = useContext33(RenderAssetManager);
5538
5541
  if (!src) {
5539
5542
  throw new TypeError("No `src` was passed to <OffthreadVideo>.");
5540
5543
  }
@@ -5735,7 +5738,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5735
5738
  };
5736
5739
  }, [onVideoFrame, ref]);
5737
5740
  }, VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
5738
- const context = useContext33(SharedAudioContext);
5741
+ const context = useContext34(SharedAudioContext);
5739
5742
  if (!context) {
5740
5743
  throw new Error("SharedAudioContext not found");
5741
5744
  }
@@ -5783,8 +5786,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
5783
5786
  }
5784
5787
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
5785
5788
  const { fps, durationInFrames } = useVideoConfig();
5786
- const parentSequence = useContext33(SequenceContext);
5787
- const { hidden } = useContext33(SequenceVisibilityToggleContext);
5789
+ const parentSequence = useContext34(SequenceContext);
5790
+ const { hidden } = useContext34(SequenceVisibilityToggleContext);
5788
5791
  const logLevel = useLogLevel();
5789
5792
  const mountTime = useMountTime();
5790
5793
  const [timelineId] = useState20(() => String(Math.random()));
@@ -6463,13 +6466,13 @@ Check that all your Remotion packages are on the same version. If your dependenc
6463
6466
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
6464
6467
  const videoConfig = useUnsafeVideoConfig();
6465
6468
  const videoRef = useRef17(null);
6466
- const sequenceContext = useContext34(SequenceContext);
6469
+ const sequenceContext = useContext35(SequenceContext);
6467
6470
  const mediaStartsAt = useMediaStartsAt();
6468
6471
  const environment = useRemotionEnvironment();
6469
6472
  const logLevel = useLogLevel();
6470
6473
  const mountTime = useMountTime();
6471
6474
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
6472
- const { registerRenderAsset, unregisterRenderAsset } = useContext34(RenderAssetManager);
6475
+ const { registerRenderAsset, unregisterRenderAsset } = useContext35(RenderAssetManager);
6473
6476
  const id = useMemo32(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
6474
6477
  props2.src,
6475
6478
  sequenceContext?.cumulatedFrom,
@@ -6668,7 +6671,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
6668
6671
  const { loop, ...propsOtherThanLoop } = props2;
6669
6672
  const { fps } = useVideoConfig();
6670
6673
  const environment = useRemotionEnvironment();
6671
- const { durations, setDurations } = useContext35(DurationsContext);
6674
+ const { durations, setDurations } = useContext36(DurationsContext);
6672
6675
  if (typeof ref === "string") {
6673
6676
  throw new Error("string refs are not supported");
6674
6677
  }
package/dist/templates.js CHANGED
@@ -198,7 +198,7 @@ import {
198
198
  } from "react";
199
199
  import { jsx as jsx26 } from "react/jsx-runtime";
200
200
  import React26 from "react";
201
- import { useEffect as useEffect17, useMemo as useMemo27, useState as useState18 } from "react";
201
+ import { useContext as useContext32, useEffect as useEffect17, useMemo as useMemo27, useState as useState18 } from "react";
202
202
  import { createContext as createContext19, useContext as useContext31, useMemo as useMemo26 } from "react";
203
203
  import { jsx as jsx27 } from "react/jsx-runtime";
204
204
  import { jsx as jsx28 } from "react/jsx-runtime";
@@ -206,7 +206,7 @@ import React28, { createContext as createContext20 } from "react";
206
206
  import { useCallback as useCallback16 } from "react";
207
207
  import {
208
208
  useCallback as useCallback15,
209
- useContext as useContext32,
209
+ useContext as useContext33,
210
210
  useEffect as useEffect18,
211
211
  useLayoutEffect as useLayoutEffect10,
212
212
  useMemo as useMemo28,
@@ -215,7 +215,7 @@ import {
215
215
  import { jsx as jsx29 } from "react/jsx-runtime";
216
216
  import {
217
217
  forwardRef as forwardRef9,
218
- useContext as useContext33,
218
+ useContext as useContext34,
219
219
  useEffect as useEffect20,
220
220
  useImperativeHandle as useImperativeHandle10,
221
221
  useMemo as useMemo29,
@@ -233,10 +233,10 @@ import React34, { createContext as createContext21 } from "react";
233
233
  import { jsx as jsx33 } from "react/jsx-runtime";
234
234
  import { jsx as jsx34 } from "react/jsx-runtime";
235
235
  import React36 from "react";
236
- import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext35 } from "react";
236
+ import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext36 } from "react";
237
237
  import {
238
238
  forwardRef as forwardRef11,
239
- useContext as useContext34,
239
+ useContext as useContext35,
240
240
  useEffect as useEffect21,
241
241
  useImperativeHandle as useImperativeHandle11,
242
242
  useLayoutEffect as useLayoutEffect11,
@@ -756,7 +756,7 @@ var __defProp2, __export2 = (target, all) => {
756
756
  });
757
757
  }, useIsPlayer = () => {
758
758
  return useContext(IsPlayerContext);
759
- }, VERSION = "4.0.379", checkMultipleRemotionVersions = () => {
759
+ }, VERSION = "4.0.380", checkMultipleRemotionVersions = () => {
760
760
  if (typeof globalThis === "undefined") {
761
761
  return;
762
762
  }
@@ -3061,14 +3061,12 @@ Check that all your Remotion packages are on the same version. If your dependenc
3061
3061
  return false;
3062
3062
  }
3063
3063
  return true;
3064
- }, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint }) => {
3064
+ }, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint, component }) => {
3065
3065
  const audios = useRef5([]);
3066
3066
  const [initialNumberOfAudioTags] = useState11(numberOfAudioTags);
3067
3067
  if (numberOfAudioTags !== initialNumberOfAudioTags) {
3068
3068
  throw new Error("The number of shared audio tags has changed dynamically. Once you have set this property, you cannot change it afterwards.");
3069
3069
  }
3070
- const compositionManager = useContext16(CompositionManager);
3071
- const component = compositionManager.compositions.find((c) => compositionManager.canvasContent?.type === "composition" ? c.id === compositionManager.canvasContent.compositionId : null);
3072
3070
  const logLevel = useLogLevel();
3073
3071
  const audioContext = useSingletonAudioContext(logLevel, audioLatencyHint);
3074
3072
  const refs = useMemo15(() => {
@@ -5432,6 +5430,10 @@ Check that all your Remotion packages are on the same version. If your dependenc
5432
5430
  const logging = useMemo27(() => {
5433
5431
  return { logLevel, mountTime: Date.now() };
5434
5432
  }, [logLevel]);
5433
+ const compositionManager = useContext32(CompositionManager);
5434
+ const composition = useMemo27(() => {
5435
+ return compositionManager.compositions.find((c2) => compositionManager.canvasContent?.type === "composition" ? c2.id === compositionManager.canvasContent.compositionId : false);
5436
+ }, [compositionManager.compositions, compositionManager.canvasContent]);
5435
5437
  return /* @__PURE__ */ jsx28(LogLevelContext.Provider, {
5436
5438
  value: logging,
5437
5439
  children: /* @__PURE__ */ jsx28(NonceContext.Provider, {
@@ -5449,6 +5451,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5449
5451
  children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
5450
5452
  numberOfAudioTags,
5451
5453
  audioLatencyHint,
5454
+ component: composition?.component ?? null,
5452
5455
  children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
5453
5456
  children: /* @__PURE__ */ jsx28(BufferingProvider, {
5454
5457
  children
@@ -5532,9 +5535,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
5532
5535
  const frame = useCurrentFrame();
5533
5536
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
5534
5537
  const videoConfig = useUnsafeVideoConfig();
5535
- const sequenceContext = useContext32(SequenceContext);
5538
+ const sequenceContext = useContext33(SequenceContext);
5536
5539
  const mediaStartsAt = useMediaStartsAt();
5537
- const { registerRenderAsset, unregisterRenderAsset } = useContext32(RenderAssetManager);
5540
+ const { registerRenderAsset, unregisterRenderAsset } = useContext33(RenderAssetManager);
5538
5541
  if (!src) {
5539
5542
  throw new TypeError("No `src` was passed to <OffthreadVideo>.");
5540
5543
  }
@@ -5735,7 +5738,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
5735
5738
  };
5736
5739
  }, [onVideoFrame, ref]);
5737
5740
  }, VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
5738
- const context = useContext33(SharedAudioContext);
5741
+ const context = useContext34(SharedAudioContext);
5739
5742
  if (!context) {
5740
5743
  throw new Error("SharedAudioContext not found");
5741
5744
  }
@@ -5783,8 +5786,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
5783
5786
  }
5784
5787
  const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
5785
5788
  const { fps, durationInFrames } = useVideoConfig();
5786
- const parentSequence = useContext33(SequenceContext);
5787
- const { hidden } = useContext33(SequenceVisibilityToggleContext);
5789
+ const parentSequence = useContext34(SequenceContext);
5790
+ const { hidden } = useContext34(SequenceVisibilityToggleContext);
5788
5791
  const logLevel = useLogLevel();
5789
5792
  const mountTime = useMountTime();
5790
5793
  const [timelineId] = useState20(() => String(Math.random()));
@@ -6463,13 +6466,13 @@ Check that all your Remotion packages are on the same version. If your dependenc
6463
6466
  const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
6464
6467
  const videoConfig = useUnsafeVideoConfig();
6465
6468
  const videoRef = useRef17(null);
6466
- const sequenceContext = useContext34(SequenceContext);
6469
+ const sequenceContext = useContext35(SequenceContext);
6467
6470
  const mediaStartsAt = useMediaStartsAt();
6468
6471
  const environment = useRemotionEnvironment();
6469
6472
  const logLevel = useLogLevel();
6470
6473
  const mountTime = useMountTime();
6471
6474
  const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
6472
- const { registerRenderAsset, unregisterRenderAsset } = useContext34(RenderAssetManager);
6475
+ const { registerRenderAsset, unregisterRenderAsset } = useContext35(RenderAssetManager);
6473
6476
  const id = useMemo32(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
6474
6477
  props2.src,
6475
6478
  sequenceContext?.cumulatedFrom,
@@ -6668,7 +6671,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
6668
6671
  const { loop, ...propsOtherThanLoop } = props2;
6669
6672
  const { fps } = useVideoConfig();
6670
6673
  const environment = useRemotionEnvironment();
6671
- const { durations, setDurations } = useContext35(DurationsContext);
6674
+ const { durations, setDurations } = useContext36(DurationsContext);
6672
6675
  if (typeof ref === "string") {
6673
6676
  throw new Error("string refs are not supported");
6674
6677
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/promo-pages",
3
- "version": "4.0.379",
3
+ "version": "4.0.380",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,23 +11,23 @@
11
11
  },
12
12
  "type": "module",
13
13
  "dependencies": {
14
- "@remotion/animated-emoji": "4.0.379",
15
- "@remotion/design": "4.0.379",
16
- "@remotion/lambda": "4.0.379",
17
- "@remotion/lottie": "4.0.379",
18
- "@remotion/paths": "4.0.379",
19
- "@remotion/player": "4.0.379",
20
- "@remotion/shapes": "4.0.379",
21
- "@remotion/svg-3d-engine": "4.0.379",
22
- "create-video": "4.0.379",
14
+ "@remotion/animated-emoji": "4.0.380",
15
+ "@remotion/design": "4.0.380",
16
+ "@remotion/lambda": "4.0.380",
17
+ "@remotion/lottie": "4.0.380",
18
+ "@remotion/paths": "4.0.380",
19
+ "@remotion/player": "4.0.380",
20
+ "@remotion/shapes": "4.0.380",
21
+ "@remotion/svg-3d-engine": "4.0.380",
22
+ "create-video": "4.0.380",
23
23
  "hls.js": "1.5.19",
24
24
  "polished": "4.3.1",
25
- "remotion": "4.0.379",
25
+ "remotion": "4.0.380",
26
26
  "zod": "3.22.3",
27
27
  "bun-plugin-tailwind": "0.1.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@remotion/eslint-config-internal": "4.0.379",
30
+ "@remotion/eslint-config-internal": "4.0.380",
31
31
  "@eslint/eslintrc": "3.1.0",
32
32
  "@types/react": "19.0.0",
33
33
  "@types/react-dom": "19.0.0",