@eudi-verify/embed 0.1.0 → 0.1.2
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 +86 -83
- package/dist/eudi-verify.cjs +43 -8
- package/dist/eudi-verify.cjs.map +1 -1
- package/dist/eudi-verify.d.cts +14 -10
- package/dist/eudi-verify.d.ts +14 -10
- package/dist/eudi-verify.iife.js +1923 -421
- package/dist/eudi-verify.iife.js.map +1 -1
- package/dist/eudi-verify.js +43 -8
- package/dist/eudi-verify.js.map +1 -1
- package/package.json +2 -2
package/dist/eudi-verify.d.cts
CHANGED
|
@@ -22,7 +22,7 @@ interface EudiVerifyEventMap {
|
|
|
22
22
|
error: CustomEvent<{
|
|
23
23
|
error: string;
|
|
24
24
|
}>;
|
|
25
|
-
|
|
25
|
+
"state-change": CustomEvent<{
|
|
26
26
|
state: VerificationState;
|
|
27
27
|
}>;
|
|
28
28
|
}
|
|
@@ -93,7 +93,7 @@ declare class EudiVerifyElement extends HTMLElement {
|
|
|
93
93
|
}
|
|
94
94
|
declare global {
|
|
95
95
|
interface HTMLElementTagNameMap {
|
|
96
|
-
|
|
96
|
+
"eudi-verify": EudiVerifyElement;
|
|
97
97
|
}
|
|
98
98
|
interface HTMLElementEventMap extends EudiVerifyEventMap {
|
|
99
99
|
}
|
|
@@ -110,12 +110,12 @@ declare global {
|
|
|
110
110
|
* These can be set on the host element or any ancestor.
|
|
111
111
|
*/
|
|
112
112
|
declare const CSS_VARIABLES: {
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
113
|
+
readonly "--eudi-primary": "#003399";
|
|
114
|
+
readonly "--eudi-text": "#1a1a1a";
|
|
115
|
+
readonly "--eudi-background": "#ffffff";
|
|
116
|
+
readonly "--eudi-border-radius": "8px";
|
|
117
|
+
readonly "--eudi-font-family": "system-ui, sans-serif";
|
|
118
|
+
readonly "--eudi-error": "#d32f2f";
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
121
|
* Generate the internal stylesheet for the shadow DOM.
|
|
@@ -135,12 +135,16 @@ declare function getFocusableElements(container: HTMLElement): HTMLElement[];
|
|
|
135
135
|
/**
|
|
136
136
|
* Create a focus trap within a container.
|
|
137
137
|
* Returns a cleanup function to remove the trap.
|
|
138
|
+
*
|
|
139
|
+
* ponytail: not used for the default inline widget — trapping focus would block
|
|
140
|
+
* tabbing to surrounding page content (demo links, logs). Reserved for future
|
|
141
|
+
* modal/dialog embedding.
|
|
138
142
|
*/
|
|
139
143
|
declare function createFocusTrap(container: HTMLElement): () => void;
|
|
140
144
|
/**
|
|
141
145
|
* Announce a message to screen readers via aria-live region.
|
|
142
146
|
*/
|
|
143
|
-
declare function announce(liveRegion: HTMLElement, message: string, priority?:
|
|
147
|
+
declare function announce(liveRegion: HTMLElement, message: string, priority?: "polite" | "assertive"): void;
|
|
144
148
|
/**
|
|
145
149
|
* Clear the announcement from a live region.
|
|
146
150
|
*/
|
|
@@ -168,7 +172,7 @@ declare const STATE_MESSAGES: {
|
|
|
168
172
|
/**
|
|
169
173
|
* Map of status to state container ID.
|
|
170
174
|
*/
|
|
171
|
-
type RenderableStatus = VerificationState[
|
|
175
|
+
type RenderableStatus = VerificationState["status"];
|
|
172
176
|
/**
|
|
173
177
|
* Get the state container ID for a status.
|
|
174
178
|
*/
|
package/dist/eudi-verify.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ interface EudiVerifyEventMap {
|
|
|
22
22
|
error: CustomEvent<{
|
|
23
23
|
error: string;
|
|
24
24
|
}>;
|
|
25
|
-
|
|
25
|
+
"state-change": CustomEvent<{
|
|
26
26
|
state: VerificationState;
|
|
27
27
|
}>;
|
|
28
28
|
}
|
|
@@ -93,7 +93,7 @@ declare class EudiVerifyElement extends HTMLElement {
|
|
|
93
93
|
}
|
|
94
94
|
declare global {
|
|
95
95
|
interface HTMLElementTagNameMap {
|
|
96
|
-
|
|
96
|
+
"eudi-verify": EudiVerifyElement;
|
|
97
97
|
}
|
|
98
98
|
interface HTMLElementEventMap extends EudiVerifyEventMap {
|
|
99
99
|
}
|
|
@@ -110,12 +110,12 @@ declare global {
|
|
|
110
110
|
* These can be set on the host element or any ancestor.
|
|
111
111
|
*/
|
|
112
112
|
declare const CSS_VARIABLES: {
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
113
|
+
readonly "--eudi-primary": "#003399";
|
|
114
|
+
readonly "--eudi-text": "#1a1a1a";
|
|
115
|
+
readonly "--eudi-background": "#ffffff";
|
|
116
|
+
readonly "--eudi-border-radius": "8px";
|
|
117
|
+
readonly "--eudi-font-family": "system-ui, sans-serif";
|
|
118
|
+
readonly "--eudi-error": "#d32f2f";
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
121
|
* Generate the internal stylesheet for the shadow DOM.
|
|
@@ -135,12 +135,16 @@ declare function getFocusableElements(container: HTMLElement): HTMLElement[];
|
|
|
135
135
|
/**
|
|
136
136
|
* Create a focus trap within a container.
|
|
137
137
|
* Returns a cleanup function to remove the trap.
|
|
138
|
+
*
|
|
139
|
+
* ponytail: not used for the default inline widget — trapping focus would block
|
|
140
|
+
* tabbing to surrounding page content (demo links, logs). Reserved for future
|
|
141
|
+
* modal/dialog embedding.
|
|
138
142
|
*/
|
|
139
143
|
declare function createFocusTrap(container: HTMLElement): () => void;
|
|
140
144
|
/**
|
|
141
145
|
* Announce a message to screen readers via aria-live region.
|
|
142
146
|
*/
|
|
143
|
-
declare function announce(liveRegion: HTMLElement, message: string, priority?:
|
|
147
|
+
declare function announce(liveRegion: HTMLElement, message: string, priority?: "polite" | "assertive"): void;
|
|
144
148
|
/**
|
|
145
149
|
* Clear the announcement from a live region.
|
|
146
150
|
*/
|
|
@@ -168,7 +172,7 @@ declare const STATE_MESSAGES: {
|
|
|
168
172
|
/**
|
|
169
173
|
* Map of status to state container ID.
|
|
170
174
|
*/
|
|
171
|
-
type RenderableStatus = VerificationState[
|
|
175
|
+
type RenderableStatus = VerificationState["status"];
|
|
172
176
|
/**
|
|
173
177
|
* Get the state container ID for a status.
|
|
174
178
|
*/
|