@remotion/promo-pages 4.0.456 → 4.0.457
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 +132 -113
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.css +32 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +42672 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +20460 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/experts/experts-data.js +740 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/experts.js +8778 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +21875 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsGallery.js +20301 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsShow.css +2578 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsShow.js +40128 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsSubmit.css +2578 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/PromptsSubmit.js +40219 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/prompts/prompt-types.js +0 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/team.js +292 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.css +32 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +22044 -0
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +21306 -0
- package/dist/components/homepage/CommunityStatsItems.js +1 -1
- package/dist/components/homepage/FreePricing.js +11 -10
- package/dist/components/homepage/GitHubButton.js +1 -1
- package/dist/components/homepage/InfoTooltip.d.ts +6 -0
- package/dist/components/homepage/InfoTooltip.js +6 -0
- package/dist/components/team/TrustSection.js +1 -1
- package/dist/design.js +106 -89
- package/dist/experts.js +106 -89
- package/dist/homepage/Pricing.js +106 -89
- package/dist/prompts/PromptsGallery.js +106 -89
- package/dist/prompts/PromptsShow.js +140 -123
- package/dist/prompts/PromptsSubmit.js +142 -125
- package/dist/team.js +106 -89
- package/dist/template-modal-content.js +106 -89
- package/dist/templates.js +106 -89
- package/package.json +13 -13
package/dist/Homepage.js
CHANGED
|
@@ -861,8 +861,10 @@ import React14, { useCallback as useCallback6, useImperativeHandle, useRef as us
|
|
|
861
861
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
862
862
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
863
863
|
import {
|
|
864
|
+
createContext as createContext15,
|
|
864
865
|
forwardRef as forwardRef5,
|
|
865
866
|
useCallback as useCallback7,
|
|
867
|
+
useContext as useContext17,
|
|
866
868
|
useLayoutEffect as useLayoutEffect3,
|
|
867
869
|
useMemo as useMemo18,
|
|
868
870
|
useRef as useRef9,
|
|
@@ -871,9 +873,9 @@ import {
|
|
|
871
873
|
import React15, { forwardRef as forwardRef4, useMemo as useMemo17 } from "react";
|
|
872
874
|
import { useContext as useContext16, useMemo as useMemo16, useState as useState7 } from "react";
|
|
873
875
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
874
|
-
import { useContext as
|
|
876
|
+
import { useContext as useContext18, useLayoutEffect as useLayoutEffect5, useState as useState10 } from "react";
|
|
875
877
|
import {
|
|
876
|
-
createContext as
|
|
878
|
+
createContext as createContext16,
|
|
877
879
|
useCallback as useCallback8,
|
|
878
880
|
useImperativeHandle as useImperativeHandle3,
|
|
879
881
|
useLayoutEffect as useLayoutEffect4,
|
|
@@ -882,29 +884,29 @@ import {
|
|
|
882
884
|
useState as useState9
|
|
883
885
|
} from "react";
|
|
884
886
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
885
|
-
import { forwardRef as forwardRef8, useCallback as useCallback13, useContext as
|
|
886
|
-
import React17, { createContext as
|
|
887
|
+
import { forwardRef as forwardRef8, useCallback as useCallback13, useContext as useContext30 } from "react";
|
|
888
|
+
import React17, { createContext as createContext17, useMemo as useMemo20 } from "react";
|
|
887
889
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
888
|
-
import { useContext as
|
|
889
|
-
import { createContext as
|
|
890
|
+
import { useContext as useContext19 } from "react";
|
|
891
|
+
import { createContext as createContext18, useEffect as useEffect7, useState as useState11 } from "react";
|
|
890
892
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
891
|
-
import { createContext as
|
|
893
|
+
import { createContext as createContext19, useMemo as useMemo21, useReducer } from "react";
|
|
892
894
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
893
895
|
import React23, {
|
|
894
896
|
forwardRef as forwardRef6,
|
|
895
|
-
useContext as
|
|
897
|
+
useContext as useContext28,
|
|
896
898
|
useEffect as useEffect14,
|
|
897
899
|
useImperativeHandle as useImperativeHandle4,
|
|
898
900
|
useMemo as useMemo29,
|
|
899
901
|
useRef as useRef18,
|
|
900
902
|
useState as useState16
|
|
901
903
|
} from "react";
|
|
902
|
-
import { useContext as
|
|
904
|
+
import { useContext as useContext21, useLayoutEffect as useLayoutEffect6, useRef as useRef13 } from "react";
|
|
903
905
|
import React20, {
|
|
904
|
-
createContext as
|
|
906
|
+
createContext as createContext20,
|
|
905
907
|
createRef as createRef2,
|
|
906
908
|
useCallback as useCallback9,
|
|
907
|
-
useContext as
|
|
909
|
+
useContext as useContext20,
|
|
908
910
|
useMemo as useMemo23,
|
|
909
911
|
useRef as useRef11,
|
|
910
912
|
useState as useState12
|
|
@@ -912,20 +914,20 @@ import React20, {
|
|
|
912
914
|
import { useMemo as useMemo22 } from "react";
|
|
913
915
|
import { jsx as jsx20, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
914
916
|
import { useRef as useRef12 } from "react";
|
|
915
|
-
import { useContext as
|
|
916
|
-
import { useContext as
|
|
917
|
+
import { useContext as useContext23, useEffect as useEffect8, useMemo as useMemo24, useState as useState13 } from "react";
|
|
918
|
+
import { useContext as useContext22 } from "react";
|
|
917
919
|
import {
|
|
918
920
|
useCallback as useCallback12,
|
|
919
|
-
useContext as
|
|
921
|
+
useContext as useContext26,
|
|
920
922
|
useEffect as useEffect12,
|
|
921
923
|
useLayoutEffect as useLayoutEffect8,
|
|
922
924
|
useRef as useRef17
|
|
923
925
|
} from "react";
|
|
924
926
|
import { useCallback as useCallback11, useMemo as useMemo27, useRef as useRef15 } from "react";
|
|
925
|
-
import { useContext as
|
|
927
|
+
import { useContext as useContext25, useMemo as useMemo26 } from "react";
|
|
926
928
|
import React21, {
|
|
927
929
|
useCallback as useCallback10,
|
|
928
|
-
useContext as
|
|
930
|
+
useContext as useContext24,
|
|
929
931
|
useEffect as useEffect9,
|
|
930
932
|
useLayoutEffect as useLayoutEffect7,
|
|
931
933
|
useMemo as useMemo25,
|
|
@@ -937,11 +939,11 @@ import React22 from "react";
|
|
|
937
939
|
import { useEffect as useEffect10, useState as useState15 } from "react";
|
|
938
940
|
import { useEffect as useEffect11, useRef as useRef16 } from "react";
|
|
939
941
|
import { useEffect as useEffect13 } from "react";
|
|
940
|
-
import { createContext as
|
|
942
|
+
import { createContext as createContext21, useContext as useContext27, useMemo as useMemo28 } from "react";
|
|
941
943
|
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
942
944
|
import {
|
|
943
945
|
forwardRef as forwardRef7,
|
|
944
|
-
useContext as
|
|
946
|
+
useContext as useContext29,
|
|
945
947
|
useEffect as useEffect15,
|
|
946
948
|
useImperativeHandle as useImperativeHandle5,
|
|
947
949
|
useLayoutEffect as useLayoutEffect9,
|
|
@@ -954,7 +956,7 @@ import { forwardRef as forwardRef9, useCallback as useCallback14, useState as us
|
|
|
954
956
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
955
957
|
import {
|
|
956
958
|
useCallback as useCallback15,
|
|
957
|
-
useContext as
|
|
959
|
+
useContext as useContext31,
|
|
958
960
|
useImperativeHandle as useImperativeHandle6,
|
|
959
961
|
useLayoutEffect as useLayoutEffect10,
|
|
960
962
|
useRef as useRef20,
|
|
@@ -973,16 +975,16 @@ import {
|
|
|
973
975
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
974
976
|
import React29 from "react";
|
|
975
977
|
import { useMemo as useMemo33 } from "react";
|
|
976
|
-
import { createContext as
|
|
978
|
+
import { createContext as createContext22, useContext as useContext32, useMemo as useMemo32 } from "react";
|
|
977
979
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
978
980
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
979
981
|
import React31 from "react";
|
|
980
|
-
import React32, { createContext as
|
|
981
|
-
import { useContext as
|
|
982
|
+
import React32, { createContext as createContext23 } from "react";
|
|
983
|
+
import { useContext as useContext33 } from "react";
|
|
982
984
|
import { useCallback as useCallback18 } from "react";
|
|
983
985
|
import {
|
|
984
986
|
useCallback as useCallback17,
|
|
985
|
-
useContext as
|
|
987
|
+
useContext as useContext34,
|
|
986
988
|
useEffect as useEffect16,
|
|
987
989
|
useLayoutEffect as useLayoutEffect11,
|
|
988
990
|
useMemo as useMemo34,
|
|
@@ -991,7 +993,7 @@ import {
|
|
|
991
993
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
992
994
|
import React34, {
|
|
993
995
|
forwardRef as forwardRef10,
|
|
994
|
-
useContext as
|
|
996
|
+
useContext as useContext35,
|
|
995
997
|
useEffect as useEffect18,
|
|
996
998
|
useImperativeHandle as useImperativeHandle8,
|
|
997
999
|
useMemo as useMemo35,
|
|
@@ -1005,14 +1007,14 @@ import React36, { useMemo as useMemo36 } from "react";
|
|
|
1005
1007
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1006
1008
|
import { Children, forwardRef as forwardRef11, useMemo as useMemo37 } from "react";
|
|
1007
1009
|
import React37 from "react";
|
|
1008
|
-
import React38, { createContext as
|
|
1010
|
+
import React38, { createContext as createContext24 } from "react";
|
|
1009
1011
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1010
1012
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1011
1013
|
import React40 from "react";
|
|
1012
|
-
import { forwardRef as forwardRef13, useCallback as useCallback19, useContext as
|
|
1014
|
+
import { forwardRef as forwardRef13, useCallback as useCallback19, useContext as useContext37 } from "react";
|
|
1013
1015
|
import {
|
|
1014
1016
|
forwardRef as forwardRef12,
|
|
1015
|
-
useContext as
|
|
1017
|
+
useContext as useContext36,
|
|
1016
1018
|
useEffect as useEffect19,
|
|
1017
1019
|
useImperativeHandle as useImperativeHandle9,
|
|
1018
1020
|
useLayoutEffect as useLayoutEffect12,
|
|
@@ -2534,7 +2536,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
|
2534
2536
|
var addSequenceStackTraces = (component) => {
|
|
2535
2537
|
componentsToAddStacksTo.push(component);
|
|
2536
2538
|
};
|
|
2537
|
-
var VERSION = "4.0.
|
|
2539
|
+
var VERSION = "4.0.457";
|
|
2538
2540
|
var checkMultipleRemotionVersions = () => {
|
|
2539
2541
|
if (typeof globalThis === "undefined") {
|
|
2540
2542
|
return;
|
|
@@ -3625,6 +3627,7 @@ var defaultOnPaint = ({
|
|
|
3625
3627
|
const transform = ctx.drawElementImage(elementImage, 0, 0);
|
|
3626
3628
|
element.style.transform = transform.toString();
|
|
3627
3629
|
};
|
|
3630
|
+
var HtmlInCanvasAncestorContext = createContext15(false);
|
|
3628
3631
|
var htmlInCanvasSchema = {
|
|
3629
3632
|
"style.translate": {
|
|
3630
3633
|
type: "translate",
|
|
@@ -3667,6 +3670,7 @@ var HtmlInCanvasInner = forwardRef5(({
|
|
|
3667
3670
|
durationInFrames,
|
|
3668
3671
|
...sequenceProps
|
|
3669
3672
|
}, ref) => {
|
|
3673
|
+
const isInsideAncestorHtmlInCanvas = useContext17(HtmlInCanvasAncestorContext);
|
|
3670
3674
|
assertHtmlInCanvasDimensions(width, height);
|
|
3671
3675
|
const { continueRender: continueRender2, cancelRender: cancelRender2 } = useDelayRender();
|
|
3672
3676
|
if (!isHtmlInCanvasSupported()) {
|
|
@@ -3809,20 +3813,26 @@ var HtmlInCanvasInner = forwardRef5(({
|
|
|
3809
3813
|
...style
|
|
3810
3814
|
};
|
|
3811
3815
|
}, [width, height, style]);
|
|
3816
|
+
if (isInsideAncestorHtmlInCanvas) {
|
|
3817
|
+
throw new Error("<HtmlInCanvas> effects cannot be nested together. Chrome will only display the outer effect. Consider merging the effects into one if you can.");
|
|
3818
|
+
}
|
|
3812
3819
|
return /* @__PURE__ */ jsx15(Sequence, {
|
|
3813
3820
|
durationInFrames: resolvedDuration,
|
|
3814
3821
|
name: "<HtmlInCanvas>",
|
|
3815
3822
|
_experimentalControls: controls,
|
|
3816
3823
|
layout: "none",
|
|
3817
3824
|
...sequenceProps,
|
|
3818
|
-
children: /* @__PURE__ */ jsx15(
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3825
|
+
children: /* @__PURE__ */ jsx15(HtmlInCanvasAncestorContext.Provider, {
|
|
3826
|
+
value: true,
|
|
3827
|
+
children: /* @__PURE__ */ jsx15("canvas", {
|
|
3828
|
+
ref: setLayoutCanvasRef,
|
|
3829
|
+
width,
|
|
3830
|
+
height,
|
|
3831
|
+
children: /* @__PURE__ */ jsx15("div", {
|
|
3832
|
+
ref: divRef,
|
|
3833
|
+
style: innerStyle,
|
|
3834
|
+
children
|
|
3835
|
+
})
|
|
3826
3836
|
})
|
|
3827
3837
|
})
|
|
3828
3838
|
});
|
|
@@ -3830,7 +3840,7 @@ var HtmlInCanvasInner = forwardRef5(({
|
|
|
3830
3840
|
HtmlInCanvasInner.displayName = "HtmlInCanvas";
|
|
3831
3841
|
var HtmlInCanvasWrapped = wrapInSchema(HtmlInCanvasInner, htmlInCanvasSchema);
|
|
3832
3842
|
var HtmlInCanvas = Object.assign(HtmlInCanvasWrapped, {
|
|
3833
|
-
isHtmlInCanvasSupported
|
|
3843
|
+
isSupported: isHtmlInCanvasSupported
|
|
3834
3844
|
});
|
|
3835
3845
|
HtmlInCanvas.displayName = "HtmlInCanvas";
|
|
3836
3846
|
addSequenceStackTraces(HtmlInCanvas);
|
|
@@ -3863,7 +3873,7 @@ var validateRenderAsset = (artifact) => {
|
|
|
3863
3873
|
}
|
|
3864
3874
|
validateContent(artifact.content);
|
|
3865
3875
|
};
|
|
3866
|
-
var RenderAssetManager =
|
|
3876
|
+
var RenderAssetManager = createContext16({
|
|
3867
3877
|
registerRenderAsset: () => {
|
|
3868
3878
|
return;
|
|
3869
3879
|
},
|
|
@@ -3920,7 +3930,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
|
|
|
3920
3930
|
};
|
|
3921
3931
|
var ArtifactThumbnail = Symbol("Thumbnail");
|
|
3922
3932
|
var Artifact = ({ filename, content, downloadBehavior }) => {
|
|
3923
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
3933
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext18(RenderAssetManager);
|
|
3924
3934
|
const env = useRemotionEnvironment();
|
|
3925
3935
|
const frame = useCurrentFrame();
|
|
3926
3936
|
const [id] = useState10(() => {
|
|
@@ -4001,7 +4011,7 @@ var calculateMediaDuration = ({
|
|
|
4001
4011
|
const actualDuration = duration / playbackRate;
|
|
4002
4012
|
return Math.floor(actualDuration);
|
|
4003
4013
|
};
|
|
4004
|
-
var LoopContext =
|
|
4014
|
+
var LoopContext = createContext17(null);
|
|
4005
4015
|
var useLoop = () => {
|
|
4006
4016
|
return React17.useContext(LoopContext);
|
|
4007
4017
|
};
|
|
@@ -4072,7 +4082,7 @@ var playbackLogging = ({
|
|
|
4072
4082
|
const tags = [mountTime ? Date.now() - mountTime + "ms " : null, tag].filter(Boolean).join(" ");
|
|
4073
4083
|
Log.trace({ logLevel, tag: null }, `[${tags}]`, message);
|
|
4074
4084
|
};
|
|
4075
|
-
var PreloadContext =
|
|
4085
|
+
var PreloadContext = createContext18({});
|
|
4076
4086
|
var preloads = {};
|
|
4077
4087
|
var updaters = [];
|
|
4078
4088
|
var setPreloads = (updater) => {
|
|
@@ -4110,7 +4120,7 @@ var getSrcWithoutHash = (src) => {
|
|
|
4110
4120
|
return src.slice(0, hashIndex);
|
|
4111
4121
|
};
|
|
4112
4122
|
var usePreload = (src) => {
|
|
4113
|
-
const preloads2 =
|
|
4123
|
+
const preloads2 = useContext19(PreloadContext);
|
|
4114
4124
|
const hashFragmentIndex = removeAndGetHashFragment(src);
|
|
4115
4125
|
const withoutHashFragment = getSrcWithoutHash(src);
|
|
4116
4126
|
if (!preloads2[withoutHashFragment]) {
|
|
@@ -4393,7 +4403,7 @@ var durationReducer = (state, action) => {
|
|
|
4393
4403
|
return state;
|
|
4394
4404
|
}
|
|
4395
4405
|
};
|
|
4396
|
-
var DurationsContext =
|
|
4406
|
+
var DurationsContext = createContext19({
|
|
4397
4407
|
durations: {},
|
|
4398
4408
|
setDurations: () => {
|
|
4399
4409
|
throw new Error("context missing");
|
|
@@ -4604,8 +4614,8 @@ var didPropChange = (key, newProp, prevProp) => {
|
|
|
4604
4614
|
}
|
|
4605
4615
|
return true;
|
|
4606
4616
|
};
|
|
4607
|
-
var SharedAudioContext =
|
|
4608
|
-
var SharedAudioTagsContext =
|
|
4617
|
+
var SharedAudioContext = createContext20(null);
|
|
4618
|
+
var SharedAudioTagsContext = createContext20(null);
|
|
4609
4619
|
var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled }) => {
|
|
4610
4620
|
const logLevel = useLogLevel();
|
|
4611
4621
|
const ctxAndGain = useSingletonAudioContext({
|
|
@@ -4689,16 +4699,23 @@ var SharedAudioContextProvider = ({ children, audioLatencyHint, audioEnabled })
|
|
|
4689
4699
|
return Promise.resolve();
|
|
4690
4700
|
}
|
|
4691
4701
|
audioContextIsPlayingEventually.current = true;
|
|
4692
|
-
|
|
4702
|
+
const resumePromise = ctxAndGain.audioContext.resume();
|
|
4703
|
+
isResuming.current = new Promise((resolve) => {
|
|
4704
|
+
waitUntilActuallyResumed(ctxAndGain.audioContext, logLevel).then(resolve);
|
|
4705
|
+
resumePromise.catch((err) => {
|
|
4706
|
+
Log.warn({ logLevel, tag: "audio" }, "AudioContext resume rejected, continuing without audio sync", err);
|
|
4707
|
+
resolve();
|
|
4708
|
+
});
|
|
4709
|
+
}).finally(() => {
|
|
4693
4710
|
isResuming.current = null;
|
|
4694
4711
|
});
|
|
4695
4712
|
ctxAndGain.gainNode.gain.cancelScheduledValues(ctxAndGain.audioContext.currentTime);
|
|
4696
4713
|
ctxAndGain.gainNode?.gain.setValueAtTime(0, ctxAndGain.audioContext.currentTime);
|
|
4697
4714
|
ctxAndGain.gainNode?.gain.linearRampToValueAtTime(1, ctxAndGain.audioContext.currentTime + 0.03);
|
|
4698
|
-
return
|
|
4715
|
+
return resumePromise.then(() => {
|
|
4699
4716
|
nodesToResume.current.forEach((r, node) => node.start(r.scheduledTime, r.offset, r.duration));
|
|
4700
4717
|
nodesToResume.current.clear();
|
|
4701
|
-
});
|
|
4718
|
+
}).catch(() => {});
|
|
4702
4719
|
}, [ctxAndGain, logLevel]);
|
|
4703
4720
|
const getIsResumingAudioContext = useCallback9(() => {
|
|
4704
4721
|
return isResuming.current;
|
|
@@ -4749,7 +4766,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
4749
4766
|
const logLevel = useLogLevel();
|
|
4750
4767
|
const mountTime = useMountTime();
|
|
4751
4768
|
const env = useRemotionEnvironment();
|
|
4752
|
-
const audioCtx =
|
|
4769
|
+
const audioCtx = useContext20(SharedAudioContext);
|
|
4753
4770
|
const audioContext = audioCtx?.audioContext ?? null;
|
|
4754
4771
|
const resume = audioCtx?.resume;
|
|
4755
4772
|
const refs = useMemo23(() => {
|
|
@@ -4924,8 +4941,8 @@ var useSharedAudio = ({
|
|
|
4924
4941
|
premounting,
|
|
4925
4942
|
postmounting
|
|
4926
4943
|
}) => {
|
|
4927
|
-
const audioCtx =
|
|
4928
|
-
const tagsCtx =
|
|
4944
|
+
const audioCtx = useContext20(SharedAudioContext);
|
|
4945
|
+
const tagsCtx = useContext20(SharedAudioTagsContext);
|
|
4929
4946
|
const [elem] = useState12(() => {
|
|
4930
4947
|
if (tagsCtx && tagsCtx.numberOfAudioTags > 0) {
|
|
4931
4948
|
return tagsCtx.registerAudio({ aud, audioId, premounting, postmounting });
|
|
@@ -5104,7 +5121,7 @@ var useVolume = ({
|
|
|
5104
5121
|
const audioStuffRef = useRef13(null);
|
|
5105
5122
|
const currentVolumeRef = useRef13(volume);
|
|
5106
5123
|
currentVolumeRef.current = volume;
|
|
5107
|
-
const sharedAudioContext =
|
|
5124
|
+
const sharedAudioContext = useContext21(SharedAudioContext);
|
|
5108
5125
|
if (!sharedAudioContext) {
|
|
5109
5126
|
throw new Error("useAmplification must be used within a SharedAudioContext");
|
|
5110
5127
|
}
|
|
@@ -5169,7 +5186,7 @@ var useVolume = ({
|
|
|
5169
5186
|
return audioStuffRef;
|
|
5170
5187
|
};
|
|
5171
5188
|
var useMediaStartsAt = () => {
|
|
5172
|
-
const parentSequence =
|
|
5189
|
+
const parentSequence = useContext22(SequenceContext);
|
|
5173
5190
|
const startsAt = Math.min(0, parentSequence?.relativeFrom ?? 0);
|
|
5174
5191
|
return startsAt;
|
|
5175
5192
|
};
|
|
@@ -5258,7 +5275,7 @@ var useBasicMediaInTimeline = ({
|
|
|
5258
5275
|
if (!src) {
|
|
5259
5276
|
throw new Error("No src passed");
|
|
5260
5277
|
}
|
|
5261
|
-
const parentSequence =
|
|
5278
|
+
const parentSequence = useContext23(SequenceContext);
|
|
5262
5279
|
const [initialVolume] = useState13(() => volume);
|
|
5263
5280
|
const duration = getTimelineDuration({
|
|
5264
5281
|
compositionDurationInFrames: sequenceDurationInFrames,
|
|
@@ -5325,8 +5342,8 @@ var useImageInTimeline = ({
|
|
|
5325
5342
|
loopDisplay,
|
|
5326
5343
|
controls
|
|
5327
5344
|
}) => {
|
|
5328
|
-
const parentSequence =
|
|
5329
|
-
const { registerSequence, unregisterSequence } =
|
|
5345
|
+
const parentSequence = useContext23(SequenceContext);
|
|
5346
|
+
const { registerSequence, unregisterSequence } = useContext23(SequenceManager);
|
|
5330
5347
|
const { durationInFrames } = useVideoConfig();
|
|
5331
5348
|
const mediaStartsAt = useMediaStartsAt();
|
|
5332
5349
|
const { duration, nonce, rootId, finalDisplayName } = useBasicMediaInTimeline({
|
|
@@ -5407,9 +5424,9 @@ var useMediaInTimeline = ({
|
|
|
5407
5424
|
postmountDisplay,
|
|
5408
5425
|
loopDisplay
|
|
5409
5426
|
}) => {
|
|
5410
|
-
const parentSequence =
|
|
5427
|
+
const parentSequence = useContext23(SequenceContext);
|
|
5411
5428
|
const startsAt = useMediaStartsAt();
|
|
5412
|
-
const { registerSequence, unregisterSequence } =
|
|
5429
|
+
const { registerSequence, unregisterSequence } = useContext23(SequenceManager);
|
|
5413
5430
|
const { durationInFrames } = useVideoConfig();
|
|
5414
5431
|
const mediaStartsAt = useMediaStartsAt();
|
|
5415
5432
|
const { volumes, duration, doesVolumeChange, nonce, rootId, finalDisplayName } = useBasicMediaInTimeline({
|
|
@@ -5564,7 +5581,7 @@ var useBufferManager = (logLevel, mountTime) => {
|
|
|
5564
5581
|
};
|
|
5565
5582
|
var BufferingContextReact = React21.createContext(null);
|
|
5566
5583
|
var BufferingProvider = ({ children }) => {
|
|
5567
|
-
const { logLevel, mountTime } =
|
|
5584
|
+
const { logLevel, mountTime } = useContext24(LogLevelContext);
|
|
5568
5585
|
const bufferManager = useBufferManager(logLevel ?? "info", mountTime);
|
|
5569
5586
|
return /* @__PURE__ */ jsx21(BufferingContextReact.Provider, {
|
|
5570
5587
|
value: bufferManager,
|
|
@@ -5594,7 +5611,7 @@ var useIsPlayerBuffering = (bufferManager) => {
|
|
|
5594
5611
|
return isBuffering;
|
|
5595
5612
|
};
|
|
5596
5613
|
var useBufferState = () => {
|
|
5597
|
-
const buffer =
|
|
5614
|
+
const buffer = useContext25(BufferingContextReact);
|
|
5598
5615
|
const addBlock = buffer ? buffer.addBlock : null;
|
|
5599
5616
|
return useMemo26(() => ({
|
|
5600
5617
|
delayPlayback: () => {
|
|
@@ -6099,7 +6116,7 @@ var useMediaPlayback = ({
|
|
|
6099
6116
|
const frame = useCurrentFrame();
|
|
6100
6117
|
const absoluteFrame = useTimelinePosition();
|
|
6101
6118
|
const [playing] = usePlayingState();
|
|
6102
|
-
const buffering =
|
|
6119
|
+
const buffering = useContext26(BufferingContextReact);
|
|
6103
6120
|
const { fps } = useVideoConfig();
|
|
6104
6121
|
const mediaStartsAt = useMediaStartsAt();
|
|
6105
6122
|
const lastSeekDueToShift = useRef17(null);
|
|
@@ -6374,11 +6391,11 @@ var useMediaTag = ({
|
|
|
6374
6391
|
env.isPlayer
|
|
6375
6392
|
]);
|
|
6376
6393
|
};
|
|
6377
|
-
var MediaVolumeContext =
|
|
6394
|
+
var MediaVolumeContext = createContext21({
|
|
6378
6395
|
mediaMuted: false,
|
|
6379
6396
|
mediaVolume: 1
|
|
6380
6397
|
});
|
|
6381
|
-
var SetMediaVolumeContext =
|
|
6398
|
+
var SetMediaVolumeContext = createContext21({
|
|
6382
6399
|
setMediaMuted: () => {
|
|
6383
6400
|
throw new Error("default");
|
|
6384
6401
|
},
|
|
@@ -6387,15 +6404,15 @@ var SetMediaVolumeContext = createContext20({
|
|
|
6387
6404
|
}
|
|
6388
6405
|
});
|
|
6389
6406
|
var useMediaVolumeState = () => {
|
|
6390
|
-
const { mediaVolume } =
|
|
6391
|
-
const { setMediaVolume } =
|
|
6407
|
+
const { mediaVolume } = useContext27(MediaVolumeContext);
|
|
6408
|
+
const { setMediaVolume } = useContext27(SetMediaVolumeContext);
|
|
6392
6409
|
return useMemo28(() => {
|
|
6393
6410
|
return [mediaVolume, setMediaVolume];
|
|
6394
6411
|
}, [mediaVolume, setMediaVolume]);
|
|
6395
6412
|
};
|
|
6396
6413
|
var useMediaMutedState = () => {
|
|
6397
|
-
const { mediaMuted } =
|
|
6398
|
-
const { setMediaMuted } =
|
|
6414
|
+
const { mediaMuted } = useContext27(MediaVolumeContext);
|
|
6415
|
+
const { setMediaMuted } = useContext27(SetMediaVolumeContext);
|
|
6399
6416
|
return useMemo28(() => {
|
|
6400
6417
|
return [mediaMuted, setMediaMuted];
|
|
6401
6418
|
}, [mediaMuted, setMediaMuted]);
|
|
@@ -6445,12 +6462,12 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
6445
6462
|
const [mediaVolume] = useMediaVolumeState();
|
|
6446
6463
|
const [mediaMuted] = useMediaMutedState();
|
|
6447
6464
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
6448
|
-
const { hidden } =
|
|
6465
|
+
const { hidden } = useContext28(SequenceVisibilityToggleContext);
|
|
6449
6466
|
if (!src) {
|
|
6450
6467
|
throw new TypeError("No 'src' was passed to <Html5Audio>.");
|
|
6451
6468
|
}
|
|
6452
6469
|
const preloadedSrc = usePreload(src);
|
|
6453
|
-
const sequenceContext =
|
|
6470
|
+
const sequenceContext = useContext28(SequenceContext);
|
|
6454
6471
|
const [timelineId] = useState16(() => String(Math.random()));
|
|
6455
6472
|
const isSequenceHidden = hidden[timelineId] ?? false;
|
|
6456
6473
|
const userPreferredVolume = evaluateVolume({
|
|
@@ -6605,8 +6622,8 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
6605
6622
|
const absoluteFrame = useTimelinePosition();
|
|
6606
6623
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
6607
6624
|
const frame = useCurrentFrame();
|
|
6608
|
-
const sequenceContext =
|
|
6609
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
6625
|
+
const sequenceContext = useContext29(SequenceContext);
|
|
6626
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext29(RenderAssetManager);
|
|
6610
6627
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
6611
6628
|
const id = useMemo30(() => `audio-${random(props.src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}`, [
|
|
6612
6629
|
props.src,
|
|
@@ -6715,7 +6732,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
|
|
|
6715
6732
|
};
|
|
6716
6733
|
var AudioForRendering = forwardRef7(AudioForRenderingRefForwardingFunction);
|
|
6717
6734
|
var AudioRefForwardingFunction = (props, ref) => {
|
|
6718
|
-
const audioTagsContext =
|
|
6735
|
+
const audioTagsContext = useContext30(SharedAudioTagsContext);
|
|
6719
6736
|
const {
|
|
6720
6737
|
startFrom,
|
|
6721
6738
|
endAt,
|
|
@@ -6734,7 +6751,7 @@ var AudioRefForwardingFunction = (props, ref) => {
|
|
|
6734
6751
|
if (environment.isClientSideRendering) {
|
|
6735
6752
|
throw new Error("<Html5Audio> is not supported in @remotion/web-renderer. Use <Audio> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
|
|
6736
6753
|
}
|
|
6737
|
-
const { durations, setDurations } =
|
|
6754
|
+
const { durations, setDurations } = useContext30(DurationsContext);
|
|
6738
6755
|
if (typeof props.src !== "string") {
|
|
6739
6756
|
throw new TypeError(`The \`<Html5Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(props.src)} instead.`);
|
|
6740
6757
|
}
|
|
@@ -6922,7 +6939,7 @@ var ImgInner = ({
|
|
|
6922
6939
|
const imageRef = useRef20(null);
|
|
6923
6940
|
const errors = useRef20({});
|
|
6924
6941
|
const { delayPlayback } = useBufferState();
|
|
6925
|
-
const sequenceContext =
|
|
6942
|
+
const sequenceContext = useContext31(SequenceContext);
|
|
6926
6943
|
const [timelineId] = useState18(() => String(Math.random()));
|
|
6927
6944
|
if (!src) {
|
|
6928
6945
|
throw new Error('No "src" prop was passed to <Img>.');
|
|
@@ -7242,9 +7259,9 @@ var waitForRoot = (fn) => {
|
|
|
7242
7259
|
listeners = listeners.filter((l) => l !== fn);
|
|
7243
7260
|
};
|
|
7244
7261
|
};
|
|
7245
|
-
var MediaEnabledContext =
|
|
7262
|
+
var MediaEnabledContext = createContext22(null);
|
|
7246
7263
|
var useVideoEnabled = () => {
|
|
7247
|
-
const context =
|
|
7264
|
+
const context = useContext32(MediaEnabledContext);
|
|
7248
7265
|
if (!context) {
|
|
7249
7266
|
return window.remotion_videoEnabled;
|
|
7250
7267
|
}
|
|
@@ -7254,7 +7271,7 @@ var useVideoEnabled = () => {
|
|
|
7254
7271
|
return context.videoEnabled;
|
|
7255
7272
|
};
|
|
7256
7273
|
var useAudioEnabled = () => {
|
|
7257
|
-
const context =
|
|
7274
|
+
const context = useContext32(MediaEnabledContext);
|
|
7258
7275
|
if (!context) {
|
|
7259
7276
|
return window.remotion_audioEnabled;
|
|
7260
7277
|
}
|
|
@@ -7524,7 +7541,7 @@ var setupEnvVariables = () => {
|
|
|
7524
7541
|
});
|
|
7525
7542
|
};
|
|
7526
7543
|
var CurrentScaleContext = React32.createContext(null);
|
|
7527
|
-
var PreviewSizeContext =
|
|
7544
|
+
var PreviewSizeContext = createContext23({
|
|
7528
7545
|
setSize: () => {
|
|
7529
7546
|
return;
|
|
7530
7547
|
},
|
|
@@ -7548,8 +7565,8 @@ var calculateScale = ({
|
|
|
7548
7565
|
return Number(previewSize);
|
|
7549
7566
|
};
|
|
7550
7567
|
var useSequenceControlOverride = (key) => {
|
|
7551
|
-
const seqContext =
|
|
7552
|
-
const { dragOverrides: overrides } =
|
|
7568
|
+
const seqContext = useContext33(SequenceContext);
|
|
7569
|
+
const { dragOverrides: overrides } = useContext33(VisualModeOverridesContext);
|
|
7553
7570
|
if (!seqContext) {
|
|
7554
7571
|
return;
|
|
7555
7572
|
}
|
|
@@ -7586,9 +7603,9 @@ var OffthreadVideoForRendering = ({
|
|
|
7586
7603
|
const frame = useCurrentFrame();
|
|
7587
7604
|
const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
|
|
7588
7605
|
const videoConfig = useUnsafeVideoConfig();
|
|
7589
|
-
const sequenceContext =
|
|
7606
|
+
const sequenceContext = useContext34(SequenceContext);
|
|
7590
7607
|
const mediaStartsAt = useMediaStartsAt();
|
|
7591
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
7608
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext34(RenderAssetManager);
|
|
7592
7609
|
if (!src) {
|
|
7593
7610
|
throw new TypeError("No `src` was passed to <OffthreadVideo>.");
|
|
7594
7611
|
}
|
|
@@ -7800,7 +7817,7 @@ class MediaPlaybackError extends Error {
|
|
|
7800
7817
|
}
|
|
7801
7818
|
}
|
|
7802
7819
|
var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
7803
|
-
const context =
|
|
7820
|
+
const context = useContext35(SharedAudioContext);
|
|
7804
7821
|
if (!context) {
|
|
7805
7822
|
throw new Error("SharedAudioContext not found");
|
|
7806
7823
|
}
|
|
@@ -7856,8 +7873,8 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
7856
7873
|
}
|
|
7857
7874
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
7858
7875
|
const { fps, durationInFrames } = useVideoConfig();
|
|
7859
|
-
const parentSequence =
|
|
7860
|
-
const { hidden } =
|
|
7876
|
+
const parentSequence = useContext35(SequenceContext);
|
|
7877
|
+
const { hidden } = useContext35(SequenceVisibilityToggleContext);
|
|
7861
7878
|
const logLevel = useLogLevel();
|
|
7862
7879
|
const mountTime = useMountTime();
|
|
7863
7880
|
const [timelineId] = useState21(() => String(Math.random()));
|
|
@@ -8415,7 +8432,7 @@ var flattenChildren = (children) => {
|
|
|
8415
8432
|
return flatChildren;
|
|
8416
8433
|
}, []);
|
|
8417
8434
|
};
|
|
8418
|
-
var IsInsideSeriesContext =
|
|
8435
|
+
var IsInsideSeriesContext = createContext24(false);
|
|
8419
8436
|
var IsInsideSeriesContainer = ({ children }) => {
|
|
8420
8437
|
return /* @__PURE__ */ jsx34(IsInsideSeriesContext.Provider, {
|
|
8421
8438
|
value: true,
|
|
@@ -8973,13 +8990,13 @@ var VideoForRenderingForwardFunction = ({
|
|
|
8973
8990
|
const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
8974
8991
|
const videoConfig = useUnsafeVideoConfig();
|
|
8975
8992
|
const videoRef = useRef23(null);
|
|
8976
|
-
const sequenceContext =
|
|
8993
|
+
const sequenceContext = useContext36(SequenceContext);
|
|
8977
8994
|
const mediaStartsAt = useMediaStartsAt();
|
|
8978
8995
|
const environment = useRemotionEnvironment();
|
|
8979
8996
|
const logLevel = useLogLevel();
|
|
8980
8997
|
const mountTime = useMountTime();
|
|
8981
8998
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
8982
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
8999
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext36(RenderAssetManager);
|
|
8983
9000
|
const id = useMemo38(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
|
|
8984
9001
|
props2.src,
|
|
8985
9002
|
sequenceContext?.cumulatedFrom,
|
|
@@ -9189,7 +9206,7 @@ var VideoForwardingFunction = (props2, ref) => {
|
|
|
9189
9206
|
if (environment.isClientSideRendering) {
|
|
9190
9207
|
throw new Error("<Html5Video> is not supported in @remotion/web-renderer. Use <Video> from @remotion/media instead. See https://remotion.dev/docs/client-side-rendering/limitations");
|
|
9191
9208
|
}
|
|
9192
|
-
const { durations, setDurations } =
|
|
9209
|
+
const { durations, setDurations } = useContext37(DurationsContext);
|
|
9193
9210
|
if (typeof ref === "string") {
|
|
9194
9211
|
throw new Error("string refs are not supported");
|
|
9195
9212
|
}
|
|
@@ -24472,14 +24489,14 @@ import { jsx as jsx56, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
|
24472
24489
|
import { jsx as jsx214, jsxs as jsxs24, Fragment as Fragment11 } from "react/jsx-runtime";
|
|
24473
24490
|
import React56 from "react";
|
|
24474
24491
|
import { useContext as useContext210, useEffect as useEffect42, useState as useState40 } from "react";
|
|
24475
|
-
import { useContext as
|
|
24492
|
+
import { useContext as useContext44, useLayoutEffect as useLayoutEffect17 } from "react";
|
|
24476
24493
|
import { jsx as jsx313 } from "react/jsx-runtime";
|
|
24477
24494
|
import { useCallback as useCallback34, useRef as useRef42 } from "react";
|
|
24478
24495
|
import { useEffect as useEffect24, useState as useState24 } from "react";
|
|
24479
24496
|
import { useLayoutEffect as useLayoutEffect23 } from "react";
|
|
24480
|
-
import { useContext as
|
|
24497
|
+
import { useContext as useContext45, useEffect as useEffect52, useRef as useRef52 } from "react";
|
|
24481
24498
|
import { useEffect as useEffect310, useRef as useRef310 } from "react";
|
|
24482
|
-
import { useCallback as useCallback24, useContext as
|
|
24499
|
+
import { useCallback as useCallback24, useContext as useContext39, useMemo as useMemo52, useRef as useRef26, useState as useState310 } from "react";
|
|
24483
24500
|
import { useEffect as useEffect43, useRef as useRef43 } from "react";
|
|
24484
24501
|
import { useCallback as useCallback35, useEffect as useEffect62, useMemo as useMemo212, useState as useState42 } from "react";
|
|
24485
24502
|
import {
|
|
@@ -25765,7 +25782,7 @@ class ThumbnailEmitter {
|
|
|
25765
25782
|
};
|
|
25766
25783
|
}
|
|
25767
25784
|
var useBufferStateEmitter = (emitter) => {
|
|
25768
|
-
const bufferManager =
|
|
25785
|
+
const bufferManager = useContext44(Internals.BufferingContextReact);
|
|
25769
25786
|
if (!bufferManager) {
|
|
25770
25787
|
throw new Error("BufferingContextReact not found");
|
|
25771
25788
|
}
|
|
@@ -25848,21 +25865,21 @@ var usePlayer = () => {
|
|
|
25848
25865
|
const playStart = useRef26(frame);
|
|
25849
25866
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
25850
25867
|
const setTimelinePosition = Internals.Timeline.useTimelineSetFrame();
|
|
25851
|
-
const audioContext =
|
|
25852
|
-
const audioTagsContext =
|
|
25868
|
+
const audioContext = useContext39(Internals.SharedAudioContext);
|
|
25869
|
+
const audioTagsContext = useContext39(Internals.SharedAudioTagsContext);
|
|
25853
25870
|
const { audioAndVideoTags } = Internals.useTimelineContext();
|
|
25854
25871
|
const frameRef = useRef26(frame);
|
|
25855
25872
|
frameRef.current = frame;
|
|
25856
25873
|
const video = Internals.useVideo();
|
|
25857
25874
|
const config = Internals.useUnsafeVideoConfig();
|
|
25858
|
-
const emitter =
|
|
25875
|
+
const emitter = useContext39(PlayerEventEmitterContext);
|
|
25859
25876
|
const lastFrame = (config?.durationInFrames ?? 1) - 1;
|
|
25860
25877
|
const isLastFrame = frame === lastFrame;
|
|
25861
25878
|
const isFirstFrame = frame === 0;
|
|
25862
25879
|
if (!emitter) {
|
|
25863
25880
|
throw new TypeError("Expected Player event emitter context");
|
|
25864
25881
|
}
|
|
25865
|
-
const bufferingContext =
|
|
25882
|
+
const bufferingContext = useContext39(Internals.BufferingContextReact);
|
|
25866
25883
|
if (!bufferingContext) {
|
|
25867
25884
|
throw new Error("Missing the buffering context. Most likely you have a Remotion version mismatch.");
|
|
25868
25885
|
}
|
|
@@ -26209,12 +26226,12 @@ var usePlayback = ({
|
|
|
26209
26226
|
const frame = Internals.Timeline.useTimelinePosition();
|
|
26210
26227
|
const { playing, pause, emitter, isPlaying } = usePlayer();
|
|
26211
26228
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
26212
|
-
const sharedAudioContext =
|
|
26229
|
+
const sharedAudioContext = useContext45(Internals.SharedAudioContext);
|
|
26213
26230
|
const logLevel = Internals.useLogLevel();
|
|
26214
26231
|
const timelineContext = Internals.useTimelineContext();
|
|
26215
26232
|
const isBackgroundedRef = useIsBackgrounded();
|
|
26216
26233
|
const lastTimeUpdateTimestamp = useRef52(0);
|
|
26217
|
-
const context =
|
|
26234
|
+
const context = useContext45(Internals.BufferingContextReact);
|
|
26218
26235
|
if (!context) {
|
|
26219
26236
|
throw new Error("Missing the buffering context. Most likely you have a Remotion version mismatch.");
|
|
26220
26237
|
}
|
|
@@ -26283,7 +26300,9 @@ var usePlayback = ({
|
|
|
26283
26300
|
sharedAudioContext?.suspend?.();
|
|
26284
26301
|
return;
|
|
26285
26302
|
}
|
|
26286
|
-
|
|
26303
|
+
if (!muted) {
|
|
26304
|
+
sharedAudioContext?.resume?.();
|
|
26305
|
+
}
|
|
26287
26306
|
const time = performance.now() - startedTime;
|
|
26288
26307
|
const actualLastFrame = outFrame ?? config.durationInFrames - 1;
|
|
26289
26308
|
const actualFirstFrame = inFrame ?? 0;
|
|
@@ -26312,7 +26331,7 @@ var usePlayback = ({
|
|
|
26312
26331
|
};
|
|
26313
26332
|
const queueNextFrame = () => {
|
|
26314
26333
|
const getIsResumingAudioContext = sharedAudioContext?.getIsResumingAudioContext?.() ?? null;
|
|
26315
|
-
if (getIsResumingAudioContext !== null) {
|
|
26334
|
+
if (getIsResumingAudioContext !== null && !muted) {
|
|
26316
26335
|
getIsResumingAudioContext.then(() => {
|
|
26317
26336
|
if (!sharedAudioContext?.audioContext) {
|
|
26318
26337
|
return;
|
|
@@ -29597,7 +29616,7 @@ var UNDERLAY_RED = curriedTransparentize$1(0.9, RED);
|
|
|
29597
29616
|
var BLUE_TEXT = curriedDarken$1(0.3, "#42e9f5");
|
|
29598
29617
|
|
|
29599
29618
|
// src/components/homepage/layout/use-color-mode.tsx
|
|
29600
|
-
import React57, { useContext as
|
|
29619
|
+
import React57, { useContext as useContext46, useMemo as useMemo54 } from "react";
|
|
29601
29620
|
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
29602
29621
|
var Context = React57.createContext(undefined);
|
|
29603
29622
|
var ColorModeProvider = ({
|
|
@@ -29614,7 +29633,7 @@ var ColorModeProvider = ({
|
|
|
29614
29633
|
});
|
|
29615
29634
|
};
|
|
29616
29635
|
function useColorMode() {
|
|
29617
|
-
const context =
|
|
29636
|
+
const context = useContext46(Context);
|
|
29618
29637
|
if (context === null || context === undefined) {
|
|
29619
29638
|
throw new Error("ColorModeProvider");
|
|
29620
29639
|
}
|
|
@@ -29628,9 +29647,9 @@ import { useContext as useContext212, useEffect as useEffect44, useMemo as useMe
|
|
|
29628
29647
|
import { ALL_FORMATS, Input as Input2, UrlSource } from "mediabunny";
|
|
29629
29648
|
import { AudioBufferSink, InputDisposedError } from "mediabunny";
|
|
29630
29649
|
import { CanvasSink } from "mediabunny";
|
|
29631
|
-
import { useContext as
|
|
29650
|
+
import { useContext as useContext48, useLayoutEffect as useLayoutEffect18 } from "react";
|
|
29632
29651
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
29633
|
-
import { useContext as
|
|
29652
|
+
import { useContext as useContext311, useLayoutEffect as useLayoutEffect24, useMemo as useMemo213, useState as useState210 } from "react";
|
|
29634
29653
|
import React211 from "react";
|
|
29635
29654
|
import {
|
|
29636
29655
|
ALL_FORMATS as ALL_FORMATS2,
|
|
@@ -29646,7 +29665,7 @@ import { jsx as jsx216 } from "react/jsx-runtime";
|
|
|
29646
29665
|
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
29647
29666
|
import { useMemo as useMemo63, useState as useState63 } from "react";
|
|
29648
29667
|
import {
|
|
29649
|
-
useContext as
|
|
29668
|
+
useContext as useContext47,
|
|
29650
29669
|
useEffect as useEffect210,
|
|
29651
29670
|
useLayoutEffect as useLayoutEffect34,
|
|
29652
29671
|
useMemo as useMemo412,
|
|
@@ -31374,7 +31393,7 @@ var useCommonEffects = ({
|
|
|
31374
31393
|
logLevel,
|
|
31375
31394
|
label: label3
|
|
31376
31395
|
}) => {
|
|
31377
|
-
const sharedAudioContext =
|
|
31396
|
+
const sharedAudioContext = useContext48(Internals.SharedAudioContext);
|
|
31378
31397
|
useLayoutEffect18(() => {
|
|
31379
31398
|
const mediaPlayer = mediaPlayerRef.current;
|
|
31380
31399
|
if (!mediaPlayer)
|
|
@@ -33651,7 +33670,7 @@ var AudioForRendering2 = ({
|
|
|
33651
33670
|
const frame = useCurrentFrame();
|
|
33652
33671
|
const absoluteFrame = Internals.useTimelinePosition();
|
|
33653
33672
|
const videoConfig = Internals.useUnsafeVideoConfig();
|
|
33654
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
33673
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext311(Internals.RenderAssetManager);
|
|
33655
33674
|
const startsAt = Internals.useMediaStartsAt();
|
|
33656
33675
|
const environment = useRemotionEnvironment();
|
|
33657
33676
|
if (!videoConfig) {
|
|
@@ -33663,7 +33682,7 @@ var AudioForRendering2 = ({
|
|
|
33663
33682
|
const { fps } = videoConfig;
|
|
33664
33683
|
const { delayRender: delayRender2, continueRender } = useDelayRender();
|
|
33665
33684
|
const [replaceWithHtml5Audio, setReplaceWithHtml5Audio] = useState210(false);
|
|
33666
|
-
const sequenceContext =
|
|
33685
|
+
const sequenceContext = useContext311(Internals.SequenceContext);
|
|
33667
33686
|
const id = useMemo213(() => `media-audio-${random(src)}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
|
|
33668
33687
|
src,
|
|
33669
33688
|
sequenceContext?.cumulatedFrom,
|
|
@@ -34017,7 +34036,7 @@ var VideoForPreviewAssertedShowing = ({
|
|
|
34017
34036
|
const [playing] = Timeline2.usePlayingState();
|
|
34018
34037
|
const timelineContext = Internals.useTimelineContext();
|
|
34019
34038
|
const globalPlaybackRate = timelineContext.playbackRate;
|
|
34020
|
-
const sharedAudioContext =
|
|
34039
|
+
const sharedAudioContext = useContext47(SharedAudioContext22);
|
|
34021
34040
|
const buffer = useBufferState();
|
|
34022
34041
|
const [mediaMuted] = useMediaMutedState22();
|
|
34023
34042
|
const [mediaVolume] = useMediaVolumeState22();
|
|
@@ -34038,7 +34057,7 @@ var VideoForPreviewAssertedShowing = ({
|
|
|
34038
34057
|
effectChainStateRef.current = effectChainState;
|
|
34039
34058
|
const frameRef = useRef210(frame);
|
|
34040
34059
|
frameRef.current = frame;
|
|
34041
|
-
const parentSequence =
|
|
34060
|
+
const parentSequence = useContext47(SequenceContext22);
|
|
34042
34061
|
const isPremounting = Boolean(parentSequence?.premounting);
|
|
34043
34062
|
const isPostmounting = Boolean(parentSequence?.postmounting);
|
|
34044
34063
|
const sequenceOffset = ((parentSequence?.cumulatedFrom ?? 0) + (parentSequence?.relativeFrom ?? 0)) / videoConfig.fps;
|
|
@@ -34046,7 +34065,7 @@ var VideoForPreviewAssertedShowing = ({
|
|
|
34046
34065
|
const currentTimeRef = useRef210(currentTime);
|
|
34047
34066
|
currentTimeRef.current = currentTime;
|
|
34048
34067
|
const preloadedSrc = usePreload22(src);
|
|
34049
|
-
const buffering =
|
|
34068
|
+
const buffering = useContext47(Internals.BufferingContextReact);
|
|
34050
34069
|
if (!buffering) {
|
|
34051
34070
|
throw new Error("useMediaPlayback must be used inside a <BufferingContext>");
|
|
34052
34071
|
}
|
|
@@ -36215,7 +36234,7 @@ import {
|
|
|
36215
36234
|
import { BufferTarget, StreamTarget } from "mediabunny";
|
|
36216
36235
|
|
|
36217
36236
|
// ../core/dist/esm/version.mjs
|
|
36218
|
-
var VERSION2 = "4.0.
|
|
36237
|
+
var VERSION2 = "4.0.457";
|
|
36219
36238
|
|
|
36220
36239
|
// ../web-renderer/dist/esm/index.mjs
|
|
36221
36240
|
import { AudioSample, VideoSample } from "mediabunny";
|