@remotion/promo-pages 4.0.492 → 4.0.494
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 +82 -65
- package/dist/design.js +80 -63
- package/dist/experts.js +80 -63
- package/dist/homepage/Pricing.js +80 -63
- package/dist/prompts/PromptsGallery.js +80 -63
- package/dist/prompts/PromptsShow.js +80 -63
- package/dist/prompts/PromptsSubmit.js +80 -63
- package/dist/team.js +80 -63
- package/dist/template-modal-content.js +80 -63
- package/dist/templates.js +80 -63
- package/package.json +13 -13
|
@@ -5052,6 +5052,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5052
5052
|
if (currentCompositionMetadata) {
|
|
5053
5053
|
return {
|
|
5054
5054
|
type: "success",
|
|
5055
|
+
metadataSource: null,
|
|
5055
5056
|
result: {
|
|
5056
5057
|
...currentCompositionMetadata,
|
|
5057
5058
|
id: composition.id,
|
|
@@ -5069,6 +5070,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5069
5070
|
validateDimension(composition.height, "height", `in <Composition id="${composition.id}">`);
|
|
5070
5071
|
return {
|
|
5071
5072
|
type: "success",
|
|
5073
|
+
metadataSource: null,
|
|
5072
5074
|
result: {
|
|
5073
5075
|
width: composition.width,
|
|
5074
5076
|
height: composition.height,
|
|
@@ -5587,7 +5589,7 @@ var getSingleChildComponent = (children) => {
|
|
|
5587
5589
|
}
|
|
5588
5590
|
return child.type;
|
|
5589
5591
|
};
|
|
5590
|
-
var VERSION = "4.0.
|
|
5592
|
+
var VERSION = "4.0.494";
|
|
5591
5593
|
var checkMultipleRemotionVersions = () => {
|
|
5592
5594
|
if (typeof globalThis === "undefined") {
|
|
5593
5595
|
return;
|
|
@@ -8952,7 +8954,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
|
|
|
8952
8954
|
const style = useMemo14(() => {
|
|
8953
8955
|
return {
|
|
8954
8956
|
...passedStyle,
|
|
8955
|
-
opacity: premountingActive || postmountingActive ? 0 :
|
|
8957
|
+
opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
|
|
8956
8958
|
pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
|
|
8957
8959
|
...premountingActive ? styleWhilePremounted : {},
|
|
8958
8960
|
...postmountingActive ? styleWhilePostmounted : {}
|
|
@@ -9530,6 +9532,13 @@ var decodeImage = async ({
|
|
|
9530
9532
|
frameCount: selectedTrack.frameCount
|
|
9531
9533
|
};
|
|
9532
9534
|
};
|
|
9535
|
+
var getCurrentTime = ({
|
|
9536
|
+
frame,
|
|
9537
|
+
playbackRate,
|
|
9538
|
+
fps
|
|
9539
|
+
}) => {
|
|
9540
|
+
return frame * playbackRate / fps;
|
|
9541
|
+
};
|
|
9533
9542
|
var serializeRequestInit = (requestInit) => {
|
|
9534
9543
|
if (!requestInit) {
|
|
9535
9544
|
return null;
|
|
@@ -9597,7 +9606,7 @@ var AnimatedImageContent = forwardRef4(({
|
|
|
9597
9606
|
const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
|
|
9598
9607
|
const frame = useCurrentFrame();
|
|
9599
9608
|
const { fps } = useVideoConfig();
|
|
9600
|
-
const currentTime = frame
|
|
9609
|
+
const currentTime = getCurrentTime({ frame, playbackRate, fps });
|
|
9601
9610
|
const currentTimeRef = useRef9(currentTime);
|
|
9602
9611
|
currentTimeRef.current = currentTime;
|
|
9603
9612
|
const requestInitKey = serializeRequestInit(requestInit);
|
|
@@ -9725,8 +9734,6 @@ var AnimatedImageInner = ({
|
|
|
9725
9734
|
ref,
|
|
9726
9735
|
...sequenceProps
|
|
9727
9736
|
}) => {
|
|
9728
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
9729
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
9730
9737
|
const actualRef = useRef9(null);
|
|
9731
9738
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
9732
9739
|
useImperativeHandle2(ref, () => {
|
|
@@ -9749,7 +9756,7 @@ var AnimatedImageInner = ({
|
|
|
9749
9756
|
};
|
|
9750
9757
|
return /* @__PURE__ */ jsx14(Sequence, {
|
|
9751
9758
|
layout: "none",
|
|
9752
|
-
durationInFrames
|
|
9759
|
+
durationInFrames,
|
|
9753
9760
|
name: "<AnimatedImage>",
|
|
9754
9761
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
|
|
9755
9762
|
controls,
|
|
@@ -13377,8 +13384,6 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13377
13384
|
name,
|
|
13378
13385
|
...sequenceProps
|
|
13379
13386
|
}, ref) => {
|
|
13380
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
13381
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
13382
13387
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
13383
13388
|
const actualRef = useRef22(null);
|
|
13384
13389
|
const setCanvasRef = useCallback16((node) => {
|
|
@@ -13390,7 +13395,7 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13390
13395
|
}
|
|
13391
13396
|
}, [ref]);
|
|
13392
13397
|
return /* @__PURE__ */ jsx25(Sequence, {
|
|
13393
|
-
durationInFrames
|
|
13398
|
+
durationInFrames,
|
|
13394
13399
|
name: name ?? "<HtmlInCanvas>",
|
|
13395
13400
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
|
|
13396
13401
|
controls,
|
|
@@ -14673,7 +14678,46 @@ var validateCalculated = ({
|
|
|
14673
14678
|
defaultSampleRate
|
|
14674
14679
|
};
|
|
14675
14680
|
};
|
|
14676
|
-
var
|
|
14681
|
+
var makeVideoConfigWithMetadata = ({
|
|
14682
|
+
calculated,
|
|
14683
|
+
compositionDurationInFrames,
|
|
14684
|
+
compositionFps,
|
|
14685
|
+
compositionHeight,
|
|
14686
|
+
compositionId,
|
|
14687
|
+
compositionWidth,
|
|
14688
|
+
defaultProps,
|
|
14689
|
+
originalProps
|
|
14690
|
+
}) => {
|
|
14691
|
+
const data = validateCalculated({
|
|
14692
|
+
calculated,
|
|
14693
|
+
compositionDurationInFrames,
|
|
14694
|
+
compositionFps,
|
|
14695
|
+
compositionHeight,
|
|
14696
|
+
compositionWidth,
|
|
14697
|
+
compositionId
|
|
14698
|
+
});
|
|
14699
|
+
return {
|
|
14700
|
+
metadataSource: {
|
|
14701
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
14702
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
14703
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
14704
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
14705
|
+
},
|
|
14706
|
+
videoConfig: {
|
|
14707
|
+
...data,
|
|
14708
|
+
id: compositionId,
|
|
14709
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14710
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
14711
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
14712
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
14713
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
14714
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
14715
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
14716
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
14717
|
+
}
|
|
14718
|
+
};
|
|
14719
|
+
};
|
|
14720
|
+
var resolveVideoConfigWithMetadata = ({
|
|
14677
14721
|
calculateMetadata,
|
|
14678
14722
|
signal,
|
|
14679
14723
|
defaultProps,
|
|
@@ -14693,76 +14737,48 @@ var resolveVideoConfig = ({
|
|
|
14693
14737
|
}) : null;
|
|
14694
14738
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
14695
14739
|
return calculatedProm.then((c2) => {
|
|
14696
|
-
|
|
14697
|
-
height,
|
|
14698
|
-
width,
|
|
14699
|
-
durationInFrames,
|
|
14700
|
-
fps,
|
|
14701
|
-
defaultCodec,
|
|
14702
|
-
defaultOutName,
|
|
14703
|
-
defaultVideoImageFormat,
|
|
14704
|
-
defaultPixelFormat,
|
|
14705
|
-
defaultProResProfile,
|
|
14706
|
-
defaultSampleRate
|
|
14707
|
-
} = validateCalculated({
|
|
14740
|
+
return makeVideoConfigWithMetadata({
|
|
14708
14741
|
calculated: c2,
|
|
14709
14742
|
compositionDurationInFrames,
|
|
14710
14743
|
compositionFps,
|
|
14711
14744
|
compositionHeight,
|
|
14712
14745
|
compositionWidth,
|
|
14713
|
-
compositionId
|
|
14746
|
+
compositionId,
|
|
14747
|
+
defaultProps,
|
|
14748
|
+
originalProps
|
|
14714
14749
|
});
|
|
14715
|
-
return {
|
|
14716
|
-
width,
|
|
14717
|
-
height,
|
|
14718
|
-
fps,
|
|
14719
|
-
durationInFrames,
|
|
14720
|
-
id: compositionId,
|
|
14721
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps),
|
|
14722
|
-
props: serializeThenDeserializeInStudio(c2.props ?? originalProps),
|
|
14723
|
-
defaultCodec: defaultCodec ?? null,
|
|
14724
|
-
defaultOutName: defaultOutName ?? null,
|
|
14725
|
-
defaultVideoImageFormat: defaultVideoImageFormat ?? null,
|
|
14726
|
-
defaultPixelFormat: defaultPixelFormat ?? null,
|
|
14727
|
-
defaultProResProfile: defaultProResProfile ?? null,
|
|
14728
|
-
defaultSampleRate: defaultSampleRate ?? null
|
|
14729
|
-
};
|
|
14730
14750
|
});
|
|
14731
14751
|
}
|
|
14732
|
-
|
|
14752
|
+
return makeVideoConfigWithMetadata({
|
|
14733
14753
|
calculated: calculatedProm,
|
|
14734
14754
|
compositionDurationInFrames,
|
|
14735
14755
|
compositionFps,
|
|
14736
14756
|
compositionHeight,
|
|
14737
14757
|
compositionWidth,
|
|
14738
|
-
compositionId
|
|
14758
|
+
compositionId,
|
|
14759
|
+
defaultProps,
|
|
14760
|
+
originalProps
|
|
14739
14761
|
});
|
|
14740
|
-
|
|
14762
|
+
};
|
|
14763
|
+
var resolveVideoConfig = (params) => {
|
|
14764
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
14765
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
14766
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
14767
|
+
}
|
|
14768
|
+
return resolved.videoConfig;
|
|
14769
|
+
};
|
|
14770
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
14771
|
+
try {
|
|
14741
14772
|
return {
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
defaultPixelFormat: null,
|
|
14750
|
-
defaultProResProfile: null,
|
|
14751
|
-
defaultSampleRate: null
|
|
14773
|
+
type: "success",
|
|
14774
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
14775
|
+
};
|
|
14776
|
+
} catch (err) {
|
|
14777
|
+
return {
|
|
14778
|
+
type: "error",
|
|
14779
|
+
error: err
|
|
14752
14780
|
};
|
|
14753
14781
|
}
|
|
14754
|
-
return {
|
|
14755
|
-
...data,
|
|
14756
|
-
id: compositionId,
|
|
14757
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14758
|
-
props: serializeThenDeserializeInStudio(calculatedProm.props ?? originalProps),
|
|
14759
|
-
defaultCodec: calculatedProm.defaultCodec ?? null,
|
|
14760
|
-
defaultOutName: calculatedProm.defaultOutName ?? null,
|
|
14761
|
-
defaultVideoImageFormat: calculatedProm.defaultVideoImageFormat ?? null,
|
|
14762
|
-
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null,
|
|
14763
|
-
defaultProResProfile: calculatedProm.defaultProResProfile ?? null,
|
|
14764
|
-
defaultSampleRate: calculatedProm.defaultSampleRate ?? null
|
|
14765
|
-
};
|
|
14766
14782
|
};
|
|
14767
14783
|
var resolveVideoConfigOrCatch = (params) => {
|
|
14768
14784
|
try {
|
|
@@ -15642,6 +15658,7 @@ var Internals = {
|
|
|
15642
15658
|
NonceContext,
|
|
15643
15659
|
resolveVideoConfig,
|
|
15644
15660
|
resolveVideoConfigOrCatch,
|
|
15661
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
15645
15662
|
ResolveCompositionContext,
|
|
15646
15663
|
useResolvedVideoConfig,
|
|
15647
15664
|
resolveCompositionsRef,
|
package/dist/templates.js
CHANGED
|
@@ -5052,6 +5052,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5052
5052
|
if (currentCompositionMetadata) {
|
|
5053
5053
|
return {
|
|
5054
5054
|
type: "success",
|
|
5055
|
+
metadataSource: null,
|
|
5055
5056
|
result: {
|
|
5056
5057
|
...currentCompositionMetadata,
|
|
5057
5058
|
id: composition.id,
|
|
@@ -5069,6 +5070,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5069
5070
|
validateDimension(composition.height, "height", `in <Composition id="${composition.id}">`);
|
|
5070
5071
|
return {
|
|
5071
5072
|
type: "success",
|
|
5073
|
+
metadataSource: null,
|
|
5072
5074
|
result: {
|
|
5073
5075
|
width: composition.width,
|
|
5074
5076
|
height: composition.height,
|
|
@@ -5587,7 +5589,7 @@ var getSingleChildComponent = (children) => {
|
|
|
5587
5589
|
}
|
|
5588
5590
|
return child.type;
|
|
5589
5591
|
};
|
|
5590
|
-
var VERSION = "4.0.
|
|
5592
|
+
var VERSION = "4.0.494";
|
|
5591
5593
|
var checkMultipleRemotionVersions = () => {
|
|
5592
5594
|
if (typeof globalThis === "undefined") {
|
|
5593
5595
|
return;
|
|
@@ -8952,7 +8954,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
|
|
|
8952
8954
|
const style = useMemo14(() => {
|
|
8953
8955
|
return {
|
|
8954
8956
|
...passedStyle,
|
|
8955
|
-
opacity: premountingActive || postmountingActive ? 0 :
|
|
8957
|
+
opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
|
|
8956
8958
|
pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
|
|
8957
8959
|
...premountingActive ? styleWhilePremounted : {},
|
|
8958
8960
|
...postmountingActive ? styleWhilePostmounted : {}
|
|
@@ -9530,6 +9532,13 @@ var decodeImage = async ({
|
|
|
9530
9532
|
frameCount: selectedTrack.frameCount
|
|
9531
9533
|
};
|
|
9532
9534
|
};
|
|
9535
|
+
var getCurrentTime = ({
|
|
9536
|
+
frame,
|
|
9537
|
+
playbackRate,
|
|
9538
|
+
fps
|
|
9539
|
+
}) => {
|
|
9540
|
+
return frame * playbackRate / fps;
|
|
9541
|
+
};
|
|
9533
9542
|
var serializeRequestInit = (requestInit) => {
|
|
9534
9543
|
if (!requestInit) {
|
|
9535
9544
|
return null;
|
|
@@ -9597,7 +9606,7 @@ var AnimatedImageContent = forwardRef4(({
|
|
|
9597
9606
|
const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
|
|
9598
9607
|
const frame = useCurrentFrame();
|
|
9599
9608
|
const { fps } = useVideoConfig();
|
|
9600
|
-
const currentTime = frame
|
|
9609
|
+
const currentTime = getCurrentTime({ frame, playbackRate, fps });
|
|
9601
9610
|
const currentTimeRef = useRef9(currentTime);
|
|
9602
9611
|
currentTimeRef.current = currentTime;
|
|
9603
9612
|
const requestInitKey = serializeRequestInit(requestInit);
|
|
@@ -9725,8 +9734,6 @@ var AnimatedImageInner = ({
|
|
|
9725
9734
|
ref,
|
|
9726
9735
|
...sequenceProps
|
|
9727
9736
|
}) => {
|
|
9728
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
9729
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
9730
9737
|
const actualRef = useRef9(null);
|
|
9731
9738
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
9732
9739
|
useImperativeHandle2(ref, () => {
|
|
@@ -9749,7 +9756,7 @@ var AnimatedImageInner = ({
|
|
|
9749
9756
|
};
|
|
9750
9757
|
return /* @__PURE__ */ jsx14(Sequence, {
|
|
9751
9758
|
layout: "none",
|
|
9752
|
-
durationInFrames
|
|
9759
|
+
durationInFrames,
|
|
9753
9760
|
name: "<AnimatedImage>",
|
|
9754
9761
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
|
|
9755
9762
|
controls,
|
|
@@ -13377,8 +13384,6 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13377
13384
|
name,
|
|
13378
13385
|
...sequenceProps
|
|
13379
13386
|
}, ref) => {
|
|
13380
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
13381
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
13382
13387
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
13383
13388
|
const actualRef = useRef22(null);
|
|
13384
13389
|
const setCanvasRef = useCallback16((node) => {
|
|
@@ -13390,7 +13395,7 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13390
13395
|
}
|
|
13391
13396
|
}, [ref]);
|
|
13392
13397
|
return /* @__PURE__ */ jsx25(Sequence, {
|
|
13393
|
-
durationInFrames
|
|
13398
|
+
durationInFrames,
|
|
13394
13399
|
name: name ?? "<HtmlInCanvas>",
|
|
13395
13400
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
|
|
13396
13401
|
controls,
|
|
@@ -14673,7 +14678,46 @@ var validateCalculated = ({
|
|
|
14673
14678
|
defaultSampleRate
|
|
14674
14679
|
};
|
|
14675
14680
|
};
|
|
14676
|
-
var
|
|
14681
|
+
var makeVideoConfigWithMetadata = ({
|
|
14682
|
+
calculated,
|
|
14683
|
+
compositionDurationInFrames,
|
|
14684
|
+
compositionFps,
|
|
14685
|
+
compositionHeight,
|
|
14686
|
+
compositionId,
|
|
14687
|
+
compositionWidth,
|
|
14688
|
+
defaultProps,
|
|
14689
|
+
originalProps
|
|
14690
|
+
}) => {
|
|
14691
|
+
const data = validateCalculated({
|
|
14692
|
+
calculated,
|
|
14693
|
+
compositionDurationInFrames,
|
|
14694
|
+
compositionFps,
|
|
14695
|
+
compositionHeight,
|
|
14696
|
+
compositionWidth,
|
|
14697
|
+
compositionId
|
|
14698
|
+
});
|
|
14699
|
+
return {
|
|
14700
|
+
metadataSource: {
|
|
14701
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
14702
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
14703
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
14704
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
14705
|
+
},
|
|
14706
|
+
videoConfig: {
|
|
14707
|
+
...data,
|
|
14708
|
+
id: compositionId,
|
|
14709
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14710
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
14711
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
14712
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
14713
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
14714
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
14715
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
14716
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
14717
|
+
}
|
|
14718
|
+
};
|
|
14719
|
+
};
|
|
14720
|
+
var resolveVideoConfigWithMetadata = ({
|
|
14677
14721
|
calculateMetadata,
|
|
14678
14722
|
signal,
|
|
14679
14723
|
defaultProps,
|
|
@@ -14693,76 +14737,48 @@ var resolveVideoConfig = ({
|
|
|
14693
14737
|
}) : null;
|
|
14694
14738
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
14695
14739
|
return calculatedProm.then((c2) => {
|
|
14696
|
-
|
|
14697
|
-
height,
|
|
14698
|
-
width,
|
|
14699
|
-
durationInFrames,
|
|
14700
|
-
fps,
|
|
14701
|
-
defaultCodec,
|
|
14702
|
-
defaultOutName,
|
|
14703
|
-
defaultVideoImageFormat,
|
|
14704
|
-
defaultPixelFormat,
|
|
14705
|
-
defaultProResProfile,
|
|
14706
|
-
defaultSampleRate
|
|
14707
|
-
} = validateCalculated({
|
|
14740
|
+
return makeVideoConfigWithMetadata({
|
|
14708
14741
|
calculated: c2,
|
|
14709
14742
|
compositionDurationInFrames,
|
|
14710
14743
|
compositionFps,
|
|
14711
14744
|
compositionHeight,
|
|
14712
14745
|
compositionWidth,
|
|
14713
|
-
compositionId
|
|
14746
|
+
compositionId,
|
|
14747
|
+
defaultProps,
|
|
14748
|
+
originalProps
|
|
14714
14749
|
});
|
|
14715
|
-
return {
|
|
14716
|
-
width,
|
|
14717
|
-
height,
|
|
14718
|
-
fps,
|
|
14719
|
-
durationInFrames,
|
|
14720
|
-
id: compositionId,
|
|
14721
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps),
|
|
14722
|
-
props: serializeThenDeserializeInStudio(c2.props ?? originalProps),
|
|
14723
|
-
defaultCodec: defaultCodec ?? null,
|
|
14724
|
-
defaultOutName: defaultOutName ?? null,
|
|
14725
|
-
defaultVideoImageFormat: defaultVideoImageFormat ?? null,
|
|
14726
|
-
defaultPixelFormat: defaultPixelFormat ?? null,
|
|
14727
|
-
defaultProResProfile: defaultProResProfile ?? null,
|
|
14728
|
-
defaultSampleRate: defaultSampleRate ?? null
|
|
14729
|
-
};
|
|
14730
14750
|
});
|
|
14731
14751
|
}
|
|
14732
|
-
|
|
14752
|
+
return makeVideoConfigWithMetadata({
|
|
14733
14753
|
calculated: calculatedProm,
|
|
14734
14754
|
compositionDurationInFrames,
|
|
14735
14755
|
compositionFps,
|
|
14736
14756
|
compositionHeight,
|
|
14737
14757
|
compositionWidth,
|
|
14738
|
-
compositionId
|
|
14758
|
+
compositionId,
|
|
14759
|
+
defaultProps,
|
|
14760
|
+
originalProps
|
|
14739
14761
|
});
|
|
14740
|
-
|
|
14762
|
+
};
|
|
14763
|
+
var resolveVideoConfig = (params) => {
|
|
14764
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
14765
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
14766
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
14767
|
+
}
|
|
14768
|
+
return resolved.videoConfig;
|
|
14769
|
+
};
|
|
14770
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
14771
|
+
try {
|
|
14741
14772
|
return {
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
defaultPixelFormat: null,
|
|
14750
|
-
defaultProResProfile: null,
|
|
14751
|
-
defaultSampleRate: null
|
|
14773
|
+
type: "success",
|
|
14774
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
14775
|
+
};
|
|
14776
|
+
} catch (err) {
|
|
14777
|
+
return {
|
|
14778
|
+
type: "error",
|
|
14779
|
+
error: err
|
|
14752
14780
|
};
|
|
14753
14781
|
}
|
|
14754
|
-
return {
|
|
14755
|
-
...data,
|
|
14756
|
-
id: compositionId,
|
|
14757
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14758
|
-
props: serializeThenDeserializeInStudio(calculatedProm.props ?? originalProps),
|
|
14759
|
-
defaultCodec: calculatedProm.defaultCodec ?? null,
|
|
14760
|
-
defaultOutName: calculatedProm.defaultOutName ?? null,
|
|
14761
|
-
defaultVideoImageFormat: calculatedProm.defaultVideoImageFormat ?? null,
|
|
14762
|
-
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null,
|
|
14763
|
-
defaultProResProfile: calculatedProm.defaultProResProfile ?? null,
|
|
14764
|
-
defaultSampleRate: calculatedProm.defaultSampleRate ?? null
|
|
14765
|
-
};
|
|
14766
14782
|
};
|
|
14767
14783
|
var resolveVideoConfigOrCatch = (params) => {
|
|
14768
14784
|
try {
|
|
@@ -15642,6 +15658,7 @@ var Internals = {
|
|
|
15642
15658
|
NonceContext,
|
|
15643
15659
|
resolveVideoConfig,
|
|
15644
15660
|
resolveVideoConfigOrCatch,
|
|
15661
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
15645
15662
|
ResolveCompositionContext,
|
|
15646
15663
|
useResolvedVideoConfig,
|
|
15647
15664
|
resolveCompositionsRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/promo-pages",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.494",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@remotion/animated-emoji": "4.0.
|
|
15
|
-
"@remotion/design": "4.0.
|
|
16
|
-
"@remotion/web-renderer": "4.0.
|
|
17
|
-
"@remotion/lottie": "4.0.
|
|
18
|
-
"@remotion/paths": "4.0.
|
|
19
|
-
"@remotion/player": "4.0.
|
|
20
|
-
"@remotion/shapes": "4.0.
|
|
21
|
-
"@remotion/media": "4.0.
|
|
22
|
-
"@remotion/svg-3d-engine": "4.0.
|
|
23
|
-
"create-video": "4.0.
|
|
14
|
+
"@remotion/animated-emoji": "4.0.494",
|
|
15
|
+
"@remotion/design": "4.0.494",
|
|
16
|
+
"@remotion/web-renderer": "4.0.494",
|
|
17
|
+
"@remotion/lottie": "4.0.494",
|
|
18
|
+
"@remotion/paths": "4.0.494",
|
|
19
|
+
"@remotion/player": "4.0.494",
|
|
20
|
+
"@remotion/shapes": "4.0.494",
|
|
21
|
+
"@remotion/media": "4.0.494",
|
|
22
|
+
"@remotion/svg-3d-engine": "4.0.494",
|
|
23
|
+
"create-video": "4.0.494",
|
|
24
24
|
"hls.js": "1.5.19",
|
|
25
25
|
"polished": "4.3.1",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.494",
|
|
27
27
|
"zod": "4.3.6",
|
|
28
28
|
"@mux/upchunk": "3.5.0",
|
|
29
29
|
"@vidstack/react": "1.12.13",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@mediabunny/mp3-encoder": "1.50.8"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"@remotion/eslint-config-internal": "4.0.494",
|
|
38
38
|
"@eslint/eslintrc": "3.1.0",
|
|
39
39
|
"@types/react": "19.2.7",
|
|
40
40
|
"@types/react-dom": "19.2.3",
|