@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/team.js
CHANGED
|
@@ -5233,6 +5233,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5233
5233
|
if (currentCompositionMetadata) {
|
|
5234
5234
|
return {
|
|
5235
5235
|
type: "success",
|
|
5236
|
+
metadataSource: null,
|
|
5236
5237
|
result: {
|
|
5237
5238
|
...currentCompositionMetadata,
|
|
5238
5239
|
id: composition.id,
|
|
@@ -5250,6 +5251,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5250
5251
|
validateDimension(composition.height, "height", `in <Composition id="${composition.id}">`);
|
|
5251
5252
|
return {
|
|
5252
5253
|
type: "success",
|
|
5254
|
+
metadataSource: null,
|
|
5253
5255
|
result: {
|
|
5254
5256
|
width: composition.width,
|
|
5255
5257
|
height: composition.height,
|
|
@@ -5768,7 +5770,7 @@ var getSingleChildComponent = (children) => {
|
|
|
5768
5770
|
}
|
|
5769
5771
|
return child.type;
|
|
5770
5772
|
};
|
|
5771
|
-
var VERSION = "4.0.
|
|
5773
|
+
var VERSION = "4.0.494";
|
|
5772
5774
|
var checkMultipleRemotionVersions = () => {
|
|
5773
5775
|
if (typeof globalThis === "undefined") {
|
|
5774
5776
|
return;
|
|
@@ -9133,7 +9135,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
|
|
|
9133
9135
|
const style = useMemo14(() => {
|
|
9134
9136
|
return {
|
|
9135
9137
|
...passedStyle,
|
|
9136
|
-
opacity: premountingActive || postmountingActive ? 0 :
|
|
9138
|
+
opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
|
|
9137
9139
|
pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
|
|
9138
9140
|
...premountingActive ? styleWhilePremounted : {},
|
|
9139
9141
|
...postmountingActive ? styleWhilePostmounted : {}
|
|
@@ -9711,6 +9713,13 @@ var decodeImage = async ({
|
|
|
9711
9713
|
frameCount: selectedTrack.frameCount
|
|
9712
9714
|
};
|
|
9713
9715
|
};
|
|
9716
|
+
var getCurrentTime = ({
|
|
9717
|
+
frame,
|
|
9718
|
+
playbackRate,
|
|
9719
|
+
fps
|
|
9720
|
+
}) => {
|
|
9721
|
+
return frame * playbackRate / fps;
|
|
9722
|
+
};
|
|
9714
9723
|
var serializeRequestInit = (requestInit) => {
|
|
9715
9724
|
if (!requestInit) {
|
|
9716
9725
|
return null;
|
|
@@ -9778,7 +9787,7 @@ var AnimatedImageContent = forwardRef4(({
|
|
|
9778
9787
|
const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
|
|
9779
9788
|
const frame = useCurrentFrame();
|
|
9780
9789
|
const { fps } = useVideoConfig();
|
|
9781
|
-
const currentTime = frame
|
|
9790
|
+
const currentTime = getCurrentTime({ frame, playbackRate, fps });
|
|
9782
9791
|
const currentTimeRef = useRef9(currentTime);
|
|
9783
9792
|
currentTimeRef.current = currentTime;
|
|
9784
9793
|
const requestInitKey = serializeRequestInit(requestInit);
|
|
@@ -9906,8 +9915,6 @@ var AnimatedImageInner = ({
|
|
|
9906
9915
|
ref,
|
|
9907
9916
|
...sequenceProps
|
|
9908
9917
|
}) => {
|
|
9909
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
9910
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
9911
9918
|
const actualRef = useRef9(null);
|
|
9912
9919
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
9913
9920
|
useImperativeHandle2(ref, () => {
|
|
@@ -9930,7 +9937,7 @@ var AnimatedImageInner = ({
|
|
|
9930
9937
|
};
|
|
9931
9938
|
return /* @__PURE__ */ jsx14(Sequence, {
|
|
9932
9939
|
layout: "none",
|
|
9933
|
-
durationInFrames
|
|
9940
|
+
durationInFrames,
|
|
9934
9941
|
name: "<AnimatedImage>",
|
|
9935
9942
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
|
|
9936
9943
|
controls,
|
|
@@ -13558,8 +13565,6 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13558
13565
|
name,
|
|
13559
13566
|
...sequenceProps
|
|
13560
13567
|
}, ref) => {
|
|
13561
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
13562
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
13563
13568
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
13564
13569
|
const actualRef = useRef22(null);
|
|
13565
13570
|
const setCanvasRef = useCallback16((node) => {
|
|
@@ -13571,7 +13576,7 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13571
13576
|
}
|
|
13572
13577
|
}, [ref]);
|
|
13573
13578
|
return /* @__PURE__ */ jsx25(Sequence, {
|
|
13574
|
-
durationInFrames
|
|
13579
|
+
durationInFrames,
|
|
13575
13580
|
name: name ?? "<HtmlInCanvas>",
|
|
13576
13581
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
|
|
13577
13582
|
controls,
|
|
@@ -14854,7 +14859,46 @@ var validateCalculated = ({
|
|
|
14854
14859
|
defaultSampleRate
|
|
14855
14860
|
};
|
|
14856
14861
|
};
|
|
14857
|
-
var
|
|
14862
|
+
var makeVideoConfigWithMetadata = ({
|
|
14863
|
+
calculated,
|
|
14864
|
+
compositionDurationInFrames,
|
|
14865
|
+
compositionFps,
|
|
14866
|
+
compositionHeight,
|
|
14867
|
+
compositionId,
|
|
14868
|
+
compositionWidth,
|
|
14869
|
+
defaultProps,
|
|
14870
|
+
originalProps
|
|
14871
|
+
}) => {
|
|
14872
|
+
const data = validateCalculated({
|
|
14873
|
+
calculated,
|
|
14874
|
+
compositionDurationInFrames,
|
|
14875
|
+
compositionFps,
|
|
14876
|
+
compositionHeight,
|
|
14877
|
+
compositionWidth,
|
|
14878
|
+
compositionId
|
|
14879
|
+
});
|
|
14880
|
+
return {
|
|
14881
|
+
metadataSource: {
|
|
14882
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
14883
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
14884
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
14885
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
14886
|
+
},
|
|
14887
|
+
videoConfig: {
|
|
14888
|
+
...data,
|
|
14889
|
+
id: compositionId,
|
|
14890
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14891
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
14892
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
14893
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
14894
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
14895
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
14896
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
14897
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
14898
|
+
}
|
|
14899
|
+
};
|
|
14900
|
+
};
|
|
14901
|
+
var resolveVideoConfigWithMetadata = ({
|
|
14858
14902
|
calculateMetadata,
|
|
14859
14903
|
signal,
|
|
14860
14904
|
defaultProps,
|
|
@@ -14874,76 +14918,48 @@ var resolveVideoConfig = ({
|
|
|
14874
14918
|
}) : null;
|
|
14875
14919
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
14876
14920
|
return calculatedProm.then((c2) => {
|
|
14877
|
-
|
|
14878
|
-
height,
|
|
14879
|
-
width,
|
|
14880
|
-
durationInFrames,
|
|
14881
|
-
fps,
|
|
14882
|
-
defaultCodec,
|
|
14883
|
-
defaultOutName,
|
|
14884
|
-
defaultVideoImageFormat,
|
|
14885
|
-
defaultPixelFormat,
|
|
14886
|
-
defaultProResProfile,
|
|
14887
|
-
defaultSampleRate
|
|
14888
|
-
} = validateCalculated({
|
|
14921
|
+
return makeVideoConfigWithMetadata({
|
|
14889
14922
|
calculated: c2,
|
|
14890
14923
|
compositionDurationInFrames,
|
|
14891
14924
|
compositionFps,
|
|
14892
14925
|
compositionHeight,
|
|
14893
14926
|
compositionWidth,
|
|
14894
|
-
compositionId
|
|
14927
|
+
compositionId,
|
|
14928
|
+
defaultProps,
|
|
14929
|
+
originalProps
|
|
14895
14930
|
});
|
|
14896
|
-
return {
|
|
14897
|
-
width,
|
|
14898
|
-
height,
|
|
14899
|
-
fps,
|
|
14900
|
-
durationInFrames,
|
|
14901
|
-
id: compositionId,
|
|
14902
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps),
|
|
14903
|
-
props: serializeThenDeserializeInStudio(c2.props ?? originalProps),
|
|
14904
|
-
defaultCodec: defaultCodec ?? null,
|
|
14905
|
-
defaultOutName: defaultOutName ?? null,
|
|
14906
|
-
defaultVideoImageFormat: defaultVideoImageFormat ?? null,
|
|
14907
|
-
defaultPixelFormat: defaultPixelFormat ?? null,
|
|
14908
|
-
defaultProResProfile: defaultProResProfile ?? null,
|
|
14909
|
-
defaultSampleRate: defaultSampleRate ?? null
|
|
14910
|
-
};
|
|
14911
14931
|
});
|
|
14912
14932
|
}
|
|
14913
|
-
|
|
14933
|
+
return makeVideoConfigWithMetadata({
|
|
14914
14934
|
calculated: calculatedProm,
|
|
14915
14935
|
compositionDurationInFrames,
|
|
14916
14936
|
compositionFps,
|
|
14917
14937
|
compositionHeight,
|
|
14918
14938
|
compositionWidth,
|
|
14919
|
-
compositionId
|
|
14939
|
+
compositionId,
|
|
14940
|
+
defaultProps,
|
|
14941
|
+
originalProps
|
|
14920
14942
|
});
|
|
14921
|
-
|
|
14943
|
+
};
|
|
14944
|
+
var resolveVideoConfig = (params) => {
|
|
14945
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
14946
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
14947
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
14948
|
+
}
|
|
14949
|
+
return resolved.videoConfig;
|
|
14950
|
+
};
|
|
14951
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
14952
|
+
try {
|
|
14922
14953
|
return {
|
|
14923
|
-
|
|
14924
|
-
|
|
14925
|
-
|
|
14926
|
-
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
defaultPixelFormat: null,
|
|
14931
|
-
defaultProResProfile: null,
|
|
14932
|
-
defaultSampleRate: null
|
|
14954
|
+
type: "success",
|
|
14955
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
14956
|
+
};
|
|
14957
|
+
} catch (err) {
|
|
14958
|
+
return {
|
|
14959
|
+
type: "error",
|
|
14960
|
+
error: err
|
|
14933
14961
|
};
|
|
14934
14962
|
}
|
|
14935
|
-
return {
|
|
14936
|
-
...data,
|
|
14937
|
-
id: compositionId,
|
|
14938
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14939
|
-
props: serializeThenDeserializeInStudio(calculatedProm.props ?? originalProps),
|
|
14940
|
-
defaultCodec: calculatedProm.defaultCodec ?? null,
|
|
14941
|
-
defaultOutName: calculatedProm.defaultOutName ?? null,
|
|
14942
|
-
defaultVideoImageFormat: calculatedProm.defaultVideoImageFormat ?? null,
|
|
14943
|
-
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null,
|
|
14944
|
-
defaultProResProfile: calculatedProm.defaultProResProfile ?? null,
|
|
14945
|
-
defaultSampleRate: calculatedProm.defaultSampleRate ?? null
|
|
14946
|
-
};
|
|
14947
14963
|
};
|
|
14948
14964
|
var resolveVideoConfigOrCatch = (params) => {
|
|
14949
14965
|
try {
|
|
@@ -15823,6 +15839,7 @@ var Internals = {
|
|
|
15823
15839
|
NonceContext,
|
|
15824
15840
|
resolveVideoConfig,
|
|
15825
15841
|
resolveVideoConfigOrCatch,
|
|
15842
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
15826
15843
|
ResolveCompositionContext,
|
|
15827
15844
|
useResolvedVideoConfig,
|
|
15828
15845
|
resolveCompositionsRef,
|