@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/Homepage.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
|
}
|
|
@@ -7263,7 +7247,7 @@ __export(exports_esm, {
|
|
|
7263
7247
|
Lottie: () => Lottie
|
|
7264
7248
|
});
|
|
7265
7249
|
import lottie from "lottie-web";
|
|
7266
|
-
import { useEffect as
|
|
7250
|
+
import { useEffect as useEffect38, useRef as useRef36, useState as useState37 } from "react";
|
|
7267
7251
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
7268
7252
|
var getLottieMetadata = (animationData) => {
|
|
7269
7253
|
const width2 = animationData.w;
|
|
@@ -7335,14 +7319,14 @@ var getLottieMetadata = (animationData) => {
|
|
|
7335
7319
|
onAnimationLoadedRef.current = onAnimationLoaded;
|
|
7336
7320
|
const { delayRender, continueRender } = useDelayRender();
|
|
7337
7321
|
const [handle] = useState37(() => delayRender("Waiting for Lottie animation to load"));
|
|
7338
|
-
|
|
7322
|
+
useEffect38(() => {
|
|
7339
7323
|
return () => {
|
|
7340
7324
|
continueRender(handle);
|
|
7341
7325
|
};
|
|
7342
7326
|
}, [handle, continueRender]);
|
|
7343
7327
|
const frame = useCurrentFrame();
|
|
7344
7328
|
currentFrameRef.current = frame;
|
|
7345
|
-
|
|
7329
|
+
useEffect38(() => {
|
|
7346
7330
|
if (!containerRef.current) {
|
|
7347
7331
|
return;
|
|
7348
7332
|
}
|
|
@@ -7387,17 +7371,17 @@ var getLottieMetadata = (animationData) => {
|
|
|
7387
7371
|
renderer,
|
|
7388
7372
|
continueRender
|
|
7389
7373
|
]);
|
|
7390
|
-
|
|
7374
|
+
useEffect38(() => {
|
|
7391
7375
|
if (animationRef.current && direction) {
|
|
7392
7376
|
animationRef.current.setDirection(direction === "backward" ? -1 : 1);
|
|
7393
7377
|
}
|
|
7394
7378
|
}, [direction]);
|
|
7395
|
-
|
|
7379
|
+
useEffect38(() => {
|
|
7396
7380
|
if (animationRef.current && playbackRate) {
|
|
7397
7381
|
animationRef.current.setSpeed(playbackRate);
|
|
7398
7382
|
}
|
|
7399
7383
|
}, [playbackRate]);
|
|
7400
|
-
|
|
7384
|
+
useEffect38(() => {
|
|
7401
7385
|
if (!animationRef.current) {
|
|
7402
7386
|
return;
|
|
7403
7387
|
}
|
|
@@ -8774,7 +8758,7 @@ var getDefaultConfig = () => {
|
|
|
8774
8758
|
var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
|
|
8775
8759
|
|
|
8776
8760
|
// ../design/dist/esm/index.mjs
|
|
8777
|
-
import React7, { useEffect as
|
|
8761
|
+
import React7, { useEffect as useEffect21, useMemo as useMemo33, useState as useState21 } from "react";
|
|
8778
8762
|
|
|
8779
8763
|
// ../paths/dist/esm/index.mjs
|
|
8780
8764
|
var cutLInstruction = ({
|
|
@@ -12915,7 +12899,7 @@ var extrudeAndTransformElement = (options) => {
|
|
|
12915
12899
|
init_esm();
|
|
12916
12900
|
import { jsx as jsx37, Fragment } from "react/jsx-runtime";
|
|
12917
12901
|
import { jsx as jsx210, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
12918
|
-
import { useEffect as
|
|
12902
|
+
import { useEffect as useEffect22, useMemo as useMemo210, useRef as useRef18 } from "react";
|
|
12919
12903
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
12920
12904
|
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
12921
12905
|
import React42 from "react";
|
|
@@ -13003,7 +12987,7 @@ var useHoverTransforms = (ref, disabled) => {
|
|
|
13003
12987
|
isActive: false
|
|
13004
12988
|
});
|
|
13005
12989
|
const eventTarget = useMemo33(() => new EventTarget, []);
|
|
13006
|
-
|
|
12990
|
+
useEffect21(() => {
|
|
13007
12991
|
if (disabled) {
|
|
13008
12992
|
eventTarget.dispatchEvent(new Event("disabled"));
|
|
13009
12993
|
} else {
|
|
@@ -13150,7 +13134,7 @@ var getAngle = (ref, coordinates) => {
|
|
|
13150
13134
|
var lastCoordinates = null;
|
|
13151
13135
|
var useMousePosition = (ref) => {
|
|
13152
13136
|
const [angle, setAngle] = useState21(getAngle(ref.current, lastCoordinates));
|
|
13153
|
-
|
|
13137
|
+
useEffect21(() => {
|
|
13154
13138
|
const element = ref.current;
|
|
13155
13139
|
if (!element) {
|
|
13156
13140
|
return;
|
|
@@ -13271,7 +13255,7 @@ var Spinner = ({ size, duration }) => {
|
|
|
13271
13255
|
};
|
|
13272
13256
|
}, [size]);
|
|
13273
13257
|
const pathsRef = useRef18([]);
|
|
13274
|
-
|
|
13258
|
+
useEffect22(() => {
|
|
13275
13259
|
const animate = () => {
|
|
13276
13260
|
const now = performance.now();
|
|
13277
13261
|
for (let index = 0;index < lines; index++) {
|
|
@@ -20079,7 +20063,7 @@ var Pricing = () => {
|
|
|
20079
20063
|
};
|
|
20080
20064
|
|
|
20081
20065
|
// src/components/homepage/BackgroundAnimation.tsx
|
|
20082
|
-
import { useEffect as
|
|
20066
|
+
import { useEffect as useEffect35 } from "react";
|
|
20083
20067
|
import { jsx as jsx46, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
20084
20068
|
"use client";
|
|
20085
20069
|
var rx = 0.2;
|
|
@@ -20105,7 +20089,7 @@ var BackgroundAnimation = () => {
|
|
|
20105
20089
|
}
|
|
20106
20090
|
}
|
|
20107
20091
|
`;
|
|
20108
|
-
|
|
20092
|
+
useEffect35(() => {
|
|
20109
20093
|
const _style = document.createElement("style");
|
|
20110
20094
|
_style.innerHTML = css;
|
|
20111
20095
|
document.head.appendChild(_style);
|
|
@@ -20528,13 +20512,13 @@ import { jsx as jsx50, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
|
20528
20512
|
import { jsx as jsx213, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
20529
20513
|
import React41 from "react";
|
|
20530
20514
|
import { useContext as useContext210, useEffect as useEffect210, useState as useState35 } from "react";
|
|
20531
|
-
import { useContext as
|
|
20515
|
+
import { useContext as useContext40, useEffect as useEffect36 } from "react";
|
|
20532
20516
|
import { jsx as jsx310 } from "react/jsx-runtime";
|
|
20533
20517
|
import { useCallback as useCallback27, useRef as useRef32 } from "react";
|
|
20534
|
-
import { useEffect as
|
|
20518
|
+
import { useEffect as useEffect37, useState as useState210 } from "react";
|
|
20535
20519
|
import { useContext as useContext42, useEffect as useEffect62, useRef as useRef42 } from "react";
|
|
20536
20520
|
import { useEffect as useEffect42 } from "react";
|
|
20537
|
-
import { useCallback as useCallback28, useContext as
|
|
20521
|
+
import { useCallback as useCallback28, useContext as useContext37, useMemo as useMemo42, useRef as useRef24, useState as useState36 } from "react";
|
|
20538
20522
|
import { useEffect as useEffect52, useRef as useRef33 } from "react";
|
|
20539
20523
|
import { useCallback as useCallback32, useEffect as useEffect72, useMemo as useMemo212, useState as useState42 } from "react";
|
|
20540
20524
|
import {
|
|
@@ -21670,11 +21654,11 @@ class ThumbnailEmitter {
|
|
|
21670
21654
|
};
|
|
21671
21655
|
}
|
|
21672
21656
|
var useBufferStateEmitter = (emitter) => {
|
|
21673
|
-
const bufferManager =
|
|
21657
|
+
const bufferManager = useContext40(Internals.BufferingContextReact);
|
|
21674
21658
|
if (!bufferManager) {
|
|
21675
21659
|
throw new Error("BufferingContextReact not found");
|
|
21676
21660
|
}
|
|
21677
|
-
|
|
21661
|
+
useEffect36(() => {
|
|
21678
21662
|
const clear1 = bufferManager.listenForBuffering(() => {
|
|
21679
21663
|
bufferManager.buffering.current = true;
|
|
21680
21664
|
emitter.dispatchWaiting({});
|
|
@@ -21708,7 +21692,7 @@ var PlayerEmitterProvider = ({ children, currentPlaybackRate }) => {
|
|
|
21708
21692
|
};
|
|
21709
21693
|
var useHoverState = (ref, hideControlsWhenPointerDoesntMove) => {
|
|
21710
21694
|
const [hovered, setHovered] = useState210(false);
|
|
21711
|
-
|
|
21695
|
+
useEffect37(() => {
|
|
21712
21696
|
const { current } = ref;
|
|
21713
21697
|
if (!current) {
|
|
21714
21698
|
return;
|
|
@@ -21753,20 +21737,20 @@ var usePlayer = () => {
|
|
|
21753
21737
|
const playStart = useRef24(frame);
|
|
21754
21738
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
21755
21739
|
const setTimelinePosition = Internals.Timeline.useTimelineSetFrame();
|
|
21756
|
-
const audioContext =
|
|
21757
|
-
const { audioAndVideoTags } =
|
|
21740
|
+
const audioContext = useContext37(Internals.SharedAudioContext);
|
|
21741
|
+
const { audioAndVideoTags } = useContext37(Internals.TimelineContext);
|
|
21758
21742
|
const frameRef = useRef24(frame);
|
|
21759
21743
|
frameRef.current = frame;
|
|
21760
21744
|
const video = Internals.useVideo();
|
|
21761
21745
|
const config = Internals.useUnsafeVideoConfig();
|
|
21762
|
-
const emitter =
|
|
21746
|
+
const emitter = useContext37(PlayerEventEmitterContext);
|
|
21763
21747
|
const lastFrame = (config?.durationInFrames ?? 1) - 1;
|
|
21764
21748
|
const isLastFrame = frame === lastFrame;
|
|
21765
21749
|
const isFirstFrame = frame === 0;
|
|
21766
21750
|
if (!emitter) {
|
|
21767
21751
|
throw new TypeError("Expected Player event emitter context");
|
|
21768
21752
|
}
|
|
21769
|
-
const bufferingContext =
|
|
21753
|
+
const bufferingContext = useContext37(Internals.BufferingContextReact);
|
|
21770
21754
|
if (!bufferingContext) {
|
|
21771
21755
|
throw new Error("Missing the buffering context. Most likely you have a Remotion version mismatch.");
|
|
21772
21756
|
}
|
|
@@ -24035,7 +24019,6 @@ var SharedPlayerContexts = ({
|
|
|
24035
24019
|
children: /* @__PURE__ */ jsx133(Internals.SharedAudioContextProvider, {
|
|
24036
24020
|
numberOfAudioTags: numberOfSharedAudioTags,
|
|
24037
24021
|
audioLatencyHint,
|
|
24038
|
-
component,
|
|
24039
24022
|
children: /* @__PURE__ */ jsx133(Internals.BufferingProvider, {
|
|
24040
24023
|
children
|
|
24041
24024
|
})
|
|
@@ -24609,7 +24592,7 @@ var Thumbnail = forward2(ThumbnailFn);
|
|
|
24609
24592
|
// src/components/homepage/Demo/index.tsx
|
|
24610
24593
|
import {
|
|
24611
24594
|
useCallback as useCallback43,
|
|
24612
|
-
useEffect as
|
|
24595
|
+
useEffect as useEffect51,
|
|
24613
24596
|
useMemo as useMemo53,
|
|
24614
24597
|
useRef as useRef41,
|
|
24615
24598
|
useState as useState47
|
|
@@ -25361,7 +25344,7 @@ var UNDERLAY_RED = curriedTransparentize$1(0.9, RED);
|
|
|
25361
25344
|
var BLUE_TEXT = curriedDarken$1(0.3, "#42e9f5");
|
|
25362
25345
|
|
|
25363
25346
|
// src/components/homepage/layout/use-color-mode.tsx
|
|
25364
|
-
import React43, { useContext as
|
|
25347
|
+
import React43, { useContext as useContext41, useMemo as useMemo44 } from "react";
|
|
25365
25348
|
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
25366
25349
|
var Context = React43.createContext(undefined);
|
|
25367
25350
|
var ColorModeProvider = ({
|
|
@@ -25378,7 +25361,7 @@ var ColorModeProvider = ({
|
|
|
25378
25361
|
});
|
|
25379
25362
|
};
|
|
25380
25363
|
function useColorMode() {
|
|
25381
|
-
const context =
|
|
25364
|
+
const context = useContext41(Context);
|
|
25382
25365
|
if (context === null || context === undefined) {
|
|
25383
25366
|
throw new Error("ColorModeProvider");
|
|
25384
25367
|
}
|
|
@@ -25387,14 +25370,14 @@ function useColorMode() {
|
|
|
25387
25370
|
|
|
25388
25371
|
// src/components/homepage/Demo/Comp.tsx
|
|
25389
25372
|
init_esm();
|
|
25390
|
-
import { useCallback as useCallback36, useEffect as
|
|
25373
|
+
import { useCallback as useCallback36, useEffect as useEffect45, useMemo as useMemo48, useState as useState41 } from "react";
|
|
25391
25374
|
|
|
25392
25375
|
// src/components/homepage/Demo/Cards.tsx
|
|
25393
25376
|
init_esm();
|
|
25394
25377
|
import {
|
|
25395
25378
|
createRef as createRef4,
|
|
25396
25379
|
useCallback as useCallback35,
|
|
25397
|
-
useEffect as
|
|
25380
|
+
useEffect as useEffect43,
|
|
25398
25381
|
useRef as useRef38,
|
|
25399
25382
|
useState as useState40
|
|
25400
25383
|
} from "react";
|
|
@@ -25765,14 +25748,14 @@ init_esm();
|
|
|
25765
25748
|
import {
|
|
25766
25749
|
forwardRef as forwardRef29,
|
|
25767
25750
|
useCallback as useCallback33,
|
|
25768
|
-
useEffect as
|
|
25751
|
+
useEffect as useEffect41,
|
|
25769
25752
|
useImperativeHandle as useImperativeHandle14,
|
|
25770
25753
|
useRef as useRef37
|
|
25771
25754
|
} from "react";
|
|
25772
25755
|
|
|
25773
25756
|
// src/components/homepage/Demo/DisplayedEmoji.tsx
|
|
25774
25757
|
init_esm();
|
|
25775
|
-
import { useEffect as
|
|
25758
|
+
import { useEffect as useEffect40, useMemo as useMemo46, useState as useState39 } from "react";
|
|
25776
25759
|
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
25777
25760
|
var DisplayedEmoji = ({ emoji }) => {
|
|
25778
25761
|
const [data, setData] = useState39(null);
|
|
@@ -25792,7 +25775,7 @@ var DisplayedEmoji = ({ emoji }) => {
|
|
|
25792
25775
|
throw new Error("Unknown emoji");
|
|
25793
25776
|
}, [emoji]);
|
|
25794
25777
|
const [handle] = useState39(() => delayRender());
|
|
25795
|
-
|
|
25778
|
+
useEffect40(() => {
|
|
25796
25779
|
Promise.all([
|
|
25797
25780
|
fetch(src).then((res) => res.json()),
|
|
25798
25781
|
Promise.resolve().then(() => (init_esm2(), exports_esm)).then(({ Lottie: Lottie2, getLottieMetadata: getLottieMetadata2 }) => ({
|
|
@@ -25810,7 +25793,7 @@ var DisplayedEmoji = ({ emoji }) => {
|
|
|
25810
25793
|
cancelRender(err);
|
|
25811
25794
|
});
|
|
25812
25795
|
}, [handle, src, continueRender]);
|
|
25813
|
-
|
|
25796
|
+
useEffect40(() => {
|
|
25814
25797
|
if (typeof document !== "undefined") {
|
|
25815
25798
|
setBrowser(true);
|
|
25816
25799
|
}
|
|
@@ -25906,7 +25889,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
|
|
|
25906
25889
|
transforms: transforms.current
|
|
25907
25890
|
});
|
|
25908
25891
|
}, []);
|
|
25909
|
-
|
|
25892
|
+
useEffect41(() => {
|
|
25910
25893
|
if (!ref1.current || !ref2.current || !ref3.current) {
|
|
25911
25894
|
return;
|
|
25912
25895
|
}
|
|
@@ -25923,7 +25906,7 @@ var EmojiCardRefFn = ({ emojiIndex }, ref) => {
|
|
|
25923
25906
|
onRight
|
|
25924
25907
|
};
|
|
25925
25908
|
}, [onLeft, onRight]);
|
|
25926
|
-
|
|
25909
|
+
useEffect41(() => {
|
|
25927
25910
|
if (!ref1.current || !ref2.current || !ref3.current) {
|
|
25928
25911
|
return;
|
|
25929
25912
|
}
|
|
@@ -26345,7 +26328,7 @@ var Cards = ({
|
|
|
26345
26328
|
const positions = useRef38(getInitialPositions());
|
|
26346
26329
|
const shouldBePositions = useRef38(getInitialPositions());
|
|
26347
26330
|
const { isRendering } = useRemotionEnvironment();
|
|
26348
|
-
|
|
26331
|
+
useEffect43(() => {
|
|
26349
26332
|
const { current } = container4;
|
|
26350
26333
|
if (!current) {
|
|
26351
26334
|
return;
|
|
@@ -26458,7 +26441,7 @@ var HomepageVideoComp = ({
|
|
|
26458
26441
|
}
|
|
26459
26442
|
return sadAudio;
|
|
26460
26443
|
}, [emoji]);
|
|
26461
|
-
|
|
26444
|
+
useEffect45(() => {
|
|
26462
26445
|
const a = prefetch(fireAudio);
|
|
26463
26446
|
const b = prefetch(partyHornAudio);
|
|
26464
26447
|
const c = prefetch(sadAudio);
|
|
@@ -26884,10 +26867,10 @@ var DragAndDropNudge = () => {
|
|
|
26884
26867
|
|
|
26885
26868
|
// src/components/homepage/Demo/PlayerSeekBar.tsx
|
|
26886
26869
|
init_esm();
|
|
26887
|
-
import { useCallback as useCallback39, useEffect as
|
|
26870
|
+
import { useCallback as useCallback39, useEffect as useEffect47, useMemo as useMemo51, useRef as useRef39, useState as useState45 } from "react";
|
|
26888
26871
|
|
|
26889
26872
|
// src/components/homepage/layout/use-el-size.ts
|
|
26890
|
-
import { useCallback as useCallback38, useEffect as
|
|
26873
|
+
import { useCallback as useCallback38, useEffect as useEffect46, useMemo as useMemo50, useState as useState43 } from "react";
|
|
26891
26874
|
var useElementSize2 = (ref) => {
|
|
26892
26875
|
const [size4, setSize] = useState43(null);
|
|
26893
26876
|
const observer = useMemo50(() => {
|
|
@@ -26911,7 +26894,7 @@ var useElementSize2 = (ref) => {
|
|
|
26911
26894
|
height: rect[0].height
|
|
26912
26895
|
});
|
|
26913
26896
|
}, [ref]);
|
|
26914
|
-
|
|
26897
|
+
useEffect46(() => {
|
|
26915
26898
|
updateSize();
|
|
26916
26899
|
if (!observer) {
|
|
26917
26900
|
return;
|
|
@@ -26967,7 +26950,7 @@ var findBodyInWhichDivIsLocated2 = (div) => {
|
|
|
26967
26950
|
};
|
|
26968
26951
|
var useHoverState2 = (ref, hideControlsWhenPointerDoesntMove) => {
|
|
26969
26952
|
const [hovered, setHovered] = useState45(false);
|
|
26970
|
-
|
|
26953
|
+
useEffect47(() => {
|
|
26971
26954
|
const { current } = ref;
|
|
26972
26955
|
if (!current) {
|
|
26973
26956
|
return;
|
|
@@ -27018,7 +27001,7 @@ var PlayerSeekBar2 = ({
|
|
|
27018
27001
|
const size4 = useElementSize2(containerRef.current);
|
|
27019
27002
|
const [playing, setPlaying] = useState45(false);
|
|
27020
27003
|
const [frame, setFrame] = useState45(0);
|
|
27021
|
-
|
|
27004
|
+
useEffect47(() => {
|
|
27022
27005
|
const { current } = playerRef;
|
|
27023
27006
|
if (!current) {
|
|
27024
27007
|
return;
|
|
@@ -27031,7 +27014,7 @@ var PlayerSeekBar2 = ({
|
|
|
27031
27014
|
current.removeEventListener("frameupdate", onFrameUpdate);
|
|
27032
27015
|
};
|
|
27033
27016
|
}, [playerRef]);
|
|
27034
|
-
|
|
27017
|
+
useEffect47(() => {
|
|
27035
27018
|
const { current } = playerRef;
|
|
27036
27019
|
if (!current) {
|
|
27037
27020
|
return;
|
|
@@ -27092,7 +27075,7 @@ var PlayerSeekBar2 = ({
|
|
|
27092
27075
|
}
|
|
27093
27076
|
onSeekEnd();
|
|
27094
27077
|
}, [dragging, onSeekEnd, playerRef]);
|
|
27095
|
-
|
|
27078
|
+
useEffect47(() => {
|
|
27096
27079
|
if (!dragging.dragging) {
|
|
27097
27080
|
return;
|
|
27098
27081
|
}
|
|
@@ -27162,7 +27145,7 @@ var PlayerSeekBar2 = ({
|
|
|
27162
27145
|
};
|
|
27163
27146
|
|
|
27164
27147
|
// src/components/homepage/Demo/PlayerVolume.tsx
|
|
27165
|
-
import { useCallback as useCallback40, useEffect as
|
|
27148
|
+
import { useCallback as useCallback40, useEffect as useEffect48, useRef as useRef40, useState as useState46 } from "react";
|
|
27166
27149
|
|
|
27167
27150
|
// src/components/homepage/Demo/icons.tsx
|
|
27168
27151
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
@@ -27223,7 +27206,7 @@ var PlayerVolume = ({ playerRef }) => {
|
|
|
27223
27206
|
const [muted, setIsMuted] = useState46(() => playerRef.current?.isMuted() ?? true);
|
|
27224
27207
|
const [isHovered, setIsHovered] = useState46(false);
|
|
27225
27208
|
const timerRef = useRef40(null);
|
|
27226
|
-
|
|
27209
|
+
useEffect48(() => {
|
|
27227
27210
|
const { current } = playerRef;
|
|
27228
27211
|
if (!current) {
|
|
27229
27212
|
return;
|
|
@@ -27236,7 +27219,7 @@ var PlayerVolume = ({ playerRef }) => {
|
|
|
27236
27219
|
current.removeEventListener("mutechange", onMutedChange);
|
|
27237
27220
|
};
|
|
27238
27221
|
}, [playerRef]);
|
|
27239
|
-
|
|
27222
|
+
useEffect48(() => {
|
|
27240
27223
|
if (isHovered) {
|
|
27241
27224
|
document.body.style.userSelect = "none";
|
|
27242
27225
|
} else {
|
|
@@ -27281,7 +27264,7 @@ var PlayerVolume = ({ playerRef }) => {
|
|
|
27281
27264
|
};
|
|
27282
27265
|
|
|
27283
27266
|
// src/components/homepage/Demo/PlayPauseButton.tsx
|
|
27284
|
-
import React58, { useCallback as useCallback41, useEffect as
|
|
27267
|
+
import React58, { useCallback as useCallback41, useEffect as useEffect49 } from "react";
|
|
27285
27268
|
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
27286
27269
|
var playerButtonStyle2 = {
|
|
27287
27270
|
appearance: "none",
|
|
@@ -27299,7 +27282,7 @@ var playerButtonStyle2 = {
|
|
|
27299
27282
|
};
|
|
27300
27283
|
var PlayPauseButton = ({ playerRef }) => {
|
|
27301
27284
|
const [playing, setPlaying] = React58.useState(true);
|
|
27302
|
-
|
|
27285
|
+
useEffect49(() => {
|
|
27303
27286
|
const { current } = playerRef;
|
|
27304
27287
|
if (!current) {
|
|
27305
27288
|
return;
|
|
@@ -27336,7 +27319,7 @@ var PlayPauseButton = ({ playerRef }) => {
|
|
|
27336
27319
|
};
|
|
27337
27320
|
|
|
27338
27321
|
// src/components/homepage/Demo/TimeDisplay.tsx
|
|
27339
|
-
import React59, { useEffect as
|
|
27322
|
+
import React59, { useEffect as useEffect50 } from "react";
|
|
27340
27323
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
27341
27324
|
var formatTime2 = (timeInSeconds) => {
|
|
27342
27325
|
const minutes = Math.floor(timeInSeconds / 60);
|
|
@@ -27345,7 +27328,7 @@ var formatTime2 = (timeInSeconds) => {
|
|
|
27345
27328
|
};
|
|
27346
27329
|
var TimeDisplay = ({ fps, playerRef }) => {
|
|
27347
27330
|
const [time, setTime] = React59.useState(0);
|
|
27348
|
-
|
|
27331
|
+
useEffect50(() => {
|
|
27349
27332
|
const { current } = playerRef;
|
|
27350
27333
|
if (!current) {
|
|
27351
27334
|
return;
|
|
@@ -27516,7 +27499,7 @@ var Demo = () => {
|
|
|
27516
27499
|
const [cardOrder, setCardOrder] = useState47([0, 1, 2, 3]);
|
|
27517
27500
|
const [emojiIndex, setEmojiIndex] = useState47(0);
|
|
27518
27501
|
const [error2, setError] = useState47(false);
|
|
27519
|
-
|
|
27502
|
+
useEffect51(() => {
|
|
27520
27503
|
getDataAndProps().then((d2) => {
|
|
27521
27504
|
setData(d2);
|
|
27522
27505
|
}).catch((err) => {
|
|
@@ -27524,7 +27507,7 @@ var Demo = () => {
|
|
|
27524
27507
|
setError(true);
|
|
27525
27508
|
});
|
|
27526
27509
|
}, []);
|
|
27527
|
-
|
|
27510
|
+
useEffect51(() => {
|
|
27528
27511
|
const { current: playerRef } = ref;
|
|
27529
27512
|
if (!playerRef || !data2) {
|
|
27530
27513
|
return;
|
|
@@ -27658,16 +27641,16 @@ var ClearButton = (props) => {
|
|
|
27658
27641
|
|
|
27659
27642
|
// src/components/homepage/MuxVideo.tsx
|
|
27660
27643
|
import Hls2 from "hls.js";
|
|
27661
|
-
import { forwardRef as forwardRef31, useEffect as
|
|
27644
|
+
import { forwardRef as forwardRef31, useEffect as useEffect55, useImperativeHandle as useImperativeHandle15, useRef as useRef45 } from "react";
|
|
27662
27645
|
|
|
27663
27646
|
// src/components/homepage/VideoPlayerWithControls.tsx
|
|
27664
27647
|
import Hls from "hls.js";
|
|
27665
27648
|
import"plyr/dist/plyr.css";
|
|
27666
|
-
import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as
|
|
27649
|
+
import { forwardRef as forwardRef30, useCallback as useCallback45, useEffect as useEffect53, useRef as useRef43, useState as useState48 } from "react";
|
|
27667
27650
|
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
27668
27651
|
var useCombinedRefs = function(...refs) {
|
|
27669
27652
|
const targetRef = useRef43(null);
|
|
27670
|
-
|
|
27653
|
+
useEffect53(() => {
|
|
27671
27654
|
refs.forEach((ref) => {
|
|
27672
27655
|
if (!ref)
|
|
27673
27656
|
return;
|
|
@@ -27696,12 +27679,12 @@ var VideoPlayerWithControls = forwardRef30(({ playbackId, poster, currentTime, o
|
|
|
27696
27679
|
console.error("Error getting img dimensions", event);
|
|
27697
27680
|
}
|
|
27698
27681
|
}, [onLoaded, onSize]);
|
|
27699
|
-
|
|
27682
|
+
useEffect53(() => {
|
|
27700
27683
|
const img = new Image;
|
|
27701
27684
|
img.onload = (evt) => onImageLoad(evt);
|
|
27702
27685
|
img.src = poster;
|
|
27703
27686
|
}, [onImageLoad, poster]);
|
|
27704
|
-
|
|
27687
|
+
useEffect53(() => {
|
|
27705
27688
|
const video = videoRef.current;
|
|
27706
27689
|
const src = `https://stream.mux.com/${playbackId}.m3u8`;
|
|
27707
27690
|
let hls;
|
|
@@ -27744,7 +27727,7 @@ var VideoPlayerWithControls = forwardRef30(({ playbackId, poster, currentTime, o
|
|
|
27744
27727
|
}
|
|
27745
27728
|
};
|
|
27746
27729
|
}, [playbackId, playerInitTime, videoError, videoRef]);
|
|
27747
|
-
|
|
27730
|
+
useEffect53(() => {
|
|
27748
27731
|
const video = videoRef.current;
|
|
27749
27732
|
if (currentTime && video) {
|
|
27750
27733
|
video.currentTime = currentTime;
|
|
@@ -27771,7 +27754,7 @@ var MuxVideoForward = ({ muxId, ...props }, ref) => {
|
|
|
27771
27754
|
const videoRef = useRef45(null);
|
|
27772
27755
|
const vidUrl = getVideoToPlayUrl(muxId);
|
|
27773
27756
|
useImperativeHandle15(ref, () => videoRef.current, []);
|
|
27774
|
-
|
|
27757
|
+
useEffect55(() => {
|
|
27775
27758
|
let hls;
|
|
27776
27759
|
if (videoRef.current) {
|
|
27777
27760
|
const { current } = videoRef;
|
|
@@ -27884,11 +27867,11 @@ var EditorStarterSection = () => {
|
|
|
27884
27867
|
var EditorStarterSection_default = EditorStarterSection;
|
|
27885
27868
|
|
|
27886
27869
|
// src/components/homepage/EvaluateRemotion.tsx
|
|
27887
|
-
import { useEffect as
|
|
27870
|
+
import { useEffect as useEffect56, useState as useState49 } from "react";
|
|
27888
27871
|
import { jsx as jsx109, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
27889
27872
|
var EvaluateRemotionSection = () => {
|
|
27890
27873
|
const [dailyAvatars, setDailyAvatars] = useState49([]);
|
|
27891
|
-
|
|
27874
|
+
useEffect56(() => {
|
|
27892
27875
|
const avatars = [
|
|
27893
27876
|
"/img/freelancers/alex.jpeg",
|
|
27894
27877
|
"/img/freelancers/antoine.jpeg",
|
|
@@ -27987,7 +27970,7 @@ var EvaluateRemotionSection = () => {
|
|
|
27987
27970
|
var EvaluateRemotion_default = EvaluateRemotionSection;
|
|
27988
27971
|
|
|
27989
27972
|
// src/components/homepage/IfYouKnowReact.tsx
|
|
27990
|
-
import { useEffect as
|
|
27973
|
+
import { useEffect as useEffect57, useState as useState50 } from "react";
|
|
27991
27974
|
import { jsx as jsx110, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
27992
27975
|
var isWebkit = () => {
|
|
27993
27976
|
if (typeof window === "undefined") {
|
|
@@ -28003,7 +27986,7 @@ var icon2 = {
|
|
|
28003
27986
|
};
|
|
28004
27987
|
var IfYouKnowReact = () => {
|
|
28005
27988
|
const [vid, setVid] = useState50("/img/compose.webm");
|
|
28006
|
-
|
|
27989
|
+
useEffect57(() => {
|
|
28007
27990
|
if (isWebkit()) {
|
|
28008
27991
|
setVid("/img/compose.mp4");
|
|
28009
27992
|
}
|
|
@@ -28150,7 +28133,7 @@ var NewsletterButton = () => {
|
|
|
28150
28133
|
};
|
|
28151
28134
|
|
|
28152
28135
|
// src/components/homepage/ParameterizeAndEdit.tsx
|
|
28153
|
-
import { useEffect as
|
|
28136
|
+
import { useEffect as useEffect58, useRef as useRef46, useState as useState53 } from "react";
|
|
28154
28137
|
import { jsx as jsx114, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
28155
28138
|
var icon3 = {
|
|
28156
28139
|
height: 16,
|
|
@@ -28159,7 +28142,7 @@ var icon3 = {
|
|
|
28159
28142
|
var ParameterizeAndEdit = () => {
|
|
28160
28143
|
const ref = useRef46(null);
|
|
28161
28144
|
const [vid, setVid] = useState53("/img/editing-vp9-chrome.webm");
|
|
28162
|
-
|
|
28145
|
+
useEffect58(() => {
|
|
28163
28146
|
if (isWebkit()) {
|
|
28164
28147
|
setVid("/img/editing-safari.mp4");
|
|
28165
28148
|
}
|
|
@@ -28273,7 +28256,7 @@ var ParameterizeAndEdit = () => {
|
|
|
28273
28256
|
};
|
|
28274
28257
|
|
|
28275
28258
|
// src/components/homepage/RealMp4Videos.tsx
|
|
28276
|
-
import { useEffect as
|
|
28259
|
+
import { useEffect as useEffect59, useRef as useRef47, useState as useState55 } from "react";
|
|
28277
28260
|
import { jsx as jsx116, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
28278
28261
|
var icon4 = {
|
|
28279
28262
|
height: 16,
|
|
@@ -28283,12 +28266,12 @@ var RealMP4Videos = () => {
|
|
|
28283
28266
|
const ref = useRef47(null);
|
|
28284
28267
|
const videoRef = useRef47(null);
|
|
28285
28268
|
const [vid, setVid] = useState55("/img/render-progress.webm");
|
|
28286
|
-
|
|
28269
|
+
useEffect59(() => {
|
|
28287
28270
|
if (isWebkit()) {
|
|
28288
28271
|
setVid("/img/render-progress.mp4");
|
|
28289
28272
|
}
|
|
28290
28273
|
}, []);
|
|
28291
|
-
|
|
28274
|
+
useEffect59(() => {
|
|
28292
28275
|
const { current } = ref;
|
|
28293
28276
|
if (!current) {
|
|
28294
28277
|
return;
|
|
@@ -28534,7 +28517,7 @@ var TrustedByBanner = () => {
|
|
|
28534
28517
|
var TrustedByBanner_default = TrustedByBanner;
|
|
28535
28518
|
|
|
28536
28519
|
// src/components/homepage/VideoAppsShowcase.tsx
|
|
28537
|
-
import { useEffect as
|
|
28520
|
+
import { useEffect as useEffect60, useRef as useRef48, useState as useState56 } from "react";
|
|
28538
28521
|
import { jsx as jsx118, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
28539
28522
|
var tabs = [
|
|
28540
28523
|
"Music visualization",
|
|
@@ -28592,7 +28575,7 @@ var VideoAppsShowcase = () => {
|
|
|
28592
28575
|
const [isPlaying, setIsPlaying] = useState56(false);
|
|
28593
28576
|
const videoRef = useRef48(null);
|
|
28594
28577
|
const containerRef = useRef48(null);
|
|
28595
|
-
|
|
28578
|
+
useEffect60(() => {
|
|
28596
28579
|
const video = videoRef.current;
|
|
28597
28580
|
if (video) {
|
|
28598
28581
|
video.pause();
|