@shotstack/schemas 1.12.0 → 1.12.2

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.
@@ -2356,18 +2356,21 @@
2356
2356
  "type": "string"
2357
2357
  },
2358
2358
  "html": {
2359
- "description": "The HTML markup for the asset.",
2359
+ "description": "The HTML markup for the asset. Max 1,000,000 characters.",
2360
2360
  "type": "string",
2361
+ "maxLength": 1000000,
2361
2362
  "example": "<div class='card'><h1>{{title}}</h1></div>"
2362
2363
  },
2363
2364
  "css": {
2364
- "description": "The CSS string applied to the HTML.",
2365
+ "description": "The CSS string applied to the HTML. Max 500,000 characters.",
2365
2366
  "type": "string",
2367
+ "maxLength": 500000,
2366
2368
  "example": ".card { font-family: 'Inter'; padding: 32px; }"
2367
2369
  },
2368
2370
  "js": {
2369
- "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.\n",
2371
+ "description": "Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.\n",
2370
2372
  "type": "string",
2373
+ "maxLength": 500000,
2371
2374
  "example": "gsap.to('.card', { x: 200, duration: 1 });"
2372
2375
  }
2373
2376
  },
@@ -3186,6 +3189,13 @@
3186
3189
  "type": "boolean",
3187
3190
  "default": false,
3188
3191
  "example": true
3192
+ },
3193
+ "padding": {
3194
+ "description": "Inner padding in pixels between the wrap pill edge and the rendered text. Only takes\neffect when `wrap: true`. When omitted, the renderer applies a sensible default\nproportional to the font size (approximately 12% of the active page font size on\nrich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on\nrich-text and rich-caption assets only.\n",
3195
+ "type": "integer",
3196
+ "minimum": 0,
3197
+ "maximum": 200,
3198
+ "example": 12
3189
3199
  }
3190
3200
  },
3191
3201
  "additionalProperties": false,
@@ -1016,6 +1016,18 @@
1016
1016
  "type": "null"
1017
1017
  }
1018
1018
  ]
1019
+ },
1020
+ "padding": {
1021
+ "anyOf": [
1022
+ {
1023
+ "type": "integer",
1024
+ "minimum": 0,
1025
+ "maximum": 200
1026
+ },
1027
+ {
1028
+ "type": "null"
1029
+ }
1030
+ ]
1019
1031
  }
1020
1032
  },
1021
1033
  "additionalProperties": false,
@@ -1024,7 +1036,8 @@
1024
1036
  "color",
1025
1037
  "opacity",
1026
1038
  "borderRadius",
1027
- "wrap"
1039
+ "wrap",
1040
+ "padding"
1028
1041
  ]
1029
1042
  },
1030
1043
  "RichTextAlignment": {
@@ -1259,6 +1259,18 @@
1259
1259
  "type": "null"
1260
1260
  }
1261
1261
  ]
1262
+ },
1263
+ "padding": {
1264
+ "anyOf": [
1265
+ {
1266
+ "type": "integer",
1267
+ "minimum": 0,
1268
+ "maximum": 200
1269
+ },
1270
+ {
1271
+ "type": "null"
1272
+ }
1273
+ ]
1262
1274
  }
1263
1275
  },
1264
1276
  "additionalProperties": false,
@@ -1267,7 +1279,8 @@
1267
1279
  "color",
1268
1280
  "opacity",
1269
1281
  "borderRadius",
1270
- "wrap"
1282
+ "wrap",
1283
+ "padding"
1271
1284
  ]
1272
1285
  },
1273
1286
  "RichTextAlignment": {
@@ -1443,6 +1443,18 @@
1443
1443
  "type": "null"
1444
1444
  }
1445
1445
  ]
1446
+ },
1447
+ "padding": {
1448
+ "anyOf": [
1449
+ {
1450
+ "type": "integer",
1451
+ "minimum": 0,
1452
+ "maximum": 200
1453
+ },
1454
+ {
1455
+ "type": "null"
1456
+ }
1457
+ ]
1446
1458
  }
1447
1459
  },
1448
1460
  "additionalProperties": false,
@@ -1451,7 +1463,8 @@
1451
1463
  "color",
1452
1464
  "opacity",
1453
1465
  "borderRadius",
1454
- "wrap"
1466
+ "wrap",
1467
+ "padding"
1455
1468
  ]
1456
1469
  },
1457
1470
  "RichTextAlignment": {
@@ -519,6 +519,18 @@
519
519
  "type": "null"
520
520
  }
521
521
  ]
