@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.
- package/dist/Homepage.js +30 -26
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +30 -26
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +20 -17
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +20 -17
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +20 -17
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +20 -17
- package/dist/design.js +20 -17
- package/dist/homepage/Pricing.js +20 -17
- package/dist/template-modal-content.js +20 -17
- package/dist/templates.js +20 -17
- package/package.json +12 -12
package/dist/Homepage.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
|
|
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
|
|
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
|
|
236
|
+
import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext36 } from "react";
|
|
237
237
|
import {
|
|
238
238
|
forwardRef as forwardRef11,
|
|
239
|
-
useContext as
|
|
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.
|
|
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 =
|
|
5538
|
+
const sequenceContext = useContext33(SequenceContext);
|
|
5536
5539
|
const mediaStartsAt = useMediaStartsAt();
|
|
5537
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
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 =
|
|
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 =
|
|
5787
|
-
const { hidden } =
|
|
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 =
|
|
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 } =
|
|
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 } =
|
|
6674
|
+
const { durations, setDurations } = useContext36(DurationsContext);
|
|
6672
6675
|
if (typeof ref === "string") {
|
|
6673
6676
|
throw new Error("string refs are not supported");
|
|
6674
6677
|
}
|
|
@@ -20525,13 +20528,13 @@ import { jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
|
20525
20528
|
import { jsx as jsx213, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
20526
20529
|
import React41 from "react";
|
|
20527
20530
|
import { useContext as useContext210, useEffect as useEffect210, useState as useState35 } from "react";
|
|
20528
|
-
import { useContext as
|
|
20531
|
+
import { useContext as useContext41, useEffect as useEffect37 } from "react";
|
|
20529
20532
|
import { jsx as jsx310 } from "react/jsx-runtime";
|
|
20530
20533
|
import { useCallback as useCallback27, useRef as useRef32 } from "react";
|
|
20531
20534
|
import { useEffect as useEffect38, useState as useState210 } from "react";
|
|
20532
20535
|
import { useContext as useContext42, useEffect as useEffect62, useRef as useRef42 } from "react";
|
|
20533
20536
|
import { useEffect as useEffect42 } from "react";
|
|
20534
|
-
import { useCallback as useCallback28, useContext as
|
|
20537
|
+
import { useCallback as useCallback28, useContext as useContext38, useMemo as useMemo42, useRef as useRef24, useState as useState36 } from "react";
|
|
20535
20538
|
import { useEffect as useEffect52, useRef as useRef33 } from "react";
|
|
20536
20539
|
import { useCallback as useCallback32, useEffect as useEffect72, useMemo as useMemo212, useState as useState42 } from "react";
|
|
20537
20540
|
import {
|
|
@@ -21667,7 +21670,7 @@ class ThumbnailEmitter {
|
|
|
21667
21670
|
};
|
|
21668
21671
|
}
|
|
21669
21672
|
var useBufferStateEmitter = (emitter) => {
|
|
21670
|
-
const bufferManager =
|
|
21673
|
+
const bufferManager = useContext41(Internals.BufferingContextReact);
|
|
21671
21674
|
if (!bufferManager) {
|
|
21672
21675
|
throw new Error("BufferingContextReact not found");
|
|
21673
21676
|
}
|
|
@@ -21750,20 +21753,20 @@ var usePlayer = () => {
|
|
|
21750
21753
|
const playStart = useRef24(frame);
|
|
21751
21754
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
21752
21755
|
const setTimelinePosition = Internals.Timeline.useTimelineSetFrame();
|
|
21753
|
-
const audioContext =
|
|
21754
|
-
const { audioAndVideoTags } =
|
|
21756
|
+
const audioContext = useContext38(Internals.SharedAudioContext);
|
|
21757
|
+
const { audioAndVideoTags } = useContext38(Internals.TimelineContext);
|
|
21755
21758
|
const frameRef = useRef24(frame);
|
|
21756
21759
|
frameRef.current = frame;
|
|
21757
21760
|
const video = Internals.useVideo();
|
|
21758
21761
|
const config = Internals.useUnsafeVideoConfig();
|
|
21759
|
-
const emitter =
|
|
21762
|
+
const emitter = useContext38(PlayerEventEmitterContext);
|
|
21760
21763
|
const lastFrame = (config?.durationInFrames ?? 1) - 1;
|
|
21761
21764
|
const isLastFrame = frame === lastFrame;
|
|
21762
21765
|
const isFirstFrame = frame === 0;
|
|
21763
21766
|
if (!emitter) {
|
|
21764
21767
|
throw new TypeError("Expected Player event emitter context");
|
|
21765
21768
|
}
|
|
21766
|
-
const bufferingContext =
|
|
21769
|
+
const bufferingContext = useContext38(Internals.BufferingContextReact);
|
|
21767
21770
|
if (!bufferingContext) {
|
|
21768
21771
|
throw new Error("Missing the buffering context. Most likely you have a Remotion version mismatch.");
|
|
21769
21772
|
}
|
|
@@ -24032,6 +24035,7 @@ var SharedPlayerContexts = ({
|
|
|
24032
24035
|
children: /* @__PURE__ */ jsx133(Internals.SharedAudioContextProvider, {
|
|
24033
24036
|
numberOfAudioTags: numberOfSharedAudioTags,
|
|
24034
24037
|
audioLatencyHint,
|
|
24038
|
+
component,
|
|
24035
24039
|
children: /* @__PURE__ */ jsx133(Internals.BufferingProvider, {
|
|
24036
24040
|
children
|
|
24037
24041
|
})
|
|
@@ -25357,7 +25361,7 @@ var UNDERLAY_RED = curriedTransparentize$1(0.9, RED);
|
|
|
25357
25361
|
var BLUE_TEXT = curriedDarken$1(0.3, "#42e9f5");
|
|
25358
25362
|
|
|
25359
25363
|
// src/components/homepage/layout/use-color-mode.tsx
|
|
25360
|
-
import React43, { useContext as
|
|
25364
|
+
import React43, { useContext as useContext43, useMemo as useMemo44 } from "react";
|
|
25361
25365
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
25362
25366
|
var Context = React43.createContext(undefined);
|
|
25363
25367
|
var ColorModeProvider = ({
|
|
@@ -25374,7 +25378,7 @@ var ColorModeProvider = ({
|
|
|
25374
25378
|
});
|
|
25375
25379
|
};
|
|
25376
25380
|
function useColorMode() {
|
|
25377
|
-
const context =
|
|
25381
|
+
const context = useContext43(Context);
|
|
25378
25382
|
if (context === null || context === undefined) {
|
|
25379
25383
|
throw new Error("ColorModeProvider");
|
|
25380
25384
|
}
|
|
@@ -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
|
|
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
|
|
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
|
|
236
|
+
import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext36 } from "react";
|
|
237
237
|
import {
|
|
238
238
|
forwardRef as forwardRef11,
|
|
239
|
-
useContext as
|
|
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.
|
|
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 =
|
|
5538
|
+
const sequenceContext = useContext33(SequenceContext);
|
|
5536
5539
|
const mediaStartsAt = useMediaStartsAt();
|
|
5537
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
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 =
|
|
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 =
|
|
5787
|
-
const { hidden } =
|
|
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 =
|
|
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 } =
|
|
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 } =
|
|
6674
|
+
const { durations, setDurations } = useContext36(DurationsContext);
|
|
6672
6675
|
if (typeof ref === "string") {
|
|
6673
6676
|
throw new Error("string refs are not supported");
|
|
6674
6677
|
}
|
|
@@ -20525,13 +20528,13 @@ import { jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
|
20525
20528
|
import { jsx as jsx213, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
20526
20529
|
import React41 from "react";
|
|
20527
20530
|
import { useContext as useContext210, useEffect as useEffect210, useState as useState35 } from "react";
|
|
20528
|
-
import { useContext as
|
|
20531
|
+
import { useContext as useContext41, useEffect as useEffect37 } from "react";
|
|
20529
20532
|
import { jsx as jsx310 } from "react/jsx-runtime";
|
|
20530
20533
|
import { useCallback as useCallback27, useRef as useRef32 } from "react";
|
|
20531
20534
|
import { useEffect as useEffect38, useState as useState210 } from "react";
|
|
20532
20535
|
import { useContext as useContext42, useEffect as useEffect62, useRef as useRef42 } from "react";
|
|
20533
20536
|
import { useEffect as useEffect42 } from "react";
|
|
20534
|
-
import { useCallback as useCallback28, useContext as
|
|
20537
|
+
import { useCallback as useCallback28, useContext as useContext38, useMemo as useMemo42, useRef as useRef24, useState as useState36 } from "react";
|
|
20535
20538
|
import { useEffect as useEffect52, useRef as useRef33 } from "react";
|
|
20536
20539
|
import { useCallback as useCallback32, useEffect as useEffect72, useMemo as useMemo212, useState as useState42 } from "react";
|
|
20537
20540
|
import {
|
|
@@ -21667,7 +21670,7 @@ class ThumbnailEmitter {
|
|
|
21667
21670
|
};
|
|
21668
21671
|
}
|
|
21669
21672
|
var useBufferStateEmitter = (emitter) => {
|
|
21670
|
-
const bufferManager =
|
|
21673
|
+
const bufferManager = useContext41(Internals.BufferingContextReact);
|
|
21671
21674
|
if (!bufferManager) {
|
|
21672
21675
|
throw new Error("BufferingContextReact not found");
|
|
21673
21676
|
}
|
|
@@ -21750,20 +21753,20 @@ var usePlayer = () => {
|
|
|
21750
21753
|
const playStart = useRef24(frame);
|
|
21751
21754
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
21752
21755
|
const setTimelinePosition = Internals.Timeline.useTimelineSetFrame();
|
|
21753
|
-
const audioContext =
|
|
21754
|
-
const { audioAndVideoTags } =
|
|
21756
|
+
const audioContext = useContext38(Internals.SharedAudioContext);
|
|
21757
|
+
const { audioAndVideoTags } = useContext38(Internals.TimelineContext);
|
|
21755
21758
|
const frameRef = useRef24(frame);
|
|
21756
21759
|
frameRef.current = frame;
|
|
21757
21760
|
const video = Internals.useVideo();
|
|
21758
21761
|
const config = Internals.useUnsafeVideoConfig();
|
|
21759
|
-
const emitter =
|
|
21762
|
+
const emitter = useContext38(PlayerEventEmitterContext);
|
|
21760
21763
|
const lastFrame = (config?.durationInFrames ?? 1) - 1;
|
|
21761
21764
|
const isLastFrame = frame === lastFrame;
|
|
21762
21765
|
const isFirstFrame = frame === 0;
|
|
21763
21766
|
if (!emitter) {
|
|
21764
21767
|
throw new TypeError("Expected Player event emitter context");
|
|
21765
21768
|
}
|
|
21766
|
-
const bufferingContext =
|
|
21769
|
+
const bufferingContext = useContext38(Internals.BufferingContextReact);
|
|
21767
21770
|
if (!bufferingContext) {
|
|
21768
21771
|
throw new Error("Missing the buffering context. Most likely you have a Remotion version mismatch.");
|
|
21769
21772
|
}
|
|
@@ -24032,6 +24035,7 @@ var SharedPlayerContexts = ({
|
|
|
24032
24035
|
children: /* @__PURE__ */ jsx133(Internals.SharedAudioContextProvider, {
|
|
24033
24036
|
numberOfAudioTags: numberOfSharedAudioTags,
|
|
24034
24037
|
audioLatencyHint,
|
|
24038
|
+
component,
|
|
24035
24039
|
children: /* @__PURE__ */ jsx133(Internals.BufferingProvider, {
|
|
24036
24040
|
children
|
|
24037
24041
|
})
|
|
@@ -25357,7 +25361,7 @@ var UNDERLAY_RED = curriedTransparentize$1(0.9, RED);
|
|
|
25357
25361
|
var BLUE_TEXT = curriedDarken$1(0.3, "#42e9f5");
|
|
25358
25362
|
|
|
25359
25363
|
// src/components/homepage/layout/use-color-mode.tsx
|
|
25360
|
-
import React43, { useContext as
|
|
25364
|
+
import React43, { useContext as useContext43, useMemo as useMemo44 } from "react";
|
|
25361
25365
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
25362
25366
|
var Context = React43.createContext(undefined);
|
|
25363
25367
|
var ColorModeProvider = ({
|
|
@@ -25374,7 +25378,7 @@ var ColorModeProvider = ({
|
|
|
25374
25378
|
});
|
|
25375
25379
|
};
|
|
25376
25380
|
function useColorMode() {
|
|
25377
|
-
const context =
|
|
25381
|
+
const context = useContext43(Context);
|
|
25378
25382
|
if (context === null || context === undefined) {
|
|
25379
25383
|
throw new Error("ColorModeProvider");
|
|
25380
25384
|
}
|
|
@@ -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
|
|
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
|
|
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
|
|
236
|
+
import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext36 } from "react";
|
|
237
237
|
import {
|
|
238
238
|
forwardRef as forwardRef11,
|
|
239
|
-
useContext as
|
|
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.
|
|
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 =
|
|
5538
|
+
const sequenceContext = useContext33(SequenceContext);
|
|
5536
5539
|
const mediaStartsAt = useMediaStartsAt();
|
|
5537
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
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 =
|
|
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 =
|
|
5787
|
-
const { hidden } =
|
|
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 =
|
|
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 } =
|
|
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 } =
|
|
6674
|
+
const { durations, setDurations } = useContext36(DurationsContext);
|
|
6672
6675
|
if (typeof ref === "string") {
|
|
6673
6676
|
throw new Error("string refs are not supported");
|
|
6674
6677
|
}
|