@abgov/jsonforms-components 2.47.8 → 2.47.9

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.
Files changed (2) hide show
  1. package/index.esm.js +4 -2
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -10470,11 +10470,13 @@ const ContextProviderFactory = () => new ContextProviderClass().setup;
10470
10470
  const JsonFormContext = /*#__PURE__*/createContext(null);
10471
10471
 
10472
10472
  const RenderStepElements = props => {
10473
+ var _props$category;
10473
10474
  const memoizedSchema = useMemo(() => Object.assign({}, props.schema), [props.schema]);
10474
10475
  return jsx(Visible, {
10475
10476
  visible: props.visible,
10476
- "data-testid": `${props.path}-categories-${props.categoryIndex}`,
10477
+ "data-testid": `${(props == null ? void 0 : props.path) || ((_props$category = props.category) == null ? void 0 : _props$category.label)}-categories-${props.categoryIndex}`,
10477
10478
  children: props.category.elements.map((uiSchema, index) => {
10479
+ var _props$category2;
10478
10480
  return jsx(JsonFormsDispatch, {
10479
10481
  schema: memoizedSchema,
10480
10482
  uischema: uiSchema,
@@ -10483,7 +10485,7 @@ const RenderStepElements = props => {
10483
10485
  path: props.path,
10484
10486
  visible: props.visible,
10485
10487
  enabled: props.enabled
10486
- }, `${props.path}-category-page-${index}`);
10488
+ }, `${(props == null ? void 0 : props.path) || ((_props$category2 = props.category) == null ? void 0 : _props$category2.label)}-category-page-${index}`);
10487
10489
  })
10488
10490
  });
10489
10491
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.47.8",
3
+ "version": "2.47.9",
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",