@bagelink/vue 1.2.99 → 1.2.101

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.
@@ -67,7 +67,7 @@ export declare function useFileUpload(props?: UseFileUploadProps): {
67
67
  pk: import('vue').Ref<string[], string[]>;
68
68
  pathKeys: import('vue').ComputedRef<string[]>;
69
69
  fileToUrl: (file: File) => string;
70
- removeFile: (pathKeyOrFile: string | File) => Promise<void>;
70
+ removeFile: (pathKeyOrFile: string | File | QueueFile) => Promise<void>;
71
71
  flushQueue: () => Promise<void>;
72
72
  addFile: (file?: File | File[] | FileList | null) => void;
73
73
  browse: (upload?: boolean) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/useFileUpload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAKxD,UAAU,kBAAkB;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,KAAK,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAclC,IAAI;gCAwBY,MAAM,GAAG,IAAI;;qBAtB9B,IAAI,GAAG,IAAI,EAAE,GAAG,QAAQ,GAAG,IAAI;;EAmHvD"}
1
+ {"version":3,"file":"useFileUpload.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/useFileUpload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAKxD,UAAU,kBAAkB;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,KAAK,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAclC,IAAI;gCAwBY,MAAM,GAAG,IAAI,GAAG,SAAS;;qBAtB1C,IAAI,GAAG,IAAI,EAAE,GAAG,QAAQ,GAAG,IAAI;;EAmHvD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.2.99",
4
+ "version": "1.2.101",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -48,7 +48,7 @@ export function useFileUpload(props: UseFileUploadProps = {}) {
48
48
  fileQueue.value.push(...newQueueFiles)
49
49
  }
50
50
 
51
- const removeFile = async (pathKeyOrFile: string | File) => {
51
+ const removeFile = async (pathKeyOrFile: string | File | QueueFile) => {
52
52
  if (typeof pathKeyOrFile === 'string') {
53
53
  // Remove from both lists
54
54
  storageFiles.value = storageFiles.value.filter(file => file.path_key !== pathKeyOrFile)