@uploadthing/dropzone
Advanced tools
Comparing version 0.4.2-canary.0d7cd2d to 0.4.2-canary.1ea06d4
{ | ||
"name": "@uploadthing/dropzone", | ||
"version": "0.4.2-canary.0d7cd2d", | ||
"version": "0.4.2-canary.1ea06d4", | ||
"type": "module", | ||
@@ -70,25 +70,5 @@ "sideEffects": false, | ||
}, | ||
"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": { | ||
"file-selector": "^0.6.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "18.2.78", | ||
"@uploadthing/eslint-config": "0.2.0", | ||
"@uploadthing/tsconfig": "0.1.0", | ||
"bunchee": "^5.1.2", | ||
"eslint": "^8.57.0", | ||
"react": "18.2.0", | ||
"solid-js": "^1.8.15", | ||
"svelte": "^4.2.12", | ||
"typescript": "^5.4.5", | ||
"vue": "^3.4.21" | ||
}, | ||
"peerDependencies": { | ||
@@ -113,41 +93,3 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
} | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"extends": [ | ||
"@uploadthing/eslint-config/base" | ||
], | ||
"rules": { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"patterns": [ | ||
{ | ||
"group": [ | ||
"@uploadthing/dropzone", | ||
"@uploadthing/dropzone/*" | ||
], | ||
"message": "Use relative src imports instead" | ||
} | ||
], | ||
"paths": [ | ||
{ | ||
"name": "effect", | ||
"message": "Use alias imports instead (import * as X from \"effect/X\")" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"src/react.tsx" | ||
], | ||
"extends": [ | ||
"@uploadthing/eslint-config/react" | ||
] | ||
} | ||
] | ||
} | ||
} |
import { useMemo, useRef, useReducer, useEffect, useCallback } from 'react'; | ||
import { fromEvent } from 'file-selector'; | ||
import { acceptPropAsAcceptAttr, reducer, initialState, isEventWithFiles, allFilesAccepted, noop, isFileAccepted, isValidSize, isValidQuantity, isEnterOrSpace, isIeOrEdge } from '@uploadthing/dropzone/core'; | ||
import { acceptPropAsAcceptAttr, reducer, initialState, isEventWithFiles, allFilesAccepted, noop, isFileAccepted, isValidSize, isValidQuantity, isEnterOrSpace, isIeOrEdge } from '../core/index.js'; | ||
@@ -5,0 +5,0 @@ /** |
import { fromEvent } from 'file-selector'; | ||
import { mergeProps, createMemo, createSignal, createEffect, onCleanup } from 'solid-js'; | ||
import { createStore } from 'solid-js/store'; | ||
import { acceptPropAsAcceptAttr, initialState, isEventWithFiles, isPropagationStopped, allFilesAccepted, noop, isEnterOrSpace, isIeOrEdge, isFileAccepted, isValidSize, isValidQuantity } from '@uploadthing/dropzone/core'; | ||
import { acceptPropAsAcceptAttr, initialState, isEventWithFiles, isPropagationStopped, allFilesAccepted, noop, isEnterOrSpace, isIeOrEdge, isFileAccepted, isValidSize, isValidQuantity } from '../core/index.js'; | ||
@@ -6,0 +6,0 @@ function createDropzone(_props) { |
import { fromEvent } from 'file-selector'; | ||
import { onMount } from 'svelte'; | ||
import { writable, derived, get } from 'svelte/store'; | ||
import { acceptPropAsAcceptAttr, initialState, reducer, isEventWithFiles, isPropagationStopped, allFilesAccepted, noop, isEnterOrSpace, isIeOrEdge, isFileAccepted, isValidSize, isValidQuantity } from '@uploadthing/dropzone/core'; | ||
import { acceptPropAsAcceptAttr, initialState, reducer, isEventWithFiles, isPropagationStopped, allFilesAccepted, noop, isEnterOrSpace, isIeOrEdge, isFileAccepted, isValidSize, isValidQuantity } from '../core/index.js'; | ||
@@ -6,0 +6,0 @@ function reducible(reducer, state) { |
import { fromEvent } from 'file-selector'; | ||
import { ref, watch, computed, reactive, onMounted, onUnmounted, toRefs } from 'vue'; | ||
import { acceptPropAsAcceptAttr, initialState, isEventWithFiles, isPropagationStopped, allFilesAccepted, noop, isEnterOrSpace, isIeOrEdge, isFileAccepted, isValidSize, isValidQuantity } from '@uploadthing/dropzone/core'; | ||
import { acceptPropAsAcceptAttr, initialState, isEventWithFiles, isPropagationStopped, allFilesAccepted, noop, isEnterOrSpace, isIeOrEdge, isFileAccepted, isValidSize, isValidQuantity } from '../core/index.js'; | ||
@@ -5,0 +5,0 @@ function useDropzone(options) { |
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
0
100227