@shotstack/schemas 1.5.5 → 1.5.6
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 +6 -4
- package/dist/zod/zod.gen.d.ts +1202 -3032
- package/dist/zod/zod.gen.js +6 -4
- package/dist/zod/zod.gen.ts +8 -5
- package/package.json +1 -1
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -3291,8 +3291,11 @@ 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
|
-
})
|
|
3295
|
-
|
|
3294
|
+
});
|
|
3295
|
+
exports.clipSchema = exports.clipClipSchema;
|
|
3296
|
+
// Clip schema with fit property filter for rich-text assets
|
|
3297
|
+
// This removes the 'fit' property when asset type is 'rich-text'
|
|
3298
|
+
const clipClipSchemaWithFitFilter = exports.clipClipSchema.transform((clip) => {
|
|
3296
3299
|
if (clip.asset && typeof clip.asset === 'object' && 'type' in clip.asset) {
|
|
3297
3300
|
const assetType = clip.asset.type;
|
|
3298
3301
|
if (assetType === 'rich-text') {
|
|
@@ -3302,12 +3305,11 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
3302
3305
|
}
|
|
3303
3306
|
return clip;
|
|
3304
3307
|
});
|
|
3305
|
-
exports.clipSchema = exports.clipClipSchema;
|
|
3306
3308
|
/**
|
|
3307
3309
|
* A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
|
|
3308
3310
|
*/
|
|
3309
3311
|
exports.trackTrackSchema = zod_1.z.object({
|
|
3310
|
-
clips: zod_1.z.array(
|
|
3312
|
+
clips: zod_1.z.array(clipClipSchemaWithFitFilter).min(1),
|
|
3311
3313
|
});
|
|
3312
3314
|
exports.trackSchema = exports.trackTrackSchema;
|
|
3313
3315
|
/**
|