@abgov/jsonforms-components 2.70.0 → 2.70.1

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
@@ -11,10 +11,10 @@ import { useJsonForms, withJsonFormsControlProps, withJsonFormsEnumProps, withTr
11
11
  import dompurify from 'dompurify';
12
12
  import * as xss from 'xss';
13
13
  import merge from 'lodash/merge';
14
+ import { GoabRadioGroup as GoabRadioGroup$1, GoabRadioItem as GoabRadioItem$1, GoabTable as GoabTable$1, GoabGrid as GoabGrid$1, GoabContainer as GoabContainer$1 } from '@abgov/react-components';
14
15
  import isEmpty$1 from 'lodash/isEmpty';
15
16
  import range from 'lodash/range';
16
17
  import pluralize from 'pluralize';
17
- import { GoabTable as GoabTable$1, GoabGrid as GoabGrid$1, GoabContainer as GoabContainer$1 } from '@abgov/react-components';
18
18
  import { compileSync } from '@mdx-js/mdx';
19
19
  import ReactMarkdown from 'react-markdown';
20
20
  import rehypeSanitize, { defaultSchema } from 'rehype-sanitize';
@@ -9194,7 +9194,6 @@ const RadioGroup = props => {
9194
9194
  uischema,
9195
9195
  path,
9196
9196
  handleChange,
9197
- options,
9198
9197
  config,
9199
9198
  label,
9200
9199
  isVisited,
@@ -9211,8 +9210,12 @@ const RadioGroup = props => {
9211
9210
  value: String(value),
9212
9211
  label: String(value)
9213
9212
  }));
9214
- const appliedUiSchemaOptions = merge({}, config, props.uischema.options, options);
9215
- return jsx(GoabRadioGroup, Object.assign({
9213
+ // Merge only UI-schema level options (config + uischema.options). The enum data
9214
+ // `options` array must NOT be merged here: lodash.merge folds its indices in as
9215
+ // numeric keys (0, 1, 2, ...), which then get spread onto <goa-radio-group> below
9216
+ // and trigger React's "Invalid attribute name: `3`" warning (CS ticket).
9217
+ const appliedUiSchemaOptions = merge({}, config, props.uischema.options);
9218
+ return jsx(GoabRadioGroup$1, Object.assign({
9216
9219
  error: isVisited && errors.length > 0,
9217
9220
  name: `${path || appliedUiSchemaOptions.label}`,
9218
9221
  testId: `${path || id || label}-radio-group`,
@@ -9221,7 +9224,7 @@ const RadioGroup = props => {
9221
9224
  }, appliedUiSchemaOptions, {
9222
9225
  onChange: detail => handleChange(path, detail.value)
9223
9226
  }, uischema == null || (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.componentProps, {
9224
- children: items.map((item, index) => jsx(GoabRadioItem, {
9227
+ children: items.map((item, index) => jsx(GoabRadioItem$1, {
9225
9228
  name: item.value,
9226
9229
  value: item.value,
9227
9230
  label: item.label
@@ -9400,13 +9403,15 @@ const CheckboxGroup = props => {
9400
9403
  uischema,
9401
9404
  path,
9402
9405
  handleChange,
9403
- options,
9404
9406
  config,
9405
9407
  label,
9406
9408
  enabled
9407
9409
  } = props;
9408
9410
  const enumOptions = getEnumOptions(schema);
9409
- const appliedUiSchemaOptions = merge({}, config, props.uischema.options, options);
9411
+ // Merge only UI-schema level options. The enum data `options` array must NOT be merged
9412
+ // here: lodash.merge folds its indices in as numeric keys (0, 1, 2, ...) that then get
9413
+ // spread onto <goa-checkbox> below and trigger React's "Invalid attribute name" warning.
9414
+ const appliedUiSchemaOptions = merge({}, config, props.uischema.options);
9410
9415
  return jsx(Checkboxes, {
9411
9416
  orientation: (_uischema$options = uischema.options) != null && _uischema$options.orientation ? (_uischema$options2 = uischema.options) == null ? void 0 : _uischema$options2.orientation : 'vertical',
9412
9417
  testId: `${label || id}-jsonforms-checkboxes`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.70.0",
3
+ "version": "2.70.1",
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-07-23T15:27:18.993Z",
4
- "sourceCommit": "f9c7063696b8fa8c87eb247175573525da9d3ffe",
3
+ "generatedAt": "2026-07-24T15:27:00.393Z",
4
+ "sourceCommit": "8a81c2092c7077517f68eff20e8351c2a681f841",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [