@shotstack/schemas 1.9.2 → 1.9.4
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/api.bundled.json +48 -4
- package/dist/json-schema/asset.json +78 -5
- package/dist/json-schema/clip.json +78 -5
- package/dist/json-schema/edit.json +78 -5
- package/dist/json-schema/{rich-caption-word-animation.json → rich-caption-animation.json} +1 -1
- package/dist/json-schema/rich-caption-asset.json +166 -93
- package/dist/json-schema/schemas.json +83 -5
- package/dist/json-schema/timeline.json +78 -5
- package/dist/json-schema/track.json +78 -5
- package/dist/schema.d.ts +32 -3
- package/dist/zod/zod.gen.cjs +88 -57
- package/dist/zod/zod.gen.d.ts +197 -237
- package/dist/zod/zod.gen.js +83 -52
- package/dist/zod/zod.gen.ts +60 -40
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -1377,6 +1377,28 @@ export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
|
|
|
1377
1377
|
]))
|
|
1378
1378
|
}).strict();
|
|
1379
1379
|
export const richCaptionActiveFontSchema = richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
1380
|
+
/**
|
|
1381
|
+
* Word-level animation properties for caption effects.
|
|
1382
|
+
*/
|
|
1383
|
+
export const richcaptionpropertiesRichCaptionAnimationSchema = z.object({
|
|
1384
|
+
style: z.enum([
|
|
1385
|
+
'karaoke',
|
|
1386
|
+
'highlight',
|
|
1387
|
+
'pop',
|
|
1388
|
+
'fade',
|
|
1389
|
+
'slide',
|
|
1390
|
+
'bounce',
|
|
1391
|
+
'typewriter',
|
|
1392
|
+
'none'
|
|
1393
|
+
]),
|
|
1394
|
+
direction: z.optional(z.enum([
|
|
1395
|
+
'left',
|
|
1396
|
+
'right',
|
|
1397
|
+
'up',
|
|
1398
|
+
'down'
|
|
1399
|
+
]))
|
|
1400
|
+
}).strict();
|
|
1401
|
+
export const richCaptionAnimationSchema = richcaptionpropertiesRichCaptionAnimationSchema;
|
|
1380
1402
|
/**
|
|
1381
1403
|
* Font properties for rich captions. Defaults to Roboto.
|
|
1382
1404
|
*/
|
|
@@ -1400,28 +1422,6 @@ export const richcaptionpropertiesRichCaptionFontSchema = z.object({
|
|
|
1400
1422
|
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1401
1423
|
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1402
1424
|
}).strict();
|
|
1403
|
-
/**
|
|
1404
|
-
* Word-level animation properties for caption effects.
|
|
1405
|
-
*/
|
|
1406
|
-
export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
|
|
1407
|
-
style: z.enum([
|
|
1408
|
-
'karaoke',
|
|
1409
|
-
'highlight',
|
|
1410
|
-
'pop',
|
|
1411
|
-
'fade',
|
|
1412
|
-
'slide',
|
|
1413
|
-
'bounce',
|
|
1414
|
-
'typewriter',
|
|
1415
|
-
'none'
|
|
1416
|
-
]),
|
|
1417
|
-
direction: z.optional(z.enum([
|
|
1418
|
-
'left',
|
|
1419
|
-
'right',
|
|
1420
|
-
'up',
|
|
1421
|
-
'down'
|
|
1422
|
-
]))
|
|
1423
|
-
}).strict();
|
|
1424
|
-
export const richCaptionWordAnimationSchema = richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Text alignment properties (horizontal and vertical).
|
|
1427
1427
|
*/
|
|
@@ -1538,6 +1538,37 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
|
1538
1538
|
})).min(2)
|
|
1539
1539
|
}).strict();
|
|
1540
1540
|
export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
|
|
1541
|
+
/**
|
|
1542
|
+
* Text style properties for rich captions. Same as RichTextStyle but without wordSpacing.
|
|
1543
|
+
*/
|
|
1544
|
+
export const richcaptionpropertiesRichCaptionStyleSchema = z.object({
|
|
1545
|
+
letterSpacing: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1546
|
+
return undefined; if (Array.isArray(v))
|
|
1547
|
+
return v; if (typeof v === 'string') {
|
|
1548
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1549
|
+
return v;
|
|
1550
|
+
return Number(v);
|
|
1551
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1552
|
+
lineHeight: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1553
|
+
return undefined; if (Array.isArray(v))
|
|
1554
|
+
return v; if (typeof v === 'string') {
|
|
1555
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1556
|
+
return v;
|
|
1557
|
+
return Number(v);
|
|
1558
|
+
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
1559
|
+
textTransform: z.optional(z.enum([
|
|
1560
|
+
'none',
|
|
1561
|
+
'uppercase',
|
|
1562
|
+
'lowercase',
|
|
1563
|
+
'capitalize'
|
|
1564
|
+
])),
|
|
1565
|
+
textDecoration: z.optional(z.enum([
|
|
1566
|
+
'none',
|
|
1567
|
+
'underline',
|
|
1568
|
+
'line-through'
|
|
1569
|
+
])),
|
|
1570
|
+
gradient: z.optional(richtextpropertiesRichTextGradientSchema)
|
|
1571
|
+
}).strict();
|
|
1541
1572
|
/**
|
|
1542
1573
|
* Padding properties for individual sides of the text bounding box.
|
|
1543
1574
|
*/
|
|
@@ -1649,6 +1680,36 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
|
1649
1680
|
} return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1650
1681
|
}).strict();
|
|
1651
1682
|
export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
|
|
1683
|
+
/**
|
|
1684
|
+
* The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
|
|
1685
|
+
* karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
|
|
1686
|
+
* files or auto-transcription via aliases.
|
|
1687
|
+
*
|
|
1688
|
+
*/
|
|
1689
|
+
export const richcaptionassetRichCaptionAssetSchema = z.object({
|
|
1690
|
+
type: z.enum(['rich-caption']),
|
|
1691
|
+
src: z.string().min(1),
|
|
1692
|
+
font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
|
|
1693
|
+
style: z.optional(richcaptionpropertiesRichCaptionStyleSchema),
|
|
1694
|
+
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1695
|
+
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1696
|
+
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1697
|
+
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1698
|
+
padding: z.optional(z.union([
|
|
1699
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1700
|
+
return undefined; if (Array.isArray(v))
|
|
1701
|
+
return v; if (typeof v === 'string') {
|
|
1702
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1703
|
+
return v;
|
|
1704
|
+
return Number(v);
|
|
1705
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1706
|
+
richtextpropertiesRichTextPaddingSchema
|
|
1707
|
+
])),
|
|
1708
|
+
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1709
|
+
active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
|
|
1710
|
+
animation: z.optional(richcaptionpropertiesRichCaptionAnimationSchema)
|
|
1711
|
+
}).strict();
|
|
1712
|
+
export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
|
|
1652
1713
|
/**
|
|
1653
1714
|
* Font properties for rich text.
|
|
1654
1715
|
*/
|
|
@@ -1713,36 +1774,6 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
|
|
|
1713
1774
|
gradient: z.optional(richtextpropertiesRichTextGradientSchema)
|
|
1714
1775
|
}).strict();
|
|
1715
1776
|
export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
1716
|
-
/**
|
|
1717
|
-
* The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
|
|
1718
|
-
* karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
|
|
1719
|
-
* files or auto-transcription via aliases.
|
|
1720
|
-
*
|
|
1721
|
-
*/
|
|
1722
|
-
export const richcaptionassetRichCaptionAssetSchema = z.object({
|
|
1723
|
-
type: z.enum(['rich-caption']),
|
|
1724
|
-
src: z.string().min(1),
|
|
1725
|
-
font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
|
|
1726
|
-
style: z.optional(richtextpropertiesRichTextStyleSchema),
|
|
1727
|
-
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1728
|
-
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1729
|
-
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1730
|
-
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1731
|
-
padding: z.optional(z.union([
|
|
1732
|
-
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1733
|
-
return undefined; if (Array.isArray(v))
|
|
1734
|
-
return v; if (typeof v === 'string') {
|
|
1735
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1736
|
-
return v;
|
|
1737
|
-
return Number(v);
|
|
1738
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1739
|
-
richtextpropertiesRichTextPaddingSchema
|
|
1740
|
-
])),
|
|
1741
|
-
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1742
|
-
active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
|
|
1743
|
-
wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1744
|
-
}).strict();
|
|
1745
|
-
export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
|
|
1746
1777
|
/**
|
|
1747
1778
|
* The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,
|
|
1748
1779
|
* animations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -1347,22 +1347,10 @@ export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
|
|
|
1347
1347
|
|
|
1348
1348
|
export const richCaptionActiveFontSchema = richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
1349
1349
|
|
|
1350
|
-
/**
|
|
1351
|
-
* Font properties for rich captions. Defaults to Roboto.
|
|
1352
|
-
*/
|
|
1353
|
-
export const richcaptionpropertiesRichCaptionFontSchema = z.object({
|
|
1354
|
-
family: z.optional(z.string()).default('Roboto'),
|
|
1355
|
-
size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1356
|
-
weight: z.optional(z.unknown()).default('400'),
|
|
1357
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffffff'),
|
|
1358
|
-
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1359
|
-
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1360
|
-
}).strict();
|
|
1361
|
-
|
|
1362
1350
|
/**
|
|
1363
1351
|
* Word-level animation properties for caption effects.
|
|
1364
1352
|
*/
|
|
1365
|
-
export const
|
|
1353
|
+
export const richcaptionpropertiesRichCaptionAnimationSchema = z.object({
|
|
1366
1354
|
style: z.enum([
|
|
1367
1355
|
'karaoke',
|
|
1368
1356
|
'highlight',
|
|
@@ -1381,7 +1369,19 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
|
|
|
1381
1369
|
]))
|
|
1382
1370
|
}).strict();
|
|
1383
1371
|
|
|
1384
|
-
export const
|
|
1372
|
+
export const richCaptionAnimationSchema = richcaptionpropertiesRichCaptionAnimationSchema;
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Font properties for rich captions. Defaults to Roboto.
|
|
1376
|
+
*/
|
|
1377
|
+
export const richcaptionpropertiesRichCaptionFontSchema = z.object({
|
|
1378
|
+
family: z.optional(z.string()).default('Roboto'),
|
|
1379
|
+
size: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1380
|
+
weight: z.optional(z.unknown()).default('400'),
|
|
1381
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffffff'),
|
|
1382
|
+
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1383
|
+
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1384
|
+
}).strict();
|
|
1385
1385
|
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Text alignment properties (horizontal and vertical).
|
|
@@ -1460,6 +1460,26 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
|
1460
1460
|
|
|
1461
1461
|
export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
|
|
1462
1462
|
|
|
1463
|
+
/**
|
|
1464
|
+
* Text style properties for rich captions. Same as RichTextStyle but without wordSpacing.
|
|
1465
|
+
*/
|
|
1466
|
+
export const richcaptionpropertiesRichCaptionStyleSchema = z.object({
|
|
1467
|
+
letterSpacing: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1468
|
+
lineHeight: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
1469
|
+
textTransform: z.optional(z.enum([
|
|
1470
|
+
'none',
|
|
1471
|
+
'uppercase',
|
|
1472
|
+
'lowercase',
|
|
1473
|
+
'capitalize'
|
|
1474
|
+
])),
|
|
1475
|
+
textDecoration: z.optional(z.enum([
|
|
1476
|
+
'none',
|
|
1477
|
+
'underline',
|
|
1478
|
+
'line-through'
|
|
1479
|
+
])),
|
|
1480
|
+
gradient: z.optional(richtextpropertiesRichTextGradientSchema)
|
|
1481
|
+
}).strict();
|
|
1482
|
+
|
|
1463
1483
|
/**
|
|
1464
1484
|
* Padding properties for individual sides of the text bounding box.
|
|
1465
1485
|
*/
|
|
@@ -1512,6 +1532,32 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
|
1512
1532
|
|
|
1513
1533
|
export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
|
|
1514
1534
|
|
|
1535
|
+
/**
|
|
1536
|
+
* The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
|
|
1537
|
+
* karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
|
|
1538
|
+
* files or auto-transcription via aliases.
|
|
1539
|
+
*
|
|
1540
|
+
*/
|
|
1541
|
+
export const richcaptionassetRichCaptionAssetSchema = z.object({
|
|
1542
|
+
type: z.enum(['rich-caption']),
|
|
1543
|
+
src: z.string().min(1),
|
|
1544
|
+
font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
|
|
1545
|
+
style: z.optional(richcaptionpropertiesRichCaptionStyleSchema),
|
|
1546
|
+
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1547
|
+
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1548
|
+
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1549
|
+
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1550
|
+
padding: z.optional(z.union([
|
|
1551
|
+
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1552
|
+
richtextpropertiesRichTextPaddingSchema
|
|
1553
|
+
])),
|
|
1554
|
+
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1555
|
+
active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
|
|
1556
|
+
animation: z.optional(richcaptionpropertiesRichCaptionAnimationSchema)
|
|
1557
|
+
}).strict();
|
|
1558
|
+
|
|
1559
|
+
export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
|
|
1560
|
+
|
|
1515
1561
|
/**
|
|
1516
1562
|
* Font properties for rich text.
|
|
1517
1563
|
*/
|
|
@@ -1550,32 +1596,6 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
|
|
|
1550
1596
|
|
|
1551
1597
|
export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
1552
1598
|
|
|
1553
|
-
/**
|
|
1554
|
-
* The RichCaptionAsset provides word-level caption animations with rich-text styling. It supports
|
|
1555
|
-
* karaoke-style highlighting, word-by-word animations, and advanced typography. Use with SRT/VTT
|
|
1556
|
-
* files or auto-transcription via aliases.
|
|
1557
|
-
*
|
|
1558
|
-
*/
|
|
1559
|
-
export const richcaptionassetRichCaptionAssetSchema = z.object({
|
|
1560
|
-
type: z.enum(['rich-caption']),
|
|
1561
|
-
src: z.string().min(1),
|
|
1562
|
-
font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
|
|
1563
|
-
style: z.optional(richtextpropertiesRichTextStyleSchema),
|
|
1564
|
-
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1565
|
-
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1566
|
-
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1567
|
-
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1568
|
-
padding: z.optional(z.union([
|
|
1569
|
-
z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1570
|
-
richtextpropertiesRichTextPaddingSchema
|
|
1571
|
-
])),
|
|
1572
|
-
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1573
|
-
active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
|
|
1574
|
-
wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1575
|
-
}).strict();
|
|
1576
|
-
|
|
1577
|
-
export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
|
|
1578
|
-
|
|
1579
1599
|
/**
|
|
1580
1600
|
* The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,
|
|
1581
1601
|
* animations, and styling options. It offers more flexibility and visual effects than the basic TextAsset.
|