@easygov/react-components 0.7.5 → 0.8.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/README.md CHANGED
@@ -103,6 +103,10 @@ function ContactForm() {
103
103
  0 is the direct parent, ascending toward the root — and is absent (not `[]`) when there is none.
104
104
  If it is present while `claims.process` is absent, a sub-process is about to be created under
105
105
  `parentProcesses[0]`, which is then the addressed Process itself and not a selected Behördengang.
106
+ Each `SelectedProcess` (in `claims.process` and `claims.parentProcesses`) also carries its own
107
+ `parentProcessId` — the global identifier of its parent, absent for a top-level Behördengang —
108
+ so a consumer can identify ancestry per node after flattening `parentProcesses` into a map,
109
+ without relying solely on the array's ordering.
106
110
 
107
111
  `claims` is `null` until the first response lands and again after logout — render a fallback,
108
112
  don't assume it is present on first paint. The hook reflects the last context an `EasygovHeader`
@@ -389,6 +389,12 @@ interface SelectedProcess {
389
389
  requiredAccountStatus: AccountVerificationStatus;
390
390
  individualServicePermissionModel: boolean;
391
391
  };
392
+ /**
393
+ * Global identifier of this process's own parent. Absent for a top-level Behördengang.
394
+ * Lets a client identify ancestry per node — e.g. after flattening `parentProcesses` into a
395
+ * map — without relying solely on that array's documented ordering.
396
+ */
397
+ parentProcessId?: string;
392
398
  }
393
399
  /**
394
400
  * The authenticated user's identity and profile information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easygov/react-components",
3
- "version": "0.7.5",
3
+ "version": "0.8.0",
4
4
  "private": false,
5
5
  "description": "React 19 component library for EasyGov — accessible UI components styled with eg-* design tokens.",
6
6
  "license": "MIT",
@@ -71,8 +71,8 @@
71
71
  "@testing-library/jest-dom": "^7.0.0",
72
72
  "@testing-library/react": "^16.3.2",
73
73
  "@types/node": "^22.15.3",
74
- "@types/react": "19.2.18",
75
- "@types/react-dom": "19.2.7",
74
+ "@types/react": "19.3.0",
75
+ "@types/react-dom": "19.3.0",
76
76
  "@vitest/coverage-v8": "^4.1.9",
77
77
  "eslint": "^9.39.1",
78
78
  "jsdom": "^30.0.0",