@remotion/promo-pages 4.0.488 → 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.
Files changed (32) hide show
  1. package/dist/Homepage.js +291 -153
  2. package/dist/components/Homepage.js +5 -21
  3. package/dist/components/homepage/CommunityStatsItems.js +2 -2
  4. package/dist/components/homepage/Demo/DemoRender.d.ts +1 -1
  5. package/dist/components/homepage/Demo/DisplayedEmoji.js +5 -3
  6. package/dist/components/homepage/Demo/math.d.ts +1 -1
  7. package/dist/components/homepage/GitHubButton.js +1 -1
  8. package/dist/components/homepage/MakeVideosAgentically.d.ts +1 -0
  9. package/dist/components/homepage/MakeVideosAgentically.js +4 -6
  10. package/dist/components/homepage/MakeVideosInteractively.d.ts +2 -0
  11. package/dist/components/homepage/MakeVideosInteractively.js +3 -6
  12. package/dist/components/homepage/MakeVideosLinks.js +1 -1
  13. package/dist/components/homepage/MakeVideosProgrammatically.d.ts +2 -0
  14. package/dist/components/homepage/MakeVideosProgrammatically.js +2 -5
  15. package/dist/components/homepage/Pricing.d.ts +3 -1
  16. package/dist/components/homepage/Pricing.js +6 -2
  17. package/dist/components/homepage/WriteInReact.js +2 -1
  18. package/dist/components/team/TrustSection.js +1 -1
  19. package/dist/design.js +94 -48
  20. package/dist/experts.js +94 -37
  21. package/dist/homepage/Pricing.js +94 -48
  22. package/dist/prompts/PromptsGallery.js +94 -48
  23. package/dist/prompts/PromptsShow.js +94 -48
  24. package/dist/prompts/PromptsSubmit.js +94 -48
  25. package/dist/team.js +94 -48
  26. package/dist/template-modal-content.js +94 -48
  27. package/dist/templates.js +95 -48
  28. package/package.json +13 -13
  29. package/dist/components/homepage/CanvasSectionTitle.d.ts +0 -4
  30. package/dist/components/homepage/CanvasSectionTitle.js +0 -14
  31. package/dist/components/homepage/EditorStarterSection.d.ts +0 -3
  32. package/dist/components/homepage/EditorStarterSection.js +0 -8
package/dist/team.js CHANGED
@@ -5460,26 +5460,20 @@ var continueRenderInternal = ({
5460
5460
  if (typeof handle !== "number") {
5461
5461
  throw new TypeError("The parameter passed into continueRender() must be the return value of delayRender() which is a number. Got: " + JSON.stringify(handle));
5462
5462
  }
5463
- scope.remotion_delayRenderHandles = scope.remotion_delayRenderHandles.filter((h) => {
5464
- if (h === handle) {
5465
- if (environment.isRendering && scope !== undefined) {
5466
- if (!scope.remotion_delayRenderTimeouts[handle]) {
5467
- return false;
5468
- }
5469
- const { label: label2, startTime, timeout } = scope.remotion_delayRenderTimeouts[handle];
5470
- clearTimeout(timeout);
5471
- const message = [
5472
- label2 ? `"${label2}"` : "A handle",
5473
- DELAY_RENDER_CLEAR_TOKEN,
5474
- `${Date.now() - startTime}ms`
5475
- ].filter(truthy).join(" ");
5476
- Log.verbose({ logLevel, tag: "delayRender()" }, message);
5477
- delete scope.remotion_delayRenderTimeouts[handle];
5478
- }
5479
- return false;
5480
- }
5481
- return true;
5482
- });
5463
+ const handleExists = scope.remotion_delayRenderHandles.includes(handle);
5464
+ const timeoutEntry = scope.remotion_delayRenderTimeouts[handle];
5465
+ if (handleExists && environment.isRendering && timeoutEntry) {
5466
+ const { label: label2, startTime, timeout } = timeoutEntry;
5467
+ clearTimeout(timeout);
5468
+ const message = [
5469
+ label2 ? `"${label2}"` : "A handle",
5470
+ DELAY_RENDER_CLEAR_TOKEN,
5471
+ `${Date.now() - startTime}ms`
5472
+ ].filter(truthy).join(" ");
5473
+ Log.verbose({ logLevel, tag: "delayRender()" }, message);
5474
+ delete scope.remotion_delayRenderTimeouts[handle];
5475
+ }
5476
+ scope.remotion_delayRenderHandles = scope.remotion_delayRenderHandles.filter((h) => h !== handle);
5483
5477
  if (scope.remotion_delayRenderHandles.length === 0) {
5484
5478
  scope.remotion_renderReady = true;
5485
5479
  }
@@ -5752,7 +5746,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
5752
5746
  var addSequenceStackTraces = (component) => {
5753
5747
  componentsToAddStacksTo.push(component);
5754
5748
  };
5755
- var VERSION = "4.0.488";
5749
+ var VERSION = "4.0.490";
5756
5750
  var checkMultipleRemotionVersions = () => {
5757
5751
  if (typeof globalThis === "undefined") {
5758
5752
  return;
@@ -6133,7 +6127,8 @@ var transformSchema = {
6133
6127
  max: 100,
6134
6128
  step: 0.01,
6135
6129
  default: 1,
6136
- description: "Scale"
6130
+ description: "Scale",
6131
+ defaultKeyframeOutput: "perceptual-scale"
6137
6132
  },
6138
6133
  "style.rotate": {
6139
6134
  type: "rotation-css",
@@ -6937,8 +6932,20 @@ var serializeStringInterpolationValue = ({
6937
6932
  }
6938
6933
  return values.slice(0, dimensions).map((value, index) => `${stringifyNumber(value)}${units[index]}`).join(" ");
6939
6934
  };
6935
+ var toSignedArea = (scale) => {
6936
+ if (scale === 0) {
6937
+ return 0;
6938
+ }
6939
+ return Math.sign(scale) * scale * scale;
6940
+ };
6941
+ var fromSignedArea = (area) => {
6942
+ if (area === 0) {
6943
+ return 0;
6944
+ }
6945
+ return Math.sign(area) * Math.sqrt(Math.abs(area));
6946
+ };
6940
6947
  function interpolateFunction(input, inputRange, outputRange, options) {
6941
- const { extrapolateLeft, extrapolateRight, easing } = options;
6948
+ const { extrapolateLeft, extrapolateRight, easing, output } = options;
6942
6949
  let result = input;
6943
6950
  const [inputMin, inputMax] = inputRange;
6944
6951
  const [outputMin, outputMax] = outputRange;
@@ -6969,7 +6976,13 @@ function interpolateFunction(input, inputRange, outputRange, options) {
6969
6976
  }
6970
6977
  result = (result - inputMin) / (inputMax - inputMin);
6971
6978
  result = easing(result);
6972
- result = result * (outputMax - outputMin) + outputMin;
6979
+ if (output === "perceptual-scale") {
6980
+ const signedAreaMin = toSignedArea(outputMin);
6981
+ const signedAreaMax = toSignedArea(outputMax);
6982
+ result = fromSignedArea(result * (signedAreaMax - signedAreaMin) + signedAreaMin);
6983
+ } else {
6984
+ result = result * (outputMax - outputMin) + outputMin;
6985
+ }
6973
6986
  return result;
6974
6987
  }
6975
6988
  function findRange(input, inputRange) {
@@ -6982,6 +6995,9 @@ function findRange(input, inputRange) {
6982
6995
  return i - 1;
6983
6996
  }
6984
6997
  var defaultEasing = (num) => num;
6998
+ var resolveOutputOption = (output) => {
6999
+ return output ?? "linear";
7000
+ };
6985
7001
  var shouldExtendRightForEasing = (easing) => {
6986
7002
  return easing.remotionShouldExtendRight === true;
6987
7003
  };
@@ -7003,12 +7019,14 @@ var interpolateSegment = ({
7003
7019
  outputRange,
7004
7020
  easing,
7005
7021
  extrapolateLeft,
7006
- extrapolateRight
7022
+ extrapolateRight,
7023
+ output
7007
7024
  }) => {
7008
7025
  return interpolateFunction(input, inputRange, outputRange, {
7009
7026
  easing,
7010
7027
  extrapolateLeft,
7011
- extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing(easing) ? "extend" : extrapolateRight
7028
+ extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing(easing) ? "extend" : extrapolateRight,
7029
+ output
7012
7030
  });
7013
7031
  };
7014
7032
  var interpolateNumber = ({
@@ -7017,6 +7035,7 @@ var interpolateNumber = ({
7017
7035
  outputRange,
7018
7036
  options
7019
7037
  }) => {
7038
+ const output = resolveOutputOption(options?.output);
7020
7039
  if (inputRange.length === 1) {
7021
7040
  return outputRange[0];
7022
7041
  }
@@ -7041,7 +7060,8 @@ var interpolateNumber = ({
7041
7060
  outputRange: [outputRange[range], outputRange[range + 1]],
7042
7061
  easing,
7043
7062
  extrapolateLeft,
7044
- extrapolateRight
7063
+ extrapolateRight,
7064
+ output
7045
7065
  });
7046
7066
  for (let segmentIndex = 0;segmentIndex < range; segmentIndex++) {
7047
7067
  const previousEasing = resolveEasingForSegment({
@@ -7061,7 +7081,8 @@ var interpolateNumber = ({
7061
7081
  outputRange: [outputRange[segmentIndex], outputRange[segmentIndex + 1]],
7062
7082
  easing: previousEasing,
7063
7083
  extrapolateLeft,
7064
- extrapolateRight: "extend"
7084
+ extrapolateRight: "extend",
7085
+ output
7065
7086
  });
7066
7087
  result += continuedSegmentValue - outputRange[segmentIndex + 1];
7067
7088
  }
@@ -7109,14 +7130,18 @@ var interpolateString = ({
7109
7130
  }
7110
7131
  }
7111
7132
  }
7112
- return serializeStringInterpolationValue({
7113
- kind,
7114
- values: [0, 0, 0].map((_, axis) => interpolateNumber({
7133
+ const values = [0, 0, 0];
7134
+ for (let axis = 0;axis < dimensions; axis++) {
7135
+ values[axis] = interpolateNumber({
7115
7136
  input,
7116
7137
  inputRange,
7117
7138
  outputRange: parsedOutputRange.map((parsed) => parsed.values[axis]),
7118
7139
  options
7119
- })),
7140
+ });
7141
+ }
7142
+ return serializeStringInterpolationValue({
7143
+ kind,
7144
+ values,
7120
7145
  units,
7121
7146
  dimensions
7122
7147
  });
@@ -7200,6 +7225,12 @@ function assertValidInterpolatePosterizeOption(posterize) {
7200
7225
  throw new Error(`posterize must be a positive finite number, but got ${posterize}`);
7201
7226
  }
7202
7227
  }
7228
+ function assertValidInterpolateOutputOption(output) {
7229
+ if (output === undefined || output === "linear" || output === "perceptual-scale") {
7230
+ return;
7231
+ }
7232
+ throw new Error(`output must be "linear" or "perceptual-scale", but got ${String(output)}`);
7233
+ }
7203
7234
  function interpolate(input, inputRange, outputRange, options) {
7204
7235
  if (typeof input === "undefined") {
7205
7236
  throw new Error("input can not be undefined");
@@ -7217,6 +7248,7 @@ function interpolate(input, inputRange, outputRange, options) {
7217
7248
  checkValidInputRange(inputRange);
7218
7249
  assertValidInterpolateEasingOption(options?.easing, inputRange.length);
7219
7250
  assertValidInterpolatePosterizeOption(options?.posterize);
7251
+ assertValidInterpolateOutputOption(options?.output);
7220
7252
  if (typeof input !== "number") {
7221
7253
  throw new TypeError("Cannot interpolate an input which is not a number");
7222
7254
  }
@@ -8161,6 +8193,7 @@ var interpolateKeyframedStatus = ({
8161
8193
  easing: easing.map((e) => easingToFn({ easing: e, forceSpringAllowTail })),
8162
8194
  extrapolateLeft: clamping.left,
8163
8195
  extrapolateRight: clamping.right,
8196
+ output: status.output,
8164
8197
  posterize: status.posterize
8165
8198
  });
8166
8199
  } catch {
@@ -8401,7 +8434,7 @@ var getFlatSchemaWithAllKeys = (schema) => {
8401
8434
  const out = {};
8402
8435
  const addKey = (key, field) => {
8403
8436
  if (key in out) {
8404
- throw new Error(`Duplicate key "${key}" in schema: discriminated union variants must not share keys`);
8437
+ return;
8405
8438
  }
8406
8439
  out[key] = field;
8407
8440
  };
@@ -14280,6 +14313,22 @@ var Img = withInteractivitySchema({
14280
14313
  supportsEffects: true
14281
14314
  });
14282
14315
  addSequenceStackTraces(Img);
14316
+ var sourcePathToIdentityPrefix = (packageName) => {
14317
+ if (packageName === "remotion") {
14318
+ return "dev.remotion.remotion";
14319
+ }
14320
+ if (packageName.startsWith("@remotion/")) {
14321
+ const normalizedPackageName = packageName.slice("@remotion/".length).replace(/-([a-z])/g, (_, char) => char.toUpperCase());
14322
+ return `dev.remotion.${normalizedPackageName}`;
14323
+ }
14324
+ throw new Error(`Unsupported Remotion package name: ${packageName}`);
14325
+ };
14326
+ var makeRemotionComponentIdentity = ({
14327
+ packageName,
14328
+ componentName
14329
+ }) => {
14330
+ return `${sourcePathToIdentityPrefix(packageName)}.${componentName}`;
14331
+ };
14283
14332
  var interactiveElementSchema = {
14284
14333
  ...baseSchema,
14285
14334
  ...transformSchema,
@@ -14293,6 +14342,11 @@ var setRef = (ref, value) => {
14293
14342
  ref.current = value;
14294
14343
  }
14295
14344
  };
14345
+ var withSchema = (options) => {
14346
+ const Wrapped = withInteractivitySchema(options);
14347
+ addSequenceStackTraces(Wrapped);
14348
+ return Wrapped;
14349
+ };
14296
14350
  var makeInteractiveElement = (tag, displayName) => {
14297
14351
  const Inner = forwardRef12((propsWithControls, ref) => {
14298
14352
  const {
@@ -14332,15 +14386,17 @@ var makeInteractiveElement = (tag, displayName) => {
14332
14386
  });
14333
14387
  });
14334
14388
  Inner.displayName = displayName;
14335
- const Wrapped = withInteractivitySchema({
14389
+ const Wrapped = withSchema({
14336
14390
  Component: Inner,
14337
14391
  componentName: displayName,
14338
- componentIdentity: `dev.remotion.remotion.${displayName.slice(1, -1)}`,
14392
+ componentIdentity: makeRemotionComponentIdentity({
14393
+ packageName: "remotion",
14394
+ componentName: displayName.slice(1, -1)
14395
+ }),
14339
14396
  schema: interactiveElementSchema,
14340
14397
  supportsEffects: false
14341
14398
  });
14342
14399
  Wrapped.displayName = displayName;
14343
- addSequenceStackTraces(Wrapped);
14344
14400
  return Wrapped;
14345
14401
  };
14346
14402
  var Interactive = {
@@ -14349,7 +14405,8 @@ var Interactive = {
14349
14405
  textSchema,
14350
14406
  premountSchema,
14351
14407
  sequenceSchema,
14352
- withSchema: withInteractivitySchema,
14408
+ withSchema,
14409
+ _internalMakeRemotionComponentIdentity: makeRemotionComponentIdentity,
14353
14410
  A: makeInteractiveElement("a", "<Interactive.A>"),
14354
14411
  Article: makeInteractiveElement("article", "<Interactive.Article>"),
14355
14412
  Aside: makeInteractiveElement("aside", "<Interactive.Aside>"),
@@ -16832,7 +16889,6 @@ var Arrow = Interactive.withSchema({
16832
16889
  schema: arrowSchema,
16833
16890
  supportsEffects: true
16834
16891
  });
16835
- Internals.addSequenceStackTraces(Arrow);
16836
16892
  var shortenVector = (vector, radius) => {
16837
16893
  const [x, y] = vector;
16838
16894
  const currentLength = Math.sqrt(x * x + y * y);
@@ -17257,7 +17313,6 @@ var Callout = Interactive.withSchema({
17257
17313
  schema: calloutSchema,
17258
17314
  supportsEffects: true
17259
17315
  });
17260
- Internals.addSequenceStackTraces(Callout);
17261
17316
  var makeCircle = ({ radius }) => {
17262
17317
  const instructions = [
17263
17318
  {
@@ -17320,7 +17375,6 @@ var Circle = Interactive.withSchema({
17320
17375
  schema: circleSchema,
17321
17376
  supportsEffects: true
17322
17377
  });
17323
- Internals.addSequenceStackTraces(Circle);
17324
17378
  var makeEllipse = ({ rx, ry }) => {
17325
17379
  const instructions = [
17326
17380
  {
@@ -17378,7 +17432,6 @@ var Ellipse = Interactive.withSchema({
17378
17432
  schema: ellipseSchema,
17379
17433
  supportsEffects: true
17380
17434
  });
17381
- Internals.addSequenceStackTraces(Ellipse);
17382
17435
  var makeHeart = ({
17383
17436
  height,
17384
17437
  aspectRatio = 1.1,
@@ -17517,7 +17570,6 @@ var Heart = Interactive.withSchema({
17517
17570
  schema: heartSchema,
17518
17571
  supportsEffects: true
17519
17572
  });
17520
- Internals.addSequenceStackTraces(Heart);
17521
17573
  var getCoord = ({
17522
17574
  counterClockwise,
17523
17575
  actualProgress,
@@ -17672,7 +17724,6 @@ var Pie = Interactive.withSchema({
17672
17724
  schema: pieSchema,
17673
17725
  supportsEffects: true
17674
17726
  });
17675
- Internals.addSequenceStackTraces(Pie);
17676
17727
  function polygon({
17677
17728
  points,
17678
17729
  radius,
@@ -17772,7 +17823,6 @@ var Polygon = Interactive.withSchema({
17772
17823
  schema: polygonSchema,
17773
17824
  supportsEffects: true
17774
17825
  });
17775
- Internals.addSequenceStackTraces(Polygon);
17776
17826
  var makeRect = ({
17777
17827
  width,
17778
17828
  height,
@@ -17839,7 +17889,6 @@ var Rect = Interactive.withSchema({
17839
17889
  schema: rectSchema,
17840
17890
  supportsEffects: true
17841
17891
  });
17842
- Internals.addSequenceStackTraces(Rect);
17843
17892
  var KAPPA = 0.5522847498307936;
17844
17893
  var CAP_HANDLE = 4 / 3;
17845
17894
  var curve = ({
@@ -18051,7 +18100,6 @@ var Spark = Interactive.withSchema({
18051
18100
  schema: sparkSchema,
18052
18101
  supportsEffects: true
18053
18102
  });
18054
- Internals.addSequenceStackTraces(Spark);
18055
18103
  var star = ({
18056
18104
  centerX,
18057
18105
  centerY,
@@ -18162,7 +18210,6 @@ var Star = Interactive.withSchema({
18162
18210
  schema: starSchema,
18163
18211
  supportsEffects: true
18164
18212
  });
18165
- Internals.addSequenceStackTraces(Star);
18166
18213
  var makeTriangle = ({
18167
18214
  length: length2,
18168
18215
  direction = "right",
@@ -18269,7 +18316,6 @@ var Triangle = Interactive.withSchema({
18269
18316
  schema: triangleSchema,
18270
18317
  supportsEffects: true
18271
18318
  });
18272
- Internals.addSequenceStackTraces(Triangle);
18273
18319
 
18274
18320
  // ../svg-3d-engine/dist/esm/index.mjs
18275
18321
  function truthy2(value) {