@shotstack/schemas 1.12.1 → 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.
- package/dist/api.bundled.json +7 -0
- package/dist/json-schema/asset.json +14 -1
- package/dist/json-schema/clip.json +14 -1
- package/dist/json-schema/edit.json +14 -1
- package/dist/json-schema/rich-caption-asset.json +14 -1
- package/dist/json-schema/rich-text-asset.json +14 -1
- package/dist/json-schema/rich-text-background.json +15 -1
- package/dist/json-schema/rich-text-content.json +14 -1
- package/dist/json-schema/schemas.json +15 -1
- package/dist/json-schema/timeline.json +14 -1
- package/dist/json-schema/track.json +14 -1
- package/dist/schema.d.ts +9 -0
- package/dist/zod/zod.gen.cjs +8 -1
- package/dist/zod/zod.gen.d.ts +140 -0
- package/dist/zod/zod.gen.js +8 -1
- package/dist/zod/zod.gen.ts +2 -1
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -924,7 +924,14 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
|
924
924
|
return v;
|
|
925
925
|
return Number(v);
|
|
926
926
|
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
927
|
-
wrap: z.optional(z.boolean()).default(false)
|
|
927
|
+
wrap: z.optional(z.boolean()).default(false),
|
|
928
|
+
padding: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
929
|
+
return undefined; if (Array.isArray(v))
|
|
930
|
+
return v; if (typeof v === 'string') {
|
|
931
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
932
|
+
return v;
|
|
933
|
+
return Number(v);
|
|
934
|
+
} return v; }), z.number().int().gte(0).lte(200)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
928
935
|
}).strict();
|
|
929
936
|
export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
|
|
930
937
|
/**
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -865,7 +865,8 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
|
865
865
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
866
866
|
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),
|
|
867
867
|
borderRadius: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
868
|
-
wrap: z.optional(z.boolean()).default(false)
|
|
868
|
+
wrap: z.optional(z.boolean()).default(false),
|
|
869
|
+
padding: 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(0).lte(200)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
869
870
|
}).strict();
|
|
870
871
|
|
|
871
872
|
export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
|