@remotion/promo-pages 4.0.305 → 4.0.306
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/.turbo/turbo-make.log +2 -2
- package/dist/Homepage.js +24 -14
- package/dist/components/Homepage.js +1 -1
- package/package.json +10 -10
- package/src/components/Homepage.tsx +1 -1
package/.turbo/turbo-make.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @remotion/promo-pages@4.0.
|
|
3
|
+
> @remotion/promo-pages@4.0.306 make /Users/jonathanburger/remotion/packages/promo-pages
|
|
4
4
|
> bun --env-file=../.env.bundle bundle.ts
|
|
5
5
|
|
|
6
6
|
≈ tailwindcss v4.1.1
|
|
7
7
|
|
|
8
|
-
Done in
|
|
8
|
+
Done in 35ms
|
package/dist/Homepage.js
CHANGED
|
@@ -5236,7 +5236,7 @@ var useIsPlayer = () => {
|
|
|
5236
5236
|
function truthy(value) {
|
|
5237
5237
|
return Boolean(value);
|
|
5238
5238
|
}
|
|
5239
|
-
var VERSION = "4.0.
|
|
5239
|
+
var VERSION = "4.0.306";
|
|
5240
5240
|
var checkMultipleRemotionVersions = () => {
|
|
5241
5241
|
if (typeof globalThis === "undefined") {
|
|
5242
5242
|
return;
|
|
@@ -7488,9 +7488,6 @@ var getCrossOriginValue = ({
|
|
|
7488
7488
|
if (requestsVideoFrame) {
|
|
7489
7489
|
return "anonymous";
|
|
7490
7490
|
}
|
|
7491
|
-
if (!getRemotionEnvironment().isRendering) {
|
|
7492
|
-
return "anonymous";
|
|
7493
|
-
}
|
|
7494
7491
|
return;
|
|
7495
7492
|
};
|
|
7496
7493
|
var LogLevelContext = createContext14({
|
|
@@ -7991,7 +7988,8 @@ var useVolume = ({
|
|
|
7991
7988
|
mediaRef,
|
|
7992
7989
|
volume,
|
|
7993
7990
|
logLevel,
|
|
7994
|
-
source
|
|
7991
|
+
source,
|
|
7992
|
+
shouldUseWebAudioApi
|
|
7995
7993
|
}) => {
|
|
7996
7994
|
const audioStuffRef = useRef6(null);
|
|
7997
7995
|
const currentVolumeRef = useRef6(volume);
|
|
@@ -8008,6 +8006,9 @@ var useVolume = ({
|
|
|
8008
8006
|
if (!mediaRef.current) {
|
|
8009
8007
|
return;
|
|
8010
8008
|
}
|
|
8009
|
+
if (!shouldUseWebAudioApi) {
|
|
8010
|
+
return;
|
|
8011
|
+
}
|
|
8011
8012
|
if (mediaRef.current.playbackRate !== 1 && isSafari()) {
|
|
8012
8013
|
warnSafariOnce(logLevel);
|
|
8013
8014
|
return;
|
|
@@ -8030,7 +8031,7 @@ var useVolume = ({
|
|
|
8030
8031
|
gainNode.disconnect();
|
|
8031
8032
|
source.get().disconnect();
|
|
8032
8033
|
};
|
|
8033
|
-
}, [logLevel, mediaRef, audioContext, source]);
|
|
8034
|
+
}, [logLevel, mediaRef, audioContext, source, shouldUseWebAudioApi]);
|
|
8034
8035
|
if (audioStuffRef.current) {
|
|
8035
8036
|
const valueToSet = volume;
|
|
8036
8037
|
if (!isApproximatelyTheSame(audioStuffRef.current.gainNode.gain.value, valueToSet)) {
|
|
@@ -8038,7 +8039,9 @@ var useVolume = ({
|
|
|
8038
8039
|
Log.trace(logLevel, `Setting gain to ${valueToSet} for ${mediaRef.current?.src}`);
|
|
8039
8040
|
}
|
|
8040
8041
|
}
|
|
8041
|
-
|
|
8042
|
+
const safariCase = isSafari() && mediaRef.current && mediaRef.current?.playbackRate !== 1;
|
|
8043
|
+
const shouldUseTraditionalVolume = safariCase || !shouldUseWebAudioApi;
|
|
8044
|
+
if (shouldUseTraditionalVolume && mediaRef.current && !isApproximatelyTheSame(volume, mediaRef.current?.volume)) {
|
|
8042
8045
|
mediaRef.current.volume = Math.min(volume, 1);
|
|
8043
8046
|
}
|
|
8044
8047
|
return audioStuffRef;
|
|
@@ -9095,6 +9098,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
9095
9098
|
delayRenderRetries,
|
|
9096
9099
|
delayRenderTimeoutInMilliseconds,
|
|
9097
9100
|
toneFrequency,
|
|
9101
|
+
useWebAudioApi,
|
|
9098
9102
|
...nativeProps
|
|
9099
9103
|
} = props;
|
|
9100
9104
|
const _propsValid = true;
|
|
@@ -9117,11 +9121,16 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
9117
9121
|
volume,
|
|
9118
9122
|
mediaVolume
|
|
9119
9123
|
});
|
|
9124
|
+
const crossOriginValue = getCrossOriginValue({
|
|
9125
|
+
crossOrigin,
|
|
9126
|
+
requestsVideoFrame: false
|
|
9127
|
+
});
|
|
9120
9128
|
const propsToPass = useMemo20(() => {
|
|
9121
9129
|
return {
|
|
9122
9130
|
muted: muted || mediaMuted || isSequenceHidden || userPreferredVolume <= 0,
|
|
9123
9131
|
src: preloadedSrc,
|
|
9124
9132
|
loop: _remotionInternalNativeLoopPassed,
|
|
9133
|
+
crossOrigin: crossOriginValue,
|
|
9125
9134
|
...nativeProps
|
|
9126
9135
|
};
|
|
9127
9136
|
}, [
|
|
@@ -9131,7 +9140,8 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
9131
9140
|
muted,
|
|
9132
9141
|
nativeProps,
|
|
9133
9142
|
preloadedSrc,
|
|
9134
|
-
userPreferredVolume
|
|
9143
|
+
userPreferredVolume,
|
|
9144
|
+
crossOriginValue
|
|
9135
9145
|
]);
|
|
9136
9146
|
const id = useMemo20(() => `audio-${random(src ?? "")}-${sequenceContext?.relativeFrom}-${sequenceContext?.cumulatedFrom}-${sequenceContext?.durationInFrames}-muted:${props.muted}-loop:${props.loop}`, [
|
|
9137
9147
|
src,
|
|
@@ -9176,7 +9186,8 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
9176
9186
|
logLevel,
|
|
9177
9187
|
mediaRef: audioRef,
|
|
9178
9188
|
source: mediaElementSourceNode,
|
|
9179
|
-
volume: userPreferredVolume
|
|
9189
|
+
volume: userPreferredVolume,
|
|
9190
|
+
shouldUseWebAudioApi: useWebAudioApi ?? false
|
|
9180
9191
|
});
|
|
9181
9192
|
useImperativeHandle5(ref, () => {
|
|
9182
9193
|
return audioRef.current;
|
|
@@ -9203,10 +9214,6 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
9203
9214
|
if (initialShouldPreMountAudioElements) {
|
|
9204
9215
|
return null;
|
|
9205
9216
|
}
|
|
9206
|
-
const crossOriginValue = getCrossOriginValue({
|
|
9207
|
-
crossOrigin,
|
|
9208
|
-
requestsVideoFrame: false
|
|
9209
|
-
});
|
|
9210
9217
|
return /* @__PURE__ */ jsx17("audio", {
|
|
9211
9218
|
ref: audioRef,
|
|
9212
9219
|
preload: "metadata",
|
|
@@ -10887,6 +10894,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
10887
10894
|
delayRenderRetries,
|
|
10888
10895
|
delayRenderTimeoutInMilliseconds,
|
|
10889
10896
|
allowAmplificationDuringRender,
|
|
10897
|
+
useWebAudioApi,
|
|
10890
10898
|
...nativeProps
|
|
10891
10899
|
} = props2;
|
|
10892
10900
|
const _propsValid = true;
|
|
@@ -10941,7 +10949,8 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
10941
10949
|
logLevel,
|
|
10942
10950
|
mediaRef: videoRef,
|
|
10943
10951
|
volume: userPreferredVolume,
|
|
10944
|
-
source: sharedSource
|
|
10952
|
+
source: sharedSource,
|
|
10953
|
+
shouldUseWebAudioApi: useWebAudioApi ?? false
|
|
10945
10954
|
});
|
|
10946
10955
|
const actualFrom = parentSequence ? parentSequence.relativeFrom : 0;
|
|
10947
10956
|
const duration = parentSequence ? Math.min(parentSequence.durationInFrames, durationInFrames) : durationInFrames;
|
|
@@ -21367,6 +21376,7 @@ var NewLanding = ({ colorMode, setColorMode }) => {
|
|
|
21367
21376
|
children: /* @__PURE__ */ jsx131("div", {
|
|
21368
21377
|
className: "bg-[var(--background)] relative",
|
|
21369
21378
|
children: /* @__PURE__ */ jsxs58("div", {
|
|
21379
|
+
style: { overflow: "hidden" },
|
|
21370
21380
|
children: [
|
|
21371
21381
|
/* @__PURE__ */ jsx131("div", {
|
|
21372
21382
|
children: /* @__PURE__ */ jsx131(BackgroundAnimation, {})
|
|
@@ -16,5 +16,5 @@ import VideoAppsShowcase from './homepage/VideoAppsShowcase';
|
|
|
16
16
|
import { SectionTitle, VideoAppsTitle } from './homepage/VideoAppsTitle';
|
|
17
17
|
import { WriteInReact } from './homepage/WriteInReact';
|
|
18
18
|
export const NewLanding = ({ colorMode, setColorMode }) => {
|
|
19
|
-
return (_jsx(ColorModeProvider, { colorMode: colorMode, setColorMode: setColorMode, children: _jsx("div", { className: "bg-[var(--background)] relative", children: _jsxs("div", { children: [_jsx("div", { children: _jsx(BackgroundAnimation, {}) }), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsxs("div", { className: "max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5 overflow-x-clip md:overflow-x-visible relative", children: [_jsx(WriteInReact, {}), _jsx("br", {}), _jsx(IfYouKnowReact, {}), _jsx(RealMP4Videos, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(LightningFastEditor, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(VideoAppsTitle, {}), _jsx(VideoApps, { active: "remotion" }), _jsx("br", {}), _jsx("br", {}), _jsx(VideoAppsShowcase, {}), _jsx("br", {}), _jsx("br", {}), _jsx(Demo, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(SectionTitle, { children: "Pricing" }), _jsx(Pricing, {}), _jsx(TrustedByBanner, {}), _jsx("br", {}), _jsx(EvaluateRemotionSection, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(CommunityStats, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(NewsletterButton, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {})] })] }) }) }));
|
|
19
|
+
return (_jsx(ColorModeProvider, { colorMode: colorMode, setColorMode: setColorMode, children: _jsx("div", { className: "bg-[var(--background)] relative", children: _jsxs("div", { style: { overflow: 'hidden' }, children: [_jsx("div", { children: _jsx(BackgroundAnimation, {}) }), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsxs("div", { className: "max-w-[500px] lg:max-w-[1000px] m-auto pl-5 pr-5 overflow-x-clip md:overflow-x-visible relative", children: [_jsx(WriteInReact, {}), _jsx("br", {}), _jsx(IfYouKnowReact, {}), _jsx(RealMP4Videos, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(LightningFastEditor, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(VideoAppsTitle, {}), _jsx(VideoApps, { active: "remotion" }), _jsx("br", {}), _jsx("br", {}), _jsx(VideoAppsShowcase, {}), _jsx("br", {}), _jsx("br", {}), _jsx(Demo, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(SectionTitle, { children: "Pricing" }), _jsx(Pricing, {}), _jsx(TrustedByBanner, {}), _jsx("br", {}), _jsx(EvaluateRemotionSection, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(CommunityStats, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {}), _jsx(NewsletterButton, {}), _jsx("br", {}), _jsx("br", {}), _jsx("br", {})] })] }) }) }));
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/promo-pages",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.306",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"polished": "4.3.1",
|
|
11
11
|
"zod": "3.22.3",
|
|
12
12
|
"bun-plugin-tailwind": "0.0.15",
|
|
13
|
-
"@remotion/
|
|
14
|
-
"@remotion/
|
|
15
|
-
"@remotion/
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"@remotion/
|
|
19
|
-
"
|
|
20
|
-
"@remotion/
|
|
13
|
+
"@remotion/animated-emoji": "4.0.306",
|
|
14
|
+
"@remotion/paths": "4.0.306",
|
|
15
|
+
"@remotion/player": "4.0.306",
|
|
16
|
+
"remotion": "4.0.306",
|
|
17
|
+
"create-video": "4.0.306",
|
|
18
|
+
"@remotion/shapes": "4.0.306",
|
|
19
|
+
"@remotion/lambda": "4.0.306",
|
|
20
|
+
"@remotion/lottie": "4.0.306"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@eslint/eslintrc": "3.1.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tailwind-merge": "2.5.2",
|
|
35
35
|
"bun-plugin-tailwind": "0.0.13",
|
|
36
36
|
"clsx": "2.1.1",
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.306"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/promo-pages"
|
|
@@ -25,7 +25,7 @@ export const NewLanding: React.FC<{
|
|
|
25
25
|
return (
|
|
26
26
|
<ColorModeProvider colorMode={colorMode} setColorMode={setColorMode}>
|
|
27
27
|
<div className="bg-[var(--background)] relative">
|
|
28
|
-
<div>
|
|
28
|
+
<div style={{overflow: 'hidden'}}>
|
|
29
29
|
<div>
|
|
30
30
|
<BackgroundAnimation />
|
|
31
31
|
</div>
|