@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/homepage/Pricing.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,
|
|
@@ -8265,6 +8345,7 @@ var mergeValues = ({
|
|
|
8265
8345
|
var stackToOverrideMap = {};
|
|
8266
8346
|
var withInteractivitySchema = ({
|
|
8267
8347
|
Component,
|
|
8348
|
+
componentName,
|
|
8268
8349
|
componentIdentity,
|
|
8269
8350
|
schema,
|
|
8270
8351
|
supportsEffects
|
|
@@ -8313,7 +8394,8 @@ var withInteractivitySchema = ({
|
|
|
8313
8394
|
currentRuntimeValueDotNotation,
|
|
8314
8395
|
overrideId,
|
|
8315
8396
|
supportsEffects,
|
|
8316
|
-
componentIdentity
|
|
8397
|
+
componentIdentity,
|
|
8398
|
+
componentName
|
|
8317
8399
|
};
|
|
8318
8400
|
}, [currentRuntimeValueDotNotation, overrideId]);
|
|
8319
8401
|
const { merged: valuesDotNotation, propsToDelete } = useMemo13(() => {
|
|
@@ -8350,6 +8432,7 @@ var withInteractivitySchema = ({
|
|
|
8350
8432
|
var EMPTY_EFFECTS = [];
|
|
8351
8433
|
var RegularSequenceRefForwardingFunction = ({
|
|
8352
8434
|
from = 0,
|
|
8435
|
+
trimBefore = 0,
|
|
8353
8436
|
freeze,
|
|
8354
8437
|
durationInFrames = Infinity,
|
|
8355
8438
|
children,
|
|
@@ -8374,7 +8457,6 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8374
8457
|
const parentSequence = useContext17(SequenceContext);
|
|
8375
8458
|
const { rootId } = useTimelineContext();
|
|
8376
8459
|
const cumulatedFrom = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8377
|
-
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + from;
|
|
8378
8460
|
const nonce = useNonce();
|
|
8379
8461
|
if (layout !== "absolute-fill" && layout !== "none") {
|
|
8380
8462
|
throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${layout}`);
|
|
@@ -8394,6 +8476,18 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8394
8476
|
if (!Number.isFinite(from)) {
|
|
8395
8477
|
throw new TypeError(`The "from" prop of a sequence must be finite, but got ${from}.`);
|
|
8396
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
|
+
}
|
|
8397
8491
|
if (typeof freeze !== "undefined" && freeze !== null) {
|
|
8398
8492
|
if (typeof freeze !== "number") {
|
|
8399
8493
|
throw new TypeError(`The "freeze" prop of <Sequence /> must be a number, but is of type ${typeof freeze}.`);
|
|
@@ -8407,7 +8501,9 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8407
8501
|
}
|
|
8408
8502
|
const absoluteFrame = useTimelinePosition();
|
|
8409
8503
|
const videoConfig = useVideoConfig();
|
|
8410
|
-
const
|
|
8504
|
+
const effectiveRelativeFrom = from - trimBefore;
|
|
8505
|
+
const absoluteFrom = (parentSequence?.absoluteFrom ?? 0) + effectiveRelativeFrom;
|
|
8506
|
+
const parentSequenceDuration = parentSequence ? Math.min(parentSequence.durationInFrames - effectiveRelativeFrom, durationInFrames) : durationInFrames;
|
|
8411
8507
|
const actualDurationInFrames = Math.max(0, Math.min(videoConfig.durationInFrames - from, parentSequenceDuration));
|
|
8412
8508
|
const { registerSequence, unregisterSequence } = useContext17(SequenceManager);
|
|
8413
8509
|
const wrapperRefForOutline = useRef6(null);
|
|
@@ -8418,7 +8514,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8418
8514
|
const postmounting = useMemo14(() => {
|
|
8419
8515
|
return parentSequence?.postmounting || Boolean(other._remotionInternalIsPostmounting);
|
|
8420
8516
|
}, [other._remotionInternalIsPostmounting, parentSequence?.postmounting]);
|
|
8421
|
-
const currentSequenceStart = cumulatedFrom +
|
|
8517
|
+
const currentSequenceStart = cumulatedFrom + effectiveRelativeFrom;
|
|
8422
8518
|
const parentSequenceStart = parentSequence ? parentSequence.cumulatedFrom + parentSequence.relativeFrom : 0;
|
|
8423
8519
|
const parentFirstFrame = parentSequence ? parentSequenceStart - parentSequence.cumulatedNegativeFrom : 0;
|
|
8424
8520
|
const firstFrame = Math.max(0, parentFirstFrame, currentSequenceStart);
|
|
@@ -8427,7 +8523,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8427
8523
|
return {
|
|
8428
8524
|
absoluteFrom,
|
|
8429
8525
|
cumulatedFrom,
|
|
8430
|
-
relativeFrom:
|
|
8526
|
+
relativeFrom: effectiveRelativeFrom,
|
|
8431
8527
|
cumulatedNegativeFrom,
|
|
8432
8528
|
durationInFrames: actualDurationInFrames,
|
|
8433
8529
|
parentFrom: parentSequence?.relativeFrom ?? 0,
|
|
@@ -8442,7 +8538,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8442
8538
|
}, [
|
|
8443
8539
|
cumulatedFrom,
|
|
8444
8540
|
absoluteFrom,
|
|
8445
|
-
|
|
8541
|
+
effectiveRelativeFrom,
|
|
8446
8542
|
actualDurationInFrames,
|
|
8447
8543
|
parentSequence,
|
|
8448
8544
|
id,
|
|
@@ -8464,6 +8560,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8464
8560
|
const stackRef = useRef6(null);
|
|
8465
8561
|
stackRef.current = stack ?? inheritedStack;
|
|
8466
8562
|
const registeredFrozenFrame = typeof freeze === "number" ? freeze : null;
|
|
8563
|
+
const registeredTrimBefore = trimBefore === 0 ? null : trimBefore;
|
|
8467
8564
|
const parentCumulatedNegativeFrom = parentSequence?.cumulatedNegativeFrom ?? 0;
|
|
8468
8565
|
const startMediaFrom = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom - cumulatedNegativeFrom : null;
|
|
8469
8566
|
const mediaFrameAtSequenceZero = isMedia && isMedia.type !== "image" ? isMedia.data.startMediaFrom + parentCumulatedNegativeFrom : null;
|
|
@@ -8482,6 +8579,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8482
8579
|
documentationLink: resolvedDocumentationLink,
|
|
8483
8580
|
duration: actualDurationInFrames,
|
|
8484
8581
|
from,
|
|
8582
|
+
trimBefore: registeredTrimBefore,
|
|
8485
8583
|
id,
|
|
8486
8584
|
loopDisplay,
|
|
8487
8585
|
nonce: nonce.get(),
|
|
@@ -8506,6 +8604,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8506
8604
|
doesVolumeChange: isMedia.data.doesVolumeChange,
|
|
8507
8605
|
duration: actualDurationInFrames,
|
|
8508
8606
|
from,
|
|
8607
|
+
trimBefore: registeredTrimBefore,
|
|
8509
8608
|
id,
|
|
8510
8609
|
loopDisplay,
|
|
8511
8610
|
nonce: nonce.get(),
|
|
@@ -8531,6 +8630,7 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8531
8630
|
}
|
|
8532
8631
|
registerSequence({
|
|
8533
8632
|
from,
|
|
8633
|
+
trimBefore: registeredTrimBefore,
|
|
8534
8634
|
duration: actualDurationInFrames,
|
|
8535
8635
|
id,
|
|
8536
8636
|
displayName: timelineClipName,
|
|
@@ -8564,6 +8664,8 @@ var RegularSequenceRefForwardingFunction = ({
|
|
|
8564
8664
|
actualDurationInFrames,
|
|
8565
8665
|
rootId,
|
|
8566
8666
|
from,
|
|
8667
|
+
trimBefore,
|
|
8668
|
+
registeredTrimBefore,
|
|
8567
8669
|
showInTimeline,
|
|
8568
8670
|
nonce,
|
|
8569
8671
|
loopDisplay,
|
|
@@ -8695,12 +8797,14 @@ var SequenceInner = forwardRef3(SequenceRefForwardingFunction);
|
|
|
8695
8797
|
var SequenceWithoutSchema = SequenceInner;
|
|
8696
8798
|
var Sequence = withInteractivitySchema({
|
|
8697
8799
|
Component: SequenceInner,
|
|
8800
|
+
componentName: "<Sequence>",
|
|
8698
8801
|
componentIdentity: "dev.remotion.remotion.Sequence",
|
|
8699
8802
|
schema: sequenceSchema,
|
|
8700
8803
|
supportsEffects: false
|
|
8701
8804
|
});
|
|
8702
8805
|
var SequenceWithoutFrom = withInteractivitySchema({
|
|
8703
8806
|
Component: SequenceInner,
|
|
8807
|
+
componentName: "<Sequence>",
|
|
8704
8808
|
componentIdentity: null,
|
|
8705
8809
|
schema: sequenceSchemaWithoutFrom,
|
|
8706
8810
|
supportsEffects: false
|
|
@@ -9437,6 +9541,7 @@ var AnimatedImageInner = ({
|
|
|
9437
9541
|
};
|
|
9438
9542
|
var AnimatedImage = withInteractivitySchema({
|
|
9439
9543
|
Component: AnimatedImageInner,
|
|
9544
|
+
componentName: "<AnimatedImage>",
|
|
9440
9545
|
componentIdentity: "dev.remotion.remotion.AnimatedImage",
|
|
9441
9546
|
schema: animatedImageSchema,
|
|
9442
9547
|
supportsEffects: true
|
|
@@ -9828,13 +9933,15 @@ var prefetch = (src, options) => {
|
|
|
9828
9933
|
resolve = res;
|
|
9829
9934
|
reject = rej;
|
|
9830
9935
|
});
|
|
9936
|
+
waitUntilDone.catch(() => {
|
|
9937
|
+
return;
|
|
9938
|
+
});
|
|
9831
9939
|
const controller = new AbortController;
|
|
9832
|
-
let
|
|
9940
|
+
let reader = null;
|
|
9833
9941
|
fetch(srcWithoutHash, {
|
|
9834
9942
|
signal: controller.signal,
|
|
9835
9943
|
credentials: options?.credentials ?? undefined
|
|
9836
9944
|
}).then((res) => {
|
|
9837
|
-
canBeAborted = false;
|
|
9838
9945
|
if (canceled) {
|
|
9839
9946
|
return null;
|
|
9840
9947
|
}
|
|
@@ -9850,15 +9957,16 @@ var prefetch = (src, options) => {
|
|
|
9850
9957
|
if (!res.body) {
|
|
9851
9958
|
throw new Error(`HTTP response of ${srcWithoutHash} has no body`);
|
|
9852
9959
|
}
|
|
9853
|
-
const
|
|
9960
|
+
const responseReader = res.body.getReader();
|
|
9961
|
+
reader = responseReader;
|
|
9854
9962
|
return getBlobFromReader({
|
|
9855
|
-
reader,
|
|
9963
|
+
reader: responseReader,
|
|
9856
9964
|
contentType: options?.contentType ?? headerContentType ?? null,
|
|
9857
9965
|
contentLength: res.headers.get("Content-Length") ? parseInt(res.headers.get("Content-Length"), 10) : null,
|
|
9858
9966
|
onProgress: options?.onProgress
|
|
9859
9967
|
});
|
|
9860
9968
|
}).then((buf) => {
|
|
9861
|
-
if (!buf) {
|
|
9969
|
+
if (!buf || canceled) {
|
|
9862
9970
|
return;
|
|
9863
9971
|
}
|
|
9864
9972
|
const actualBlob = options?.contentType ? new Blob([buf], { type: options.contentType }) : buf;
|
|
@@ -9906,12 +10014,18 @@ var prefetch = (src, options) => {
|
|
|
9906
10014
|
return copy;
|
|
9907
10015
|
});
|
|
9908
10016
|
} else {
|
|
9909
|
-
canceled
|
|
9910
|
-
|
|
9911
|
-
try {
|
|
9912
|
-
controller.abort(new Error("free() called"));
|
|
9913
|
-
} catch {}
|
|
10017
|
+
if (canceled) {
|
|
10018
|
+
return;
|
|
9914
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
|
+
});
|
|
9915
10029
|
}
|
|
9916
10030
|
},
|
|
9917
10031
|
waitUntilDone: () => {
|
|
@@ -11083,6 +11197,7 @@ var useMediaInTimeline = ({
|
|
|
11083
11197
|
id,
|
|
11084
11198
|
duration,
|
|
11085
11199
|
from: 0,
|
|
11200
|
+
trimBefore: null,
|
|
11086
11201
|
parent: parentSequence?.id ?? null,
|
|
11087
11202
|
displayName: finalDisplayName,
|
|
11088
11203
|
documentationLink,
|
|
@@ -11945,11 +12060,11 @@ var useMediaTag = ({
|
|
|
11945
12060
|
]);
|
|
11946
12061
|
};
|
|
11947
12062
|
var MediaVolumeContext = createContext22({
|
|
11948
|
-
|
|
12063
|
+
playerMuted: false,
|
|
11949
12064
|
mediaVolume: 1
|
|
11950
12065
|
});
|
|
11951
12066
|
var SetMediaVolumeContext = createContext22({
|
|
11952
|
-
|
|
12067
|
+
setPlayerMuted: () => {
|
|
11953
12068
|
throw new Error("default");
|
|
11954
12069
|
},
|
|
11955
12070
|
setMediaVolume: () => {
|
|
@@ -11963,12 +12078,12 @@ var useMediaVolumeState = () => {
|
|
|
11963
12078
|
return [mediaVolume, setMediaVolume];
|
|
11964
12079
|
}, [mediaVolume, setMediaVolume]);
|
|
11965
12080
|
};
|
|
11966
|
-
var
|
|
11967
|
-
const {
|
|
11968
|
-
const {
|
|
12081
|
+
var usePlayerMutedState = () => {
|
|
12082
|
+
const { playerMuted } = useContext27(MediaVolumeContext);
|
|
12083
|
+
const { setPlayerMuted } = useContext27(SetMediaVolumeContext);
|
|
11969
12084
|
return useMemo26(() => {
|
|
11970
|
-
return [
|
|
11971
|
-
}, [
|
|
12085
|
+
return [playerMuted, setPlayerMuted];
|
|
12086
|
+
}, [playerMuted, setPlayerMuted]);
|
|
11972
12087
|
};
|
|
11973
12088
|
var warnAboutTooHighVolume = (volume) => {
|
|
11974
12089
|
if (volume >= 100) {
|
|
@@ -12014,7 +12129,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12014
12129
|
throw new Error("typecheck error");
|
|
12015
12130
|
}
|
|
12016
12131
|
const [mediaVolume] = useMediaVolumeState();
|
|
12017
|
-
const [
|
|
12132
|
+
const [playerMuted] = usePlayerMutedState();
|
|
12018
12133
|
const volumePropFrame = useFrameForVolumeProp(loopVolumeCurveBehavior ?? "repeat");
|
|
12019
12134
|
if (!src) {
|
|
12020
12135
|
throw new TypeError("No 'src' was passed to <Html5Audio>.");
|
|
@@ -12035,7 +12150,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12035
12150
|
});
|
|
12036
12151
|
const propsToPass = useMemo27(() => {
|
|
12037
12152
|
return {
|
|
12038
|
-
muted: muted ||
|
|
12153
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
12039
12154
|
src: preloadedSrc,
|
|
12040
12155
|
loop: _remotionInternalNativeLoopPassed,
|
|
12041
12156
|
crossOrigin: crossOriginValue,
|
|
@@ -12043,7 +12158,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
12043
12158
|
};
|
|
12044
12159
|
}, [
|
|
12045
12160
|
_remotionInternalNativeLoopPassed,
|
|
12046
|
-
|
|
12161
|
+
playerMuted,
|
|
12047
12162
|
muted,
|
|
12048
12163
|
nativeProps,
|
|
12049
12164
|
preloadedSrc,
|
|
@@ -12440,6 +12555,15 @@ var solidSchema = {
|
|
|
12440
12555
|
description: "Height",
|
|
12441
12556
|
hiddenFromList: false
|
|
12442
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
|
+
},
|
|
12443
12567
|
...transformSchema
|
|
12444
12568
|
};
|
|
12445
12569
|
var SolidInner = ({
|
|
@@ -12556,6 +12680,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12556
12680
|
style,
|
|
12557
12681
|
name,
|
|
12558
12682
|
from,
|
|
12683
|
+
trimBefore,
|
|
12559
12684
|
freeze,
|
|
12560
12685
|
hidden,
|
|
12561
12686
|
showInTimeline,
|
|
@@ -12570,6 +12695,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12570
12695
|
return /* @__PURE__ */ jsx24(Sequence, {
|
|
12571
12696
|
layout: "none",
|
|
12572
12697
|
from,
|
|
12698
|
+
trimBefore,
|
|
12573
12699
|
freeze,
|
|
12574
12700
|
hidden,
|
|
12575
12701
|
showInTimeline,
|
|
@@ -12595,6 +12721,7 @@ var SolidOuter = forwardRef8(({
|
|
|
12595
12721
|
});
|
|
12596
12722
|
var Solid = withInteractivitySchema({
|
|
12597
12723
|
Component: SolidOuter,
|
|
12724
|
+
componentName: "<Solid>",
|
|
12598
12725
|
componentIdentity: "dev.remotion.remotion.Solid",
|
|
12599
12726
|
schema: solidSchema,
|
|
12600
12727
|
supportsEffects: true
|
|
@@ -12726,10 +12853,6 @@ var HtmlInCanvasContent = forwardRef9(({
|
|
|
12726
12853
|
if (!placeholderCanvas) {
|
|
12727
12854
|
throw new Error("Canvas not found");
|
|
12728
12855
|
}
|
|
12729
|
-
const offscreen2d = offscreen.getContext("2d");
|
|
12730
|
-
if (!offscreen2d) {
|
|
12731
|
-
throw new Error("Failed to acquire 2D context for <HtmlInCanvas> offscreen canvas");
|
|
12732
|
-
}
|
|
12733
12856
|
const handle = delayRender("onPaint");
|
|
12734
12857
|
if (!initializedRef.current) {
|
|
12735
12858
|
initializedRef.current = true;
|
|
@@ -12914,10 +13037,20 @@ var HtmlInCanvasInner = forwardRef9(({
|
|
|
12914
13037
|
HtmlInCanvasInner.displayName = "HtmlInCanvas";
|
|
12915
13038
|
var htmlInCanvasSchema = {
|
|
12916
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
|
+
},
|
|
12917
13049
|
...transformSchema
|
|
12918
13050
|
};
|
|
12919
13051
|
var HtmlInCanvasWrapped = withInteractivitySchema({
|
|
12920
13052
|
Component: HtmlInCanvasInner,
|
|
13053
|
+
componentName: "<HtmlInCanvas>",
|
|
12921
13054
|
componentIdentity: "dev.remotion.remotion.HtmlInCanvas",
|
|
12922
13055
|
schema: htmlInCanvasSchema,
|
|
12923
13056
|
supportsEffects: true
|
|
@@ -13230,6 +13363,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13230
13363
|
delayRenderTimeoutInMilliseconds,
|
|
13231
13364
|
durationInFrames,
|
|
13232
13365
|
from,
|
|
13366
|
+
trimBefore,
|
|
13233
13367
|
freeze,
|
|
13234
13368
|
hidden,
|
|
13235
13369
|
name,
|
|
@@ -13251,6 +13385,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13251
13385
|
return /* @__PURE__ */ jsx26(Sequence, {
|
|
13252
13386
|
layout: "none",
|
|
13253
13387
|
from: from ?? 0,
|
|
13388
|
+
trimBefore,
|
|
13254
13389
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13255
13390
|
freeze,
|
|
13256
13391
|
hidden,
|
|
@@ -13285,6 +13420,7 @@ var CanvasImageInner = forwardRef10(({
|
|
|
13285
13420
|
});
|
|
13286
13421
|
var CanvasImage = withInteractivitySchema({
|
|
13287
13422
|
Component: CanvasImageInner,
|
|
13423
|
+
componentName: "<CanvasImage>",
|
|
13288
13424
|
componentIdentity: "dev.remotion.remotion.CanvasImage",
|
|
13289
13425
|
schema: canvasImageSchema,
|
|
13290
13426
|
supportsEffects: true
|
|
@@ -13486,6 +13622,7 @@ var NativeImgInner = ({
|
|
|
13486
13622
|
showInTimeline,
|
|
13487
13623
|
src,
|
|
13488
13624
|
from,
|
|
13625
|
+
trimBefore,
|
|
13489
13626
|
durationInFrames,
|
|
13490
13627
|
freeze,
|
|
13491
13628
|
controls,
|
|
@@ -13498,6 +13635,7 @@ var NativeImgInner = ({
|
|
|
13498
13635
|
return /* @__PURE__ */ jsx28(Sequence, {
|
|
13499
13636
|
layout: "none",
|
|
13500
13637
|
from: from ?? 0,
|
|
13638
|
+
trimBefore,
|
|
13501
13639
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13502
13640
|
freeze,
|
|
13503
13641
|
_remotionInternalStack: stack,
|
|
@@ -13571,6 +13709,7 @@ var ImgInner = ({
|
|
|
13571
13709
|
showInTimeline,
|
|
13572
13710
|
src,
|
|
13573
13711
|
from,
|
|
13712
|
+
trimBefore,
|
|
13574
13713
|
durationInFrames,
|
|
13575
13714
|
freeze,
|
|
13576
13715
|
controls,
|
|
@@ -13596,6 +13735,7 @@ var ImgInner = ({
|
|
|
13596
13735
|
showInTimeline,
|
|
13597
13736
|
src,
|
|
13598
13737
|
from,
|
|
13738
|
+
trimBefore,
|
|
13599
13739
|
durationInFrames,
|
|
13600
13740
|
freeze,
|
|
13601
13741
|
controls,
|
|
@@ -13638,6 +13778,7 @@ var ImgInner = ({
|
|
|
13638
13778
|
delayRenderRetries,
|
|
13639
13779
|
delayRenderTimeoutInMilliseconds,
|
|
13640
13780
|
from,
|
|
13781
|
+
trimBefore,
|
|
13641
13782
|
durationInFrames,
|
|
13642
13783
|
freeze,
|
|
13643
13784
|
hidden,
|
|
@@ -13652,6 +13793,7 @@ var ImgInner = ({
|
|
|
13652
13793
|
};
|
|
13653
13794
|
var Img = withInteractivitySchema({
|
|
13654
13795
|
Component: ImgInner,
|
|
13796
|
+
componentName: "<Img>",
|
|
13655
13797
|
componentIdentity: "dev.remotion.remotion.Img",
|
|
13656
13798
|
schema: imgSchema,
|
|
13657
13799
|
supportsEffects: true
|
|
@@ -13659,7 +13801,8 @@ var Img = withInteractivitySchema({
|
|
|
13659
13801
|
addSequenceStackTraces(Img);
|
|
13660
13802
|
var interactiveElementSchema = {
|
|
13661
13803
|
...baseSchema,
|
|
13662
|
-
...transformSchema
|
|
13804
|
+
...transformSchema,
|
|
13805
|
+
...textSchema
|
|
13663
13806
|
};
|
|
13664
13807
|
var setRef = (ref, value) => {
|
|
13665
13808
|
if (typeof ref === "function") {
|
|
@@ -13673,6 +13816,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13673
13816
|
const {
|
|
13674
13817
|
durationInFrames,
|
|
13675
13818
|
from,
|
|
13819
|
+
trimBefore,
|
|
13676
13820
|
freeze,
|
|
13677
13821
|
hidden,
|
|
13678
13822
|
name,
|
|
@@ -13689,6 +13833,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13689
13833
|
return /* @__PURE__ */ jsx29(Sequence, {
|
|
13690
13834
|
layout: "none",
|
|
13691
13835
|
from: from ?? 0,
|
|
13836
|
+
trimBefore,
|
|
13692
13837
|
durationInFrames: durationInFrames ?? Infinity,
|
|
13693
13838
|
freeze,
|
|
13694
13839
|
hidden,
|
|
@@ -13707,6 +13852,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13707
13852
|
Inner.displayName = displayName;
|
|
13708
13853
|
const Wrapped = withInteractivitySchema({
|
|
13709
13854
|
Component: Inner,
|
|
13855
|
+
componentName: displayName,
|
|
13710
13856
|
componentIdentity: `dev.remotion.remotion.${displayName.slice(1, -1)}`,
|
|
13711
13857
|
schema: interactiveElementSchema,
|
|
13712
13858
|
supportsEffects: false
|
|
@@ -13718,6 +13864,7 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
13718
13864
|
var Interactive = {
|
|
13719
13865
|
baseSchema,
|
|
13720
13866
|
transformSchema,
|
|
13867
|
+
textSchema,
|
|
13721
13868
|
premountSchema,
|
|
13722
13869
|
sequenceSchema,
|
|
13723
13870
|
withSchema: withInteractivitySchema,
|
|
@@ -14547,7 +14694,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14547
14694
|
throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");
|
|
14548
14695
|
}
|
|
14549
14696
|
const [mediaVolume] = useMediaVolumeState();
|
|
14550
|
-
const [
|
|
14697
|
+
const [playerMuted] = usePlayerMutedState();
|
|
14551
14698
|
const userPreferredVolume = evaluateVolume({
|
|
14552
14699
|
frame: volumePropFrame,
|
|
14553
14700
|
volume,
|
|
@@ -14703,7 +14850,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
14703
14850
|
return /* @__PURE__ */ jsx34("video", {
|
|
14704
14851
|
...nativeProps,
|
|
14705
14852
|
ref: videoRef,
|
|
14706
|
-
muted: muted ||
|
|
14853
|
+
muted: muted || playerMuted || userPreferredVolume <= 0,
|
|
14707
14854
|
playsInline: true,
|
|
14708
14855
|
src: actualSrc,
|
|
14709
14856
|
loop: _remotionInternalNativeLoopPassed,
|
|
@@ -14994,6 +15141,7 @@ var Internals = {
|
|
|
14994
15141
|
sequenceStyleSchema,
|
|
14995
15142
|
sequenceVisualStyleSchema,
|
|
14996
15143
|
sequencePremountSchema,
|
|
15144
|
+
textSchema,
|
|
14997
15145
|
transformSchema,
|
|
14998
15146
|
premountSchema,
|
|
14999
15147
|
flattenActiveSchema,
|
|
@@ -15003,7 +15151,7 @@ var Internals = {
|
|
|
15003
15151
|
useVideo,
|
|
15004
15152
|
getRoot,
|
|
15005
15153
|
useMediaVolumeState,
|
|
15006
|
-
|
|
15154
|
+
usePlayerMutedState,
|
|
15007
15155
|
useMediaInTimeline,
|
|
15008
15156
|
useLazyComponent,
|
|
15009
15157
|
truthy,
|
|
@@ -15197,6 +15345,7 @@ var SeriesInner = (props2) => {
|
|
|
15197
15345
|
};
|
|
15198
15346
|
var Series = Object.assign(withInteractivitySchema({
|
|
15199
15347
|
Component: SeriesInner,
|
|
15348
|
+
componentName: "<Series>",
|
|
15200
15349
|
componentIdentity: "dev.remotion.remotion.Series",
|
|
15201
15350
|
schema: sequenceSchemaDefaultLayoutNone,
|
|
15202
15351
|
supportsEffects: false
|
|
@@ -15945,6 +16094,7 @@ var RenderSvg = ({
|
|
|
15945
16094
|
pixelDensity,
|
|
15946
16095
|
durationInFrames,
|
|
15947
16096
|
from,
|
|
16097
|
+
trimBefore,
|
|
15948
16098
|
freeze,
|
|
15949
16099
|
hidden,
|
|
15950
16100
|
name,
|
|
@@ -16054,6 +16204,7 @@ var RenderSvg = ({
|
|
|
16054
16204
|
return /* @__PURE__ */ jsx40(Sequence, {
|
|
16055
16205
|
layout: "none",
|
|
16056
16206
|
from,
|
|
16207
|
+
trimBefore,
|
|
16057
16208
|
freeze,
|
|
16058
16209
|
hidden,
|
|
16059
16210
|
showInTimeline,
|
|
@@ -16185,6 +16336,7 @@ var ArrowInner = ({
|
|
|
16185
16336
|
};
|
|
16186
16337
|
var Arrow = Interactive.withSchema({
|
|
16187
16338
|
Component: ArrowInner,
|
|
16339
|
+
componentName: "<Arrow>",
|
|
16188
16340
|
componentIdentity: "dev.remotion.shapes.Arrow",
|
|
16189
16341
|
schema: arrowSchema,
|
|
16190
16342
|
supportsEffects: true
|
|
@@ -16609,6 +16761,7 @@ var CalloutInner = ({
|
|
|
16609
16761
|
};
|
|
16610
16762
|
var Callout = Interactive.withSchema({
|
|
16611
16763
|
Component: CalloutInner,
|
|
16764
|
+
componentName: "<Callout>",
|
|
16612
16765
|
componentIdentity: "dev.remotion.shapes.Callout",
|
|
16613
16766
|
schema: calloutSchema,
|
|
16614
16767
|
supportsEffects: true
|
|
@@ -16671,6 +16824,7 @@ var CircleInner = ({ radius, ...props }) => {
|
|
|
16671
16824
|
};
|
|
16672
16825
|
var Circle = Interactive.withSchema({
|
|
16673
16826
|
Component: CircleInner,
|
|
16827
|
+
componentName: "<Circle>",
|
|
16674
16828
|
componentIdentity: "dev.remotion.shapes.Circle",
|
|
16675
16829
|
schema: circleSchema,
|
|
16676
16830
|
supportsEffects: true
|
|
@@ -16728,6 +16882,7 @@ var EllipseInner = ({ rx, ry, ...props }) => {
|
|
|
16728
16882
|
};
|
|
16729
16883
|
var Ellipse = Interactive.withSchema({
|
|
16730
16884
|
Component: EllipseInner,
|
|
16885
|
+
componentName: "<Ellipse>",
|
|
16731
16886
|
componentIdentity: "dev.remotion.shapes.Ellipse",
|
|
16732
16887
|
schema: ellipseSchema,
|
|
16733
16888
|
supportsEffects: true
|
|
@@ -16866,6 +17021,7 @@ var HeartInner = ({
|
|
|
16866
17021
|
};
|
|
16867
17022
|
var Heart = Interactive.withSchema({
|
|
16868
17023
|
Component: HeartInner,
|
|
17024
|
+
componentName: "<Heart>",
|
|
16869
17025
|
componentIdentity: "dev.remotion.shapes.Heart",
|
|
16870
17026
|
schema: heartSchema,
|
|
16871
17027
|
supportsEffects: true
|
|
@@ -17020,6 +17176,7 @@ var PieInner = ({
|
|
|
17020
17176
|
};
|
|
17021
17177
|
var Pie = Interactive.withSchema({
|
|
17022
17178
|
Component: PieInner,
|
|
17179
|
+
componentName: "<Pie>",
|
|
17023
17180
|
componentIdentity: "dev.remotion.shapes.Pie",
|
|
17024
17181
|
schema: pieSchema,
|
|
17025
17182
|
supportsEffects: true
|
|
@@ -17119,6 +17276,7 @@ var PolygonInner = ({
|
|
|
17119
17276
|
};
|
|
17120
17277
|
var Polygon = Interactive.withSchema({
|
|
17121
17278
|
Component: PolygonInner,
|
|
17279
|
+
componentName: "<Polygon>",
|
|
17122
17280
|
componentIdentity: "dev.remotion.shapes.Polygon",
|
|
17123
17281
|
schema: polygonSchema,
|
|
17124
17282
|
supportsEffects: true
|
|
@@ -17185,6 +17343,7 @@ var RectInner = ({
|
|
|
17185
17343
|
};
|
|
17186
17344
|
var Rect = Interactive.withSchema({
|
|
17187
17345
|
Component: RectInner,
|
|
17346
|
+
componentName: "<Rect>",
|
|
17188
17347
|
componentIdentity: "dev.remotion.shapes.Rect",
|
|
17189
17348
|
schema: rectSchema,
|
|
17190
17349
|
supportsEffects: true
|
|
@@ -17396,6 +17555,7 @@ var SparkInner = ({
|
|
|
17396
17555
|
};
|
|
17397
17556
|
var Spark = Interactive.withSchema({
|
|
17398
17557
|
Component: SparkInner,
|
|
17558
|
+
componentName: "<Spark>",
|
|
17399
17559
|
componentIdentity: "dev.remotion.shapes.Spark",
|
|
17400
17560
|
schema: sparkSchema,
|
|
17401
17561
|
supportsEffects: true
|
|
@@ -17506,6 +17666,7 @@ var StarInner = ({
|
|
|
17506
17666
|
};
|
|
17507
17667
|
var Star = Interactive.withSchema({
|
|
17508
17668
|
Component: StarInner,
|
|
17669
|
+
componentName: "<Star>",
|
|
17509
17670
|
componentIdentity: "dev.remotion.shapes.Star",
|
|
17510
17671
|
schema: starSchema,
|
|
17511
17672
|
supportsEffects: true
|
|
@@ -17612,6 +17773,7 @@ var TriangleInner = ({
|
|
|
17612
17773
|
};
|
|
17613
17774
|
var Triangle = Interactive.withSchema({
|
|
17614
17775
|
Component: TriangleInner,
|
|
17776
|
+
componentName: "<Triangle>",
|
|
17615
17777
|
componentIdentity: "dev.remotion.shapes.Triangle",
|
|
17616
17778
|
schema: triangleSchema,
|
|
17617
17779
|
supportsEffects: true
|