@abgov/jsonforms-components 1.48.0 → 1.49.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.css
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* This css file is here to override any parent/root css files
|
|
2
|
+
that add spacing, sizes, color that the help content uses
|
|
3
|
+
to display markdown content it uses.
|
|
4
|
+
*/
|
|
5
|
+
li > ul,
|
|
6
|
+
li > ol,
|
|
7
|
+
li > ul,
|
|
8
|
+
li > ol {
|
|
9
|
+
padding-left: var(--goa-space-m) !important;
|
|
10
|
+
margin-top: initial;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
em {
|
|
14
|
+
font-size: var(--goa-typography-body-s) !important;
|
|
15
|
+
color: var(--goa-color-text-default) !important;
|
|
16
|
+
}
|
package/index.esm.js
CHANGED
|
@@ -5872,8 +5872,9 @@ const stepperReducer = (state, action) => {
|
|
|
5872
5872
|
state.isValid = errors.length === 0;
|
|
5873
5873
|
return Object.assign({}, state);
|
|
5874
5874
|
}
|
|
5875
|
+
default:
|
|
5876
|
+
return state;
|
|
5875
5877
|
}
|
|
5876
|
-
return state;
|
|
5877
5878
|
};
|
|
5878
5879
|
|
|
5879
5880
|
const isErrorPathIncluded = (errorPaths, path) => {
|
|
@@ -5944,6 +5945,7 @@ const JsonFormsStepperContextProvider = ({
|
|
|
5944
5945
|
const stepperDispatch = (StepperProps === null || StepperProps === void 0 ? void 0 : StepperProps.customDispatch) || dispatch;
|
|
5945
5946
|
const context = useMemo(() => {
|
|
5946
5947
|
return {
|
|
5948
|
+
isProvided: true,
|
|
5947
5949
|
stepperDispatch,
|
|
5948
5950
|
selectStepperState: () => {
|
|
5949
5951
|
return stepperState;
|
|
@@ -6005,10 +6007,11 @@ const JsonFormsStepperContextProvider = ({
|
|
|
6005
6007
|
const summaryLabel = 'Summary';
|
|
6006
6008
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6007
6009
|
const FormStepper = props => {
|
|
6010
|
+
const formStepperCtx = useContext(JsonFormsStepperContext);
|
|
6008
6011
|
/**
|
|
6009
|
-
*
|
|
6012
|
+
* StepperCtx can only be provided once to prevent issues from categorization in categorization
|
|
6010
6013
|
* */
|
|
6011
|
-
if (
|
|
6014
|
+
if ((formStepperCtx === null || formStepperCtx === void 0 ? void 0 : formStepperCtx.isProvided) === true) {
|
|
6012
6015
|
return jsx(FormStepperView, Object.assign({}, props));
|
|
6013
6016
|
}
|
|
6014
6017
|
return jsx(JsonFormsStepperContextProvider, {
|
|
@@ -8270,7 +8273,8 @@ const HelpContentComponent = _a => {
|
|
|
8270
8273
|
if (helpText === undefined) return '';
|
|
8271
8274
|
if (typeof helpText === 'string') return helpText;
|
|
8272
8275
|
if (Array.isArray(helpText)) {
|
|
8273
|
-
|
|
8276
|
+
//Two spaces after the text inserts a line break in markdown.
|
|
8277
|
+
const data = helpText.join(' \n');
|
|
8274
8278
|
return data;
|
|
8275
8279
|
}
|
|
8276
8280
|
return '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.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",
|
|
@@ -19,6 +19,7 @@ export interface JsonFormsStepperContextProps {
|
|
|
19
19
|
selectPath: () => string;
|
|
20
20
|
selectCategory: (id: number) => CategoryState;
|
|
21
21
|
goToPage: (id: number, updateCategoryId?: number) => void;
|
|
22
|
+
isProvided?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export declare const isErrorPathIncluded: (errorPaths: string[], path: string) => boolean;
|
|
24
25
|
export declare const getIncompletePaths: (ajv: Ajv, scopes: string[]) => string[];
|