@saas-ui/forms 1.0.0-rc.4 → 1.0.0-rc.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @saas-ui/forms
2
2
 
3
+ ## 1.0.0-rc.5
4
+
5
+ ### Patch Changes
6
+
7
+ - fca06e4: Added Json Schema (ajv) support for AutoForm.
8
+
3
9
  ## 1.0.0-rc.4
4
10
 
5
11
  ### Patch Changes
@@ -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,2 @@
1
+ export * from './ajv-resolver';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ajv/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}