@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,
|
|
@@ -22386,6 +22386,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
22386
22386
|
if (currentCompositionMetadata) {
|
|
22387
22387
|
return {
|
|
22388
22388
|
type: "success",
|
|
22389
|
+
metadataSource: null,
|
|
22389
22390
|
result: {
|
|
22390
22391
|
...currentCompositionMetadata,
|
|
22391
22392
|
id: composition.id,
|
|
@@ -22403,6 +22404,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
22403
22404
|
validateDimension(composition.height, "height", `in <Composition id="${composition.id}">`);
|
|
22404
22405
|
return {
|
|
22405
22406
|
type: "success",
|
|
22407
|
+
metadataSource: null,
|
|
22406
22408
|
result: {
|
|
22407
22409
|
width: composition.width,
|
|
22408
22410
|
height: composition.height,
|
|
@@ -22921,7 +22923,7 @@ var getSingleChildComponent = (children) => {
|
|
|
22921
22923
|
}
|
|
22922
22924
|
return child.type;
|
|
22923
22925
|
};
|
|
22924
|
-
var VERSION = "4.0.
|
|
22926
|
+
var VERSION = "4.0.494";
|
|
22925
22927
|
var checkMultipleRemotionVersions = () => {
|
|
22926
22928
|
if (typeof globalThis === "undefined") {
|
|
22927
22929
|
return;
|
|
@@ -26286,7 +26288,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
|
|
|
26286
26288
|
const style = useMemo14(() => {
|
|
26287
26289
|
return {
|
|
26288
26290
|
...passedStyle,
|
|
26289
|
-
opacity: premountingActive || postmountingActive ? 0 :
|
|
26291
|
+
opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
|
|
26290
26292
|
pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
|
|
26291
26293
|
...premountingActive ? styleWhilePremounted : {},
|
|
26292
26294
|
...postmountingActive ? styleWhilePostmounted : {}
|
|
@@ -26864,6 +26866,13 @@ var decodeImage = async ({
|
|
|
26864
26866
|
frameCount: selectedTrack.frameCount
|
|
26865
26867
|
};
|
|
26866
26868
|
};
|
|
26869
|
+
var getCurrentTime = ({
|
|
26870
|
+
frame,
|
|
26871
|
+
playbackRate,
|
|
26872
|
+
fps
|
|
26873
|
+
}) => {
|
|
26874
|
+
return frame * playbackRate / fps;
|
|
26875
|
+
};
|
|
26867
26876
|
var serializeRequestInit = (requestInit) => {
|
|
26868
26877
|
if (!requestInit) {
|
|
26869
26878
|
return null;
|
|
@@ -26931,7 +26940,7 @@ var AnimatedImageContent = forwardRef4(({
|
|
|
26931
26940
|
const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
|
|
26932
26941
|
const frame = useCurrentFrame();
|
|
26933
26942
|
const { fps } = useVideoConfig();
|
|
26934
|
-
const currentTime = frame
|
|
26943
|
+
const currentTime = getCurrentTime({ frame, playbackRate, fps });
|
|
26935
26944
|
const currentTimeRef = useRef9(currentTime);
|
|
26936
26945
|
currentTimeRef.current = currentTime;
|
|
26937
26946
|
const requestInitKey = serializeRequestInit(requestInit);
|
|
@@ -27059,8 +27068,6 @@ var AnimatedImageInner = ({
|
|
|
27059
27068
|
ref,
|
|
27060
27069
|
...sequenceProps
|
|
27061
27070
|
}) => {
|
|
27062
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
27063
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
27064
27071
|
const actualRef = useRef9(null);
|
|
27065
27072
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
27066
27073
|
useImperativeHandle2(ref, () => {
|
|
@@ -27083,7 +27090,7 @@ var AnimatedImageInner = ({
|
|
|
27083
27090
|
};
|
|
27084
27091
|
return /* @__PURE__ */ jsx14(Sequence, {
|
|
27085
27092
|
layout: "none",
|
|
27086
|
-
durationInFrames
|
|
27093
|
+
durationInFrames,
|
|
27087
27094
|
name: "<AnimatedImage>",
|
|
27088
27095
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
|
|
27089
27096
|
controls,
|
|
@@ -30711,8 +30718,6 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
30711
30718
|
name,
|
|
30712
30719
|
...sequenceProps
|
|
30713
30720
|
}, ref) => {
|
|
30714
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
30715
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
30716
30721
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
30717
30722
|
const actualRef = useRef22(null);
|
|
30718
30723
|
const setCanvasRef = useCallback16((node) => {
|
|
@@ -30724,7 +30729,7 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
30724
30729
|
}
|
|
30725
30730
|
}, [ref]);
|
|
30726
30731
|
return /* @__PURE__ */ jsx25(Sequence, {
|
|
30727
|
-
durationInFrames
|
|
30732
|
+
durationInFrames,
|
|
30728
30733
|
name: name ?? "<HtmlInCanvas>",
|
|
30729
30734
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
|
|
30730
30735
|
controls,
|
|
@@ -32007,7 +32012,46 @@ var validateCalculated = ({
|
|
|
32007
32012
|
defaultSampleRate
|
|
32008
32013
|
};
|
|
32009
32014
|
};
|
|
32010
|
-
var
|
|
32015
|
+
var makeVideoConfigWithMetadata = ({
|
|
32016
|
+
calculated,
|
|
32017
|
+
compositionDurationInFrames,
|
|
32018
|
+
compositionFps,
|
|
32019
|
+
compositionHeight,
|
|
32020
|
+
compositionId,
|
|
32021
|
+
compositionWidth,
|
|
32022
|
+
defaultProps,
|
|
32023
|
+
originalProps
|
|
32024
|
+
}) => {
|
|
32025
|
+
const data = validateCalculated({
|
|
32026
|
+
calculated,
|
|
32027
|
+
compositionDurationInFrames,
|
|
32028
|
+
compositionFps,
|
|
32029
|
+
compositionHeight,
|
|
32030
|
+
compositionWidth,
|
|
32031
|
+
compositionId
|
|
32032
|
+
});
|
|
32033
|
+
return {
|
|
32034
|
+
metadataSource: {
|
|
32035
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
32036
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
32037
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
32038
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
32039
|
+
},
|
|
32040
|
+
videoConfig: {
|
|
32041
|
+
...data,
|
|
32042
|
+
id: compositionId,
|
|
32043
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
32044
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
32045
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
32046
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
32047
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
32048
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
32049
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
32050
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
32051
|
+
}
|
|
32052
|
+
};
|
|
32053
|
+
};
|
|
32054
|
+
var resolveVideoConfigWithMetadata = ({
|
|
32011
32055
|
calculateMetadata,
|
|
32012
32056
|
signal,
|
|
32013
32057
|
defaultProps,
|
|
@@ -32027,76 +32071,48 @@ var resolveVideoConfig = ({
|
|
|
32027
32071
|
}) : null;
|
|
32028
32072
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
32029
32073
|
return calculatedProm.then((c2) => {
|
|
32030
|
-
|
|
32031
|
-
height,
|
|
32032
|
-
width,
|
|
32033
|
-
durationInFrames,
|
|
32034
|
-
fps,
|
|
32035
|
-
defaultCodec,
|
|
32036
|
-
defaultOutName,
|
|
32037
|
-
defaultVideoImageFormat,
|
|
32038
|
-
defaultPixelFormat,
|
|
32039
|
-
defaultProResProfile,
|
|
32040
|
-
defaultSampleRate
|
|
32041
|
-
} = validateCalculated({
|
|
32074
|
+
return makeVideoConfigWithMetadata({
|
|
32042
32075
|
calculated: c2,
|
|
32043
32076
|
compositionDurationInFrames,
|
|
32044
32077
|
compositionFps,
|
|
32045
32078
|
compositionHeight,
|
|
32046
32079
|
compositionWidth,
|
|
32047
|
-
compositionId
|
|
32080
|
+
compositionId,
|
|
32081
|
+
defaultProps,
|
|
32082
|
+
originalProps
|
|
32048
32083
|
});
|
|
32049
|
-
return {
|
|
32050
|
-
width,
|
|
32051
|
-
height,
|
|
32052
|
-
fps,
|
|
32053
|
-
durationInFrames,
|
|
32054
|
-
id: compositionId,
|
|
32055
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps),
|
|
32056
|
-
props: serializeThenDeserializeInStudio(c2.props ?? originalProps),
|
|
32057
|
-
defaultCodec: defaultCodec ?? null,
|
|
32058
|
-
defaultOutName: defaultOutName ?? null,
|
|
32059
|
-
defaultVideoImageFormat: defaultVideoImageFormat ?? null,
|
|
32060
|
-
defaultPixelFormat: defaultPixelFormat ?? null,
|
|
32061
|
-
defaultProResProfile: defaultProResProfile ?? null,
|
|
32062
|
-
defaultSampleRate: defaultSampleRate ?? null
|
|
32063
|
-
};
|
|
32064
32084
|
});
|
|
32065
32085
|
}
|
|
32066
|
-
|
|
32086
|
+
return makeVideoConfigWithMetadata({
|
|
32067
32087
|
calculated: calculatedProm,
|
|
32068
32088
|
compositionDurationInFrames,
|
|
32069
32089
|
compositionFps,
|
|
32070
32090
|
compositionHeight,
|
|
32071
32091
|
compositionWidth,
|
|
32072
|
-
compositionId
|
|
32092
|
+
compositionId,
|
|
32093
|
+
defaultProps,
|
|
32094
|
+
originalProps
|
|
32073
32095
|
});
|
|
32074
|
-
|
|
32096
|
+
};
|
|
32097
|
+
var resolveVideoConfig = (params) => {
|
|
32098
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
32099
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
32100
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
32101
|
+
}
|
|
32102
|
+
return resolved.videoConfig;
|
|
32103
|
+
};
|
|
32104
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
32105
|
+
try {
|
|
32075
32106
|
return {
|
|
32076
|
-
|
|
32077
|
-
|
|
32078
|
-
|
|
32079
|
-
|
|
32080
|
-
|
|
32081
|
-
|
|
32082
|
-
|
|
32083
|
-
defaultPixelFormat: null,
|
|
32084
|
-
defaultProResProfile: null,
|
|
32085
|
-
defaultSampleRate: null
|
|
32107
|
+
type: "success",
|
|
32108
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
32109
|
+
};
|
|
32110
|
+
} catch (err) {
|
|
32111
|
+
return {
|
|
32112
|
+
type: "error",
|
|
32113
|
+
error: err
|
|
32086
32114
|
};
|
|
32087
32115
|
}
|
|
32088
|
-
return {
|
|
32089
|
-
...data,
|
|
32090
|
-
id: compositionId,
|
|
32091
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
32092
|
-
props: serializeThenDeserializeInStudio(calculatedProm.props ?? originalProps),
|
|
32093
|
-
defaultCodec: calculatedProm.defaultCodec ?? null,
|
|
32094
|
-
defaultOutName: calculatedProm.defaultOutName ?? null,
|
|
32095
|
-
defaultVideoImageFormat: calculatedProm.defaultVideoImageFormat ?? null,
|
|
32096
|
-
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null,
|
|
32097
|
-
defaultProResProfile: calculatedProm.defaultProResProfile ?? null,
|
|
32098
|
-
defaultSampleRate: calculatedProm.defaultSampleRate ?? null
|
|
32099
|
-
};
|
|
32100
32116
|
};
|
|
32101
32117
|
var resolveVideoConfigOrCatch = (params) => {
|
|
32102
32118
|
try {
|
|
@@ -32976,6 +32992,7 @@ var Internals = {
|
|
|
32976
32992
|
NonceContext,
|
|
32977
32993
|
resolveVideoConfig,
|
|
32978
32994
|
resolveVideoConfigOrCatch,
|
|
32995
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
32979
32996
|
ResolveCompositionContext,
|
|
32980
32997
|
useResolvedVideoConfig,
|
|
32981
32998
|
resolveCompositionsRef,
|