@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.
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
@@ -22613,26 +22613,20 @@ var continueRenderInternal = ({
22613
22613
  if (typeof handle !== "number") {
22614
22614
  throw new TypeError("The parameter passed into continueRender() must be the return value of delayRender() which is a number. Got: " + JSON.stringify(handle));
22615
22615
  }
22616
- scope.remotion_delayRenderHandles = scope.remotion_delayRenderHandles.filter((h) => {
22617
- if (h === handle) {
22618
- if (environment.isRendering && scope !== undefined) {
22619
- if (!scope.remotion_delayRenderTimeouts[handle]) {
22620
- return false;
22621
- }
22622
- const { label: label2, startTime, timeout } = scope.remotion_delayRenderTimeouts[handle];
22623
- clearTimeout(timeout);
22624
- const message = [
22625
- label2 ? `"${label2}"` : "A handle",
22626
- DELAY_RENDER_CLEAR_TOKEN,
22627
- `${Date.now() - startTime}ms`
22628
- ].filter(truthy).join(" ");
22629
- Log.verbose({ logLevel, tag: "delayRender()" }, message);
22630
- delete scope.remotion_delayRenderTimeouts[handle];
22631
- }
22632
- return false;
22633
- }
22634
- return true;
22635
- });
22616
+ const handleExists = scope.remotion_delayRenderHandles.includes(handle);
22617
+ const timeoutEntry = scope.remotion_delayRenderTimeouts[handle];
22618
+ if (handleExists && environment.isRendering && timeoutEntry) {
22619
+ const { label: label2, startTime, timeout } = timeoutEntry;
22620
+ clearTimeout(timeout);
22621
+ const message = [
22622
+ label2 ? `"${label2}"` : "A handle",
22623
+ DELAY_RENDER_CLEAR_TOKEN,
22624
+ `${Date.now() - startTime}ms`
22625
+ ].filter(truthy).join(" ");
22626
+ Log.verbose({ logLevel, tag: "delayRender()" }, message);
22627
+ delete scope.remotion_delayRenderTimeouts[handle];
22628
+ }
22629
+ scope.remotion_delayRenderHandles = scope.remotion_delayRenderHandles.filter((h) => h !== handle);
22636
22630
  if (scope.remotion_delayRenderHandles.length === 0) {
22637
22631
  scope.remotion_renderReady = true;
22638
22632
  }
@@ -22905,7 +22899,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
22905
22899
  var addSequenceStackTraces = (component) => {
22906
22900
  componentsToAddStacksTo.push(component);
22907
22901
  };
22908
- var VERSION = "4.0.489";
22902
+ var VERSION = "4.0.490";
22909
22903
  var checkMultipleRemotionVersions = () => {
22910
22904
  if (typeof globalThis === "undefined") {
22911
22905
  return;
@@ -23286,7 +23280,8 @@ var transformSchema = {
23286
23280
  max: 100,
23287
23281
  step: 0.01,
23288
23282
  default: 1,
23289
- description: "Scale"
23283
+ description: "Scale",
23284
+ defaultKeyframeOutput: "perceptual-scale"
23290
23285
  },
23291
23286
  "style.rotate": {
23292
23287
  type: "rotation-css",
@@ -24090,8 +24085,20 @@ var serializeStringInterpolationValue = ({
24090
24085
  }
24091
24086
  return values.slice(0, dimensions).map((value, index) => `${stringifyNumber(value)}${units[index]}`).join(" ");
24092
24087
  };
24088
+ var toSignedArea = (scale) => {
24089
+ if (scale === 0) {
24090
+ return 0;
24091
+ }
24092
+ return Math.sign(scale) * scale * scale;
24093
+ };
24094
+ var fromSignedArea = (area) => {
24095
+ if (area === 0) {
24096
+ return 0;
24097
+ }
24098
+ return Math.sign(area) * Math.sqrt(Math.abs(area));
24099
+ };
24093
24100
  function interpolateFunction(input, inputRange, outputRange, options) {
24094
- const { extrapolateLeft, extrapolateRight, easing } = options;
24101
+ const { extrapolateLeft, extrapolateRight, easing, output } = options;
24095
24102
  let result = input;
24096
24103
  const [inputMin, inputMax] = inputRange;
24097
24104
  const [outputMin, outputMax] = outputRange;
@@ -24122,7 +24129,13 @@ function interpolateFunction(input, inputRange, outputRange, options) {
24122
24129
  }
24123
24130
  result = (result - inputMin) / (inputMax - inputMin);
24124
24131
  result = easing(result);
24125
- result = result * (outputMax - outputMin) + outputMin;
24132
+ if (output === "perceptual-scale") {
24133
+ const signedAreaMin = toSignedArea(outputMin);
24134
+ const signedAreaMax = toSignedArea(outputMax);
24135
+ result = fromSignedArea(result * (signedAreaMax - signedAreaMin) + signedAreaMin);
24136
+ } else {
24137
+ result = result * (outputMax - outputMin) + outputMin;
24138
+ }
24126
24139
  return result;
24127
24140
  }
24128
24141
  function findRange(input, inputRange) {
@@ -24135,6 +24148,9 @@ function findRange(input, inputRange) {
24135
24148
  return i - 1;
24136
24149
  }
24137
24150
  var defaultEasing = (num) => num;
24151
+ var resolveOutputOption = (output) => {
24152
+ return output ?? "linear";
24153
+ };
24138
24154
  var shouldExtendRightForEasing = (easing) => {
24139
24155
  return easing.remotionShouldExtendRight === true;
24140
24156
  };
@@ -24156,12 +24172,14 @@ var interpolateSegment = ({
24156
24172
  outputRange,
24157
24173
  easing,
24158
24174
  extrapolateLeft,
24159
- extrapolateRight
24175
+ extrapolateRight,
24176
+ output
24160
24177
  }) => {
24161
24178
  return interpolateFunction(input, inputRange, outputRange, {
24162
24179
  easing,
24163
24180
  extrapolateLeft,
24164
- extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing(easing) ? "extend" : extrapolateRight
24181
+ extrapolateRight: input > inputRange[1] && extrapolateRight === "clamp" && shouldExtendRightForEasing(easing) ? "extend" : extrapolateRight,
24182
+ output
24165
24183
  });
24166
24184
  };
24167
24185
  var interpolateNumber = ({
@@ -24170,6 +24188,7 @@ var interpolateNumber = ({
24170
24188
  outputRange,
24171
24189
  options
24172
24190
  }) => {
24191
+ const output = resolveOutputOption(options?.output);
24173
24192
  if (inputRange.length === 1) {
24174
24193
  return outputRange[0];
24175
24194
  }
@@ -24194,7 +24213,8 @@ var interpolateNumber = ({
24194
24213
  outputRange: [outputRange[range], outputRange[range + 1]],
24195
24214
  easing,
24196
24215
  extrapolateLeft,
24197
- extrapolateRight
24216
+ extrapolateRight,
24217
+ output
24198
24218
  });
24199
24219
  for (let segmentIndex = 0;segmentIndex < range; segmentIndex++) {
24200
24220
  const previousEasing = resolveEasingForSegment({
@@ -24214,7 +24234,8 @@ var interpolateNumber = ({
24214
24234
  outputRange: [outputRange[segmentIndex], outputRange[segmentIndex + 1]],
24215
24235
  easing: previousEasing,
24216
24236
  extrapolateLeft,
24217
- extrapolateRight: "extend"
24237
+ extrapolateRight: "extend",
24238
+ output
24218
24239
  });
24219
24240
  result += continuedSegmentValue - outputRange[segmentIndex + 1];
24220
24241
  }
@@ -24262,14 +24283,18 @@ var interpolateString = ({
24262
24283
  }
24263
24284
  }
24264
24285
  }
24265
- return serializeStringInterpolationValue({
24266
- kind,
24267
- values: [0, 0, 0].map((_, axis) => interpolateNumber({
24286
+ const values = [0, 0, 0];
24287
+ for (let axis = 0;axis < dimensions; axis++) {
24288
+ values[axis] = interpolateNumber({
24268
24289
  input,
24269
24290
  inputRange,
24270
24291
  outputRange: parsedOutputRange.map((parsed) => parsed.values[axis]),
24271
24292
  options
24272
- })),
24293
+ });
24294
+ }
24295
+ return serializeStringInterpolationValue({
24296
+ kind,
24297
+ values,
24273
24298
  units,
24274
24299
  dimensions
24275
24300
  });
@@ -24353,6 +24378,12 @@ function assertValidInterpolatePosterizeOption(posterize) {
24353
24378
  throw new Error(`posterize must be a positive finite number, but got ${posterize}`);
24354
24379
  }
24355
24380
  }
24381
+ function assertValidInterpolateOutputOption(output) {
24382
+ if (output === undefined || output === "linear" || output === "perceptual-scale") {
24383
+ return;
24384
+ }
24385
+ throw new Error(`output must be "linear" or "perceptual-scale", but got ${String(output)}`);
24386
+ }
24356
24387
  function interpolate(input, inputRange, outputRange, options) {
24357
24388
  if (typeof input === "undefined") {
24358
24389
  throw new Error("input can not be undefined");
@@ -24370,6 +24401,7 @@ function interpolate(input, inputRange, outputRange, options) {
24370
24401
  checkValidInputRange(inputRange);
24371
24402
  assertValidInterpolateEasingOption(options?.easing, inputRange.length);
24372
24403
  assertValidInterpolatePosterizeOption(options?.posterize);
24404
+ assertValidInterpolateOutputOption(options?.output);
24373
24405
  if (typeof input !== "number") {
24374
24406
  throw new TypeError("Cannot interpolate an input which is not a number");
24375
24407
  }
@@ -25314,6 +25346,7 @@ var interpolateKeyframedStatus = ({
25314
25346
  easing: easing.map((e) => easingToFn({ easing: e, forceSpringAllowTail })),
25315
25347
  extrapolateLeft: clamping.left,
25316
25348
  extrapolateRight: clamping.right,
25349
+ output: status.output,
25317
25350
  posterize: status.posterize
25318
25351
  });
25319
25352
  } catch {
@@ -25554,7 +25587,7 @@ var getFlatSchemaWithAllKeys = (schema) => {
25554
25587
  const out = {};
25555
25588
  const addKey = (key, field) => {
25556
25589
  if (key in out) {
25557
- throw new Error(`Duplicate key "${key}" in schema: discriminated union variants must not share keys`);
25590
+ return;
25558
25591
  }
25559
25592
  out[key] = field;
25560
25593
  };
@@ -31433,6 +31466,22 @@ var Img = withInteractivitySchema({
31433
31466
  supportsEffects: true
31434
31467
  });
31435
31468
  addSequenceStackTraces(Img);
31469
+ var sourcePathToIdentityPrefix = (packageName) => {
31470
+ if (packageName === "remotion") {
31471
+ return "dev.remotion.remotion";
31472
+ }
31473
+ if (packageName.startsWith("@remotion/")) {
31474
+ const normalizedPackageName = packageName.slice("@remotion/".length).replace(/-([a-z])/g, (_, char) => char.toUpperCase());
31475
+ return `dev.remotion.${normalizedPackageName}`;
31476
+ }
31477
+ throw new Error(`Unsupported Remotion package name: ${packageName}`);
31478
+ };
31479
+ var makeRemotionComponentIdentity = ({
31480
+ packageName,
31481
+ componentName
31482
+ }) => {
31483
+ return `${sourcePathToIdentityPrefix(packageName)}.${componentName}`;
31484
+ };
31436
31485
  var interactiveElementSchema = {
31437
31486
  ...baseSchema,
31438
31487
  ...transformSchema,
@@ -31446,6 +31495,11 @@ var setRef = (ref, value) => {
31446
31495
  ref.current = value;
31447
31496
  }
31448
31497
  };
31498
+ var withSchema = (options) => {
31499
+ const Wrapped = withInteractivitySchema(options);
31500
+ addSequenceStackTraces(Wrapped);
31501
+ return Wrapped;
31502
+ };
31449
31503
  var makeInteractiveElement = (tag, displayName) => {
31450
31504
  const Inner = forwardRef12((propsWithControls, ref) => {
31451
31505
  const {
@@ -31485,15 +31539,17 @@ var makeInteractiveElement = (tag, displayName) => {
31485
31539
  });
31486
31540
  });
31487
31541
  Inner.displayName = displayName;
31488
- const Wrapped = withInteractivitySchema({
31542
+ const Wrapped = withSchema({
31489
31543
  Component: Inner,
31490
31544
  componentName: displayName,
31491
- componentIdentity: `dev.remotion.remotion.${displayName.slice(1, -1)}`,
31545
+ componentIdentity: makeRemotionComponentIdentity({
31546
+ packageName: "remotion",
31547
+ componentName: displayName.slice(1, -1)
31548
+ }),
31492
31549
  schema: interactiveElementSchema,
31493
31550
  supportsEffects: false
31494
31551
  });
31495
31552
  Wrapped.displayName = displayName;
31496
- addSequenceStackTraces(Wrapped);
31497
31553
  return Wrapped;
31498
31554
  };
31499
31555
  var Interactive = {
@@ -31502,7 +31558,8 @@ var Interactive = {
31502
31558
  textSchema,
31503
31559
  premountSchema,
31504
31560
  sequenceSchema,
31505
- withSchema: withInteractivitySchema,
31561
+ withSchema,
31562
+ _internalMakeRemotionComponentIdentity: makeRemotionComponentIdentity,
31506
31563
  A: makeInteractiveElement("a", "<Interactive.A>"),
31507
31564
  Article: makeInteractiveElement("article", "<Interactive.Article>"),
31508
31565
  Aside: makeInteractiveElement("aside", "<Interactive.Aside>"),
@@ -33985,7 +34042,6 @@ var Arrow = Interactive.withSchema({
33985
34042
  schema: arrowSchema,
33986
34043
  supportsEffects: true
33987
34044
  });
33988
- Internals.addSequenceStackTraces(Arrow);
33989
34045
  var shortenVector = (vector, radius) => {
33990
34046
  const [x, y] = vector;
33991
34047
  const currentLength = Math.sqrt(x * x + y * y);
@@ -34410,7 +34466,6 @@ var Callout = Interactive.withSchema({
34410
34466
  schema: calloutSchema,
34411
34467
  supportsEffects: true
34412
34468
  });
34413
- Internals.addSequenceStackTraces(Callout);
34414
34469
  var makeCircle = ({ radius }) => {
34415
34470
  const instructions = [
34416
34471
  {
@@ -34473,7 +34528,6 @@ var Circle = Interactive.withSchema({
34473
34528
  schema: circleSchema,
34474
34529
  supportsEffects: true
34475
34530
  });
34476
- Internals.addSequenceStackTraces(Circle);
34477
34531
  var makeEllipse = ({ rx, ry }) => {
34478
34532
  const instructions = [
34479
34533
  {
@@ -34531,7 +34585,6 @@ var Ellipse = Interactive.withSchema({
34531
34585
  schema: ellipseSchema,
34532
34586
  supportsEffects: true
34533
34587
  });
34534
- Internals.addSequenceStackTraces(Ellipse);
34535
34588
  var makeHeart = ({
34536
34589
  height,
34537
34590
  aspectRatio = 1.1,
@@ -34670,7 +34723,6 @@ var Heart = Interactive.withSchema({
34670
34723
  schema: heartSchema,
34671
34724
  supportsEffects: true
34672
34725
  });
34673
- Internals.addSequenceStackTraces(Heart);
34674
34726
  var getCoord = ({
34675
34727
  counterClockwise,
34676
34728
  actualProgress,
@@ -34825,7 +34877,6 @@ var Pie = Interactive.withSchema({
34825
34877
  schema: pieSchema,
34826
34878
  supportsEffects: true
34827
34879
  });
34828
- Internals.addSequenceStackTraces(Pie);
34829
34880
  function polygon({
34830
34881
  points,
34831
34882
  radius,
@@ -34925,7 +34976,6 @@ var Polygon = Interactive.withSchema({
34925
34976
  schema: polygonSchema,
34926
34977
  supportsEffects: true
34927
34978
  });
34928
- Internals.addSequenceStackTraces(Polygon);
34929
34979
  var makeRect = ({
34930
34980
  width,
34931
34981
  height,
@@ -34992,7 +35042,6 @@ var Rect = Interactive.withSchema({
34992
35042
  schema: rectSchema,
34993
35043
  supportsEffects: true
34994
35044
  });
34995
- Internals.addSequenceStackTraces(Rect);
34996
35045
  var KAPPA = 0.5522847498307936;
34997
35046
  var CAP_HANDLE = 4 / 3;
34998
35047
  var curve = ({
@@ -35204,7 +35253,6 @@ var Spark = Interactive.withSchema({
35204
35253
  schema: sparkSchema,
35205
35254
  supportsEffects: true
35206
35255
  });
35207
- Internals.addSequenceStackTraces(Spark);
35208
35256
  var star = ({
35209
35257
  centerX,
35210
35258
  centerY,
@@ -35315,7 +35363,6 @@ var Star = Interactive.withSchema({
35315
35363
  schema: starSchema,
35316
35364
  supportsEffects: true
35317
35365
  });
35318
- Internals.addSequenceStackTraces(Star);
35319
35366
  var makeTriangle = ({
35320
35367
  length: length2,
35321
35368
  direction = "right",
@@ -35422,7 +35469,6 @@ var Triangle = Interactive.withSchema({
35422
35469
  schema: triangleSchema,
35423
35470
  supportsEffects: true
35424
35471
  });
35425
- Internals.addSequenceStackTraces(Triangle);
35426
35472
 
35427
35473
  // ../svg-3d-engine/dist/esm/index.mjs
35428
35474
  function truthy2(value) {