@abgov/jsonforms-components 1.24.7 → 1.24.8

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/index.esm.js CHANGED
@@ -10,6 +10,7 @@ import merge from 'lodash/merge';
10
10
  import isEmpty$1 from 'lodash/isEmpty';
11
11
  import range from 'lodash/range';
12
12
  import Ajv from 'ajv';
13
+ import addFormats from 'ajv-formats';
13
14
 
14
15
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
15
16
 
@@ -6599,10 +6600,12 @@ var GoAErrorControl = withJsonFormsControlProps(ErrorControl);
6599
6600
 
6600
6601
  const ajv = new Ajv({
6601
6602
  allErrors: true,
6602
- verbose: true
6603
+ verbose: true,
6604
+ strict: 'log'
6603
6605
  });
6604
6606
  //Example format: urn:ads:platform:file-service:v1:/files/f6de737e-c5fc-42fe-963b-28bfe14597c4
6605
6607
  ajv.addFormat('file-urn', /^urn:ads:platform:file-service:v[0-9]:\/files\/[a-zA-Z0-9.-]*$/);
6608
+ addFormats(ajv);
6606
6609
 
6607
6610
  const GoABaseRenderers = [
6608
6611
  // controls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.24.7",
3
+ "version": "1.24.8",
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",
@@ -9,8 +9,8 @@
9
9
  "@jsonforms/core": "^3.1.0",
10
10
  "@jsonforms/react": "^3.1.0",
11
11
  "react": "^18.0.0",
12
- "ajv": "^6.12.6",
13
- "ajv8": "npm:ajv@^8.6.1"
12
+ "ajv": "^8.6.1",
13
+ "ajv-formats": "^3.0.1"
14
14
  },
15
15
  "dependencies": {
16
16
  "axios": "^1.6.7",
@@ -1,3 +1,3 @@
1
1
  import { JsonSchema } from '@jsonforms/core';
2
- import Ajv from 'ajv8';
2
+ import Ajv from 'ajv';
3
3
  export declare const validateData: (jsonSchema: JsonSchema, data: unknown, ajv: Ajv) => boolean;
@@ -1,2 +1,2 @@
1
1
  import Ajv from 'ajv';
2
- export declare const ajv: Ajv.Ajv;
2
+ export declare const ajv: Ajv;
@@ -1,7 +1,7 @@
1
1
  import { ComponentType } from 'react';
2
2
  import type { UISchemaElement } from '@jsonforms/core';
3
3
  import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, OwnPropsOfRenderer } from '@jsonforms/core';
4
- import Ajv from 'ajv8';
4
+ import Ajv from 'ajv';
5
5
  export type Ajv8 = Ajv;
6
6
  export declare const renderLayoutElements: (elements: UISchemaElement[], schema?: JsonSchema, path?: string, enabled?: boolean, renderers?: JsonFormsRendererRegistryEntry[], cells?: JsonFormsCellRendererRegistryEntry[]) => import("react/jsx-runtime").JSX.Element[];
7
7
  export interface LayoutRendererProps extends OwnPropsOfRenderer {