@scalably/ui 0.11.1 → 0.11.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.
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.esm.js +16 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -917,7 +917,9 @@ interface FileUploadError {
|
|
|
917
917
|
}
|
|
918
918
|
interface FileUploadFile {
|
|
919
919
|
id: string;
|
|
920
|
-
file
|
|
920
|
+
file?: File;
|
|
921
|
+
name?: string;
|
|
922
|
+
type?: string;
|
|
921
923
|
preview?: string;
|
|
922
924
|
status: "pending" | "uploading" | "success" | "error";
|
|
923
925
|
error?: FileUploadError;
|
|
@@ -940,6 +942,11 @@ interface FileUploadProps {
|
|
|
940
942
|
onUploadSuccess?: (files: File[]) => void;
|
|
941
943
|
onUploadError?: (error: FileUploadError) => void;
|
|
942
944
|
onFileRemove?: (fileId: string) => void;
|
|
945
|
+
/**
|
|
946
|
+
* Optional default file source (URL).
|
|
947
|
+
* This is used to display an existing file when the component initializes.
|
|
948
|
+
*/
|
|
949
|
+
defaultFileSrc?: string;
|
|
943
950
|
/**
|
|
944
951
|
* Accepted file types. Can be:
|
|
945
952
|
* - MIME types (e.g., 'image/jpeg', 'image/png') - **Recommended**
|
package/dist/index.d.ts
CHANGED
|
@@ -917,7 +917,9 @@ interface FileUploadError {
|
|
|
917
917
|
}
|
|
918
918
|
interface FileUploadFile {
|
|
919
919
|
id: string;
|
|
920
|
-
file
|
|
920
|
+
file?: File;
|
|
921
|
+
name?: string;
|
|
922
|
+
type?: string;
|
|
921
923
|
preview?: string;
|
|
922
924
|
status: "pending" | "uploading" | "success" | "error";
|
|
923
925
|
error?: FileUploadError;
|
|
@@ -940,6 +942,11 @@ interface FileUploadProps {
|
|
|
940
942
|
onUploadSuccess?: (files: File[]) => void;
|
|
941
943
|
onUploadError?: (error: FileUploadError) => void;
|
|
942
944
|
onFileRemove?: (fileId: string) => void;
|
|
945
|
+
/**
|
|
946
|
+
* Optional default file source (URL).
|
|
947
|
+
* This is used to display an existing file when the component initializes.
|
|
948
|
+
*/
|
|
949
|
+
defaultFileSrc?: string;
|
|
943
950
|
/**
|
|
944
951
|
* Accepted file types. Can be:
|
|
945
952
|
* - MIME types (e.g., 'image/jpeg', 'image/png') - **Recommended**
|