@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/dist/header.js CHANGED
@@ -1,2 +1,2 @@
1
- import{e}from"./chunk-ATOMZILW.js";import{a as o,b as r}from"./chunk-N43E73KP.js";import"./chunk-SGE3GQLT.js";var m=r(o(e,{shadow:"open"}));customElements.define("eg-easygov-header",m);
1
+ import{e}from"./chunk-S735DOCR.js";import{a as o,b as r}from"./chunk-PVBRBQ3P.js";import"./chunk-SGE3GQLT.js";var m=r(o(e,{shadow:"open"}));customElements.define("eg-easygov-header",m);
2
2
  //# sourceMappingURL=header.js.map
package/dist/index.d.ts CHANGED
@@ -195,24 +195,18 @@ interface SelectedProcess {
195
195
  parentProcessId?: string;
196
196
  }
197
197
  /**
198
- * The authenticated user's identity and profile information.
198
+ * The authenticated user, as far as only core-backend knows it. Name, e-mail, roles, QoA, SSO
199
+ * session and IdP are not here: they are in the access token (`useEasygovSession().accessToken`).
199
200
  * Decoded from the context JWT, signature unverified: safe to render, never to authorize.
200
201
  */
201
202
  interface UserProfile {
202
203
  id: string;
204
+ /** The eIAM identity (the access token's `eiamIdentity` claim); ties this context to that token. */
203
205
  eiamIdentity: string;
204
- eiamSSOsessionID: string;
205
- qoA: number;
206
206
  /** Whether the user has accepted the general terms and conditions. */
207
207
  gtcAccepted: boolean;
208
208
  /** When the user registered: ISO-8601 date-time, UTC. */
209
209
  registerDate: string;
210
- /** The IdP the user chose in eIAM, e.g. `externalIDP\AgovIDP`. */
211
- idpUsed: string;
212
- emailAddress?: string;
213
- firstName?: string;
214
- lastName?: string;
215
- roles?: string[];
216
210
  }
217
211
  /**
218
212
  * Decoded payload of `contextJwt`. The signature is NOT verified by EasygovHeader — the
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as s,b as a,c as t,d as o}from"./chunk-ATOMZILW.js";import"./chunk-SGE3GQLT.js";function i(){return a()}function g(e){t(e)}function r(e){return o(e)}function u(e){s(e)}export{i as getDisplayLanguage,u as setBusinessModuleVersion,g as setDisplayLanguage,r as subscribeDisplayLanguage};
1
+ import{a as s,b as a,c as t,d as o}from"./chunk-S735DOCR.js";import"./chunk-SGE3GQLT.js";function i(){return a()}function g(e){t(e)}function r(e){return o(e)}function u(e){s(e)}export{i as getDisplayLanguage,u as setBusinessModuleVersion,g as setDisplayLanguage,r as subscribeDisplayLanguage};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easygov/web-components",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "private": false,
5
5
  "description": "Framework-agnostic custom elements for EasyGov, wrapping @easygov/react-components as a self-contained browser bundle.",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@easygov/eslint-config": "0.0.0",
46
- "@easygov/react-components": "0.23.0",
46
+ "@easygov/react-components": "0.25.0",
47
47
  "@easygov/typescript-config": "0.0.0",
48
48
  "@types/node": "^26.0.0",
49
49
  "@types/react": "19.3.3",