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