@uploadthing/dropzone
Advanced tools
Comparing version 0.4.1 to 0.4.2-canary.7399068
{ | ||
"name": "@uploadthing/dropzone", | ||
"version": "0.4.1", | ||
"version": "0.4.2-canary.7399068", | ||
"type": "module", | ||
@@ -73,14 +73,2 @@ "sideEffects": false, | ||
}, | ||
"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": { | ||
@@ -105,48 +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" | ||
] | ||
} | ||
] | ||
}, | ||
"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" | ||
} | ||
} |
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
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
0
100227
21