@saas-ui/forms 1.0.0-rc.4 → 1.0.0-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/ajv/package.json +18 -0
- package/dist/ajv/ajv-resolver.d.ts +11 -0
- package/dist/ajv/ajv-resolver.d.ts.map +1 -0
- package/dist/ajv/index.d.ts +2 -0
- package/dist/ajv/index.d.ts.map +1 -0
- package/dist/ajv/index.js +97 -0
- package/dist/ajv/index.js.map +1 -0
- package/dist/ajv/index.modern.mjs +97 -0
- package/dist/ajv/index.modern.mjs.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/step-form.d.ts.map +1 -1
- package/package.json +11 -3
- package/src/step-form.tsx +1 -10
- package/yup/package.json +2 -2
- package/zod/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/ajv/package.json
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"name": "ajv",
|
3
|
+
"description": "Saas UI Forms field resolver: ajv",
|
4
|
+
"version": "1.0.0",
|
5
|
+
"private": true,
|
6
|
+
"source": "./src/index.ts",
|
7
|
+
"main": "../dist/ajv/index.js",
|
8
|
+
"module": "../dist/ajv/index.modern.mjs",
|
9
|
+
"types": "../dist/ajv/index.d.ts",
|
10
|
+
"author": "Eelco Wiersma <eelco@appulse.nl>",
|
11
|
+
"license": "MIT",
|
12
|
+
"peerDependencies": {
|
13
|
+
"@chakra-ui/utils": "^2.0.2",
|
14
|
+
"@hookform/resolvers": "^2.9.0",
|
15
|
+
"react-hook-form": "^7.31.3",
|
16
|
+
"ajv": "^8.11.0"
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ajvResolver } from '@hookform/resolvers/ajv';
|
2
|
+
import { FieldResolver } from '@saas-ui/forms';
|
3
|
+
import { JSONSchemaType } from 'ajv';
|
4
|
+
interface JsonSchemaFormReturn {
|
5
|
+
schema: JSONSchemaType<unknown>;
|
6
|
+
fieldResolver: FieldResolver;
|
7
|
+
resolver: ReturnType<typeof ajvResolver>;
|
8
|
+
}
|
9
|
+
export declare const jsonSchemaForm: (schema: JSONSchemaType<unknown>) => JsonSchemaFormReturn;
|
10
|
+
export {};
|
11
|
+
//# sourceMappingURL=ajv-resolver.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ajv-resolver.d.ts","sourceRoot":"","sources":["../../ajv/src/ajv-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAuB,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAMpC,UAAU,oBAAoB;IAC5B,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,aAAa,EAAE,aAAa,CAAA;IAC5B,QAAQ,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;CACzC;AAED,eAAO,MAAM,cAAc,WACjB,eAAe,OAAO,CAAC,KAC9B,oBAMF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ajv/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|