@oub/fusion 0.2.94 → 0.2.96
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/fusion.js +8324 -5269
- package/dist/fusion.umd.cjs +17 -3
- package/dist/lib/components/common/progress-bar/FusionProgressBar.vue.d.ts +39 -6
- package/dist/lib/components/form/button/FusionButton.vue.d.ts +1 -1
- package/dist/lib/components/form/file-uploader/button/FusionFileUploaderButton.vue.d.ts +148 -0
- package/dist/lib/components/form/file-uploader/components/FileUploaderList.vue.d.ts +26 -0
- package/dist/lib/components/form/file-uploader/components/FileUploaderListItem.vue.d.ts +38 -0
- package/dist/lib/components/form/icon-button/FusionIconButton.vue.d.ts +1 -1
- package/dist/lib/components/svgs/SVGBin.vue.d.ts +2 -0
- package/dist/lib/components/svgs/SVGImagePlaceholder.vue.d.ts +2 -0
- package/dist/lib/main.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/types/components/FusionFileUploader.d.ts +35 -0
- package/package.json +3 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Uppy, UppyFile as BaseUppyFile, Meta } from "@uppy/core";
|
|
2
|
+
|
|
3
|
+
export interface UploadStatus {
|
|
4
|
+
message: string;
|
|
5
|
+
type: "success" | "error" | "info" | "";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// Create a UppyFile type matching what Uppy actually returns
|
|
9
|
+
export type UppyFile = BaseUppyFile<Meta, Record<string, never>>;
|
|
10
|
+
|
|
11
|
+
export interface UploadRetryCheckData {
|
|
12
|
+
statusCode: number;
|
|
13
|
+
statusText: string;
|
|
14
|
+
responseText: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface UploadErrorData {
|
|
18
|
+
file: UppyFile;
|
|
19
|
+
error: any;
|
|
20
|
+
statusCode: number;
|
|
21
|
+
statusText: string;
|
|
22
|
+
responseText: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Re-export Uppy type for convenience
|
|
26
|
+
export type { Uppy };
|
|
27
|
+
|
|
28
|
+
export interface FusionFileUploaderProps {
|
|
29
|
+
uploadUrl: string;
|
|
30
|
+
maxFiles: number;
|
|
31
|
+
maxFileSize: number;
|
|
32
|
+
allowedFileTypes: string[];
|
|
33
|
+
headers: Record<string, any>;
|
|
34
|
+
formData: Record<string, any>;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
"outputDirectory": "coverage/storybook"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
+
"@uppy/core": "^4.4.7",
|
|
58
|
+
"@uppy/xhr-upload": "^4.3.3",
|
|
57
59
|
"vue": "^3.3.4"
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
@@ -111,5 +113,5 @@
|
|
|
111
113
|
"vue-country-flag-next": "^2.3.2",
|
|
112
114
|
"vue-tsc": "^1.6.5"
|
|
113
115
|
},
|
|
114
|
-
"version": "0.2.
|
|
116
|
+
"version": "0.2.96"
|
|
115
117
|
}
|