@shotstack/schemas 1.5.3 → 1.5.5
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 +4 -0
- package/dist/schema.d.ts +2 -0
- package/dist/zod/zod.gen.cjs +11 -0
- package/dist/zod/zod.gen.d.ts +21226 -46
- package/dist/zod/zod.gen.js +11 -0
- package/dist/zod/zod.gen.ts +11 -0
- package/package.json +1 -1
package/dist/api.bundled.json
CHANGED
|
@@ -1489,6 +1489,10 @@
|
|
|
1489
1489
|
"description": "Text style properties including spacing, line height, and transformations.",
|
|
1490
1490
|
"$ref": "#/components/schemas/RichTextStyle"
|
|
1491
1491
|
},
|
|
1492
|
+
"stroke": {
|
|
1493
|
+
"description": "Text stroke (outline) properties.",
|
|
1494
|
+
"$ref": "#/components/schemas/RichTextStroke"
|
|
1495
|
+
},
|
|
1492
1496
|
"shadow": {
|
|
1493
1497
|
"description": "Text shadow properties.",
|
|
1494
1498
|
"$ref": "#/components/schemas/RichTextShadow"
|
package/dist/schema.d.ts
CHANGED
|
@@ -725,6 +725,8 @@ export interface components {
|
|
|
725
725
|
font?: components["schemas"]["RichTextFont"];
|
|
726
726
|
/** @description Text style properties including spacing, line height, and transformations. */
|
|
727
727
|
style?: components["schemas"]["RichTextStyle"];
|
|
728
|
+
/** @description Text stroke (outline) properties. */
|
|
729
|
+
stroke?: components["schemas"]["RichTextStroke"];
|
|
728
730
|
/** @description Text shadow properties. */
|
|
729
731
|
shadow?: components["schemas"]["RichTextShadow"];
|
|
730
732
|
/** @description Background styling properties for the text bounding box. */
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -1569,6 +1569,7 @@ exports.richtextassetRichTextAssetSchema = zod_1.z.object({
|
|
|
1569
1569
|
text: zod_1.z.string().max(5000),
|
|
1570
1570
|
font: zod_1.z.optional(exports.richtextpropertiesRichTextFontSchema),
|
|
1571
1571
|
style: zod_1.z.optional(exports.richtextpropertiesRichTextStyleSchema),
|
|
1572
|
+
stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
|
|
1572
1573
|
shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
|
|
1573
1574
|
background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
|
|
1574
1575
|
border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
|
|
@@ -3290,6 +3291,16 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3290
3291
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3291
3292
|
transform: zod_1.z.optional(exports.transformationTransformationSchema),
|
|
3292
3293
|
alias: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3294
|
+
}).transform((clip) => {
|
|
3295
|
+
// Remove 'fit' property for asset types that don't support it
|
|
3296
|
+
if (clip.asset && typeof clip.asset === 'object' && 'type' in clip.asset) {
|
|
3297
|
+
const assetType = clip.asset.type;
|
|
3298
|
+
if (assetType === 'rich-text') {
|
|
3299
|
+
const { fit, ...rest } = clip;
|
|
3300
|
+
return rest;
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
return clip;
|
|
3293
3304
|
});
|
|
3294
3305
|
exports.clipSchema = exports.clipClipSchema;
|
|
3295
3306
|
/**
|