mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
Add Export Maps (#5830)
- added export maps to all the @uppy packages . - imports remain unaffected except for peerDep packages in `@uppy/react` `@uppy/svelte` and `@uppy/vue3`. - export maps added for index files , css , and package.json. - Added side effects for all the packages. --------- Co-authored-by: Mikael Finstad <finstaden@gmail.com> Co-authored-by: Merlijn Vos <merlijn@soverin.net>
This commit is contained in:
parent
8df48060fa
commit
c5b51f6158
62 changed files with 417 additions and 68 deletions
70
.changeset/light-hounds-vanish.md
Normal file
70
.changeset/light-hounds-vanish.md
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
---
|
||||
"@uppy/google-photos-picker": major
|
||||
"@uppy/google-drive-picker": major
|
||||
"@uppy/thumbnail-generator": major
|
||||
"@uppy/companion-client": major
|
||||
"@uppy/golden-retriever": major
|
||||
"@uppy/provider-views": major
|
||||
"@uppy/remote-sources": major
|
||||
"@uppy/screen-capture": major
|
||||
"@uppy/store-default": major
|
||||
"@uppy/google-drive": major
|
||||
"@uppy/image-editor": major
|
||||
"@uppy/react-native": major
|
||||
"@uppy/drop-target": major
|
||||
"@uppy/transloadit": major
|
||||
"@uppy/components": major
|
||||
"@uppy/compressor": major
|
||||
"@uppy/status-bar": major
|
||||
"@uppy/xhr-upload": major
|
||||
"@uppy/companion": major
|
||||
"@uppy/dashboard": major
|
||||
"@uppy/instagram": major
|
||||
"@uppy/facebook": major
|
||||
"@uppy/onedrive": major
|
||||
"@uppy/unsplash": major
|
||||
"@uppy/dropbox": major
|
||||
"@uppy/locales": major
|
||||
"@uppy/aws-s3": major
|
||||
"@uppy/svelte": major
|
||||
"@uppy/webcam": major
|
||||
"@uppy/audio": major
|
||||
"@uppy/react": major
|
||||
"@uppy/utils": major
|
||||
"@uppy/core": major
|
||||
"@uppy/form": major
|
||||
"@uppy/zoom": major
|
||||
"@uppy/box": major
|
||||
"@uppy/tus": major
|
||||
"@uppy/url": major
|
||||
"@uppy/vue": major
|
||||
"uppy": major
|
||||
---
|
||||
|
||||
### Export maps for all packages
|
||||
|
||||
All packages now have export maps. This is a breaking change in two cases:
|
||||
|
||||
1. The css imports have changed from `@uppy[package]/dist/styles.min.css` to `@uppy[package]/css/styles.min.css`
|
||||
2. You were importing something that wasn't exported from the root, for instance `@uppy/core/lib/foo.js`. You can now only import things we explicitly exported.
|
||||
|
||||
#### Changed imports for `@uppy/react`, `@uppy/vue`, and `@uppy/svelte`
|
||||
|
||||
Some components, like Dashboard, require a peer dependency to work but since all components were exported from a single file you were forced to install all peer dependencies. Even if you never imported, for instance, the status bar component.
|
||||
|
||||
Every component that requires a peer dependency has now been moved to a subpath, such as `@uppy/react/dashboard`, so you only need to install the peer dependencies you need.
|
||||
|
||||
**Example for `@uppy/react`:**
|
||||
|
||||
**Before:**
|
||||
|
||||
```javascript
|
||||
import { Dashboard, StatusBar } from "@uppy/react";
|
||||
```
|
||||
|
||||
**Now:**
|
||||
|
||||
```javascript
|
||||
import Dashboard from "@uppy/react/dashboard";
|
||||
import StatusBar from "@uppy/react/status-bar";
|
||||
```
|
||||
28
.github/MIGRATION.md
vendored
28
.github/MIGRATION.md
vendored
|
|
@ -108,4 +108,30 @@ uppy.use(Dashboard, {
|
|||
- Use the framework-specific hooks (`@uppy/react`, `@uppy/vue`, `@uppy/svelte`) for maximum flexibility
|
||||
- Use `@uppy/dashboard` for a complete, ready-to-use UI solution
|
||||
3. Replace your existing components with custom implementations using the hooks or Dashboard
|
||||
4. See [examples/](../examples/) for complete implementation examples
|
||||
4. See [examples/](../examples/) for complete implementation examples
|
||||
|
||||
### Export maps for all packages
|
||||
|
||||
All packages now have export maps. This is a breaking change in two cases:
|
||||
|
||||
1. The css imports have changed from `@uppy[package]/dist/styles.min.css` to `@uppy[package]/css/styles.min.css`
|
||||
2. You were importing something that wasn't exported from the root, for instance `@uppy/core/lib/foo.js`. You can now only import things we explicitly exported.
|
||||
|
||||
#### Changed imports for `@uppy/react`, `@uppy/vue`, and `@uppy/svelte`
|
||||
|
||||
Some components, like Dashboard, require a peer dependency to work but since all components were exported from a single file you were forced to install all peer dependencies. Even if you never imported, for instance, the status bar component.
|
||||
|
||||
Every component that requires a peer dependency has now been moved to a subpath, such as `@uppy/react/dashboard`, so you only need to install the peer dependencies you need.
|
||||
|
||||
**Example for `@uppy/react`:**
|
||||
|
||||
**Before:**
|
||||
```javascript
|
||||
import { Dashboard, StatusBar } from '@uppy/react'
|
||||
```
|
||||
|
||||
**Now:**
|
||||
```javascript
|
||||
import Dashboard from '@uppy/react/dashboard'
|
||||
import StatusBar from '@uppy/react/status-bar'
|
||||
```
|
||||
|
|
@ -18,7 +18,7 @@ import ScreenCapture from './ScreenCapture'
|
|||
import Webcam from './Webcam'
|
||||
|
||||
import './app.css'
|
||||
import '@uppy/react/dist/styles.css'
|
||||
import '@uppy/react/css/style.css'
|
||||
|
||||
function App() {
|
||||
const [uppy] = useState(() =>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {
|
|||
} from '@uppy/svelte'
|
||||
import Tus from '@uppy/tus'
|
||||
import UppyWebcam from '@uppy/webcam'
|
||||
import '@uppy/svelte/dist/styles.css'
|
||||
import '@uppy/svelte/css/style.css'
|
||||
|
||||
import CustomDropzone from '../components/CustomDropzone.svelte'
|
||||
import RemoteSource from '../components/RemoteSource.svelte'
|
||||
|
|
|
|||
|
|
@ -84,4 +84,4 @@ const uppy = computed(() =>
|
|||
)
|
||||
</script>
|
||||
|
||||
<style src="@uppy/vue/dist/styles.css"></style>
|
||||
<style src="@uppy/vue/css/style.css"></style>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
"mediarecorder"
|
||||
],
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"homepage": "https://uppy.io",
|
||||
"bugs": {
|
||||
"url": "https://github.com/transloadit/uppy/issues"
|
||||
|
|
@ -24,6 +27,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"preact": "^10.5.13"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -27,6 +28,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/utils": "workspace:^"
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ import { RequestClient } from '@uppy/companion-client'
|
|||
import {
|
||||
BasePlugin,
|
||||
type DefinePluginOpts,
|
||||
EventManager,
|
||||
type PluginOpts,
|
||||
type Uppy,
|
||||
} from '@uppy/core'
|
||||
import EventManager from '@uppy/core/lib/EventManager.js'
|
||||
import { createAbortError } from '@uppy/utils/lib/AbortController'
|
||||
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider'
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -25,6 +26,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"namespace-emitter": "^2.0.1",
|
||||
|
|
|
|||
|
|
@ -6,12 +6,18 @@
|
|||
"types": "lib/companion.d.ts",
|
||||
"author": "Transloadit.com",
|
||||
"license": "MIT",
|
||||
"sideEffects": false,
|
||||
"homepage": "https://github.com/transloadit/uppy#readme",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/companion.js",
|
||||
"./standalone": "./lib/standalone/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"keywords": [
|
||||
"file uploader",
|
||||
"progress",
|
||||
|
|
@ -96,7 +102,9 @@
|
|||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
"lib/"
|
||||
"lib/",
|
||||
"src/",
|
||||
"CHANGELOG.md"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"keywords": [
|
||||
"uppy",
|
||||
"uppy-plugin",
|
||||
|
|
@ -26,6 +29,11 @@
|
|||
"migrate": "node migrate.mjs",
|
||||
"typecheck": "tsc --build"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/styles.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/audio": "workspace:^",
|
||||
"@uppy/core": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
"version": "2.2.1",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"keywords": [
|
||||
"file uploader",
|
||||
"uppy",
|
||||
|
|
@ -14,6 +13,7 @@
|
|||
],
|
||||
"type": "module",
|
||||
"homepage": "https://uppy.io",
|
||||
"sideEffects": false,
|
||||
"bugs": {
|
||||
"url": "https://github.com/transloadit/uppy/issues"
|
||||
},
|
||||
|
|
@ -21,6 +21,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@transloadit/prettier-bytes": "^0.3.4",
|
||||
"@uppy/utils": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -28,6 +28,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@transloadit/prettier-bytes": "^0.3.4",
|
||||
"@uppy/store-default": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -7,8 +7,10 @@ export type {
|
|||
} from '@uppy/utils/lib/UppyFile'
|
||||
export type { DefinePluginOpts, PluginOpts } from './BasePlugin.js'
|
||||
export { default as BasePlugin } from './BasePlugin.js'
|
||||
export { default as EventManager } from './EventManager.js'
|
||||
export { debugLogger } from './loggers.js'
|
||||
export type { UIPluginOptions } from './UIPlugin.js'
|
||||
export type { Restrictions, ValidateableFile } from './Restricter.js'
|
||||
export type { PluginTarget, UIPluginOptions } from './UIPlugin.js'
|
||||
export { default as UIPlugin } from './UIPlugin.js'
|
||||
export type {
|
||||
AsyncStore,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
@ -28,6 +31,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@transloadit/prettier-bytes": "^0.3.4",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
@ -28,6 +31,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"get-form-data": "^3.0.0"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -26,6 +27,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"lodash": "^4.17.21"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -25,6 +26,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,9 +5,11 @@ import {
|
|||
} from '@uppy/companion-client'
|
||||
import type { AsyncStore, BaseProviderPlugin, Body, Meta } from '@uppy/core'
|
||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||
import { GooglePickerView } from '@uppy/provider-views'
|
||||
import type { PickedItem } from '@uppy/provider-views/lib/GooglePicker/googlePicker.js'
|
||||
import { GoogleDriveIcon } from '@uppy/provider-views/lib/GooglePicker/icons.js'
|
||||
import {
|
||||
GoogleDriveIcon,
|
||||
GooglePickerView,
|
||||
type PickedItem,
|
||||
} from '@uppy/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
||||
import { h } from 'preact'
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -24,6 +25,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -25,6 +26,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,9 +5,11 @@ import {
|
|||
} from '@uppy/companion-client'
|
||||
import type { AsyncStore, BaseProviderPlugin, Body, Meta } from '@uppy/core'
|
||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||
import { GooglePickerView } from '@uppy/provider-views'
|
||||
import type { PickedItem } from '@uppy/provider-views/lib/GooglePicker/googlePicker.js'
|
||||
import { GooglePhotosIcon } from '@uppy/provider-views/lib/GooglePicker/icons.js'
|
||||
import {
|
||||
GooglePhotosIcon,
|
||||
GooglePickerView,
|
||||
type PickedItem,
|
||||
} from '@uppy/provider-views'
|
||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
||||
import { h } from 'preact'
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
@ -30,6 +33,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"cropperjs": "^1.6.2",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -26,6 +27,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
"version": "4.6.0",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"main": "locale-pack/index.mjs",
|
||||
"scripts": {
|
||||
"build": "yarn node script/build-en_US.mjs && tsc --build tsconfig.build.json && yarn format",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
@ -24,6 +27,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"classnames": "^2.2.6",
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import type {
|
|||
PartialTreeId,
|
||||
UnknownProviderPlugin,
|
||||
UnknownProviderPluginState,
|
||||
ValidateableFile,
|
||||
} from '@uppy/core'
|
||||
import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
|
||||
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
|
||||
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
|
||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import type {
|
|||
PartialTreeFolderRoot,
|
||||
UnknownSearchProviderPlugin,
|
||||
UnknownSearchProviderPluginState,
|
||||
ValidateableFile,
|
||||
} from '@uppy/core'
|
||||
import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
|
||||
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
|
||||
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
|
||||
import classNames from 'classnames'
|
||||
|
|
|
|||
|
|
@ -1,8 +1,28 @@
|
|||
export { default as GooglePickerView } from './GooglePicker/GooglePickerView.js'
|
||||
export type {
|
||||
MediaItem,
|
||||
MediaItemBase,
|
||||
PhotoMediaItem,
|
||||
PickedDriveItem,
|
||||
PickedItem,
|
||||
PickedItemBase,
|
||||
PickedPhotosItem,
|
||||
PickingSession,
|
||||
UnspecifiedMediaItem,
|
||||
VideoMediaItem,
|
||||
} from './GooglePicker/googlePicker.js'
|
||||
export {
|
||||
authorize,
|
||||
ensureScriptsInjected,
|
||||
logout,
|
||||
pollPickingSession,
|
||||
showDrivePicker,
|
||||
showPhotosPicker,
|
||||
} from './GooglePicker/googlePicker.js'
|
||||
export { GoogleDriveIcon, GooglePhotosIcon } from './GooglePicker/icons.js'
|
||||
export {
|
||||
default as ProviderViews,
|
||||
defaultPickerIcon,
|
||||
} from './ProviderView/index.js'
|
||||
|
||||
export { default as SearchInput } from './SearchInput.js'
|
||||
export { default as SearchProviderViews } from './SearchProviderView/index.js'
|
||||
|
|
|
|||
|
|
@ -11,6 +11,14 @@ import selectDocument from './selectDocument.js'
|
|||
import selectImage from './selectImage.js'
|
||||
import takePicture from './takePicture.js'
|
||||
|
||||
export { default as Instagram } from './instagram.js'
|
||||
export { default as Provider } from './provider.js'
|
||||
export { default as ProviderGrid } from './provider-grid.js'
|
||||
export { default as selectDocument } from './selectDocument.js'
|
||||
export { default as selectImage } from './selectImage.js'
|
||||
export { default as takePicture } from './takePicture.js'
|
||||
export { default as Url } from './url.js'
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
providerList: {
|
||||
flex: 1,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
"version": "0.6.1",
|
||||
"main": "file-picker/index.js",
|
||||
"license": "MIT",
|
||||
"sideEffects": false,
|
||||
"keywords": [
|
||||
"file uploader",
|
||||
"uppy",
|
||||
|
|
@ -20,6 +21,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./file-picker/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/core": "workspace:*",
|
||||
"@uppy/instagram": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "mkdir -p dist && cp ../components/dist/styles.css dist/styles.css",
|
||||
|
|
@ -44,11 +47,18 @@
|
|||
"typescript": "^5.8.3",
|
||||
"vitest": "^3.2.4"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/styles.css",
|
||||
"./dashboard": "./lib/Dashboard.js",
|
||||
"./dashboard-modal": "./lib/DashboardModal.js",
|
||||
"./status-bar": "./lib/StatusBar.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@uppy/core": "workspace:^",
|
||||
"@uppy/dashboard": "workspace:^",
|
||||
"@uppy/screen-capture": "workspace:^",
|
||||
"@uppy/status-bar": "workspace:^",
|
||||
"@uppy/webcam": "workspace:^",
|
||||
"react": "^18.0.0 || ^19.0.0",
|
||||
"react-dom": "^18.0.0 || ^19.0.0"
|
||||
|
|
@ -60,9 +70,6 @@
|
|||
"@uppy/screen-capture": {
|
||||
"optional": true
|
||||
},
|
||||
"@uppy/status-bar": {
|
||||
"optional": true
|
||||
},
|
||||
"@uppy/webcam": {
|
||||
"optional": true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -30,6 +31,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/box": "workspace:^",
|
||||
"@uppy/dashboard": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
@ -28,6 +31,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"preact": "^10.5.13"
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { UIPluginOptions } from '@uppy/core/lib/UIPlugin.js'
|
||||
import type { UIPluginOptions } from '@uppy/core'
|
||||
import type StatusBarLocale from './locale.js'
|
||||
|
||||
export interface StatusBarOptions extends UIPluginOptions {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -27,5 +28,9 @@
|
|||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,9 +3,34 @@
|
|||
"version": "4.5.0",
|
||||
"description": "Uppy plugin that helps integrate Uppy into your Svelte project.",
|
||||
"type": "module",
|
||||
"svelte": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"main": "./dist/index.js",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"CHANGELOG.md"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"svelte": "./dist/index.js"
|
||||
},
|
||||
"./css/style.css": "./dist/styles.css",
|
||||
"./dashboard": {
|
||||
"types": "./dist/components/Dashboard.svelte.d.ts",
|
||||
"svelte": "./dist/components/Dashboard.svelte"
|
||||
},
|
||||
"./dashboard-modal": {
|
||||
"types": "./dist/components/DashboardModal.svelte.d.ts",
|
||||
"svelte": "./dist/components/DashboardModal.svelte"
|
||||
},
|
||||
"./status-bar": {
|
||||
"types": "./dist/components/StatusBar.svelte.d.ts",
|
||||
"svelte": "./dist/components/StatusBar.svelte"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"homepage": "https://uppy.io",
|
||||
"bugs": {
|
||||
"url": "https://github.com/transloadit/uppy/issues"
|
||||
|
|
@ -20,17 +45,6 @@
|
|||
"uppy-plugin",
|
||||
"svelte"
|
||||
],
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"exports": {
|
||||
"./dist/styles.css": "./dist/styles.css",
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"svelte": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "svelte-kit sync && svelte-package",
|
||||
"build:css": "cp ../components/dist/styles.css dist/styles.css",
|
||||
|
|
@ -56,19 +70,12 @@
|
|||
"peerDependencies": {
|
||||
"@uppy/core": "workspace:^",
|
||||
"@uppy/dashboard": "workspace:^",
|
||||
"@uppy/status-bar": "workspace:^",
|
||||
"svelte": "^4.0.0 || ^5.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@uppy/dashboard": {
|
||||
"optional": true
|
||||
},
|
||||
"@uppy/drag-drop": {
|
||||
"optional": true
|
||||
},
|
||||
"@uppy/progress-bar": {
|
||||
"optional": true
|
||||
},
|
||||
"@uppy/status-bar": {
|
||||
"optional": true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
export { default as Dashboard } from "./components/Dashboard.svelte";
|
||||
export { default as DashboardModal } from "./components/DashboardModal.svelte";
|
||||
export * from "./components/headless/generated/index.js";
|
||||
// Headless components
|
||||
export { default as UppyContextProvider } from "./components/headless/UppyContextProvider.svelte";
|
||||
export { default as StatusBar } from "./components/StatusBar.svelte";
|
||||
|
||||
|
||||
// Hooks
|
||||
export * from "./useDropzone.js";
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -26,6 +27,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"exifr": "^7.0.0"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -31,6 +32,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -26,6 +27,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/utils": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ import type {
|
|||
Uppy,
|
||||
UppyFile,
|
||||
} from '@uppy/core'
|
||||
import { BasePlugin } from '@uppy/core'
|
||||
import EventManager from '@uppy/core/lib/EventManager.js'
|
||||
import { BasePlugin, EventManager } from '@uppy/core'
|
||||
import {
|
||||
filterFilesToEmitUploadStarted,
|
||||
filterNonFailedFiles,
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
@ -28,6 +31,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/utils": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
"version": "6.1.5",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -71,7 +72,6 @@
|
|||
"./lib/CompanionFile": "./lib/CompanionFile.js",
|
||||
"./lib/CompanionClientProvider": "./lib/CompanionClientProvider.js",
|
||||
"./lib/FileProgress": "./lib/FileProgress.js",
|
||||
"./src/microtip.scss": "./src/microtip.scss",
|
||||
"./lib/UserFacingApiError": "./lib/UserFacingApiError.js",
|
||||
"./lib/getAllowedMetaFields": "./lib/getAllowedMetaFields.js",
|
||||
"./lib/fetcher": "./lib/fetcher.js"
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
"version": "2.3.0",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
|
|
@ -19,10 +22,17 @@
|
|||
"typescript": "^5.8.3",
|
||||
"vue": "^3.5.14"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/styles.css",
|
||||
"./dashboard": "./lib/dashboard.js",
|
||||
"./dashboard-modal": "./lib/dashboard-modal.js",
|
||||
"./status-bar": "./lib/status-bar.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@uppy/core": "workspace:^",
|
||||
"@uppy/dashboard": "workspace:^",
|
||||
"@uppy/status-bar": "workspace:^",
|
||||
"vue": ">=3.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export default defineComponent({
|
|||
name: 'DashboardModal',
|
||||
props: {
|
||||
uppy: {
|
||||
type: Uppy<any, any>,
|
||||
type: Object as PropType<Uppy<any, any>>,
|
||||
required: true,
|
||||
},
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
export { default as Dashboard } from './dashboard.js'
|
||||
export { default as DashboardModal } from './dashboard-modal.js'
|
||||
export { UppyContextProvider } from './headless/context-provider.js'
|
||||
export * from './headless/generated/index.js'
|
||||
export { default as StatusBar } from './status-bar.js'
|
||||
|
||||
export * from './useDropzone.js'
|
||||
export * from './useFileInput.js'
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ export default defineComponent({
|
|||
name: 'StatusBar',
|
||||
props: {
|
||||
uppy: {
|
||||
type: Uppy<any, any>,
|
||||
type: Object as PropType<Uppy<any, any>>,
|
||||
required: true,
|
||||
},
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
"main": "lib/index.js",
|
||||
"style": "dist/style.min.css",
|
||||
"type": "module",
|
||||
"sideEffects": [
|
||||
"*.css"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
||||
|
|
@ -31,6 +34,12 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./css/style.css": "./dist/style.css",
|
||||
"./css/style.min.css": "./dist/style.min.css",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"is-mobile": "^4.0.0",
|
||||
|
|
|
|||
|
|
@ -3,12 +3,11 @@ import type {
|
|||
DefinePluginOpts,
|
||||
Meta,
|
||||
MinimalRequiredUppyFile,
|
||||
PluginTarget,
|
||||
UIPluginOptions,
|
||||
Uppy,
|
||||
} from '@uppy/core'
|
||||
|
||||
import { UIPlugin } from '@uppy/core'
|
||||
import type { PluginTarget } from '@uppy/core/lib/UIPlugin.js'
|
||||
import canvasToBlob from '@uppy/utils/lib/canvasToBlob'
|
||||
import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
|
||||
import mimeTypes from '@uppy/utils/lib/mimeTypes'
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
"main": "lib/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -27,6 +28,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build",
|
||||
|
|
@ -28,6 +29,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/utils": "workspace:^"
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@ import type {
|
|||
Uppy,
|
||||
UppyFile,
|
||||
} from '@uppy/core'
|
||||
import { BasePlugin } from '@uppy/core'
|
||||
import EventManager from '@uppy/core/lib/EventManager.js'
|
||||
import { BasePlugin, EventManager } from '@uppy/core'
|
||||
import { type FetcherOptions, fetcher } from '@uppy/utils/lib/fetcher'
|
||||
import {
|
||||
filterFilesToEmitUploadStarted,
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"build": "tsc --build tsconfig.build.json",
|
||||
"typecheck": "tsc --build"
|
||||
|
|
@ -23,6 +24,10 @@
|
|||
"type": "git",
|
||||
"url": "git+https://github.com/transloadit/uppy.git"
|
||||
},
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/provider-views": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -11952,7 +11952,6 @@ __metadata:
|
|||
"@uppy/core": "workspace:^"
|
||||
"@uppy/dashboard": "workspace:^"
|
||||
"@uppy/screen-capture": "workspace:^"
|
||||
"@uppy/status-bar": "workspace:^"
|
||||
"@uppy/webcam": "workspace:^"
|
||||
react: ^18.0.0 || ^19.0.0
|
||||
react-dom: ^18.0.0 || ^19.0.0
|
||||
|
|
@ -11961,8 +11960,6 @@ __metadata:
|
|||
optional: true
|
||||
"@uppy/screen-capture":
|
||||
optional: true
|
||||
"@uppy/status-bar":
|
||||
optional: true
|
||||
"@uppy/webcam":
|
||||
optional: true
|
||||
languageName: unknown
|
||||
|
|
@ -12055,15 +12052,10 @@ __metadata:
|
|||
peerDependencies:
|
||||
"@uppy/core": "workspace:^"
|
||||
"@uppy/dashboard": "workspace:^"
|
||||
"@uppy/status-bar": "workspace:^"
|
||||
svelte: ^4.0.0 || ^5.0.0
|
||||
peerDependenciesMeta:
|
||||
"@uppy/dashboard":
|
||||
optional: true
|
||||
"@uppy/drag-drop":
|
||||
optional: true
|
||||
"@uppy/progress-bar":
|
||||
optional: true
|
||||
"@uppy/status-bar":
|
||||
optional: true
|
||||
languageName: unknown
|
||||
|
|
@ -12182,7 +12174,6 @@ __metadata:
|
|||
peerDependencies:
|
||||
"@uppy/core": "workspace:^"
|
||||
"@uppy/dashboard": "workspace:^"
|
||||
"@uppy/status-bar": "workspace:^"
|
||||
vue: ">=3.0.0"
|
||||
peerDependenciesMeta:
|
||||
"@uppy/dashboard":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue