@remotion/promo-pages 4.0.481 → 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 +215 -65
- package/dist/design.js +174 -34
- package/dist/experts.js +172 -34
- package/dist/homepage/Pricing.js +174 -34
- package/dist/prompts/PromptsGallery.js +174 -34
- package/dist/prompts/PromptsShow.js +174 -34
- package/dist/prompts/PromptsSubmit.js +174 -34
- package/dist/team.js +174 -34
- package/dist/template-modal-content.js +174 -34
- package/dist/templates.js +174 -34
- 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,
|
|
@@ -25686,6 +25766,7 @@ var withInteractivitySchema = ({
|
|
|
25686
25766
|
var EMPTY_EFFECTS = [];
|
|
25687
25767
|
var RegularSequenceRefForwardingFunction = ({
|
|
25688
25768
|
from = 0,
|
|
25769
|
+
trimBefore = 0,
|
|
25689
25770
|
freeze,
|
|
25690
25771
|
durationInFrames = Infinity,
|
|
25691
25772
|
children,
|
|
@@ -25710,7 +25791,6 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25710
25791
|
const parentSequence = useContext17(SequenceContext);
|
|
25711
25792
|
const { rootId } = useTimelineContext();
|
|
25712
25793
|
const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
25713
|
-
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + from;
|
|
25714
25794
|
const nonce = useNonce();
|
|
25715
25795
|
if (layout !== "absolute-fill" && layout !== "none") {
|
|
25716
25796
|
throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${layout}`);
|
|
@@ -25730,6 +25810,18 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25730
25810
|
if (!Number.isFinite(from)) {
|
|
25731
25811
|
throw new TypeError(`The "from" prop of a sequence must be finite, but got ${from}.`);
|
|
25732
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
|
+
}
|
|
25733
25825
|
if (typeof freeze !== "undefined" && freeze !== null) {
|
|
25734
25826
|
if (typeof freeze !== "number") {
|
|
25735
25827
|
throw new TypeError(`The "freeze" prop of <Sequence /> must be a number, but is of type ${typeof freeze}.`);
|
|
@@ -25743,7 +25835,9 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25743
25835
|
}
|
|
25744
25836
|
const absoluteFrame = useTimelinePosition();
|
|
25745
25837
|
const videoConfig = useVideoConfig();
|
|
25746
|
-
const
|
|
25838
|
+
const effectiveRelativeFrom = from - trimBefore;
|
|
25839
|
+
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
|
|
25840
|
+
const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
|
|
25747
25841
|
const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
|
|
25748
25842
|
const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
|
|
25749
25843
|
const wrapperRefForOutline = useRef6(null);
|
|
@@ -25754,7 +25848,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25754
25848
|
const postmounting = useMemo14(() => {
|
|
25755
25849
|
return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
|
|
25756
25850
|
}, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
|
|
25757
|
-
const currentSequenceStart = cumulatedFrom +
|
|
25851
|
+
const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
|
|
25758
25852
|
const parentSequenceStart = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
25759
25853
|
const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
|
|
25760
25854
|
const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
|
|
@@ -25763,7 +25857,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25763
25857
|
return {
|
|
25764
25858
|
absoluteFrom,
|
|
25765
25859
|
cumulatedFrom,
|
|
25766
|
-
relativeFrom:
|
|
25860
|
+
relativeFrom: effectiveRelativeFrom,
|
|
25767
25861
|
cumulatedNegativeFrom,
|
|
25768
25862
|
durationInFrames: actualDurationInFrames,
|
|
25769
25863
|
parentFrom: parentSequence?.relativeFrom ?? 0,
|
|
@@ -25778,7 +25872,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25778
25872
|
}, [
|
|
25779
25873
|
cumulatedFrom,
|
|
25780
25874
|
absoluteFrom,
|
|
25781
|
-
|
|
25875
|
+
effectiveRelativeFrom,
|
|
25782
25876
|
actualDurationInFrames,
|
|
25783
25877
|
parentSequence,
|
|
25784
25878
|
id,
|
|
@@ -25800,6 +25894,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25800
25894
|
const stackRef = useRef6(null);
|
|
25801
25895
|
stackRef.current = stack ?? inheritedStack;
|
|
25802
25896
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
25897
|
+
const registeredTrimBefore = trimBefore === 0 ? null : trimBefore;
|
|
25803
25898
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
25804
25899
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
25805
25900
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
@@ -25818,6 +25913,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25818
25913
|
documentationLink: resolvedDocumentationLink,
|
|
25819
25914
|
duration: actualDurationInFrames,
|
|
25820
25915
|
from,
|
|
25916
|
+
trimBefore: registeredTrimBefore,
|
|
25821
25917
|
id,
|
|
25822
25918
|
loopDisplay,
|
|
25823
25919
|
nonce: nonce.get(),
|
|
@@ -25842,6 +25938,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25842
25938
|
doesVolumeChange: isMedia.data.doesVolumeChange,
|
|
25843
25939
|
duration: actualDurationInFrames,
|
|
25844
25940
|
from,
|
|
25941
|
+
trimBefore: registeredTrimBefore,
|
|
25845
25942
|
id,
|
|
25846
25943
|
loopDisplay,
|
|
25847
25944
|
nonce: nonce.get(),
|
|
@@ -25867,6 +25964,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25867
25964
|
}
|
|
25868
25965
|
registerSequence({
|
|
25869
25966
|
from,
|
|
25967
|
+
trimBefore: registeredTrimBefore,
|
|
25870
25968
|
duration: actualDurationInFrames,
|
|
25871
25969
|
id,
|
|
25872
25970
|
displayName: timelineClipName,
|
|
@@ -25900,6 +25998,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
25900
25998
|
actualDurationInFrames,
|
|
25901
25999
|
rootId,
|
|
25902
26000
|
from,
|
|
26001
|
+
trimBefore,
|
|
26002
|
+
registeredTrimBefore,
|
|
25903
26003
|
showInTimeline,
|
|
25904
26004
|
nonce,
|
|
25905
26005
|
loopDisplay,
|
|
@@ -27167,13 +27267,15 @@ var prefetch = (src, options) => {
|
|
|
27167
27267
|
resolve = res;
|
|
27168
27268
|
reject = rej;
|
|
27169
27269
|
});
|
|
27270
|
+
waitUntilDone.catch(() => {
|
|
27271
|
+
return;
|
|
27272
|
+
});
|
|
27170
27273
|
const controller = new AbortController;
|
|
27171
|
-
let
|
|
27274
|
+
let reader = null;
|
|
27172
27275
|
fetch(srcWithoutHash, {
|
|
27173
27276
|
signal: controller.signal,
|
|
27174
27277
|
credentials: options?.credentials ?? undefined
|
|
27175
27278
|
}).then((res) => {
|
|
27176
|
-
canBeAborted = false;
|
|
27177
27279
|
if (canceled) {
|
|
27178
27280
|
return null;
|
|
27179
27281
|
}
|
|
@@ -27189,15 +27291,16 @@ var prefetch = (src, options) => {
|
|
|
27189
27291
|
if (!res.body) {
|
|
27190
27292
|
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
27191
27293
|
}
|
|
27192
|
-
const
|
|
27294
|
+
const responseReader = res.body.getReader();
|
|
27295
|
+
reader = responseReader;
|
|
27193
27296
|
return getBlobFromReader({
|
|
27194
|
-
reader,
|
|
27297
|
+
reader: responseReader,
|
|
27195
27298
|
contentType: options?.contentType ?? headerContentType ?? null,
|
|
27196
27299
|
contentLength: res.headers.get("Content-Length") ? parseInt(res.headers.get("Content-Length"), 10) : null,
|
|
27197
27300
|
onProgress: options?.onProgress
|
|
27198
27301
|
});
|
|
27199
27302
|
}).then((buf) => {
|
|
27200
|
-
if (!buf) {
|
|
27303
|
+
if (!buf || canceled) {
|
|
27201
27304
|
return;
|
|
27202
27305
|
}
|
|
27203
27306
|
const actualBlob = options?.contentType ? new Blob([buf], { type: options.contentType }) : buf;
|
|
@@ -27245,12 +27348,18 @@ var prefetch = (src, options) => {
|
|
|
27245
27348
|
return copy;
|
|
27246
27349
|
});
|
|
27247
27350
|
} else {
|
|
27248
|
-
canceled
|
|
27249
|
-
|
|
27250
|
-
try {
|
|
27251
|
-
controller.abort(new Error("free() called"));
|
|
27252
|
-
} catch {}
|
|
27351
|
+
if (canceled) {
|
|
27352
|
+
return;
|
|
27253
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
|
+
});
|
|
27254
27363
|
}
|
|
27255
27364
|
},
|
|
27256
27365
|
waitUntilDone: () => {
|
|
@@ -28422,6 +28531,7 @@ var useMediaInTimeline = ({
|
|
|
28422
28531
|
id,
|
|
28423
28532
|
duration,
|
|
28424
28533
|
from: 0,
|
|
28534
|
+
trimBefore: null,
|
|
28425
28535
|
parent: parentSequence?.id ?? null,
|
|
28426
28536
|
displayName: finalDisplayName,
|
|
28427
28537
|
documentationLink,
|
|
@@ -29284,11 +29394,11 @@ var useMediaTag = ({
|
|
|
29284
29394
|
]);
|
|
29285
29395
|
};
|
|
29286
29396
|
var MediaVolumeContext = createContext22({
|
|
29287
|
-
|
|
29397
|
+
playerMuted: false,
|
|
29288
29398
|
mediaVolume: 1
|
|
29289
29399
|
});
|
|
29290
29400
|
var SetMediaVolumeContext = createContext22({
|
|
29291
|
-
|
|
29401
|
+
setPlayerMuted: () => {
|
|
29292
29402
|
throw new Error("default");
|
|
29293
29403
|
},
|
|
29294
29404
|
setMediaVolume: () => {
|
|
@@ -29302,12 +29412,12 @@ var useMediaVolumeState = () => {
|
|
|
29302
29412
|
return [mediaVolume, setMediaVolume];
|
|
29303
29413
|
}, [mediaVolume, setMediaVolume]);
|
|
29304
29414
|
};
|
|
29305
|
-
var
|
|
29306
|
-
const {
|
|
29307
|
-
const {
|
|
29415
|
+
var usePlayerMutedState = () => {
|
|
29416
|
+
const { playerMuted } = useContext27(MediaVolumeContext);
|
|
29417
|
+
const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
|
|
29308
29418
|
return useMemo26(() => {
|
|
29309
|
-
return [
|
|
29310
|
-
}, [
|
|
29419
|
+
return [playerMuted, setPlayerMuted];
|
|
29420
|
+
}, [playerMuted, setPlayerMuted]);
|
|
29311
29421
|
};
|
|
29312
29422
|
var warnAboutTooHighVolume = (volume) => {
|
|
29313
29423
|
if (volume >= 100) {
|
|
@@ -29353,7 +29463,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
29353
29463
|
throw new Error("typecheck error");
|
|
29354
29464
|
}
|
|
29355
29465
|
const [mediaVolume] = useMediaVolumeState();
|
|
29356
|
-
const [
|
|
29466
|
+
const [playerMuted] = usePlayerMutedState();
|
|
29357
29467
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
29358
29468
|
if (!src) {
|
|
29359
29469
|
throw new TypeError("No 'src' was passed to <Html5Audio>.");
|
|
@@ -29374,7 +29484,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
29374
29484
|
});
|
|
29375
29485
|
const propsToPass = useMemo27(() => {
|
|
29376
29486
|
return {
|
|
29377
|
-
muted: muted ||
|
|
29487
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
29378
29488
|
src: preloadedSrc,
|
|
29379
29489
|
loop: _remotionInternalNativeLoopPassed,
|
|
29380
29490
|
crossOrigin: crossOriginValue,
|
|
@@ -29382,7 +29492,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
29382
29492
|
};
|
|
29383
29493
|
}, [
|
|
29384
29494
|
_remotionInternalNativeLoopPassed,
|
|
29385
|
-
|
|
29495
|
+
playerMuted,
|
|
29386
29496
|
muted,
|
|
29387
29497
|
nativeProps,
|
|
29388
29498
|
preloadedSrc,
|
|
@@ -29779,6 +29889,15 @@ var solidSchema = {
|
|
|
29779
29889
|
description: "Height",
|
|
29780
29890
|
hiddenFromList: false
|
|
29781
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
|
+
},
|
|
29782
29901
|
...transformSchema
|
|
29783
29902
|
};
|
|
29784
29903
|
var SolidInner = ({
|
|
@@ -29895,6 +30014,7 @@ var SolidOuter = forwardRef8(({
|
|
|
29895
30014
|
style,
|
|
29896
30015
|
name,
|
|
29897
30016
|
from,
|
|
30017
|
+
trimBefore,
|
|
29898
30018
|
freeze,
|
|
29899
30019
|
hidden,
|
|
29900
30020
|
showInTimeline,
|
|
@@ -29909,6 +30029,7 @@ var SolidOuter = forwardRef8(({
|
|
|
29909
30029
|
return /* @__PURE__ */ jsx24(Sequence, {
|
|
29910
30030
|
layout: "none",
|
|
29911
30031
|
from,
|
|
30032
|
+
trimBefore,
|
|
29912
30033
|
freeze,
|
|
29913
30034
|
hidden,
|
|
29914
30035
|
showInTimeline,
|
|
@@ -30066,10 +30187,6 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
30066
30187
|
if (!placeholderCanvas) {
|
|
30067
30188
|
throw new Error("Canvas not found");
|
|
30068
30189
|
}
|
|
30069
|
-
const offscreen2d = offscreen.getContext("2d");
|
|
30070
|
-
if (!offscreen2d) {
|
|
30071
|
-
throw new Error("Failed to acquire 2D context for <HtmlInCanvas> offscreen canvas");
|
|
30072
|
-
}
|
|
30073
30190
|
const handle = delayRender("onPaint");
|
|
30074
30191
|
if (!initializedRef.current) {
|
|
30075
30192
|
initializedRef.current = true;
|
|
@@ -30254,6 +30371,15 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
30254
30371
|
HtmlInCanvasInner.displayName = "HtmlInCanvas";
|
|
30255
30372
|
var htmlInCanvasSchema = {
|
|
30256
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
|
+
},
|
|
30257
30383
|
...transformSchema
|
|
30258
30384
|
};
|
|
30259
30385
|
var HtmlInCanvasWrapped = withInteractivitySchema({
|
|
@@ -30571,6 +30697,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
30571
30697
|
delayRenderTimeoutInMilliseconds,
|
|
30572
30698
|
durationInFrames,
|
|
30573
30699
|
from,
|
|
30700
|
+
trimBefore,
|
|
30574
30701
|
freeze,
|
|
30575
30702
|
hidden,
|
|
30576
30703
|
name,
|
|
@@ -30592,6 +30719,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
30592
30719
|
return /* @__PURE__ */ jsx26(Sequence, {
|
|
30593
30720
|
layout: "none",
|
|
30594
30721
|
from: from ?? 0,
|
|
30722
|
+
trimBefore,
|
|
30595
30723
|
durationInFrames: durationInFrames ?? Infinity,
|
|
30596
30724
|
freeze,
|
|
30597
30725
|
hidden,
|
|
@@ -30828,6 +30956,7 @@ var NativeImgInner = ({
|
|
|
30828
30956
|
showInTimeline,
|
|
30829
30957
|
src,
|
|
30830
30958
|
from,
|
|
30959
|
+
trimBefore,
|
|
30831
30960
|
durationInFrames,
|
|
30832
30961
|
freeze,
|
|
30833
30962
|
controls,
|
|
@@ -30840,6 +30969,7 @@ var NativeImgInner = ({
|
|
|
30840
30969
|
return /* @__PURE__ */ jsx28(Sequence, {
|
|
30841
30970
|
layout: "none",
|
|
30842
30971
|
from: from ?? 0,
|
|
30972
|
+
trimBefore,
|
|
30843
30973
|
durationInFrames: durationInFrames ?? Infinity,
|
|
30844
30974
|
freeze,
|
|
30845
30975
|
_remotionInternalStack: stack,
|
|
@@ -30913,6 +31043,7 @@ var ImgInner = ({
|
|
|
30913
31043
|
showInTimeline,
|
|
30914
31044
|
src,
|
|
30915
31045
|
from,
|
|
31046
|
+
trimBefore,
|
|
30916
31047
|
durationInFrames,
|
|
30917
31048
|
freeze,
|
|
30918
31049
|
controls,
|
|
@@ -30938,6 +31069,7 @@ var ImgInner = ({
|
|
|
30938
31069
|
showInTimeline,
|
|
30939
31070
|
src,
|
|
30940
31071
|
from,
|
|
31072
|
+
trimBefore,
|
|
30941
31073
|
durationInFrames,
|
|
30942
31074
|
freeze,
|
|
30943
31075
|
controls,
|
|
@@ -30980,6 +31112,7 @@ var ImgInner = ({
|
|
|
30980
31112
|
delayRenderRetries,
|
|
30981
31113
|
delayRenderTimeoutInMilliseconds,
|
|
30982
31114
|
from,
|
|
31115
|
+
trimBefore,
|
|
30983
31116
|
durationInFrames,
|
|
30984
31117
|
freeze,
|
|
30985
31118
|
hidden,
|
|
@@ -31002,7 +31135,8 @@ var Img = withInteractivitySchema({
|
|
|
31002
31135
|
addSequenceStackTraces(Img);
|
|
31003
31136
|
var interactiveElementSchema = {
|
|
31004
31137
|
...baseSchema,
|
|
31005
|
-
...transformSchema
|
|
31138
|
+
...transformSchema,
|
|
31139
|
+
...textSchema
|
|
31006
31140
|
};
|
|
31007
31141
|
var setRef = (ref, value) => {
|
|
31008
31142
|
if (typeof ref === "function") {
|
|
@@ -31016,6 +31150,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
31016
31150
|
const {
|
|
31017
31151
|
durationInFrames,
|
|
31018
31152
|
from,
|
|
31153
|
+
trimBefore,
|
|
31019
31154
|
freeze,
|
|
31020
31155
|
hidden,
|
|
31021
31156
|
name,
|
|
@@ -31032,6 +31167,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
31032
31167
|
return /* @__PURE__ */ jsx29(Sequence, {
|
|
31033
31168
|
layout: "none",
|
|
31034
31169
|
from: from ?? 0,
|
|
31170
|
+
trimBefore,
|
|
31035
31171
|
durationInFrames: durationInFrames ?? Infinity,
|
|
31036
31172
|
freeze,
|
|
31037
31173
|
hidden,
|
|
@@ -31062,6 +31198,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
31062
31198
|
var Interactive = {
|
|
31063
31199
|
baseSchema,
|
|
31064
31200
|
transformSchema,
|
|
31201
|
+
textSchema,
|
|
31065
31202
|
premountSchema,
|
|
31066
31203
|
sequenceSchema,
|
|
31067
31204
|
withSchema: withInteractivitySchema,
|
|
@@ -31891,7 +32028,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
31891
32028
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
31892
32029
|
}
|
|
31893
32030
|
const [mediaVolume] = useMediaVolumeState();
|
|
31894
|
-
const [
|
|
32031
|
+
const [playerMuted] = usePlayerMutedState();
|
|
31895
32032
|
const userPreferredVolume = evaluateVolume({
|
|
31896
32033
|
frame: volumePropFrame,
|
|
31897
32034
|
volume,
|
|
@@ -32047,7 +32184,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
32047
32184
|
return /* @__PURE__ */ jsx34("video", {
|
|
32048
32185
|
...nativeProps,
|
|
32049
32186
|
ref: videoRef,
|
|
32050
|
-
muted: muted ||
|
|
32187
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
32051
32188
|
playsInline: true,
|
|
32052
32189
|
src: actualSrc,
|
|
32053
32190
|
loop: _remotionInternalNativeLoopPassed,
|
|
@@ -32338,6 +32475,7 @@ var Internals = {
|
|
|
32338
32475
|
sequenceStyleSchema,
|
|
32339
32476
|
sequenceVisualStyleSchema,
|
|
32340
32477
|
sequencePremountSchema,
|
|
32478
|
+
textSchema,
|
|
32341
32479
|
transformSchema,
|
|
32342
32480
|
premountSchema,
|
|
32343
32481
|
flattenActiveSchema,
|
|
@@ -32347,7 +32485,7 @@ var Internals = {
|
|
|
32347
32485
|
useVideo,
|
|
32348
32486
|
getRoot,
|
|
32349
32487
|
useMediaVolumeState,
|
|
32350
|
-
|
|
32488
|
+
usePlayerMutedState,
|
|
32351
32489
|
useMediaInTimeline,
|
|
32352
32490
|
useLazyComponent,
|
|
32353
32491
|
truthy,
|
|
@@ -33290,6 +33428,7 @@ var RenderSvg = ({
|
|
|
33290
33428
|
pixelDensity,
|
|
33291
33429
|
durationInFrames,
|
|
33292
33430
|
from,
|
|
33431
|
+
trimBefore,
|
|
33293
33432
|
freeze,
|
|
33294
33433
|
hidden,
|
|
33295
33434
|
name,
|
|
@@ -33399,6 +33538,7 @@ var RenderSvg = ({
|
|
|
33399
33538
|
return /* @__PURE__ */ jsx40(Sequence, {
|
|
33400
33539
|
layout: "none",
|
|
33401
33540
|
from,
|
|
33541
|
+
trimBefore,
|
|
33402
33542
|
freeze,
|
|
33403
33543
|
hidden,
|
|
33404
33544
|
showInTimeline,
|