@remotion/zod-types-v3 4.0.426

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/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @remotion/zod-types-v3
2
+
3
+ Zod 3.22.3 types for Remotion
4
+
5
+ [![NPM Downloads](https://img.shields.io/npm/dm/@remotion/zod-types-v3.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/@remotion/zod-types-v3?minimal=true)
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @remotion/zod-types-v3 --save-exact
11
+ ```
12
+
13
+ When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
14
+ Remove the `^` character from the version number to use the exact version.
15
+
16
+ ## Usage
17
+
18
+ See the [documentation](https://www.remotion.dev/docs/zod-types/v3) for more information.
@@ -0,0 +1,31 @@
1
+ // src/z-color.ts
2
+ import { ZodZypesInternals } from "@remotion/zod-types";
3
+ import { z } from "zod";
4
+ var { parseColor, REMOTION_COLOR_BRAND } = ZodZypesInternals;
5
+ var zColor = () => z.string().refine((value) => {
6
+ try {
7
+ parseColor(value);
8
+ return true;
9
+ } catch {
10
+ return false;
11
+ }
12
+ }, { message: "Invalid color" }).describe(REMOTION_COLOR_BRAND);
13
+ // src/z-matrix.ts
14
+ import { ZodZypesInternals as ZodZypesInternals2 } from "@remotion/zod-types";
15
+ import { z as z2 } from "zod";
16
+ var { REMOTION_MATRIX_BRAND } = ZodZypesInternals2;
17
+ var zMatrix = () => z2.array(z2.number().step(0.01)).refine((value) => {
18
+ const count = value.length;
19
+ const root = Math.sqrt(count);
20
+ return Number.isInteger(root) && root > 0;
21
+ }, { message: "Invalid matrix, must be a square matrix" }).describe(REMOTION_MATRIX_BRAND);
22
+ // src/z-textarea.ts
23
+ import { ZodZypesInternals as ZodZypesInternals3 } from "@remotion/zod-types";
24
+ import { z as z3 } from "zod";
25
+ var { REMOTION_TEXTAREA_BRAND } = ZodZypesInternals3;
26
+ var zTextarea = () => z3.string().describe(REMOTION_TEXTAREA_BRAND);
27
+ export {
28
+ zTextarea,
29
+ zMatrix,
30
+ zColor
31
+ };
@@ -0,0 +1,3 @@
1
+ export { zColor } from './z-color.js';
2
+ export { zMatrix } from './z-matrix.js';
3
+ export { zTextarea } from './z-textarea.js';
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const zColor: () => z.ZodEffects<z.ZodString, string, string>;
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const zMatrix: () => z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const zTextarea: () => z.ZodString;
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@remotion/zod-types-v3",
3
+ "version": "4.0.426",
4
+ "description": "Zod 3.22.3 types for Remotion",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "module": "dist/esm/index.mjs",
8
+ "repository": {
9
+ "url": "https://github.com/remotion-dev/remotion/tree/main/packages/zod-types-v3"
10
+ },
11
+ "sideEffects": false,
12
+ "type": "module",
13
+ "scripts": {
14
+ "formatting": "prettier --experimental-cli src --check",
15
+ "lint": "eslint src",
16
+ "watch": "tsgo -w",
17
+ "make": "tsgo && bun --env-file=../.env.bundle bundle.ts"
18
+ },
19
+ "author": "Jonny Burger <jonny@remotion.dev>",
20
+ "contributors": [],
21
+ "license": "MIT",
22
+ "bugs": {
23
+ "url": "https://github.com/remotion-dev/remotion/issues"
24
+ },
25
+ "dependencies": {
26
+ "remotion": "4.0.426",
27
+ "@remotion/zod-types": "4.0.426"
28
+ },
29
+ "peerDependencies": {
30
+ "zod": ">=3.0.0 <4.0.0"
31
+ },
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "module": "./dist/esm/index.mjs",
36
+ "import": "./dist/esm/index.mjs"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "devDependencies": {
41
+ "zod": "3.22.3",
42
+ "@remotion/eslint-config-internal": "4.0.426",
43
+ "eslint": "9.19.0",
44
+ "@typescript/native-preview": "7.0.0-dev.20260217.1"
45
+ },
46
+ "keywords": [
47
+ "remotion",
48
+ "zod",
49
+ "zod-v3"
50
+ ],
51
+ "publishConfig": {
52
+ "access": "public"
53
+ },
54
+ "homepage": "https://www.remotion.dev/docs/zod-types/v3"
55
+ }