@remotion/zod-types 4.0.291 → 4.0.293
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/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +5 -1
- package/dist/esm/index.mjs +14 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { zColor } from './z-color.js';
|
|
2
|
+
export { zMatrix } from './z-matrix.js';
|
|
2
3
|
export { zTextarea } from './z-textarea.js';
|
|
3
4
|
export declare const ZodZypesInternals: {
|
|
4
5
|
parseColor: (value: string) => {
|
|
@@ -9,4 +10,5 @@ export declare const ZodZypesInternals: {
|
|
|
9
10
|
};
|
|
10
11
|
REMOTION_COLOR_BRAND: string;
|
|
11
12
|
REMOTION_TEXTAREA_BRAND: string;
|
|
13
|
+
REMOTION_MATRIX_BRAND: string;
|
|
12
14
|
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZodZypesInternals = exports.zTextarea = exports.zColor = void 0;
|
|
3
|
+
exports.ZodZypesInternals = exports.zTextarea = exports.zMatrix = exports.zColor = void 0;
|
|
4
4
|
const z_color_js_1 = require("./z-color.js");
|
|
5
|
+
const z_matrix_js_1 = require("./z-matrix.js");
|
|
5
6
|
const z_textarea_1 = require("./z-textarea");
|
|
6
7
|
var z_color_js_2 = require("./z-color.js");
|
|
7
8
|
Object.defineProperty(exports, "zColor", { enumerable: true, get: function () { return z_color_js_2.zColor; } });
|
|
9
|
+
var z_matrix_js_2 = require("./z-matrix.js");
|
|
10
|
+
Object.defineProperty(exports, "zMatrix", { enumerable: true, get: function () { return z_matrix_js_2.zMatrix; } });
|
|
8
11
|
var z_textarea_js_1 = require("./z-textarea.js");
|
|
9
12
|
Object.defineProperty(exports, "zTextarea", { enumerable: true, get: function () { return z_textarea_js_1.zTextarea; } });
|
|
10
13
|
exports.ZodZypesInternals = {
|
|
11
14
|
parseColor: z_color_js_1.parseColor,
|
|
12
15
|
REMOTION_COLOR_BRAND: z_color_js_1.REMOTION_COLOR_BRAND,
|
|
13
16
|
REMOTION_TEXTAREA_BRAND: z_textarea_1.REMOTION_TEXTAREA_BRAND,
|
|
17
|
+
REMOTION_MATRIX_BRAND: z_matrix_js_1.REMOTION_MATRIX_BRAND,
|
|
14
18
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -19,19 +19,30 @@ var zColor = () => z.string().refine((value) => {
|
|
|
19
19
|
}
|
|
20
20
|
}, { message: "Invalid color" }).describe(REMOTION_COLOR_BRAND);
|
|
21
21
|
|
|
22
|
-
// src/z-
|
|
22
|
+
// src/z-matrix.ts
|
|
23
23
|
import { z as z2 } from "zod";
|
|
24
|
+
var REMOTION_MATRIX_BRAND = "__remotion-matrix";
|
|
25
|
+
var zMatrix = () => z2.array(z2.number().step(0.01)).refine((value) => {
|
|
26
|
+
const count = value.length;
|
|
27
|
+
const root = Math.sqrt(count);
|
|
28
|
+
return Number.isInteger(root) && root > 0;
|
|
29
|
+
}, { message: "Invalid matrix, must be a square matrix" }).describe(REMOTION_MATRIX_BRAND);
|
|
30
|
+
|
|
31
|
+
// src/z-textarea.ts
|
|
32
|
+
import { z as z3 } from "zod";
|
|
24
33
|
var REMOTION_TEXTAREA_BRAND = "__remotion-textarea";
|
|
25
|
-
var zTextarea = () =>
|
|
34
|
+
var zTextarea = () => z3.string().describe(REMOTION_TEXTAREA_BRAND);
|
|
26
35
|
|
|
27
36
|
// src/index.ts
|
|
28
37
|
var ZodZypesInternals = {
|
|
29
38
|
parseColor,
|
|
30
39
|
REMOTION_COLOR_BRAND,
|
|
31
|
-
REMOTION_TEXTAREA_BRAND
|
|
40
|
+
REMOTION_TEXTAREA_BRAND,
|
|
41
|
+
REMOTION_MATRIX_BRAND
|
|
32
42
|
};
|
|
33
43
|
export {
|
|
34
44
|
zTextarea,
|
|
45
|
+
zMatrix,
|
|
35
46
|
zColor,
|
|
36
47
|
ZodZypesInternals
|
|
37
48
|
};
|
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.
|
|
6
|
+
"version": "4.0.293",
|
|
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.
|
|
19
|
+
"remotion": "4.0.293"
|
|
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.
|
|
27
|
+
"@remotion/eslint-config-internal": "4.0.293"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"zod",
|