@remotion/promo-pages 4.0.380 → 4.0.382
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 +125 -141
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +125 -141
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +60 -75
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +60 -75
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +69 -84
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +60 -75
- package/dist/design.js +60 -75
- package/dist/homepage/Pricing.js +60 -75
- package/dist/template-modal-content.js +69 -84
- package/dist/templates.js +60 -75
- package/package.json +16 -16
package/dist/homepage/Pricing.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.382", checkMultipleRemotionVersions = () => {
|
|
760
759
|
if (typeof globalThis === "undefined") {
|
|
761
760
|
return;
|
|
762
761
|
}
|
|
@@ -3034,7 +3033,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3034
3033
|
return null;
|
|
3035
3034
|
}
|
|
3036
3035
|
return new AudioContext({
|
|
3037
|
-
latencyHint
|
|
3036
|
+
latencyHint,
|
|
3037
|
+
sampleRate: 48000
|
|
3038
3038
|
});
|
|
3039
3039
|
}, [logLevel, latencyHint, env.isRendering]);
|
|
3040
3040
|
return audioContext;
|
|
@@ -3061,7 +3061,7 @@ 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 }) => {
|
|
3065
3065
|
const audios = useRef5([]);
|
|
3066
3066
|
const [initialNumberOfAudioTags] = useState11(numberOfAudioTags);
|
|
3067
3067
|
if (numberOfAudioTags !== initialNumberOfAudioTags) {
|
|
@@ -3205,16 +3205,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3205
3205
|
updateAudio,
|
|
3206
3206
|
audioContext
|
|
3207
3207
|
]);
|
|
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
3208
|
return /* @__PURE__ */ jsxs2(SharedAudioContext.Provider, {
|
|
3219
3209
|
value,
|
|
3220
3210
|
children: [
|
|
@@ -3522,7 +3512,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3522
3512
|
});
|
|
3523
3513
|
}).join(",");
|
|
3524
3514
|
}, [duration, startsAt, volume, mediaVolume]);
|
|
3525
|
-
|
|
3515
|
+
useEffect6(() => {
|
|
3526
3516
|
if (typeof volume === "number" && volume !== initialVolume) {
|
|
3527
3517
|
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
3518
|
}
|
|
@@ -3575,7 +3565,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3575
3565
|
trimBefore: undefined,
|
|
3576
3566
|
playbackRate
|
|
3577
3567
|
});
|
|
3578
|
-
|
|
3568
|
+
useEffect6(() => {
|
|
3579
3569
|
if (!src) {
|
|
3580
3570
|
throw new Error("No src passed");
|
|
3581
3571
|
}
|
|
@@ -3665,7 +3655,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3665
3655
|
}
|
|
3666
3656
|
};
|
|
3667
3657
|
}, []);
|
|
3668
|
-
|
|
3658
|
+
useEffect7(() => {
|
|
3669
3659
|
if (blocks.length > 0) {
|
|
3670
3660
|
onBufferingCallbacks.forEach((c) => c());
|
|
3671
3661
|
playbackLogging({
|
|
@@ -3701,7 +3691,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3701
3691
|
});
|
|
3702
3692
|
}, useIsPlayerBuffering = (bufferManager) => {
|
|
3703
3693
|
const [isBuffering, setIsBuffering] = useState13(bufferManager.buffering.current);
|
|
3704
|
-
|
|
3694
|
+
useEffect7(() => {
|
|
3705
3695
|
const onBuffer = () => {
|
|
3706
3696
|
setIsBuffering(true);
|
|
3707
3697
|
};
|
|
@@ -3864,7 +3854,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3864
3854
|
}) => {
|
|
3865
3855
|
const buffer = useBufferState();
|
|
3866
3856
|
const [isBuffering, setIsBuffering] = useState14(false);
|
|
3867
|
-
|
|
3857
|
+
useEffect8(() => {
|
|
3868
3858
|
let cleanupFns = [];
|
|
3869
3859
|
const { current } = element;
|
|
3870
3860
|
if (!current) {
|
|
@@ -3996,7 +3986,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3996
3986
|
onVariableFpsVideoDetected
|
|
3997
3987
|
}) => {
|
|
3998
3988
|
const currentTime = useRef10(null);
|
|
3999
|
-
|
|
3989
|
+
useEffect9(() => {
|
|
4000
3990
|
const { current } = mediaRef;
|
|
4001
3991
|
if (current) {
|
|
4002
3992
|
currentTime.current = {
|
|
@@ -4178,7 +4168,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4178
4168
|
return acceptableTimeshift ?? defaultAcceptableTimeshift;
|
|
4179
4169
|
})();
|
|
4180
4170
|
const isPlayerBuffering = useIsPlayerBuffering(buffering);
|
|
4181
|
-
|
|
4171
|
+
useEffect10(() => {
|
|
4182
4172
|
if (mediaRef.current?.paused) {
|
|
4183
4173
|
return;
|
|
4184
4174
|
}
|
|
@@ -4223,7 +4213,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4223
4213
|
mediaRef.current.playbackRate = playbackRateToSet;
|
|
4224
4214
|
}
|
|
4225
4215
|
}, [mediaRef, playbackRate]);
|
|
4226
|
-
|
|
4216
|
+
useEffect10(() => {
|
|
4227
4217
|
const tagName = mediaType === "audio" ? "<Html5Audio>" : "<Html5Video>";
|
|
4228
4218
|
if (!mediaRef.current) {
|
|
4229
4219
|
throw new Error(`No ${mediaType} ref found`);
|
|
@@ -4351,7 +4341,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4351
4341
|
const logLevel = useLogLevel();
|
|
4352
4342
|
const mountTime = useMountTime();
|
|
4353
4343
|
const env = useRemotionEnvironment();
|
|
4354
|
-
|
|
4344
|
+
useEffect11(() => {
|
|
4355
4345
|
const tag = {
|
|
4356
4346
|
id,
|
|
4357
4347
|
play: (reason) => {
|
|
@@ -4544,7 +4534,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4544
4534
|
}, [audioRef]);
|
|
4545
4535
|
const currentOnDurationCallback = useRef12(onDuration);
|
|
4546
4536
|
currentOnDurationCallback.current = onDuration;
|
|
4547
|
-
|
|
4537
|
+
useEffect12(() => {
|
|
4548
4538
|
const { current } = audioRef;
|
|
4549
4539
|
if (!current) {
|
|
4550
4540
|
return;
|
|
@@ -4611,7 +4601,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4611
4601
|
useImperativeHandle7(ref, () => {
|
|
4612
4602
|
return audioRef.current;
|
|
4613
4603
|
}, []);
|
|
4614
|
-
|
|
4604
|
+
useEffect13(() => {
|
|
4615
4605
|
if (!props.src) {
|
|
4616
4606
|
throw new Error("No src passed");
|
|
4617
4607
|
}
|
|
@@ -4915,7 +4905,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4915
4905
|
}
|
|
4916
4906
|
}, Fallback = () => {
|
|
4917
4907
|
const { continueRender: continueRender2, delayRender: delayRender2 } = useDelayRender();
|
|
4918
|
-
|
|
4908
|
+
useEffect15(() => {
|
|
4919
4909
|
const fallback = delayRender2("Waiting for Root component to unsuspend");
|
|
4920
4910
|
return () => continueRender2(fallback);
|
|
4921
4911
|
}, [continueRender2, delayRender2]);
|
|
@@ -4952,7 +4942,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4952
4942
|
throw new Error("<Composition> mounted inside another composition. See https://remotion.dev/docs/wrong-composition-mount for help.");
|
|
4953
4943
|
}
|
|
4954
4944
|
const { folderName, parentName } = useContext29(FolderContext);
|
|
4955
|
-
|
|
4945
|
+
useEffect15(() => {
|
|
4956
4946
|
if (!id) {
|
|
4957
4947
|
throw new Error("No id for composition passed.");
|
|
4958
4948
|
}
|
|
@@ -4991,7 +4981,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4991
4981
|
registerComposition,
|
|
4992
4982
|
unregisterComposition
|
|
4993
4983
|
]);
|
|
4994
|
-
|
|
4984
|
+
useEffect15(() => {
|
|
4995
4985
|
window.dispatchEvent(new CustomEvent(PROPS_UPDATED_EXTERNALLY, {
|
|
4996
4986
|
detail: {
|
|
4997
4987
|
resetUnsaved: id
|
|
@@ -4999,7 +4989,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4999
4989
|
}));
|
|
5000
4990
|
}, [defaultProps, id]);
|
|
5001
4991
|
const resolved = useResolvedVideoConfig(id);
|
|
5002
|
-
if (environment.isStudio && video && video.component === lazy) {
|
|
4992
|
+
if (environment.isStudio && video && video.component === lazy && video.id === id) {
|
|
5003
4993
|
const Comp = lazy;
|
|
5004
4994
|
if (resolved === null || resolved.type !== "success" && resolved.type !== "success-and-refreshing") {
|
|
5005
4995
|
return null;
|
|
@@ -5013,7 +5003,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5013
5003
|
})
|
|
5014
5004
|
}), portalNode());
|
|
5015
5005
|
}
|
|
5016
|
-
if (environment.isRendering && video && video.component === lazy) {
|
|
5006
|
+
if (environment.isRendering && video && video.component === lazy && video.id === id) {
|
|
5017
5007
|
const Comp = lazy;
|
|
5018
5008
|
if (resolved === null || resolved.type !== "success" && resolved.type !== "success-and-refreshing") {
|
|
5019
5009
|
return null;
|
|
@@ -5416,7 +5406,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5416
5406
|
}
|
|
5417
5407
|
};
|
|
5418
5408
|
}, []);
|
|
5419
|
-
|
|
5409
|
+
useEffect16(() => {
|
|
5420
5410
|
if (typeof __webpack_module__ !== "undefined") {
|
|
5421
5411
|
if (__webpack_module__.hot) {
|
|
5422
5412
|
__webpack_module__.hot.addStatusHandler((status) => {
|
|
@@ -5430,10 +5420,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5430
5420
|
const logging = useMemo27(() => {
|
|
5431
5421
|
return { logLevel, mountTime: Date.now() };
|
|
5432
5422
|
}, [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
5423
|
return /* @__PURE__ */ jsx28(LogLevelContext.Provider, {
|
|
5438
5424
|
value: logging,
|
|
5439
5425
|
children: /* @__PURE__ */ jsx28(NonceContext.Provider, {
|
|
@@ -5451,7 +5437,6 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5451
5437
|
children: /* @__PURE__ */ jsx28(SharedAudioContextProvider, {
|
|
5452
5438
|
numberOfAudioTags,
|
|
5453
5439
|
audioLatencyHint,
|
|
5454
|
-
component: composition?.component ?? null,
|
|
5455
5440
|
children: /* @__PURE__ */ jsx28(DurationsContextProvider, {
|
|
5456
5441
|
children: /* @__PURE__ */ jsx28(BufferingProvider, {
|
|
5457
5442
|
children
|
|
@@ -5535,9 +5520,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5535
5520
|
const frame = useCurrentFrame();
|
|
5536
5521
|
const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior);
|
|
5537
5522
|
const videoConfig = useUnsafeVideoConfig();
|
|
5538
|
-
const sequenceContext =
|
|
5523
|
+
const sequenceContext = useContext32(SequenceContext);
|
|
5539
5524
|
const mediaStartsAt = useMediaStartsAt();
|
|
5540
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
5525
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext32(RenderAssetManager);
|
|
5541
5526
|
if (!src) {
|
|
5542
5527
|
throw new TypeError("No `src` was passed to <OffthreadVideo>.");
|
|
5543
5528
|
}
|
|
@@ -5556,7 +5541,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5556
5541
|
mediaVolume: 1
|
|
5557
5542
|
});
|
|
5558
5543
|
warnAboutTooHighVolume(volume);
|
|
5559
|
-
|
|
5544
|
+
useEffect17(() => {
|
|
5560
5545
|
if (!src) {
|
|
5561
5546
|
throw new Error("No src passed");
|
|
5562
5547
|
}
|
|
@@ -5716,7 +5701,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5716
5701
|
ref,
|
|
5717
5702
|
onVideoFrame
|
|
5718
5703
|
}) => {
|
|
5719
|
-
|
|
5704
|
+
useEffect18(() => {
|
|
5720
5705
|
const { current } = ref;
|
|
5721
5706
|
if (!current) {
|
|
5722
5707
|
return;
|
|
@@ -5738,7 +5723,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5738
5723
|
};
|
|
5739
5724
|
}, [onVideoFrame, ref]);
|
|
5740
5725
|
}, VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
5741
|
-
const context =
|
|
5726
|
+
const context = useContext33(SharedAudioContext);
|
|
5742
5727
|
if (!context) {
|
|
5743
5728
|
throw new Error("SharedAudioContext not found");
|
|
5744
5729
|
}
|
|
@@ -5786,8 +5771,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5786
5771
|
}
|
|
5787
5772
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
5788
5773
|
const { fps, durationInFrames } = useVideoConfig();
|
|
5789
|
-
const parentSequence =
|
|
5790
|
-
const { hidden } =
|
|
5774
|
+
const parentSequence = useContext33(SequenceContext);
|
|
5775
|
+
const { hidden } = useContext33(SequenceVisibilityToggleContext);
|
|
5791
5776
|
const logLevel = useLogLevel();
|
|
5792
5777
|
const mountTime = useMountTime();
|
|
5793
5778
|
const [timelineId] = useState20(() => String(Math.random()));
|
|
@@ -5862,7 +5847,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5862
5847
|
tag: "video",
|
|
5863
5848
|
mountTime
|
|
5864
5849
|
}));
|
|
5865
|
-
|
|
5850
|
+
useEffect19(() => {
|
|
5866
5851
|
const { current } = videoRef;
|
|
5867
5852
|
if (!current) {
|
|
5868
5853
|
return;
|
|
@@ -5893,7 +5878,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5893
5878
|
const currentOnDurationCallback = useRef16(onDuration);
|
|
5894
5879
|
currentOnDurationCallback.current = onDuration;
|
|
5895
5880
|
useEmitVideoFrame({ ref: videoRef, onVideoFrame });
|
|
5896
|
-
|
|
5881
|
+
useEffect19(() => {
|
|
5897
5882
|
const { current } = videoRef;
|
|
5898
5883
|
if (!current) {
|
|
5899
5884
|
return;
|
|
@@ -5910,7 +5895,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5910
5895
|
current.removeEventListener("loadedmetadata", onLoadedMetadata);
|
|
5911
5896
|
};
|
|
5912
5897
|
}, [src]);
|
|
5913
|
-
|
|
5898
|
+
useEffect19(() => {
|
|
5914
5899
|
const { current } = videoRef;
|
|
5915
5900
|
if (!current) {
|
|
5916
5901
|
return;
|
|
@@ -6466,13 +6451,13 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6466
6451
|
const volumePropsFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
6467
6452
|
const videoConfig = useUnsafeVideoConfig();
|
|
6468
6453
|
const videoRef = useRef17(null);
|
|
6469
|
-
const sequenceContext =
|
|
6454
|
+
const sequenceContext = useContext34(SequenceContext);
|
|
6470
6455
|
const mediaStartsAt = useMediaStartsAt();
|
|
6471
6456
|
const environment = useRemotionEnvironment();
|
|
6472
6457
|
const logLevel = useLogLevel();
|
|
6473
6458
|
const mountTime = useMountTime();
|
|
6474
6459
|
const { delayRender: delayRender2, continueRender: continueRender2 } = useDelayRender();
|
|
6475
|
-
const { registerRenderAsset, unregisterRenderAsset } =
|
|
6460
|
+
const { registerRenderAsset, unregisterRenderAsset } = useContext34(RenderAssetManager);
|
|
6476
6461
|
const id = useMemo32(() => `video-${random(props2.src ?? "")}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.relativeFrom}-${sequenceContext?.durationInFrames}`, [
|
|
6477
6462
|
props2.src,
|
|
6478
6463
|
sequenceContext?.cumulatedFrom,
|
|
@@ -6488,7 +6473,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6488
6473
|
mediaVolume: 1
|
|
6489
6474
|
});
|
|
6490
6475
|
warnAboutTooHighVolume(volume);
|
|
6491
|
-
|
|
6476
|
+
useEffect20(() => {
|
|
6492
6477
|
if (!props2.src) {
|
|
6493
6478
|
throw new Error("No src passed");
|
|
6494
6479
|
}
|
|
@@ -6531,7 +6516,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6531
6516
|
useImperativeHandle11(ref, () => {
|
|
6532
6517
|
return videoRef.current;
|
|
6533
6518
|
}, []);
|
|
6534
|
-
|
|
6519
|
+
useEffect20(() => {
|
|
6535
6520
|
if (!window.remotion_videoEnabled) {
|
|
6536
6521
|
return;
|
|
6537
6522
|
}
|
|
@@ -6671,7 +6656,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
6671
6656
|
const { loop, ...propsOtherThanLoop } = props2;
|
|
6672
6657
|
const { fps } = useVideoConfig();
|
|
6673
6658
|
const environment = useRemotionEnvironment();
|
|
6674
|
-
const { durations, setDurations } =
|
|
6659
|
+
const { durations, setDurations } = useContext35(DurationsContext);
|
|
6675
6660
|
if (typeof ref === "string") {
|
|
6676
6661
|
throw new Error("string refs are not supported");
|
|
6677
6662
|
}
|
|
@@ -8598,7 +8583,7 @@ var getDefaultConfig = () => {
|
|
|
8598
8583
|
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
8599
8584
|
|
|
8600
8585
|
// ../design/dist/esm/index.mjs
|
|
8601
|
-
import React7, { useEffect as
|
|
8586
|
+
import React7, { useEffect as useEffect21, useMemo as useMemo33, useState as useState21 } from "react";
|
|
8602
8587
|
|
|
8603
8588
|
// ../paths/dist/esm/index.mjs
|
|
8604
8589
|
var cutLInstruction = ({
|
|
@@ -12739,7 +12724,7 @@ var extrudeAndTransformElement = (options) => {
|
|
|
12739
12724
|
init_esm();
|
|
12740
12725
|
import { jsx as jsx37, Fragment } from "react/jsx-runtime";
|
|
12741
12726
|
import { jsx as jsx210, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
12742
|
-
import { useEffect as
|
|
12727
|
+
import { useEffect as useEffect22, useMemo as useMemo210, useRef as useRef18 } from "react";
|
|
12743
12728
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
12744
12729
|
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
12745
12730
|
import React42 from "react";
|
|
@@ -12827,7 +12812,7 @@ var useHoverTransforms = (ref, disabled) => {
|
|
|
12827
12812
|
isActive: false
|
|
12828
12813
|
});
|
|
12829
12814
|
const eventTarget = useMemo33(() => new EventTarget, []);
|
|
12830
|
-
|
|
12815
|
+
useEffect21(() => {
|
|
12831
12816
|
if (disabled) {
|
|
12832
12817
|
eventTarget.dispatchEvent(new Event("disabled"));
|
|
12833
12818
|
} else {
|
|
@@ -12974,7 +12959,7 @@ var getAngle = (ref, coordinates) => {
|
|
|
12974
12959
|
var lastCoordinates = null;
|
|
12975
12960
|
var useMousePosition = (ref) => {
|
|
12976
12961
|
const [angle, setAngle] = useState21(getAngle(ref.current, lastCoordinates));
|
|
12977
|
-
|
|
12962
|
+
useEffect21(() => {
|
|
12978
12963
|
const element = ref.current;
|
|
12979
12964
|
if (!element) {
|
|
12980
12965
|
return;
|
|
@@ -13095,7 +13080,7 @@ var Spinner = ({ size, duration }) => {
|
|
|
13095
13080
|
};
|
|
13096
13081
|
}, [size]);
|
|
13097
13082
|
const pathsRef = useRef18([]);
|
|
13098
|
-
|
|
13083
|
+
useEffect22(() => {
|
|
13099
13084
|
const animate = () => {
|
|
13100
13085
|
const now = performance.now();
|
|
13101
13086
|
for (let index = 0;index < lines; index++) {
|