@remotion/promo-pages 4.0.492 → 4.0.493
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 +70 -56
- package/dist/design.js +69 -55
- package/dist/experts.js +69 -55
- package/dist/homepage/Pricing.js +69 -55
- package/dist/prompts/PromptsGallery.js +69 -55
- package/dist/prompts/PromptsShow.js +69 -55
- package/dist/prompts/PromptsSubmit.js +69 -55
- package/dist/team.js +69 -55
- package/dist/template-modal-content.js +69 -55
- package/dist/templates.js +69 -55
- package/package.json +13 -13
package/dist/Homepage.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.493";
|
|
2361
2363
|
var checkMultipleRemotionVersions = () => {
|
|
2362
2364
|
if (typeof globalThis === "undefined") {
|
|
2363
2365
|
return;
|
|
@@ -11443,7 +11445,46 @@ var validateCalculated = ({
|
|
|
11443
11445
|
defaultSampleRate
|
|
11444
11446
|
};
|
|
11445
11447
|
};
|
|
11446
|
-
var
|
|
11448
|
+
var makeVideoConfigWithMetadata = ({
|
|
11449
|
+
calculated,
|
|
11450
|
+
compositionDurationInFrames,
|
|
11451
|
+
compositionFps,
|
|
11452
|
+
compositionHeight,
|
|
11453
|
+
compositionId,
|
|
11454
|
+
compositionWidth,
|
|
11455
|
+
defaultProps,
|
|
11456
|
+
originalProps
|
|
11457
|
+
}) => {
|
|
11458
|
+
const data = validateCalculated({
|
|
11459
|
+
calculated,
|
|
11460
|
+
compositionDurationInFrames,
|
|
11461
|
+
compositionFps,
|
|
11462
|
+
compositionHeight,
|
|
11463
|
+
compositionWidth,
|
|
11464
|
+
compositionId
|
|
11465
|
+
});
|
|
11466
|
+
return {
|
|
11467
|
+
metadataSource: {
|
|
11468
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
11469
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
11470
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
11471
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
11472
|
+
},
|
|
11473
|
+
videoConfig: {
|
|
11474
|
+
...data,
|
|
11475
|
+
id: compositionId,
|
|
11476
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
11477
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
11478
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
11479
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
11480
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
11481
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
11482
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
11483
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
11484
|
+
}
|
|
11485
|
+
};
|
|
11486
|
+
};
|
|
11487
|
+
var resolveVideoConfigWithMetadata = ({
|
|
11447
11488
|
calculateMetadata,
|
|
11448
11489
|
signal,
|
|
11449
11490
|
defaultProps,
|
|
@@ -11463,76 +11504,48 @@ var resolveVideoConfig = ({
|
|
|
11463
11504
|
}) : null;
|
|
11464
11505
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
11465
11506
|
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({
|
|
11507
|
+
return makeVideoConfigWithMetadata({
|
|
11478
11508
|
calculated: c2,
|
|
11479
11509
|
compositionDurationInFrames,
|
|
11480
11510
|
compositionFps,
|
|
11481
11511
|
compositionHeight,
|
|
11482
11512
|
compositionWidth,
|
|
11483
|
-
compositionId
|
|
11513
|
+
compositionId,
|
|
11514
|
+
defaultProps,
|
|
11515
|
+
originalProps
|
|
11484
11516
|
});
|
|
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
11517
|
});
|
|
11501
11518
|
}
|
|
11502
|
-
|
|
11519
|
+
return makeVideoConfigWithMetadata({
|
|
11503
11520
|
calculated: calculatedProm,
|
|
11504
11521
|
compositionDurationInFrames,
|
|
11505
11522
|
compositionFps,
|
|
11506
11523
|
compositionHeight,
|
|
11507
11524
|
compositionWidth,
|
|
11508
|
-
compositionId
|
|
11525
|
+
compositionId,
|
|
11526
|
+
defaultProps,
|
|
11527
|
+
originalProps
|
|
11509
11528
|
});
|
|
11510
|
-
|
|
11529
|
+
};
|
|
11530
|
+
var resolveVideoConfig = (params) => {
|
|
11531
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
11532
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
11533
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
11534
|
+
}
|
|
11535
|
+
return resolved.videoConfig;
|
|
11536
|
+
};
|
|
11537
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
11538
|
+
try {
|
|
11511
11539
|
return {
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
defaultPixelFormat: null,
|
|
11520
|
-
defaultProResProfile: null,
|
|
11521
|
-
defaultSampleRate: null
|
|
11540
|
+
type: "success",
|
|
11541
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
11542
|
+
};
|
|
11543
|
+
} catch (err) {
|
|
11544
|
+
return {
|
|
11545
|
+
type: "error",
|
|
11546
|
+
error: err
|
|
11522
11547
|
};
|
|
11523
11548
|
}
|
|
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
11549
|
};
|
|
11537
11550
|
var resolveVideoConfigOrCatch = (params) => {
|
|
11538
11551
|
try {
|
|
@@ -12412,6 +12425,7 @@ var Internals = {
|
|
|
12412
12425
|
NonceContext,
|
|
12413
12426
|
resolveVideoConfig,
|
|
12414
12427
|
resolveVideoConfigOrCatch,
|
|
12428
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
12415
12429
|
ResolveCompositionContext,
|
|
12416
12430
|
useResolvedVideoConfig,
|
|
12417
12431
|
resolveCompositionsRef,
|
|
@@ -43294,7 +43308,7 @@ import {
|
|
|
43294
43308
|
import { BufferTarget, StreamTarget } from "mediabunny";
|
|
43295
43309
|
|
|
43296
43310
|
// ../core/dist/esm/version.mjs
|
|
43297
|
-
var VERSION2 = "4.0.
|
|
43311
|
+
var VERSION2 = "4.0.493";
|
|
43298
43312
|
|
|
43299
43313
|
// ../web-renderer/dist/esm/index.mjs
|
|
43300
43314
|
import { AudioSample, VideoSample } from "mediabunny";
|
package/dist/design.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.493";
|
|
5591
5593
|
var checkMultipleRemotionVersions = () => {
|
|
5592
5594
|
if (typeof globalThis === "undefined") {
|
|
5593
5595
|
return;
|
|
@@ -14673,7 +14675,46 @@ var validateCalculated = ({
|
|
|
14673
14675
|
defaultSampleRate
|
|
14674
14676
|
};
|
|
14675
14677
|
};
|
|
14676
|
-
var
|
|
14678
|
+
var makeVideoConfigWithMetadata = ({
|
|
14679
|
+
calculated,
|
|
14680
|
+
compositionDurationInFrames,
|
|
14681
|
+
compositionFps,
|
|
14682
|
+
compositionHeight,
|
|
14683
|
+
compositionId,
|
|
14684
|
+
compositionWidth,
|
|
14685
|
+
defaultProps,
|
|
14686
|
+
originalProps
|
|
14687
|
+
}) => {
|
|
14688
|
+
const data = validateCalculated({
|
|
14689
|
+
calculated,
|
|
14690
|
+
compositionDurationInFrames,
|
|
14691
|
+
compositionFps,
|
|
14692
|
+
compositionHeight,
|
|
14693
|
+
compositionWidth,
|
|
14694
|
+
compositionId
|
|
14695
|
+
});
|
|
14696
|
+
return {
|
|
14697
|
+
metadataSource: {
|
|
14698
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
14699
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
14700
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
14701
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
14702
|
+
},
|
|
14703
|
+
videoConfig: {
|
|
14704
|
+
...data,
|
|
14705
|
+
id: compositionId,
|
|
14706
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
14707
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
14708
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
14709
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
14710
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
14711
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
14712
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
14713
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
14714
|
+
}
|
|
14715
|
+
};
|
|
14716
|
+
};
|
|
14717
|
+
var resolveVideoConfigWithMetadata = ({
|
|
14677
14718
|
calculateMetadata,
|
|
14678
14719
|
signal,
|
|
14679
14720
|
defaultProps,
|
|
@@ -14693,76 +14734,48 @@ var resolveVideoConfig = ({
|
|
|
14693
14734
|
}) : null;
|
|
14694
14735
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
14695
14736
|
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({
|
|
14737
|
+
return makeVideoConfigWithMetadata({
|
|
14708
14738
|
calculated: c2,
|
|
14709
14739
|
compositionDurationInFrames,
|
|
14710
14740
|
compositionFps,
|
|
14711
14741
|
compositionHeight,
|
|
14712
14742
|
compositionWidth,
|
|
14713
|
-
compositionId
|
|
14743
|
+
compositionId,
|
|
14744
|
+
defaultProps,
|
|
14745
|
+
originalProps
|
|
14714
14746
|
});
|
|
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
14747
|
});
|
|
14731
14748
|
}
|
|
14732
|
-
|
|
14749
|
+
return makeVideoConfigWithMetadata({
|
|
14733
14750
|
calculated: calculatedProm,
|
|
14734
14751
|
compositionDurationInFrames,
|
|
14735
14752
|
compositionFps,
|
|
14736
14753
|
compositionHeight,
|
|
14737
14754
|
compositionWidth,
|
|
14738
|
-
compositionId
|
|
14755
|
+
compositionId,
|
|
14756
|
+
defaultProps,
|
|
14757
|
+
originalProps
|
|
14739
14758
|
});
|
|
14740
|
-
|
|
14759
|
+
};
|
|
14760
|
+
var resolveVideoConfig = (params) => {
|
|
14761
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
14762
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
14763
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
14764
|
+
}
|
|
14765
|
+
return resolved.videoConfig;
|
|
14766
|
+
};
|
|
14767
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
14768
|
+
try {
|
|
14741
14769
|
return {
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
defaultPixelFormat: null,
|
|
14750
|
-
defaultProResProfile: null,
|
|
14751
|
-
defaultSampleRate: null
|
|
14770
|
+
type: "success",
|
|
14771
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
14772
|
+
};
|
|
14773
|
+
} catch (err) {
|
|
14774
|
+
return {
|
|
14775
|
+
type: "error",
|
|
14776
|
+
error: err
|
|
14752
14777
|
};
|
|
14753
14778
|
}
|
|
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
14779
|
};
|
|
14767
14780
|
var resolveVideoConfigOrCatch = (params) => {
|
|
14768
14781
|
try {
|
|
@@ -15642,6 +15655,7 @@ var Internals = {
|
|
|
15642
15655
|
NonceContext,
|
|
15643
15656
|
resolveVideoConfig,
|
|
15644
15657
|
resolveVideoConfigOrCatch,
|
|
15658
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
15645
15659
|
ResolveCompositionContext,
|
|
15646
15660
|
useResolvedVideoConfig,
|
|
15647
15661
|
resolveCompositionsRef,
|
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.493";
|
|
2361
2363
|
var checkMultipleRemotionVersions = () => {
|
|
2362
2364
|
if (typeof globalThis === "undefined") {
|
|
2363
2365
|
return;
|
|
@@ -11443,7 +11445,46 @@ var validateCalculated = ({
|
|
|
11443
11445
|
defaultSampleRate
|
|
11444
11446
|
};
|
|
11445
11447
|
};
|
|
11446
|
-
var
|
|
11448
|
+
var makeVideoConfigWithMetadata = ({
|
|
11449
|
+
calculated,
|
|
11450
|
+
compositionDurationInFrames,
|
|
11451
|
+
compositionFps,
|
|
11452
|
+
compositionHeight,
|
|
11453
|
+
compositionId,
|
|
11454
|
+
compositionWidth,
|
|
11455
|
+
defaultProps,
|
|
11456
|
+
originalProps
|
|
11457
|
+
}) => {
|
|
11458
|
+
const data = validateCalculated({
|
|
11459
|
+
calculated,
|
|
11460
|
+
compositionDurationInFrames,
|
|
11461
|
+
compositionFps,
|
|
11462
|
+
compositionHeight,
|
|
11463
|
+
compositionWidth,
|
|
11464
|
+
compositionId
|
|
11465
|
+
});
|
|
11466
|
+
return {
|
|
11467
|
+
metadataSource: {
|
|
11468
|
+
durationInFrames: calculated?.durationInFrames === undefined ? "composition" : "calculate-metadata",
|
|
11469
|
+
fps: calculated?.fps === undefined ? "composition" : "calculate-metadata",
|
|
11470
|
+
height: calculated?.height === undefined ? "composition" : "calculate-metadata",
|
|
11471
|
+
width: calculated?.width === undefined ? "composition" : "calculate-metadata"
|
|
11472
|
+
},
|
|
11473
|
+
videoConfig: {
|
|
11474
|
+
...data,
|
|
11475
|
+
id: compositionId,
|
|
11476
|
+
defaultProps: serializeThenDeserializeInStudio(defaultProps ?? {}),
|
|
11477
|
+
props: serializeThenDeserializeInStudio(calculated?.props ?? originalProps),
|
|
11478
|
+
defaultCodec: data.defaultCodec ?? null,
|
|
11479
|
+
defaultOutName: data.defaultOutName ?? null,
|
|
11480
|
+
defaultVideoImageFormat: data.defaultVideoImageFormat ?? null,
|
|
11481
|
+
defaultPixelFormat: data.defaultPixelFormat ?? null,
|
|
11482
|
+
defaultProResProfile: data.defaultProResProfile ?? null,
|
|
11483
|
+
defaultSampleRate: data.defaultSampleRate ?? null
|
|
11484
|
+
}
|
|
11485
|
+
};
|
|
11486
|
+
};
|
|
11487
|
+
var resolveVideoConfigWithMetadata = ({
|
|
11447
11488
|
calculateMetadata,
|
|
11448
11489
|
signal,
|
|
11449
11490
|
defaultProps,
|
|
@@ -11463,76 +11504,48 @@ var resolveVideoConfig = ({
|
|
|
11463
11504
|
}) : null;
|
|
11464
11505
|
if (calculatedProm !== null && typeof calculatedProm === "object" && "then" in calculatedProm) {
|
|
11465
11506
|
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({
|
|
11507
|
+
return makeVideoConfigWithMetadata({
|
|
11478
11508
|
calculated: c2,
|
|
11479
11509
|
compositionDurationInFrames,
|
|
11480
11510
|
compositionFps,
|
|
11481
11511
|
compositionHeight,
|
|
11482
11512
|
compositionWidth,
|
|
11483
|
-
compositionId
|
|
11513
|
+
compositionId,
|
|
11514
|
+
defaultProps,
|
|
11515
|
+
originalProps
|
|
11484
11516
|
});
|
|
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
11517
|
});
|
|
11501
11518
|
}
|
|
11502
|
-
|
|
11519
|
+
return makeVideoConfigWithMetadata({
|
|
11503
11520
|
calculated: calculatedProm,
|
|
11504
11521
|
compositionDurationInFrames,
|
|
11505
11522
|
compositionFps,
|
|
11506
11523
|
compositionHeight,
|
|
11507
11524
|
compositionWidth,
|
|
11508
|
-
compositionId
|
|
11525
|
+
compositionId,
|
|
11526
|
+
defaultProps,
|
|
11527
|
+
originalProps
|
|
11509
11528
|
});
|
|
11510
|
-
|
|
11529
|
+
};
|
|
11530
|
+
var resolveVideoConfig = (params) => {
|
|
11531
|
+
const resolved = resolveVideoConfigWithMetadata(params);
|
|
11532
|
+
if (typeof resolved === "object" && "then" in resolved) {
|
|
11533
|
+
return resolved.then(({ videoConfig }) => videoConfig);
|
|
11534
|
+
}
|
|
11535
|
+
return resolved.videoConfig;
|
|
11536
|
+
};
|
|
11537
|
+
var resolveVideoConfigWithMetadataOrCatch = (params) => {
|
|
11538
|
+
try {
|
|
11511
11539
|
return {
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
defaultPixelFormat: null,
|
|
11520
|
-
defaultProResProfile: null,
|
|
11521
|
-
defaultSampleRate: null
|
|
11540
|
+
type: "success",
|
|
11541
|
+
result: resolveVideoConfigWithMetadata(params)
|
|
11542
|
+
};
|
|
11543
|
+
} catch (err) {
|
|
11544
|
+
return {
|
|
11545
|
+
type: "error",
|
|
11546
|
+
error: err
|
|
11522
11547
|
};
|
|
11523
11548
|
}
|
|
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
11549
|
};
|
|
11537
11550
|
var resolveVideoConfigOrCatch = (params) => {
|
|
11538
11551
|
try {
|
|
@@ -12412,6 +12425,7 @@ var Internals = {
|
|
|
12412
12425
|
NonceContext,
|
|
12413
12426
|
resolveVideoConfig,
|
|
12414
12427
|
resolveVideoConfigOrCatch,
|
|
12428
|
+
resolveVideoConfigWithMetadataOrCatch,
|
|
12415
12429
|
ResolveCompositionContext,
|
|
12416
12430
|
useResolvedVideoConfig,
|
|
12417
12431
|
resolveCompositionsRef,
|