@remotion/zod-types 4.0.279 → 4.0.282

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,3 @@
1
+ import { z } from 'zod';
2
+ export declare const REMOTION_MATRIX_BRAND = "__remotion-matrix";
3
+ export declare const zMatrix: () => z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zMatrix = exports.REMOTION_MATRIX_BRAND = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.REMOTION_MATRIX_BRAND = '__remotion-matrix';
6
+ const zMatrix = () => zod_1.z
7
+ .array(zod_1.z.number().step(0.01))
8
+ .refine((value) => {
9
+ const count = value.length;
10
+ const root = Math.sqrt(count);
11
+ return Number.isInteger(root) && root > 0;
12
+ }, { message: 'Invalid matrix, must be a square matrix' })
13
+ .describe(exports.REMOTION_MATRIX_BRAND);
14
+ exports.zMatrix = zMatrix;
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.279",
6
+ "version": "4.0.282",
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.279"
19
+ "remotion": "4.0.282"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "zod": "3.22.3"
@@ -24,7 +24,7 @@
24
24
  "devDependencies": {
25
25
  "zod": "3.22.3",
26
26
  "eslint": "9.19.0",
27
- "@remotion/eslint-config-internal": "4.0.279"
27
+ "@remotion/eslint-config-internal": "4.0.282"
28
28
  },
29
29
  "keywords": [
30
30
  "zod",