@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
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,
|
|
@@ -8446,6 +8526,7 @@ var mergeValues = ({
|
|
|
8446
8526
|
var stackToOverrideMap = {};
|
|
8447
8527
|
var withInteractivitySchema = ({
|
|
8448
8528
|
Component,
|
|
8529
|
+
componentName,
|
|
8449
8530
|
componentIdentity,
|
|
8450
8531
|
schema,
|
|
8451
8532
|
supportsEffects
|
|
@@ -8494,7 +8575,8 @@ var withInteractivitySchema = ({
|
|
|
8494
8575
|
currentRuntimeValueDotNotation,
|
|
8495
8576
|
overrideId,
|
|
8496
8577
|
supportsEffects,
|
|
8497
|
-
componentIdentity
|
|
8578
|
+
componentIdentity,
|
|
8579
|
+
componentName
|
|
8498
8580
|
};
|
|
8499
8581
|
}, [currentRuntimeValueDotNotation, overrideId]);
|
|
8500
8582
|
const { merged: valuesDotNotation, propsToDelete } = useMemo13(() => {
|
|
@@ -8531,6 +8613,7 @@ var withInteractivitySchema = ({
|
|
|
8531
8613
|
var EMPTY_EFFECTS = [];
|
|
8532
8614
|
var RegularSequenceRefForwardingFunction = ({
|
|
8533
8615
|
from = 0,
|
|
8616
|
+
trimBefore = 0,
|
|
8534
8617
|
freeze,
|
|
8535
8618
|
durationInFrames = Infinity,
|
|
8536
8619
|
children,
|
|
@@ -8555,7 +8638,6 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8555
8638
|
const parentSequence = useContext17(SequenceContext);
|
|
8556
8639
|
const { rootId } = useTimelineContext();
|
|
8557
8640
|
const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8558
|
-
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + from;
|
|
8559
8641
|
const nonce = useNonce();
|
|
8560
8642
|
if (layout !== "absolute-fill" && layout !== "none") {
|
|
8561
8643
|
throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${layout}`);
|
|
@@ -8575,6 +8657,18 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8575
8657
|
if (!Number.isFinite(from)) {
|
|
8576
8658
|
throw new TypeError(`The "from" prop of a sequence must be finite, but got ${from}.`);
|
|
8577
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
|
+
}
|
|
8578
8672
|
if (typeof freeze !== "undefined" && freeze !== null) {
|
|
8579
8673
|
if (typeof freeze !== "number") {
|
|
8580
8674
|
throw new TypeError(`The "freeze" prop of <Sequence /> must be a number, but is of type ${typeof freeze}.`);
|
|
@@ -8588,7 +8682,9 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8588
8682
|
}
|
|
8589
8683
|
const absoluteFrame = useTimelinePosition();
|
|
8590
8684
|
const videoConfig = useVideoConfig();
|
|
8591
|
-
const
|
|
8685
|
+
const effectiveRelativeFrom = from - trimBefore;
|
|
8686
|
+
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
|
|
8687
|
+
const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
|
|
8592
8688
|
const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
|
|
8593
8689
|
const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
|
|
8594
8690
|
const wrapperRefForOutline = useRef6(null);
|
|
@@ -8599,7 +8695,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8599
8695
|
const postmounting = useMemo14(() => {
|
|
8600
8696
|
return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
|
|
8601
8697
|
}, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
|
|
8602
|
-
const currentSequenceStart = cumulatedFrom +
|
|
8698
|
+
const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
|
|
8603
8699
|
const parentSequenceStart = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8604
8700
|
const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
|
|
8605
8701
|
const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
|
|
@@ -8608,7 +8704,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8608
8704
|
return {
|
|
8609
8705
|
absoluteFrom,
|
|
8610
8706
|
cumulatedFrom,
|
|
8611
|
-
relativeFrom:
|
|
8707
|
+
relativeFrom: effectiveRelativeFrom,
|
|
8612
8708
|
cumulatedNegativeFrom,
|
|
8613
8709
|
durationInFrames: actualDurationInFrames,
|
|
8614
8710
|
parentFrom: parentSequence?.relativeFrom ?? 0,
|
|
@@ -8623,7 +8719,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8623
8719
|
}, [
|
|
8624
8720
|
cumulatedFrom,
|
|
8625
8721
|
absoluteFrom,
|
|
8626
|
-
|
|
8722
|
+
effectiveRelativeFrom,
|
|
8627
8723
|
actualDurationInFrames,
|
|
8628
8724
|
parentSequence,
|
|
8629
8725
|
id,
|
|
@@ -8645,6 +8741,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8645
8741
|
const stackRef = useRef6(null);
|
|
8646
8742
|
stackRef.current = stack ?? inheritedStack;
|
|
8647
8743
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
8744
|
+
const registeredTrimBefore = trimBefore === 0 ? null : trimBefore;
|
|
8648
8745
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
8649
8746
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
8650
8747
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
@@ -8663,6 +8760,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8663
8760
|
documentationLink: resolvedDocumentationLink,
|
|
8664
8761
|
duration: actualDurationInFrames,
|
|
8665
8762
|
from,
|
|
8763
|
+
trimBefore: registeredTrimBefore,
|
|
8666
8764
|
id,
|
|
8667
8765
|
loopDisplay,
|
|
8668
8766
|
nonce: nonce.get(),
|
|
@@ -8687,6 +8785,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8687
8785
|
doesVolumeChange: isMedia.data.doesVolumeChange,
|
|
8688
8786
|
duration: actualDurationInFrames,
|
|
8689
8787
|
from,
|
|
8788
|
+
trimBefore: registeredTrimBefore,
|
|
8690
8789
|
id,
|
|
8691
8790
|
loopDisplay,
|
|
8692
8791
|
nonce: nonce.get(),
|
|
@@ -8712,6 +8811,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8712
8811
|
}
|
|
8713
8812
|
registerSequence({
|
|
8714
8813
|
from,
|
|
8814
|
+
trimBefore: registeredTrimBefore,
|
|
8715
8815
|
duration: actualDurationInFrames,
|
|
8716
8816
|
id,
|
|
8717
8817
|
displayName: timelineClipName,
|
|
@@ -8745,6 +8845,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8745
8845
|
actualDurationInFrames,
|
|
8746
8846
|
rootId,
|
|
8747
8847
|
from,
|
|
8848
|
+
trimBefore,
|
|
8849
|
+
registeredTrimBefore,
|
|
8748
8850
|
showInTimeline,
|
|
8749
8851
|
nonce,
|
|
8750
8852
|
loopDisplay,
|
|
@@ -8876,12 +8978,14 @@ var SequenceInner = forwardRef3(SequenceRefForwardingFunction);
|
|
|
8876
8978
|
var SequenceWithoutSchema = SequenceInner;
|
|
8877
8979
|
var Sequence = withInteractivitySchema({
|
|
8878
8980
|
Component: SequenceInner,
|
|
8981
|
+
componentName: "<Sequence>",
|
|
8879
8982
|
componentIdentity: "dev.remotion.remotion.Sequence",
|
|
8880
8983
|
schema: sequenceSchema,
|
|
8881
8984
|
supportsEffects: false
|
|
8882
8985
|
});
|
|
8883
8986
|
var SequenceWithoutFrom = withInteractivitySchema({
|
|
8884
8987
|
Component: SequenceInner,
|
|
8988
|
+
componentName: "<Sequence>",
|
|
8885
8989
|
componentIdentity: null,
|
|
8886
8990
|
schema: sequenceSchemaWithoutFrom,
|
|
8887
8991
|
supportsEffects: false
|
|
@@ -9618,6 +9722,7 @@ var AnimatedImageInner = ({
|
|
|
9618
9722
|
};
|
|
9619
9723
|
var AnimatedImage = withInteractivitySchema({
|
|
9620
9724
|
Component: AnimatedImageInner,
|
|
9725
|
+
componentName: "<AnimatedImage>",
|
|
9621
9726
|
componentIdentity: "dev.remotion.remotion.AnimatedImage",
|
|
9622
9727
|
schema: animatedImageSchema,
|
|
9623
9728
|
supportsEffects: true
|
|
@@ -10009,13 +10114,15 @@ var prefetch = (src, options) => {
|
|
|
10009
10114
|
resolve = res;
|
|
10010
10115
|
reject = rej;
|
|
10011
10116
|
});
|
|
10117
|
+
waitUntilDone.catch(() => {
|
|
10118
|
+
return;
|
|
10119
|
+
});
|
|
10012
10120
|
const controller = new AbortController;
|
|
10013
|
-
let
|
|
10121
|
+
let reader = null;
|
|
10014
10122
|
fetch(srcWithoutHash, {
|
|
10015
10123
|
signal: controller.signal,
|
|
10016
10124
|
credentials: options?.credentials ?? undefined
|
|
10017
10125
|
}).then((res) => {
|
|
10018
|
-
canBeAborted = false;
|
|
10019
10126
|
if (canceled) {
|
|
10020
10127
|
return null;
|
|
10021
10128
|
}
|
|
@@ -10031,15 +10138,16 @@ var prefetch = (src, options) => {
|
|
|
10031
10138
|
if (!res.body) {
|
|
10032
10139
|
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
10033
10140
|
}
|
|
10034
|
-
const
|
|
10141
|
+
const responseReader = res.body.getReader();
|
|
10142
|
+
reader = responseReader;
|
|
10035
10143
|
return getBlobFromReader({
|
|
10036
|
-
reader,
|
|
10144
|
+
reader: responseReader,
|
|
10037
10145
|
contentType: options?.contentType ?? headerContentType ?? null,
|
|
10038
10146
|
contentLength: res.headers.get("Content-Length") ? parseInt(res.headers.get("Content-Length"), 10) : null,
|
|
10039
10147
|
onProgress: options?.onProgress
|
|
10040
10148
|
});
|
|
10041
10149
|
}).then((buf) => {
|
|
10042
|
-
if (!buf) {
|
|
10150
|
+
if (!buf || canceled) {
|
|
10043
10151
|
return;
|
|
10044
10152
|
}
|
|
10045
10153
|
const actualBlob = options?.contentType ? new Blob([buf], { type: options.contentType }) : buf;
|
|
@@ -10087,12 +10195,18 @@ var prefetch = (src, options) => {
|
|
|
10087
10195
|
return copy;
|
|
10088
10196
|
});
|
|
10089
10197
|
} else {
|
|
10090
|
-
canceled
|
|
10091
|
-
|
|
10092
|
-
try {
|
|
10093
|
-
controller.abort(new Error("free() called"));
|
|
10094
|
-
} catch {}
|
|
10198
|
+
if (canceled) {
|
|
10199
|
+
return;
|
|
10095
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
|
+
});
|
|
10096
10210
|
}
|
|
10097
10211
|
},
|
|
10098
10212
|
waitUntilDone: () => {
|
|
@@ -11264,6 +11378,7 @@ var useMediaInTimeline = ({
|
|
|
11264
11378
|
id,
|
|
11265
11379
|
duration,
|
|
11266
11380
|
from: 0,
|
|
11381
|
+
trimBefore: null,
|
|
11267
11382
|
parent: parentSequence?.id ?? null,
|
|
11268
11383
|
displayName: finalDisplayName,
|
|
11269
11384
|
documentationLink,
|
|
@@ -12126,11 +12241,11 @@ var useMediaTag = ({
|
|
|
12126
12241
|
]);
|
|
12127
12242
|
};
|
|
12128
12243
|
var MediaVolumeContext = createContext22({
|
|
12129
|
-
|
|
12244
|
+
playerMuted: false,
|
|
12130
12245
|
mediaVolume: 1
|
|
12131
12246
|
});
|
|
12132
12247
|
var SetMediaVolumeContext = createContext22({
|
|
12133
|
-
|
|
12248
|
+
setPlayerMuted: () => {
|
|
12134
12249
|
throw new Error("default");
|
|
12135
12250
|
},
|
|
12136
12251
|
setMediaVolume: () => {
|
|
@@ -12144,12 +12259,12 @@ var useMediaVolumeState = () => {
|
|
|
12144
12259
|
return [mediaVolume, setMediaVolume];
|
|
12145
12260
|
}, [mediaVolume, setMediaVolume]);
|
|
12146
12261
|
};
|
|
12147
|
-
var
|
|
12148
|
-
const {
|
|
12149
|
-
const {
|
|
12262
|
+
var usePlayerMutedState = () => {
|
|
12263
|
+
const { playerMuted } = useContext27(MediaVolumeContext);
|
|
12264
|
+
const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
|
|
12150
12265
|
return useMemo26(() => {
|
|
12151
|
-
return [
|
|
12152
|
-
}, [
|
|
12266
|
+
return [playerMuted, setPlayerMuted];
|
|
12267
|
+
}, [playerMuted, setPlayerMuted]);
|
|
12153
12268
|
};
|
|
12154
12269
|
var warnAboutTooHighVolume = (volume) => {
|
|
12155
12270
|
if (volume >= 100) {
|
|
@@ -12195,7 +12310,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12195
12310
|
throw new Error("typecheck error");
|
|
12196
12311
|
}
|
|
12197
12312
|
const [mediaVolume] = useMediaVolumeState();
|
|
12198
|
-
const [
|
|
12313
|
+
const [playerMuted] = usePlayerMutedState();
|
|
12199
12314
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
12200
12315
|
if (!src) {
|
|
12201
12316
|
throw new TypeError("No 'src' was passed to <Html5Audio>.");
|
|
@@ -12216,7 +12331,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12216
12331
|
});
|
|
12217
12332
|
const propsToPass = useMemo27(() => {
|
|
12218
12333
|
return {
|
|
12219
|
-
muted: muted ||
|
|
12334
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
12220
12335
|
src: preloadedSrc,
|
|
12221
12336
|
loop: _remotionInternalNativeLoopPassed,
|
|
12222
12337
|
crossOrigin: crossOriginValue,
|
|
@@ -12224,7 +12339,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12224
12339
|
};
|
|
12225
12340
|
}, [
|
|
12226
12341
|
_remotionInternalNativeLoopPassed,
|
|
12227
|
-
|
|
12342
|
+
playerMuted,
|
|
12228
12343
|
muted,
|
|
12229
12344
|
nativeProps,
|
|
12230
12345
|
preloadedSrc,
|
|
@@ -12621,6 +12736,15 @@ var solidSchema = {
|
|
|
12621
12736
|
description: "Height",
|
|
12622
12737
|
hiddenFromList: false
|
|
12623
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
|
+
},
|
|
12624
12748
|
...transformSchema
|
|
12625
12749
|
};
|
|
12626
12750
|
var SolidInner = ({
|
|
@@ -12737,6 +12861,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12737
12861
|
style,
|
|
12738
12862
|
name,
|
|
12739
12863
|
from,
|
|
12864
|
+
trimBefore,
|
|
12740
12865
|
freeze,
|
|
12741
12866
|
hidden,
|
|
12742
12867
|
showInTimeline,
|
|
@@ -12751,6 +12876,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12751
12876
|
return /* @__PURE__ */ jsx24(Sequence, {
|
|
12752
12877
|
layout: "none",
|
|
12753
12878
|
from,
|
|
12879
|
+
trimBefore,
|
|
12754
12880
|
freeze,
|
|
12755
12881
|
hidden,
|
|
12756
12882
|
showInTimeline,
|
|
@@ -12776,6 +12902,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12776
12902
|
});
|
|
12777
12903
|
var Solid = withInteractivitySchema({
|
|
12778
12904
|
Component: SolidOuter,
|
|
12905
|
+
componentName: "<Solid>",
|
|
12779
12906
|
componentIdentity: "dev.remotion.remotion.Solid",
|
|
12780
12907
|
schema: solidSchema,
|
|
12781
12908
|
supportsEffects: true
|
|
@@ -12907,10 +13034,6 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
12907
13034
|
if (!placeholderCanvas) {
|
|
12908
13035
|
throw new Error("Canvas not found");
|
|
12909
13036
|
}
|
|
12910
|
-
const offscreen2d = offscreen.getContext("2d");
|
|
12911
|
-
if (!offscreen2d) {
|
|
12912
|
-
throw new Error("Failed to acquire 2D context for <HtmlInCanvas> offscreen canvas");
|
|
12913
|
-
}
|
|
12914
13037
|
const handle = delayRender("onPaint");
|
|
12915
13038
|
if (!initializedRef.current) {
|
|
12916
13039
|
initializedRef.current = true;
|
|
@@ -13095,10 +13218,20 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
13095
13218
|
HtmlInCanvasInner.displayName = "HtmlInCanvas";
|
|
13096
13219
|
var htmlInCanvasSchema = {
|
|
13097
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
|
+
},
|
|
13098
13230
|
...transformSchema
|
|
13099
13231
|
};
|
|
13100
13232
|
var HtmlInCanvasWrapped = withInteractivitySchema({
|
|
13101
13233
|
Component: HtmlInCanvasInner,
|
|
13234
|
+
componentName: "<HtmlInCanvas>",
|
|
13102
13235
|
componentIdentity: "dev.remotion.remotion.HtmlInCanvas",
|
|
13103
13236
|
schema: htmlInCanvasSchema,
|
|
13104
13237
|
supportsEffects: true
|
|
@@ -13411,6 +13544,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13411
13544
|
delayRenderTimeoutInMilliseconds,
|
|
13412
13545
|
durationInFrames,
|
|
13413
13546
|
from,
|
|
13547
|
+
trimBefore,
|
|
13414
13548
|
freeze,
|
|
13415
13549
|
hidden,
|
|
13416
13550
|
name,
|
|
@@ -13432,6 +13566,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13432
13566
|
return /* @__PURE__ */ jsx26(Sequence, {
|
|
13433
13567
|
layout: "none",
|
|
13434
13568
|
from: from ?? 0,
|
|
13569
|
+
trimBefore,
|
|
13435
13570
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13436
13571
|
freeze,
|
|
13437
13572
|
hidden,
|
|
@@ -13466,6 +13601,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13466
13601
|
});
|
|
13467
13602
|
var CanvasImage = withInteractivitySchema({
|
|
13468
13603
|
Component: CanvasImageInner,
|
|
13604
|
+
componentName: "<CanvasImage>",
|
|
13469
13605
|
componentIdentity: "dev.remotion.remotion.CanvasImage",
|
|
13470
13606
|
schema: canvasImageSchema,
|
|
13471
13607
|
supportsEffects: true
|
|
@@ -13667,6 +13803,7 @@ var NativeImgInner = ({
|
|
|
13667
13803
|
showInTimeline,
|
|
13668
13804
|
src,
|
|
13669
13805
|
from,
|
|
13806
|
+
trimBefore,
|
|
13670
13807
|
durationInFrames,
|
|
13671
13808
|
freeze,
|
|
13672
13809
|
controls,
|
|
@@ -13679,6 +13816,7 @@ var NativeImgInner = ({
|
|
|
13679
13816
|
return /* @__PURE__ */ jsx28(Sequence, {
|
|
13680
13817
|
layout: "none",
|
|
13681
13818
|
from: from ?? 0,
|
|
13819
|
+
trimBefore,
|
|
13682
13820
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13683
13821
|
freeze,
|
|
13684
13822
|
_remotionInternalStack: stack,
|
|
@@ -13752,6 +13890,7 @@ var ImgInner = ({
|
|
|
13752
13890
|
showInTimeline,
|
|
13753
13891
|
src,
|
|
13754
13892
|
from,
|
|
13893
|
+
trimBefore,
|
|
13755
13894
|
durationInFrames,
|
|
13756
13895
|
freeze,
|
|
13757
13896
|
controls,
|
|
@@ -13777,6 +13916,7 @@ var ImgInner = ({
|
|
|
13777
13916
|
showInTimeline,
|
|
13778
13917
|
src,
|
|
13779
13918
|
from,
|
|
13919
|
+
trimBefore,
|
|
13780
13920
|
durationInFrames,
|
|
13781
13921
|
freeze,
|
|
13782
13922
|
controls,
|
|
@@ -13819,6 +13959,7 @@ var ImgInner = ({
|
|
|
13819
13959
|
delayRenderRetries,
|
|
13820
13960
|
delayRenderTimeoutInMilliseconds,
|
|
13821
13961
|
from,
|
|
13962
|
+
trimBefore,
|
|
13822
13963
|
durationInFrames,
|
|
13823
13964
|
freeze,
|
|
13824
13965
|
hidden,
|
|
@@ -13833,6 +13974,7 @@ var ImgInner = ({
|
|
|
13833
13974
|
};
|
|
13834
13975
|
var Img = withInteractivitySchema({
|
|
13835
13976
|
Component: ImgInner,
|
|
13977
|
+
componentName: "<Img>",
|
|
13836
13978
|
componentIdentity: "dev.remotion.remotion.Img",
|
|
13837
13979
|
schema: imgSchema,
|
|
13838
13980
|
supportsEffects: true
|
|
@@ -13840,7 +13982,8 @@ var Img = withInteractivitySchema({
|
|
|
13840
13982
|
addSequenceStackTraces(Img);
|
|
13841
13983
|
var interactiveElementSchema = {
|
|
13842
13984
|
...baseSchema,
|
|
13843
|
-
...transformSchema
|
|
13985
|
+
...transformSchema,
|
|
13986
|
+
...textSchema
|
|
13844
13987
|
};
|
|
13845
13988
|
var setRef = (ref, value) => {
|
|
13846
13989
|
if (typeof ref === "function") {
|
|
@@ -13854,6 +13997,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13854
13997
|
const {
|
|
13855
13998
|
durationInFrames,
|
|
13856
13999
|
from,
|
|
14000
|
+
trimBefore,
|
|
13857
14001
|
freeze,
|
|
13858
14002
|
hidden,
|
|
13859
14003
|
name,
|
|
@@ -13870,6 +14014,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13870
14014
|
return /* @__PURE__ */ jsx29(Sequence, {
|
|
13871
14015
|
layout: "none",
|
|
13872
14016
|
from: from ?? 0,
|
|
14017
|
+
trimBefore,
|
|
13873
14018
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13874
14019
|
freeze,
|
|
13875
14020
|
hidden,
|
|
@@ -13888,6 +14033,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13888
14033
|
Inner.displayName = displayName;
|
|
13889
14034
|
const Wrapped = withInteractivitySchema({
|
|
13890
14035
|
Component: Inner,
|
|
14036
|
+
componentName: displayName,
|
|
13891
14037
|
componentIdentity: `dev.remotion.remotion.${displayName.slice(1, -1)}`,
|
|
13892
14038
|
schema: interactiveElementSchema,
|
|
13893
14039
|
supportsEffects: false
|
|
@@ -13899,6 +14045,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13899
14045
|
var Interactive = {
|
|
13900
14046
|
baseSchema,
|
|
13901
14047
|
transformSchema,
|
|
14048
|
+
textSchema,
|
|
13902
14049
|
premountSchema,
|
|
13903
14050
|
sequenceSchema,
|
|
13904
14051
|
withSchema: withInteractivitySchema,
|
|
@@ -14728,7 +14875,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14728
14875
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
14729
14876
|
}
|
|
14730
14877
|
const [mediaVolume] = useMediaVolumeState();
|
|
14731
|
-
const [
|
|
14878
|
+
const [playerMuted] = usePlayerMutedState();
|
|
14732
14879
|
const userPreferredVolume = evaluateVolume({
|
|
14733
14880
|
frame: volumePropFrame,
|
|
14734
14881
|
volume,
|
|
@@ -14884,7 +15031,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14884
15031
|
return /* @__PURE__ */ jsx34("video", {
|
|
14885
15032
|
...nativeProps,
|
|
14886
15033
|
ref: videoRef,
|
|
14887
|
-
muted: muted ||
|
|
15034
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
14888
15035
|
playsInline: true,
|
|
14889
15036
|
src: actualSrc,
|
|
14890
15037
|
loop: _remotionInternalNativeLoopPassed,
|
|
@@ -15175,6 +15322,7 @@ var Internals = {
|
|
|
15175
15322
|
sequenceStyleSchema,
|
|
15176
15323
|
sequenceVisualStyleSchema,
|
|
15177
15324
|
sequencePremountSchema,
|
|
15325
|
+
textSchema,
|
|
15178
15326
|
transformSchema,
|
|
15179
15327
|
premountSchema,
|
|
15180
15328
|
flattenActiveSchema,
|
|
@@ -15184,7 +15332,7 @@ var Internals = {
|
|
|
15184
15332
|
useVideo,
|
|
15185
15333
|
getRoot,
|
|
15186
15334
|
useMediaVolumeState,
|
|
15187
|
-
|
|
15335
|
+
usePlayerMutedState,
|
|
15188
15336
|
useMediaInTimeline,
|
|
15189
15337
|
useLazyComponent,
|
|
15190
15338
|
truthy,
|
|
@@ -15378,6 +15526,7 @@ var SeriesInner = (props2) => {
|
|
|
15378
15526
|
};
|
|
15379
15527
|
var Series = Object.assign(withInteractivitySchema({
|
|
15380
15528
|
Component: SeriesInner,
|
|
15529
|
+
componentName: "<Series>",
|
|
15381
15530
|
componentIdentity: "dev.remotion.remotion.Series",
|
|
15382
15531
|
schema: sequenceSchemaDefaultLayoutNone,
|
|
15383
15532
|
supportsEffects: false
|
|
@@ -16126,6 +16275,7 @@ var RenderSvg = ({
|
|
|
16126
16275
|
pixelDensity,
|
|
16127
16276
|
durationInFrames,
|
|
16128
16277
|
from,
|
|
16278
|
+
trimBefore,
|
|
16129
16279
|
freeze,
|
|
16130
16280
|
hidden,
|
|
16131
16281
|
name,
|
|
@@ -16235,6 +16385,7 @@ var RenderSvg = ({
|
|
|
16235
16385
|
return /* @__PURE__ */ jsx40(Sequence, {
|
|
16236
16386
|
layout: "none",
|
|
16237
16387
|
from,
|
|
16388
|
+
trimBefore,
|
|
16238
16389
|
freeze,
|
|
16239
16390
|
hidden,
|
|
16240
16391
|
showInTimeline,
|
|
@@ -16366,6 +16517,7 @@ var ArrowInner = ({
|
|
|
16366
16517
|
};
|
|
16367
16518
|
var Arrow = Interactive.withSchema({
|
|
16368
16519
|
Component: ArrowInner,
|
|
16520
|
+
componentName: "<Arrow>",
|
|
16369
16521
|
componentIdentity: "dev.remotion.shapes.Arrow",
|
|
16370
16522
|
schema: arrowSchema,
|
|
16371
16523
|
supportsEffects: true
|
|
@@ -16790,6 +16942,7 @@ var CalloutInner = ({
|
|
|
16790
16942
|
};
|
|
16791
16943
|
var Callout = Interactive.withSchema({
|
|
16792
16944
|
Component: CalloutInner,
|
|
16945
|
+
componentName: "<Callout>",
|
|
16793
16946
|
componentIdentity: "dev.remotion.shapes.Callout",
|
|
16794
16947
|
schema: calloutSchema,
|
|
16795
16948
|
supportsEffects: true
|
|
@@ -16852,6 +17005,7 @@ var CircleInner = ({ radius, ...props }) => {
|
|
|
16852
17005
|
};
|
|
16853
17006
|
var Circle = Interactive.withSchema({
|
|
16854
17007
|
Component: CircleInner,
|
|
17008
|
+
componentName: "<Circle>",
|
|
16855
17009
|
componentIdentity: "dev.remotion.shapes.Circle",
|
|
16856
17010
|
schema: circleSchema,
|
|
16857
17011
|
supportsEffects: true
|
|
@@ -16909,6 +17063,7 @@ var EllipseInner = ({ rx, ry, ...props }) => {
|
|
|
16909
17063
|
};
|
|
16910
17064
|
var Ellipse = Interactive.withSchema({
|
|
16911
17065
|
Component: EllipseInner,
|
|
17066
|
+
componentName: "<Ellipse>",
|
|
16912
17067
|
componentIdentity: "dev.remotion.shapes.Ellipse",
|
|
16913
17068
|
schema: ellipseSchema,
|
|
16914
17069
|
supportsEffects: true
|
|
@@ -17047,6 +17202,7 @@ var HeartInner = ({
|
|
|
17047
17202
|
};
|
|
17048
17203
|
var Heart = Interactive.withSchema({
|
|
17049
17204
|
Component: HeartInner,
|
|
17205
|
+
componentName: "<Heart>",
|
|
17050
17206
|
componentIdentity: "dev.remotion.shapes.Heart",
|
|
17051
17207
|
schema: heartSchema,
|
|
17052
17208
|
supportsEffects: true
|
|
@@ -17201,6 +17357,7 @@ var PieInner = ({
|
|
|
17201
17357
|
};
|
|
17202
17358
|
var Pie = Interactive.withSchema({
|
|
17203
17359
|
Component: PieInner,
|
|
17360
|
+
componentName: "<Pie>",
|
|
17204
17361
|
componentIdentity: "dev.remotion.shapes.Pie",
|
|
17205
17362
|
schema: pieSchema,
|
|
17206
17363
|
supportsEffects: true
|
|
@@ -17300,6 +17457,7 @@ var PolygonInner = ({
|
|
|
17300
17457
|
};
|
|
17301
17458
|
var Polygon = Interactive.withSchema({
|
|
17302
17459
|
Component: PolygonInner,
|
|
17460
|
+
componentName: "<Polygon>",
|
|
17303
17461
|
componentIdentity: "dev.remotion.shapes.Polygon",
|
|
17304
17462
|
schema: polygonSchema,
|
|
17305
17463
|
supportsEffects: true
|
|
@@ -17366,6 +17524,7 @@ var RectInner = ({
|
|
|
17366
17524
|
};
|
|
17367
17525
|
var Rect = Interactive.withSchema({
|
|
17368
17526
|
Component: RectInner,
|
|
17527
|
+
componentName: "<Rect>",
|
|
17369
17528
|
componentIdentity: "dev.remotion.shapes.Rect",
|
|
17370
17529
|
schema: rectSchema,
|
|
17371
17530
|
supportsEffects: true
|
|
@@ -17577,6 +17736,7 @@ var SparkInner = ({
|
|
|
17577
17736
|
};
|
|
17578
17737
|
var Spark = Interactive.withSchema({
|
|
17579
17738
|
Component: SparkInner,
|
|
17739
|
+
componentName: "<Spark>",
|
|
17580
17740
|
componentIdentity: "dev.remotion.shapes.Spark",
|
|
17581
17741
|
schema: sparkSchema,
|
|
17582
17742
|
supportsEffects: true
|
|
@@ -17687,6 +17847,7 @@ var StarInner = ({
|
|
|
17687
17847
|
};
|
|
17688
17848
|
var Star = Interactive.withSchema({
|
|
17689
17849
|
Component: StarInner,
|
|
17850
|
+
componentName: "<Star>",
|
|
17690
17851
|
componentIdentity: "dev.remotion.shapes.Star",
|
|
17691
17852
|
schema: starSchema,
|
|
17692
17853
|
supportsEffects: true
|
|
@@ -17793,6 +17954,7 @@ var TriangleInner = ({
|
|
|
17793
17954
|
};
|
|
17794
17955
|
var Triangle = Interactive.withSchema({
|
|
17795
17956
|
Component: TriangleInner,
|
|
17957
|
+
componentName: "<Triangle>",
|
|
17796
17958
|
componentIdentity: "dev.remotion.shapes.Triangle",
|
|
17797
17959
|
schema: triangleSchema,
|
|
17798
17960
|
supportsEffects: true
|