@abgov/jsonforms-components 1.49.1 → 1.50.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
|
@@ -5805,6 +5805,10 @@ const stepperReducer = (state, action) => {
|
|
|
5805
5805
|
} = state;
|
|
5806
5806
|
const lastId = categories[categories.length - 1].id;
|
|
5807
5807
|
switch (action.type) {
|
|
5808
|
+
case 'update/uischema':
|
|
5809
|
+
{
|
|
5810
|
+
return Object.assign({}, action.payload.state);
|
|
5811
|
+
}
|
|
5808
5812
|
case 'page/next':
|
|
5809
5813
|
{
|
|
5810
5814
|
state.activeId += 1;
|
|
@@ -5998,6 +6002,16 @@ const JsonFormsStepperContextProvider = ({
|
|
|
5998
6002
|
}
|
|
5999
6003
|
};
|
|
6000
6004
|
}, [ctx === null || ctx === void 0 ? void 0 : ctx.core, stepperDispatch, stepperState]);
|
|
6005
|
+
useEffect(() => {
|
|
6006
|
+
if ((context === null || context === void 0 ? void 0 : context.isProvided) === true) {
|
|
6007
|
+
stepperDispatch({
|
|
6008
|
+
type: 'update/uischema',
|
|
6009
|
+
payload: {
|
|
6010
|
+
state: createStepperContextInitData(StepperProps)
|
|
6011
|
+
}
|
|
6012
|
+
});
|
|
6013
|
+
}
|
|
6014
|
+
}, [StepperProps.uischema]);
|
|
6001
6015
|
return jsx(JsonFormsStepperContext.Provider, {
|
|
6002
6016
|
value: context,
|
|
6003
6017
|
children: children
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.50.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",
|
|
@@ -22,5 +22,10 @@ export type StepperAction = {
|
|
|
22
22
|
payload: {
|
|
23
23
|
errors?: ErrorObject[];
|
|
24
24
|
};
|
|
25
|
+
} | {
|
|
26
|
+
type: 'update/uischema';
|
|
27
|
+
payload: {
|
|
28
|
+
state: StepperContextDataType;
|
|
29
|
+
};
|
|
25
30
|
};
|
|
26
31
|
export declare const stepperReducer: (state: StepperContextDataType, action: StepperAction) => StepperContextDataType;
|