@shotstack/schemas 1.5.4 → 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 +13 -1
- package/dist/zod/zod.gen.d.ts +19257 -42
- package/dist/zod/zod.gen.js +13 -1
- package/dist/zod/zod.gen.ts +14 -1
- package/package.json +1 -1
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -3293,11 +3293,23 @@ exports.clipClipSchema = zod_1.z.object({
|
|
|
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
3294
|
});
|
|
3295
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) => {
|
|
3299
|
+
if (clip.asset && typeof clip.asset === 'object' && 'type' in clip.asset) {
|
|
3300
|
+
const assetType = clip.asset.type;
|
|
3301
|
+
if (assetType === 'rich-text') {
|
|
3302
|
+
const { fit, ...rest } = clip;
|
|
3303
|
+
return rest;
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
return clip;
|
|
3307
|
+
});
|
|
3296
3308
|
/**
|
|
3297
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.
|
|
3298
3310
|
*/
|
|
3299
3311
|
exports.trackTrackSchema = zod_1.z.object({
|
|
3300
|
-
clips: zod_1.z.array(
|
|
3312
|
+
clips: zod_1.z.array(clipClipSchemaWithFitFilter).min(1),
|
|
3301
3313
|
});
|
|
3302
3314
|
exports.trackSchema = exports.trackTrackSchema;
|
|
3303
3315
|
/**
|