@remotion/zod-types 4.0.209 → 4.0.210

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.
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const zGoogleFont: () => z.ZodEnum<["Roboto", ...string[]]>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zGoogleFont = void 0;
4
+ const google_fonts_1 = require("@remotion/google-fonts");
5
+ const zod_1 = require("zod");
6
+ const fonts = (0, google_fonts_1.getAvailableFonts)();
7
+ const fontImportNames = fonts.map(({ importName }) => importName);
8
+ // z.enum requires const arrays for compile time
9
+ // below is a trick to set default to Roboto and add other fonts dynamically
10
+ const zGoogleFont = () => zod_1.z.enum(['Roboto', ...fontImportNames]);
11
+ exports.zGoogleFont = zGoogleFont;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/zod-types"
4
4
  },
5
5
  "name": "@remotion/zod-types",
6
- "version": "4.0.209",
6
+ "version": "4.0.210",
7
7
  "description": "Zod types for Remotion",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "url": "https://github.com/remotion-dev/remotion/issues"
17
17
  },
18
18
  "dependencies": {
19
- "remotion": "4.0.209"
19
+ "remotion": "4.0.210"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "zod": "3.22.3"