@shotstack/schemas 1.10.6 → 1.10.7

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.
@@ -3132,6 +3132,12 @@
3132
3132
  "minimum": 0,
3133
3133
  "default": 0,
3134
3134
  "example": 10
3135
+ },
3136
+ "wrap": {
3137
+ "description": "When true, the background pill shrinks to fit the rendered text bounding box plus the\nasset's padding (and stroke width, if present), producing a pill or badge effect. When\nfalse (default), the background fills the full asset content area. Available on\nrich-text and rich-caption assets only; not supported on legacy `type: text`.\n",
3138
+ "type": "boolean",
3139
+ "default": false,
3140
+ "example": true
3135
3141
  }
3136
3142
  },
3137
3143
  "additionalProperties": false,
@@ -1006,6 +1006,16 @@
1006
1006
  "type": "null"
1007
1007
  }
1008
1008
  ]
1009
+ },
1010
+ "wrap": {
1011
+ "anyOf": [
1012
+ {
1013
+ "type": "boolean"
1014
+ },
1015
+ {
1016
+ "type": "null"
1017
+ }
1018
+ ]
1009
1019
  }
1010
1020
  },
1011
1021
  "additionalProperties": false,
@@ -1013,7 +1023,8 @@
1013
1023
  "required": [
1014
1024
  "color",
1015
1025
  "opacity",
1016
- "borderRadius"
1026
+ "borderRadius",
1027
+ "wrap"
1017
1028
  ]
1018
1029
  },
1019
1030
  "RichTextAlignment": {
@@ -1238,6 +1238,16 @@
1238
1238
  "type": "null"
1239
1239
  }
1240
1240
  ]
1241
+ },
1242
+ "wrap": {
1243
+ "anyOf": [
1244
+ {
1245
+ "type": "boolean"
1246
+ },
1247
+ {
1248
+ "type": "null"
1249
+ }
1250
+ ]
1241
1251
  }
1242
1252
  },
1243
1253
  "additionalProperties": false,
@@ -1245,7 +1255,8 @@
1245
1255
  "required": [
1246
1256
  "color",
1247
1257
  "opacity",
1248
- "borderRadius"
1258
+ "borderRadius",
1259
+ "wrap"
1249
1260
  ]
1250
1261
  },
1251
1262
  "RichTextAlignment": {
@@ -1422,6 +1422,16 @@
1422
1422
  "type": "null"
1423
1423
  }
1424
1424
  ]
1425
+ },
1426
+ "wrap": {
1427
+ "anyOf": [
1428
+ {
1429
+ "type": "boolean"
1430
+ },
1431
+ {
1432
+ "type": "null"
1433
+ }
1434
+ ]
1425
1435
  }
1426
1436
  },
1427
1437
  "additionalProperties": false,
@@ -1429,7 +1439,8 @@
1429
1439
  "required": [
1430
1440
  "color",
1431
1441
  "opacity",
1432
- "borderRadius"
1442
+ "borderRadius",
1443
+ "wrap"
1433
1444
  ]
1434
1445
  },
1435
1446
  "RichTextAlignment": {
@@ -509,6 +509,16 @@
509
509
  "type": "null"
510
510
  }
511
511
  ]
512
+ },
513
+ "wrap": {
514
+ "anyOf": [
515
+ {
516
+ "type": "boolean"
517
+ },
518
+ {
519
+ "type": "null"
520
+ }
521
+ ]
512
522
  }
513
523
  },
514
524
  "additionalProperties": false,
@@ -516,7 +526,8 @@
516
526
  "required": [
517
527
  "color",
518
528
  "opacity",
519
- "borderRadius"
529
+ "borderRadius",
530
+ "wrap"
520
531
  ]
521
532
  },
522
533
  "RichTextAsset": {
@@ -617,6 +617,16 @@
617
617
  "type": "null"
618
618
  }
619
619
  ]
620
+ },
621
+ "wrap": {
622
+ "anyOf": [
623
+ {
624
+ "type": "boolean"
625
+ },
626
+ {
627
+ "type": "null"
628
+ }
629
+ ]
620
630
  }
621
631
  },
622
632
  "additionalProperties": false,
@@ -624,7 +634,8 @@
624
634
  "required": [
625
635
  "color",
626
636
  "opacity",
627
- "borderRadius"
637
+ "borderRadius",
638
+ "wrap"
628
639
  ]
629
640
  },
630
641
  "RichTextAlignment": {
@@ -39,6 +39,17 @@
39
39
  "type": "null"
40
40
  }
41
41
  ]
42
+ },
43
+ "wrap": {
44
+ "anyOf": [
45
+ {
46
+ "type": "boolean",
47
+ "description": "When true, the background pill shrinks to fit the rendered text bounding box plus the\nasset's padding (and stroke width, if present), producing a pill or badge effect. When\nfalse (default), the background fills the full asset content area. Available on\nrich-text and rich-caption assets only; not supported on legacy `type: text`.\n"
48
+ },
49
+ {
50
+ "type": "null"
51
+ }
52
+ ]
42
53
  }
