@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
package/dist/experts.js
CHANGED
|
@@ -1822,6 +1822,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
1822
1822
|
if (currentCompositionMetadata) {
|
|
1823
1823
|
return {
|
|
1824
1824
|
type: "success",
|
|
1825
|
+
metadataSource: null,
|
|
1825
1826
|
result: {
|
|
1826
1827
|
...currentCompositionMetadata,
|
|
1827
1828
|
id: composition.id,
|
|
@@ -1839,6 +1840,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
1839
1840
|
validateDimension(composition.height, "height", `in <Composition id="${composition.id}">`);
|
|
1840
1841
|
return {
|
|
1841
1842
|
type: "success",
|
|
1843
|
+
metadataSource: null,
|
|
1842
1844
|
result: {
|
|
1843
1845
|
width: composition.width,
|
|
1844
1846
|
height: composition.height,
|
|
@@ -2357,7 +2359,7 @@ var getSingleChildComponent = (children) => {
|
|
|
2357
2359
|
}
|
|
2358
2360
|
return child.type;
|
|
2359
2361
|
};
|
|
2360
|
-
var VERSION = "4.0.
|
|
2362
|
+
var VERSION = "4.0.494";
|
|
2361
2363
|
var checkMultipleRemotionVersions = () => {
|
|
2362
2364
|
if (typeof globalThis === "undefined") {
|
|
2363
2365
|
return;
|
|
@@ -5722,7 +5724,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
|
|
|
5722
5724
|
const style = useMemo14(() => {
|
|
5723
5725
|
return {
|
|
5724
5726
|
...passedStyle,
|
|
5725
|
-
opacity: premountingActive || postmountingActive ? 0 :
|
|
5727
|
+
opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
|
|
5726
5728
|
pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
|
|
5727
5729
|
...premountingActive ? styleWhilePremounted : {},
|
|
5728
5730
|
...postmountingActive ? styleWhilePostmounted : {}
|
|
@@ -6300,6 +6302,13 @@ var decodeImage = async ({
|
|
|
6300
6302
|
frameCount: selectedTrack.frameCount
|
|
6301
6303
|
};
|
|
6302
6304
|
};
|
|
6305
|
+
var getCurrentTime = ({
|
|
6306
|
+
frame,
|
|
6307
|
+
playbackRate,
|
|
6308
|
+
fps
|
|
6309
|
+
}) => {
|
|
6310
|
+
return frame * playbackRate / fps;
|
|
6311
|
+
};
|
|
6303
6312
|
var serializeRequestInit = (requestInit) => {
|
|
6304
6313
|
if (!requestInit) {
|
|
6305
6314
|
return null;
|
|
@@ -6367,7 +6376,7 @@ var AnimatedImageContent = forwardRef4(({
|
|
|
6367
6376
|
const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
|
|
6368
6377
|
const frame = useCurrentFrame();
|
|
6369
6378
|
const { fps } = useVideoConfig();
|
|
6370
|
-
const currentTime = frame
|
|
6379
|
+
const currentTime = getCurrentTime({ frame, playbackRate, fps });
|
|
6371
6380
|
const currentTimeRef = useRef9(currentTime);
|
|
6372
6381
|
currentTimeRef.current = currentTime;
|
|
6373
6382
|
const requestInitKey = serializeRequestInit(requestInit);
|
|
@@ -6495,8 +6504,6 @@ var AnimatedImageInner = ({
|
|
|
6495
6504
|
ref,
|
|
6496
6505
|
...sequenceProps
|
|
6497
6506
|
}) => {
|
|
6498
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
6499
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
6500
6507
|
const actualRef = useRef9(null);
|
|
6501
6508
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
6502
6509
|
useImperativeHandle2(ref, () => {
|
|
@@ -6519,7 +6526,7 @@ var AnimatedImageInner = ({
|
|
|
6519
6526
|
};
|
|
6520
6527
|
return /* @__PURE__ */ jsx14(Sequence, {
|
|
6521
6528
|
layout: "none",
|
|
6522
|
-
durationInFrames
|
|
6529
|
+
durationInFrames,
|
|
6523
6530
|
name: "<AnimatedImage>",
|
|
6524
6531
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
|
|
6525
6532
|
controls,
|
|
@@ -10147,8 +10154,6 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
10147
10154
|
name,
|
|
10148
10155
|
...sequenceProps
|
|
10149
10156
|
}, ref) => {
|
|
10150
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
10151
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
10152
10157
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
10153
10158
|
const actualRef = useRef22(null);
|
|
10154
10159
|
const setCanvasRef = useCallback16((node) => {
|
|
@@ -10160,7 +10165,7 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
10160
10165
|
}
|
|
10161
10166
|
}, [ref]);
|
|
10162
10167
|
return /* @__PURE__ */ jsx25(Sequence, {
|
|
10163
|
-
durationInFrames
|
|
10168
|
+
durationInFrames,
|
|
10164
10169
|
name: name ?? "<HtmlInCanvas>",
|
|
10165
10170
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
|
|
10166
10171
|
controls,
|
|
@@ -11443,7 +11448,46 @@ var validateCalculated = ({
|
|
|
11443
11448
|
defaultSampleRate
|
|
11444
11449
|
};
|
|
11445
11450
|
};
|
|
11446
|
-
var
|
|
11451
|
+
var makeVideoConfigWithMetadata = ({
|
|
11452
|
+
calculated,
|
|
11453
|
+
compositionDurationInFrames,
|
|
11454
|
+
compositionFps,
|
|
11455
|
+
compositionHeight,
|
|
11456
|
+
compositionId,
|
|
11457
|
+
compositionWidth,
|
|
11458
|
+
defaultProps,
|
|
11459
|
+
originalProps
|
|
11460
|
+
}) => {
|
|
11461
|
+
const data = validateCalculated({
|
|
11462
|
+
calculated,
|
|
11463
|
+
compositionDurationInFrames,
|
|
11464
|
+
compositionFps,
|
|
11465
|
+
compositionHeight,
|
|
11466
|
+
compositionWidth,
|
|
11467
|
+
compositionId
|
|
11468
|
+
});
|
|
11469
|
+
return {
|
|
11470
|
+
metadataSource: {
|
|
11471
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
11472
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
11473
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
11474
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
11475
|
+
},
|
|
11476
|
+
videoConfig: {
|
|
11477
|
+
...data,
|
|
11478
|
+
id: compositionId,
|
|
11479
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
11480
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
11481
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
11482
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
11483
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
11484
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
11485
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
11486
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
11487
|
+
}
|
|
11488
|
+
};
|
|
11489
|
+
};
|
|
11490
|
+
var resolveVideoConfigWithMetadata = ({
|
|
11447
11491
|
calculateMetadata,
|
|
11448
11492
|
signal,
|
|
11449
11493
|
defaultProps,
|
|
@@ -11463,76 +11507,48 @@ var resolveVideoConfig = ({
|
|
|
11463
11507
|
}) : null;
|
|
11464
11508
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
11465
11509
|
return calculatedProm.then((c2) => {
|
|
11466
|
-
|
|
11467
|
-
height,
|
|
11468
|
-
width,
|
|
11469
|
-
durationInFrames,
|
|
11470
|
-
fps,
|
|
11471
|
-
defaultCodec,
|
|
11472
|
-
defaultOutName,
|
|
11473
|
-
defaultVideoImageFormat,
|
|
11474
|
-
defaultPixelFormat,
|
|
11475
|
-
defaultProResProfile,
|
|
11476
|
-
defaultSampleRate
|
|
11477
|
-
} = validateCalculated({
|
|
11510
|
+
return makeVideoConfigWithMetadata({
|
|
11478
11511
|
calculated: c2,
|
|
11479
11512
|
compositionDurationInFrames,
|
|
11480
11513
|
compositionFps,
|
|
11481
11514
|
compositionHeight,
|
|
11482
11515
|
compositionWidth,
|
|
11483
|
-
compositionId
|
|
11516
|
+
compositionId,
|
|
11517
|
+
defaultProps,
|
|
11518
|
+
originalProps
|
|
11484
11519
|
});
|
|
11485
|
-
return {
|
|
11486
|
-
width,
|
|
11487
|
-
height,
|
|
11488
|
-
fps,
|
|
11489
|
-
durationInFrames,
|
|
11490
|
-
id: compositionId,
|
|
11491
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps),
|
|
11492
|
-
props: serializeThenDeserializeInStudio(c2.props ?? originalProps),
|
|
11493
|
-
defaultCodec: defaultCodec ?? null,
|
|
11494
|
-
defaultOutName: defaultOutName ?? null,
|
|
11495
|
-
defaultVideoImageFormat: defaultVideoImageFormat ?? null,
|
|
11496
|
-
defaultPixelFormat: defaultPixelFormat ?? null,
|
|
11497
|
-
defaultProResProfile: defaultProResProfile ?? null,
|
|
11498
|
-
defaultSampleRate: defaultSampleRate ?? null
|
|
11499
|
-
};
|
|
11500
11520
|
});
|
|
11501
11521
|
}
|
|
11502
|
-
|
|
11522
|
+
return makeVideoConfigWithMetadata({
|
|
11503
11523
|
calculated: calculatedProm,
|
|
11504
11524
|
compositionDurationInFrames,
|
|
11505
11525
|
compositionFps,
|
|
11506
11526
|
compositionHeight,
|
|
11507
11527
|
compositionWidth,
|
|
11508
|
-
compositionId
|
|
11528
|
+
compositionId,
|
|
11529
|
+
defaultProps,
|
|
11530
|
+
originalProps
|
|
11509
11531
|
});
|
|
11510
|
-
|
|
11532
|
+
};
|
|
11533
|
+
var resolveVideoConfig = (params) => {
|
|
11534
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
11535
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
11536
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
11537
|
+
}
|
|
11538
|
+
return resolved.videoConfig;
|
|
11539
|
+
};
|
|
11540
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
11541
|
+
try {
|
|
11511
11542
|
return {
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
defaultPixelFormat: null,
|
|
11520
|
-
defaultProResProfile: null,
|
|
11521
|
-
defaultSampleRate: null
|
|
11543
|
+
type: "success",
|
|
11544
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
11545
|
+
};
|
|
11546
|
+
} catch (err) {
|
|
11547
|
+
return {
|
|
11548
|
+
type: "error",
|
|
11549
|
+
error: err
|
|
11522
11550
|
};
|
|
11523
11551
|
}
|
|
11524
|
-
return {
|
|
11525
|
-
...data,
|
|
11526
|
-
id: compositionId,
|
|
11527
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
11528
|
-
props: serializeThenDeserializeInStudio(calculatedProm.props ?? originalProps),
|
|
11529
|
-
defaultCodec: calculatedProm.defaultCodec ?? null,
|
|
11530
|
-
defaultOutName: calculatedProm.defaultOutName ?? null,
|
|
11531
|
-
defaultVideoImageFormat: calculatedProm.defaultVideoImageFormat ?? null,
|
|
11532
|
-
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null,
|
|
11533
|
-
defaultProResProfile: calculatedProm.defaultProResProfile ?? null,
|
|
11534
|
-
defaultSampleRate: calculatedProm.defaultSampleRate ?? null
|
|
11535
|
-
};
|
|
11536
11552
|
};
|
|
11537
11553
|
var resolveVideoConfigOrCatch = (params) => {
|
|
11538
11554
|
try {
|
|
@@ -12412,6 +12428,7 @@ var Internals = {
|
|
|
12412
12428
|
NonceContext,
|
|
12413
12429
|
resolveVideoConfig,
|
|
12414
12430
|
resolveVideoConfigOrCatch,
|
|
12431
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
12415
12432
|
ResolveCompositionContext,
|
|
12416
12433
|
useResolvedVideoConfig,
|
|
12417
12434
|
resolveCompositionsRef,
|
package/dist/homepage/Pricing.js
CHANGED
|
@@ -5055,6 +5055,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5055
5055
|
if (currentCompositionMetadata) {
|
|
5056
5056
|
return {
|
|
5057
5057
|
type: "success",
|
|
5058
|
+
metadataSource: null,
|
|
5058
5059
|
result: {
|
|
5059
5060
|
...currentCompositionMetadata,
|
|
5060
5061
|
id: composition.id,
|
|
@@ -5072,6 +5073,7 @@ var useResolvedVideoConfig = (preferredCompositionId) => {
|
|
|
5072
5073
|
validateDimension(composition.height, "height", `in <Composition id="${composition.id}">`);
|
|
5073
5074
|
return {
|
|
5074
5075
|
type: "success",
|
|
5076
|
+
metadataSource: null,
|
|
5075
5077
|
result: {
|
|
5076
5078
|
width: composition.width,
|
|
5077
5079
|
height: composition.height,
|
|
@@ -5590,7 +5592,7 @@ var getSingleChildComponent = (children) => {
|
|
|
5590
5592
|
}
|
|
5591
5593
|
return child.type;
|
|
5592
5594
|
};
|
|
5593
|
-
var VERSION = "4.0.
|
|
5595
|
+
var VERSION = "4.0.494";
|
|
5594
5596
|
var checkMultipleRemotionVersions = () => {
|
|
5595
5597
|
if (typeof globalThis === "undefined") {
|
|
5596
5598
|
return;
|
|
@@ -8955,7 +8957,7 @@ var PremountedPostmountedSequenceRefForwardingFunction = (props, ref) => {
|
|
|
8955
8957
|
const style = useMemo14(() => {
|
|
8956
8958
|
return {
|
|
8957
8959
|
...passedStyle,
|
|
8958
|
-
opacity: premountingActive || postmountingActive ? 0 :
|
|
8960
|
+
opacity: premountingActive || postmountingActive ? 0 : passedStyle?.opacity,
|
|
8959
8961
|
pointerEvents: premountingActive || postmountingActive ? "none" : passedStyle?.pointerEvents ?? undefined,
|
|
8960
8962
|
...premountingActive ? styleWhilePremounted : {},
|
|
8961
8963
|
...postmountingActive ? styleWhilePostmounted : {}
|
|
@@ -9533,6 +9535,13 @@ var decodeImage = async ({
|
|
|
9533
9535
|
frameCount: selectedTrack.frameCount
|
|
9534
9536
|
};
|
|
9535
9537
|
};
|
|
9538
|
+
var getCurrentTime = ({
|
|
9539
|
+
frame,
|
|
9540
|
+
playbackRate,
|
|
9541
|
+
fps
|
|
9542
|
+
}) => {
|
|
9543
|
+
return frame * playbackRate / fps;
|
|
9544
|
+
};
|
|
9536
9545
|
var serializeRequestInit = (requestInit) => {
|
|
9537
9546
|
if (!requestInit) {
|
|
9538
9547
|
return null;
|
|
@@ -9600,7 +9609,7 @@ var AnimatedImageContent = forwardRef4(({
|
|
|
9600
9609
|
const [decodeHandle] = useState6(() => delayRender2(`Rendering <AnimatedImage/> with src="${resolvedSrc}"`));
|
|
9601
9610
|
const frame = useCurrentFrame();
|
|
9602
9611
|
const { fps } = useVideoConfig();
|
|
9603
|
-
const currentTime = frame
|
|
9612
|
+
const currentTime = getCurrentTime({ frame, playbackRate, fps });
|
|
9604
9613
|
const currentTimeRef = useRef9(currentTime);
|
|
9605
9614
|
currentTimeRef.current = currentTime;
|
|
9606
9615
|
const requestInitKey = serializeRequestInit(requestInit);
|
|
@@ -9728,8 +9737,6 @@ var AnimatedImageInner = ({
|
|
|
9728
9737
|
ref,
|
|
9729
9738
|
...sequenceProps
|
|
9730
9739
|
}) => {
|
|
9731
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
9732
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
9733
9740
|
const actualRef = useRef9(null);
|
|
9734
9741
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
9735
9742
|
useImperativeHandle2(ref, () => {
|
|
@@ -9752,7 +9759,7 @@ var AnimatedImageInner = ({
|
|
|
9752
9759
|
};
|
|
9753
9760
|
return /* @__PURE__ */ jsx14(Sequence, {
|
|
9754
9761
|
layout: "none",
|
|
9755
|
-
durationInFrames
|
|
9762
|
+
durationInFrames,
|
|
9756
9763
|
name: "<AnimatedImage>",
|
|
9757
9764
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/animatedimage",
|
|
9758
9765
|
controls,
|
|
@@ -13380,8 +13387,6 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13380
13387
|
name,
|
|
13381
13388
|
...sequenceProps
|
|
13382
13389
|
}, ref) => {
|
|
13383
|
-
const { durationInFrames: videoDuration } = useVideoConfig();
|
|
13384
|
-
const resolvedDuration = durationInFrames ?? videoDuration;
|
|
13385
13390
|
const memoizedEffectDefinitions = useMemoizedEffectDefinitions(effects);
|
|
13386
13391
|
const actualRef = useRef22(null);
|
|
13387
13392
|
const setCanvasRef = useCallback16((node) => {
|
|
@@ -13393,7 +13398,7 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13393
13398
|
}
|
|
13394
13399
|
}, [ref]);
|
|
13395
13400
|
return /* @__PURE__ */ jsx25(Sequence, {
|
|
13396
|
-
durationInFrames
|
|
13401
|
+
durationInFrames,
|
|
13397
13402
|
name: name ?? "<HtmlInCanvas>",
|
|
13398
13403
|
_remotionInternalDocumentationLink: "https://www.remotion.dev/docs/remotion/html-in-canvas",
|
|
13399
13404
|
controls,
|
|
@@ -14676,7 +14681,46 @@ var validateCalculated = ({
|
|
|
14676
14681
|
defaultSampleRate
|
|
14677
14682
|
};
|
|
14678
14683
|
};
|
|
14679
|
-
var
|
|
14684
|
+
var makeVideoConfigWithMetadata = ({
|
|
14685
|
+
calculated,
|
|
14686
|
+
compositionDurationInFrames,
|
|
14687
|
+
compositionFps,
|
|
14688
|
+
compositionHeight,
|
|
14689
|
+
compositionId,
|
|
14690
|
+
compositionWidth,
|
|
14691
|
+
defaultProps,
|
|
14692
|
+
originalProps
|
|
14693
|
+
}) => {
|
|
14694
|
+
const data = validateCalculated({
|
|
14695
|
+
calculated,
|
|
14696
|
+
compositionDurationInFrames,
|
|
14697
|
+
compositionFps,
|
|
14698
|
+
compositionHeight,
|
|
14699
|
+
compositionWidth,
|
|
14700
|
+
compositionId
|
|
14701
|
+
});
|
|
14702
|
+
return {
|
|
14703
|
+
metadataSource: {
|
|
14704
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
14705
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
14706
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
14707
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
14708
|
+
},
|
|
14709
|
+
videoConfig: {
|
|
14710
|
+
...data,
|
|
14711
|
+
id: compositionId,
|
|
14712
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14713
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
14714
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
14715
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
14716
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
14717
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
14718
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
14719
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
14720
|
+
}
|
|
14721
|
+
};
|
|
14722
|
+
};
|
|
14723
|
+
var resolveVideoConfigWithMetadata = ({
|
|
14680
14724
|
calculateMetadata,
|
|
14681
14725
|
signal,
|
|
14682
14726
|
defaultProps,
|
|
@@ -14696,76 +14740,48 @@ var resolveVideoConfig = ({
|
|
|
14696
14740
|
}) : null;
|
|
14697
14741
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
14698
14742
|
return calculatedProm.then((c2) => {
|
|
14699
|
-
|
|
14700
|
-
height,
|
|
14701
|
-
width,
|
|
14702
|
-
durationInFrames,
|
|
14703
|
-
fps,
|
|
14704
|
-
defaultCodec,
|
|
14705
|
-
defaultOutName,
|
|
14706
|
-
defaultVideoImageFormat,
|
|
14707
|
-
defaultPixelFormat,
|
|
14708
|
-
defaultProResProfile,
|
|
14709
|
-
defaultSampleRate
|
|
14710
|
-
} = validateCalculated({
|
|
14743
|
+
return makeVideoConfigWithMetadata({
|
|
14711
14744
|
calculated: c2,
|
|
14712
14745
|
compositionDurationInFrames,
|
|
14713
14746
|
compositionFps,
|
|
14714
14747
|
compositionHeight,
|
|
14715
14748
|
compositionWidth,
|
|
14716
|
-
compositionId
|
|
14749
|
+
compositionId,
|
|
14750
|
+
defaultProps,
|
|
14751
|
+
originalProps
|
|
14717
14752
|
});
|
|
14718
|
-
return {
|
|
14719
|
-
width,
|
|
14720
|
-
height,
|
|
14721
|
-
fps,
|
|
14722
|
-
durationInFrames,
|
|
14723
|
-
id: compositionId,
|
|
14724
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps),
|
|
14725
|
-
props: serializeThenDeserializeInStudio(c2.props ?? originalProps),
|
|
14726
|
-
defaultCodec: defaultCodec ?? null,
|
|
14727
|
-
defaultOutName: defaultOutName ?? null,
|
|
14728
|
-
defaultVideoImageFormat: defaultVideoImageFormat ?? null,
|
|
14729
|
-
defaultPixelFormat: defaultPixelFormat ?? null,
|
|
14730
|
-
defaultProResProfile: defaultProResProfile ?? null,
|
|
14731
|
-
defaultSampleRate: defaultSampleRate ?? null
|
|
14732
|
-
};
|
|
14733
14753
|
});
|
|
14734
14754
|
}
|
|
14735
|
-
|
|
14755
|
+
return makeVideoConfigWithMetadata({
|
|
14736
14756
|
calculated: calculatedProm,
|
|
14737
14757
|
compositionDurationInFrames,
|
|
14738
14758
|
compositionFps,
|
|
14739
14759
|
compositionHeight,
|
|
14740
14760
|
compositionWidth,
|
|
14741
|
-
compositionId
|
|
14761
|
+
compositionId,
|
|
14762
|
+
defaultProps,
|
|
14763
|
+
originalProps
|
|
14742
14764
|
});
|
|
14743
|
-
|
|
14765
|
+
};
|
|
14766
|
+
var resolveVideoConfig = (params) => {
|
|
14767
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
14768
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
14769
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
14770
|
+
}
|
|
14771
|
+
return resolved.videoConfig;
|
|
14772
|
+
};
|
|
14773
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
14774
|
+
try {
|
|
14744
14775
|
return {
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
|
|
14750
|
-
|
|
14751
|
-
|
|
14752
|
-
defaultPixelFormat: null,
|
|
14753
|
-
defaultProResProfile: null,
|
|
14754
|
-
defaultSampleRate: null
|
|
14776
|
+
type: "success",
|
|
14777
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
14778
|
+
};
|
|
14779
|
+
} catch (err) {
|
|
14780
|
+
return {
|
|
14781
|
+
type: "error",
|
|
14782
|
+
error: err
|
|
14755
14783
|
};
|
|
14756
14784
|
}
|
|
14757
|
-
return {
|
|
14758
|
-
...data,
|
|
14759
|
-
id: compositionId,
|
|
14760
|
-
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14761
|
-
props: serializeThenDeserializeInStudio(calculatedProm.props ?? originalProps),
|
|
14762
|
-
defaultCodec: calculatedProm.defaultCodec ?? null,
|
|
14763
|
-
defaultOutName: calculatedProm.defaultOutName ?? null,
|
|
14764
|
-
defaultVideoImageFormat: calculatedProm.defaultVideoImageFormat ?? null,
|
|
14765
|
-
defaultPixelFormat: calculatedProm.defaultPixelFormat ?? null,
|
|
14766
|
-
defaultProResProfile: calculatedProm.defaultProResProfile ?? null,
|
|
14767
|
-
defaultSampleRate: calculatedProm.defaultSampleRate ?? null
|
|
14768
|
-
};
|
|
14769
14785
|
};
|
|
14770
14786
|
var resolveVideoConfigOrCatch = (params) => {
|
|
14771
14787
|
try {
|
|
@@ -15645,6 +15661,7 @@ var Internals = {
|
|
|
15645
15661
|
NonceContext,
|
|
15646
15662
|
resolveVideoConfig,
|
|
15647
15663
|
resolveVideoConfigOrCatch,
|
|
15664
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
15648
15665
|
ResolveCompositionContext,
|
|
15649
15666
|
useResolvedVideoConfig,
|
|
15650
15667
|
resolveCompositionsRef,
|