@easygov/web-components 0.6.0 → 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 +41 -4
- package/dist/chunk-7W5ONMC7.js +35 -0
- package/dist/chunk-7W5ONMC7.js.map +1 -0
- package/dist/chunk-YZZNWZVI.js +27 -0
- package/dist/chunk-YZZNWZVI.js.map +1 -0
- package/dist/chunk-ZX6XEMP3.js +37 -0
- package/dist/{chunk-KIC76O54.js.map → chunk-ZX6XEMP3.js.map} +1 -1
- package/dist/footer.d.ts +1 -1
- package/dist/footer.js +1 -1
- package/dist/footer.js.map +1 -1
- package/dist/header.d.ts +1 -1
- package/dist/header.js +1 -1
- package/dist/header.js.map +1 -1
- package/dist/index.d.ts +21 -2
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-6QWPHBPC.js +0 -44
- package/dist/chunk-6QWPHBPC.js.map +0 -1
- package/dist/chunk-C75LXA3C.js +0 -27
- package/dist/chunk-C75LXA3C.js.map +0 -1
- package/dist/chunk-KIC76O54.js +0 -37
package/dist/header.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { };
|
package/dist/header.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./chunk-
|
|
1
|
+
import{e}from"./chunk-YZZNWZVI.js";import{a as o,b as r}from"./chunk-7W5ONMC7.js";import"./chunk-ZX6XEMP3.js";var m=r(o(e,{shadow:"open"}));customElements.define("eg-easygov-header",m);
|
|
2
2
|
//# sourceMappingURL=header.js.map
|
package/dist/header.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/elements/easygov-header.ts"],"sourcesContent":["import r2wc from '@r2wc/react-to-web-component';\nimport { EasygovHeader } from '@easygov/react-components';\nimport { withSharedStyles } from '../shadow-styles';\
|
|
1
|
+
{"version":3,"sources":["../src/elements/easygov-header.ts"],"sourcesContent":["import r2wc from '@r2wc/react-to-web-component';\nimport { EasygovHeader } from '@easygov/react-components';\nimport { withSharedStyles } from '../shadow-styles';\n\n// No props are mapped.\n//\n// `locale` is gone as of EGOV-1451: the DisplayLanguage is no longer owned by the header. It\n// resolves from the `eg-display-language` cookie shared across every EasyGov subdomain, then the\n// browser language, then \"de\" — so a `locale` attribute here would have been a second, conflicting\n// source of truth for a value the whole page already agrees on.\n//\n// onLanguageChange, onNavigate and onContextChange are NOT mapped either — EasygovHeader\n// dispatches 'languagechange', 'navigate' and 'contextchange' CustomEvents directly, and function\n// props can't cross an HTML attribute boundary anyway. Web Component consumers must use\n// addEventListener for all three.\nconst EgEasygovHeader = withSharedStyles(\n r2wc(EasygovHeader, {\n shadow: 'open',\n }),\n);\n\ncustomElements.define('eg-easygov-header', EgEasygovHeader);\n"],"mappings":"8GAeA,IAAMA,EAAkBC,EACtBC,EAAKC,EAAe,CAClB,OAAQ,MACV,CAAC,CACH,EAEA,eAAe,OAAO,oBAAqBH,CAAe","names":["EgEasygovHeader","withSharedStyles","s","EasygovHeader"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,16 @@ interface OrganizationAccount extends CustomerAccountBase {
|
|
|
51
51
|
/** Absent while the organization has no UID register entry. */
|
|
52
52
|
uid?: string;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* A customer account of type FOREIGN_ORGANIZATION: an organization domiciled abroad, carrying the
|
|
56
|
+
* same attributes as an ORGANIZATION. Decoded from the context JWT, signature unverified: safe to render, never to authorize.
|
|
57
|
+
*/
|
|
58
|
+
interface ForeignOrganizationAccount extends CustomerAccountBase {
|
|
59
|
+
accountType: 'FOREIGN_ORGANIZATION';
|
|
60
|
+
legalForm: string;
|
|
61
|
+
/** Absent while the organization has no UID register entry. */
|
|
62
|
+
uid?: string;
|
|
63
|
+
}
|
|
54
64
|
/**
|
|
55
65
|
* A customer account of type INDIVIDUAL. Decoded from the context JWT, signature unverified: safe to render, never to authorize.
|
|
56
66
|
*/
|
|
@@ -61,13 +71,15 @@ interface IndividualAccount extends CustomerAccountBase {
|
|
|
61
71
|
* Discriminated on `accountType` — narrow before reading organization-only fields.
|
|
62
72
|
* Decoded from the context JWT, signature unverified: safe to render, never to authorize.
|
|
63
73
|
*/
|
|
64
|
-
type SelectedCustomerAccount = OrganizationAccount | IndividualAccount;
|
|
74
|
+
type SelectedCustomerAccount = OrganizationAccount | ForeignOrganizationAccount | IndividualAccount;
|
|
65
75
|
/**
|
|
66
76
|
* The ServiceApp the current screen belongs to, resolved by core from the screen URL.
|
|
67
77
|
* Decoded from the context JWT, signature unverified: safe to render, never to authorize.
|
|
68
78
|
*/
|
|
69
79
|
interface ServiceApp {
|
|
70
80
|
id: string;
|
|
81
|
+
/** URN (`urn_core_businessmodule_…`) of the BusinessModule that owns this ServiceApp. */
|
|
82
|
+
businessModuleId: string;
|
|
71
83
|
/** The fach module, not core, manages the Agents' rights for this ServiceApp. */
|
|
72
84
|
individualServicePermissionModel: boolean;
|
|
73
85
|
}
|
|
@@ -96,6 +108,12 @@ interface UserProfile {
|
|
|
96
108
|
eiamIdentity: string;
|
|
97
109
|
eiamSSOsessionID: string;
|
|
98
110
|
qoA: number;
|
|
111
|
+
/** Whether the user has accepted the general terms and conditions. */
|
|
112
|
+
gtcAccepted: boolean;
|
|
113
|
+
/** When the user registered: ISO-8601 date-time, UTC. */
|
|
114
|
+
registerDate: string;
|
|
115
|
+
/** The IdP the user chose in eIAM, e.g. `externalIDP\AgovIDP`. */
|
|
116
|
+
idpUsed: string;
|
|
99
117
|
emailAddress?: string;
|
|
100
118
|
firstName?: string;
|
|
101
119
|
lastName?: string;
|
|
@@ -147,4 +165,5 @@ declare function setDisplayLanguage(locale: string): void;
|
|
|
147
165
|
declare function subscribeDisplayLanguage(listener: () => void): () => void;
|
|
148
166
|
declare function setBusinessModuleVersion(version: string): void;
|
|
149
167
|
|
|
150
|
-
export {
|
|
168
|
+
export { getDisplayLanguage, setBusinessModuleVersion, setDisplayLanguage, subscribeDisplayLanguage };
|
|
169
|
+
export type { HeaderContextChangeDetail };
|
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-
|
|
1
|
+
import{a as s,b as a,c as t,d as o}from"./chunk-YZZNWZVI.js";import"./chunk-ZX6XEMP3.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.
|
|
3
|
+
"version": "0.8.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,16 +43,16 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@easygov/eslint-config": "0.0.0",
|
|
46
|
-
"@easygov/react-components": "0.
|
|
46
|
+
"@easygov/react-components": "0.16.0",
|
|
47
47
|
"@easygov/typescript-config": "0.0.0",
|
|
48
|
-
"@types/node": "^
|
|
48
|
+
"@types/node": "^26.0.0",
|
|
49
49
|
"@types/react": "19.3.0",
|
|
50
50
|
"@types/react-dom": "19.3.0",
|
|
51
51
|
"eslint": "^9.39.1",
|
|
52
52
|
"react": "19.3.1",
|
|
53
53
|
"react-dom": "19.3.1",
|
|
54
54
|
"serve": "^14.2.6",
|
|
55
|
-
"tsup": "^
|
|
55
|
+
"tsup": "^9.0.0",
|
|
56
56
|
"typescript": "5.9.3"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|