@getflip/swirl-ai 0.507.0 → 0.509.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/agent/components/swirl-chip.md +1 -0
- package/dist/agent/components/swirl-file-viewer-video.md +1 -0
- package/dist/custom-elements.manifest.json +17 -2
- package/dist/types/components/swirl-chip/swirl-chip.d.ts +1 -0
- package/dist/types/components/swirl-file-viewer/viewers/swirl-file-viewer-video/swirl-file-viewer-video.d.ts +2 -0
- package/dist/types/components/swirl-resource-list/swirl-resource-list.d.ts +1 -1
- package/dist/types/components.d.ts +4 -2
- package/package.json +2 -2
|
@@ -27,6 +27,7 @@ The SwirlChip component is used to represent an input, attribute, or action.
|
|
|
27
27
|
## Slots
|
|
28
28
|
|
|
29
29
|
- **`avatar`** – Optional avatar displayed inside the chip. Should have size "xs".
|
|
30
|
+
- **`trailing-content`** – Optional content displayed at the end of the chip.
|
|
30
31
|
|
|
31
32
|
## Events
|
|
32
33
|
|
|
@@ -25,6 +25,7 @@ _None._
|
|
|
25
25
|
- `playbackPlay` – CustomEvent<{ currentTime: number; duration: number; videoEl: HTMLVideoElement; }>
|
|
26
26
|
- `playbackRateChange` – CustomEvent<SwirlFileViewerVideoPlaybackDetail & { playbackRate: number; }>
|
|
27
27
|
- `playbackSeeked` – CustomEvent<{ currentTime: number; duration: number; videoEl: HTMLVideoElement; }>
|
|
28
|
+
- `playbackSeeking` – CustomEvent<{ currentTime: number; duration: number; videoEl: HTMLVideoElement; }>
|
|
28
29
|
- `playbackTeardown` – CustomEvent<{ currentTime: number; duration: number; videoEl: HTMLVideoElement; }>
|
|
29
30
|
- `playbackTimeUpdate` – CustomEvent<{ currentTime: number; duration: number; videoEl: HTMLVideoElement; }>
|
|
30
31
|
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"type": {
|
|
184
184
|
"text": "string | undefined"
|
|
185
185
|
},
|
|
186
|
-
"default": "
|
|
186
|
+
"default": "crypto.randomUUID()",
|
|
187
187
|
"fieldName": "itemId"
|
|
188
188
|
}
|
|
189
189
|
],
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
"type": {
|
|
247
247
|
"text": "string | undefined"
|
|
248
248
|
},
|
|
249
|
-
"default": "
|
|
249
|
+
"default": "crypto.randomUUID()",
|
|
250
250
|
"readonly": true,
|
|
251
251
|
"attribute": "item-id"
|
|
252
252
|
},
|
|
@@ -6264,6 +6264,10 @@
|
|
|
6264
6264
|
{
|
|
6265
6265
|
"name": "avatar",
|
|
6266
6266
|
"description": "Optional avatar displayed inside the chip. Should have size \"xs\"."
|
|
6267
|
+
},
|
|
6268
|
+
{
|
|
6269
|
+
"name": "trailing-content",
|
|
6270
|
+
"description": "Optional content displayed at the end of the chip."
|
|
6267
6271
|
}
|
|
6268
6272
|
],
|
|
6269
6273
|
"description": "The SwirlChip component is used to represent an input, attribute, or action.\n\nAccessibility\n\n### ARIA\n\n| ARIA | Usage |\n| --------------- | ------------------------------------------------------------------- |\n| `role=\"button\"` | For interactive chips; achieved by using a native `button` element. |\n\n### Keyboard\n\n| Key | Action |\n| ---------------- | ------------------------------- |\n| <kbd>ENTER</kbd> | Activates the interactive chip. |\n| <kbd>SPACE</kbd> | Activates the interactive chip. |"
|
|
@@ -10939,6 +10943,17 @@
|
|
|
10939
10943
|
]
|
|
10940
10944
|
}
|
|
10941
10945
|
},
|
|
10946
|
+
{
|
|
10947
|
+
"name": "playbackSeeking",
|
|
10948
|
+
"type": {
|
|
10949
|
+
"text": "CustomEvent<{ currentTime: number; duration: number; videoEl: HTMLVideoElement; }>",
|
|
10950
|
+
"references": [
|
|
10951
|
+
{
|
|
10952
|
+
"name": "SwirlFileViewerVideoPlaybackDetail"
|
|
10953
|
+
}
|
|
10954
|
+
]
|
|
10955
|
+
}
|
|
10956
|
+
},
|
|
10942
10957
|
{
|
|
10943
10958
|
"name": "playbackTeardown",
|
|
10944
10959
|
"type": {
|
|
@@ -6,6 +6,7 @@ export type SwirlChipSize = "s" | "m";
|
|
|
6
6
|
export type SwirlChipVariant = "outline" | "plain" | "translucent";
|
|
7
7
|
/**
|
|
8
8
|
* @slot avatar - Optional avatar displayed inside the chip. Should have size "xs".
|
|
9
|
+
* @slot trailing-content - Optional content displayed at the end of the chip.
|
|
9
10
|
*/
|
|
10
11
|
export declare class SwirlChip {
|
|
11
12
|
el: HTMLElement;
|
|
@@ -17,6 +17,7 @@ export declare class SwirlFileViewerVideo {
|
|
|
17
17
|
playbackPause: EventEmitter<SwirlFileViewerVideoPlaybackDetail>;
|
|
18
18
|
playbackTimeUpdate: EventEmitter<SwirlFileViewerVideoPlaybackDetail>;
|
|
19
19
|
playbackSeeked: EventEmitter<SwirlFileViewerVideoPlaybackDetail>;
|
|
20
|
+
playbackSeeking: EventEmitter<SwirlFileViewerVideoPlaybackDetail>;
|
|
20
21
|
playbackRateChange: EventEmitter<SwirlFileViewerVideoPlaybackRateChangeDetail>;
|
|
21
22
|
playbackEnded: EventEmitter<SwirlFileViewerVideoPlaybackDetail>;
|
|
22
23
|
playbackTeardown: EventEmitter<SwirlFileViewerVideoPlaybackDetail>;
|
|
@@ -30,6 +31,7 @@ export declare class SwirlFileViewerVideo {
|
|
|
30
31
|
private onNativePause;
|
|
31
32
|
private onNativeTimeUpdate;
|
|
32
33
|
private onNativeSeeked;
|
|
34
|
+
private onNativeSeeking;
|
|
33
35
|
private onNativeRateChange;
|
|
34
36
|
private onNativeEnded;
|
|
35
37
|
render(): any;
|
|
@@ -21,7 +21,7 @@ export declare class SwirlResourceList {
|
|
|
21
21
|
semantics?: SwirlResourceListSemantics;
|
|
22
22
|
spacing?: SwirlStackSpacing;
|
|
23
23
|
assistiveText: string;
|
|
24
|
-
listId: string
|
|
24
|
+
listId: `${string}-${string}-${string}-${string}-${string}`;
|
|
25
25
|
itemDrop: EventEmitter<{
|
|
26
26
|
item: HTMLSwirlResourceListItemElement;
|
|
27
27
|
oldIndex: number;
|
|
@@ -206,7 +206,7 @@ export namespace Components {
|
|
|
206
206
|
"headingLevel"?: SwirlHeadingLevel;
|
|
207
207
|
"initiallyOpen"?: boolean;
|
|
208
208
|
/**
|
|
209
|
-
* @default
|
|
209
|
+
* @default crypto.randomUUID()
|
|
210
210
|
*/
|
|
211
211
|
"itemId"?: string;
|
|
212
212
|
/**
|
|
@@ -6615,6 +6615,7 @@ declare global {
|
|
|
6615
6615
|
"playbackPause": SwirlFileViewerVideoPlaybackDetail;
|
|
6616
6616
|
"playbackTimeUpdate": SwirlFileViewerVideoPlaybackDetail;
|
|
6617
6617
|
"playbackSeeked": SwirlFileViewerVideoPlaybackDetail;
|
|
6618
|
+
"playbackSeeking": SwirlFileViewerVideoPlaybackDetail;
|
|
6618
6619
|
"playbackRateChange": SwirlFileViewerVideoPlaybackRateChangeDetail;
|
|
6619
6620
|
"playbackEnded": SwirlFileViewerVideoPlaybackDetail;
|
|
6620
6621
|
"playbackTeardown": SwirlFileViewerVideoPlaybackDetail;
|
|
@@ -10300,7 +10301,7 @@ declare namespace LocalJSX {
|
|
|
10300
10301
|
"headingLevel"?: SwirlHeadingLevel;
|
|
10301
10302
|
"initiallyOpen"?: boolean;
|
|
10302
10303
|
/**
|
|
10303
|
-
* @default
|
|
10304
|
+
* @default crypto.randomUUID()
|
|
10304
10305
|
*/
|
|
10305
10306
|
"itemId"?: string;
|
|
10306
10307
|
"onExpansionChange"?: (event: SwirlAccordionItemCustomEvent<boolean>) => void;
|
|
@@ -11324,6 +11325,7 @@ declare namespace LocalJSX {
|
|
|
11324
11325
|
"onPlaybackPlay"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
|
|
11325
11326
|
"onPlaybackRateChange"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackRateChangeDetail>) => void;
|
|
11326
11327
|
"onPlaybackSeeked"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
|
|
11328
|
+
"onPlaybackSeeking"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
|
|
11327
11329
|
"onPlaybackTeardown"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
|
|
11328
11330
|
"onPlaybackTimeUpdate"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
|
|
11329
11331
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.509.0",
|
|
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.
|
|
29
|
+
"@getflip/swirl-components": "0.509.0",
|
|
30
30
|
"@getflip/swirl-tokens": "2.14.3",
|
|
31
31
|
"@types/node": "25.3.0",
|
|
32
32
|
"tsx": "^4.7.0",
|