@abgov/jsonforms-components 2.30.2 → 2.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/index.esm.js CHANGED
@@ -5088,16 +5088,6 @@ const JsonFormRegisterProvider = ({
5088
5088
  return 'The element does not exist';
5089
5089
  }
5090
5090
  }
5091
- if (registers === null || registers === void 0 ? void 0 : registers.nonAnonymous) {
5092
- const matchFound = registers === null || registers === void 0 ? void 0 : registers.nonAnonymous.some(nonAnon => {
5093
- var _a;
5094
- if ((_a = criteria === null || criteria === void 0 ? void 0 : criteria.urn) === null || _a === void 0 ? void 0 : _a.toString().includes(nonAnon)) {
5095
- return true;
5096
- }
5097
- return false;
5098
- });
5099
- return matchFound ? 'The element does not allow anonymous reading' : '';
5100
- }
5101
5091
  }
5102
5092
  return '';
5103
5093
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.30.2",
3
+ "version": "2.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",
@@ -20,7 +20,7 @@ export interface Errors {
20
20
  url: string;
21
21
  message: string;
22
22
  }
23
- export type RegisterDataType = string[] | LabelValueRegisterData[];
23
+ export type RegisterDataType = string[] | LabelValueRegisterData[] | Record<string, unknown>[];
24
24
  export interface RegisterConfigData extends RegisterConfig {
25
25
  data?: RegisterDataType;
26
26
  errors?: Record<string, Errors>;