@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/team.js
CHANGED
|
@@ -5746,7 +5746,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
|
5746
5746
|
var addSequenceStackTraces = (component) => {
|
|
5747
5747
|
componentsToAddStacksTo.push(component);
|
|
5748
5748
|
};
|
|
5749
|
-
var VERSION = "4.0.
|
|
5749
|
+
var VERSION = "4.0.482";
|
|
5750
5750
|
var checkMultipleRemotionVersions = () => {
|
|
5751
5751
|
if (typeof globalThis === "undefined") {
|
|
5752
5752
|
return;
|
|
@@ -6146,6 +6146,77 @@ var transformSchema = {
|
|
|
6146
6146
|
}
|
|
6147
6147
|
};
|
|
6148
6148
|
var sequenceVisualStyleSchema = transformSchema;
|
|
6149
|
+
var textSchema = {
|
|
6150
|
+
"style.color": {
|
|
6151
|
+
type: "color",
|
|
6152
|
+
default: undefined,
|
|
6153
|
+
description: "Color"
|
|
6154
|
+
},
|
|
6155
|
+
"style.fontSize": {
|
|
6156
|
+
type: "number",
|
|
6157
|
+
default: undefined,
|
|
6158
|
+
min: 0,
|
|
6159
|
+
step: 1,
|
|
6160
|
+
description: "Font size",
|
|
6161
|
+
hiddenFromList: false
|
|
6162
|
+
},
|
|
6163
|
+
"style.lineHeight": {
|
|
6164
|
+
type: "number",
|
|
6165
|
+
default: undefined,
|
|
6166
|
+
min: 0,
|
|
6167
|
+
step: 0.05,
|
|
6168
|
+
description: "Line height",
|
|
6169
|
+
hiddenFromList: false
|
|
6170
|
+
},
|
|
6171
|
+
"style.fontWeight": {
|
|
6172
|
+
type: "enum",
|
|
6173
|
+
default: "400",
|
|
6174
|
+
description: "Font weight",
|
|
6175
|
+
variants: {
|
|
6176
|
+
"100": {},
|
|
6177
|
+
"200": {},
|
|
6178
|
+
"300": {},
|
|
6179
|
+
"400": {},
|
|
6180
|
+
"500": {},
|
|
6181
|
+
"600": {},
|
|
6182
|
+
"700": {},
|
|
6183
|
+
"800": {},
|
|
6184
|
+
"900": {},
|
|
6185
|
+
normal: {},
|
|
6186
|
+
bold: {}
|
|
6187
|
+
}
|
|
6188
|
+
},
|
|
6189
|
+
"style.fontStyle": {
|
|
6190
|
+
type: "enum",
|
|
6191
|
+
default: "normal",
|
|
6192
|
+
description: "Font style",
|
|
6193
|
+
variants: {
|
|
6194
|
+
normal: {},
|
|
6195
|
+
italic: {},
|
|
6196
|
+
oblique: {}
|
|
6197
|
+
}
|
|
6198
|
+
},
|
|
6199
|
+
"style.textAlign": {
|
|
6200
|
+
type: "enum",
|
|
6201
|
+
default: "left",
|
|
6202
|
+
description: "Text align",
|
|
6203
|
+
variants: {
|
|
6204
|
+
left: {},
|
|
6205
|
+
center: {},
|
|
6206
|
+
right: {},
|
|
6207
|
+
justify: {},
|
|
6208
|
+
start: {},
|
|
6209
|
+
end: {}
|
|
6210
|
+
}
|
|
6211
|
+
},
|
|
6212
|
+
"style.letterSpacing": {
|
|
6213
|
+
type: "number",
|
|
6214
|
+
default: undefined,
|
|
6215
|
+
step: 0.1,
|
|
6216
|
+
description: "Letter spacing",
|
|
6217
|
+
hiddenFromList: false
|
|
6218
|
+
}
|
|
6219
|
+
};
|
|
6149
6220
|
var premountSchema = {
|
|
6150
6221
|
premountFor: {
|
|
6151
6222
|
type: "number",
|
|
@@ -6204,6 +6275,13 @@ var fromField = {
|
|
|
6204
6275
|
step: 1,
|
|
6205
6276
|
hiddenFromList: true
|
|
6206
6277
|
};
|
|
6278
|
+
var trimBeforeField = {
|
|
6279
|
+
type: "number",
|
|
6280
|
+
default: 0,
|
|
6281
|
+
min: 0,
|
|
6282
|
+
step: 1,
|
|
6283
|
+
hiddenFromList: true
|
|
6284
|
+
};
|
|
6207
6285
|
var freezeField = {
|
|
6208
6286
|
type: "number",
|
|
6209
6287
|
default: null,
|
|
@@ -6213,6 +6291,7 @@ var freezeField = {
|
|
|
6213
6291
|
var baseSchema = {
|
|
6214
6292
|
durationInFrames: durationInFramesField,
|
|
6215
6293
|
from: fromField,
|
|
6294
|
+
trimBefore: trimBeforeField,
|
|
6216
6295
|
freeze: freezeField,
|
|
6217
6296
|
hidden: hiddenField,
|
|
6218
6297
|
name: sequenceNameField,
|
|
@@ -6232,6 +6311,7 @@ var sequenceSchema = {
|
|
|
6232
6311
|
};
|
|
6233
6312
|
var baseSchemaWithoutFrom = {
|
|
6234
6313
|
durationInFrames: durationInFramesField,
|
|
6314
|
+
trimBefore: trimBeforeField,
|
|
6235
6315
|
freeze: freezeField,
|
|
6236
6316
|
hidden: hiddenField,
|
|
6237
6317
|
name: sequenceNameField,
|
|
@@ -8533,6 +8613,7 @@ var withInteractivitySchema = ({
|
|
|
8533
8613
|
var EMPTY_EFFECTS = [];
|
|
8534
8614
|
var RegularSequenceRefForwardingFunction = ({
|
|
8535
8615
|
from = 0,
|
|
8616
|
+
trimBefore = 0,
|
|
8536
8617
|
freeze,
|
|
8537
8618
|
durationInFrames = Infinity,
|
|
8538
8619
|
children,
|
|
@@ -8557,7 +8638,6 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8557
8638
|
const parentSequence = useContext17(SequenceContext);
|
|
8558
8639
|
const { rootId } = useTimelineContext();
|
|
8559
8640
|
const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8560
|
-
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + from;
|
|
8561
8641
|
const nonce = useNonce();
|
|
8562
8642
|
if (layout !== "absolute-fill" && layout !== "none") {
|
|
8563
8643
|
throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${layout}`);
|
|
@@ -8577,6 +8657,18 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8577
8657
|
if (!Number.isFinite(from)) {
|
|
8578
8658
|
throw new TypeError(`The "from" prop of a sequence must be finite, but got ${from}.`);
|
|
8579
8659
|
}
|
|
8660
|
+
if (typeof trimBefore !== "number") {
|
|
8661
|
+
throw new TypeError(`You passed to the "trimBefore" prop of your <Sequence> an argument of type ${typeof trimBefore}, but it must be a number.`);
|
|
8662
|
+
}
|
|
8663
|
+
if (trimBefore < 0) {
|
|
8664
|
+
throw new TypeError(`The "trimBefore" prop of <Sequence /> must be greater than or equal to 0, but got ${trimBefore}.`);
|
|
8665
|
+
}
|
|
8666
|
+
if (Number.isNaN(trimBefore)) {
|
|
8667
|
+
throw new TypeError('The "trimBefore" prop of <Sequence /> must be a real number, but it is NaN.');
|
|
8668
|
+
}
|
|
8669
|
+
if (!Number.isFinite(trimBefore)) {
|
|
8670
|
+
throw new TypeError(`The "trimBefore" prop of <Sequence /> must be finite, but it is ${trimBefore}.`);
|
|
8671
|
+
}
|
|
8580
8672
|
if (typeof freeze !== "undefined" && freeze !== null) {
|
|
8581
8673
|
if (typeof freeze !== "number") {
|
|
8582
8674
|
throw new TypeError(`The "freeze" prop of <Sequence /> must be a number, but is of type ${typeof freeze}.`);
|
|
@@ -8590,7 +8682,9 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8590
8682
|
}
|
|
8591
8683
|
const absoluteFrame = useTimelinePosition();
|
|
8592
8684
|
const videoConfig = useVideoConfig();
|
|
8593
|
-
const
|
|
8685
|
+
const effectiveRelativeFrom = from - trimBefore;
|
|
8686
|
+
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
|
|
8687
|
+
const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
|
|
8594
8688
|
const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
|
|
8595
8689
|
const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
|
|
8596
8690
|
const wrapperRefForOutline = useRef6(null);
|
|
@@ -8601,7 +8695,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8601
8695
|
const postmounting = useMemo14(() => {
|
|
8602
8696
|
return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
|
|
8603
8697
|
}, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
|
|
8604
|
-
const currentSequenceStart = cumulatedFrom +
|
|
8698
|
+
const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
|
|
8605
8699
|
const parentSequenceStart = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8606
8700
|
const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
|
|
8607
8701
|
const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
|
|
@@ -8610,7 +8704,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8610
8704
|
return {
|
|
8611
8705
|
absoluteFrom,
|
|
8612
8706
|
cumulatedFrom,
|
|
8613
|
-
relativeFrom:
|
|
8707
|
+
relativeFrom: effectiveRelativeFrom,
|
|
8614
8708
|
cumulatedNegativeFrom,
|
|
8615
8709
|
durationInFrames: actualDurationInFrames,
|
|
8616
8710
|
parentFrom: parentSequence?.relativeFrom ?? 0,
|
|
@@ -8625,7 +8719,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8625
8719
|
}, [
|
|
8626
8720
|
cumulatedFrom,
|
|
8627
8721
|
absoluteFrom,
|
|
8628
|
-
|
|
8722
|
+
effectiveRelativeFrom,
|
|
8629
8723
|
actualDurationInFrames,
|
|
8630
8724
|
parentSequence,
|
|
8631
8725
|
id,
|
|
@@ -8647,6 +8741,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8647
8741
|
const stackRef = useRef6(null);
|
|
8648
8742
|
stackRef.current = stack ?? inheritedStack;
|
|
8649
8743
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
8744
|
+
const registeredTrimBefore = trimBefore === 0 ? null : trimBefore;
|
|
8650
8745
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
8651
8746
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
8652
8747
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
@@ -8665,6 +8760,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8665
8760
|
documentationLink: resolvedDocumentationLink,
|
|
8666
8761
|
duration: actualDurationInFrames,
|
|
8667
8762
|
from,
|
|
8763
|
+
trimBefore: registeredTrimBefore,
|
|
8668
8764
|
id,
|
|
8669
8765
|
loopDisplay,
|
|
8670
8766
|
nonce: nonce.get(),
|
|
@@ -8689,6 +8785,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8689
8785
|
doesVolumeChange: isMedia.data.doesVolumeChange,
|
|
8690
8786
|
duration: actualDurationInFrames,
|
|
8691
8787
|
from,
|
|
8788
|
+
trimBefore: registeredTrimBefore,
|
|
8692
8789
|
id,
|
|
8693
8790
|
loopDisplay,
|
|
8694
8791
|
nonce: nonce.get(),
|
|
@@ -8714,6 +8811,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8714
8811
|
}
|
|
8715
8812
|
registerSequence({
|
|
8716
8813
|
from,
|
|
8814
|
+
trimBefore: registeredTrimBefore,
|
|
8717
8815
|
duration: actualDurationInFrames,
|
|
8718
8816
|
id,
|
|
8719
8817
|
displayName: timelineClipName,
|
|
@@ -8747,6 +8845,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8747
8845
|
actualDurationInFrames,
|
|
8748
8846
|
rootId,
|
|
8749
8847
|
from,
|
|
8848
|
+
trimBefore,
|
|
8849
|
+
registeredTrimBefore,
|
|
8750
8850
|
showInTimeline,
|
|
8751
8851
|
nonce,
|
|
8752
8852
|
loopDisplay,
|
|
@@ -10014,13 +10114,15 @@ var prefetch = (src, options) => {
|
|
|
10014
10114
|
resolve = res;
|
|
10015
10115
|
reject = rej;
|
|
10016
10116
|
});
|
|
10117
|
+
waitUntilDone.catch(() => {
|
|
10118
|
+
return;
|
|
10119
|
+
});
|
|
10017
10120
|
const controller = new AbortController;
|
|
10018
|
-
let
|
|
10121
|
+
let reader = null;
|
|
10019
10122
|
fetch(srcWithoutHash, {
|
|
10020
10123
|
signal: controller.signal,
|
|
10021
10124
|
credentials: options?.credentials ?? undefined
|
|
10022
10125
|
}).then((res) => {
|
|
10023
|
-
canBeAborted = false;
|
|
10024
10126
|
if (canceled) {
|
|
10025
10127
|
return null;
|
|
10026
10128
|
}
|
|
@@ -10036,15 +10138,16 @@ var prefetch = (src, options) => {
|
|
|
10036
10138
|
if (!res.body) {
|
|
10037
10139
|
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
10038
10140
|
}
|
|
10039
|
-
const
|
|
10141
|
+
const responseReader = res.body.getReader();
|
|
10142
|
+
reader = responseReader;
|
|
10040
10143
|
return getBlobFromReader({
|
|
10041
|
-
reader,
|
|
10144
|
+
reader: responseReader,
|
|
10042
10145
|
contentType: options?.contentType ?? headerContentType ?? null,
|
|
10043
10146
|
contentLength: res.headers.get("Content-Length") ? parseInt(res.headers.get("Content-Length"), 10) : null,
|
|
10044
10147
|
onProgress: options?.onProgress
|
|
10045
10148
|
});
|
|
10046
10149
|
}).then((buf) => {
|
|
10047
|
-
if (!buf) {
|
|
10150
|
+
if (!buf || canceled) {
|
|
10048
10151
|
return;
|
|
10049
10152
|
}
|
|
10050
10153
|
const actualBlob = options?.contentType ? new Blob([buf], { type: options.contentType }) : buf;
|
|
@@ -10092,12 +10195,18 @@ var prefetch = (src, options) => {
|
|
|
10092
10195
|
return copy;
|
|
10093
10196
|
});
|
|
10094
10197
|
} else {
|
|
10095
|
-
canceled
|
|
10096
|
-
|
|
10097
|
-
try {
|
|
10098
|
-
controller.abort(new Error("free() called"));
|
|
10099
|
-
} catch {}
|
|
10198
|
+
if (canceled) {
|
|
10199
|
+
return;
|
|
10100
10200
|
}
|
|
10201
|
+
canceled = true;
|
|
10202
|
+
const cancellationError = new Error("free() called");
|
|
10203
|
+
reject(cancellationError);
|
|
10204
|
+
try {
|
|
10205
|
+
controller.abort(cancellationError);
|
|
10206
|
+
} catch {}
|
|
10207
|
+
reader?.cancel(cancellationError).catch(() => {
|
|
10208
|
+
return;
|
|
10209
|
+
});
|
|
10101
10210
|
}
|
|
10102
10211
|
},
|
|
10103
10212
|
waitUntilDone: () => {
|
|
@@ -11269,6 +11378,7 @@ var useMediaInTimeline = ({
|
|
|
11269
11378
|
id,
|
|
11270
11379
|
duration,
|
|
11271
11380
|
from: 0,
|
|
11381
|
+
trimBefore: null,
|
|
11272
11382
|
parent: parentSequence?.id ?? null,
|
|
11273
11383
|
displayName: finalDisplayName,
|
|
11274
11384
|
documentationLink,
|
|
@@ -12131,11 +12241,11 @@ var useMediaTag = ({
|
|
|
12131
12241
|
]);
|
|
12132
12242
|
};
|
|
12133
12243
|
var MediaVolumeContext = createContext22({
|
|
12134
|
-
|
|
12244
|
+
playerMuted: false,
|
|
12135
12245
|
mediaVolume: 1
|
|
12136
12246
|
});
|
|
12137
12247
|
var SetMediaVolumeContext = createContext22({
|
|
12138
|
-
|
|
12248
|
+
setPlayerMuted: () => {
|
|
12139
12249
|
throw new Error("default");
|
|
12140
12250
|
},
|
|
12141
12251
|
setMediaVolume: () => {
|
|
@@ -12149,12 +12259,12 @@ var useMediaVolumeState = () => {
|
|
|
12149
12259
|
return [mediaVolume, setMediaVolume];
|
|
12150
12260
|
}, [mediaVolume, setMediaVolume]);
|
|
12151
12261
|
};
|
|
12152
|
-
var
|
|
12153
|
-
const {
|
|
12154
|
-
const {
|
|
12262
|
+
var usePlayerMutedState = () => {
|
|
12263
|
+
const { playerMuted } = useContext27(MediaVolumeContext);
|
|
12264
|
+
const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
|
|
12155
12265
|
return useMemo26(() => {
|
|
12156
|
-
return [
|
|
12157
|
-
}, [
|
|
12266
|
+
return [playerMuted, setPlayerMuted];
|
|
12267
|
+
}, [playerMuted, setPlayerMuted]);
|
|
12158
12268
|
};
|
|
12159
12269
|
var warnAboutTooHighVolume = (volume) => {
|
|
12160
12270
|
if (volume >= 100) {
|
|
@@ -12200,7 +12310,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12200
12310
|
throw new Error("typecheck error");
|
|
12201
12311
|
}
|
|
12202
12312
|
const [mediaVolume] = useMediaVolumeState();
|
|
12203
|
-
const [
|
|
12313
|
+
const [playerMuted] = usePlayerMutedState();
|
|
12204
12314
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
12205
12315
|
if (!src) {
|
|
12206
12316
|
throw new TypeError("No 'src' was passed to <Html5Audio>.");
|
|
@@ -12221,7 +12331,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12221
12331
|
});
|
|
12222
12332
|
const propsToPass = useMemo27(() => {
|
|
12223
12333
|
return {
|
|
12224
|
-
muted: muted ||
|
|
12334
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
12225
12335
|
src: preloadedSrc,
|
|
12226
12336
|
loop: _remotionInternalNativeLoopPassed,
|
|
12227
12337
|
crossOrigin: crossOriginValue,
|
|
@@ -12229,7 +12339,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12229
12339
|
};
|
|
12230
12340
|
}, [
|
|
12231
12341
|
_remotionInternalNativeLoopPassed,
|
|
12232
|
-
|
|
12342
|
+
playerMuted,
|
|
12233
12343
|
muted,
|
|
12234
12344
|
nativeProps,
|
|
12235
12345
|
preloadedSrc,
|
|
@@ -12626,6 +12736,15 @@ var solidSchema = {
|
|
|
12626
12736
|
description: "Height",
|
|
12627
12737
|
hiddenFromList: false
|
|
12628
12738
|
},
|
|
12739
|
+
pixelDensity: {
|
|
12740
|
+
type: "number",
|
|
12741
|
+
min: 1,
|
|
12742
|
+
max: 3,
|
|
12743
|
+
step: 0.1,
|
|
12744
|
+
default: 1,
|
|
12745
|
+
description: "Pixel density",
|
|
12746
|
+
hiddenFromList: false
|
|
12747
|
+
},
|
|
12629
12748
|
...transformSchema
|
|
12630
12749
|
};
|
|
12631
12750
|
var SolidInner = ({
|
|
@@ -12742,6 +12861,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12742
12861
|
style,
|
|
12743
12862
|
name,
|
|
12744
12863
|
from,
|
|
12864
|
+
trimBefore,
|
|
12745
12865
|
freeze,
|
|
12746
12866
|
hidden,
|
|
12747
12867
|
showInTimeline,
|
|
@@ -12756,6 +12876,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12756
12876
|
return /* @__PURE__ */ jsx24(Sequence, {
|
|
12757
12877
|
layout: "none",
|
|
12758
12878
|
from,
|
|
12879
|
+
trimBefore,
|
|
12759
12880
|
freeze,
|
|
12760
12881
|
hidden,
|
|
12761
12882
|
showInTimeline,
|
|
@@ -12913,10 +13034,6 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
12913
13034
|
if (!placeholderCanvas) {
|
|
12914
13035
|
throw new Error("Canvas not found");
|
|
12915
13036
|
}
|
|
12916
|
-
const offscreen2d = offscreen.getContext("2d");
|
|
12917
|
-
if (!offscreen2d) {
|
|
12918
|
-
throw new Error("Failed to acquire 2D context for <HtmlInCanvas> offscreen canvas");
|
|
12919
|
-
}
|
|
12920
13037
|
const handle = delayRender("onPaint");
|
|
12921
13038
|
if (!initializedRef.current) {
|
|
12922
13039
|
initializedRef.current = true;
|
|
@@ -13101,6 +13218,15 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13101
13218
|
HtmlInCanvasInner.displayName = "HtmlInCanvas";
|
|
13102
13219
|
var htmlInCanvasSchema = {
|
|
13103
13220
|
...baseSchema,
|
|
13221
|
+
pixelDensity: {
|
|
13222
|
+
type: "number",
|
|
13223
|
+
min: 1,
|
|
13224
|
+
max: 3,
|
|
13225
|
+
step: 0.1,
|
|
13226
|
+
default: 1,
|
|
13227
|
+
description: "Pixel density",
|
|
13228
|
+
hiddenFromList: false
|
|
13229
|
+
},
|
|
13104
13230
|
...transformSchema
|
|
13105
13231
|
};
|
|
13106
13232
|
var HtmlInCanvasWrapped = withInteractivitySchema({
|
|
@@ -13418,6 +13544,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13418
13544
|
delayRenderTimeoutInMilliseconds,
|
|
13419
13545
|
durationInFrames,
|
|
13420
13546
|
from,
|
|
13547
|
+
trimBefore,
|
|
13421
13548
|
freeze,
|
|
13422
13549
|
hidden,
|
|
13423
13550
|
name,
|
|
@@ -13439,6 +13566,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13439
13566
|
return /* @__PURE__ */ jsx26(Sequence, {
|
|
13440
13567
|
layout: "none",
|
|
13441
13568
|
from: from ?? 0,
|
|
13569
|
+
trimBefore,
|
|
13442
13570
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13443
13571
|
freeze,
|
|
13444
13572
|
hidden,
|
|
@@ -13675,6 +13803,7 @@ var NativeImgInner = ({
|
|
|
13675
13803
|
showInTimeline,
|
|
13676
13804
|
src,
|
|
13677
13805
|
from,
|
|
13806
|
+
trimBefore,
|
|
13678
13807
|
durationInFrames,
|
|
13679
13808
|
freeze,
|
|
13680
13809
|
controls,
|
|
@@ -13687,6 +13816,7 @@ var NativeImgInner = ({
|
|
|
13687
13816
|
return /* @__PURE__ */ jsx28(Sequence, {
|
|
13688
13817
|
layout: "none",
|
|
13689
13818
|
from: from ?? 0,
|
|
13819
|
+
trimBefore,
|
|
13690
13820
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13691
13821
|
freeze,
|
|
13692
13822
|
_remotionInternalStack: stack,
|
|
@@ -13760,6 +13890,7 @@ var ImgInner = ({
|
|
|
13760
13890
|
showInTimeline,
|
|
13761
13891
|
src,
|
|
13762
13892
|
from,
|
|
13893
|
+
trimBefore,
|
|
13763
13894
|
durationInFrames,
|
|
13764
13895
|
freeze,
|
|
13765
13896
|
controls,
|
|
@@ -13785,6 +13916,7 @@ var ImgInner = ({
|
|
|
13785
13916
|
showInTimeline,
|
|
13786
13917
|
src,
|
|
13787
13918
|
from,
|
|
13919
|
+
trimBefore,
|
|
13788
13920
|
durationInFrames,
|
|
13789
13921
|
freeze,
|
|
13790
13922
|
controls,
|
|
@@ -13827,6 +13959,7 @@ var ImgInner = ({
|
|
|
13827
13959
|
delayRenderRetries,
|
|
13828
13960
|
delayRenderTimeoutInMilliseconds,
|
|
13829
13961
|
from,
|
|
13962
|
+
trimBefore,
|
|
13830
13963
|
durationInFrames,
|
|
13831
13964
|
freeze,
|
|
13832
13965
|
hidden,
|
|
@@ -13849,7 +13982,8 @@ var Img = withInteractivitySchema({
|
|
|
13849
13982
|
addSequenceStackTraces(Img);
|
|
13850
13983
|
var interactiveElementSchema = {
|
|
13851
13984
|
...baseSchema,
|
|
13852
|
-
...transformSchema
|
|
13985
|
+
...transformSchema,
|
|
13986
|
+
...textSchema
|
|
13853
13987
|
};
|
|
13854
13988
|
var setRef = (ref, value) => {
|
|
13855
13989
|
if (typeof ref === "function") {
|
|
@@ -13863,6 +13997,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13863
13997
|
const {
|
|
13864
13998
|
durationInFrames,
|
|
13865
13999
|
from,
|
|
14000
|
+
trimBefore,
|
|
13866
14001
|
freeze,
|
|
13867
14002
|
hidden,
|
|
13868
14003
|
name,
|
|
@@ -13879,6 +14014,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13879
14014
|
return /* @__PURE__ */ jsx29(Sequence, {
|
|
13880
14015
|
layout: "none",
|
|
13881
14016
|
from: from ?? 0,
|
|
14017
|
+
trimBefore,
|
|
13882
14018
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13883
14019
|
freeze,
|
|
13884
14020
|
hidden,
|
|
@@ -13909,6 +14045,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13909
14045
|
var Interactive = {
|
|
13910
14046
|
baseSchema,
|
|
13911
14047
|
transformSchema,
|
|
14048
|
+
textSchema,
|
|
13912
14049
|
premountSchema,
|
|
13913
14050
|
sequenceSchema,
|
|
13914
14051
|
withSchema: withInteractivitySchema,
|
|
@@ -14738,7 +14875,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14738
14875
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
14739
14876
|
}
|
|
14740
14877
|
const [mediaVolume] = useMediaVolumeState();
|
|
14741
|
-
const [
|
|
14878
|
+
const [playerMuted] = usePlayerMutedState();
|
|
14742
14879
|
const userPreferredVolume = evaluateVolume({
|
|
14743
14880
|
frame: volumePropFrame,
|
|
14744
14881
|
volume,
|
|
@@ -14894,7 +15031,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14894
15031
|
return /* @__PURE__ */ jsx34("video", {
|
|
14895
15032
|
...nativeProps,
|
|
14896
15033
|
ref: videoRef,
|
|
14897
|
-
muted: muted ||
|
|
15034
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
14898
15035
|
playsInline: true,
|
|
14899
15036
|
src: actualSrc,
|
|
14900
15037
|
loop: _remotionInternalNativeLoopPassed,
|
|
@@ -15185,6 +15322,7 @@ var Internals = {
|
|
|
15185
15322
|
sequenceStyleSchema,
|
|
15186
15323
|
sequenceVisualStyleSchema,
|
|
15187
15324
|
sequencePremountSchema,
|
|
15325
|
+
textSchema,
|
|
15188
15326
|
transformSchema,
|
|
15189
15327
|
premountSchema,
|
|
15190
15328
|
flattenActiveSchema,
|
|
@@ -15194,7 +15332,7 @@ var Internals = {
|
|
|
15194
15332
|
useVideo,
|
|
15195
15333
|
getRoot,
|
|
15196
15334
|
useMediaVolumeState,
|
|
15197
|
-
|
|
15335
|
+
usePlayerMutedState,
|
|
15198
15336
|
useMediaInTimeline,
|
|
15199
15337
|
useLazyComponent,
|
|
15200
15338
|
truthy,
|
|
@@ -16137,6 +16275,7 @@ var RenderSvg = ({
|
|
|
16137
16275
|
pixelDensity,
|
|
16138
16276
|
durationInFrames,
|
|
16139
16277
|
from,
|
|
16278
|
+
trimBefore,
|
|
16140
16279
|
freeze,
|
|
16141
16280
|
hidden,
|
|
16142
16281
|
name,
|
|
@@ -16246,6 +16385,7 @@ var RenderSvg = ({
|
|
|
16246
16385
|
return /* @__PURE__ */ jsx40(Sequence, {
|
|
16247
16386
|
layout: "none",
|
|
16248
16387
|
from,
|
|
16388
|
+
trimBefore,
|
|
16249
16389
|
freeze,
|
|
16250
16390
|
hidden,
|
|
16251
16391
|
showInTimeline,
|