@remotion/promo-pages 4.0.489 → 4.0.490
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 +291 -153
- package/dist/components/Homepage.js +5 -21
- package/dist/components/homepage/CommunityStatsItems.js +2 -2
- package/dist/components/homepage/Demo/DemoRender.d.ts +1 -1
- package/dist/components/homepage/Demo/DisplayedEmoji.js +5 -3
- package/dist/components/homepage/Demo/math.d.ts +1 -1
- package/dist/components/homepage/GitHubButton.js +1 -1
- package/dist/components/homepage/MakeVideosAgentically.d.ts +1 -0
- package/dist/components/homepage/MakeVideosAgentically.js +4 -6
- package/dist/components/homepage/MakeVideosInteractively.d.ts +2 -0
- package/dist/components/homepage/MakeVideosInteractively.js +3 -6
- package/dist/components/homepage/MakeVideosLinks.js +1 -1
- package/dist/components/homepage/MakeVideosProgrammatically.d.ts +2 -0
- package/dist/components/homepage/MakeVideosProgrammatically.js +2 -5
- package/dist/components/homepage/Pricing.d.ts +3 -1
- package/dist/components/homepage/Pricing.js +6 -2
- package/dist/components/homepage/WriteInReact.js +2 -1
- package/dist/components/team/TrustSection.js +1 -1
- package/dist/design.js +94 -48
- package/dist/experts.js +94 -37
- package/dist/homepage/Pricing.js +94 -48
- package/dist/prompts/PromptsGallery.js +94 -48
- package/dist/prompts/PromptsShow.js +94 -48
- package/dist/prompts/PromptsSubmit.js +94 -48
- package/dist/team.js +94 -48
- package/dist/template-modal-content.js +94 -48
- package/dist/templates.js +95 -48
- package/package.json +13 -13
- package/dist/components/homepage/CanvasSectionTitle.d.ts +0 -4
- package/dist/components/homepage/CanvasSectionTitle.js +0 -14
- package/dist/components/homepage/EditorStarterSection.d.ts +0 -3
- package/dist/components/homepage/EditorStarterSection.js +0 -8
package/dist/homepage/Pricing.js
CHANGED
|
@@ -5282,26 +5282,20 @@ var continueRenderInternal = ({
|
|
|
5282
5282
|
if (typeof handle !== "number") {
|
|
5283
5283
|
throw new TypeError("The parameter passed into continueRender() must be the return value of delayRender() which is a number. Got: " + JSON.stringify(handle));
|
|
5284
5284
|
}
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
delete scope.remotion_delayRenderTimeouts[handle];
|
|
5300
|
-
}
|
|
5301
|
-
return false;
|
|
5302
|
-
}
|
|
5303
|
-
return true;
|
|
5304
|
-
});
|
|
5285
|
+
const handleExists = scope.remotion_delayRenderHandles.includes(handle);
|
|
5286
|
+
const timeoutEntry = scope.remotion_delayRenderTimeouts[handle];
|
|
5287
|
+
if (handleExists && environment.isRendering && timeoutEntry) {
|
|
5288
|
+
const { label: label2, startTime, timeout } = timeoutEntry;
|
|
5289
|
+
clearTimeout(timeout);
|
|
5290
|
+
const message = [
|
|
5291
|
+
label2 ? `"${label2}"` : "A handle",
|
|
5292
|
+
DELAY_RENDER_CLEAR_TOKEN,
|
|
5293
|
+
`${Date.now() - startTime}ms`
|
|
5294
|
+
].filter(truthy).join(" ");
|
|
5295
|
+
Log.verbose({ logLevel, tag: "delayRender()" }, message);
|
|
5296
|
+
delete scope.remotion_delayRenderTimeouts[handle];
|
|
5297
|
+
}
|
|
5298
|
+
scope.remotion_delayRenderHandles = scope.remotion_delayRenderHandles.filter((h) => h !== handle);
|
|
5305
5299
|
if (scope.remotion_delayRenderHandles.length === 0) {
|
|
5306
5300
|
scope.remotion_renderReady = true;
|
|
5307
5301
|
}
|
|
@@ -5574,7 +5568,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
|
|
|
5574
5568
|
var addSequenceStackTraces = (component) => {
|
|
5575
5569
|
componentsToAddStacksTo.push(component);
|
|
5576
5570
|
};
|
|
5577
|
-
var VERSION = "4.0.
|
|
5571
|
+
var VERSION = "4.0.490";
|
|
5578
5572
|
var checkMultipleRemotionVersions = () => {
|
|
5579
5573
|
if (typeof globalThis === "undefined") {
|
|
5580
5574
|
return;
|
|
@@ -5955,7 +5949,8 @@ var transformSchema = {
|
|
|
5955
5949
|
max: 100,
|
|
5956
5950
|
step: 0.01,
|
|
5957
5951
|
default: 1,
|
|
5958
|
-
description: "Scale"
|
|
5952
|
+
description: "Scale",
|
|
5953
|
+
defaultKeyframeOutput: "perceptual-scale"
|
|
5959
5954
|
},
|
|
5960
5955
|
"style.rotate": {
|
|
5961
5956
|
type: "rotation-css",
|
|
@@ -6759,8 +6754,20 @@ var serializeStringInterpolationValue = ({
|
|
|
6759
6754
|
}
|
|
6760
6755
|
return values.slice(0, dimensions).map((value, index) => `${stringifyNumber(value)}${units[index]}`).join(" ");
|
|
6761
6756
|
};
|
|
6757
|
+
var toSignedArea = (scale) => {
|
|
6758
|
+
if (scale === 0) {
|
|
6759
|
+
return 0;
|
|
6760
|
+
}
|
|
6761
|
+
return Math.sign(scale) * scale * scale;
|
|
6762
|
+
};
|
|
6763
|
+
var fromSignedArea = (area) => {
|
|
6764
|
+
if (area === 0) {
|
|
6765
|
+
return 0;
|
|
6766
|
+
}
|
|
6767
|
+
return Math.sign(area) * Math.sqrt(Math.abs(area));
|
|
6768
|
+
};
|
|
6762
6769
|
function interpolateFunction(input, inputRange, outputRange, options) {
|
|
6763
|
-
const { extrapolateLeft, extrapolateRight, easing } = options;
|
|
6770
|
+
const { extrapolateLeft, extrapolateRight, easing, output } = options;
|
|
6764
6771
|
let result = input;
|
|
6765
6772
|
const [inputMin, inputMax] = inputRange;
|
|
6766
6773
|
const [outputMin, outputMax] = outputRange;
|
|
@@ -6791,7 +6798,13 @@ function interpolateFunction(input, inputRange, outputRange, options) {
|
|
|
6791
6798
|
}
|
|
6792
6799
|
result = (result - inputMin) / (inputMax - inputMin);
|
|
6793
6800
|
result = easing(result);
|
|
6794
|
-
|
|
6801
|
+
if (output === "perceptual-scale") {
|
|
6802
|
+
const signedAreaMin = toSignedArea(outputMin);
|
|
6803
|
+
const signedAreaMax = toSignedArea(outputMax);
|
|
6804
|
+
result = fromSignedArea(result * (signedAreaMax - signedAreaMin) + signedAreaMin);
|
|
6805
|
+
} else {
|
|
6806
|
+
result = result * (outputMax - outputMin) + outputMin;
|
|
6807
|
+
}
|
|
6795
6808
|
return result;
|
|
6796
6809
|
}
|
|
6797
6810
|
function findRange(input, inputRange) {
|
|
@@ -6804,6 +6817,9 @@ function findRange(input, inputRange) {
|
|
|
6804
6817
|
return i - 1;
|
|
6805
6818
|
}
|
|
6806
6819
|
var defaultEasing = (num) => num;
|
|
6820
|
+
var resolveOutputOption = (output) => {
|
|
6821
|
+
return output ?? "linear";
|
|
6822
|
+
};
|
|
6807
6823
|
var shouldExtendRightForEasing = (easing) => {
|
|
6808
6824
|
return easing.remotionShouldExtendRight === true;
|
|
6809
6825
|
};
|
|
@@ -6825,12 +6841,14 @@ var interpolateSegment = ({
|
|
|
6825
6841
|
outputRange,
|
|
6826
6842
|
easing,
|
|
6827
6843
|
extrapolateLeft,
|
|
6828
|
-
extrapolateRight
|
|
6844
|
+
extrapolateRight,
|
|
6845
|
+
output
|
|
6829
6846
|
}) => {
|
|
6830
6847
|
return interpolateFunction(input, inputRange, outputRange, {
|
|
6831
6848
|
easing,
|
|
6832
6849
|
extrapolateLeft,
|
|
6833
|
-
extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing(easing) ? "extend" : extrapolateRight
|
|
6850
|
+
extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing(easing) ? "extend" : extrapolateRight,
|
|
6851
|
+
output
|
|
6834
6852
|
});
|
|
6835
6853
|
};
|
|
6836
6854
|
var interpolateNumber = ({
|
|
@@ -6839,6 +6857,7 @@ var interpolateNumber = ({
|
|
|
6839
6857
|
outputRange,
|
|
6840
6858
|
options
|
|
6841
6859
|
}) => {
|
|
6860
|
+
const output = resolveOutputOption(options?.output);
|
|
6842
6861
|
if (inputRange.length === 1) {
|
|
6843
6862
|
return outputRange[0];
|
|
6844
6863
|
}
|
|
@@ -6863,7 +6882,8 @@ var interpolateNumber = ({
|
|
|
6863
6882
|
outputRange: [outputRange[range], outputRange[range + 1]],
|
|
6864
6883
|
easing,
|
|
6865
6884
|
extrapolateLeft,
|
|
6866
|
-
extrapolateRight
|
|
6885
|
+
extrapolateRight,
|
|
6886
|
+
output
|
|
6867
6887
|
});
|
|
6868
6888
|
for (let segmentIndex = 0;segmentIndex < range; segmentIndex++) {
|
|
6869
6889
|
const previousEasing = resolveEasingForSegment({
|
|
@@ -6883,7 +6903,8 @@ var interpolateNumber = ({
|
|
|
6883
6903
|
outputRange: [outputRange[segmentIndex], outputRange[segmentIndex + 1]],
|
|
6884
6904
|
easing: previousEasing,
|
|
6885
6905
|
extrapolateLeft,
|
|
6886
|
-
extrapolateRight: "extend"
|
|
6906
|
+
extrapolateRight: "extend",
|
|
6907
|
+
output
|
|
6887
6908
|
});
|
|
6888
6909
|
result += continuedSegmentValue - outputRange[segmentIndex + 1];
|
|
6889
6910
|
}
|
|
@@ -6931,14 +6952,18 @@ var interpolateString = ({
|
|
|
6931
6952
|
}
|
|
6932
6953
|
}
|
|
6933
6954
|
}
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
values
|
|
6955
|
+
const values = [0, 0, 0];
|
|
6956
|
+
for (let axis = 0;axis < dimensions; axis++) {
|
|
6957
|
+
values[axis] = interpolateNumber({
|
|
6937
6958
|
input,
|
|
6938
6959
|
inputRange,
|
|
6939
6960
|
outputRange: parsedOutputRange.map((parsed) => parsed.values[axis]),
|
|
6940
6961
|
options
|
|
6941
|
-
})
|
|
6962
|
+
});
|
|
6963
|
+
}
|
|
6964
|
+
return serializeStringInterpolationValue({
|
|
6965
|
+
kind,
|
|
6966
|
+
values,
|
|
6942
6967
|
units,
|
|
6943
6968
|
dimensions
|
|
6944
6969
|
});
|
|
@@ -7022,6 +7047,12 @@ function assertValidInterpolatePosterizeOption(posterize) {
|
|
|
7022
7047
|
throw new Error(`posterize must be a positive finite number, but got ${posterize}`);
|
|
7023
7048
|
}
|
|
7024
7049
|
}
|
|
7050
|
+
function assertValidInterpolateOutputOption(output) {
|
|
7051
|
+
if (output === undefined || output === "linear" || output === "perceptual-scale") {
|
|
7052
|
+
return;
|
|
7053
|
+
}
|
|
7054
|
+
throw new Error(`output must be "linear" or "perceptual-scale", but got ${String(output)}`);
|
|
7055
|
+
}
|
|
7025
7056
|
function interpolate(input, inputRange, outputRange, options) {
|
|
7026
7057
|
if (typeof input === "undefined") {
|
|
7027
7058
|
throw new Error("input can not be undefined");
|
|
@@ -7039,6 +7070,7 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
7039
7070
|
checkValidInputRange(inputRange);
|
|
7040
7071
|
assertValidInterpolateEasingOption(options?.easing, inputRange.length);
|
|
7041
7072
|
assertValidInterpolatePosterizeOption(options?.posterize);
|
|
7073
|
+
assertValidInterpolateOutputOption(options?.output);
|
|
7042
7074
|
if (typeof input !== "number") {
|
|
7043
7075
|
throw new TypeError("Cannot interpolate an input which is not a number");
|
|
7044
7076
|
}
|
|
@@ -7983,6 +8015,7 @@ var interpolateKeyframedStatus = ({
|
|
|
7983
8015
|
easing: easing.map((e) => easingToFn({ easing: e, forceSpringAllowTail })),
|
|
7984
8016
|
extrapolateLeft: clamping.left,
|
|
7985
8017
|
extrapolateRight: clamping.right,
|
|
8018
|
+
output: status.output,
|
|
7986
8019
|
posterize: status.posterize
|
|
7987
8020
|
});
|
|
7988
8021
|
} catch {
|
|
@@ -8223,7 +8256,7 @@ var getFlatSchemaWithAllKeys = (schema) => {
|
|
|
8223
8256
|
const out = {};
|
|
8224
8257
|
const addKey = (key, field) => {
|
|
8225
8258
|
if (key in out) {
|
|
8226
|
-
|
|
8259
|
+
return;
|
|
8227
8260
|
}
|
|
8228
8261
|
out[key] = field;
|
|
8229
8262
|
};
|
|
@@ -14102,6 +14135,22 @@ var Img = withInteractivitySchema({
|
|
|
14102
14135
|
supportsEffects: true
|
|
14103
14136
|
});
|
|
14104
14137
|
addSequenceStackTraces(Img);
|
|
14138
|
+
var sourcePathToIdentityPrefix = (packageName) => {
|
|
14139
|
+
if (packageName === "remotion") {
|
|
14140
|
+
return "dev.remotion.remotion";
|
|
14141
|
+
}
|
|
14142
|
+
if (packageName.startsWith("@remotion/")) {
|
|
14143
|
+
const normalizedPackageName = packageName.slice("@remotion/".length).replace(/-([a-z])/g, (_, char) => char.toUpperCase());
|
|
14144
|
+
return `dev.remotion.${normalizedPackageName}`;
|
|
14145
|
+
}
|
|
14146
|
+
throw new Error(`Unsupported Remotion package name: ${packageName}`);
|
|
14147
|
+
};
|
|
14148
|
+
var makeRemotionComponentIdentity = ({
|
|
14149
|
+
packageName,
|
|
14150
|
+
componentName
|
|
14151
|
+
}) => {
|
|
14152
|
+
return `${sourcePathToIdentityPrefix(packageName)}.${componentName}`;
|
|
14153
|
+
};
|
|
14105
14154
|
var interactiveElementSchema = {
|
|
14106
14155
|
...baseSchema,
|
|
14107
14156
|
...transformSchema,
|
|
@@ -14115,6 +14164,11 @@ var setRef = (ref, value) => {
|
|
|
14115
14164
|
ref.current = value;
|
|
14116
14165
|
}
|
|
14117
14166
|
};
|
|
14167
|
+
var withSchema = (options) => {
|
|
14168
|
+
const Wrapped = withInteractivitySchema(options);
|
|
14169
|
+
addSequenceStackTraces(Wrapped);
|
|
14170
|
+
return Wrapped;
|
|
14171
|
+
};
|
|
14118
14172
|
var makeInteractiveElement = (tag, displayName) => {
|
|
14119
14173
|
const Inner = forwardRef12((propsWithControls, ref) => {
|
|
14120
14174
|
const {
|
|
@@ -14154,15 +14208,17 @@ var makeInteractiveElement = (tag, displayName) => {
|
|
|
14154
14208
|
});
|
|
14155
14209
|
});
|
|
14156
14210
|
Inner.displayName = displayName;
|
|
14157
|
-
const Wrapped =
|
|
14211
|
+
const Wrapped = withSchema({
|
|
14158
14212
|
Component: Inner,
|
|
14159
14213
|
componentName: displayName,
|
|
14160
|
-
componentIdentity:
|
|
14214
|
+
componentIdentity: makeRemotionComponentIdentity({
|
|
14215
|
+
packageName: "remotion",
|
|
14216
|
+
componentName: displayName.slice(1, -1)
|
|
14217
|
+
}),
|
|
14161
14218
|
schema: interactiveElementSchema,
|
|
14162
14219
|
supportsEffects: false
|
|
14163
14220
|
});
|
|
14164
14221
|
Wrapped.displayName = displayName;
|
|
14165
|
-
addSequenceStackTraces(Wrapped);
|
|
14166
14222
|
return Wrapped;
|
|
14167
14223
|
};
|
|
14168
14224
|
var Interactive = {
|
|
@@ -14171,7 +14227,8 @@ var Interactive = {
|
|
|
14171
14227
|
textSchema,
|
|
14172
14228
|
premountSchema,
|
|
14173
14229
|
sequenceSchema,
|
|
14174
|
-
withSchema
|
|
14230
|
+
withSchema,
|
|
14231
|
+
_internalMakeRemotionComponentIdentity: makeRemotionComponentIdentity,
|
|
14175
14232
|
A: makeInteractiveElement("a", "<Interactive.A>"),
|
|
14176
14233
|
Article: makeInteractiveElement("article", "<Interactive.Article>"),
|
|
14177
14234
|
Aside: makeInteractiveElement("aside", "<Interactive.Aside>"),
|
|
@@ -16654,7 +16711,6 @@ var Arrow = Interactive.withSchema({
|
|
|
16654
16711
|
schema: arrowSchema,
|
|
16655
16712
|
supportsEffects: true
|
|
16656
16713
|
});
|
|
16657
|
-
Internals.addSequenceStackTraces(Arrow);
|
|
16658
16714
|
var shortenVector = (vector, radius) => {
|
|
16659
16715
|
const [x, y] = vector;
|
|
16660
16716
|
const currentLength = Math.sqrt(x * x + y * y);
|
|
@@ -17079,7 +17135,6 @@ var Callout = Interactive.withSchema({
|
|
|
17079
17135
|
schema: calloutSchema,
|
|
17080
17136
|
supportsEffects: true
|
|
17081
17137
|
});
|
|
17082
|
-
Internals.addSequenceStackTraces(Callout);
|
|
17083
17138
|
var makeCircle = ({ radius }) => {
|
|
17084
17139
|
const instructions = [
|
|
17085
17140
|
{
|
|
@@ -17142,7 +17197,6 @@ var Circle = Interactive.withSchema({
|
|
|
17142
17197
|
schema: circleSchema,
|
|
17143
17198
|
supportsEffects: true
|
|
17144
17199
|
});
|
|
17145
|
-
Internals.addSequenceStackTraces(Circle);
|
|
17146
17200
|
var makeEllipse = ({ rx, ry }) => {
|
|
17147
17201
|
const instructions = [
|
|
17148
17202
|
{
|
|
@@ -17200,7 +17254,6 @@ var Ellipse = Interactive.withSchema({
|
|
|
17200
17254
|
schema: ellipseSchema,
|
|
17201
17255
|
supportsEffects: true
|
|
17202
17256
|
});
|
|
17203
|
-
Internals.addSequenceStackTraces(Ellipse);
|
|
17204
17257
|
var makeHeart = ({
|
|
17205
17258
|
height,
|
|
17206
17259
|
aspectRatio = 1.1,
|
|
@@ -17339,7 +17392,6 @@ var Heart = Interactive.withSchema({
|
|
|
17339
17392
|
schema: heartSchema,
|
|
17340
17393
|
supportsEffects: true
|
|
17341
17394
|
});
|
|
17342
|
-
Internals.addSequenceStackTraces(Heart);
|
|
17343
17395
|
var getCoord = ({
|
|
17344
17396
|
counterClockwise,
|
|
17345
17397
|
actualProgress,
|
|
@@ -17494,7 +17546,6 @@ var Pie = Interactive.withSchema({
|
|
|
17494
17546
|
schema: pieSchema,
|
|
17495
17547
|
supportsEffects: true
|
|
17496
17548
|
});
|
|
17497
|
-
Internals.addSequenceStackTraces(Pie);
|
|
17498
17549
|
function polygon({
|
|
17499
17550
|
points,
|
|
17500
17551
|
radius,
|
|
@@ -17594,7 +17645,6 @@ var Polygon = Interactive.withSchema({
|
|
|
17594
17645
|
schema: polygonSchema,
|
|
17595
17646
|
supportsEffects: true
|
|
17596
17647
|
});
|
|
17597
|
-
Internals.addSequenceStackTraces(Polygon);
|
|
17598
17648
|
var makeRect = ({
|
|
17599
17649
|
width,
|
|
17600
17650
|
height,
|
|
@@ -17661,7 +17711,6 @@ var Rect = Interactive.withSchema({
|
|
|
17661
17711
|
schema: rectSchema,
|
|
17662
17712
|
supportsEffects: true
|
|
17663
17713
|
});
|
|
17664
|
-
Internals.addSequenceStackTraces(Rect);
|
|
17665
17714
|
var KAPPA = 0.5522847498307936;
|
|
17666
17715
|
var CAP_HANDLE = 4 / 3;
|
|
17667
17716
|
var curve = ({
|
|
@@ -17873,7 +17922,6 @@ var Spark = Interactive.withSchema({
|
|
|
17873
17922
|
schema: sparkSchema,
|
|
17874
17923
|
supportsEffects: true
|
|
17875
17924
|
});
|
|
17876
|
-
Internals.addSequenceStackTraces(Spark);
|
|
17877
17925
|
var star = ({
|
|
17878
17926
|
centerX,
|
|
17879
17927
|
centerY,
|
|
@@ -17984,7 +18032,6 @@ var Star = Interactive.withSchema({
|
|
|
17984
18032
|
schema: starSchema,
|
|
17985
18033
|
supportsEffects: true
|
|
17986
18034
|
});
|
|
17987
|
-
Internals.addSequenceStackTraces(Star);
|
|
17988
18035
|
var makeTriangle = ({
|
|
17989
18036
|
length: length2,
|
|
17990
18037
|
direction = "right",
|
|
@@ -18091,7 +18138,6 @@ var Triangle = Interactive.withSchema({
|
|
|
18091
18138
|
schema: triangleSchema,
|
|
18092
18139
|
supportsEffects: true
|
|
18093
18140
|
});
|
|
18094
|
-
Internals.addSequenceStackTraces(Triangle);
|
|
18095
18141
|
|
|
18096
18142
|
// ../svg-3d-engine/dist/esm/index.mjs
|
|
18097
18143
|
function truthy2(value) {
|