43
54
  },
44
55
  "additionalProperties": false,
@@ -46,7 +57,8 @@
46
57
  "required": [
47
58
  "color",
48
59
  "opacity",
49
- "borderRadius"
60
+ "borderRadius",
61
+ "wrap"
50
62
  ]
51
63
  }
52
64
  }
@@ -315,6 +315,16 @@
315
315
  "type": "null"
316
316
  }
317
317
  ]
318
+ },
319
+ "wrap": {
320
+ "anyOf": [
321
+ {
322
+ "type": "boolean"
323
+ },
324
+ {
325
+ "type": "null"
326
+ }
327
+ ]
318
328
  }
319
329
  },
320
330
  "additionalProperties": false,
@@ -322,7 +332,8 @@
322
332
  "required": [
323
333
  "color",
324
334
  "opacity",
325
- "borderRadius"
335
+ "borderRadius",
336
+ "wrap"
326
337
  ]
327
338
  },
328
339
  "RichTextAlignment": {
@@ -1488,6 +1488,17 @@
1488
1488
  "type": "null"
1489
1489
  }
1490
1490
  ]
1491
+ },
1492
+ "wrap": {
1493
+ "anyOf": [
1494
+ {
1495
+ "type": "boolean",
1496
+ "description": "When true, the background pill shrinks to fit the rendered text bounding box plus the\nasset's padding (and stroke width, if present), producing a pill or badge effect. When\nfalse (default), the background fills the full asset content area. Available on\nrich-text and rich-caption assets only; not supported on legacy `type: text`.\n"
1497
+ },
1498
+ {
1499
+ "type": "null"
1500
+ }
1501
+ ]
1491
1502
  }
1492
1503
  },
1493
1504
  "additionalProperties": false,
@@ -1495,7 +1506,8 @@
1495
1506
  "required": [
1496
1507
  "color",
1497
1508
  "opacity",
1498
- "borderRadius"
1509
+ "borderRadius",
1510
+ "wrap"
1499
1511
  ]
1500
1512
  },
1501
1513
  "RichTextAlignment": {
@@ -1366,6 +1366,16 @@
1366
1366
  "type": "null"
1367
1367
  }
1368
1368
  ]
1369
+ },
1370
+ "wrap": {
1371
+ "anyOf": [
1372
+ {
1373
+ "type": "boolean"
1374
+ },
1375
+ {
1376
+ "type": "null"
1377
+ }
1378
+ ]
1369
1379
  }
1370
1380
  },
1371
1381
  "additionalProperties": false,
@@ -1373,7 +1383,8 @@
1373
1383
  "required": [
1374
1384
  "color",
1375
1385
  "opacity",
1376
- "borderRadius"
1386
+ "borderRadius",
1387
+ "wrap"
1377
1388
  ]
1378
1389
  },
1379
1390
  "RichTextAlignment": {
@@ -1253,6 +1253,16 @@
1253
1253
  "type": "null"
1254
1254
  }
1255
1255
  ]
1256
+ },
1257
+ "wrap": {
1258
+ "anyOf": [
1259
+ {
1260
+ "type": "boolean"
1261
+ },
1262
+ {
1263
+ "type": "null"
1264
+ }
1265
+ ]
1256
1266
  }
1257
1267
  },
1258
1268
  "additionalProperties": false,
@@ -1260,7 +1270,8 @@
1260
1270
  "required": [
1261
1271
  "color",
1262
1272
  "opacity",
1263
- "borderRadius"
1273
+ "borderRadius",
1274
+ "wrap"
1264
1275
  ]
1265
1276
  },
1266
1277
  "RichTextAlignment": {
package/dist/schema.d.ts CHANGED
@@ -1750,6 +1750,15 @@ export interface components {
1750
1750
  * @example 10
1751
1751
  */
1752
1752
  borderRadius?: number;
1753
+ /**
1754
+ * @description When true, the background pill shrinks to fit the rendered text bounding box plus the
1755
+ * asset's padding (and stroke width, if present), producing a pill or badge effect. When
1756
+ * false (default), the background fills the full asset content area. Available on
1757
+ * rich-text and rich-caption assets only; not supported on legacy `type: text`.
1758
+ * @default false
1759
+ * @example true
1760
+ */
1761
+ wrap?: boolean;
1753
1762
  };
1754
1763
  /** @description Text alignment properties (horizontal and vertical). */
1755
1764
  RichTextAlignment: {
@@ -920,7 +920,8 @@ exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
920
920
  if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
921
921
  return v;
922
922
  return Number(v);
923
- } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
923
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
924
+ wrap: zod_1.z.optional(zod_1.z.boolean()).default(false)
924
925
  }).strict();
925
926
  exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
926
927
  /**