522
+ },
523
+ "padding": {
524
+ "anyOf": [
525
+ {
526
+ "type": "integer",
527
+ "minimum": 0,
528
+ "maximum": 200
529
+ },
530
+ {
531
+ "type": "null"
532
+ }
533
+ ]
522
534
  }
523
535
  },
524
536
  "additionalProperties": false,
@@ -527,7 +539,8 @@
527
539
  "color",
528
540
  "opacity",
529
541
  "borderRadius",
530
- "wrap"
542
+ "wrap",
543
+ "padding"
531
544
  ]
532
545
  },
533
546
  "RichTextAsset": {
@@ -627,6 +627,18 @@
627
627
  "type": "null"
628
628
  }
629
629
  ]
630
+ },
631
+ "padding": {
632
+ "anyOf": [
633
+ {
634
+ "type": "integer",
635
+ "minimum": 0,
636
+ "maximum": 200
637
+ },
638
+ {
639
+ "type": "null"
640
+ }
641
+ ]
630
642
  }
631
643
  },
632
644
  "additionalProperties": false,
@@ -635,7 +647,8 @@
635
647
  "color",
636
648
  "opacity",
637
649
  "borderRadius",
638
- "wrap"
650
+ "wrap",
651
+ "padding"
639
652
  ]
640
653
  },
641
654
  "RichTextAlignment": {
@@ -50,6 +50,19 @@
50
50
  "type": "null"
51
51
  }
52
52
  ]
53
+ },
54
+ "padding": {
55
+ "anyOf": [
56
+ {
57
+ "type": "integer",
58
+ "description": "Inner padding in pixels between the wrap pill edge and the rendered text. Only takes\neffect when `wrap: true`. When omitted, the renderer applies a sensible default\nproportional to the font size (approximately 12% of the active page font size on\nrich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on\nrich-text and rich-caption assets only.\n",
59
+ "minimum": 0,
60
+ "maximum": 200
61
+ },
62
+ {
63
+ "type": "null"
64
+ }
65
+ ]
53
66
  }
54
67
  },
55
68
  "additionalProperties": false,
@@ -58,7 +71,8 @@
58
71
  "color",
59
72
  "opacity",
60
73
  "borderRadius",
61
- "wrap"
74
+ "wrap",
75
+ "padding"
62
76
  ]
63
77
  }
64
78
  }
@@ -325,6 +325,18 @@
325
325
  "type": "null"
326
326
  }
327
327
  ]
328
+ },
329
+ "padding": {
330
+ "anyOf": [
331
+ {
332
+ "type": "integer",
333
+ "minimum": 0,
334
+ "maximum": 200
335
+ },
336
+ {
337
+ "type": "null"
338
+ }
339
+ ]
328
340
  }
329
341
  },
330
342
  "additionalProperties": false,
@@ -333,7 +345,8 @@
333
345
  "color",
334
346
  "opacity",
335
347
  "borderRadius",
336
- "wrap"
348
+ "wrap",
349
+ "padding"
337
350
  ]
338
351
  },
339
352
  "RichTextAlignment": {
@@ -1511,6 +1511,19 @@
1511
1511
  "type": "null"
1512
1512
  }
1513
1513
  ]
1514
+ },
1515
+ "padding": {
1516
+ "anyOf": [
1517
+ {
1518
+ "type": "integer",
1519
+ "description": "Inner padding in pixels between the wrap pill edge and the rendered text. Only takes\neffect when `wrap: true`. When omitted, the renderer applies a sensible default\nproportional to the font size (approximately 12% of the active page font size on\nrich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on\nrich-text and rich-caption assets only.\n",
1520
+ "minimum": 0,
1521
+ "maximum": 200
1522
+ },
1523
+ {
1524
+ "type": "null"
1525
+ }
1526
+ ]
1514
1527
  }
1515
1528
  },
1516
1529
  "additionalProperties": false,
@@ -1519,7 +1532,8 @@
1519
1532
  "color",
1520
1533
  "opacity",
1521
1534
  "borderRadius",
1522
- "wrap"
1535
+ "wrap",
1536
+ "padding"
1523
1537
  ]
1524
1538
  },
1525
1539
  "RichTextAlignment": {
@@ -1387,6 +1387,18 @@
1387
1387
  "type": "null"
1388
1388
  }
1389
1389
  ]
1390
+ },
1391
+ "padding": {
1392
+ "anyOf": [
1393
+ {
1394
+ "type": "integer",
1395
+ "minimum": 0,
1396
+ "maximum": 200
1397
+ },
1398
+ {
1399
+ "type": "null"
1400
+ }
1401
+ ]
1390
1402
  }
