@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.
@@ -788,6 +788,8 @@ exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
788
788
  * Font properties for the active/highlighted word.
789
789
  */
790
790
  exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
791
+ family: zod_1.z.optional(zod_1.z.string()),
792
+ weight: zod_1.z.optional(zod_1.z.unknown()).default('400'),
791
793
  color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
792
794
  background: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
793
795
  opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1111,14 +1113,7 @@ exports.richcaptionpropertiesRichCaptionActiveSchema = zod_1.z.object({
1111
1113
  shadow: zod_1.z.optional(zod_1.z.union([
1112
1114
  exports.richtextpropertiesRichTextShadowSchema,
1113
1115
  zod_1.z.enum(['none'])
1114
- ])),
1115
- scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1116
- return undefined; if (Array.isArray(v))
1117
- return v; if (typeof v === 'string') {
1118
- if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1119
- return v;
1120
- return Number(v);
1121
- } return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
1116
+ ]))
1122
1117
  }).strict();
1123
1118
  exports.richCaptionActiveSchema = exports.richcaptionpropertiesRichCaptionActiveSchema;
1124
1119
  /**