@shotstack/schemas 1.9.0 → 1.9.1
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 +24 -12
- package/dist/json-schema/asset.json +12 -13
- package/dist/json-schema/clip.json +12 -13
- package/dist/json-schema/edit.json +12 -13
- package/dist/json-schema/rich-caption-active.json +14 -2
- package/dist/json-schema/rich-caption-asset.json +12 -13
- package/dist/json-schema/rich-caption-word-animation.json +0 -14
- package/dist/json-schema/schemas.json +14 -16
- package/dist/json-schema/timeline.json +12 -13
- package/dist/json-schema/track.json +12 -13
- package/dist/schema.d.ts +4 -10
- package/dist/zod/zod.gen.cjs +8 -9
- package/dist/zod/zod.gen.d.ts +316 -271
- package/dist/zod/zod.gen.js +8 -9
- package/dist/zod/zod.gen.ts +8 -3
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -1419,13 +1419,6 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
|
|
|
1419
1419
|
'typewriter',
|
|
1420
1420
|
'none'
|
|
1421
1421
|
]),
|
|
1422
|
-
speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1423
|
-
return undefined; if (Array.isArray(v))
|
|
1424
|
-
return v; if (typeof v === 'string') {
|
|
1425
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1426
|
-
return v;
|
|
1427
|
-
return Number(v);
|
|
1428
|
-
} return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1429
1422
|
direction: z.optional(z.enum([
|
|
1430
1423
|
'left',
|
|
1431
1424
|
'right',
|
|
@@ -1644,8 +1637,14 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
|
1644
1637
|
*/
|
|
1645
1638
|
export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
1646
1639
|
font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
|
|
1647
|
-
stroke: z.optional(
|
|
1648
|
-
|
|
1640
|
+
stroke: z.optional(z.union([
|
|
1641
|
+
richtextpropertiesRichTextStrokeSchema,
|
|
1642
|
+
z.enum(['none'])
|
|
1643
|
+
])),
|
|
1644
|
+
shadow: z.optional(z.union([
|
|
1645
|
+
richtextpropertiesRichTextShadowSchema,
|
|
1646
|
+
z.enum(['none'])
|
|
1647
|
+
])),
|
|
1649
1648
|
scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1650
1649
|
return undefined; if (Array.isArray(v))
|
|
1651
1650
|
return v; if (typeof v === 'string') {
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -1378,7 +1378,6 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
|
|
|
1378
1378
|
'typewriter',
|
|
1379
1379
|
'none'
|
|
1380
1380
|
]),
|
|
1381
|
-
speed: 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.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1382
1381
|
direction: z.optional(z.enum([
|
|
1383
1382
|
'left',
|
|
1384
1383
|
'right',
|
|
@@ -1505,8 +1504,14 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
|
1505
1504
|
*/
|
|
1506
1505
|
export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
1507
1506
|
font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
|
|
1508
|
-
stroke: z.optional(
|
|
1509
|
-
|
|
1507
|
+
stroke: z.optional(z.union([
|
|
1508
|
+
richtextpropertiesRichTextStrokeSchema,
|
|
1509
|
+
z.enum(['none'])
|
|
1510
|
+
])),
|
|
1511
|
+
shadow: z.optional(z.union([
|
|
1512
|
+
richtextpropertiesRichTextShadowSchema,
|
|
1513
|
+
z.enum(['none'])
|
|
1514
|
+
])),
|
|
1510
1515
|
scale: 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.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1511
1516
|
}).strict();
|
|
1512
1517
|
|