@abgov/jsonforms-components 2.81.1 → 2.81.2

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
@@ -10251,13 +10251,14 @@ const getNavigationTargetFromParams = params => {
10251
10251
  };
10252
10252
 
10253
10253
  const getStepperPageOptions = uischema => {
10254
- var _uischema$options$hid, _uischema$options, _uischema$options2, _uischema$options$toA, _uischema$options3, _uischema$options$sub, _uischema$options4, _uischema$options$noA, _uischema$options5;
10254
+ var _uischema$options$hid, _uischema$options, _uischema$options2, _uischema$options$toA, _uischema$options3, _uischema$options$sub, _uischema$options4, _uischema$options$noA, _uischema$options5, _uischema$options$sum, _uischema$options6;
10255
10255
  return {
10256
10256
  hideSubmit: (_uischema$options$hid = uischema == null || (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.hideSubmit) != null ? _uischema$options$hid : false,
10257
10257
  hideSummary: (uischema == null || (_uischema$options2 = uischema.options) == null ? void 0 : _uischema$options2.hideSummary) === true,
10258
10258
  toAppOverviewLabel: (_uischema$options$toA = uischema == null || (_uischema$options3 = uischema.options) == null ? void 0 : _uischema$options3.toAppOverviewLabel) != null ? _uischema$options$toA : BACK_TO_OVERVIEW_LABEL,
10259
10259
  submissionLabel: (_uischema$options$sub = uischema == null || (_uischema$options4 = uischema.options) == null ? void 0 : _uischema$options4.submissionLabel) != null ? _uischema$options$sub : NEXT_BUTTON_LABEL,
10260
- noAnswerMessage: (_uischema$options$noA = uischema == null || (_uischema$options5 = uischema.options) == null ? void 0 : _uischema$options5.noAnswerMessage) != null ? _uischema$options$noA : NO_ANSWER_MESSAGE
10260
+ noAnswerMessage: (_uischema$options$noA = uischema == null || (_uischema$options5 = uischema.options) == null ? void 0 : _uischema$options5.noAnswerMessage) != null ? _uischema$options$noA : NO_ANSWER_MESSAGE,
10261
+ summaryPageTitle: (_uischema$options$sum = uischema == null || (_uischema$options6 = uischema.options) == null ? void 0 : _uischema$options6.summaryPageTitle) != null ? _uischema$options$sum : ''
10261
10262
  };
10262
10263
  };
10263
10264
 
@@ -17928,7 +17929,6 @@ const GoABaseTableReviewRenderers$1 = [
17928
17929
  renderer: CalloutReviewControl
17929
17930
  }];
17930
17931
  const FormStepperReviewer = props => {
17931
- var _uischema$options$com, _uischema$options, _uischema$options2;
17932
17932
  const {
17933
17933
  uischema,
17934
17934
  data,
@@ -17937,10 +17937,11 @@ const FormStepperReviewer = props => {
17937
17937
  cells,
17938
17938
  enabled
17939
17939
  } = props;
17940
- const componentProps = (_uischema$options$com = (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.componentProps) != null ? _uischema$options$com : {};
17940
+ const jsonForms = useJsonForms();
17941
+ // Read from the uischema directly; the provider below is not yet in scope here.
17941
17942
  const {
17942
17943
  summaryPageTitle
17943
- } = (_uischema$options2 = uischema.options) != null ? _uischema$options2 : {};
17944
+ } = getStepperPageOptions(uischema);
17944
17945
  const categorization = uischema;
17945
17946
  const categories = categorization.elements;
17946
17947
  const rescopeMaps = ['#/properties/albertaAddress', '#/properties/canadianAddress', '#/properties/sin'];
@@ -17961,7 +17962,7 @@ const FormStepperReviewer = props => {
17961
17962
  return jsx(StepperOptionsProvider, {
17962
17963
  uischema: uischema,
17963
17964
  children: jsxs(ReviewItem, {
17964
- children: [summaryPageTitle && !componentProps.readOnly && jsx(FormStepperSummaryH3, {
17965
+ children: [summaryPageTitle && !jsonForms.readonly && jsx(FormStepperSummaryH3, {
17965
17966
  children: summaryPageTitle
17966
17967
  }), categories.map((category, categoryIndex) => {
17967
17968
  // Preserve index stability
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.81.1",
3
+ "version": "2.81.2",
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-11-02T14:56:18.675Z",
4
- "sourceCommit": "33712e7aaecbf06104cab371d856e71d9616efe4",
3
+ "generatedAt": "2026-11-02T17:47:52.093Z",
4
+ "sourceCommit": "da01d224ca485b591dd08d5096ffc4a019da81cf",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 23,
7
7
  "renderers": [
@@ -5,5 +5,6 @@ export interface StepperPageOptions {
5
5
  toAppOverviewLabel?: string;
6
6
  submissionLabel?: string;
7
7
  noAnswerMessage?: string;
8
+ summaryPageTitle?: string;
8
9
  }
9
10
  export declare const getStepperPageOptions: (uischema?: UISchemaElement) => StepperPageOptions;