@uploadthing/dropzone
Advanced tools
Comparing version 0.3.2-canary.4cbc7bd to 0.3.2-canary.c0e4c9a
@@ -18,3 +18,5 @@ type AcceptProp = Record<string, string[]>; | ||
declare const isPropagationStopped: (event: Event) => boolean; | ||
declare const isPropagationStopped: (event: Event & { | ||
isPropagationStopped?: () => boolean; | ||
}) => boolean; | ||
declare function isFileAccepted(file: File, accept: string | string[]): boolean; | ||
@@ -21,0 +23,0 @@ declare function isEnterOrSpace(event: { |
@@ -29,2 +29,5 @@ /** | ||
const isPropagationStopped = (event)=>{ | ||
if (typeof event.isPropagationStopped === "function") { | ||
return event.isPropagationStopped(); | ||
} | ||
if (typeof event.cancelBubble !== "undefined") { | ||
@@ -31,0 +34,0 @@ return event.cancelBubble; |
{ | ||
"name": "@uploadthing/dropzone", | ||
"version": "0.3.2-canary.4cbc7bd", | ||
"version": "0.3.2-canary.c0e4c9a", | ||
"type": "module", | ||
@@ -47,2 +47,12 @@ "license": "MIT", | ||
} | ||
}, | ||
"./vue": { | ||
"import": { | ||
"types": "./vue/index.d.ts", | ||
"default": "./vue/index.js" | ||
}, | ||
"require": { | ||
"types": "./vue/index.d.cts", | ||
"default": "./vue/index.cjs" | ||
} | ||
} | ||
@@ -54,3 +64,4 @@ }, | ||
"solid", | ||
"svelte" | ||
"svelte", | ||
"vue" | ||
], | ||
@@ -80,3 +91,4 @@ "publishConfig": { | ||
"svelte": "^4.2.12", | ||
"typescript": "^5.4.2" | ||
"typescript": "^5.4.2", | ||
"vue": "^3.4.21" | ||
}, | ||
@@ -86,3 +98,4 @@ "peerDependencies": { | ||
"solid-js": "^1.7.11", | ||
"svelte": "^4.2.12" | ||
"svelte": "^4.2.12", | ||
"vue": "^3.4.0" | ||
}, | ||
@@ -98,2 +111,5 @@ "peerDependenciesMeta": { | ||
"optional": true | ||
}, | ||
"vue": { | ||
"optional": true | ||
} | ||
@@ -100,0 +116,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101178
21
2507
5
10