1391
1403
  },
1392
1404
  "additionalProperties": false,
@@ -1395,7 +1407,8 @@
1395
1407
  "color",
1396
1408
  "opacity",
1397
1409
  "borderRadius",
1398
- "wrap"
1410
+ "wrap",
1411
+ "padding"
1399
1412
  ]
1400
1413
  },
1401
1414
  "RichTextAlignment": {
@@ -1274,6 +1274,18 @@
1274
1274
  "type": "null"
1275
1275
  }
1276
1276
  ]
1277
+ },
1278
+ "padding": {
1279
+ "anyOf": [
1280
+ {
1281
+ "type": "integer",
1282
+ "minimum": 0,
1283
+ "maximum": 200
1284
+ },
1285
+ {
1286
+ "type": "null"
1287
+ }
1288
+ ]
1277
1289
  }
1278
1290
  },
1279
1291
  "additionalProperties": false,
@@ -1282,7 +1294,8 @@
1282
1294
  "color",
1283
1295
  "opacity",
1284
1296
  "borderRadius",
1285
- "wrap"
1297
+ "wrap",
1298
+ "padding"
1286
1299
  ]
1287
1300
  },
1288
1301
  "RichTextAlignment": {
package/dist/schema.d.ts CHANGED
@@ -1279,17 +1279,17 @@ export interface components {
1279
1279
  */
1280
1280
  type: "html5";
1281
1281
  /**
1282
- * @description The HTML markup for the asset.
1282
+ * @description The HTML markup for the asset. Max 1,000,000 characters.
1283
1283
  * @example <div class='card'><h1>{{title}}</h1></div>
1284
1284
  */
1285
1285
  html: string;
1286
1286
  /**
1287
- * @description The CSS string applied to the HTML.
1287
+ * @description The CSS string applied to the HTML. Max 500,000 characters.
1288
1288
  * @example .card { font-family: 'Inter'; padding: 32px; }
1289
1289
  */
1290
1290
  css?: string;
1291
1291
  /**
1292
- * @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically.
1292
+ * @description Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters.
1293
1293
  * @example gsap.to('.card', { x: 200, duration: 1 });
1294
1294
  */
1295
1295
  js?: string;
@@ -1793,6 +1793,15 @@ export interface components {
1793
1793
  * @example true
1794
1794
  */
1795
1795
  wrap?: boolean;
1796
+ /**
1797
+ * @description Inner padding in pixels between the wrap pill edge and the rendered text. Only takes
1798
+ * effect when `wrap: true`. When omitted, the renderer applies a sensible default
1799
+ * proportional to the font size (approximately 12% of the active page font size on
1800
+ * rich-caption assets). Set to 0 for a pill that hugs the text exactly. Available on
1801
+ * rich-text and rich-caption assets only.
1802
+ * @example 12
1803
+ */
1804
+ padding?: number;
1796
1805
  };
1797
1806
  /** @description Text alignment properties (horizontal and vertical). */
1798
1807
  RichTextAlignment: {
@@ -425,9 +425,9 @@ exports.fontSchema = exports.fontFontSchema;
425
425
  */
426
426
  exports.html5AssetHtml5AssetSchema = zod_1.z.object({
427
427
  type: zod_1.z.enum(['html5']),
428
- html: zod_1.z.string(),
429
- css: zod_1.z.optional(zod_1.z.string()),
430
- js: zod_1.z.optional(zod_1.z.string())
428
+ html: zod_1.z.string().max(1000000),
429
+ css: zod_1.z.optional(zod_1.z.string().max(500000)),
430
+ js: zod_1.z.optional(zod_1.z.string().max(500000))
431
431
  }).strict();
432
432
  exports.html5AssetSchema = exports.html5AssetHtml5AssetSchema;
433
433
  /**
@@ -932,7 +932,14 @@ exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
932
932
  return v;
933
933
  return Number(v);
934
934
  } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
935
- wrap: zod_1.z.optional(zod_1.z.boolean()).default(false)
935
+ wrap: zod_1.z.optional(zod_1.z.boolean()).default(false),
936
+ padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
937
+ return undefined; if (Array.isArray(v))
938
+ return v; if (typeof v === 'string') {
939
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
940
+ return v;
941
+ return Number(v);
942
+ } return v; }), zod_1.z.number().int().gte(0).lte(200)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
936
943
  }).strict();
937
944
  exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
938
945
  /**