@abgov/jsonforms-components 2.58.5 → 2.59.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
@@ -10048,11 +10048,18 @@ const GoAInputBaseTableReview = props => {
10048
10048
  }
10049
10049
  }
10050
10050
  }
10051
+ if (!activeError && typeof errors === 'string' && errors.trim() !== '') {
10052
+ activeError = errors;
10053
+ }
10054
+ if (activeError && /\sis required$/i.test(activeError)) {
10055
+ activeError = `${labelToUpdate} is required`;
10056
+ }
10051
10057
  if (required && isNilOrEmptyValue(data, true) && !activeError) {
10052
10058
  activeError = `${labelToUpdate} is required`;
10053
10059
  }
10054
10060
  // eslint-disable-next-line
10055
10061
  const stepId = (_uischema$options4 = uischema.options) == null ? void 0 : _uischema$options4.stepId;
10062
+ const showInlineValue = reviewText === null || reviewText === undefined || typeof reviewText === 'string' || typeof reviewText === 'number' || /*#__PURE__*/React.isValidElement(reviewText) || Array.isArray(reviewText) && reviewText.length === 0;
10056
10063
  return jsx("tr", {
10057
10064
  "data-testid": `input-base-table-${label}-row`,
10058
10065
  children: jsxs(PageReviewContainer, {
@@ -10069,9 +10076,9 @@ const GoAInputBaseTableReview = props => {
10069
10076
  children: "Change"
10070
10077
  })]
10071
10078
  }), jsxs(ReviewValue, {
10072
- children: [typeof reviewText === 'string' || typeof reviewText === 'number' || /*#__PURE__*/React.isValidElement(reviewText) ? jsx("div", {
10079
+ children: [showInlineValue ? jsx("div", {
10073
10080
  "data-testid": `review-value-${label}`,
10074
- children: reviewText
10081
+ children: reviewText != null ? reviewText : ''
10075
10082
  }) : jsx(JsonFormsDispatch, {
10076
10083
  "data-testid": `jsonforms-object-list-defined-elements-dispatch`,
10077
10084
  schema: schema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.58.5",
3
+ "version": "2.59.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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-04-06T21:13:45.668Z",
4
- "sourceCommit": "1ac0db7f550de834aef3d196b5b103d2a7ad540d",
3
+ "generatedAt": "2026-04-08T15:18:24.865Z",
4
+ "sourceCommit": "4eb89d4a45740fd054804409a0174dd1dcf4b9a4",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [