@vunk/form 2.19.16 → 2.19.17

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.
@@ -1,4 +1,4 @@
1
- import { FileInfo } from './types';
1
+ import { Chunk, FileInfo } from './types';
2
2
  import { Status } from './const';
3
3
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  chunkSize: {
@@ -96,7 +96,51 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
96
96
  for: StringConstructor;
97
97
  inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
98
98
  showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
99
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
99
+ }>, {
100
+ chunks: import("vue").Ref<{
101
+ fileName: string;
102
+ fileHash: string;
103
+ fileSize: number;
104
+ chunk: {
105
+ readonly size: number;
106
+ readonly type: string;
107
+ arrayBuffer: () => Promise<ArrayBuffer>;
108
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
109
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
110
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
111
+ text: () => Promise<string>;
112
+ };
113
+ hash: string;
114
+ chunksLength: number;
115
+ index: number;
116
+ progress: number;
117
+ sliceSize: number;
118
+ status: Status;
119
+ }[], Chunk[] | {
120
+ fileName: string;
121
+ fileHash: string;
122
+ fileSize: number;
123
+ chunk: {
124
+ readonly size: number;
125
+ readonly type: string;
126
+ arrayBuffer: () => Promise<ArrayBuffer>;
127
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
128
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
129
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
130
+ text: () => Promise<string>;
131
+ };
132
+ hash: string;
133
+ chunksLength: number;
134
+ index: number;
135
+ progress: number;
136
+ sliceSize: number;
137
+ status: Status;
138
+ }[]>;
139
+ fileStatus: import("vue").WritableComputedRef<Status, Status>;
140
+ merging: import("vue").Ref<boolean, boolean>;
141
+ handleUpload: () => Promise<void>;
142
+ handlePause: () => void;
143
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
100
144
  success: (file: FileInfo) => void;
101
145
  "update:file": (...args: any[]) => void;
102
146
  "update:fileStatus": (...args: any[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.19.16",
3
+ "version": "2.19.17",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {