@abgov/jsonforms-components 1.29.0 → 1.31.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.29.0",
3
+ "version": "1.31.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",
@@ -10,6 +10,7 @@
10
10
  "@jsonforms/react": "^3.1.0",
11
11
  "react": "^18.0.0",
12
12
  "ajv": "^8.6.1",
13
+ "ajv-errors": "^3.0.0",
13
14
  "ajv-formats": "^3.0.1"
14
15
  },
15
16
  "dependencies": {
@@ -17,6 +18,9 @@
17
18
  "lodash": "^4.17.20",
18
19
  "styled-components": "^5.3.6"
19
20
  },
21
+ "optionalDependencies": {
22
+ "@apidevtools/json-schema-ref-parser": "^11.7.0"
23
+ },
20
24
  "module": "./index.esm.js",
21
25
  "type": "module",
22
26
  "main": "./index.esm.js"
@@ -1,2 +1,2 @@
1
- import Ajv from 'ajv';
2
- export declare const createDefaultAjv: () => Ajv;
1
+ import Ajv, { AnySchema } from 'ajv';
2
+ export declare const createDefaultAjv: (...schemas: AnySchema[]) => Ajv;
@@ -1 +1,2 @@
1
1
  export * from './Ajv';
2
+ export * from './resolveRefs';
@@ -0,0 +1,3 @@
1
+ import { JsonSchema } from '@jsonforms/core';
2
+ export declare function resolveRefs(schema: JsonSchema, ...refSchemas: JsonSchema[]): Promise<JsonSchema>;
3
+ export declare function tryResolveRefs(schema: JsonSchema, ...refSchemas: JsonSchema[]): Promise<[JsonSchema, unknown?]>;