@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.
- package/dist/api.bundled.json +6 -0
- package/dist/json-schema/asset.json +12 -1
- package/dist/json-schema/clip.json +12 -1
- package/dist/json-schema/edit.json +12 -1
- package/dist/json-schema/rich-caption-asset.json +12 -1
- package/dist/json-schema/rich-text-asset.json +12 -1
- package/dist/json-schema/rich-text-background.json +13 -1
- package/dist/json-schema/rich-text-content.json +12 -1
- package/dist/json-schema/schemas.json +13 -1
- package/dist/json-schema/timeline.json +12 -1
- package/dist/json-schema/track.json +12 -1
- package/dist/schema.d.ts +9 -0
- package/dist/zod/zod.gen.cjs +2 -1
- package/dist/zod/zod.gen.d.ts +140 -0
- package/dist/zod/zod.gen.js +2 -1
- package/dist/zod/zod.gen.ts +2 -1
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -912,7 +912,8 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
|
912
912
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
913
913
|
return v;
|
|
914
914
|
return Number(v);
|
|
915
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
915
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
916
|
+
wrap: z.optional(z.boolean()).default(false)
|
|
916
917
|
}).strict();
|
|
917
918
|
export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
|
|
918
919
|
/**
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -851,7 +851,8 @@ export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema
|
|
|
851
851
|
export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
852
852
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
853
853
|
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),
|
|
854
|
-
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)
|
|
854
|
+
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),
|
|
855
|
+
wrap: z.optional(z.boolean()).default(false)
|
|
855
856
|
}).strict();
|
|
856
857
|
|
|
857
858
|
export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
|