@getflip/swirl-ai 0.531.1 → 0.531.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.
|
@@ -44,11 +44,12 @@ No related components.
|
|
|
44
44
|
|
|
45
45
|
### ARIA
|
|
46
46
|
|
|
47
|
-
| ARIA | Usage
|
|
48
|
-
| --------------- |
|
|
49
|
-
| `role="img"` |
|
|
50
|
-
| `role="button"` |
|
|
51
|
-
| `aria-label` |
|
|
47
|
+
| ARIA | Usage |
|
|
48
|
+
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
49
|
+
| `role="img"` | Set on the rendered image, initials or icon so the avatar is announced as an image named by `label`. |
|
|
50
|
+
| `role="button"` | Set on the host of an interactive avatar. |
|
|
51
|
+
| `aria-label` | Set to `label`. On an interactive avatar it is set on the host, otherwise on the rendered image, initials or icon. |
|
|
52
|
+
| `aria-hidden` | Not set by the component. If the avatar is decorative, e.g. it sits next to text that already names the person (list items, chips, menu items), set `aria-hidden="true"` on the `swirl-avatar` element to hide it. |
|
|
52
53
|
|
|
53
54
|
### Keyboard
|
|
54
55
|
|
|
@@ -2520,7 +2520,7 @@
|
|
|
2520
2520
|
"name": "avatar"
|
|
2521
2521
|
}
|
|
2522
2522
|
],
|
|
2523
|
-
"description": "The SwirlAvatar component is used to represent a user via an image, icon or initials.\n\nAccessibility\n\n### ARIA\n\n| ARIA | Usage
|
|
2523
|
+
"description": "The SwirlAvatar component is used to represent a user via an image, icon or initials.\n\nAccessibility\n\n### ARIA\n\n| ARIA | Usage |\n| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `role=\"img\"` | Set on the rendered image, initials or icon so the avatar is announced as an image named by `label`. |\n| `role=\"button\"` | Set on the host of an interactive avatar. |\n| `aria-label` | Set to `label`. On an interactive avatar it is set on the host, otherwise on the rendered image, initials or icon. |\n| `aria-hidden` | Not set by the component. If the avatar is decorative, e.g. it sits next to text that already names the person (list items, chips, menu items), set `aria-hidden=\"true\"` on the `swirl-avatar` element to hide it. |\n\n### Keyboard\n\nOnly applicable for interactive avatars:\n\n| Key | Action |\n| ---------------- | --------------------------------- |\n| <kbd>ENTER</kbd> | Activates the interactive avatar. |\n| <kbd>SPACE</kbd> | Activates the interactive avatar. |"
|
|
2524
2524
|
}
|
|
2525
2525
|
],
|
|
2526
2526
|
"exports": [
|
|
@@ -21,13 +21,19 @@ export declare class SwirlToast {
|
|
|
21
21
|
dismiss: EventEmitter<string>;
|
|
22
22
|
private dismissIconEl;
|
|
23
23
|
private iconEl;
|
|
24
|
+
private dismissAt;
|
|
25
|
+
private loaded;
|
|
24
26
|
private timeout;
|
|
25
27
|
private mediaQueryUnsubscribe;
|
|
26
28
|
watchDuration(): void;
|
|
29
|
+
connectedCallback(): void;
|
|
27
30
|
componentDidLoad(): void;
|
|
28
31
|
disconnectedCallback(): void;
|
|
32
|
+
private subscribeToMediaQuery;
|
|
29
33
|
private forceIconProps;
|
|
30
34
|
private startTimer;
|
|
35
|
+
private scheduleDismiss;
|
|
36
|
+
private cancelScheduledDismiss;
|
|
31
37
|
private clearTimer;
|
|
32
38
|
private onAction;
|
|
33
39
|
private onDismiss;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.531.
|
|
3
|
+
"version": "0.531.2",
|
|
4
4
|
"description": "Swirl Design System AI package with artifacts for AI agents",
|
|
5
5
|
"author": "Flip GmbH",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lint": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@getflip/swirl-components": "0.531.
|
|
29
|
+
"@getflip/swirl-components": "0.531.2",
|
|
30
30
|
"@getflip/swirl-tokens": "2.14.3",
|
|
31
31
|
"@types/node": "25.3.0",
|
|
32
32
|
"tsx": "^4.7.0",
|