@getflip/swirl-ai 0.480.0 → 0.481.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.
|
@@ -12,11 +12,13 @@ The SwirlFileChip component is used to display file information in a chip format
|
|
|
12
12
|
|
|
13
13
|
## Optional props
|
|
14
14
|
|
|
15
|
+
- `deleteButtonLabel` (string | undefined) –
|
|
15
16
|
- `description` (string | undefined) –
|
|
16
17
|
- `downloadButtonLabel` (string | undefined) –
|
|
17
18
|
- `loading` (boolean | undefined) –
|
|
18
19
|
- `loadingLabel` (string | undefined) –
|
|
19
20
|
- `previewButtonLabel` (string | undefined) –
|
|
21
|
+
- `showDeleteButton` (boolean | undefined) –
|
|
20
22
|
- `showDownloadButton` (boolean | undefined) –
|
|
21
23
|
- `showPreviewButton` (boolean | undefined) –
|
|
22
24
|
- `skipNativeDownload` (boolean | undefined) –
|
|
@@ -27,6 +29,7 @@ _None._
|
|
|
27
29
|
|
|
28
30
|
## Events
|
|
29
31
|
|
|
32
|
+
- `delete` – CustomEvent<void>
|
|
30
33
|
- `download` – CustomEvent<void>
|
|
31
34
|
- `preview` – CustomEvent<void>
|
|
32
35
|
|
|
@@ -8759,6 +8759,14 @@
|
|
|
8759
8759
|
"tagName": "swirl-file-chip",
|
|
8760
8760
|
"name": "SwirlFileChip",
|
|
8761
8761
|
"attributes": [
|
|
8762
|
+
{
|
|
8763
|
+
"name": "delete-button-label",
|
|
8764
|
+
"type": {
|
|
8765
|
+
"text": "string | undefined"
|
|
8766
|
+
},
|
|
8767
|
+
"default": "\"Delete\"",
|
|
8768
|
+
"fieldName": "deleteButtonLabel"
|
|
8769
|
+
},
|
|
8762
8770
|
{
|
|
8763
8771
|
"name": "description",
|
|
8764
8772
|
"type": {
|
|
@@ -8786,7 +8794,7 @@
|
|
|
8786
8794
|
"type": {
|
|
8787
8795
|
"text": "string | undefined"
|
|
8788
8796
|
},
|
|
8789
|
-
"default": "\"Loading
|
|
8797
|
+
"default": "\"Loading …\"",
|
|
8790
8798
|
"fieldName": "loadingLabel"
|
|
8791
8799
|
},
|
|
8792
8800
|
{
|
|
@@ -8804,6 +8812,13 @@
|
|
|
8804
8812
|
"default": "\"Preview\"",
|
|
8805
8813
|
"fieldName": "previewButtonLabel"
|
|
8806
8814
|
},
|
|
8815
|
+
{
|
|
8816
|
+
"name": "show-delete-button",
|
|
8817
|
+
"type": {
|
|
8818
|
+
"text": "boolean | undefined"
|
|
8819
|
+
},
|
|
8820
|
+
"fieldName": "showDeleteButton"
|
|
8821
|
+
},
|
|
8807
8822
|
{
|
|
8808
8823
|
"name": "show-download-button",
|
|
8809
8824
|
"type": {
|
|
@@ -8841,6 +8856,16 @@
|
|
|
8841
8856
|
}
|
|
8842
8857
|
],
|
|
8843
8858
|
"members": [
|
|
8859
|
+
{
|
|
8860
|
+
"kind": "field",
|
|
8861
|
+
"name": "deleteButtonLabel",
|
|
8862
|
+
"type": {
|
|
8863
|
+
"text": "string | undefined"
|
|
8864
|
+
},
|
|
8865
|
+
"default": "\"Delete\"",
|
|
8866
|
+
"readonly": true,
|
|
8867
|
+
"attribute": "delete-button-label"
|
|
8868
|
+
},
|
|
8844
8869
|
{
|
|
8845
8870
|
"kind": "field",
|
|
8846
8871
|
"name": "description",
|
|
@@ -8875,7 +8900,7 @@
|
|
|
8875
8900
|
"type": {
|
|
8876
8901
|
"text": "string | undefined"
|
|
8877
8902
|
},
|
|
8878
|
-
"default": "\"Loading
|
|
8903
|
+
"default": "\"Loading …\"",
|
|
8879
8904
|
"readonly": true,
|
|
8880
8905
|
"attribute": "loading-label"
|
|
8881
8906
|
},
|
|
@@ -8898,6 +8923,15 @@
|
|
|
8898
8923
|
"readonly": true,
|
|
8899
8924
|
"attribute": "preview-button-label"
|
|
8900
8925
|
},
|
|
8926
|
+
{
|
|
8927
|
+
"kind": "field",
|
|
8928
|
+
"name": "showDeleteButton",
|
|
8929
|
+
"type": {
|
|
8930
|
+
"text": "boolean | undefined"
|
|
8931
|
+
},
|
|
8932
|
+
"readonly": true,
|
|
8933
|
+
"attribute": "show-delete-button"
|
|
8934
|
+
},
|
|
8901
8935
|
{
|
|
8902
8936
|
"kind": "field",
|
|
8903
8937
|
"name": "showDownloadButton",
|
|
@@ -8945,6 +8979,12 @@
|
|
|
8945
8979
|
}
|
|
8946
8980
|
],
|
|
8947
8981
|
"events": [
|
|
8982
|
+
{
|
|
8983
|
+
"name": "delete",
|
|
8984
|
+
"type": {
|
|
8985
|
+
"text": "CustomEvent<void>"
|
|
8986
|
+
}
|
|
8987
|
+
},
|
|
8948
8988
|
{
|
|
8949
8989
|
"name": "download",
|
|
8950
8990
|
"type": {
|
|
@@ -8959,6 +8999,9 @@
|
|
|
8959
8999
|
}
|
|
8960
9000
|
],
|
|
8961
9001
|
"cssParts": [
|
|
9002
|
+
{
|
|
9003
|
+
"name": "file-chip__delete"
|
|
9004
|
+
},
|
|
8962
9005
|
{
|
|
8963
9006
|
"name": "file-chip__download"
|
|
8964
9007
|
},
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
type SwirlFileChipFileType = "image" | "video" | "audio" | "pdf" | "compressed" | "document" | "unknown";
|
|
3
3
|
export declare class SwirlFileChip {
|
|
4
|
-
|
|
5
|
-
name: string;
|
|
6
|
-
type: string;
|
|
4
|
+
deleteButtonLabel?: string;
|
|
7
5
|
description?: string;
|
|
6
|
+
downloadButtonLabel?: string;
|
|
8
7
|
loading?: boolean;
|
|
9
8
|
loadingLabel?: string;
|
|
10
|
-
|
|
9
|
+
name: string;
|
|
10
|
+
previewButtonLabel?: string;
|
|
11
|
+
showDeleteButton?: boolean;
|
|
11
12
|
showDownloadButton?: boolean;
|
|
12
13
|
showPreviewButton?: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
skipNativeDownload?: boolean;
|
|
15
|
+
type: string;
|
|
16
|
+
url: string;
|
|
17
|
+
delete: EventEmitter<void>;
|
|
16
18
|
download: EventEmitter<void>;
|
|
17
|
-
|
|
19
|
+
preview: EventEmitter<void>;
|
|
18
20
|
fileType: SwirlFileChipFileType;
|
|
21
|
+
isHovered: boolean;
|
|
19
22
|
private readonly fileIconMap;
|
|
20
23
|
componentWillLoad(): void;
|
|
21
24
|
watchType(): void;
|
|
25
|
+
private handleClick;
|
|
22
26
|
private handleDownloadClick;
|
|
23
27
|
private handlePreviewClick;
|
|
28
|
+
private handleDeleteClick;
|
|
24
29
|
private getFileIcon;
|
|
25
30
|
private setFileType;
|
|
26
31
|
render(): any;
|
|
@@ -1040,6 +1040,10 @@ export namespace Components {
|
|
|
1040
1040
|
"illustration"?: string;
|
|
1041
1041
|
}
|
|
1042
1042
|
interface SwirlFileChip {
|
|
1043
|
+
/**
|
|
1044
|
+
* @default "Delete"
|
|
1045
|
+
*/
|
|
1046
|
+
"deleteButtonLabel"?: string;
|
|
1043
1047
|
"description"?: string;
|
|
1044
1048
|
/**
|
|
1045
1049
|
* @default "Download"
|
|
@@ -1047,7 +1051,7 @@ export namespace Components {
|
|
|
1047
1051
|
"downloadButtonLabel"?: string;
|
|
1048
1052
|
"loading"?: boolean;
|
|
1049
1053
|
/**
|
|
1050
|
-
* @default "Loading"
|
|
1054
|
+
* @default "Loading …"
|
|
1051
1055
|
*/
|
|
1052
1056
|
"loadingLabel"?: string;
|
|
1053
1057
|
"name": string;
|
|
@@ -1055,6 +1059,7 @@ export namespace Components {
|
|
|
1055
1059
|
* @default "Preview"
|
|
1056
1060
|
*/
|
|
1057
1061
|
"previewButtonLabel"?: string;
|
|
1062
|
+
"showDeleteButton"?: boolean;
|
|
1058
1063
|
"showDownloadButton"?: boolean;
|
|
1059
1064
|
"showPreviewButton"?: boolean;
|
|
1060
1065
|
"skipNativeDownload"?: boolean;
|
|
@@ -6006,8 +6011,9 @@ declare global {
|
|
|
6006
6011
|
new (): HTMLSwirlEmptyStateElement;
|
|
6007
6012
|
};
|
|
6008
6013
|
interface HTMLSwirlFileChipElementEventMap {
|
|
6009
|
-
"
|
|
6014
|
+
"delete": void;
|
|
6010
6015
|
"download": void;
|
|
6016
|
+
"preview": void;
|
|
6011
6017
|
}
|
|
6012
6018
|
interface HTMLSwirlFileChipElement extends Components.SwirlFileChip, HTMLStencilElement {
|
|
6013
6019
|
addEventListener<K extends keyof HTMLSwirlFileChipElementEventMap>(type: K, listener: (this: HTMLSwirlFileChipElement, ev: SwirlFileChipCustomEvent<HTMLSwirlFileChipElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -10550,6 +10556,10 @@ declare namespace LocalJSX {
|
|
|
10550
10556
|
"illustration"?: string;
|
|
10551
10557
|
}
|
|
10552
10558
|
interface SwirlFileChip {
|
|
10559
|
+
/**
|
|
10560
|
+
* @default "Delete"
|
|
10561
|
+
*/
|
|
10562
|
+
"deleteButtonLabel"?: string;
|
|
10553
10563
|
"description"?: string;
|
|
10554
10564
|
/**
|
|
10555
10565
|
* @default "Download"
|
|
@@ -10557,16 +10567,18 @@ declare namespace LocalJSX {
|
|
|
10557
10567
|
"downloadButtonLabel"?: string;
|
|
10558
10568
|
"loading"?: boolean;
|
|
10559
10569
|
/**
|
|
10560
|
-
* @default "Loading"
|
|
10570
|
+
* @default "Loading …"
|
|
10561
10571
|
*/
|
|
10562
10572
|
"loadingLabel"?: string;
|
|
10563
10573
|
"name": string;
|
|
10574
|
+
"onDelete"?: (event: SwirlFileChipCustomEvent<void>) => void;
|
|
10564
10575
|
"onDownload"?: (event: SwirlFileChipCustomEvent<void>) => void;
|
|
10565
10576
|
"onPreview"?: (event: SwirlFileChipCustomEvent<void>) => void;
|
|
10566
10577
|
/**
|
|
10567
10578
|
* @default "Preview"
|
|
10568
10579
|
*/
|
|
10569
10580
|
"previewButtonLabel"?: string;
|
|
10581
|
+
"showDeleteButton"?: boolean;
|
|
10570
10582
|
"showDownloadButton"?: boolean;
|
|
10571
10583
|
"showPreviewButton"?: boolean;
|
|
10572
10584
|
"skipNativeDownload"?: boolean;
|
|
@@ -15091,17 +15103,19 @@ declare namespace LocalJSX {
|
|
|
15091
15103
|
"illustration": string;
|
|
15092
15104
|
}
|
|
15093
15105
|
interface SwirlFileChipAttributes {
|
|
15094
|
-
"
|
|
15095
|
-
"name": string;
|
|
15096
|
-
"type": string;
|
|
15106
|
+
"deleteButtonLabel": string;
|
|
15097
15107
|
"description": string;
|
|
15108
|
+
"downloadButtonLabel": string;
|
|
15098
15109
|
"loading": boolean;
|
|
15099
15110
|
"loadingLabel": string;
|
|
15100
|
-
"
|
|
15111
|
+
"name": string;
|
|
15112
|
+
"previewButtonLabel": string;
|
|
15113
|
+
"showDeleteButton": boolean;
|
|
15101
15114
|
"showDownloadButton": boolean;
|
|
15102
15115
|
"showPreviewButton": boolean;
|
|
15103
|
-
"
|
|
15104
|
-
"
|
|
15116
|
+
"skipNativeDownload": boolean;
|
|
15117
|
+
"type": string;
|
|
15118
|
+
"url": string;
|
|
15105
15119
|
}
|
|
15106
15120
|
interface SwirlFileUploaderAttributes {
|
|
15107
15121
|
"accept": string;
|
|
@@ -17262,7 +17276,7 @@ declare namespace LocalJSX {
|
|
|
17262
17276
|
"swirl-emoji-sad": Omit<SwirlEmojiSad, keyof SwirlEmojiSadAttributes> & { [K in keyof SwirlEmojiSad & keyof SwirlEmojiSadAttributes]?: SwirlEmojiSad[K] } & { [K in keyof SwirlEmojiSad & keyof SwirlEmojiSadAttributes as `attr:${K}`]?: SwirlEmojiSadAttributes[K] } & { [K in keyof SwirlEmojiSad & keyof SwirlEmojiSadAttributes as `prop:${K}`]?: SwirlEmojiSad[K] };
|
|
17263
17277
|
"swirl-emoji-thumbs-up": Omit<SwirlEmojiThumbsUp, keyof SwirlEmojiThumbsUpAttributes> & { [K in keyof SwirlEmojiThumbsUp & keyof SwirlEmojiThumbsUpAttributes]?: SwirlEmojiThumbsUp[K] } & { [K in keyof SwirlEmojiThumbsUp & keyof SwirlEmojiThumbsUpAttributes as `attr:${K}`]?: SwirlEmojiThumbsUpAttributes[K] } & { [K in keyof SwirlEmojiThumbsUp & keyof SwirlEmojiThumbsUpAttributes as `prop:${K}`]?: SwirlEmojiThumbsUp[K] };
|
|
17264
17278
|
"swirl-empty-state": Omit<SwirlEmptyState, keyof SwirlEmptyStateAttributes> & { [K in keyof SwirlEmptyState & keyof SwirlEmptyStateAttributes]?: SwirlEmptyState[K] } & { [K in keyof SwirlEmptyState & keyof SwirlEmptyStateAttributes as `attr:${K}`]?: SwirlEmptyStateAttributes[K] } & { [K in keyof SwirlEmptyState & keyof SwirlEmptyStateAttributes as `prop:${K}`]?: SwirlEmptyState[K] };
|
|
17265
|
-
"swirl-file-chip": Omit<SwirlFileChip, keyof SwirlFileChipAttributes> & { [K in keyof SwirlFileChip & keyof SwirlFileChipAttributes]?: SwirlFileChip[K] } & { [K in keyof SwirlFileChip & keyof SwirlFileChipAttributes as `attr:${K}`]?: SwirlFileChipAttributes[K] } & { [K in keyof SwirlFileChip & keyof SwirlFileChipAttributes as `prop:${K}`]?: SwirlFileChip[K] } & OneOf<"
|
|
17279
|
+
"swirl-file-chip": Omit<SwirlFileChip, keyof SwirlFileChipAttributes> & { [K in keyof SwirlFileChip & keyof SwirlFileChipAttributes]?: SwirlFileChip[K] } & { [K in keyof SwirlFileChip & keyof SwirlFileChipAttributes as `attr:${K}`]?: SwirlFileChipAttributes[K] } & { [K in keyof SwirlFileChip & keyof SwirlFileChipAttributes as `prop:${K}`]?: SwirlFileChip[K] } & OneOf<"name", SwirlFileChip["name"], SwirlFileChipAttributes["name"]> & OneOf<"type", SwirlFileChip["type"], SwirlFileChipAttributes["type"]> & OneOf<"url", SwirlFileChip["url"], SwirlFileChipAttributes["url"]>;
|
|
17266
17280
|
"swirl-file-uploader": Omit<SwirlFileUploader, keyof SwirlFileUploaderAttributes> & { [K in keyof SwirlFileUploader & keyof SwirlFileUploaderAttributes]?: SwirlFileUploader[K] } & { [K in keyof SwirlFileUploader & keyof SwirlFileUploaderAttributes as `attr:${K}`]?: SwirlFileUploaderAttributes[K] } & { [K in keyof SwirlFileUploader & keyof SwirlFileUploaderAttributes as `prop:${K}`]?: SwirlFileUploader[K] } & OneOf<"inputId", SwirlFileUploader["inputId"], SwirlFileUploaderAttributes["inputId"]> & OneOf<"inputName", SwirlFileUploader["inputName"], SwirlFileUploaderAttributes["inputName"]> & OneOf<"label", SwirlFileUploader["label"], SwirlFileUploaderAttributes["label"]>;
|
|
17267
17281
|
"swirl-file-viewer": Omit<SwirlFileViewer, keyof SwirlFileViewerAttributes> & { [K in keyof SwirlFileViewer & keyof SwirlFileViewerAttributes]?: SwirlFileViewer[K] } & { [K in keyof SwirlFileViewer & keyof SwirlFileViewerAttributes as `attr:${K}`]?: SwirlFileViewerAttributes[K] } & { [K in keyof SwirlFileViewer & keyof SwirlFileViewerAttributes as `prop:${K}`]?: SwirlFileViewer[K] } & OneOf<"file", SwirlFileViewer["file"], SwirlFileViewerAttributes["file"]> & OneOf<"type", SwirlFileViewer["type"], SwirlFileViewerAttributes["type"]>;
|
|
17268
17282
|
"swirl-file-viewer-audio": Omit<SwirlFileViewerAudio, keyof SwirlFileViewerAudioAttributes> & { [K in keyof SwirlFileViewerAudio & keyof SwirlFileViewerAudioAttributes]?: SwirlFileViewerAudio[K] } & { [K in keyof SwirlFileViewerAudio & keyof SwirlFileViewerAudioAttributes as `attr:${K}`]?: SwirlFileViewerAudioAttributes[K] } & { [K in keyof SwirlFileViewerAudio & keyof SwirlFileViewerAudioAttributes as `prop:${K}`]?: SwirlFileViewerAudio[K] } & OneOf<"file", SwirlFileViewerAudio["file"], SwirlFileViewerAudioAttributes["file"]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.481.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.481.0",
|
|
30
30
|
"@types/node": "25.3.0",
|
|
31
31
|
"tsx": "^4.7.0",
|
|
32
32
|
"typescript": "5.9.3"
|