@remotion/promo-pages 4.0.483 → 4.0.485

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/design.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.483";
5568
+ var VERSION = "4.0.485";
5569
5569
  var checkMultipleRemotionVersions = () => {
5570
5570
  if (typeof globalThis === "undefined") {
5571
5571
  return;
@@ -6036,6 +6036,14 @@ var textSchema = {
6036
6036
  hiddenFromList: false
6037
6037
  }
6038
6038
  };
6039
+ var textContentSchema = {
6040
+ children: {
6041
+ type: "text-content",
6042
+ default: "",
6043
+ description: "Text",
6044
+ keyframable: false
6045
+ }
6046
+ };
6039
6047
  var premountSchema = {
6040
6048
  premountFor: {
6041
6049
  type: "number",
@@ -8403,10 +8411,21 @@ var getNestedValue = (obj, key) => {
8403
8411
  }
8404
8412
  return current;
8405
8413
  };
8406
- var readValuesFromProps = (props, keys) => {
8414
+ var getRuntimeValueForSchemaKey = ({
8415
+ flatSchema,
8416
+ key,
8417
+ props
8418
+ }) => {
8419
+ const value = getNestedValue(props, key);
8420
+ if (flatSchema[key]?.type === "text-content" && typeof value !== "string") {
8421
+ return;
8422
+ }
8423
+ return value;
8424
+ };
8425
+ var readValuesFromProps = (props, keys, flatSchema) => {
8407
8426
  const out = {};
8408
8427
  for (const key of keys) {
8409
- out[key] = getNestedValue(props, key);
8428
+ out[key] = flatSchema ? getRuntimeValueForSchemaKey({ flatSchema, key, props }) : getNestedValue(props, key);
8410
8429
  }
8411
8430
  return out;
8412
8431
  };
@@ -8414,6 +8433,7 @@ var selectActiveKeys = (schema, values) => {
8414
8433
  return Object.keys(flattenActiveSchema(schema, (key) => values[key]));
8415
8434
  };
8416
8435
  var mergeValues = ({
8436
+ flatSchema,
8417
8437
  props,
8418
8438
  valuesDotNotation,
8419
8439
  schemaKeys,
@@ -8422,6 +8442,9 @@ var mergeValues = ({
8422
8442
  const merged = { ...props };
8423
8443
  for (const key of schemaKeys) {
8424
8444
  const value = valuesDotNotation[key];
8445
+ if (flatSchema[key]?.type === "text-content" && value === undefined) {
8446
+ continue;
8447
+ }
8425
8448
  const parts = key.split(".");
8426
8449
  if (parts.length === 1) {
8427
8450
  merged[key] = value;
@@ -8439,7 +8462,8 @@ var mergeValues = ({
8439
8462
  }
8440
8463
  current[parts[parts.length - 1]] = value;
8441
8464
  }
8442
- deleteNestedKey(merged, propsToDelete);
8465
+ const propsToDeleteWithoutTextContent = new Set([...propsToDelete].filter((key) => !(flatSchema[key]?.type === "text-content" && valuesDotNotation[key] === undefined)));
8466
+ deleteNestedKey(merged, propsToDeleteWithoutTextContent);
8443
8467
  return merged;
8444
8468
  };
8445
8469
  var stackToOverrideMap = {};
@@ -8486,8 +8510,12 @@ var withInteractivitySchema = ({
8486
8510
  return newOverrideId;
8487
8511
  });
8488
8512
  const nodePath = nodePathMapping.overrideIdToNodePathMappings[overrideId] ?? null;
8489
- const runtimeValues = flatKeys.map((k) => getNestedValue(props, k));
8490
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys), runtimeValues);
8513
+ const runtimeValues = flatKeys.map((key) => getRuntimeValueForSchemaKey({
8514
+ flatSchema,
8515
+ key,
8516
+ props
8517
+ }));
8518
+ const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8491
8519
  const controls = useMemo13(() => {
8492
8520
  return {
8493
8521
  schema: schemaWithSequenceName,
@@ -8515,6 +8543,7 @@ var withInteractivitySchema = ({
8515
8543
  ]);
8516
8544
  const activeKeys = selectActiveKeys(schemaWithSequenceName, valuesDotNotation);
8517
8545
  const mergedProps = mergeValues({
8546
+ flatSchema,
8518
8547
  props,
8519
8548
  valuesDotNotation,
8520
8549
  schemaKeys: activeKeys,
@@ -11138,7 +11167,7 @@ var getTimelineDuration = ({
11138
11167
  trimAfter
11139
11168
  });
11140
11169
  if (parentSequenceDurationInFrames !== null) {
11141
- const cappedDuration = Math.min(parentSequenceDurationInFrames * playbackRate, mediaDuration);
11170
+ const cappedDuration = Math.min(parentSequenceDurationInFrames, mediaDuration);
11142
11171
  return Number(cappedDuration.toFixed(10));
11143
11172
  }
11144
11173
  return mediaDuration;
@@ -13936,7 +13965,8 @@ addSequenceStackTraces(Img);
13936
13965
  var interactiveElementSchema = {
13937
13966
  ...baseSchema,
13938
13967
  ...transformSchema,
13939
- ...textSchema
13968
+ ...textSchema,
13969
+ ...textContentSchema
13940
13970
  };
13941
13971
  var setRef = (ref, value) => {
13942
13972
  if (typeof ref === "function") {
package/dist/experts.js CHANGED
@@ -2335,7 +2335,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
2335
2335
  var addSequenceStackTraces = (component) => {
2336
2336
  componentsToAddStacksTo.push(component);
2337
2337
  };
2338
- var VERSION = "4.0.483";
2338
+ var VERSION = "4.0.485";
2339
2339
  var checkMultipleRemotionVersions = () => {
2340
2340
  if (typeof globalThis === "undefined") {
2341
2341
  return;
@@ -2806,6 +2806,14 @@ var textSchema = {
2806
2806
  hiddenFromList: false
2807
2807
  }
2808
2808
  };
2809
+ var textContentSchema = {
2810
+ children: {
2811
+ type: "text-content",
2812
+ default: "",
2813
+ description: "Text",
2814
+ keyframable: false
2815
+ }
2816
+ };
2809
2817
  var premountSchema = {
2810
2818
  premountFor: {
2811
2819
  type: "number",
@@ -5173,10 +5181,21 @@ var getNestedValue = (obj, key) => {
5173
5181
  }
5174
5182
  return current;
5175
5183
  };
5176
- var readValuesFromProps = (props, keys) => {
5184
+ var getRuntimeValueForSchemaKey = ({
5185
+ flatSchema,
5186
+ key,
5187
+ props
5188
+ }) => {
5189
+ const value = getNestedValue(props, key);
5190
+ if (flatSchema[key]?.type === "text-content" && typeof value !== "string") {
5191
+ return;
5192
+ }
5193
+ return value;
5194
+ };
5195
+ var readValuesFromProps = (props, keys, flatSchema) => {
5177
5196
  const out = {};
5178
5197
  for (const key of keys) {
5179
- out[key] = getNestedValue(props, key);
5198
+ out[key] = flatSchema ? getRuntimeValueForSchemaKey({ flatSchema, key, props }) : getNestedValue(props, key);
5180
5199
  }
5181
5200
  return out;
5182
5201
  };
@@ -5184,6 +5203,7 @@ var selectActiveKeys = (schema, values) => {
5184
5203
  return Object.keys(flattenActiveSchema(schema, (key) => values[key]));
5185
5204
  };
5186
5205
  var mergeValues = ({
5206
+ flatSchema,
5187
5207
  props,
5188
5208
  valuesDotNotation,
5189
5209
  schemaKeys,
@@ -5192,6 +5212,9 @@ var mergeValues = ({
5192
5212
  const merged = { ...props };
5193
5213
  for (const key of schemaKeys) {
5194
5214
  const value = valuesDotNotation[key];
5215
+ if (flatSchema[key]?.type === "text-content" && value === undefined) {
5216
+ continue;
5217
+ }
5195
5218
  const parts = key.split(".");
5196
5219
  if (parts.length === 1) {
5197
5220
  merged[key] = value;
@@ -5209,7 +5232,8 @@ var mergeValues = ({
5209
5232
  }
5210
5233
  current[parts[parts.length - 1]] = value;
5211
5234
  }
5212
- deleteNestedKey(merged, propsToDelete);
5235
+ const propsToDeleteWithoutTextContent = new Set([...propsToDelete].filter((key) => !(flatSchema[key]?.type === "text-content" && valuesDotNotation[key] === undefined)));
5236
+ deleteNestedKey(merged, propsToDeleteWithoutTextContent);
5213
5237
  return merged;
5214
5238
  };
5215
5239
  var stackToOverrideMap = {};
@@ -5256,8 +5280,12 @@ var withInteractivitySchema = ({
5256
5280
  return newOverrideId;
5257
5281
  });
5258
5282
  const nodePath = nodePathMapping.overrideIdToNodePathMappings[overrideId] ?? null;
5259
- const runtimeValues = flatKeys.map((k) => getNestedValue(props, k));
5260
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys), runtimeValues);
5283
+ const runtimeValues = flatKeys.map((key) => getRuntimeValueForSchemaKey({
5284
+ flatSchema,
5285
+ key,
5286
+ props
5287
+ }));
5288
+ const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
5261
5289
  const controls = useMemo13(() => {
5262
5290
  return {
5263
5291
  schema: schemaWithSequenceName,
@@ -5285,6 +5313,7 @@ var withInteractivitySchema = ({
5285
5313
  ]);
5286
5314
  const activeKeys = selectActiveKeys(schemaWithSequenceName, valuesDotNotation);
5287
5315
  const mergedProps = mergeValues({
5316
+ flatSchema,
5288
5317
  props,
5289
5318
  valuesDotNotation,
5290
5319
  schemaKeys: activeKeys,
@@ -7908,7 +7937,7 @@ var getTimelineDuration = ({
7908
7937
  trimAfter
7909
7938
  });
7910
7939
  if (parentSequenceDurationInFrames !== null) {
7911
- const cappedDuration = Math.min(parentSequenceDurationInFrames * playbackRate, mediaDuration);
7940
+ const cappedDuration = Math.min(parentSequenceDurationInFrames, mediaDuration);
7912
7941
  return Number(cappedDuration.toFixed(10));
7913
7942
  }
7914
7943
  return mediaDuration;
@@ -10706,7 +10735,8 @@ addSequenceStackTraces(Img);
10706
10735
  var interactiveElementSchema = {
10707
10736
  ...baseSchema,
10708
10737
  ...transformSchema,
10709
- ...textSchema
10738
+ ...textSchema,
10739
+ ...textContentSchema
10710
10740
  };
10711
10741
  var setRef = (ref, value) => {
10712
10742
  if (typeof ref === "function") {
@@ -5565,7 +5565,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
5565
5565
  var addSequenceStackTraces = (component) => {
5566
5566
  componentsToAddStacksTo.push(component);
5567
5567
  };
5568
- var VERSION = "4.0.483";
5568
+ var VERSION = "4.0.485";
5569
5569
  var checkMultipleRemotionVersions = () => {
5570
5570
  if (typeof globalThis === "undefined") {
5571
5571
  return;
@@ -6036,6 +6036,14 @@ var textSchema = {
6036
6036
  hiddenFromList: false
6037
6037
  }
6038
6038
  };
6039
+ var textContentSchema = {
6040
+ children: {
6041
+ type: "text-content",
6042
+ default: "",
6043
+ description: "Text",
6044
+ keyframable: false
6045
+ }
6046
+ };
6039
6047
  var premountSchema = {
6040
6048
  premountFor: {
6041
6049
  type: "number",
@@ -8403,10 +8411,21 @@ var getNestedValue = (obj, key) => {
8403
8411
  }
8404
8412
  return current;
8405
8413
  };
8406
- var readValuesFromProps = (props, keys) => {
8414
+ var getRuntimeValueForSchemaKey = ({
8415
+ flatSchema,
8416
+ key,
8417
+ props
8418
+ }) => {
8419
+ const value = getNestedValue(props, key);
8420
+ if (flatSchema[key]?.type === "text-content" && typeof value !== "string") {
8421
+ return;
8422
+ }
8423
+ return value;
8424
+ };
8425
+ var readValuesFromProps = (props, keys, flatSchema) => {
8407
8426
  const out = {};
8408
8427
  for (const key of keys) {
8409
- out[key] = getNestedValue(props, key);
8428
+ out[key] = flatSchema ? getRuntimeValueForSchemaKey({ flatSchema, key, props }) : getNestedValue(props, key);
8410
8429
  }
8411
8430
  return out;
8412
8431
  };
@@ -8414,6 +8433,7 @@ var selectActiveKeys = (schema, values) => {
8414
8433
  return Object.keys(flattenActiveSchema(schema, (key) => values[key]));
8415
8434
  };
8416
8435
  var mergeValues = ({
8436
+ flatSchema,
8417
8437
  props,
8418
8438
  valuesDotNotation,
8419
8439
  schemaKeys,
@@ -8422,6 +8442,9 @@ var mergeValues = ({
8422
8442
  const merged = { ...props };
8423
8443
  for (const key of schemaKeys) {
8424
8444
  const value = valuesDotNotation[key];
8445
+ if (flatSchema[key]?.type === "text-content" && value === undefined) {
8446
+ continue;
8447
+ }
8425
8448
  const parts = key.split(".");
8426
8449
  if (parts.length === 1) {
8427
8450
  merged[key] = value;
@@ -8439,7 +8462,8 @@ var mergeValues = ({
8439
8462
  }
8440
8463
  current[parts[parts.length - 1]] = value;
8441
8464
  }
8442
- deleteNestedKey(merged, propsToDelete);
8465
+ const propsToDeleteWithoutTextContent = new Set([...propsToDelete].filter((key) => !(flatSchema[key]?.type === "text-content" && valuesDotNotation[key] === undefined)));
8466
+ deleteNestedKey(merged, propsToDeleteWithoutTextContent);
8443
8467
  return merged;
8444
8468
  };
8445
8469
  var stackToOverrideMap = {};
@@ -8486,8 +8510,12 @@ var withInteractivitySchema = ({
8486
8510
  return newOverrideId;
8487
8511
  });
8488
8512
  const nodePath = nodePathMapping.overrideIdToNodePathMappings[overrideId] ?? null;
8489
- const runtimeValues = flatKeys.map((k) => getNestedValue(props, k));
8490
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys), runtimeValues);
8513
+ const runtimeValues = flatKeys.map((key) => getRuntimeValueForSchemaKey({
8514
+ flatSchema,
8515
+ key,
8516
+ props
8517
+ }));
8518
+ const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8491
8519
  const controls = useMemo13(() => {
8492
8520
  return {
8493
8521
  schema: schemaWithSequenceName,
@@ -8515,6 +8543,7 @@ var withInteractivitySchema = ({
8515
8543
  ]);
8516
8544
  const activeKeys = selectActiveKeys(schemaWithSequenceName, valuesDotNotation);
8517
8545
  const mergedProps = mergeValues({
8546
+ flatSchema,
8518
8547
  props,
8519
8548
  valuesDotNotation,
8520
8549
  schemaKeys: activeKeys,
@@ -11138,7 +11167,7 @@ var getTimelineDuration = ({
11138
11167
  trimAfter
11139
11168
  });
11140
11169
  if (parentSequenceDurationInFrames !== null) {
11141
- const cappedDuration = Math.min(parentSequenceDurationInFrames * playbackRate, mediaDuration);
11170
+ const cappedDuration = Math.min(parentSequenceDurationInFrames, mediaDuration);
11142
11171
  return Number(cappedDuration.toFixed(10));
11143
11172
  }
11144
11173
  return mediaDuration;
@@ -13936,7 +13965,8 @@ addSequenceStackTraces(Img);
13936
13965
  var interactiveElementSchema = {
13937
13966
  ...baseSchema,
13938
13967
  ...transformSchema,
13939
- ...textSchema
13968
+ ...textSchema,
13969
+ ...textContentSchema
13940
13970
  };
13941
13971
  var setRef = (ref, value) => {
13942
13972
  if (typeof ref === "function") {
@@ -5565,7 +5565,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
5565
5565
  var addSequenceStackTraces = (component) => {
5566
5566
  componentsToAddStacksTo.push(component);
5567
5567
  };
5568
- var VERSION = "4.0.483";
5568
+ var VERSION = "4.0.485";
5569
5569
  var checkMultipleRemotionVersions = () => {
5570
5570
  if (typeof globalThis === "undefined") {
5571
5571
  return;
@@ -6036,6 +6036,14 @@ var textSchema = {
6036
6036
  hiddenFromList: false
6037
6037
  }
6038
6038
  };
6039
+ var textContentSchema = {
6040
+ children: {
6041
+ type: "text-content",
6042
+ default: "",
6043
+ description: "Text",
6044
+ keyframable: false
6045
+ }
6046
+ };
6039
6047
  var premountSchema = {
6040
6048
  premountFor: {
6041
6049
  type: "number",
@@ -8403,10 +8411,21 @@ var getNestedValue = (obj, key) => {
8403
8411
  }
8404
8412
  return current;
8405
8413
  };
8406
- var readValuesFromProps = (props, keys) => {
8414
+ var getRuntimeValueForSchemaKey = ({
8415
+ flatSchema,
8416
+ key,
8417
+ props
8418
+ }) => {
8419
+ const value = getNestedValue(props, key);
8420
+ if (flatSchema[key]?.type === "text-content" && typeof value !== "string") {
8421
+ return;
8422
+ }
8423
+ return value;
8424
+ };
8425
+ var readValuesFromProps = (props, keys, flatSchema) => {
8407
8426
  const out = {};
8408
8427
  for (const key of keys) {
8409
- out[key] = getNestedValue(props, key);
8428
+ out[key] = flatSchema ? getRuntimeValueForSchemaKey({ flatSchema, key, props }) : getNestedValue(props, key);
8410
8429
  }
8411
8430
  return out;
8412
8431
  };
@@ -8414,6 +8433,7 @@ var selectActiveKeys = (schema, values) => {
8414
8433
  return Object.keys(flattenActiveSchema(schema, (key) => values[key]));
8415
8434
  };
8416
8435
  var mergeValues = ({
8436
+ flatSchema,
8417
8437
  props,
8418
8438
  valuesDotNotation,
8419
8439
  schemaKeys,
@@ -8422,6 +8442,9 @@ var mergeValues = ({
8422
8442
  const merged = { ...props };
8423
8443
  for (const key of schemaKeys) {
8424
8444
  const value = valuesDotNotation[key];
8445
+ if (flatSchema[key]?.type === "text-content" && value === undefined) {
8446
+ continue;
8447
+ }
8425
8448
  const parts = key.split(".");
8426
8449
  if (parts.length === 1) {
8427
8450
  merged[key] = value;
@@ -8439,7 +8462,8 @@ var mergeValues = ({
8439
8462
  }
8440
8463
  current[parts[parts.length - 1]] = value;
8441
8464
  }
8442
- deleteNestedKey(merged, propsToDelete);
8465
+ const propsToDeleteWithoutTextContent = new Set([...propsToDelete].filter((key) => !(flatSchema[key]?.type === "text-content" && valuesDotNotation[key] === undefined)));
8466
+ deleteNestedKey(merged, propsToDeleteWithoutTextContent);
8443
8467
  return merged;
8444
8468
  };
8445
8469
  var stackToOverrideMap = {};
@@ -8486,8 +8510,12 @@ var withInteractivitySchema = ({
8486
8510
  return newOverrideId;
8487
8511
  });
8488
8512
  const nodePath = nodePathMapping.overrideIdToNodePathMappings[overrideId] ?? null;
8489
- const runtimeValues = flatKeys.map((k) => getNestedValue(props, k));
8490
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys), runtimeValues);
8513
+ const runtimeValues = flatKeys.map((key) => getRuntimeValueForSchemaKey({
8514
+ flatSchema,
8515
+ key,
8516
+ props
8517
+ }));
8518
+ const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
8491
8519
  const controls = useMemo13(() => {
8492
8520
  return {
8493
8521
  schema: schemaWithSequenceName,
@@ -8515,6 +8543,7 @@ var withInteractivitySchema = ({
8515
8543
  ]);
8516
8544
  const activeKeys = selectActiveKeys(schemaWithSequenceName, valuesDotNotation);
8517
8545
  const mergedProps = mergeValues({
8546
+ flatSchema,
8518
8547
  props,
8519
8548
  valuesDotNotation,
8520
8549
  schemaKeys: activeKeys,
@@ -11138,7 +11167,7 @@ var getTimelineDuration = ({
11138
11167
  trimAfter
11139
11168
  });
11140
11169
  if (parentSequenceDurationInFrames !== null) {
11141
- const cappedDuration = Math.min(parentSequenceDurationInFrames * playbackRate, mediaDuration);
11170
+ const cappedDuration = Math.min(parentSequenceDurationInFrames, mediaDuration);
11142
11171
  return Number(cappedDuration.toFixed(10));
11143
11172
  }
11144
11173
  return mediaDuration;
@@ -13936,7 +13965,8 @@ addSequenceStackTraces(Img);
13936
13965
  var interactiveElementSchema = {
13937
13966
  ...baseSchema,
13938
13967
  ...transformSchema,
13939
- ...textSchema
13968
+ ...textSchema,
13969
+ ...textContentSchema
13940
13970
  };
13941
13971
  var setRef = (ref, value) => {
13942
13972
  if (typeof ref === "function") {
@@ -26019,42 +26049,35 @@ var PromptsGalleryPage = ({ promptSubmissions, currentPage, totalPages }) => {
26019
26049
  children: "Remotion Skills"
26020
26050
  }),
26021
26051
  " ",
26022
- "and a coding agent like Claude Code, Codex, or OpenCode. Want to make your own?"
26052
+ "and coding agents like Claude Code, Codex, or OpenCode."
26023
26053
  ]
26024
26054
  })
26025
26055
  ]
26026
26056
  }),
26027
- /* @__PURE__ */ jsxs7("div", {
26057
+ /* @__PURE__ */ jsx47("div", {
26028
26058
  className: "flex items-center gap-2",
26029
- children: [
26030
- /* @__PURE__ */ jsxs7(Button, {
26031
- href: "/docs/ai/coding-agents",
26032
- className: "font-brand rounded-full bg-[#D97757] flex items-center text-white",
26033
- children: [
26034
- /* @__PURE__ */ jsx47("svg", {
26035
- width: "20",
26036
- height: "20",
26037
- viewBox: "0 0 149 149",
26038
- fill: "none",
26039
- xmlns: "http://www.w3.org/2000/svg",
26040
- style: { marginRight: 8 },
26041
- children: /* @__PURE__ */ jsx47("path", {
26042
- d: "M29.05 98.54L58.19 82.19L58.68 80.77L58.19 79.98H56.77L51.9 79.68L35.25 79.23L20.81 78.63L6.82 77.88L3.3 77.13L0 72.78L0.340004 70.61L3.3 68.62L7.54 68.99L16.91 69.63L30.97 70.6L41.17 71.2L56.28 72.77H58.68L59.02 71.8L58.2 71.2L57.56 70.6L43.01 60.74L27.26 50.32L19.01 44.32L14.55 41.28L12.3 38.43L11.33 32.21L15.38 27.75L20.82 28.12L22.21 28.49L27.72 32.73L39.49 41.84L54.86 53.16L57.11 55.03L58.01 54.39L58.12 53.94L57.11 52.25L48.75 37.14L39.83 21.77L35.86 15.4L34.81 11.58C34.44 10.01 34.17 8.69 34.17 7.08L38.78 0.820007L41.33 0L47.48 0.820007L50.07 3.07001L53.89 11.81L60.08 25.57L69.68 44.28L72.49 49.83L73.99 54.97L74.55 56.54H75.52V55.64L76.31 45.1L77.77 32.16L79.19 15.51L79.68 10.82L82 5.2L86.61 2.16L90.21 3.88L93.17 8.12L92.76 10.86L91 22.3L87.55 40.22L85.3 52.22H86.61L88.11 50.72L94.18 42.66L104.38 29.91L108.88 24.85L114.13 19.26L117.5 16.6H123.87L128.56 23.57L126.46 30.77L119.9 39.09L114.46 46.14L106.66 56.64L101.79 65.04L102.24 65.71L103.4 65.6L121.02 61.85L130.54 60.13L141.9 58.18L147.04 60.58L147.6 63.02L145.58 68.01L133.43 71.01L119.18 73.86L97.96 78.88L97.7 79.07L98 79.44L107.56 80.34L111.65 80.56H121.66L140.3 81.95L145.17 85.17L148.09 89.11L147.6 92.11L140.1 95.93L129.98 93.53L106.36 87.91L98.26 85.89H97.14V86.56L103.89 93.16L116.26 104.33L131.75 118.73L132.54 122.29L130.55 125.1L128.45 124.8L114.84 114.56L109.59 109.95L97.7 99.94H96.91V100.99L99.65 105L114.12 126.75L114.87 133.42L113.82 135.59L110.07 136.9L105.95 136.15L97.48 124.26L88.74 110.87L81.69 98.87L80.83 99.36L76.67 144.17L74.72 146.46L70.22 148.18L66.47 145.33L64.48 140.72L66.47 131.61L68.87 119.72L70.82 110.27L72.58 98.53L73.63 94.63L73.56 94.37L72.7 94.48L63.85 106.63L50.39 124.82L39.74 136.22L37.19 137.23L32.77 134.94L33.18 130.85L35.65 127.21L50.39 108.46L59.28 96.84L65.02 90.13L64.98 89.16H64.64L25.49 114.58L18.52 115.48L15.52 112.67L15.89 108.06L17.31 106.56L29.08 98.46L29.04 98.5L29.05 98.54Z",
26043
- fill: "#fff"
26044
- })
26045
- }),
26046
- /* @__PURE__ */ jsx47("div", {
26047
- className: "text-sm",
26048
- children: "Create your own video"
26059
+ children: /* @__PURE__ */ jsxs7(Button, {
26060
+ href: "/docs/ai/coding-agents",
26061
+ className: "font-brand rounded-full bg-[#D97757] flex items-center text-white",
26062
+ children: [
26063
+ /* @__PURE__ */ jsx47("svg", {
26064
+ width: "20",
26065
+ height: "20",
26066
+ viewBox: "0 0 149 149",
26067
+ fill: "none",
26068
+ xmlns: "http://www.w3.org/2000/svg",
26069
+ style: { marginRight: 8 },
26070
+ children: /* @__PURE__ */ jsx47("path", {
26071
+ d: "M29.05 98.54L58.19 82.19L58.68 80.77L58.19 79.98H56.77L51.9 79.68L35.25 79.23L20.81 78.63L6.82 77.88L3.3 77.13L0 72.78L0.340004 70.61L3.3 68.62L7.54 68.99L16.91 69.63L30.97 70.6L41.17 71.2L56.28 72.77H58.68L59.02 71.8L58.2 71.2L57.56 70.6L43.01 60.74L27.26 50.32L19.01 44.32L14.55 41.28L12.3 38.43L11.33 32.21L15.38 27.75L20.82 28.12L22.21 28.49L27.72 32.73L39.49 41.84L54.86 53.16L57.11 55.03L58.01 54.39L58.12 53.94L57.11 52.25L48.75 37.14L39.83 21.77L35.86 15.4L34.81 11.58C34.44 10.01 34.17 8.69 34.17 7.08L38.78 0.820007L41.33 0L47.48 0.820007L50.07 3.07001L53.89 11.81L60.08 25.57L69.68 44.28L72.49 49.83L73.99 54.97L74.55 56.54H75.52V55.64L76.31 45.1L77.77 32.16L79.19 15.51L79.68 10.82L82 5.2L86.61 2.16L90.21 3.88L93.17 8.12L92.76 10.86L91 22.3L87.55 40.22L85.3 52.22H86.61L88.11 50.72L94.18 42.66L104.38 29.91L108.88 24.85L114.13 19.26L117.5 16.6H123.87L128.56 23.57L126.46 30.77L119.9 39.09L114.46 46.14L106.66 56.64L101.79 65.04L102.24 65.71L103.4 65.6L121.02 61.85L130.54 60.13L141.9 58.18L147.04 60.58L147.6 63.02L145.58 68.01L133.43 71.01L119.18 73.86L97.96 78.88L97.7 79.07L98 79.44L107.56 80.34L111.65 80.56H121.66L140.3 81.95L145.17 85.17L148.09 89.11L147.6 92.11L140.1 95.93L129.98 93.53L106.36 87.91L98.26 85.89H97.14V86.56L103.89 93.16L116.26 104.33L131.75 118.73L132.54 122.29L130.55 125.1L128.45 124.8L114.84 114.56L109.59 109.95L97.7 99.94H96.91V100.99L99.65 105L114.12 126.75L114.87 133.42L113.82 135.59L110.07 136.9L105.95 136.15L97.48 124.26L88.74 110.87L81.69 98.87L80.83 99.36L76.67 144.17L74.72 146.46L70.22 148.18L66.47 145.33L64.48 140.72L66.47 131.61L68.87 119.72L70.82 110.27L72.58 98.53L73.63 94.63L73.56 94.37L72.7 94.48L63.85 106.63L50.39 124.82L39.74 136.22L37.19 137.23L32.77 134.94L33.18 130.85L35.65 127.21L50.39 108.46L59.28 96.84L65.02 90.13L64.98 89.16H64.64L25.49 114.58L18.52 115.48L15.52 112.67L15.89 108.06L17.31 106.56L29.08 98.46L29.04 98.5L29.05 98.54Z",
26072
+ fill: "#fff"
26049
26073
  })
26050
- ]
26051
- }),
26052
- /* @__PURE__ */ jsx47(Button, {
26053
- href: "/prompts/submit",
26054
- className: "font-brand rounded-full text-sm",
26055
- children: "Share your video"
26056
- })
26057
- ]
26074
+ }),
26075
+ /* @__PURE__ */ jsx47("div", {
26076
+ className: "text-sm",
26077
+ children: "Create your own video"
26078
+ })
26079
+ ]
26080
+ })
26058
26081
  }),
26059
26082
  /* @__PURE__ */ jsx47("div", {
26060
26083
  className: "h-12"
@@ -22899,7 +22899,7 @@ var getComponentsToAddStacksTo = () => componentsToAddStacksTo;
22899
22899
  var addSequenceStackTraces = (component) => {
22900
22900
  componentsToAddStacksTo.push(component);
22901
22901
  };
22902
- var VERSION = "4.0.483";
22902
+ var VERSION = "4.0.485";
22903
22903
  var checkMultipleRemotionVersions = () => {
22904
22904
  if (typeof globalThis === "undefined") {
22905
22905
  return;
@@ -23370,6 +23370,14 @@ var textSchema = {
23370
23370
  hiddenFromList: false
23371
23371
  }
23372
23372
  };
23373
+ var textContentSchema = {
23374
+ children: {
23375
+ type: "text-content",
23376
+ default: "",
23377
+ description: "Text",
23378
+ keyframable: false
23379
+ }
23380
+ };
23373
23381
  var premountSchema = {
23374
23382
  premountFor: {
23375
23383
  type: "number",
@@ -25737,10 +25745,21 @@ var getNestedValue = (obj, key) => {
25737
25745
  }
25738
25746
  return current;
25739
25747
  };
25740
- var readValuesFromProps = (props, keys) => {
25748
+ var getRuntimeValueForSchemaKey = ({
25749
+ flatSchema,
25750
+ key,
25751
+ props
25752
+ }) => {
25753
+ const value = getNestedValue(props, key);
25754
+ if (flatSchema[key]?.type === "text-content" && typeof value !== "string") {
25755
+ return;
25756
+ }
25757
+ return value;
25758
+ };
25759
+ var readValuesFromProps = (props, keys, flatSchema) => {
25741
25760
  const out = {};
25742
25761
  for (const key of keys) {
25743
- out[key] = getNestedValue(props, key);
25762
+ out[key] = flatSchema ? getRuntimeValueForSchemaKey({ flatSchema, key, props }) : getNestedValue(props, key);
25744
25763
  }
25745
25764
  return out;
25746
25765
  };
@@ -25748,6 +25767,7 @@ var selectActiveKeys = (schema, values) => {
25748
25767
  return Object.keys(flattenActiveSchema(schema, (key) => values[key]));
25749
25768
  };
25750
25769
  var mergeValues = ({
25770
+ flatSchema,
25751
25771
  props,
25752
25772
  valuesDotNotation,
25753
25773
  schemaKeys,
@@ -25756,6 +25776,9 @@ var mergeValues = ({
25756
25776
  const merged = { ...props };
25757
25777
  for (const key of schemaKeys) {
25758
25778
  const value = valuesDotNotation[key];
25779
+ if (flatSchema[key]?.type === "text-content" && value === undefined) {
25780
+ continue;
25781
+ }
25759
25782
  const parts = key.split(".");
25760
25783
  if (parts.length === 1) {
25761
25784
  merged[key] = value;
@@ -25773,7 +25796,8 @@ var mergeValues = ({
25773
25796
  }
25774
25797
  current[parts[parts.length - 1]] = value;
25775
25798
  }
25776
- deleteNestedKey(merged, propsToDelete);
25799
+ const propsToDeleteWithoutTextContent = new Set([...propsToDelete].filter((key) => !(flatSchema[key]?.type === "text-content" && valuesDotNotation[key] === undefined)));
25800
+ deleteNestedKey(merged, propsToDeleteWithoutTextContent);
25777
25801
  return merged;
25778
25802
  };
25779
25803
  var stackToOverrideMap = {};
@@ -25820,8 +25844,12 @@ var withInteractivitySchema = ({
25820
25844
  return newOverrideId;
25821
25845
  });
25822
25846
  const nodePath = nodePathMapping.overrideIdToNodePathMappings[overrideId] ?? null;
25823
- const runtimeValues = flatKeys.map((k) => getNestedValue(props, k));
25824
- const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys), runtimeValues);
25847
+ const runtimeValues = flatKeys.map((key) => getRuntimeValueForSchemaKey({
25848
+ flatSchema,
25849
+ key,
25850
+ props
25851
+ }));
25852
+ const currentRuntimeValueDotNotation = useMemo13(() => readValuesFromProps(props, flatKeys, flatSchema), runtimeValues);
25825
25853
  const controls = useMemo13(() => {
25826
25854
  return {
25827
25855
  schema: schemaWithSequenceName,
@@ -25849,6 +25877,7 @@ var withInteractivitySchema = ({
25849
25877
  ]);
25850
25878
  const activeKeys = selectActiveKeys(schemaWithSequenceName, valuesDotNotation);
25851
25879
  const mergedProps = mergeValues({
25880
+ flatSchema,
25852
25881
  props,
25853
25882
  valuesDotNotation,
25854
25883
  schemaKeys: activeKeys,
@@ -28472,7 +28501,7 @@ var getTimelineDuration = ({
28472
28501
  trimAfter
28473
28502
  });
28474
28503
  if (parentSequenceDurationInFrames !== null) {
28475
- const cappedDuration = Math.min(parentSequenceDurationInFrames * playbackRate, mediaDuration);
28504
+ const cappedDuration = Math.min(parentSequenceDurationInFrames, mediaDuration);
28476
28505
  return Number(cappedDuration.toFixed(10));
28477
28506
  }
28478
28507
  return mediaDuration;
@@ -31270,7 +31299,8 @@ addSequenceStackTraces(Img);
31270
31299
  var interactiveElementSchema = {
31271
31300
  ...baseSchema,
31272
31301
  ...transformSchema,
31273
- ...textSchema
31302
+ ...textSchema,
31303
+ ...textContentSchema
31274
31304
  };
31275
31305
  var setRef = (ref, value) => {
31276
31306
  if (typeof ref === "function") {