@ikonai/sdk-react-ui-standard 1.0.33 → 1.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-react-ui-standard",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -3,47 +3,9 @@ export interface FileInfo {
3
3
  file: File;
4
4
  uploadId: string;
5
5
  }
6
- export interface FileSelectedPayload {
7
- Files: Array<{
8
- FileName: string;
9
- Size: number;
10
- Mime: string;
11
- }>;
12
- }
13
- export interface FileUploadStartedPayload {
14
- UploadId: string;
15
- FileName: string;
16
- Size: number;
17
- Mime: string;
18
- }
19
- export interface FileUploadProgressPayload {
20
- UploadId: string;
21
- FileName: string;
22
- ProgressPercentage: number;
23
- }
24
- export interface FileUploadCompletePayload {
25
- UploadId: string;
26
- FileName: string;
27
- Size: number;
28
- Mime: string;
29
- FilePath: string;
30
- }
31
- export interface FileUploadErrorPayload {
32
- UploadId: string;
33
- FileName: string;
34
- ErrorMessage: string;
35
- }
36
- export interface UploadCallbacks {
37
- onFileSelectedId?: string;
38
- onUploadStartedId?: string;
39
- onUploadProgressId?: string;
40
- onUploadCompleteId?: string;
41
- onUploadErrorId?: string;
42
- }
43
6
  export interface UploadOptions {
44
- callbacks: UploadCallbacks;
7
+ uploadActionId: string;
45
8
  context: UiRenderContext;
46
- uploadPath?: string;
47
9
  }
48
10
  export declare function generateUploadId(): string;
49
11
  export declare function validateFile(file: File, accept?: string[], maxSize?: number): {
@@ -55,7 +17,6 @@ export declare function processAndUploadFiles(files: File[], options: {
55
17
  multiple: boolean;
56
18
  accept?: string[];
57
19
  maxFileSize?: number;
58
- callbacks: UploadCallbacks;
20
+ uploadActionId: string;
59
21
  context: UiRenderContext;
60
- uploadPath?: string;
61
22
  }): Promise<void>;