@easygov/web-components 0.14.0 → 0.16.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
@@ -71,7 +71,7 @@ listen on the element or on an ancestor.
71
71
  | Event | `detail` | Fired when |
72
72
  | ---------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
73
73
  | `contextchange` | `{ contextJwt, claims, contentChanged }` | A new context token arrives: after sign-in, after every URL path change and on every renewal (about every 4 minutes). |
74
- | `sessionchange` | `{ user: { sub, name } \| null }` | The signed-in user changes: once after load if a session exists, on login, and on logout (`user: null`). |
74
+ | `sessionchange` | `{ user: { sub, firstName?, lastName?, emailAddress?, eiamAppRoles } \| null }` | The signed-in user or their data changes: once after load if a session exists, on login, on logout (`user: null`), and when a renewed access token changes names, e-mail or roles. Not on a renewal that only brings a new token. |
75
75
  | `languagechange` | `{ locale }` (`'de' \| 'en' \| 'fr' \| 'it'`) | Once after mount and whenever the display language changes. The header also sets `<html lang>`. |
76
76
  | `navigate` | `{ path }` | The user clicks a header link (`path` is a Core path such as `/dashboard`). Informational: the browser follows the link anyway. |
77
77
 
@@ -103,15 +103,8 @@ signed JWT, `contextJwt`. `claims` is its decoded payload:
103
103
  "currentUser": {
104
104
  "id": "6b1f3c2e-8a7d-4e0b-9c5a-2f4d8e1a7b90",
105
105
  "eiamIdentity": "CH-1234-5678-9012",
106
- "eiamSSOsessionID": "a1b2c3d4e5",
107
- "qoA": 30,
108
106
  "gtcAccepted": true,
109
- "registerDate": "2025-03-14T08:30:00Z",
110
- "idpUsed": "externalIDP\\AgovIDP",
111
- "emailAddress": "anna.muster@example.ch",
112
- "firstName": "Anna",
113
- "lastName": "Muster",
114
- "roles": []
107
+ "registerDate": "2025-03-14T08:30:00Z"
115
108
  },
116
109
  "customerAccount": {
117
110
  "id": "acc-4711",