@shotstack/schemas 1.9.8 → 1.9.9

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.
@@ -780,6 +780,8 @@ export const templateResponseSchema = templateresponseTemplateResponseSchema;
780
780
  * Font properties for the active/highlighted word.
781
781
  */
782
782
  export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
783
+ family: z.optional(z.string()),
784
+ weight: z.optional(z.unknown()).default('400'),
783
785
  color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
784
786
  background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
785
787
  opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1103,14 +1105,7 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
1103
1105
  shadow: z.optional(z.union([
1104
1106
  richtextpropertiesRichTextShadowSchema,
1105
1107
  z.enum(['none'])
1106
- ])),
1107
- scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1108
- return undefined; if (Array.isArray(v))
1109
- return v; if (typeof v === 'string') {
1110
- if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1111
- return v;
1112
- return Number(v);
1113
- } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1108
+ ]))
1114
1109
  }).strict();
1115
1110
  export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
1116
1111
  /**
@@ -752,6 +752,8 @@ export const templateResponseSchema = templateresponseTemplateResponseSchema;
752
752
  * Font properties for the active/highlighted word.
753
753
  */
754
754
  export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
755
+ family: z.optional(z.string()),
756
+ weight: z.optional(z.unknown()).default('400'),
755
757
  color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
756
758
  background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
757
759
  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),
@@ -945,8 +947,7 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
945
947
  shadow: z.optional(z.union([
946
948
  richtextpropertiesRichTextShadowSchema,
947
949
  z.enum(['none'])
948
- ])),
949
- 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)
950
+ ]))
950
951
  }).strict();
951
952
 
952
953
  export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/schemas",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",