@getflip/swirl-ai 0.508.0 → 0.510.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.
@@ -11,6 +11,7 @@ The SwirlChip component is used to represent an input, attribute, or action.
11
11
  ## Optional props
12
12
 
13
13
  - `borderRadius` ("pill" | "sm" | undefined) –
14
+ - `disabled` (boolean | undefined) –
14
15
  - `icon` (string | undefined) –
15
16
  - `iconColor` ("default" | "highlight" | undefined) –
16
17
  - `intent` ("critical" | "default" | "highlight" | "success" | undefined) –
@@ -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": "uuid()",
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": "uuid()",
249
+ "default": "crypto.randomUUID()",
250
250
  "readonly": true,
251
251
  "attribute": "item-id"
252
252
  },
@@ -5954,6 +5954,13 @@
5954
5954
  "default": "\"pill\"",
5955
5955
  "fieldName": "borderRadius"
5956
5956
  },
5957
+ {
5958
+ "name": "disabled",
5959
+ "type": {
5960
+ "text": "boolean | undefined"
5961
+ },
5962
+ "fieldName": "disabled"
5963
+ },
5957
5964
  {
5958
5965
  "name": "icon",
5959
5966
  "type": {
@@ -6089,6 +6096,15 @@
6089
6096
  "readonly": true,
6090
6097
  "attribute": "border-radius"
6091
6098
  },
6099
+ {
6100
+ "kind": "field",
6101
+ "name": "disabled",
6102
+ "type": {
6103
+ "text": "boolean | undefined"
6104
+ },
6105
+ "readonly": true,
6106
+ "attribute": "disabled"
6107
+ },
6092
6108
  {
6093
6109
  "kind": "field",
6094
6110
  "name": "icon",
@@ -10943,6 +10959,17 @@
10943
10959
  ]
10944
10960
  }
10945
10961
  },
10962
+ {
10963
+ "name": "playbackSeeking",
10964
+ "type": {
10965
+ "text": "CustomEvent<{ currentTime: number; duration: number; videoEl: HTMLVideoElement; }>",
10966
+ "references": [
10967
+ {
10968
+ "name": "SwirlFileViewerVideoPlaybackDetail"
10969
+ }
10970
+ ]
10971
+ }
10972
+ },
10946
10973
  {
10947
10974
  "name": "playbackTeardown",
10948
10975
  "type": {
@@ -11,6 +11,7 @@ export type SwirlChipVariant = "outline" | "plain" | "translucent";
11
11
  export declare class SwirlChip {
12
12
  el: HTMLElement;
13
13
  borderRadius?: SwirlChipBorderRadius;
14
+ disabled?: boolean;
14
15
  icon?: string;
15
16
  iconColor?: SwirlChipIconColor;
16
17
  trailingIcon?: string;
@@ -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 uuid()
209
+ * @default crypto.randomUUID()
210
210
  */
211
211
  "itemId"?: string;
212
212
  /**
@@ -745,6 +745,7 @@ export namespace Components {
745
745
  * @default "pill"
746
746
  */
747
747
  "borderRadius"?: SwirlChipBorderRadius;
748
+ "disabled"?: boolean;
748
749
  "icon"?: string;
749
750
  /**
750
751
  * @default "default"
@@ -6615,6 +6616,7 @@ declare global {
6615
6616
  "playbackPause": SwirlFileViewerVideoPlaybackDetail;
6616
6617
  "playbackTimeUpdate": SwirlFileViewerVideoPlaybackDetail;
6617
6618
  "playbackSeeked": SwirlFileViewerVideoPlaybackDetail;
6619
+ "playbackSeeking": SwirlFileViewerVideoPlaybackDetail;
6618
6620
  "playbackRateChange": SwirlFileViewerVideoPlaybackRateChangeDetail;
6619
6621
  "playbackEnded": SwirlFileViewerVideoPlaybackDetail;
6620
6622
  "playbackTeardown": SwirlFileViewerVideoPlaybackDetail;
@@ -10300,7 +10302,7 @@ declare namespace LocalJSX {
10300
10302
  "headingLevel"?: SwirlHeadingLevel;
10301
10303
  "initiallyOpen"?: boolean;
10302
10304
  /**
10303
- * @default uuid()
10305
+ * @default crypto.randomUUID()
10304
10306
  */
10305
10307
  "itemId"?: string;
10306
10308
  "onExpansionChange"?: (event: SwirlAccordionItemCustomEvent<boolean>) => void;
@@ -10817,6 +10819,7 @@ declare namespace LocalJSX {
10817
10819
  * @default "pill"
10818
10820
  */
10819
10821
  "borderRadius"?: SwirlChipBorderRadius;
10822
+ "disabled"?: boolean;
10820
10823
  "icon"?: string;
10821
10824
  /**
10822
10825
  * @default "default"
@@ -11324,6 +11327,7 @@ declare namespace LocalJSX {
11324
11327
  "onPlaybackPlay"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
11325
11328
  "onPlaybackRateChange"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackRateChangeDetail>) => void;
11326
11329
  "onPlaybackSeeked"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
11330
+ "onPlaybackSeeking"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
11327
11331
  "onPlaybackTeardown"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
11328
11332
  "onPlaybackTimeUpdate"?: (event: SwirlFileViewerVideoCustomEvent<SwirlFileViewerVideoPlaybackDetail>) => void;
11329
11333
  }
@@ -15972,6 +15976,7 @@ declare namespace LocalJSX {
15972
15976
  }
15973
15977
  interface SwirlChipAttributes {
15974
15978
  "borderRadius": SwirlChipBorderRadius;
15979
+ "disabled": boolean;
15975
15980
  "icon": string;
15976
15981
  "iconColor": SwirlChipIconColor;
15977
15982
  "trailingIcon": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getflip/swirl-ai",
3
- "version": "0.508.0",
3
+ "version": "0.510.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.508.0",
29
+ "@getflip/swirl-components": "0.510.0",
30
30
  "@getflip/swirl-tokens": "2.14.3",
31
31
  "@types/node": "25.3.0",
32
32
  "tsx": "^4.7.0",