@shotstack/schemas 1.5.4 → 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/zod/zod.gen.cjs +10 -0
- package/dist/zod/zod.gen.d.ts +21091 -46
- package/dist/zod/zod.gen.js +10 -0
- package/dist/zod/zod.gen.ts +10 -0
- package/package.json +1 -1
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -3291,6 +3291,16 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3291
3291
|
} return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
|
|
3292
3292
|
transform: zod_1.z.optional(exports.transformationTransformationSchema),
|
|
3293
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;
|
|
3294
3304
|
});
|
|
3295
3305
|
exports.clipSchema = exports.clipClipSchema;
|
|
3296
3306
|
/**
|