@remotion/promo-pages 4.0.479 → 4.0.482
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 +240 -66
- package/dist/design.js +197 -35
- package/dist/experts.js +184 -35
- package/dist/homepage/Pricing.js +197 -35
- package/dist/prompts/PromptsGallery.js +197 -35
- package/dist/prompts/PromptsShow.js +197 -35
- package/dist/prompts/PromptsSubmit.js +197 -35
- package/dist/team.js +197 -35
- package/dist/template-modal-content.js +197 -35
- package/dist/templates.js +197 -35
- package/package.json +13 -13
|
@@ -22899,7 +22899,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
|
22899
22899
|
var addSequenceStackTraces = (component) => {
|
|
22900
22900
|
componentsToAddStacksTo.push(component);
|
|
22901
22901
|
};
|
|
22902
|
-
var VERSION = "4.0.
|
|
22902
|
+
var VERSION = "4.0.482";
|
|
22903
22903
|
var checkMultipleRemotionVersions = () => {
|
|
22904
22904
|
if (typeof globalThis === "undefined") {
|
|
22905
22905
|
return;
|
|
@@ -23299,6 +23299,77 @@ var transformSchema = {
|
|
|
23299
23299
|
}
|
|
23300
23300
|
};
|
|
23301
23301
|
var sequenceVisualStyleSchema = transformSchema;
|
|
23302
|
+
var textSchema = {
|
|
23303
|
+
"style.color": {
|
|
23304
|
+
type: "color",
|
|
23305
|
+
default: undefined,
|
|
23306
|
+
description: "Color"
|
|
23307
|
+
},
|
|
23308
|
+
"style.fontSize": {
|
|
23309
|
+
type: "number",
|
|
23310
|
+
default: undefined,
|
|
23311
|
+
min: 0,
|
|
23312
|
+
step: 1,
|
|
23313
|
+
description: "Font size",
|
|
23314
|
+
hiddenFromList: false
|
|
23315
|
+
},
|
|
23316
|
+
"style.lineHeight": {
|
|
23317
|
+
type: "number",
|
|
23318
|
+
default: undefined,
|
|
23319
|
+
min: 0,
|
|
23320
|
+
step: 0.05,
|
|
23321
|
+
description: "Line height",
|
|
23322
|
+
hiddenFromList: false
|
|
23323
|
+
},
|
|
23324
|
+
"style.fontWeight": {
|
|
23325
|
+
type: "enum",
|
|
23326
|
+
default: "400",
|
|
23327
|
+
description: "Font weight",
|
|
23328
|
+
variants: {
|
|
23329
|
+
"100": {},
|
|
23330
|
+
"200": {},
|
|
23331
|
+
"300": {},
|
|
23332
|
+
"400": {},
|
|
23333
|
+
"500": {},
|
|
23334
|
+
"600": {},
|
|
23335
|
+
"700": {},
|
|
23336
|
+
"800": {},
|
|
23337
|
+
"900": {},
|
|
23338
|
+
normal: {},
|
|
23339
|
+
bold: {}
|
|
23340
|
+
}
|
|
23341
|
+
},
|
|
23342
|
+
"style.fontStyle": {
|
|
23343
|
+
type: "enum",
|
|
23344
|
+
default: "normal",
|
|
23345
|
+
description: "Font style",
|
|
23346
|
+
variants: {
|
|
23347
|
+
normal: {},
|
|
23348
|
+
italic: {},
|
|
23349
|
+
oblique: {}
|
|
23350
|
+
}
|
|
23351
|
+
},
|
|
23352
|
+
"style.textAlign": {
|
|
23353
|
+
type: "enum",
|
|
23354
|
+
default: "left",
|
|
23355
|
+
description: "Text align",
|
|
23356
|
+
variants: {
|
|
23357
|
+
left: {},
|
|
23358
|
+
center: {},
|
|
23359
|
+
right: {},
|
|
23360
|
+
justify: {},
|
|
23361
|
+
start: {},
|
|
23362
|
+
end: {}
|
|
23363
|
+
}
|
|
23364
|
+
},
|
|
23365
|
+
"style.letterSpacing": {
|
|
23366
|
+
type: "number",
|
|
23367
|
+
default: undefined,
|
|
23368
|
+
step: 0.1,
|
|
23369
|
+
description: "Letter spacing",
|
|
23370
|
+
hiddenFromList: false
|
|
23371
|
+
}
|
|
23372
|
+
};
|
|
23302
23373
|
var premountSchema = {
|
|
23303
23374
|
premountFor: {
|
|
23304
23375
|
type: "number",
|
|
@@ -23357,6 +23428,13 @@ var fromField = {
|
|
|
23357
23428
|
step: 1,
|
|
23358
23429
|
hiddenFromList: true
|
|
23359
23430
|
};
|
|
23431
|
+
var trimBeforeField = {
|
|
23432
|
+
type: "number",
|
|
23433
|
+
default: 0,
|
|
23434
|
+
min: 0,
|
|
23435
|
+
step: 1,
|
|
23436
|
+
hiddenFromList: true
|
|
23437
|
+
};
|
|
23360
23438
|
var freezeField = {
|
|
23361
23439
|
type: "number",
|
|
23362
23440
|
default: null,
|
|
@@ -23366,6 +23444,7 @@ var freezeField = {
|
|
|
23366
23444
|
var baseSchema = {
|
|
23367
23445
|
durationInFrames: durationInFramesField,
|
|
23368
23446
|
from: fromField,
|
|
23447
|
+
trimBefore: trimBeforeField,
|
|
23369
23448
|
freeze: freezeField,
|
|
23370
23449
|
hidden: hiddenField,
|
|
23371
23450
|
name: sequenceNameField,
|
|
@@ -23385,6 +23464,7 @@ var sequenceSchema = {
|
|
|
23385
23464
|
};
|
|
23386
23465
|
var baseSchemaWithoutFrom = {
|
|
23387
23466
|
durationInFrames: durationInFramesField,
|
|
23467
|
+
trimBefore: trimBeforeField,
|
|
23388
23468
|
freeze: freezeField,
|
|
23389
23469
|
hidden: hiddenField,
|
|
23390
23470
|
name: sequenceNameField,
|
|
@@ -25599,6 +25679,7 @@ var mergeValues = ({
|
|
|
25599
25679
|
var stackToOverrideMap = {};
|
|
25600
25680
|
var withInteractivitySchema = ({
|
|
25601
25681
|
Component,
|
|
25682
|
+
componentName,
|
|
25602
25683
|
componentIdentity,
|
|
25603
25684
|
schema,
|
|
25604
25685
|
supportsEffects
|
|
@@ -25647,7 +25728,8 @@ var withInteractivitySchema = ({
|
|
|
25647
25728
|
currentRuntimeValueDotNotation,
|
|
25648
25729
|
overrideId,
|
|
25649
25730
|
supportsEffects,
|
|
25650
|
-
componentIdentity
|
|
25731
|
+
componentIdentity,
|
|
25732
|
+
componentName
|
|
25651
25733
|
};
|
|
25652
25734
|
}, [currentRuntimeValueDotNotation, overrideId]);
|
|
25653
25735
|
const { merged: valuesDotNotation, propsToDelete } = useMemo13(() => {
|
|
@@ -25684,6 +25766,7 @@ var withInteractivitySchema = ({
|
|
|
25684
25766
|
var EMPTY_EFFECTS = [];
|
|
25685
25767
|
var RegularSequenceRefForwardingFunction = ({
|
|
25686
25768
|
from = 0,
|
|
25769
|
+
trimBefore = 0,
|
|
25687
25770
|
freeze,
|
|
25688
25771
|
durationInFrames = Infinity,
|
|
25689
25772
|
children,
|
|
@@ -25708,7 +25791,6 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25708
25791
|
const parentSequence = useContext17(SequenceContext);
|
|
25709
25792
|
const { rootId } = useTimelineContext();
|
|
25710
25793
|
const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
25711
|
-
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + from;
|
|
25712
25794
|
const nonce = useNonce();
|
|
25713
25795
|
if (layout !== "absolute-fill" && layout !== "none") {
|
|
25714
25796
|
throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${layout}`);
|
|
@@ -25728,6 +25810,18 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25728
25810
|
if (!Number.isFinite(from)) {
|
|
25729
25811
|
throw new TypeError(`The "from" prop of a sequence must be finite, but got ${from}.`);
|
|
25730
25812
|
}
|
|
25813
|
+
if (typeof trimBefore !== "number") {
|
|
25814
|
+
throw new TypeError(`You passed to the "trimBefore" prop of your <Sequence> an argument of type ${typeof trimBefore}, but it must be a number.`);
|
|
25815
|
+
}
|
|
25816
|
+
if (trimBefore < 0) {
|
|
25817
|
+
throw new TypeError(`The "trimBefore" prop of <Sequence /> must be greater than or equal to 0, but got ${trimBefore}.`);
|
|
25818
|
+
}
|
|
25819
|
+
if (Number.isNaN(trimBefore)) {
|
|
25820
|
+
throw new TypeError('The "trimBefore" prop of <Sequence /> must be a real number, but it is NaN.');
|
|
25821
|
+
}
|
|
25822
|
+
if (!Number.isFinite(trimBefore)) {
|
|
25823
|
+
throw new TypeError(`The "trimBefore" prop of <Sequence /> must be finite, but it is ${trimBefore}.`);
|
|
25824
|
+
}
|
|
25731
25825
|
if (typeof freeze !== "undefined" && freeze !== null) {
|
|
25732
25826
|
if (typeof freeze !== "number") {
|
|
25733
25827
|
throw new TypeError(`The "freeze" prop of <Sequence /> must be a number, but is of type ${typeof freeze}.`);
|
|
@@ -25741,7 +25835,9 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25741
25835
|
}
|
|
25742
25836
|
const absoluteFrame = useTimelinePosition();
|
|
25743
25837
|
const videoConfig = useVideoConfig();
|
|
25744
|
-
const
|
|
25838
|
+
const effectiveRelativeFrom = from - trimBefore;
|
|
25839
|
+
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
|
|
25840
|
+
const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
|
|
25745
25841
|
const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
|
|
25746
25842
|
const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
|
|
25747
25843
|
const wrapperRefForOutline = useRef6(null);
|
|
@@ -25752,7 +25848,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25752
25848
|
const postmounting = useMemo14(() => {
|
|
25753
25849
|
return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
|
|
25754
25850
|
}, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
|
|
25755
|
-
const currentSequenceStart = cumulatedFrom +
|
|
25851
|
+
const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
|
|
25756
25852
|
const parentSequenceStart = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
25757
25853
|
const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
|
|
25758
25854
|
const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
|
|
@@ -25761,7 +25857,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25761
25857
|
return {
|
|
25762
25858
|
absoluteFrom,
|
|
25763
25859
|
cumulatedFrom,
|
|
25764
|
-
relativeFrom:
|
|
25860
|
+
relativeFrom: effectiveRelativeFrom,
|
|
25765
25861
|
cumulatedNegativeFrom,
|
|
25766
25862
|
durationInFrames: actualDurationInFrames,
|
|
25767
25863
|
parentFrom: parentSequence?.relativeFrom ?? 0,
|
|
@@ -25776,7 +25872,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25776
25872
|
}, [
|
|
25777
25873
|
cumulatedFrom,
|
|
25778
25874
|
absoluteFrom,
|
|
25779
|
-
|
|
25875
|
+
effectiveRelativeFrom,
|
|
25780
25876
|
actualDurationInFrames,
|
|
25781
25877
|
parentSequence,
|
|
25782
25878
|
id,
|
|
@@ -25798,6 +25894,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25798
25894
|
const stackRef = useRef6(null);
|
|
25799
25895
|
stackRef.current = stack ?? inheritedStack;
|
|
25800
25896
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
25897
|
+
const registeredTrimBefore = trimBefore === 0 ? null : trimBefore;
|
|
25801
25898
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
25802
25899
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
25803
25900
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
@@ -25816,6 +25913,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25816
25913
|
documentationLink: resolvedDocumentationLink,
|
|
25817
25914
|
duration: actualDurationInFrames,
|
|
25818
25915
|
from,
|
|
25916
|
+
trimBefore: registeredTrimBefore,
|
|
25819
25917
|
id,
|
|
25820
25918
|
loopDisplay,
|
|
25821
25919
|
nonce: nonce.get(),
|
|
@@ -25840,6 +25938,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25840
25938
|
doesVolumeChange: isMedia.data.doesVolumeChange,
|
|
25841
25939
|
duration: actualDurationInFrames,
|
|
25842
25940
|
from,
|
|
25941
|
+
trimBefore: registeredTrimBefore,
|
|
25843
25942
|
id,
|
|
25844
25943
|
loopDisplay,
|
|
25845
25944
|
nonce: nonce.get(),
|
|
@@ -25865,6 +25964,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25865
25964
|
}
|
|
25866
25965
|
registerSequence({
|
|
25867
25966
|
from,
|
|
25967
|
+
trimBefore: registeredTrimBefore,
|
|
25868
25968
|
duration: actualDurationInFrames,
|
|
25869
25969
|
id,
|
|
25870
25970
|
displayName: timelineClipName,
|
|
@@ -25898,6 +25998,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25898
25998
|
actualDurationInFrames,
|
|
25899
25999
|
rootId,
|
|
25900
26000
|
from,
|
|
26001
|
+
trimBefore,
|
|
26002
|
+
registeredTrimBefore,
|
|
25901
26003
|
showInTimeline,
|
|
25902
26004
|
nonce,
|
|
25903
26005
|
loopDisplay,
|
|
@@ -26029,12 +26131,14 @@ var SequenceInner = forwardRef3(SequenceRefForwardingFunction);
|
|
|
26029
26131
|
var SequenceWithoutSchema = SequenceInner;
|
|
26030
26132
|
var Sequence = withInteractivitySchema({
|
|
26031
26133
|
Component: SequenceInner,
|
|
26134
|
+
componentName: "<Sequence>",
|
|
26032
26135
|
componentIdentity: "dev.remotion.remotion.Sequence",
|
|
26033
26136
|
schema: sequenceSchema,
|
|
26034
26137
|
supportsEffects: false
|
|
26035
26138
|
});
|
|
26036
26139
|
var SequenceWithoutFrom = withInteractivitySchema({
|
|
26037
26140
|
Component: SequenceInner,
|
|
26141
|
+
componentName: "<Sequence>",
|
|
26038
26142
|
componentIdentity: null,
|
|
26039
26143
|
schema: sequenceSchemaWithoutFrom,
|
|
26040
26144
|
supportsEffects: false
|
|
@@ -26771,6 +26875,7 @@ var AnimatedImageInner = ({
|
|
|
26771
26875
|
};
|
|
26772
26876
|
var AnimatedImage = withInteractivitySchema({
|
|
26773
26877
|
Component: AnimatedImageInner,
|
|
26878
|
+
componentName: "<AnimatedImage>",
|
|
26774
26879
|
componentIdentity: "dev.remotion.remotion.AnimatedImage",
|
|
26775
26880
|
schema: animatedImageSchema,
|
|
26776
26881
|
supportsEffects: true
|
|
@@ -27162,13 +27267,15 @@ var prefetch = (src, options) => {
|
|
|
27162
27267
|
resolve = res;
|
|
27163
27268
|
reject = rej;
|
|
27164
27269
|
});
|
|
27270
|
+
waitUntilDone.catch(() => {
|
|
27271
|
+
return;
|
|
27272
|
+
});
|
|
27165
27273
|
const controller = new AbortController;
|
|
27166
|
-
let
|
|
27274
|
+
let reader = null;
|
|
27167
27275
|
fetch(srcWithoutHash, {
|
|
27168
27276
|
signal: controller.signal,
|
|
27169
27277
|
credentials: options?.credentials ?? undefined
|
|
27170
27278
|
}).then((res) => {
|
|
27171
|
-
canBeAborted = false;
|
|
27172
27279
|
if (canceled) {
|
|
27173
27280
|
return null;
|
|
27174
27281
|
}
|
|
@@ -27184,15 +27291,16 @@ var prefetch = (src, options) => {
|
|
|
27184
27291
|
if (!res.body) {
|
|
27185
27292
|
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
27186
27293
|
}
|
|
27187
|
-
const
|
|
27294
|
+
const responseReader = res.body.getReader();
|
|
27295
|
+
reader = responseReader;
|
|
27188
27296
|
return getBlobFromReader({
|
|
27189
|
-
reader,
|
|
27297
|
+
reader: responseReader,
|
|
27190
27298
|
contentType: options?.contentType ?? headerContentType ?? null,
|
|
27191
27299
|
contentLength: res.headers.get("Content-Length") ? parseInt(res.headers.get("Content-Length"), 10) : null,
|
|
27192
27300
|
onProgress: options?.onProgress
|
|
27193
27301
|
});
|
|
27194
27302
|
}).then((buf) => {
|
|
27195
|
-
if (!buf) {
|
|
27303
|
+
if (!buf || canceled) {
|
|
27196
27304
|
return;
|
|
27197
27305
|
}
|
|
27198
27306
|
const actualBlob = options?.contentType ? new Blob([buf], { type: options.contentType }) : buf;
|
|
@@ -27240,12 +27348,18 @@ var prefetch = (src, options) => {
|
|
|
27240
27348
|
return copy;
|
|
27241
27349
|
});
|
|
27242
27350
|
} else {
|
|
27243
|
-
canceled
|
|
27244
|
-
|
|
27245
|
-
try {
|
|
27246
|
-
controller.abort(new Error("free() called"));
|
|
27247
|
-
} catch {}
|
|
27351
|
+
if (canceled) {
|
|
27352
|
+
return;
|
|
27248
27353
|
}
|
|
27354
|
+
canceled = true;
|
|
27355
|
+
const cancellationError = new Error("free() called");
|
|
27356
|
+
reject(cancellationError);
|
|
27357
|
+
try {
|
|
27358
|
+
controller.abort(cancellationError);
|
|
27359
|
+
} catch {}
|
|
27360
|
+
reader?.cancel(cancellationError).catch(() => {
|
|
27361
|
+
return;
|
|
27362
|
+
});
|
|
27249
27363
|
}
|
|
27250
27364
|
},
|
|
27251
27365
|
waitUntilDone: () => {
|
|
@@ -28417,6 +28531,7 @@ var useMediaInTimeline = ({
|
|
|
28417
28531
|
id,
|
|
28418
28532
|
duration,
|
|
28419
28533
|
from: 0,
|
|
28534
|
+
trimBefore: null,
|
|
28420
28535
|
parent: parentSequence?.id ?? null,
|
|
28421
28536
|
displayName: finalDisplayName,
|
|
28422
28537
|
documentationLink,
|
|
@@ -29279,11 +29394,11 @@ var useMediaTag = ({
|
|
|
29279
29394
|
]);
|
|
29280
29395
|
};
|
|
29281
29396
|
var MediaVolumeContext = createContext22({
|
|
29282
|
-
|
|
29397
|
+
playerMuted: false,
|
|
29283
29398
|
mediaVolume: 1
|
|
29284
29399
|
});
|
|
29285
29400
|
var SetMediaVolumeContext = createContext22({
|
|
29286
|
-
|
|
29401
|
+
setPlayerMuted: () => {
|
|
29287
29402
|
throw new Error("default");
|
|
29288
29403
|
},
|
|
29289
29404
|
setMediaVolume: () => {
|
|
@@ -29297,12 +29412,12 @@ var useMediaVolumeState = () => {
|
|
|
29297
29412
|
return [mediaVolume, setMediaVolume];
|
|
29298
29413
|
}, [mediaVolume, setMediaVolume]);
|
|
29299
29414
|
};
|
|
29300
|
-
var
|
|
29301
|
-
const {
|
|
29302
|
-
const {
|
|
29415
|
+
var usePlayerMutedState = () => {
|
|
29416
|
+
const { playerMuted } = useContext27(MediaVolumeContext);
|
|
29417
|
+
const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
|
|
29303
29418
|
return useMemo26(() => {
|
|
29304
|
-
return [
|
|
29305
|
-
}, [
|
|
29419
|
+
return [playerMuted, setPlayerMuted];
|
|
29420
|
+
}, [playerMuted, setPlayerMuted]);
|
|
29306
29421
|
};
|
|
29307
29422
|
var warnAboutTooHighVolume = (volume) => {
|
|
29308
29423
|
if (volume >= 100) {
|
|
@@ -29348,7 +29463,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
29348
29463
|
throw new Error("typecheck error");
|
|
29349
29464
|
}
|
|
29350
29465
|
const [mediaVolume] = useMediaVolumeState();
|
|
29351
|
-
const [
|
|
29466
|
+
const [playerMuted] = usePlayerMutedState();
|
|
29352
29467
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
29353
29468
|
if (!src) {
|
|
29354
29469
|
throw new TypeError("No 'src' was passed to <Html5Audio>.");
|
|
@@ -29369,7 +29484,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
29369
29484
|
});
|
|
29370
29485
|
const propsToPass = useMemo27(() => {
|
|
29371
29486
|
return {
|
|
29372
|
-
muted: muted ||
|
|
29487
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
29373
29488
|
src: preloadedSrc,
|
|
29374
29489
|
loop: _remotionInternalNativeLoopPassed,
|
|
29375
29490
|
crossOrigin: crossOriginValue,
|
|
@@ -29377,7 +29492,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
29377
29492
|
};
|
|
29378
29493
|
}, [
|
|
29379
29494
|
_remotionInternalNativeLoopPassed,
|
|
29380
|
-
|
|
29495
|
+
playerMuted,
|
|
29381
29496
|
muted,
|
|
29382
29497
|
nativeProps,
|
|
29383
29498
|
preloadedSrc,
|
|
@@ -29774,6 +29889,15 @@ var solidSchema = {
|
|
|
29774
29889
|
description: "Height",
|
|
29775
29890
|
hiddenFromList: false
|
|
29776
29891
|
},
|
|
29892
|
+
pixelDensity: {
|
|
29893
|
+
type: "number",
|
|
29894
|
+
min: 1,
|
|
29895
|
+
max: 3,
|
|
29896
|
+
step: 0.1,
|
|
29897
|
+
default: 1,
|
|
29898
|
+
description: "Pixel density",
|
|
29899
|
+
hiddenFromList: false
|
|
29900
|
+
},
|
|
29777
29901
|
...transformSchema
|
|
29778
29902
|
};
|
|
29779
29903
|
var SolidInner = ({
|
|
@@ -29890,6 +30014,7 @@ var SolidOuter = forwardRef8(({
|
|
|
29890
30014
|
style,
|
|
29891
30015
|
name,
|
|
29892
30016
|
from,
|
|
30017
|
+
trimBefore,
|
|
29893
30018
|
freeze,
|
|
29894
30019
|
hidden,
|
|
29895
30020
|
showInTimeline,
|
|
@@ -29904,6 +30029,7 @@ var SolidOuter = forwardRef8(({
|
|
|
29904
30029
|
return /* @__PURE__ */ jsx24(Sequence, {
|
|
29905
30030
|
layout: "none",
|
|
29906
30031
|
from,
|
|
30032
|
+
trimBefore,
|
|
29907
30033
|
freeze,
|
|
29908
30034
|
hidden,
|
|
29909
30035
|
showInTimeline,
|
|
@@ -29929,6 +30055,7 @@ var SolidOuter = forwardRef8(({
|
|
|
29929
30055
|
});
|
|
29930
30056
|
var Solid = withInteractivitySchema({
|
|
29931
30057
|
Component: SolidOuter,
|
|
30058
|
+
componentName: "<Solid>",
|
|
29932
30059
|
componentIdentity: "dev.remotion.remotion.Solid",
|
|
29933
30060
|
schema: solidSchema,
|
|
29934
30061
|
supportsEffects: true
|
|
@@ -30060,10 +30187,6 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
30060
30187
|
if (!placeholderCanvas) {
|
|
30061
30188
|
throw new Error("Canvas not found");
|
|
30062
30189
|
}
|
|
30063
|
-
const offscreen2d = offscreen.getContext("2d");
|
|
30064
|
-
if (!offscreen2d) {
|
|
30065
|
-
throw new Error("Failed to acquire 2D context for <HtmlInCanvas> offscreen canvas");
|
|
30066
|
-
}
|
|
30067
30190
|
const handle = delayRender("onPaint");
|
|
30068
30191
|
if (!initializedRef.current) {
|
|
30069
30192
|
initializedRef.current = true;
|
|
@@ -30248,10 +30371,20 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
30248
30371
|
HtmlInCanvasInner.displayName = "HtmlInCanvas";
|
|
30249
30372
|
var htmlInCanvasSchema = {
|
|
30250
30373
|
...baseSchema,
|
|
30374
|
+
pixelDensity: {
|
|
30375
|
+
type: "number",
|
|
30376
|
+
min: 1,
|
|
30377
|
+
max: 3,
|
|
30378
|
+
step: 0.1,
|
|
30379
|
+
default: 1,
|
|
30380
|
+
description: "Pixel density",
|
|
30381
|
+
hiddenFromList: false
|
|
30382
|
+
},
|
|
30251
30383
|
...transformSchema
|
|
30252
30384
|
};
|
|
30253
30385
|
var HtmlInCanvasWrapped = withInteractivitySchema({
|
|
30254
30386
|
Component: HtmlInCanvasInner,
|
|
30387
|
+
componentName: "<HtmlInCanvas>",
|
|
30255
30388
|
componentIdentity: "dev.remotion.remotion.HtmlInCanvas",
|
|
30256
30389
|
schema: htmlInCanvasSchema,
|
|
30257
30390
|
supportsEffects: true
|
|
@@ -30564,6 +30697,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
30564
30697
|
delayRenderTimeoutInMilliseconds,
|
|
30565
30698
|
durationInFrames,
|
|
30566
30699
|
from,
|
|
30700
|
+
trimBefore,
|
|
30567
30701
|
freeze,
|
|
30568
30702
|
hidden,
|
|
30569
30703
|
name,
|
|
@@ -30585,6 +30719,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
30585
30719
|
return /* @__PURE__ */ jsx26(Sequence, {
|
|
30586
30720
|
layout: "none",
|
|
30587
30721
|
from: from ?? 0,
|
|
30722
|
+
trimBefore,
|
|
30588
30723
|
durationInFrames: durationInFrames ?? Infinity,
|
|
30589
30724
|
freeze,
|
|
30590
30725
|
hidden,
|
|
@@ -30619,6 +30754,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
30619
30754
|
});
|
|
30620
30755
|
var CanvasImage = withInteractivitySchema({
|
|
30621
30756
|
Component: CanvasImageInner,
|
|
30757
|
+
componentName: "<CanvasImage>",
|
|
30622
30758
|
componentIdentity: "dev.remotion.remotion.CanvasImage",
|
|
30623
30759
|
schema: canvasImageSchema,
|
|
30624
30760
|
supportsEffects: true
|
|
@@ -30820,6 +30956,7 @@ var NativeImgInner = ({
|
|
|
30820
30956
|
showInTimeline,
|
|
30821
30957
|
src,
|
|
30822
30958
|
from,
|
|
30959
|
+
trimBefore,
|
|
30823
30960
|
durationInFrames,
|
|
30824
30961
|
freeze,
|
|
30825
30962
|
controls,
|
|
@@ -30832,6 +30969,7 @@ var NativeImgInner = ({
|
|
|
30832
30969
|
return /* @__PURE__ */ jsx28(Sequence, {
|
|
30833
30970
|
layout: "none",
|
|
30834
30971
|
from: from ?? 0,
|
|
30972
|
+
trimBefore,
|
|
30835
30973
|
durationInFrames: durationInFrames ?? Infinity,
|
|
30836
30974
|
freeze,
|
|
30837
30975
|
_remotionInternalStack: stack,
|
|
@@ -30905,6 +31043,7 @@ var ImgInner = ({
|
|
|
30905
31043
|
showInTimeline,
|
|
30906
31044
|
src,
|
|
30907
31045
|
from,
|
|
31046
|
+
trimBefore,
|
|
30908
31047
|
durationInFrames,
|
|
30909
31048
|
freeze,
|
|
30910
31049
|
controls,
|
|
@@ -30930,6 +31069,7 @@ var ImgInner = ({
|
|
|
30930
31069
|
showInTimeline,
|
|
30931
31070
|
src,
|
|
30932
31071
|
from,
|
|
31072
|
+
trimBefore,
|
|
30933
31073
|
durationInFrames,
|
|
30934
31074
|
freeze,
|
|
30935
31075
|
controls,
|
|
@@ -30972,6 +31112,7 @@ var ImgInner = ({
|
|
|
30972
31112
|
delayRenderRetries,
|
|
30973
31113
|
delayRenderTimeoutInMilliseconds,
|
|
30974
31114
|
from,
|
|
31115
|
+
trimBefore,
|
|
30975
31116
|
durationInFrames,
|
|
30976
31117
|
freeze,
|
|
30977
31118
|
hidden,
|
|
@@ -30986,6 +31127,7 @@ var ImgInner = ({
|
|
|
30986
31127
|
};
|
|
30987
31128
|
var Img = withInteractivitySchema({
|
|
30988
31129
|
Component: ImgInner,
|
|
31130
|
+
componentName: "<Img>",
|
|
30989
31131
|
componentIdentity: "dev.remotion.remotion.Img",
|
|
30990
31132
|
schema: imgSchema,
|
|
30991
31133
|
supportsEffects: true
|
|
@@ -30993,7 +31135,8 @@ var Img = withInteractivitySchema({
|
|
|
30993
31135
|
addSequenceStackTraces(Img);
|
|
30994
31136
|
var interactiveElementSchema = {
|
|
30995
31137
|
...baseSchema,
|
|
30996
|
-
...transformSchema
|
|
31138
|
+
...transformSchema,
|
|
31139
|
+
...textSchema
|
|
30997
31140
|
};
|
|
30998
31141
|
var setRef = (ref, value) => {
|
|
30999
31142
|
if (typeof ref === "function") {
|
|
@@ -31007,6 +31150,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
31007
31150
|
const {
|
|
31008
31151
|
durationInFrames,
|
|
31009
31152
|
from,
|
|
31153
|
+
trimBefore,
|
|
31010
31154
|
freeze,
|
|
31011
31155
|
hidden,
|
|
31012
31156
|
name,
|
|
@@ -31023,6 +31167,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
31023
31167
|
return /* @__PURE__ */ jsx29(Sequence, {
|
|
31024
31168
|
layout: "none",
|
|
31025
31169
|
from: from ?? 0,
|
|
31170
|
+
trimBefore,
|
|
31026
31171
|
durationInFrames: durationInFrames ?? Infinity,
|
|
31027
31172
|
freeze,
|
|
31028
31173
|
hidden,
|
|
@@ -31041,6 +31186,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
31041
31186
|
Inner.displayName = displayName;
|
|
31042
31187
|
const Wrapped = withInteractivitySchema({
|
|
31043
31188
|
Component: Inner,
|
|
31189
|
+
componentName: displayName,
|
|
31044
31190
|
componentIdentity: `dev.remotion.remotion.${displayName.slice(1, -1)}`,
|
|
31045
31191
|
schema: interactiveElementSchema,
|
|
31046
31192
|
supportsEffects: false
|
|
@@ -31052,6 +31198,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
31052
31198
|
var Interactive = {
|
|
31053
31199
|
baseSchema,
|
|
31054
31200
|
transformSchema,
|
|
31201
|
+
textSchema,
|
|
31055
31202
|
premountSchema,
|
|
31056
31203
|
sequenceSchema,
|
|
31057
31204
|
withSchema: withInteractivitySchema,
|
|
@@ -31881,7 +32028,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
31881
32028
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
31882
32029
|
}
|
|
31883
32030
|
const [mediaVolume] = useMediaVolumeState();
|
|
31884
|
-
const [
|
|
32031
|
+
const [playerMuted] = usePlayerMutedState();
|
|
31885
32032
|
const userPreferredVolume = evaluateVolume({
|
|
31886
32033
|
frame: volumePropFrame,
|
|
31887
32034
|
volume,
|
|
@@ -32037,7 +32184,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
32037
32184
|
return /* @__PURE__ */ jsx34("video", {
|
|
32038
32185
|
...nativeProps,
|
|
32039
32186
|
ref: videoRef,
|
|
32040
|
-
muted: muted ||
|
|
32187
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
32041
32188
|
playsInline: true,
|
|
32042
32189
|
src: actualSrc,
|
|
32043
32190
|
loop: _remotionInternalNativeLoopPassed,
|
|
@@ -32328,6 +32475,7 @@ var Internals = {
|
|
|
32328
32475
|
sequenceStyleSchema,
|
|
32329
32476
|
sequenceVisualStyleSchema,
|
|
32330
32477
|
sequencePremountSchema,
|
|
32478
|
+
textSchema,
|
|
32331
32479
|
transformSchema,
|
|
32332
32480
|
premountSchema,
|
|
32333
32481
|
flattenActiveSchema,
|
|
@@ -32337,7 +32485,7 @@ var Internals = {
|
|
|
32337
32485
|
useVideo,
|
|
32338
32486
|
getRoot,
|
|
32339
32487
|
useMediaVolumeState,
|
|
32340
|
-
|
|
32488
|
+
usePlayerMutedState,
|
|
32341
32489
|
useMediaInTimeline,
|
|
32342
32490
|
useLazyComponent,
|
|
32343
32491
|
truthy,
|
|
@@ -32531,6 +32679,7 @@ var SeriesInner = (props2) => {
|
|
|
32531
32679
|
};
|
|
32532
32680
|
var Series = Object.assign(withInteractivitySchema({
|
|
32533
32681
|
Component: SeriesInner,
|
|
32682
|
+
componentName: "<Series>",
|
|
32534
32683
|
componentIdentity: "dev.remotion.remotion.Series",
|
|
32535
32684
|
schema: sequenceSchemaDefaultLayoutNone,
|
|
32536
32685
|
supportsEffects: false
|
|
@@ -33279,6 +33428,7 @@ var RenderSvg = ({
|
|
|
33279
33428
|
pixelDensity,
|
|
33280
33429
|
durationInFrames,
|
|
33281
33430
|
from,
|
|
33431
|
+
trimBefore,
|
|
33282
33432
|
freeze,
|
|
33283
33433
|
hidden,
|
|
33284
33434
|
name,
|
|
@@ -33388,6 +33538,7 @@ var RenderSvg = ({
|
|
|
33388
33538
|
return /* @__PURE__ */ jsx40(Sequence, {
|
|
33389
33539
|
layout: "none",
|
|
33390
33540
|
from,
|
|
33541
|
+
trimBefore,
|
|
33391
33542
|
freeze,
|
|
33392
33543
|
hidden,
|
|
33393
33544
|
showInTimeline,
|
|
@@ -33519,6 +33670,7 @@ var ArrowInner = ({
|
|
|
33519
33670
|
};
|
|
33520
33671
|
var Arrow = Interactive.withSchema({
|
|
33521
33672
|
Component: ArrowInner,
|
|
33673
|
+
componentName: "<Arrow>",
|
|
33522
33674
|
componentIdentity: "dev.remotion.shapes.Arrow",
|
|
33523
33675
|
schema: arrowSchema,
|
|
33524
33676
|
supportsEffects: true
|
|
@@ -33943,6 +34095,7 @@ var CalloutInner = ({
|
|
|
33943
34095
|
};
|
|
33944
34096
|
var Callout = Interactive.withSchema({
|
|
33945
34097
|
Component: CalloutInner,
|
|
34098
|
+
componentName: "<Callout>",
|
|
33946
34099
|
componentIdentity: "dev.remotion.shapes.Callout",
|
|
33947
34100
|
schema: calloutSchema,
|
|
33948
34101
|
supportsEffects: true
|
|
@@ -34005,6 +34158,7 @@ var CircleInner = ({ radius, ...props }) => {
|
|
|
34005
34158
|
};
|
|
34006
34159
|
var Circle = Interactive.withSchema({
|
|
34007
34160
|
Component: CircleInner,
|
|
34161
|
+
componentName: "<Circle>",
|
|
34008
34162
|
componentIdentity: "dev.remotion.shapes.Circle",
|
|
34009
34163
|
schema: circleSchema,
|
|
34010
34164
|
supportsEffects: true
|
|
@@ -34062,6 +34216,7 @@ var EllipseInner = ({ rx, ry, ...props }) => {
|
|
|
34062
34216
|
};
|
|
34063
34217
|
var Ellipse = Interactive.withSchema({
|
|
34064
34218
|
Component: EllipseInner,
|
|
34219
|
+
componentName: "<Ellipse>",
|
|
34065
34220
|
componentIdentity: "dev.remotion.shapes.Ellipse",
|
|
34066
34221
|
schema: ellipseSchema,
|
|
34067
34222
|
supportsEffects: true
|
|
@@ -34200,6 +34355,7 @@ var HeartInner = ({
|
|
|
34200
34355
|
};
|
|
34201
34356
|
var Heart = Interactive.withSchema({
|
|
34202
34357
|
Component: HeartInner,
|
|
34358
|
+
componentName: "<Heart>",
|
|
34203
34359
|
componentIdentity: "dev.remotion.shapes.Heart",
|
|
34204
34360
|
schema: heartSchema,
|
|
34205
34361
|
supportsEffects: true
|
|
@@ -34354,6 +34510,7 @@ var PieInner = ({
|
|
|
34354
34510
|
};
|
|
34355
34511
|
var Pie = Interactive.withSchema({
|
|
34356
34512
|
Component: PieInner,
|
|
34513
|
+
componentName: "<Pie>",
|
|
34357
34514
|
componentIdentity: "dev.remotion.shapes.Pie",
|
|
34358
34515
|
schema: pieSchema,
|
|
34359
34516
|
supportsEffects: true
|
|
@@ -34453,6 +34610,7 @@ var PolygonInner = ({
|
|
|
34453
34610
|
};
|
|
34454
34611
|
var Polygon = Interactive.withSchema({
|
|
34455
34612
|
Component: PolygonInner,
|
|
34613
|
+
componentName: "<Polygon>",
|
|
34456
34614
|
componentIdentity: "dev.remotion.shapes.Polygon",
|
|
34457
34615
|
schema: polygonSchema,
|
|
34458
34616
|
supportsEffects: true
|
|
@@ -34519,6 +34677,7 @@ var RectInner = ({
|
|
|
34519
34677
|
};
|
|
34520
34678
|
var Rect = Interactive.withSchema({
|
|
34521
34679
|
Component: RectInner,
|
|
34680
|
+
componentName: "<Rect>",
|
|
34522
34681
|
componentIdentity: "dev.remotion.shapes.Rect",
|
|
34523
34682
|
schema: rectSchema,
|
|
34524
34683
|
supportsEffects: true
|
|
@@ -34730,6 +34889,7 @@ var SparkInner = ({
|
|
|
34730
34889
|
};
|
|
34731
34890
|
var Spark = Interactive.withSchema({
|
|
34732
34891
|
Component: SparkInner,
|
|
34892
|
+
componentName: "<Spark>",
|
|
34733
34893
|
componentIdentity: "dev.remotion.shapes.Spark",
|
|
34734
34894
|
schema: sparkSchema,
|
|
34735
34895
|
supportsEffects: true
|
|
@@ -34840,6 +35000,7 @@ var StarInner = ({
|
|
|
34840
35000
|
};
|
|
34841
35001
|
var Star = Interactive.withSchema({
|
|
34842
35002
|
Component: StarInner,
|
|
35003
|
+
componentName: "<Star>",
|
|
34843
35004
|
componentIdentity: "dev.remotion.shapes.Star",
|
|
34844
35005
|
schema: starSchema,
|
|
34845
35006
|
supportsEffects: true
|
|
@@ -34946,6 +35107,7 @@ var TriangleInner = ({
|
|
|
34946
35107
|
};
|
|
34947
35108
|
var Triangle = Interactive.withSchema({
|
|
34948
35109
|
Component: TriangleInner,
|
|
35110
|
+
componentName: "<Triangle>",
|
|
34949
35111
|
componentIdentity: "dev.remotion.shapes.Triangle",
|
|
34950
35112
|
schema: triangleSchema,
|
|
34951
35113
|
supportsEffects: true
|