Skip to content

Commit cd6d9f0

Browse files
committed
cleanup
1 parent 1ac4a33 commit cd6d9f0

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ See this [REPL for minimal usage](https://svelte.dev/repl/645841f327b8484093f94b
121121
- [file-selector](https://github.com/react-dropzone/file-selector)
122122
- [filesize](https://github.com/avoidwork/filesize.js)
123123

124+
## Issues
125+
126+
- Typing / intelisense for events on the FileDrop component are not registering properly. The [override](https://github.com/chanced/filedrop-svelte/blob/main/src/types.d.ts) (shamelessly replicated from [this](https://github.com/bluwy/pick-palette/blob/c3733e6a0e1bda0a1a2c1dae4700bd9753e6b284/src/global.d.ts) work fine) work for the action though.
127+
124128
## Todo
125129

126130
- tests

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"playwright": "^1.13.0",
4141
"prettier": "~2.2.1",
4242
"prettier-plugin-svelte": "^2.2.0",
43-
"svelte": "3.40.1",
43+
"svelte": "^3.41.0",
4444
"svelte-check": "^2.0.0",
4545
"svelte-preprocess": "^4.0.0",
4646
"svelte2tsx": "^0.4.3",

src/lib/components/FileDrop/FileDrop.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import type { Events } from "../../event";
66
import type { FileDropOptions } from "../../options";
77
export let id: string = undefined;
8-
export let disableStyles = false;
98
export let style: string = $$props.style;
109
export let containerClass = $$props.class as string | undefined;
1110
export let accept: string | string[] = undefined;

src/routes/index.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
import type { Files } from "$lib";
44
import fileSize from "filesize";
55
import FileDrop from "$lib/components/FileDrop";
6-
import { element } from "svelte/internal";
76
let disabled = false;
87
let actionFiles: Files;
98
let compFiles: Files;
109
let container: HTMLDivElement;
1110
</script>
1211

1312
<h1>FileDrop Examples</h1>
14-
1513
<h2>Component</h2>
1614
<div class="container">
1715
<FileDrop

0 commit comments

Comments
 (0)