@remotion/promo-pages 4.0.394 → 4.0.396
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 +55 -18
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +55 -18
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +29 -6
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +29 -6
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +29 -6
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +35 -12
- package/dist/design.js +29 -6
- package/dist/homepage/Pricing.js +29 -6
- package/dist/template-modal-content.js +29 -6
- package/dist/templates.js +35 -12
- package/package.json +12 -12
package/dist/Homepage.js
CHANGED
|
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
755
755
|
});
|
|
756
756
|
}, useIsPlayer = () => {
|
|
757
757
|
return useContext(IsPlayerContext);
|
|
758
|
-
}, VERSION = "4.0.
|
|
758
|
+
}, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
|
|
759
759
|
if (typeof globalThis === "undefined") {
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
@@ -2929,11 +2929,15 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
2929
2929
|
});
|
|
2930
2930
|
}, getCrossOriginValue = ({
|
|
2931
2931
|
crossOrigin,
|
|
2932
|
-
requestsVideoFrame
|
|
2932
|
+
requestsVideoFrame,
|
|
2933
|
+
isClientSideRendering
|
|
2933
2934
|
}) => {
|
|
2934
2935
|
if (crossOrigin !== undefined && crossOrigin !== null) {
|
|
2935
2936
|
return crossOrigin;
|
|
2936
2937
|
}
|
|
2938
|
+
if (isClientSideRendering) {
|
|
2939
|
+
return "anonymous";
|
|
2940
|
+
}
|
|
2937
2941
|
if (requestsVideoFrame) {
|
|
2938
2942
|
return "anonymous";
|
|
2939
2943
|
}
|
|
@@ -3638,8 +3642,17 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3638
3642
|
const [blocks, setBlocks] = useState13([]);
|
|
3639
3643
|
const [onBufferingCallbacks, setOnBufferingCallbacks] = useState13([]);
|
|
3640
3644
|
const [onResumeCallbacks, setOnResumeCallbacks] = useState13([]);
|
|
3645
|
+
const env = useRemotionEnvironment();
|
|
3646
|
+
const rendering = env.isRendering;
|
|
3641
3647
|
const buffering = useRef9(false);
|
|
3642
3648
|
const addBlock = useCallback8((block) => {
|
|
3649
|
+
if (rendering) {
|
|
3650
|
+
return {
|
|
3651
|
+
unblock: () => {
|
|
3652
|
+
return;
|
|
3653
|
+
}
|
|
3654
|
+
};
|
|
3655
|
+
}
|
|
3643
3656
|
setBlocks((b) => [...b, block]);
|
|
3644
3657
|
return {
|
|
3645
3658
|
unblock: () => {
|
|
@@ -3652,7 +3665,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3652
3665
|
});
|
|
3653
3666
|
}
|
|
3654
3667
|
};
|
|
3655
|
-
}, []);
|
|
3668
|
+
}, [rendering]);
|
|
3656
3669
|
const listenForBuffering = useCallback8((callback) => {
|
|
3657
3670
|
setOnBufferingCallbacks((c) => [...c, callback]);
|
|
3658
3671
|
return {
|
|
@@ -3670,6 +3683,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3670
3683
|
};
|
|
3671
3684
|
}, []);
|
|
3672
3685
|
useEffect7(() => {
|
|
3686
|
+
if (rendering) {
|
|
3687
|
+
return;
|
|
3688
|
+
}
|
|
3673
3689
|
if (blocks.length > 0) {
|
|
3674
3690
|
onBufferingCallbacks.forEach((c) => c());
|
|
3675
3691
|
playbackLogging({
|
|
@@ -3682,6 +3698,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3682
3698
|
}, [blocks]);
|
|
3683
3699
|
if (typeof window !== "undefined") {
|
|
3684
3700
|
useLayoutEffect6(() => {
|
|
3701
|
+
if (rendering) {
|
|
3702
|
+
return;
|
|
3703
|
+
}
|
|
3685
3704
|
if (blocks.length === 0) {
|
|
3686
3705
|
onResumeCallbacks.forEach((c) => c());
|
|
3687
3706
|
playbackLogging({
|
|
@@ -4465,7 +4484,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4465
4484
|
warnAboutTooHighVolume(userPreferredVolume);
|
|
4466
4485
|
const crossOriginValue = getCrossOriginValue({
|
|
4467
4486
|
crossOrigin,
|
|
4468
|
-
requestsVideoFrame: false
|
|
4487
|
+
requestsVideoFrame: false,
|
|
4488
|
+
isClientSideRendering: false
|
|
4469
4489
|
});
|
|
4470
4490
|
const propsToPass = useMemo21(() => {
|
|
4471
4491
|
return {
|
|
@@ -5202,9 +5222,11 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5202
5222
|
delayRender2
|
|
5203
5223
|
]);
|
|
5204
5224
|
}
|
|
5225
|
+
const { isClientSideRendering } = useRemotionEnvironment();
|
|
5205
5226
|
const crossOriginValue = getCrossOriginValue({
|
|
5206
5227
|
crossOrigin,
|
|
5207
|
-
requestsVideoFrame: false
|
|
5228
|
+
requestsVideoFrame: false,
|
|
5229
|
+
isClientSideRendering
|
|
5208
5230
|
});
|
|
5209
5231
|
return /* @__PURE__ */ jsx25("img", {
|
|
5210
5232
|
...props2,
|
|
@@ -5929,7 +5951,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5929
5951
|
}, [isSequenceHidden, style]);
|
|
5930
5952
|
const crossOriginValue = getCrossOriginValue({
|
|
5931
5953
|
crossOrigin,
|
|
5932
|
-
requestsVideoFrame: Boolean(onVideoFrame)
|
|
5954
|
+
requestsVideoFrame: Boolean(onVideoFrame),
|
|
5955
|
+
isClientSideRendering: false
|
|
5933
5956
|
});
|
|
5934
5957
|
return /* @__PURE__ */ jsx30("video", {
|
|
5935
5958
|
ref: videoRef,
|
|
@@ -20323,7 +20346,7 @@ var GitHubStars = () => {
|
|
|
20323
20346
|
width: "45px"
|
|
20324
20347
|
}),
|
|
20325
20348
|
/* @__PURE__ */ jsx47(StatItemContent, {
|
|
20326
|
-
content: "
|
|
20349
|
+
content: "25k",
|
|
20327
20350
|
width: "80px",
|
|
20328
20351
|
fontSize: "2.5rem",
|
|
20329
20352
|
fontWeight: "bold"
|
|
@@ -21877,6 +21900,15 @@ var usePlayer = () => {
|
|
|
21877
21900
|
play(e);
|
|
21878
21901
|
}
|
|
21879
21902
|
}, [imperativePlaying, pause, play]);
|
|
21903
|
+
const isPlaying = useCallback28(() => {
|
|
21904
|
+
return imperativePlaying.current;
|
|
21905
|
+
}, [imperativePlaying]);
|
|
21906
|
+
const getCurrentFrame = useCallback28(() => {
|
|
21907
|
+
return frameRef.current;
|
|
21908
|
+
}, [frameRef]);
|
|
21909
|
+
const isBuffering = useCallback28(() => {
|
|
21910
|
+
return buffering.current;
|
|
21911
|
+
}, [buffering]);
|
|
21880
21912
|
const returnValue = useMemo42(() => {
|
|
21881
21913
|
return {
|
|
21882
21914
|
frameBack,
|
|
@@ -21888,28 +21920,29 @@ var usePlayer = () => {
|
|
|
21888
21920
|
pause,
|
|
21889
21921
|
seek: seek2,
|
|
21890
21922
|
isFirstFrame,
|
|
21891
|
-
getCurrentFrame
|
|
21892
|
-
isPlaying
|
|
21893
|
-
isBuffering
|
|
21923
|
+
getCurrentFrame,
|
|
21924
|
+
isPlaying,
|
|
21925
|
+
isBuffering,
|
|
21894
21926
|
pauseAndReturnToPlayStart,
|
|
21895
21927
|
hasPlayed,
|
|
21896
21928
|
toggle
|
|
21897
21929
|
};
|
|
21898
21930
|
}, [
|
|
21899
|
-
buffering,
|
|
21900
21931
|
emitter,
|
|
21901
21932
|
frameBack,
|
|
21902
21933
|
frameForward,
|
|
21903
21934
|
hasPlayed,
|
|
21904
|
-
imperativePlaying,
|
|
21905
21935
|
isFirstFrame,
|
|
21906
21936
|
isLastFrame,
|
|
21937
|
+
getCurrentFrame,
|
|
21907
21938
|
pause,
|
|
21908
21939
|
pauseAndReturnToPlayStart,
|
|
21909
21940
|
play,
|
|
21910
21941
|
playing,
|
|
21911
21942
|
seek2,
|
|
21912
|
-
toggle
|
|
21943
|
+
toggle,
|
|
21944
|
+
isPlaying,
|
|
21945
|
+
isBuffering
|
|
21913
21946
|
]);
|
|
21914
21947
|
return returnValue;
|
|
21915
21948
|
};
|
|
@@ -22078,7 +22111,7 @@ var usePlayback = ({
|
|
|
22078
22111
|
}) => {
|
|
22079
22112
|
const config = Internals.useUnsafeVideoConfig();
|
|
22080
22113
|
const frame = Internals.Timeline.useTimelinePosition();
|
|
22081
|
-
const { playing, pause, emitter } = usePlayer();
|
|
22114
|
+
const { playing, pause, emitter, isPlaying } = usePlayer();
|
|
22082
22115
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
22083
22116
|
const isBackgroundedRef = useIsBackgrounded();
|
|
22084
22117
|
const lastTimeUpdateEvent = useRef42(null);
|
|
@@ -22119,6 +22152,9 @@ var usePlayback = ({
|
|
|
22119
22152
|
if (hasBeenStopped) {
|
|
22120
22153
|
return;
|
|
22121
22154
|
}
|
|
22155
|
+
if (!isPlaying()) {
|
|
22156
|
+
return;
|
|
22157
|
+
}
|
|
22122
22158
|
const time = performance.now() - startedTime;
|
|
22123
22159
|
const actualLastFrame = outFrame ?? config.durationInFrames - 1;
|
|
22124
22160
|
const actualFirstFrame = inFrame ?? 0;
|
|
@@ -22190,7 +22226,8 @@ var usePlayback = ({
|
|
|
22190
22226
|
moveToBeginningWhenEnded,
|
|
22191
22227
|
isBackgroundedRef,
|
|
22192
22228
|
getCurrentFrame,
|
|
22193
|
-
context
|
|
22229
|
+
context,
|
|
22230
|
+
isPlaying
|
|
22194
22231
|
]);
|
|
22195
22232
|
useEffect52(() => {
|
|
22196
22233
|
const interval = setInterval(() => {
|
|
@@ -26413,7 +26450,7 @@ var Cards = ({
|
|
|
26413
26450
|
// src/components/homepage/Demo/Comp.tsx
|
|
26414
26451
|
import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
26415
26452
|
var getDataAndProps = async () => {
|
|
26416
|
-
const location = await fetch("https://bugs-
|
|
26453
|
+
const location = await fetch("https://bugs-five.vercel.app/api/location").then((res) => res.json());
|
|
26417
26454
|
const trending = await fetch(`https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}&country=${location.country}`).then((res) => res.json()).then((data) => {
|
|
26418
26455
|
return {
|
|
26419
26456
|
repos: data.trending.repos.slice(0, 3),
|
|
@@ -28992,7 +29029,7 @@ var FEATURED_TEMPLATES = [
|
|
|
28992
29029
|
contributedBy: null
|
|
28993
29030
|
},
|
|
28994
29031
|
{
|
|
28995
|
-
homePageLabel: "Prompt to Motion
|
|
29032
|
+
homePageLabel: "Prompt to Motion Graphics",
|
|
28996
29033
|
shortName: "Prompt to Motion Graphics (Next.js)",
|
|
28997
29034
|
org: "remotion-dev",
|
|
28998
29035
|
repoName: "template-prompt-to-motion-graphics",
|
|
@@ -30063,7 +30100,7 @@ var GithubButton = () => {
|
|
|
30063
30100
|
" ",
|
|
30064
30101
|
/* @__PURE__ */ jsx151("div", {
|
|
30065
30102
|
className: "text-xs inline-block ml-2 leading-none mt-[3px] self-center",
|
|
30066
|
-
children: "
|
|
30103
|
+
children: "25k"
|
|
30067
30104
|
})
|
|
30068
30105
|
]
|
|
30069
30106
|
});
|
|
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
755
755
|
});
|
|
756
756
|
}, useIsPlayer = () => {
|
|
757
757
|
return useContext(IsPlayerContext);
|
|
758
|
-
}, VERSION = "4.0.
|
|
758
|
+
}, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
|
|
759
759
|
if (typeof globalThis === "undefined") {
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
@@ -2929,11 +2929,15 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
2929
2929
|
});
|
|
2930
2930
|
}, getCrossOriginValue = ({
|
|
2931
2931
|
crossOrigin,
|
|
2932
|
-
requestsVideoFrame
|
|
2932
|
+
requestsVideoFrame,
|
|
2933
|
+
isClientSideRendering
|
|
2933
2934
|
}) => {
|
|
2934
2935
|
if (crossOrigin !== undefined && crossOrigin !== null) {
|
|
2935
2936
|
return crossOrigin;
|
|
2936
2937
|
}
|
|
2938
|
+
if (isClientSideRendering) {
|
|
2939
|
+
return "anonymous";
|
|
2940
|
+
}
|
|
2937
2941
|
if (requestsVideoFrame) {
|
|
2938
2942
|
return "anonymous";
|
|
2939
2943
|
}
|
|
@@ -3638,8 +3642,17 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3638
3642
|
const [blocks, setBlocks] = useState13([]);
|
|
3639
3643
|
const [onBufferingCallbacks, setOnBufferingCallbacks] = useState13([]);
|
|
3640
3644
|
const [onResumeCallbacks, setOnResumeCallbacks] = useState13([]);
|
|
3645
|
+
const env = useRemotionEnvironment();
|
|
3646
|
+
const rendering = env.isRendering;
|
|
3641
3647
|
const buffering = useRef9(false);
|
|
3642
3648
|
const addBlock = useCallback8((block) => {
|
|
3649
|
+
if (rendering) {
|
|
3650
|
+
return {
|
|
3651
|
+
unblock: () => {
|
|
3652
|
+
return;
|
|
3653
|
+
}
|
|
3654
|
+
};
|
|
3655
|
+
}
|
|
3643
3656
|
setBlocks((b) => [...b, block]);
|
|
3644
3657
|
return {
|
|
3645
3658
|
unblock: () => {
|
|
@@ -3652,7 +3665,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3652
3665
|
});
|
|
3653
3666
|
}
|
|
3654
3667
|
};
|
|
3655
|
-
}, []);
|
|
3668
|
+
}, [rendering]);
|
|
3656
3669
|
const listenForBuffering = useCallback8((callback) => {
|
|
3657
3670
|
setOnBufferingCallbacks((c) => [...c, callback]);
|
|
3658
3671
|
return {
|
|
@@ -3670,6 +3683,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3670
3683
|
};
|
|
3671
3684
|
}, []);
|
|
3672
3685
|
useEffect7(() => {
|
|
3686
|
+
if (rendering) {
|
|
3687
|
+
return;
|
|
3688
|
+
}
|
|
3673
3689
|
if (blocks.length > 0) {
|
|
3674
3690
|
onBufferingCallbacks.forEach((c) => c());
|
|
3675
3691
|
playbackLogging({
|
|
@@ -3682,6 +3698,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3682
3698
|
}, [blocks]);
|
|
3683
3699
|
if (typeof window !== "undefined") {
|
|
3684
3700
|
useLayoutEffect6(() => {
|
|
3701
|
+
if (rendering) {
|
|
3702
|
+
return;
|
|
3703
|
+
}
|
|
3685
3704
|
if (blocks.length === 0) {
|
|
3686
3705
|
onResumeCallbacks.forEach((c) => c());
|
|
3687
3706
|
playbackLogging({
|
|
@@ -4465,7 +4484,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4465
4484
|
warnAboutTooHighVolume(userPreferredVolume);
|
|
4466
4485
|
const crossOriginValue = getCrossOriginValue({
|
|
4467
4486
|
crossOrigin,
|
|
4468
|
-
requestsVideoFrame: false
|
|
4487
|
+
requestsVideoFrame: false,
|
|
4488
|
+
isClientSideRendering: false
|
|
4469
4489
|
});
|
|
4470
4490
|
const propsToPass = useMemo21(() => {
|
|
4471
4491
|
return {
|
|
@@ -5202,9 +5222,11 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5202
5222
|
delayRender2
|
|
5203
5223
|
]);
|
|
5204
5224
|
}
|
|
5225
|
+
const { isClientSideRendering } = useRemotionEnvironment();
|
|
5205
5226
|
const crossOriginValue = getCrossOriginValue({
|
|
5206
5227
|
crossOrigin,
|
|
5207
|
-
requestsVideoFrame: false
|
|
5228
|
+
requestsVideoFrame: false,
|
|
5229
|
+
isClientSideRendering
|
|
5208
5230
|
});
|
|
5209
5231
|
return /* @__PURE__ */ jsx25("img", {
|
|
5210
5232
|
...props2,
|
|
@@ -5929,7 +5951,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5929
5951
|
}, [isSequenceHidden, style]);
|
|
5930
5952
|
const crossOriginValue = getCrossOriginValue({
|
|
5931
5953
|
crossOrigin,
|
|
5932
|
-
requestsVideoFrame: Boolean(onVideoFrame)
|
|
5954
|
+
requestsVideoFrame: Boolean(onVideoFrame),
|
|
5955
|
+
isClientSideRendering: false
|
|
5933
5956
|
});
|
|
5934
5957
|
return /* @__PURE__ */ jsx30("video", {
|
|
5935
5958
|
ref: videoRef,
|
|
@@ -20323,7 +20346,7 @@ var GitHubStars = () => {
|
|
|
20323
20346
|
width: "45px"
|
|
20324
20347
|
}),
|
|
20325
20348
|
/* @__PURE__ */ jsx47(StatItemContent, {
|
|
20326
|
-
content: "
|
|
20349
|
+
content: "25k",
|
|
20327
20350
|
width: "80px",
|
|
20328
20351
|
fontSize: "2.5rem",
|
|
20329
20352
|
fontWeight: "bold"
|
|
@@ -21877,6 +21900,15 @@ var usePlayer = () => {
|
|
|
21877
21900
|
play(e);
|
|
21878
21901
|
}
|
|
21879
21902
|
}, [imperativePlaying, pause, play]);
|
|
21903
|
+
const isPlaying = useCallback28(() => {
|
|
21904
|
+
return imperativePlaying.current;
|
|
21905
|
+
}, [imperativePlaying]);
|
|
21906
|
+
const getCurrentFrame = useCallback28(() => {
|
|
21907
|
+
return frameRef.current;
|
|
21908
|
+
}, [frameRef]);
|
|
21909
|
+
const isBuffering = useCallback28(() => {
|
|
21910
|
+
return buffering.current;
|
|
21911
|
+
}, [buffering]);
|
|
21880
21912
|
const returnValue = useMemo42(() => {
|
|
21881
21913
|
return {
|
|
21882
21914
|
frameBack,
|
|
@@ -21888,28 +21920,29 @@ var usePlayer = () => {
|
|
|
21888
21920
|
pause,
|
|
21889
21921
|
seek: seek2,
|
|
21890
21922
|
isFirstFrame,
|
|
21891
|
-
getCurrentFrame
|
|
21892
|
-
isPlaying
|
|
21893
|
-
isBuffering
|
|
21923
|
+
getCurrentFrame,
|
|
21924
|
+
isPlaying,
|
|
21925
|
+
isBuffering,
|
|
21894
21926
|
pauseAndReturnToPlayStart,
|
|
21895
21927
|
hasPlayed,
|
|
21896
21928
|
toggle
|
|
21897
21929
|
};
|
|
21898
21930
|
}, [
|
|
21899
|
-
buffering,
|
|
21900
21931
|
emitter,
|
|
21901
21932
|
frameBack,
|
|
21902
21933
|
frameForward,
|
|
21903
21934
|
hasPlayed,
|
|
21904
|
-
imperativePlaying,
|
|
21905
21935
|
isFirstFrame,
|
|
21906
21936
|
isLastFrame,
|
|
21937
|
+
getCurrentFrame,
|
|
21907
21938
|
pause,
|
|
21908
21939
|
pauseAndReturnToPlayStart,
|
|
21909
21940
|
play,
|
|
21910
21941
|
playing,
|
|
21911
21942
|
seek2,
|
|
21912
|
-
toggle
|
|
21943
|
+
toggle,
|
|
21944
|
+
isPlaying,
|
|
21945
|
+
isBuffering
|
|
21913
21946
|
]);
|
|
21914
21947
|
return returnValue;
|
|
21915
21948
|
};
|
|
@@ -22078,7 +22111,7 @@ var usePlayback = ({
|
|
|
22078
22111
|
}) => {
|
|
22079
22112
|
const config = Internals.useUnsafeVideoConfig();
|
|
22080
22113
|
const frame = Internals.Timeline.useTimelinePosition();
|
|
22081
|
-
const { playing, pause, emitter } = usePlayer();
|
|
22114
|
+
const { playing, pause, emitter, isPlaying } = usePlayer();
|
|
22082
22115
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
22083
22116
|
const isBackgroundedRef = useIsBackgrounded();
|
|
22084
22117
|
const lastTimeUpdateEvent = useRef42(null);
|
|
@@ -22119,6 +22152,9 @@ var usePlayback = ({
|
|
|
22119
22152
|
if (hasBeenStopped) {
|
|
22120
22153
|
return;
|
|
22121
22154
|
}
|
|
22155
|
+
if (!isPlaying()) {
|
|
22156
|
+
return;
|
|
22157
|
+
}
|
|
22122
22158
|
const time = performance.now() - startedTime;
|
|
22123
22159
|
const actualLastFrame = outFrame ?? config.durationInFrames - 1;
|
|
22124
22160
|
const actualFirstFrame = inFrame ?? 0;
|
|
@@ -22190,7 +22226,8 @@ var usePlayback = ({
|
|
|
22190
22226
|
moveToBeginningWhenEnded,
|
|
22191
22227
|
isBackgroundedRef,
|
|
22192
22228
|
getCurrentFrame,
|
|
22193
|
-
context
|
|
22229
|
+
context,
|
|
22230
|
+
isPlaying
|
|
22194
22231
|
]);
|
|
22195
22232
|
useEffect52(() => {
|
|
22196
22233
|
const interval = setInterval(() => {
|
|
@@ -26413,7 +26450,7 @@ var Cards = ({
|
|
|
26413
26450
|
// src/components/homepage/Demo/Comp.tsx
|
|
26414
26451
|
import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
26415
26452
|
var getDataAndProps = async () => {
|
|
26416
|
-
const location = await fetch("https://bugs-
|
|
26453
|
+
const location = await fetch("https://bugs-five.vercel.app/api/location").then((res) => res.json());
|
|
26417
26454
|
const trending = await fetch(`https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}&country=${location.country}`).then((res) => res.json()).then((data) => {
|
|
26418
26455
|
return {
|
|
26419
26456
|
repos: data.trending.repos.slice(0, 3),
|
|
@@ -28992,7 +29029,7 @@ var FEATURED_TEMPLATES = [
|
|
|
28992
29029
|
contributedBy: null
|
|
28993
29030
|
},
|
|
28994
29031
|
{
|
|
28995
|
-
homePageLabel: "Prompt to Motion
|
|
29032
|
+
homePageLabel: "Prompt to Motion Graphics",
|
|
28996
29033
|
shortName: "Prompt to Motion Graphics (Next.js)",
|
|
28997
29034
|
org: "remotion-dev",
|
|
28998
29035
|
repoName: "template-prompt-to-motion-graphics",
|
|
@@ -30063,7 +30100,7 @@ var GithubButton = () => {
|
|
|
30063
30100
|
" ",
|
|
30064
30101
|
/* @__PURE__ */ jsx151("div", {
|
|
30065
30102
|
className: "text-xs inline-block ml-2 leading-none mt-[3px] self-center",
|
|
30066
|
-
children: "
|
|
30103
|
+
children: "25k"
|
|
30067
30104
|
})
|
|
30068
30105
|
]
|
|
30069
30106
|
});
|
|
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
755
755
|
});
|
|
756
756
|
}, useIsPlayer = () => {
|
|
757
757
|
return useContext(IsPlayerContext);
|
|
758
|
-
}, VERSION = "4.0.
|
|
758
|
+
}, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
|
|
759
759
|
if (typeof globalThis === "undefined") {
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
@@ -2929,11 +2929,15 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
2929
2929
|
});
|
|
2930
2930
|
}, getCrossOriginValue = ({
|
|
2931
2931
|
crossOrigin,
|
|
2932
|
-
requestsVideoFrame
|
|
2932
|
+
requestsVideoFrame,
|
|
2933
|
+
isClientSideRendering
|
|
2933
2934
|
}) => {
|
|
2934
2935
|
if (crossOrigin !== undefined && crossOrigin !== null) {
|
|
2935
2936
|
return crossOrigin;
|
|
2936
2937
|
}
|
|
2938
|
+
if (isClientSideRendering) {
|
|
2939
|
+
return "anonymous";
|
|
2940
|
+
}
|
|
2937
2941
|
if (requestsVideoFrame) {
|
|
2938
2942
|
return "anonymous";
|
|
2939
2943
|
}
|
|
@@ -3638,8 +3642,17 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3638
3642
|
const [blocks, setBlocks] = useState13([]);
|
|
3639
3643
|
const [onBufferingCallbacks, setOnBufferingCallbacks] = useState13([]);
|
|
3640
3644
|
const [onResumeCallbacks, setOnResumeCallbacks] = useState13([]);
|
|
3645
|
+
const env = useRemotionEnvironment();
|
|
3646
|
+
const rendering = env.isRendering;
|
|
3641
3647
|
const buffering = useRef9(false);
|
|
3642
3648
|
const addBlock = useCallback8((block) => {
|
|
3649
|
+
if (rendering) {
|
|
3650
|
+
return {
|
|
3651
|
+
unblock: () => {
|
|
3652
|
+
return;
|
|
3653
|
+
}
|
|
3654
|
+
};
|
|
3655
|
+
}
|
|
3643
3656
|
setBlocks((b) => [...b, block]);
|
|
3644
3657
|
return {
|
|
3645
3658
|
unblock: () => {
|
|
@@ -3652,7 +3665,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3652
3665
|
});
|
|
3653
3666
|
}
|
|
3654
3667
|
};
|
|
3655
|
-
}, []);
|
|
3668
|
+
}, [rendering]);
|
|
3656
3669
|
const listenForBuffering = useCallback8((callback) => {
|
|
3657
3670
|
setOnBufferingCallbacks((c) => [...c, callback]);
|
|
3658
3671
|
return {
|
|
@@ -3670,6 +3683,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3670
3683
|
};
|
|
3671
3684
|
}, []);
|
|
3672
3685
|
useEffect7(() => {
|
|
3686
|
+
if (rendering) {
|
|
3687
|
+
return;
|
|
3688
|
+
}
|
|
3673
3689
|
if (blocks.length > 0) {
|
|
3674
3690
|
onBufferingCallbacks.forEach((c) => c());
|
|
3675
3691
|
playbackLogging({
|
|
@@ -3682,6 +3698,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3682
3698
|
}, [blocks]);
|
|
3683
3699
|
if (typeof window !== "undefined") {
|
|
3684
3700
|
useLayoutEffect6(() => {
|
|
3701
|
+
if (rendering) {
|
|
3702
|
+
return;
|
|
3703
|
+
}
|
|
3685
3704
|
if (blocks.length === 0) {
|
|
3686
3705
|
onResumeCallbacks.forEach((c) => c());
|
|
3687
3706
|
playbackLogging({
|
|
@@ -4465,7 +4484,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4465
4484
|
warnAboutTooHighVolume(userPreferredVolume);
|
|
4466
4485
|
const crossOriginValue = getCrossOriginValue({
|
|
4467
4486
|
crossOrigin,
|
|
4468
|
-
requestsVideoFrame: false
|
|
4487
|
+
requestsVideoFrame: false,
|
|
4488
|
+
isClientSideRendering: false
|
|
4469
4489
|
});
|
|
4470
4490
|
const propsToPass = useMemo21(() => {
|
|
4471
4491
|
return {
|
|
@@ -5202,9 +5222,11 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5202
5222
|
delayRender2
|
|
5203
5223
|
]);
|
|
5204
5224
|
}
|
|
5225
|
+
const { isClientSideRendering } = useRemotionEnvironment();
|
|
5205
5226
|
const crossOriginValue = getCrossOriginValue({
|
|
5206
5227
|
crossOrigin,
|
|
5207
|
-
requestsVideoFrame: false
|
|
5228
|
+
requestsVideoFrame: false,
|
|
5229
|
+
isClientSideRendering
|
|
5208
5230
|
});
|
|
5209
5231
|
return /* @__PURE__ */ jsx25("img", {
|
|
5210
5232
|
...props2,
|
|
@@ -5929,7 +5951,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5929
5951
|
}, [isSequenceHidden, style]);
|
|
5930
5952
|
const crossOriginValue = getCrossOriginValue({
|
|
5931
5953
|
crossOrigin,
|
|
5932
|
-
requestsVideoFrame: Boolean(onVideoFrame)
|
|
5954
|
+
requestsVideoFrame: Boolean(onVideoFrame),
|
|
5955
|
+
isClientSideRendering: false
|
|
5933
5956
|
});
|
|
5934
5957
|
return /* @__PURE__ */ jsx30("video", {
|
|
5935
5958
|
ref: videoRef,
|
|
@@ -755,7 +755,7 @@ var __defProp2, __export2 = (target, all) => {
|
|
|
755
755
|
});
|
|
756
756
|
}, useIsPlayer = () => {
|
|
757
757
|
return useContext(IsPlayerContext);
|
|
758
|
-
}, VERSION = "4.0.
|
|
758
|
+
}, VERSION = "4.0.396", checkMultipleRemotionVersions = () => {
|
|
759
759
|
if (typeof globalThis === "undefined") {
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
@@ -2929,11 +2929,15 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
2929
2929
|
});
|
|
2930
2930
|
}, getCrossOriginValue = ({
|
|
2931
2931
|
crossOrigin,
|
|
2932
|
-
requestsVideoFrame
|
|
2932
|
+
requestsVideoFrame,
|
|
2933
|
+
isClientSideRendering
|
|
2933
2934
|
}) => {
|
|
2934
2935
|
if (crossOrigin !== undefined && crossOrigin !== null) {
|
|
2935
2936
|
return crossOrigin;
|
|
2936
2937
|
}
|
|
2938
|
+
if (isClientSideRendering) {
|
|
2939
|
+
return "anonymous";
|
|
2940
|
+
}
|
|
2937
2941
|
if (requestsVideoFrame) {
|
|
2938
2942
|
return "anonymous";
|
|
2939
2943
|
}
|
|
@@ -3638,8 +3642,17 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3638
3642
|
const [blocks, setBlocks] = useState13([]);
|
|
3639
3643
|
const [onBufferingCallbacks, setOnBufferingCallbacks] = useState13([]);
|
|
3640
3644
|
const [onResumeCallbacks, setOnResumeCallbacks] = useState13([]);
|
|
3645
|
+
const env = useRemotionEnvironment();
|
|
3646
|
+
const rendering = env.isRendering;
|
|
3641
3647
|
const buffering = useRef9(false);
|
|
3642
3648
|
const addBlock = useCallback8((block) => {
|
|
3649
|
+
if (rendering) {
|
|
3650
|
+
return {
|
|
3651
|
+
unblock: () => {
|
|
3652
|
+
return;
|
|
3653
|
+
}
|
|
3654
|
+
};
|
|
3655
|
+
}
|
|
3643
3656
|
setBlocks((b) => [...b, block]);
|
|
3644
3657
|
return {
|
|
3645
3658
|
unblock: () => {
|
|
@@ -3652,7 +3665,7 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3652
3665
|
});
|
|
3653
3666
|
}
|
|
3654
3667
|
};
|
|
3655
|
-
}, []);
|
|
3668
|
+
}, [rendering]);
|
|
3656
3669
|
const listenForBuffering = useCallback8((callback) => {
|
|
3657
3670
|
setOnBufferingCallbacks((c) => [...c, callback]);
|
|
3658
3671
|
return {
|
|
@@ -3670,6 +3683,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3670
3683
|
};
|
|
3671
3684
|
}, []);
|
|
3672
3685
|
useEffect7(() => {
|
|
3686
|
+
if (rendering) {
|
|
3687
|
+
return;
|
|
3688
|
+
}
|
|
3673
3689
|
if (blocks.length > 0) {
|
|
3674
3690
|
onBufferingCallbacks.forEach((c) => c());
|
|
3675
3691
|
playbackLogging({
|
|
@@ -3682,6 +3698,9 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
3682
3698
|
}, [blocks]);
|
|
3683
3699
|
if (typeof window !== "undefined") {
|
|
3684
3700
|
useLayoutEffect6(() => {
|
|
3701
|
+
if (rendering) {
|
|
3702
|
+
return;
|
|
3703
|
+
}
|
|
3685
3704
|
if (blocks.length === 0) {
|
|
3686
3705
|
onResumeCallbacks.forEach((c) => c());
|
|
3687
3706
|
playbackLogging({
|
|
@@ -4465,7 +4484,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
4465
4484
|
warnAboutTooHighVolume(userPreferredVolume);
|
|
4466
4485
|
const crossOriginValue = getCrossOriginValue({
|
|
4467
4486
|
crossOrigin,
|
|
4468
|
-
requestsVideoFrame: false
|
|
4487
|
+
requestsVideoFrame: false,
|
|
4488
|
+
isClientSideRendering: false
|
|
4469
4489
|
});
|
|
4470
4490
|
const propsToPass = useMemo21(() => {
|
|
4471
4491
|
return {
|
|
@@ -5202,9 +5222,11 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5202
5222
|
delayRender2
|
|
5203
5223
|
]);
|
|
5204
5224
|
}
|
|
5225
|
+
const { isClientSideRendering } = useRemotionEnvironment();
|
|
5205
5226
|
const crossOriginValue = getCrossOriginValue({
|
|
5206
5227
|
crossOrigin,
|
|
5207
|
-
requestsVideoFrame: false
|
|
5228
|
+
requestsVideoFrame: false,
|
|
5229
|
+
isClientSideRendering
|
|
5208
5230
|
});
|
|
5209
5231
|
return /* @__PURE__ */ jsx25("img", {
|
|
5210
5232
|
...props2,
|
|
@@ -5929,7 +5951,8 @@ Check that all your Remotion packages are on the same version. If your dependenc
|
|
|
5929
5951
|
}, [isSequenceHidden, style]);
|
|
5930
5952
|
const crossOriginValue = getCrossOriginValue({
|
|
5931
5953
|
crossOrigin,
|
|
5932
|
-
requestsVideoFrame: Boolean(onVideoFrame)
|
|
5954
|
+
requestsVideoFrame: Boolean(onVideoFrame),
|
|
5955
|
+
isClientSideRendering: false
|
|
5933
5956
|
});
|
|
5934
5957
|
return /* @__PURE__ */ jsx30("video", {
|
|
5935
5958
|
ref: videoRef,
|