@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
package/dist/design.js
CHANGED
|
@@ -5565,7 +5565,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
|
5565
5565
|
var addSequenceStackTraces = (component) => {
|
|
5566
5566
|
componentsToAddStacksTo.push(component);
|
|
5567
5567
|
};
|
|
5568
|
-
var VERSION = "4.0.
|
|
5568
|
+
var VERSION = "4.0.482";
|
|
5569
5569
|
var checkMultipleRemotionVersions = () => {
|
|
5570
5570
|
if (typeof globalThis === "undefined") {
|
|
5571
5571
|
return;
|
|
@@ -5965,6 +5965,77 @@ var transformSchema = {
|
|
|
5965
5965
|
}
|
|
5966
5966
|
};
|
|
5967
5967
|
var sequenceVisualStyleSchema = transformSchema;
|
|
5968
|
+
var textSchema = {
|
|
5969
|
+
"style.color": {
|
|
5970
|
+
type: "color",
|
|
5971
|
+
default: undefined,
|
|
5972
|
+
description: "Color"
|
|
5973
|
+
},
|
|
5974
|
+
"style.fontSize": {
|
|
5975
|
+
type: "number",
|
|
5976
|
+
default: undefined,
|
|
5977
|
+
min: 0,
|
|
5978
|
+
step: 1,
|
|
5979
|
+
description: "Font size",
|
|
5980
|
+
hiddenFromList: false
|
|
5981
|
+
},
|
|
5982
|
+
"style.lineHeight": {
|
|
5983
|
+
type: "number",
|
|
5984
|
+
default: undefined,
|
|
5985
|
+
min: 0,
|
|
5986
|
+
step: 0.05,
|
|
5987
|
+
description: "Line height",
|
|
5988
|
+
hiddenFromList: false
|
|
5989
|
+
},
|
|
5990
|
+
"style.fontWeight": {
|
|
5991
|
+
type: "enum",
|
|
5992
|
+
default: "400",
|
|
5993
|
+
description: "Font weight",
|
|
5994
|
+
variants: {
|
|
5995
|
+
"100": {},
|
|
5996
|
+
"200": {},
|
|
5997
|
+
"300": {},
|
|
5998
|
+
"400": {},
|
|
5999
|
+
"500": {},
|
|
6000
|
+
"600": {},
|
|
6001
|
+
"700": {},
|
|
6002
|
+
"800": {},
|
|
6003
|
+
"900": {},
|
|
6004
|
+
normal: {},
|
|
6005
|
+
bold: {}
|
|
6006
|
+
}
|
|
6007
|
+
},
|
|
6008
|
+
"style.fontStyle": {
|
|
6009
|
+
type: "enum",
|
|
6010
|
+
default: "normal",
|
|
6011
|
+
description: "Font style",
|
|
6012
|
+
variants: {
|
|
6013
|
+
normal: {},
|
|
6014
|
+
italic: {},
|
|
6015
|
+
oblique: {}
|
|
6016
|
+
}
|
|
6017
|
+
},
|
|
6018
|
+
"style.textAlign": {
|
|
6019
|
+
type: "enum",
|
|
6020
|
+
default: "left",
|
|
6021
|
+
description: "Text align",
|
|
6022
|
+
variants: {
|
|
6023
|
+
left: {},
|
|
6024
|
+
center: {},
|
|
6025
|
+
right: {},
|
|
6026
|
+
justify: {},
|
|
6027
|
+
start: {},
|
|
6028
|
+
end: {}
|
|
6029
|
+
}
|
|
6030
|
+
},
|
|
6031
|
+
"style.letterSpacing": {
|
|
6032
|
+
type: "number",
|
|
6033
|
+
default: undefined,
|
|
6034
|
+
step: 0.1,
|
|
6035
|
+
description: "Letter spacing",
|
|
6036
|
+
hiddenFromList: false
|
|
6037
|
+
}
|
|
6038
|
+
};
|
|
5968
6039
|
var premountSchema = {
|
|
5969
6040
|
premountFor: {
|
|
5970
6041
|
type: "number",
|
|
@@ -6023,6 +6094,13 @@ var fromField = {
|
|
|
6023
6094
|
step: 1,
|
|
6024
6095
|
hiddenFromList: true
|
|
6025
6096
|
};
|
|
6097
|
+
var trimBeforeField = {
|
|
6098
|
+
type: "number",
|
|
6099
|
+
default: 0,
|
|
6100
|
+
min: 0,
|
|
6101
|
+
step: 1,
|
|
6102
|
+
hiddenFromList: true
|
|
6103
|
+
};
|
|
6026
6104
|
var freezeField = {
|
|
6027
6105
|
type: "number",
|
|
6028
6106
|
default: null,
|
|
@@ -6032,6 +6110,7 @@ var freezeField = {
|
|
|
6032
6110
|
var baseSchema = {
|
|
6033
6111
|
durationInFrames: durationInFramesField,
|
|
6034
6112
|
from: fromField,
|
|
6113
|
+
trimBefore: trimBeforeField,
|
|
6035
6114
|
freeze: freezeField,
|
|
6036
6115
|
hidden: hiddenField,
|
|
6037
6116
|
name: sequenceNameField,
|
|
@@ -6051,6 +6130,7 @@ var sequenceSchema = {
|
|
|
6051
6130
|
};
|
|
6052
6131
|
var baseSchemaWithoutFrom = {
|
|
6053
6132
|
durationInFrames: durationInFramesField,
|
|
6133
|
+
trimBefore: trimBeforeField,
|
|
6054
6134
|
freeze: freezeField,
|
|
6055
6135
|
hidden: hiddenField,
|
|
6056
6136
|
name: sequenceNameField,
|
|
@@ -8352,6 +8432,7 @@ var withInteractivitySchema = ({
|
|
|
8352
8432
|
var EMPTY_EFFECTS = [];
|
|
8353
8433
|
var RegularSequenceRefForwardingFunction = ({
|
|
8354
8434
|
from = 0,
|
|
8435
|
+
trimBefore = 0,
|
|
8355
8436
|
freeze,
|
|
8356
8437
|
durationInFrames = Infinity,
|
|
8357
8438
|
children,
|
|
@@ -8376,7 +8457,6 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8376
8457
|
const parentSequence = useContext17(SequenceContext);
|
|
8377
8458
|
const { rootId } = useTimelineContext();
|
|
8378
8459
|
const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8379
|
-
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + from;
|
|
8380
8460
|
const nonce = useNonce();
|
|
8381
8461
|
if (layout !== "absolute-fill" && layout !== "none") {
|
|
8382
8462
|
throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${layout}`);
|
|
@@ -8396,6 +8476,18 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8396
8476
|
if (!Number.isFinite(from)) {
|
|
8397
8477
|
throw new TypeError(`The "from" prop of a sequence must be finite, but got ${from}.`);
|
|
8398
8478
|
}
|
|
8479
|
+
if (typeof trimBefore !== "number") {
|
|
8480
|
+
throw new TypeError(`You passed to the "trimBefore" prop of your <Sequence> an argument of type ${typeof trimBefore}, but it must be a number.`);
|
|
8481
|
+
}
|
|
8482
|
+
if (trimBefore < 0) {
|
|
8483
|
+
throw new TypeError(`The "trimBefore" prop of <Sequence /> must be greater than or equal to 0, but got ${trimBefore}.`);
|
|
8484
|
+
}
|
|
8485
|
+
if (Number.isNaN(trimBefore)) {
|
|
8486
|
+
throw new TypeError('The "trimBefore" prop of <Sequence /> must be a real number, but it is NaN.');
|
|
8487
|
+
}
|
|
8488
|
+
if (!Number.isFinite(trimBefore)) {
|
|
8489
|
+
throw new TypeError(`The "trimBefore" prop of <Sequence /> must be finite, but it is ${trimBefore}.`);
|
|
8490
|
+
}
|
|
8399
8491
|
if (typeof freeze !== "undefined" && freeze !== null) {
|
|
8400
8492
|
if (typeof freeze !== "number") {
|
|
8401
8493
|
throw new TypeError(`The "freeze" prop of <Sequence /> must be a number, but is of type ${typeof freeze}.`);
|
|
@@ -8409,7 +8501,9 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8409
8501
|
}
|
|
8410
8502
|
const absoluteFrame = useTimelinePosition();
|
|
8411
8503
|
const videoConfig = useVideoConfig();
|
|
8412
|
-
const
|
|
8504
|
+
const effectiveRelativeFrom = from - trimBefore;
|
|
8505
|
+
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
|
|
8506
|
+
const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
|
|
8413
8507
|
const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
|
|
8414
8508
|
const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
|
|
8415
8509
|
const wrapperRefForOutline = useRef6(null);
|
|
@@ -8420,7 +8514,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8420
8514
|
const postmounting = useMemo14(() => {
|
|
8421
8515
|
return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
|
|
8422
8516
|
}, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
|
|
8423
|
-
const currentSequenceStart = cumulatedFrom +
|
|
8517
|
+
const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
|
|
8424
8518
|
const parentSequenceStart = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8425
8519
|
const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
|
|
8426
8520
|
const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
|
|
@@ -8429,7 +8523,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8429
8523
|
return {
|
|
8430
8524
|
absoluteFrom,
|
|
8431
8525
|
cumulatedFrom,
|
|
8432
|
-
relativeFrom:
|
|
8526
|
+
relativeFrom: effectiveRelativeFrom,
|
|
8433
8527
|
cumulatedNegativeFrom,
|
|
8434
8528
|
durationInFrames: actualDurationInFrames,
|
|
8435
8529
|
parentFrom: parentSequence?.relativeFrom ?? 0,
|
|
@@ -8444,7 +8538,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8444
8538
|
}, [
|
|
8445
8539
|
cumulatedFrom,
|
|
8446
8540
|
absoluteFrom,
|
|
8447
|
-
|
|
8541
|
+
effectiveRelativeFrom,
|
|
8448
8542
|
actualDurationInFrames,
|
|
8449
8543
|
parentSequence,
|
|
8450
8544
|
id,
|
|
@@ -8466,6 +8560,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8466
8560
|
const stackRef = useRef6(null);
|
|
8467
8561
|
stackRef.current = stack ?? inheritedStack;
|
|
8468
8562
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
8563
|
+
const registeredTrimBefore = trimBefore === 0 ? null : trimBefore;
|
|
8469
8564
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
8470
8565
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
8471
8566
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
@@ -8484,6 +8579,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8484
8579
|
documentationLink: resolvedDocumentationLink,
|
|
8485
8580
|
duration: actualDurationInFrames,
|
|
8486
8581
|
from,
|
|
8582
|
+
trimBefore: registeredTrimBefore,
|
|
8487
8583
|
id,
|
|
8488
8584
|
loopDisplay,
|
|
8489
8585
|
nonce: nonce.get(),
|
|
@@ -8508,6 +8604,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8508
8604
|
doesVolumeChange: isMedia.data.doesVolumeChange,
|
|
8509
8605
|
duration: actualDurationInFrames,
|
|
8510
8606
|
from,
|
|
8607
|
+
trimBefore: registeredTrimBefore,
|
|
8511
8608
|
id,
|
|
8512
8609
|
loopDisplay,
|
|
8513
8610
|
nonce: nonce.get(),
|
|
@@ -8533,6 +8630,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8533
8630
|
}
|
|
8534
8631
|
registerSequence({
|
|
8535
8632
|
from,
|
|
8633
|
+
trimBefore: registeredTrimBefore,
|
|
8536
8634
|
duration: actualDurationInFrames,
|
|
8537
8635
|
id,
|
|
8538
8636
|
displayName: timelineClipName,
|
|
@@ -8566,6 +8664,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8566
8664
|
actualDurationInFrames,
|
|
8567
8665
|
rootId,
|
|
8568
8666
|
from,
|
|
8667
|
+
trimBefore,
|
|
8668
|
+
registeredTrimBefore,
|
|
8569
8669
|
showInTimeline,
|
|
8570
8670
|
nonce,
|
|
8571
8671
|
loopDisplay,
|
|
@@ -9833,13 +9933,15 @@ var prefetch = (src, options) => {
|
|
|
9833
9933
|
resolve = res;
|
|
9834
9934
|
reject = rej;
|
|
9835
9935
|
});
|
|
9936
|
+
waitUntilDone.catch(() => {
|
|
9937
|
+
return;
|
|
9938
|
+
});
|
|
9836
9939
|
const controller = new AbortController;
|
|
9837
|
-
let
|
|
9940
|
+
let reader = null;
|
|
9838
9941
|
fetch(srcWithoutHash, {
|
|
9839
9942
|
signal: controller.signal,
|
|
9840
9943
|
credentials: options?.credentials ?? undefined
|
|
9841
9944
|
}).then((res) => {
|
|
9842
|
-
canBeAborted = false;
|
|
9843
9945
|
if (canceled) {
|
|
9844
9946
|
return null;
|
|
9845
9947
|
}
|
|
@@ -9855,15 +9957,16 @@ var prefetch = (src, options) => {
|
|
|
9855
9957
|
if (!res.body) {
|
|
9856
9958
|
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
9857
9959
|
}
|
|
9858
|
-
const
|
|
9960
|
+
const responseReader = res.body.getReader();
|
|
9961
|
+
reader = responseReader;
|
|
9859
9962
|
return getBlobFromReader({
|
|
9860
|
-
reader,
|
|
9963
|
+
reader: responseReader,
|
|
9861
9964
|
contentType: options?.contentType ?? headerContentType ?? null,
|
|
9862
9965
|
contentLength: res.headers.get("Content-Length") ? parseInt(res.headers.get("Content-Length"), 10) : null,
|
|
9863
9966
|
onProgress: options?.onProgress
|
|
9864
9967
|
});
|
|
9865
9968
|
}).then((buf) => {
|
|
9866
|
-
if (!buf) {
|
|
9969
|
+
if (!buf || canceled) {
|
|
9867
9970
|
return;
|
|
9868
9971
|
}
|
|
9869
9972
|
const actualBlob = options?.contentType ? new Blob([buf], { type: options.contentType }) : buf;
|
|
@@ -9911,12 +10014,18 @@ var prefetch = (src, options) => {
|
|
|
9911
10014
|
return copy;
|
|
9912
10015
|
});
|
|
9913
10016
|
} else {
|
|
9914
|
-
canceled
|
|
9915
|
-
|
|
9916
|
-
try {
|
|
9917
|
-
controller.abort(new Error("free() called"));
|
|
9918
|
-
} catch {}
|
|
10017
|
+
if (canceled) {
|
|
10018
|
+
return;
|
|
9919
10019
|
}
|
|
10020
|
+
canceled = true;
|
|
10021
|
+
const cancellationError = new Error("free() called");
|
|
10022
|
+
reject(cancellationError);
|
|
10023
|
+
try {
|
|
10024
|
+
controller.abort(cancellationError);
|
|
10025
|
+
} catch {}
|
|
10026
|
+
reader?.cancel(cancellationError).catch(() => {
|
|
10027
|
+
return;
|
|
10028
|
+
});
|
|
9920
10029
|
}
|
|
9921
10030
|
},
|
|
9922
10031
|
waitUntilDone: () => {
|
|
@@ -11088,6 +11197,7 @@ var useMediaInTimeline = ({
|
|
|
11088
11197
|
id,
|
|
11089
11198
|
duration,
|
|
11090
11199
|
from: 0,
|
|
11200
|
+
trimBefore: null,
|
|
11091
11201
|
parent: parentSequence?.id ?? null,
|
|
11092
11202
|
displayName: finalDisplayName,
|
|
11093
11203
|
documentationLink,
|
|
@@ -11950,11 +12060,11 @@ var useMediaTag = ({
|
|
|
11950
12060
|
]);
|
|
11951
12061
|
};
|
|
11952
12062
|
var MediaVolumeContext = createContext22({
|
|
11953
|
-
|
|
12063
|
+
playerMuted: false,
|
|
11954
12064
|
mediaVolume: 1
|
|
11955
12065
|
});
|
|
11956
12066
|
var SetMediaVolumeContext = createContext22({
|
|
11957
|
-
|
|
12067
|
+
setPlayerMuted: () => {
|
|
11958
12068
|
throw new Error("default");
|
|
11959
12069
|
},
|
|
11960
12070
|
setMediaVolume: () => {
|
|
@@ -11968,12 +12078,12 @@ var useMediaVolumeState = () => {
|
|
|
11968
12078
|
return [mediaVolume, setMediaVolume];
|
|
11969
12079
|
}, [mediaVolume, setMediaVolume]);
|
|
11970
12080
|
};
|
|
11971
|
-
var
|
|
11972
|
-
const {
|
|
11973
|
-
const {
|
|
12081
|
+
var usePlayerMutedState = () => {
|
|
12082
|
+
const { playerMuted } = useContext27(MediaVolumeContext);
|
|
12083
|
+
const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
|
|
11974
12084
|
return useMemo26(() => {
|
|
11975
|
-
return [
|
|
11976
|
-
}, [
|
|
12085
|
+
return [playerMuted, setPlayerMuted];
|
|
12086
|
+
}, [playerMuted, setPlayerMuted]);
|
|
11977
12087
|
};
|
|
11978
12088
|
var warnAboutTooHighVolume = (volume) => {
|
|
11979
12089
|
if (volume >= 100) {
|
|
@@ -12019,7 +12129,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12019
12129
|
throw new Error("typecheck error");
|
|
12020
12130
|
}
|
|
12021
12131
|
const [mediaVolume] = useMediaVolumeState();
|
|
12022
|
-
const [
|
|
12132
|
+
const [playerMuted] = usePlayerMutedState();
|
|
12023
12133
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
12024
12134
|
if (!src) {
|
|
12025
12135
|
throw new TypeError("No 'src' was passed to <Html5Audio>.");
|
|
@@ -12040,7 +12150,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12040
12150
|
});
|
|
12041
12151
|
const propsToPass = useMemo27(() => {
|
|
12042
12152
|
return {
|
|
12043
|
-
muted: muted ||
|
|
12153
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
12044
12154
|
src: preloadedSrc,
|
|
12045
12155
|
loop: _remotionInternalNativeLoopPassed,
|
|
12046
12156
|
crossOrigin: crossOriginValue,
|
|
@@ -12048,7 +12158,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12048
12158
|
};
|
|
12049
12159
|
}, [
|
|
12050
12160
|
_remotionInternalNativeLoopPassed,
|
|
12051
|
-
|
|
12161
|
+
playerMuted,
|
|
12052
12162
|
muted,
|
|
12053
12163
|
nativeProps,
|
|
12054
12164
|
preloadedSrc,
|
|
@@ -12445,6 +12555,15 @@ var solidSchema = {
|
|
|
12445
12555
|
description: "Height",
|
|
12446
12556
|
hiddenFromList: false
|
|
12447
12557
|
},
|
|
12558
|
+
pixelDensity: {
|
|
12559
|
+
type: "number",
|
|
12560
|
+
min: 1,
|
|
12561
|
+
max: 3,
|
|
12562
|
+
step: 0.1,
|
|
12563
|
+
default: 1,
|
|
12564
|
+
description: "Pixel density",
|
|
12565
|
+
hiddenFromList: false
|
|
12566
|
+
},
|
|
12448
12567
|
...transformSchema
|
|
12449
12568
|
};
|
|
12450
12569
|
var SolidInner = ({
|
|
@@ -12561,6 +12680,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12561
12680
|
style,
|
|
12562
12681
|
name,
|
|
12563
12682
|
from,
|
|
12683
|
+
trimBefore,
|
|
12564
12684
|
freeze,
|
|
12565
12685
|
hidden,
|
|
12566
12686
|
showInTimeline,
|
|
@@ -12575,6 +12695,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12575
12695
|
return /* @__PURE__ */ jsx24(Sequence, {
|
|
12576
12696
|
layout: "none",
|
|
12577
12697
|
from,
|
|
12698
|
+
trimBefore,
|
|
12578
12699
|
freeze,
|
|
12579
12700
|
hidden,
|
|
12580
12701
|
showInTimeline,
|
|
@@ -12732,10 +12853,6 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
12732
12853
|
if (!placeholderCanvas) {
|
|
12733
12854
|
throw new Error("Canvas not found");
|
|
12734
12855
|
}
|
|
12735
|
-
const offscreen2d = offscreen.getContext("2d");
|
|
12736
|
-
if (!offscreen2d) {
|
|
12737
|
-
throw new Error("Failed to acquire 2D context for <HtmlInCanvas> offscreen canvas");
|
|
12738
|
-
}
|
|
12739
12856
|
const handle = delayRender("onPaint");
|
|
12740
12857
|
if (!initializedRef.current) {
|
|
12741
12858
|
initializedRef.current = true;
|
|
@@ -12920,6 +13037,15 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
12920
13037
|
HtmlInCanvasInner.displayName = "HtmlInCanvas";
|
|
12921
13038
|
var htmlInCanvasSchema = {
|
|
12922
13039
|
...baseSchema,
|
|
13040
|
+
pixelDensity: {
|
|
13041
|
+
type: "number",
|
|
13042
|
+
min: 1,
|
|
13043
|
+
max: 3,
|
|
13044
|
+
step: 0.1,
|
|
13045
|
+
default: 1,
|
|
13046
|
+
description: "Pixel density",
|
|
13047
|
+
hiddenFromList: false
|
|
13048
|
+
},
|
|
12923
13049
|
...transformSchema
|
|
12924
13050
|
};
|
|
12925
13051
|
var HtmlInCanvasWrapped = withInteractivitySchema({
|
|
@@ -13237,6 +13363,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13237
13363
|
delayRenderTimeoutInMilliseconds,
|
|
13238
13364
|
durationInFrames,
|
|
13239
13365
|
from,
|
|
13366
|
+
trimBefore,
|
|
13240
13367
|
freeze,
|
|
13241
13368
|
hidden,
|
|
13242
13369
|
name,
|
|
@@ -13258,6 +13385,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13258
13385
|
return /* @__PURE__ */ jsx26(Sequence, {
|
|
13259
13386
|
layout: "none",
|
|
13260
13387
|
from: from ?? 0,
|
|
13388
|
+
trimBefore,
|
|
13261
13389
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13262
13390
|
freeze,
|
|
13263
13391
|
hidden,
|
|
@@ -13494,6 +13622,7 @@ var NativeImgInner = ({
|
|
|
13494
13622
|
showInTimeline,
|
|
13495
13623
|
src,
|
|
13496
13624
|
from,
|
|
13625
|
+
trimBefore,
|
|
13497
13626
|
durationInFrames,
|
|
13498
13627
|
freeze,
|
|
13499
13628
|
controls,
|
|
@@ -13506,6 +13635,7 @@ var NativeImgInner = ({
|
|
|
13506
13635
|
return /* @__PURE__ */ jsx28(Sequence, {
|
|
13507
13636
|
layout: "none",
|
|
13508
13637
|
from: from ?? 0,
|
|
13638
|
+
trimBefore,
|
|
13509
13639
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13510
13640
|
freeze,
|
|
13511
13641
|
_remotionInternalStack: stack,
|
|
@@ -13579,6 +13709,7 @@ var ImgInner = ({
|
|
|
13579
13709
|
showInTimeline,
|
|
13580
13710
|
src,
|
|
13581
13711
|
from,
|
|
13712
|
+
trimBefore,
|
|
13582
13713
|
durationInFrames,
|
|
13583
13714
|
freeze,
|
|
13584
13715
|
controls,
|
|
@@ -13604,6 +13735,7 @@ var ImgInner = ({
|
|
|
13604
13735
|
showInTimeline,
|
|
13605
13736
|
src,
|
|
13606
13737
|
from,
|
|
13738
|
+
trimBefore,
|
|
13607
13739
|
durationInFrames,
|
|
13608
13740
|
freeze,
|
|
13609
13741
|
controls,
|
|
@@ -13646,6 +13778,7 @@ var ImgInner = ({
|
|
|
13646
13778
|
delayRenderRetries,
|
|
13647
13779
|
delayRenderTimeoutInMilliseconds,
|
|
13648
13780
|
from,
|
|
13781
|
+
trimBefore,
|
|
13649
13782
|
durationInFrames,
|
|
13650
13783
|
freeze,
|
|
13651
13784
|
hidden,
|
|
@@ -13668,7 +13801,8 @@ var Img = withInteractivitySchema({
|
|
|
13668
13801
|
addSequenceStackTraces(Img);
|
|
13669
13802
|
var interactiveElementSchema = {
|
|
13670
13803
|
...baseSchema,
|
|
13671
|
-
...transformSchema
|
|
13804
|
+
...transformSchema,
|
|
13805
|
+
...textSchema
|
|
13672
13806
|
};
|
|
13673
13807
|
var setRef = (ref, value) => {
|
|
13674
13808
|
if (typeof ref === "function") {
|
|
@@ -13682,6 +13816,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13682
13816
|
const {
|
|
13683
13817
|
durationInFrames,
|
|
13684
13818
|
from,
|
|
13819
|
+
trimBefore,
|
|
13685
13820
|
freeze,
|
|
13686
13821
|
hidden,
|
|
13687
13822
|
name,
|
|
@@ -13698,6 +13833,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13698
13833
|
return /* @__PURE__ */ jsx29(Sequence, {
|
|
13699
13834
|
layout: "none",
|
|
13700
13835
|
from: from ?? 0,
|
|
13836
|
+
trimBefore,
|
|
13701
13837
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13702
13838
|
freeze,
|
|
13703
13839
|
hidden,
|
|
@@ -13728,6 +13864,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13728
13864
|
var Interactive = {
|
|
13729
13865
|
baseSchema,
|
|
13730
13866
|
transformSchema,
|
|
13867
|
+
textSchema,
|
|
13731
13868
|
premountSchema,
|
|
13732
13869
|
sequenceSchema,
|
|
13733
13870
|
withSchema: withInteractivitySchema,
|
|
@@ -14557,7 +14694,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14557
14694
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
14558
14695
|
}
|
|
14559
14696
|
const [mediaVolume] = useMediaVolumeState();
|
|
14560
|
-
const [
|
|
14697
|
+
const [playerMuted] = usePlayerMutedState();
|
|
14561
14698
|
const userPreferredVolume = evaluateVolume({
|
|
14562
14699
|
frame: volumePropFrame,
|
|
14563
14700
|
volume,
|
|
@@ -14713,7 +14850,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14713
14850
|
return /* @__PURE__ */ jsx34("video", {
|
|
14714
14851
|
...nativeProps,
|
|
14715
14852
|
ref: videoRef,
|
|
14716
|
-
muted: muted ||
|
|
14853
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
14717
14854
|
playsInline: true,
|
|
14718
14855
|
src: actualSrc,
|
|
14719
14856
|
loop: _remotionInternalNativeLoopPassed,
|
|
@@ -15004,6 +15141,7 @@ var Internals = {
|
|
|
15004
15141
|
sequenceStyleSchema,
|
|
15005
15142
|
sequenceVisualStyleSchema,
|
|
15006
15143
|
sequencePremountSchema,
|
|
15144
|
+
textSchema,
|
|
15007
15145
|
transformSchema,
|
|
15008
15146
|
premountSchema,
|
|
15009
15147
|
flattenActiveSchema,
|
|
@@ -15013,7 +15151,7 @@ var Internals = {
|
|
|
15013
15151
|
useVideo,
|
|
15014
15152
|
getRoot,
|
|
15015
15153
|
useMediaVolumeState,
|
|
15016
|
-
|
|
15154
|
+
usePlayerMutedState,
|
|
15017
15155
|
useMediaInTimeline,
|
|
15018
15156
|
useLazyComponent,
|
|
15019
15157
|
truthy,
|
|
@@ -15956,6 +16094,7 @@ var RenderSvg = ({
|
|
|
15956
16094
|
pixelDensity,
|
|
15957
16095
|
durationInFrames,
|
|
15958
16096
|
from,
|
|
16097
|
+
trimBefore,
|
|
15959
16098
|
freeze,
|
|
15960
16099
|
hidden,
|
|
15961
16100
|
name,
|
|
@@ -16065,6 +16204,7 @@ var RenderSvg = ({
|
|
|
16065
16204
|
return /* @__PURE__ */ jsx40(Sequence, {
|
|
16066
16205
|
layout: "none",
|
|
16067
16206
|
from,
|
|
16207
|
+
trimBefore,
|
|
16068
16208
|
freeze,
|
|
16069
16209
|
hidden,
|
|
16070
16210
|
showInTimeline,
|