@remotion/promo-pages 4.0.395 → 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 +24 -10
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/Homepage.js +24 -10
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/design.js +1 -1
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/homepage/Pricing.js +1 -1
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.js +1 -1
- package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/templates.js +1 -1
- package/dist/design.js +1 -1
- package/dist/homepage/Pricing.js +1 -1
- package/dist/template-modal-content.js +1 -1
- package/dist/templates.js +1 -1
- 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
|
}
|
|
@@ -21900,6 +21900,15 @@ var usePlayer = () => {
|
|
|
21900
21900
|
play(e);
|
|
21901
21901
|
}
|
|
21902
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]);
|
|
21903
21912
|
const returnValue = useMemo42(() => {
|
|
21904
21913
|
return {
|
|
21905
21914
|
frameBack,
|
|
@@ -21911,28 +21920,29 @@ var usePlayer = () => {
|
|
|
21911
21920
|
pause,
|
|
21912
21921
|
seek: seek2,
|
|
21913
21922
|
isFirstFrame,
|
|
21914
|
-
getCurrentFrame
|
|
21915
|
-
isPlaying
|
|
21916
|
-
isBuffering
|
|
21923
|
+
getCurrentFrame,
|
|
21924
|
+
isPlaying,
|
|
21925
|
+
isBuffering,
|
|
21917
21926
|
pauseAndReturnToPlayStart,
|
|
21918
21927
|
hasPlayed,
|
|
21919
21928
|
toggle
|
|
21920
21929
|
};
|
|
21921
21930
|
}, [
|
|
21922
|
-
buffering,
|
|
21923
21931
|
emitter,
|
|
21924
21932
|
frameBack,
|
|
21925
21933
|
frameForward,
|
|
21926
21934
|
hasPlayed,
|
|
21927
|
-
imperativePlaying,
|
|
21928
21935
|
isFirstFrame,
|
|
21929
21936
|
isLastFrame,
|
|
21937
|
+
getCurrentFrame,
|
|
21930
21938
|
pause,
|
|
21931
21939
|
pauseAndReturnToPlayStart,
|
|
21932
21940
|
play,
|
|
21933
21941
|
playing,
|
|
21934
21942
|
seek2,
|
|
21935
|
-
toggle
|
|
21943
|
+
toggle,
|
|
21944
|
+
isPlaying,
|
|
21945
|
+
isBuffering
|
|
21936
21946
|
]);
|
|
21937
21947
|
return returnValue;
|
|
21938
21948
|
};
|
|
@@ -22101,7 +22111,7 @@ var usePlayback = ({
|
|
|
22101
22111
|
}) => {
|
|
22102
22112
|
const config = Internals.useUnsafeVideoConfig();
|
|
22103
22113
|
const frame = Internals.Timeline.useTimelinePosition();
|
|
22104
|
-
const { playing, pause, emitter } = usePlayer();
|
|
22114
|
+
const { playing, pause, emitter, isPlaying } = usePlayer();
|
|
22105
22115
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
22106
22116
|
const isBackgroundedRef = useIsBackgrounded();
|
|
22107
22117
|
const lastTimeUpdateEvent = useRef42(null);
|
|
@@ -22142,6 +22152,9 @@ var usePlayback = ({
|
|
|
22142
22152
|
if (hasBeenStopped) {
|
|
22143
22153
|
return;
|
|
22144
22154
|
}
|
|
22155
|
+
if (!isPlaying()) {
|
|
22156
|
+
return;
|
|
22157
|
+
}
|
|
22145
22158
|
const time = performance.now() - startedTime;
|
|
22146
22159
|
const actualLastFrame = outFrame ?? config.durationInFrames - 1;
|
|
22147
22160
|
const actualFirstFrame = inFrame ?? 0;
|
|
@@ -22213,7 +22226,8 @@ var usePlayback = ({
|
|
|
22213
22226
|
moveToBeginningWhenEnded,
|
|
22214
22227
|
isBackgroundedRef,
|
|
22215
22228
|
getCurrentFrame,
|
|
22216
|
-
context
|
|
22229
|
+
context,
|
|
22230
|
+
isPlaying
|
|
22217
22231
|
]);
|
|
22218
22232
|
useEffect52(() => {
|
|
22219
22233
|
const interval = setInterval(() => {
|
|
@@ -26436,7 +26450,7 @@ var Cards = ({
|
|
|
26436
26450
|
// src/components/homepage/Demo/Comp.tsx
|
|
26437
26451
|
import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
26438
26452
|
var getDataAndProps = async () => {
|
|
26439
|
-
const location = await fetch("https://bugs-
|
|
26453
|
+
const location = await fetch("https://bugs-five.vercel.app/api/location").then((res) => res.json());
|
|
26440
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) => {
|
|
26441
26455
|
return {
|
|
26442
26456
|
repos: data.trending.repos.slice(0, 3),
|
|
@@ -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
|
}
|
|
@@ -21900,6 +21900,15 @@ var usePlayer = () => {
|
|
|
21900
21900
|
play(e);
|
|
21901
21901
|
}
|
|
21902
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]);
|
|
21903
21912
|
const returnValue = useMemo42(() => {
|
|
21904
21913
|
return {
|
|
21905
21914
|
frameBack,
|
|
@@ -21911,28 +21920,29 @@ var usePlayer = () => {
|
|
|
21911
21920
|
pause,
|
|
21912
21921
|
seek: seek2,
|
|
21913
21922
|
isFirstFrame,
|
|
21914
|
-
getCurrentFrame
|
|
21915
|
-
isPlaying
|
|
21916
|
-
isBuffering
|
|
21923
|
+
getCurrentFrame,
|
|
21924
|
+
isPlaying,
|
|
21925
|
+
isBuffering,
|
|
21917
21926
|
pauseAndReturnToPlayStart,
|
|
21918
21927
|
hasPlayed,
|
|
21919
21928
|
toggle
|
|
21920
21929
|
};
|
|
21921
21930
|
}, [
|
|
21922
|
-
buffering,
|
|
21923
21931
|
emitter,
|
|
21924
21932
|
frameBack,
|
|
21925
21933
|
frameForward,
|
|
21926
21934
|
hasPlayed,
|
|
21927
|
-
imperativePlaying,
|
|
21928
21935
|
isFirstFrame,
|
|
21929
21936
|
isLastFrame,
|
|
21937
|
+
getCurrentFrame,
|
|
21930
21938
|
pause,
|
|
21931
21939
|
pauseAndReturnToPlayStart,
|
|
21932
21940
|
play,
|
|
21933
21941
|
playing,
|
|
21934
21942
|
seek2,
|
|
21935
|
-
toggle
|
|
21943
|
+
toggle,
|
|
21944
|
+
isPlaying,
|
|
21945
|
+
isBuffering
|
|
21936
21946
|
]);
|
|
21937
21947
|
return returnValue;
|
|
21938
21948
|
};
|
|
@@ -22101,7 +22111,7 @@ var usePlayback = ({
|
|
|
22101
22111
|
}) => {
|
|
22102
22112
|
const config = Internals.useUnsafeVideoConfig();
|
|
22103
22113
|
const frame = Internals.Timeline.useTimelinePosition();
|
|
22104
|
-
const { playing, pause, emitter } = usePlayer();
|
|
22114
|
+
const { playing, pause, emitter, isPlaying } = usePlayer();
|
|
22105
22115
|
const setFrame = Internals.Timeline.useTimelineSetFrame();
|
|
22106
22116
|
const isBackgroundedRef = useIsBackgrounded();
|
|
22107
22117
|
const lastTimeUpdateEvent = useRef42(null);
|
|
@@ -22142,6 +22152,9 @@ var usePlayback = ({
|
|
|
22142
22152
|
if (hasBeenStopped) {
|
|
22143
22153
|
return;
|
|
22144
22154
|
}
|
|
22155
|
+
if (!isPlaying()) {
|
|
22156
|
+
return;
|
|
22157
|
+
}
|
|
22145
22158
|
const time = performance.now() - startedTime;
|
|
22146
22159
|
const actualLastFrame = outFrame ?? config.durationInFrames - 1;
|
|
22147
22160
|
const actualFirstFrame = inFrame ?? 0;
|
|
@@ -22213,7 +22226,8 @@ var usePlayback = ({
|
|
|
22213
22226
|
moveToBeginningWhenEnded,
|
|
22214
22227
|
isBackgroundedRef,
|
|
22215
22228
|
getCurrentFrame,
|
|
22216
|
-
context
|
|
22229
|
+
context,
|
|
22230
|
+
isPlaying
|
|
22217
22231
|
]);
|
|
22218
22232
|
useEffect52(() => {
|
|
22219
22233
|
const interval = setInterval(() => {
|
|
@@ -26436,7 +26450,7 @@ var Cards = ({
|
|
|
26436
26450
|
// src/components/homepage/Demo/Comp.tsx
|
|
26437
26451
|
import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
26438
26452
|
var getDataAndProps = async () => {
|
|
26439
|
-
const location = await fetch("https://bugs-
|
|
26453
|
+
const location = await fetch("https://bugs-five.vercel.app/api/location").then((res) => res.json());
|
|
26440
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) => {
|
|
26441
26455
|
return {
|
|
26442
26456
|
repos: data.trending.repos.slice(0, 3),
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
package/dist/Users/jonathanburger/remotion/packages/promo-pages/dist/template-modal-content.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
|
}
|
|
@@ -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
|
}
|
package/dist/design.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
|
}
|
package/dist/homepage/Pricing.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
|
}
|
|
@@ -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
|
}
|
package/dist/templates.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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/promo-pages",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.396",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@remotion/animated-emoji": "4.0.
|
|
15
|
-
"@remotion/design": "4.0.
|
|
16
|
-
"@remotion/lambda": "4.0.
|
|
17
|
-
"@remotion/lottie": "4.0.
|
|
18
|
-
"@remotion/paths": "4.0.
|
|
19
|
-
"@remotion/player": "4.0.
|
|
20
|
-
"@remotion/shapes": "4.0.
|
|
21
|
-
"@remotion/svg-3d-engine": "4.0.
|
|
22
|
-
"create-video": "4.0.
|
|
14
|
+
"@remotion/animated-emoji": "4.0.396",
|
|
15
|
+
"@remotion/design": "4.0.396",
|
|
16
|
+
"@remotion/lambda": "4.0.396",
|
|
17
|
+
"@remotion/lottie": "4.0.396",
|
|
18
|
+
"@remotion/paths": "4.0.396",
|
|
19
|
+
"@remotion/player": "4.0.396",
|
|
20
|
+
"@remotion/shapes": "4.0.396",
|
|
21
|
+
"@remotion/svg-3d-engine": "4.0.396",
|
|
22
|
+
"create-video": "4.0.396",
|
|
23
23
|
"hls.js": "1.5.19",
|
|
24
24
|
"polished": "4.3.1",
|
|
25
|
-
"remotion": "4.0.
|
|
25
|
+
"remotion": "4.0.396",
|
|
26
26
|
"zod": "3.22.3",
|
|
27
27
|
"bun-plugin-tailwind": "0.1.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
30
|
+
"@remotion/eslint-config-internal": "4.0.396",
|
|
31
31
|
"@eslint/eslintrc": "3.1.0",
|
|
32
32
|
"@types/react": "19.2.7",
|
|
33
33
|
"@types/react-dom": "19.2.3",
|