@abgov/jsonforms-components 2.73.0 → 2.73.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 +10 -2
- package/package.json +1 -1
- package/renderer-catalog.json +2 -2
package/index.esm.js
CHANGED
|
@@ -9516,18 +9516,26 @@ const JsonFormsStepperContextProvider = ({
|
|
|
9516
9516
|
if ((context == null ? void 0 : context.isProvided) === true) {
|
|
9517
9517
|
var _stepperState$categor6, _stepperState$categor7;
|
|
9518
9518
|
/* The block is used to cache the state for the tenant web app review editor */
|
|
9519
|
+
// The task list is the sentinel id past the last page, which sits above maxReachedStep until
|
|
9520
|
+
// the user opens something, so clamping would drop them onto the first page on the recompute
|
|
9521
|
+
// that follows mount. Real pages survive the clamp only because the goToPage pair below puts
|
|
9522
|
+
// them back, and that is deliberately skipped while the task list is showing.
|
|
9523
|
+
const isOnTaskList = stepperState.activeId === stepperState.categories.length + 1;
|
|
9519
9524
|
stepperDispatch({
|
|
9520
9525
|
type: 'update/uischema',
|
|
9521
9526
|
payload: {
|
|
9522
9527
|
state: createStepperContextInitData(Object.assign({}, StepperProps, {
|
|
9523
|
-
activeId
|
|
9528
|
+
// Leaving activeId out lets init recompute the sentinel from the categories this
|
|
9529
|
+
// recompute produced, so a conditional page appearing or disappearing still lands on
|
|
9530
|
+
// the task list rather than on the review page.
|
|
9531
|
+
activeId: isOnTaskList ? undefined : Math.min(stepperState == null ? void 0 : stepperState.activeId, stepperState.maxReachedStep)
|
|
9524
9532
|
}), {
|
|
9525
9533
|
visitedIds: new Set([...persistedVisitedIds, ...((_stepperState$categor6 = stepperState == null || (_stepperState$categor7 = stepperState.categories) == null ? void 0 : _stepperState$categor7.filter(c => c.isVisited).map(c => c.id)) != null ? _stepperState$categor6 : [])]),
|
|
9526
9534
|
autoPopulatedValues
|
|
9527
9535
|
})
|
|
9528
9536
|
}
|
|
9529
9537
|
});
|
|
9530
|
-
if (
|
|
9538
|
+
if (!isOnTaskList) {
|
|
9531
9539
|
context.goToPage(stepperState.maxReachedStep);
|
|
9532
9540
|
context.goToPage(stepperState.activeId);
|
|
9533
9541
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.73.
|
|
3
|
+
"version": "2.73.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",
|
package/renderer-catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-08-
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"generatedAt": "2026-08-27T22:10:25.781Z",
|
|
4
|
+
"sourceCommit": "8963e4fedf4c8f323ddc21c852273f0d75b2f99f",
|
|
5
5
|
"sourcePath": "libs/jsonforms-components/src/index.ts",
|
|
6
6
|
"rendererCount": 33,
|
|
7
7
|
"renderers": [
|