@uploadthing/dropzone
Advanced tools
Comparing version 0.3.2-canary.e867d3a to 0.4.0
{ | ||
"name": "@uploadthing/dropzone", | ||
"version": "0.3.2-canary.e867d3a", | ||
"version": "0.4.0", | ||
"type": "module", | ||
@@ -69,10 +69,2 @@ "license": "MIT", | ||
}, | ||
"scripts": { | ||
"lint": "eslint src --max-warnings 0", | ||
"build": "bunchee --tsconfig tsconfig.build.json", | ||
"clean": "git clean -xdf core react solid node_modules", | ||
"dev": "bunchee -w --tsconfig tsconfig.build.json --no-clean", | ||
"prepack": "bun ../../.github/replace-workspace-protocol.ts", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
@@ -82,3 +74,3 @@ "file-selector": "^0.6.0" | ||
"devDependencies": { | ||
"@types/react": "18.2.60", | ||
"@types/react": "18.2.78", | ||
"@uploadthing/eslint-config": "0.2.0", | ||
@@ -91,3 +83,3 @@ "@uploadthing/tsconfig": "0.1.0", | ||
"svelte": "^4.2.12", | ||
"typescript": "^5.4.2", | ||
"typescript": "^5.4.5", | ||
"vue": "^3.4.21" | ||
@@ -141,3 +133,10 @@ }, | ||
] | ||
}, | ||
"scripts": { | ||
"lint": "eslint src --max-warnings 0", | ||
"build": "bunchee --tsconfig tsconfig.build.json", | ||
"clean": "git clean -xdf core react solid node_modules", | ||
"dev": "bunchee -w --tsconfig tsconfig.build.json --no-clean", | ||
"typecheck": "tsc --noEmit" | ||
} | ||
} |
@@ -7,7 +7,7 @@ import * as react from 'react'; | ||
multiple?: boolean; | ||
accept?: AcceptProp; | ||
accept?: AcceptProp | undefined; | ||
minSize?: number; | ||
maxSize?: number; | ||
maxFiles?: number; | ||
disabled?: boolean; | ||
disabled?: boolean | undefined; | ||
onDrop: <T extends File>(acceptedFiles: T[]) => void; | ||
@@ -14,0 +14,0 @@ }; |
@@ -6,7 +6,7 @@ import * as solid_js from 'solid-js'; | ||
multiple?: boolean; | ||
accept?: AcceptProp; | ||
accept?: AcceptProp | undefined; | ||
minSize?: number; | ||
maxSize?: number; | ||
maxFiles?: number; | ||
disabled?: boolean; | ||
disabled?: boolean | undefined; | ||
onDrop: <T extends File>(acceptedFiles: T[]) => void; | ||
@@ -32,4 +32,4 @@ }; | ||
getInputProps: () => { | ||
onChange?: ((event: DropEvent) => void) | undefined; | ||
onClick?: ((event: MouseEvent) => void) | undefined; | ||
onChange?: (event: DropEvent) => void; | ||
onClick?: (event: MouseEvent) => void; | ||
ref: solid_js.Setter<HTMLInputElement | null | undefined>; | ||
@@ -45,11 +45,11 @@ type: string; | ||
getRootProps: () => { | ||
tabIndex?: number | undefined; | ||
onKeyDown?: ((event: KeyboardEvent) => void) | undefined; | ||
onFocus?: (() => void) | undefined; | ||
onBlur?: (() => void) | undefined; | ||
onClick?: (() => () => void) | undefined; | ||
onDragEnter?: ((event: DragEvent) => void) | undefined; | ||
onDragOver?: ((event: DragEvent) => boolean) | undefined; | ||
onDragLeave?: ((event: DragEvent) => void) | undefined; | ||
onDrop?: ((event: DropEvent) => void) | undefined; | ||
tabIndex?: number; | ||
onKeyDown?: (event: KeyboardEvent) => void; | ||
onFocus?: () => void; | ||
onBlur?: () => void; | ||
onClick?: () => () => void; | ||
onDragEnter?: (event: DragEvent) => void; | ||
onDragOver?: (event: DragEvent) => boolean; | ||
onDragLeave?: (event: DragEvent) => void; | ||
onDrop?: (event: DropEvent) => void; | ||
ref: solid_js.Setter<HTMLElement | null | undefined>; | ||
@@ -56,0 +56,0 @@ role: "presentation"; |
@@ -7,7 +7,7 @@ import * as svelte_store from 'svelte/store'; | ||
multiple?: boolean; | ||
accept?: AcceptProp; | ||
accept?: AcceptProp | undefined; | ||
minSize?: number; | ||
maxSize?: number; | ||
maxFiles?: number; | ||
disabled?: boolean; | ||
disabled?: boolean | undefined; | ||
onDrop: <T extends File>(acceptedFiles: T[]) => void; | ||
@@ -14,0 +14,0 @@ }; |
@@ -7,7 +7,7 @@ import * as vue from 'vue'; | ||
multiple?: boolean; | ||
accept?: AcceptProp; | ||
accept?: AcceptProp | undefined; | ||
minSize?: number; | ||
maxSize?: number; | ||
maxFiles?: number; | ||
disabled?: boolean; | ||
disabled?: boolean | undefined; | ||
onDrop: <T extends File>(acceptedFiles: T[]) => void; | ||
@@ -14,0 +14,0 @@ }; |
@@ -192,3 +192,3 @@ import { fromEvent } from 'file-selector'; | ||
style: "display: none", | ||
accept: acceptAttr.value, | ||
accept: acceptAttr.value ?? "", | ||
multiple: optionsRef.value.multiple, | ||
@@ -195,0 +195,0 @@ tabindex: -1, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
102063
22