@abgov/jsonforms-components 2.70.4 → 2.71.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.70.4",
3
+ "version": "2.71.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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-07-31T19:55:33.198Z",
4
- "sourceCommit": "ef8ca17fd76dacfba02abd9bb758c3be5c38e9ae",
3
+ "generatedAt": "2026-08-07T16:31:58.685Z",
4
+ "sourceCommit": "ba35318b425d06f6d8b272e81da892659e240d0e",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [
@@ -24,6 +24,10 @@ interface SubmitManagement {
24
24
  submitForm?: (any: any) => void;
25
25
  saveForm?: (any: any) => void;
26
26
  }
27
+ export interface AutoPopulatedValue {
28
+ path: string;
29
+ value: unknown;
30
+ }
27
31
  type Props = {
28
32
  children?: React.ReactNode;
29
33
  fileManagement?: FileManagement;
@@ -31,6 +35,8 @@ type Props = {
31
35
  isFormSubmitted?: boolean;
32
36
  data?: any;
33
37
  formUrl?: string | null | undefined;
38
+ autoPopulatedData?: AutoPopulatedValue[];
39
+ formId?: string;
34
40
  };
35
41
  export declare class ContextProviderClass {
36
42
  selfProps: Props | undefined;
@@ -48,6 +54,8 @@ export declare class ContextProviderClass {
48
54
  getAllFormContextData: () => AllData;
49
55
  isFormSubmitted?: boolean;
50
56
  formUrl: string | null | undefined;
57
+ autoPopulatedData?: AutoPopulatedValue[];
58
+ formId?: string;
51
59
  };
52
60
  addFormContextData: (key: string, data: Record<string, unknown> | unknown[]) => void;
53
61
  addDataByUrl(key: string, url: string, processDataFunction: (data: object) => string[], token?: string): Promise<void>;
@@ -3,6 +3,7 @@ import { StepStatusType } from '../../../common/Constants';
3
3
  export interface CategoryInternalState {
4
4
  isCompleted?: boolean;
5
5
  isVisited?: boolean;
6
+ isNavigatedAway?: boolean;
6
7
  isValid?: boolean;
7
8
  showReviewPageLink?: boolean;
8
9
  id: number;
@@ -4,6 +4,10 @@ import { StepStatusData } from './types';
4
4
  export declare function hasMeaningfulValue(val: any): boolean;
5
5
  export declare function isScopeRequired(normalizedScopes: string[], required: string[]): boolean;
6
6
  export declare function hasValueAtScope(data: any, scope: string): boolean;
7
+ export interface AutoPopulatedPathValue {
8
+ path: string;
9
+ value: unknown;
10
+ }
7
11
  export declare function getStepStatus(opts: {
8
12
  scopes: string[];
9
13
  data: any;
@@ -11,6 +15,7 @@ export declare function getStepStatus(opts: {
11
15
  schema: JsonSchema;
12
16
  visited?: boolean;
13
17
  autoPopulatedScopes?: string[];
18
+ autoPopulatedValues?: AutoPopulatedPathValue[];
14
19
  }): StepStatusData;
15
20
  export declare const isErrorPathIncluded: (errorPaths: string[], path: string) => boolean;
16
21
  type AjvError = ErrorObject & {
@@ -22,6 +27,8 @@ export declare function getIncompletePaths(errors: AjvError[] | null | undefined
22
27
  export declare const subErrorInParent: (error: ErrorObject, paths: string[]) => boolean;
23
28
  export declare const getErrorsInScopes: (errors: ErrorObject[] | null | undefined, scopes: string[]) => ErrorObject[];
24
29
  export declare const hasDataInScopes: (data: object, scopes: string[]) => boolean;
30
+ export declare const saveVisitedSteps: (formId: string | undefined, ids: number[]) => void;
31
+ export declare const getVisitedSteps: (formId: string | undefined) => number[] | undefined;
25
32
  export declare function isJson(str: string): boolean;
26
33
  export declare const saveIsVisitFromLocalStorage: (status: boolean[]) => void;
27
34
  export declare const getIsVisitFromLocalStorage: () => boolean[] | undefined;