@remotion/promo-pages 4.0.380 → 4.0.381
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 +123 -140
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +123 -140
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +58 -74
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +58 -74
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +67 -83
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +58 -74
- package/dist/design.js +58 -74
- package/dist/homepage/Pricing.js +58 -74
- package/dist/template-modal-content.js +67 -83
- package/dist/templates.js +58 -74
- package/package.json +12 -12
package/dist/design.js
CHANGED
|
@@ -111,7 +111,7 @@ import { jsx as jsx15 } from "react/jsx-runtime";
|
|
|
111
111
|
import {
|
|
112
112
|
forwardRef as forwardRef4,
|
|
113
113
|
useContext as useContext25,
|
|
114
|
-
useEffect as
|
|
114
|
+
useEffect as useEffect12,
|
|
115
115
|
useImperativeHandle as useImperativeHandle6,
|
|
116
116
|
useMemo as useMemo21,
|
|
117
117
|
useRef as useRef12,
|
|
@@ -123,7 +123,6 @@ import React15, {
|
|
|
123
123
|
createRef as createRef2,
|
|
124
124
|
useCallback as useCallback7,
|
|
125
125
|
useContext as useContext16,
|
|
126
|
-
useEffect as useEffect6,
|
|
127
126
|
useMemo as useMemo15,
|
|
128
127
|
useRef as useRef5,
|
|
129
128
|
useState as useState11
|
|
@@ -131,12 +130,12 @@ import React15, {
|
|
|
131
130
|
import { useMemo as useMemo14 } from "react";
|
|
132
131
|
import { jsx as jsx16, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
133
132
|
import { useRef as useRef6 } from "react";
|
|
134
|
-
import { useContext as useContext19, useEffect as
|
|
133
|
+
import { useContext as useContext19, useEffect as useEffect6, useMemo as useMemo16, useState as useState12 } from "react";
|
|
135
134
|
import { useContext as useContext18 } from "react";
|
|
136
135
|
import {
|
|
137
136
|
useCallback as useCallback10,
|
|
138
137
|
useContext as useContext22,
|
|
139
|
-
useEffect as
|
|
138
|
+
useEffect as useEffect10,
|
|
140
139
|
useLayoutEffect as useLayoutEffect7,
|
|
141
140
|
useRef as useRef11
|
|
142
141
|
} from "react";
|
|
@@ -145,7 +144,7 @@ import { useContext as useContext21, useMemo as useMemo18 } from "react";
|
|
|
145
144
|
import React16, {
|
|
146
145
|
useCallback as useCallback8,
|
|
147
146
|
useContext as useContext20,
|
|
148
|
-
useEffect as
|
|
147
|
+
useEffect as useEffect7,
|
|
149
148
|
useLayoutEffect as useLayoutEffect6,
|
|
150
149
|
useMemo as useMemo17,
|
|
151
150
|
useRef as useRef8,
|
|
@@ -153,15 +152,15 @@ import React16, {
|
|
|
153
152
|
} from "react";
|
|
154
153
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
155
154
|
import React17 from "react";
|
|
156
|
-
import { useEffect as
|
|
157
|
-
import { useEffect as
|
|
158
|
-
import { useContext as useContext23, useEffect as
|
|
155
|
+
import { useEffect as useEffect8, useState as useState14 } from "react";
|
|
156
|
+
import { useEffect as useEffect9, useRef as useRef10 } from "react";
|
|
157
|
+
import { useContext as useContext23, useEffect as useEffect11 } from "react";
|
|
159
158
|
import { createContext as createContext17, useContext as useContext24, useMemo as useMemo20 } from "react";
|
|
160
159
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
161
160
|
import {
|
|
162
161
|
forwardRef as forwardRef5,
|
|
163
162
|
useContext as useContext26,
|
|
164
|
-
useEffect as
|
|
163
|
+
useEffect as useEffect13,
|
|
165
164
|
useImperativeHandle as useImperativeHandle7,
|
|
166
165
|
useLayoutEffect as useLayoutEffect8,
|
|
167
166
|
useMemo as useMemo222,
|
|
@@ -169,9 +168,9 @@ import {
|
|
|
169
168
|
} from "react";
|
|
170
169
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
171
170
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
172
|
-
import { Suspense, useContext as useContext29, useEffect as
|
|
171
|
+
import { Suspense, useContext as useContext29, useEffect as useEffect15 } from "react";
|
|
173
172
|
import { createPortal } from "react-dom";
|
|
174
|
-
import { createContext as createContext18, useContext as useContext28, useEffect as
|
|
173
|
+
import { createContext as createContext18, useContext as useContext28, useEffect as useEffect14, useMemo as useMemo23 } from "react";
|
|
175
174
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
176
175
|
import { jsx as jsx222, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
177
176
|
import React21, { useMemo as useMemo24 } from "react";
|
|
@@ -198,7 +197,7 @@ import {
|
|
|
198
197
|
} from "react";
|
|
199
198
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
200
199
|
import React26 from "react";
|
|
201
|
-
import {
|
|
200
|
+
import { useEffect as useEffect16, useMemo as useMemo27, useState as useState18 } from "react";
|
|
202
201
|
import { createContext as createContext19, useContext as useContext31, useMemo as useMemo26 } from "react";
|
|
203
202
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
204
203
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
@@ -206,8 +205,8 @@ import React28, { createContext as createContext20 } from "react";
|
|
|
206
205
|
import { useCallback as useCallback16 } from "react";
|
|
207
206
|
import {
|
|
208
207
|
useCallback as useCallback15,
|
|
209
|
-
useContext as
|
|
210
|
-
useEffect as
|
|
208
|
+
useContext as useContext32,
|
|
209
|
+
useEffect as useEffect17,
|
|
211
210
|
useLayoutEffect as useLayoutEffect10,
|
|
212
211
|
useMemo as useMemo28,
|
|
213
212
|
useState as useState19
|
|
@@ -215,14 +214,14 @@ import {
|
|
|
215
214
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
216
215
|
import {
|
|
217
216
|
forwardRef as forwardRef9,
|
|
218
|
-
useContext as
|
|
219
|
-
useEffect as
|
|
217
|
+
useContext as useContext33,
|
|
218
|
+
useEffect as useEffect19,
|
|
220
219
|
useImperativeHandle as useImperativeHandle10,
|
|
221
220
|
useMemo as useMemo29,
|
|
222
221
|
useRef as useRef16,
|
|
223
222
|
useState as useState20
|
|
224
223
|
} from "react";
|
|
225
|
-
import { useEffect as
|
|
224
|
+
import { useEffect as useEffect18 } from "react";
|
|
226
225
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
227
226
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
228
227
|
import React32, { useMemo as useMemo30 } from "react";
|
|
@@ -233,11 +232,11 @@ import React34, { createContext as createContext21 } from "react";
|
|
|
233
232
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
234
233
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
235
234
|
import React36 from "react";
|
|
236
|
-
import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as
|
|
235
|
+
import { forwardRef as forwardRef12, useCallback as useCallback17, useContext as useContext35 } from "react";
|
|
237
236
|
import {
|
|
238
237
|
forwardRef as forwardRef11,
|
|
239
|
-
useContext as
|
|
240
|
-
useEffect as
|
|
238
|
+
useContext as useContext34,
|
|
239
|
+
useEffect as useEffect20,
|
|
241
240
|
useImperativeHandle as useImperativeHandle11,
|
|
242
241
|
useLayoutEffect as useLayoutEffect11,
|
|
243
242
|
useMemo as useMemo32,
|
|
@@ -756,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
756
755
|
});
|
|
757
756
|
}, useIsPlayer = () => {
|
|
758
757
|
return useContext(IsPlayerContext);
|
|
759
|
-
}, VERSION = "4.0.
|
|
758
|
+
}, VERSION = "4.0.381", checkMultipleRemotionVersions = () => {
|
|
760
759
|
if (typeof globalThis === "undefined") {
|
|
761
760
|
return;
|
|
762
761
|
}
|
|
@@ -3061,7 +3060,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3061
3060
|
return false;
|
|
3062
3061
|
}
|
|
3063
3062
|
return true;
|
|
3064
|
-
}, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint
|
|
3063
|
+
}, SharedAudioContext, SharedAudioContextProvider = ({ children, numberOfAudioTags, audioLatencyHint }) => {
|
|
3065
3064
|
const audios = useRef5([]);
|
|
3066
3065
|
const [initialNumberOfAudioTags] = useState11(numberOfAudioTags);
|
|
3067
3066
|
if (numberOfAudioTags !== initialNumberOfAudioTags) {
|
|
@@ -3205,16 +3204,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3205
3204
|
updateAudio,
|
|
3206
3205
|
audioContext
|
|
3207
3206
|
]);
|
|
3208
|
-
const resetAudio = useCallback7(() => {
|
|
3209
|
-
takenAudios.current = new Array(numberOfAudioTags).fill(false);
|
|
3210
|
-
audios.current = [];
|
|
3211
|
-
rerenderAudios();
|
|
3212
|
-
}, [numberOfAudioTags, rerenderAudios]);
|
|
3213
|
-
useEffect6(() => {
|
|
3214
|
-
return () => {
|
|
3215
|
-
resetAudio();
|
|
3216
|
-
};
|
|
3217
|
-
}, [component, resetAudio]);
|
|
3218
3207
|
return /* @__PURE__ */ jsxs2(SharedAudioContext.Provider, {
|
|
3219
3208
|
value,
|
|
3220
3209
|
children: [
|
|
@@ -3522,7 +3511,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3522
3511
|
});
|
|
3523
3512
|
}).join(",");
|
|
3524
3513
|
}, [duration, startsAt, volume, mediaVolume]);
|
|
3525
|
-
|
|
3514
|
+
useEffect6(() => {
|
|
3526
3515
|
if (typeof volume === "number" && volume !== initialVolume) {
|
|
3527
3516
|
warnOnce2(`Remotion: The ${mediaType} with src ${src} has changed it's volume. Prefer the callback syntax for setting volume to get better timeline display: https://www.remotion.dev/docs/audio/volume`);
|
|
3528
3517
|
}
|
|
@@ -3575,7 +3564,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3575
3564
|
trimBefore: undefined,
|
|
3576
3565
|
playbackRate
|
|
3577
3566
|
});
|
|
3578
|
-
|
|
3567
|
+
useEffect6(() => {
|
|
3579
3568
|
if (!src) {
|
|
3580
3569
|
throw new Error("No src passed");
|
|
3581
3570
|
}
|
|
@@ -3665,7 +3654,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3665
3654
|
}
|
|
3666
3655
|
};
|
|
3667
3656
|
}, []);
|
|
3668
|
-
|
|
3657
|
+
useEffect7(() => {
|
|
3669
3658
|
if (blocks.length > 0) {
|
|
3670
3659
|
onBufferingCallbacks.forEach((c) => c());
|
|
3671
3660
|
playbackLogging({
|
|
@@ -3701,7 +3690,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3701
3690
|
});
|
|
3702
3691
|
}, useIsPlayerBuffering = (bufferManager) => {
|
|
3703
3692
|
const [isBuffering, setIsBuffering] = useState13(bufferManager.buffering.current);
|
|
3704
|
-
|
|
3693
|
+
useEffect7(() => {
|
|
3705
3694
|
const onBuffer = () => {
|
|
3706
3695
|
setIsBuffering(true);
|
|
3707
3696
|
};
|
|
@@ -3864,7 +3853,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3864
3853
|
}) => {
|
|
3865
3854
|
const buffer = useBufferState();
|
|
3866
3855
|
const [isBuffering, setIsBuffering] = useState14(false);
|
|
3867
|
-
|
|
3856
|
+
useEffect8(() => {
|
|
3868
3857
|
let cleanupFns = [];
|
|
3869
3858
|
const { current } = element;
|
|
3870
3859
|
if (!current) {
|
|
@@ -3996,7 +3985,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3996
3985
|
onVariableFpsVideoDetected
|
|
3997
3986
|
}) => {
|
|
3998
3987
|
const currentTime = useRef10(null);
|
|
3999
|
-
|
|
3988
|
+
useEffect9(() => {
|
|
4000
3989
|
const { current } = mediaRef;
|
|
4001
3990
|
if (current) {
|
|
4002
3991
|
currentTime.current = {
|
|
@@ -4178,7 +4167,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4178
4167
|
return acceptableTimeshift ?? defaultAcceptableTimeshift;
|
|
4179
4168
|
})();
|
|
4180
4169
|
const isPlayerBuffering = useIsPlayerBuffering(buffering);
|
|
4181
|
-
|
|
4170
|
+
useEffect10(() => {
|
|
4182
4171
|
if (mediaRef.current?.paused) {
|
|
4183
4172
|
return;
|
|
4184
4173
|
}
|
|
@@ -4223,7 +4212,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4223
4212
|
mediaRef.current.playbackRate = playbackRateToSet;
|
|
4224
4213
|
}
|
|
4225
4214
|
}, [mediaRef, playbackRate]);
|
|
4226
|
-
|
|
4215
|
+
useEffect10(() => {
|
|
4227
4216
|
const tagName = mediaType === "audio" ? "<Html5Audio>" : "<Html5Video>";
|
|
4228
4217
|
if (!mediaRef.current) {
|
|
4229
4218
|
throw new Error(`No ${mediaType} ref found`);
|
|
@@ -4351,7 +4340,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4351
4340
|
const logLevel = useLogLevel();
|
|
4352
4341
|
const mountTime = useMountTime();
|
|
4353
4342
|
const env = useRemotionEnvironment();
|
|
4354
|
-
|
|
4343
|
+
useEffect11(() => {
|
|
4355
4344
|
const tag = {
|
|
4356
4345
|
id,
|
|
4357
4346
|
play: (reason) => {
|
|
@@ -4544,7 +4533,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4544
4533
|
}, [audioRef]);
|
|
4545
4534
|
const currentOnDurationCallback = useRef12(onDuration);
|
|
4546
4535
|
currentOnDurationCallback.current = onDuration;
|
|
4547
|
-
|
|
4536
|
+
useEffect12(() => {
|
|
4548
4537
|
const { current } = audioRef;
|
|
4549
4538
|
if (!current) {
|
|
4550
4539
|
return;
|
|
@@ -4611,7 +4600,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4611
4600
|
useImperativeHandle7(ref, () => {
|
|
4612
4601
|
return audioRef.current;
|
|
4613
4602
|
}, []);
|
|
4614
|
-
|
|
4603
|
+
useEffect13(() => {
|
|
4615
4604
|
if (!props.src) {
|
|
4616
4605
|
throw new Error("No src passed");
|
|
4617
4606
|
}
|
|
@@ -4915,7 +4904,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4915
4904
|
}
|
|
4916
4905
|
}, Fallback = () => {
|
|
4917
4906
|
const { continueRender: continueRender2, delayRender: delayRender2 } = useDelayRender();
|
|
4918
|
-
|
|
4907
|
+
useEffect15(() => {
|
|
4919
4908
|
const fallback = delayRender2("Waiting for Root component to unsuspend");
|
|
4920
4909
|
return () => continueRender2(fallback);
|
|
4921
4910
|
}, [continueRender2, delayRender2]);
|
|
@@ -4952,7 +4941,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4952
4941
|
throw new Error("<Composition> mounted inside another composition. See https://remotion.dev/docs/wrong-composition-mount for help.");
|
|
4953
4942
|
}
|
|
4954
4943
|
const { folderName, parentName } = useContext29(FolderContext);
|
|
4955
|
-
|
|
4944
|
+
useEffect15(() => {
|
|
4956
4945
|
if (!id) {
|
|
4957
4946
|
throw new Error("No id for composition passed.");
|
|
4958
4947
|
}
|
|
@@ -4991,7 +4980,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4991
4980
|
registerComposition,
|
|
4992
4981
|
unregisterComposition
|
|
4993
4982
|
]);
|
|
4994
|
-
|
|
4983
|
+
useEffect15(() => {
|
|
4995
4984
|
window.dispatchEvent(new CustomEvent(PROPS_UPDATED_EXTERNALLY, {
|
|
4996
4985
|
detail: {
|
|
4997
4986
|
resetUnsaved: id
|
|
@@ -4999,7 +4988,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4999
4988
|
}));
|
|
5000
4989
|
}, [defaultProps, id]);
|
|
5001
4990
|
const resolved = useResolvedVideoConfig(id);
|
|
5002
|
-
if (environment.isStudio && video && video.component === lazy) {
|
|
4991
|
+
if (environment.isStudio && video && video.component === lazy && video.id === id) {
|
|
5003
4992
|
const Comp = lazy;
|
|
5004
4993
|
if (resolved === null || resolved.type !== "success" && resolved.type !== "success-and-refreshing") {
|
|
5005
4994
|
return null;
|
|
@@ -5013,7 +5002,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5013
5002
|
})
|
|
5014
5003
|
}), portalNode());
|
|
5015
5004
|
}
|
|
5016
|
-
if (environment.isRendering && video && video.component === lazy) {
|
|
5005
|
+
if (environment.isRendering && video && video.component === lazy && video.id === id) {
|
|
5017
5006
|
const Comp = lazy;
|
|
5018
5007
|
if (resolved === null || resolved.type !== "success" && resolved.type !== "success-and-refreshing") {
|
|
5019
5008
|
return null;
|
|
@@ -5416,7 +5405,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5416
5405
|
}
|
|
5417
5406
|
};
|
|
5418
5407
|
}, []);
|
|
5419
|
-
|
|
5408
|
+
useEffect16(() => {
|
|
5420
5409
|
if (typeof __webpack_module__ !== "undefined") {
|
|
5421
5410
|
if (__webpack_module__.hot) {
|
|
5422
5411
|
__webpack_module__.hot.addStatusHandler((status) => {
|
|
@@ -5430,10 +5419,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5430
5419
|
const logging = useMemo27(() => {
|
|
5431
5420
|
return { logLevel, mountTime: Date.now() };
|
|
5432
5421
|
}, [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]);
|
|
5437
5422
|
return /* @__PURE__ */ jsx28(LogLevelContext.Provider, {
|
|
5438
5423
|
value: logging,
|
|
5439
5424
|
children: /* @__PURE__ */ jsx28(NonceContext.Provider, {
|
|
@@ -5451,7 +5436,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5451
5436
|
children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
|
|
5452
5437
|
numberOfAudioTags,
|
|
5453
5438
|
audioLatencyHint,
|
|
5454
|
-
component: composition?.component ?? null,
|
|
5455
5439
|
children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
|
|
5456
5440
|
children: /* @__PURE__ */ jsx28(BufferingProvider, {
|
|
5457
5441
|
children
|
|
@@ -5535,9 +5519,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5535
5519
|
const frame = useCurrentFrame();
|
|
5536
5520
|
const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
|
|
5537
5521
|
const videoConfig = useUnsafeVideoConfig();
|
|
5538
|
-
const sequenceContext =
|
|
5522
|
+
const sequenceContext = useContext32(SequenceContext);
|
|
5539
5523
|
const mediaStartsAt = useMediaStartsAt();
|
|
5540
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
5524
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext32(RenderAssetManager);
|
|
5541
5525
|
if (!src) {
|
|
5542
5526
|
throw new TypeError("No `src` was passed to <OffthreadVideo>.");
|
|
5543
5527
|
}
|
|
@@ -5556,7 +5540,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5556
5540
|
mediaVolume: 1
|
|
5557
5541
|
});
|
|
5558
5542
|
warnAboutTooHighVolume(volume);
|
|
5559
|
-
|
|
5543
|
+
useEffect17(() => {
|
|
5560
5544
|
if (!src) {
|
|
5561
5545
|
throw new Error("No src passed");
|
|
5562
5546
|
}
|
|
@@ -5716,7 +5700,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5716
5700
|
ref,
|
|
5717
5701
|
onVideoFrame
|
|
5718
5702
|
}) => {
|
|
5719
|
-
|
|
5703
|
+
useEffect18(() => {
|
|
5720
5704
|
const { current } = ref;
|
|
5721
5705
|
if (!current) {
|
|
5722
5706
|
return;
|
|
@@ -5738,7 +5722,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5738
5722
|
};
|
|
5739
5723
|
}, [onVideoFrame, ref]);
|
|
5740
5724
|
}, VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
5741
|
-
const context =
|
|
5725
|
+
const context = useContext33(SharedAudioContext);
|
|
5742
5726
|
if (!context) {
|
|
5743
5727
|
throw new Error("SharedAudioContext not found");
|
|
5744
5728
|
}
|
|
@@ -5786,8 +5770,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5786
5770
|
}
|
|
5787
5771
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
5788
5772
|
const { fps, durationInFrames } = useVideoConfig();
|
|
5789
|
-
const parentSequence =
|
|
5790
|
-
const { hidden } =
|
|
5773
|
+
const parentSequence = useContext33(SequenceContext);
|
|
5774
|
+
const { hidden } = useContext33(SequenceVisibilityToggleContext);
|
|
5791
5775
|
const logLevel = useLogLevel();
|
|
5792
5776
|
const mountTime = useMountTime();
|
|
5793
5777
|
const [timelineId] = useState20(() => String(Math.random()));
|
|
@@ -5862,7 +5846,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5862
5846
|
tag: "video",
|
|
5863
5847
|
mountTime
|
|
5864
5848
|
}));
|
|
5865
|
-
|
|
5849
|
+
useEffect19(() => {
|
|
5866
5850
|
const { current } = videoRef;
|
|
5867
5851
|
if (!current) {
|
|
5868
5852
|
return;
|
|
@@ -5893,7 +5877,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5893
5877
|
const currentOnDurationCallback = useRef16(onDuration);
|
|
5894
5878
|
currentOnDurationCallback.current = onDuration;
|
|
5895
5879
|
useEmitVideoFrame({ ref: videoRef, onVideoFrame });
|
|
5896
|
-
|
|
5880
|
+
useEffect19(() => {
|
|
5897
5881
|
const { current } = videoRef;
|
|
5898
5882
|
if (!current) {
|
|
5899
5883
|
return;
|
|
@@ -5910,7 +5894,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5910
5894
|
current.removeEventListener("loadedmetadata", onLoadedMetadata);
|
|
5911
5895
|
};
|
|
5912
5896
|
}, [src]);
|
|
5913
|
-
|
|
5897
|
+
useEffect19(() => {
|
|
5914
5898
|
const { current } = videoRef;
|
|
5915
5899
|
if (!current) {
|
|
5916
5900
|
return;
|
|
@@ -6466,13 +6450,13 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6466
6450
|
const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
6467
6451
|
const videoConfig = useUnsafeVideoConfig();
|
|
6468
6452
|
const videoRef = useRef17(null);
|
|
6469
|
-
const sequenceContext =
|
|
6453
|
+
const sequenceContext = useContext34(SequenceContext);
|
|
6470
6454
|
const mediaStartsAt = useMediaStartsAt();
|
|
6471
6455
|
const environment = useRemotionEnvironment();
|
|
6472
6456
|
const logLevel = useLogLevel();
|
|
6473
6457
|
const mountTime = useMountTime();
|
|
6474
6458
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
6475
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
6459
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext34(RenderAssetManager);
|
|
6476
6460
|
const id = useMemo32(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
|
|
6477
6461
|
props2.src,
|
|
6478
6462
|
sequenceContext?.cumulatedFrom,
|
|
@@ -6488,7 +6472,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6488
6472
|
mediaVolume: 1
|
|
6489
6473
|
});
|
|
6490
6474
|
warnAboutTooHighVolume(volume);
|
|
6491
|
-
|
|
6475
|
+
useEffect20(() => {
|
|
6492
6476
|
if (!props2.src) {
|
|
6493
6477
|
throw new Error("No src passed");
|
|
6494
6478
|
}
|
|
@@ -6531,7 +6515,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6531
6515
|
useImperativeHandle11(ref, () => {
|
|
6532
6516
|
return videoRef.current;
|
|
6533
6517
|
}, []);
|
|
6534
|
-
|
|
6518
|
+
useEffect20(() => {
|
|
6535
6519
|
if (!window.remotion_videoEnabled) {
|
|
6536
6520
|
return;
|
|
6537
6521
|
}
|
|
@@ -6671,7 +6655,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6671
6655
|
const { loop, ...propsOtherThanLoop } = props2;
|
|
6672
6656
|
const { fps } = useVideoConfig();
|
|
6673
6657
|
const environment = useRemotionEnvironment();
|
|
6674
|
-
const { durations, setDurations } =
|
|
6658
|
+
const { durations, setDurations } = useContext35(DurationsContext);
|
|
6675
6659
|
if (typeof ref === "string") {
|
|
6676
6660
|
throw new Error("string refs are not supported");
|
|
6677
6661
|
}
|
|
@@ -8598,7 +8582,7 @@ var getDefaultConfig = () => {
|
|
|
8598
8582
|
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
8599
8583
|
|
|
8600
8584
|
// ../design/dist/esm/index.mjs
|
|
8601
|
-
import React7, { useEffect as
|
|
8585
|
+
import React7, { useEffect as useEffect21, useMemo as useMemo33, useState as useState21 } from "react";
|
|
8602
8586
|
|
|
8603
8587
|
// ../paths/dist/esm/index.mjs
|
|
8604
8588
|
var cutLInstruction = ({
|
|
@@ -12739,7 +12723,7 @@ var extrudeAndTransformElement = (options) => {
|
|
|
12739
12723
|
init_esm();
|
|
12740
12724
|
import { jsx as jsx37, Fragment } from "react/jsx-runtime";
|
|
12741
12725
|
import { jsx as jsx210, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
12742
|
-
import { useEffect as
|
|
12726
|
+
import { useEffect as useEffect22, useMemo as useMemo210, useRef as useRef18 } from "react";
|
|
12743
12727
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
12744
12728
|
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
12745
12729
|
import React42 from "react";
|
|
@@ -12827,7 +12811,7 @@ var useHoverTransforms = (ref, disabled) => {
|
|
|
12827
12811
|
isActive: false
|
|
12828
12812
|
});
|
|
12829
12813
|
const eventTarget = useMemo33(() => new EventTarget, []);
|
|
12830
|
-
|
|
12814
|
+
useEffect21(() => {
|
|
12831
12815
|
if (disabled) {
|
|
12832
12816
|
eventTarget.dispatchEvent(new Event("disabled"));
|
|
12833
12817
|
} else {
|
|
@@ -12974,7 +12958,7 @@ var getAngle = (ref, coordinates) => {
|
|
|
12974
12958
|
var lastCoordinates = null;
|
|
12975
12959
|
var useMousePosition = (ref) => {
|
|
12976
12960
|
const [angle, setAngle] = useState21(getAngle(ref.current, lastCoordinates));
|
|
12977
|
-
|
|
12961
|
+
useEffect21(() => {
|
|
12978
12962
|
const element = ref.current;
|
|
12979
12963
|
if (!element) {
|
|
12980
12964
|
return;
|
|
@@ -13095,7 +13079,7 @@ var Spinner = ({ size, duration }) => {
|
|
|
13095
13079
|
};
|
|
13096
13080
|
}, [size]);
|
|
13097
13081
|
const pathsRef = useRef18([]);
|
|
13098
|
-
|
|
13082
|
+
useEffect22(() => {
|
|
13099
13083
|
const animate = () => {
|
|
13100
13084
|
const now = performance.now();
|
|
13101
13085
|
for (let index = 0;index < lines; index++) {
|