mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +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 the framework-specific hooks (`@uppy/react`, `@uppy/vue`, `@uppy/svelte`) for maximum flexibility
|
||||||
- Use `@uppy/dashboard` for a complete, ready-to-use UI solution
|
- Use `@uppy/dashboard` for a complete, ready-to-use UI solution
|
||||||
3. Replace your existing components with custom implementations using the hooks or Dashboard
|
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 Webcam from './Webcam'
|
||||||
|
|
||||||
import './app.css'
|
import './app.css'
|
||||||
import '@uppy/react/dist/styles.css'
|
import '@uppy/react/css/style.css'
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [uppy] = useState(() =>
|
const [uppy] = useState(() =>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
} from '@uppy/svelte'
|
} from '@uppy/svelte'
|
||||||
import Tus from '@uppy/tus'
|
import Tus from '@uppy/tus'
|
||||||
import UppyWebcam from '@uppy/webcam'
|
import UppyWebcam from '@uppy/webcam'
|
||||||
import '@uppy/svelte/dist/styles.css'
|
import '@uppy/svelte/css/style.css'
|
||||||
|
|
||||||
import CustomDropzone from '../components/CustomDropzone.svelte'
|
import CustomDropzone from '../components/CustomDropzone.svelte'
|
||||||
import RemoteSource from '../components/RemoteSource.svelte'
|
import RemoteSource from '../components/RemoteSource.svelte'
|
||||||
|
|
|
||||||
|
|
@ -84,4 +84,4 @@ const uppy = computed(() =>
|
||||||
)
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style src="@uppy/vue/dist/styles.css"></style>
|
<style src="@uppy/vue/css/style.css"></style>
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@
|
||||||
"mediarecorder"
|
"mediarecorder"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"homepage": "https://uppy.io",
|
"homepage": "https://uppy.io",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/transloadit/uppy/issues"
|
"url": "https://github.com/transloadit/uppy/issues"
|
||||||
|
|
@ -24,6 +27,12 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"preact": "^10.5.13"
|
"preact": "^10.5.13"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -27,6 +28,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/utils": "workspace:^"
|
"@uppy/utils": "workspace:^"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@ import { RequestClient } from '@uppy/companion-client'
|
||||||
import {
|
import {
|
||||||
BasePlugin,
|
BasePlugin,
|
||||||
type DefinePluginOpts,
|
type DefinePluginOpts,
|
||||||
|
EventManager,
|
||||||
type PluginOpts,
|
type PluginOpts,
|
||||||
type Uppy,
|
type Uppy,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import EventManager from '@uppy/core/lib/EventManager.js'
|
|
||||||
import { createAbortError } from '@uppy/utils/lib/AbortController'
|
import { createAbortError } from '@uppy/utils/lib/AbortController'
|
||||||
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider'
|
import type { RequestOptions } from '@uppy/utils/lib/CompanionClientProvider'
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -23,6 +24,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -25,6 +26,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"namespace-emitter": "^2.0.1",
|
"namespace-emitter": "^2.0.1",
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,18 @@
|
||||||
"types": "lib/companion.d.ts",
|
"types": "lib/companion.d.ts",
|
||||||
"author": "Transloadit.com",
|
"author": "Transloadit.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"sideEffects": false,
|
||||||
"homepage": "https://github.com/transloadit/uppy#readme",
|
"homepage": "https://github.com/transloadit/uppy#readme",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/companion.js",
|
||||||
|
"./standalone": "./lib/standalone/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"file uploader",
|
"file uploader",
|
||||||
"progress",
|
"progress",
|
||||||
|
|
@ -96,7 +102,9 @@
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"bin/",
|
"bin/",
|
||||||
"lib/"
|
"lib/",
|
||||||
|
"src/",
|
||||||
|
"CHANGELOG.md"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"uppy",
|
"uppy",
|
||||||
"uppy-plugin",
|
"uppy-plugin",
|
||||||
|
|
@ -26,6 +29,11 @@
|
||||||
"migrate": "node migrate.mjs",
|
"migrate": "node migrate.mjs",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./css/style.css": "./dist/styles.css",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/audio": "workspace:^",
|
"@uppy/audio": "workspace:^",
|
||||||
"@uppy/core": "workspace:^",
|
"@uppy/core": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
"version": "2.2.1",
|
"version": "2.2.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"file uploader",
|
"file uploader",
|
||||||
"uppy",
|
"uppy",
|
||||||
|
|
@ -14,6 +13,7 @@
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"homepage": "https://uppy.io",
|
"homepage": "https://uppy.io",
|
||||||
|
"sideEffects": false,
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/transloadit/uppy/issues"
|
"url": "https://github.com/transloadit/uppy/issues"
|
||||||
},
|
},
|
||||||
|
|
@ -21,6 +21,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@transloadit/prettier-bytes": "^0.3.4",
|
"@transloadit/prettier-bytes": "^0.3.4",
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,12 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@transloadit/prettier-bytes": "^0.3.4",
|
"@transloadit/prettier-bytes": "^0.3.4",
|
||||||
"@uppy/store-default": "workspace:^",
|
"@uppy/store-default": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,10 @@ export type {
|
||||||
} from '@uppy/utils/lib/UppyFile'
|
} from '@uppy/utils/lib/UppyFile'
|
||||||
export type { DefinePluginOpts, PluginOpts } from './BasePlugin.js'
|
export type { DefinePluginOpts, PluginOpts } from './BasePlugin.js'
|
||||||
export { default as BasePlugin } from './BasePlugin.js'
|
export { default as BasePlugin } from './BasePlugin.js'
|
||||||
|
export { default as EventManager } from './EventManager.js'
|
||||||
export { debugLogger } from './loggers.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 { default as UIPlugin } from './UIPlugin.js'
|
||||||
export type {
|
export type {
|
||||||
AsyncStore,
|
AsyncStore,
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
"style": "dist/style.min.css",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@transloadit/prettier-bytes": "^0.3.4",
|
"@transloadit/prettier-bytes": "^0.3.4",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^"
|
"@uppy/utils": "workspace:^"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -23,6 +24,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -23,6 +24,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -23,6 +24,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"get-form-data": "^3.0.0"
|
"get-form-data": "^3.0.0"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -26,6 +27,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"lodash": "^4.17.21"
|
"lodash": "^4.17.21"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -25,6 +26,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,11 @@ import {
|
||||||
} from '@uppy/companion-client'
|
} from '@uppy/companion-client'
|
||||||
import type { AsyncStore, BaseProviderPlugin, Body, Meta } from '@uppy/core'
|
import type { AsyncStore, BaseProviderPlugin, Body, Meta } from '@uppy/core'
|
||||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||||
import { GooglePickerView } from '@uppy/provider-views'
|
import {
|
||||||
import type { PickedItem } from '@uppy/provider-views/lib/GooglePicker/googlePicker.js'
|
GoogleDriveIcon,
|
||||||
import { GoogleDriveIcon } from '@uppy/provider-views/lib/GooglePicker/icons.js'
|
GooglePickerView,
|
||||||
|
type PickedItem,
|
||||||
|
} from '@uppy/provider-views'
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -24,6 +25,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -25,6 +26,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,11 @@ import {
|
||||||
} from '@uppy/companion-client'
|
} from '@uppy/companion-client'
|
||||||
import type { AsyncStore, BaseProviderPlugin, Body, Meta } from '@uppy/core'
|
import type { AsyncStore, BaseProviderPlugin, Body, Meta } from '@uppy/core'
|
||||||
import { UIPlugin, type Uppy } from '@uppy/core'
|
import { UIPlugin, type Uppy } from '@uppy/core'
|
||||||
import { GooglePickerView } from '@uppy/provider-views'
|
import {
|
||||||
import type { PickedItem } from '@uppy/provider-views/lib/GooglePicker/googlePicker.js'
|
GooglePhotosIcon,
|
||||||
import { GooglePhotosIcon } from '@uppy/provider-views/lib/GooglePicker/icons.js'
|
GooglePickerView,
|
||||||
|
type PickedItem,
|
||||||
|
} from '@uppy/provider-views'
|
||||||
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
import type { LocaleStrings } from '@uppy/utils/lib/Translator'
|
||||||
import { h } from 'preact'
|
import { h } from 'preact'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
"style": "dist/style.min.css",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"cropperjs": "^1.6.2",
|
"cropperjs": "^1.6.2",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -26,6 +27,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
"version": "4.6.0",
|
"version": "4.6.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"main": "locale-pack/index.mjs",
|
"main": "locale-pack/index.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn node script/build-en_US.mjs && tsc --build tsconfig.build.json && yarn format",
|
"build": "yarn node script/build-en_US.mjs && tsc --build tsconfig.build.json && yarn format",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -23,6 +24,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
"style": "dist/style.min.css",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ import type {
|
||||||
PartialTreeId,
|
PartialTreeId,
|
||||||
UnknownProviderPlugin,
|
UnknownProviderPlugin,
|
||||||
UnknownProviderPluginState,
|
UnknownProviderPluginState,
|
||||||
|
ValidateableFile,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
|
|
||||||
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
|
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
|
||||||
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
|
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
|
||||||
import type { I18n } from '@uppy/utils/lib/Translator'
|
import type { I18n } from '@uppy/utils/lib/Translator'
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ import type {
|
||||||
PartialTreeFolderRoot,
|
PartialTreeFolderRoot,
|
||||||
UnknownSearchProviderPlugin,
|
UnknownSearchProviderPlugin,
|
||||||
UnknownSearchProviderPluginState,
|
UnknownSearchProviderPluginState,
|
||||||
|
ValidateableFile,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import type { ValidateableFile } from '@uppy/core/lib/Restricter.js'
|
|
||||||
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
|
import type { CompanionFile } from '@uppy/utils/lib/CompanionFile'
|
||||||
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
|
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
|
||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,28 @@
|
||||||
export { default as GooglePickerView } from './GooglePicker/GooglePickerView.js'
|
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 {
|
export {
|
||||||
default as ProviderViews,
|
default as ProviderViews,
|
||||||
defaultPickerIcon,
|
defaultPickerIcon,
|
||||||
} from './ProviderView/index.js'
|
} from './ProviderView/index.js'
|
||||||
|
|
||||||
export { default as SearchInput } from './SearchInput.js'
|
export { default as SearchInput } from './SearchInput.js'
|
||||||
export { default as SearchProviderViews } from './SearchProviderView/index.js'
|
export { default as SearchProviderViews } from './SearchProviderView/index.js'
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,14 @@ import selectDocument from './selectDocument.js'
|
||||||
import selectImage from './selectImage.js'
|
import selectImage from './selectImage.js'
|
||||||
import takePicture from './takePicture.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({
|
const styles = StyleSheet.create({
|
||||||
providerList: {
|
providerList: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
"version": "0.6.1",
|
"version": "0.6.1",
|
||||||
"main": "file-picker/index.js",
|
"main": "file-picker/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"sideEffects": false,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"file uploader",
|
"file uploader",
|
||||||
"uppy",
|
"uppy",
|
||||||
|
|
@ -20,6 +21,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./file-picker/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/core": "workspace:*",
|
"@uppy/core": "workspace:*",
|
||||||
"@uppy/instagram": "workspace:^",
|
"@uppy/instagram": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"build:css": "mkdir -p dist && cp ../components/dist/styles.css dist/styles.css",
|
"build:css": "mkdir -p dist && cp ../components/dist/styles.css dist/styles.css",
|
||||||
|
|
@ -44,11 +47,18 @@
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vitest": "^3.2.4"
|
"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": {
|
"peerDependencies": {
|
||||||
"@uppy/core": "workspace:^",
|
"@uppy/core": "workspace:^",
|
||||||
"@uppy/dashboard": "workspace:^",
|
"@uppy/dashboard": "workspace:^",
|
||||||
"@uppy/screen-capture": "workspace:^",
|
"@uppy/screen-capture": "workspace:^",
|
||||||
"@uppy/status-bar": "workspace:^",
|
|
||||||
"@uppy/webcam": "workspace:^",
|
"@uppy/webcam": "workspace:^",
|
||||||
"react": "^18.0.0 || ^19.0.0",
|
"react": "^18.0.0 || ^19.0.0",
|
||||||
"react-dom": "^18.0.0 || ^19.0.0"
|
"react-dom": "^18.0.0 || ^19.0.0"
|
||||||
|
|
@ -60,9 +70,6 @@
|
||||||
"@uppy/screen-capture": {
|
"@uppy/screen-capture": {
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@uppy/status-bar": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@uppy/webcam": {
|
"@uppy/webcam": {
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -30,6 +31,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/box": "workspace:^",
|
"@uppy/box": "workspace:^",
|
||||||
"@uppy/dashboard": "workspace:^",
|
"@uppy/dashboard": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
"style": "dist/style.min.css",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"preact": "^10.5.13"
|
"preact": "^10.5.13"
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
"style": "dist/style.min.css",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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'
|
import type StatusBarLocale from './locale.js'
|
||||||
|
|
||||||
export interface StatusBarOptions extends UIPluginOptions {
|
export interface StatusBarOptions extends UIPluginOptions {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -27,5 +28,9 @@
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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",
|
"version": "4.5.0",
|
||||||
"description": "Uppy plugin that helps integrate Uppy into your Svelte project.",
|
"description": "Uppy plugin that helps integrate Uppy into your Svelte project.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"svelte": "./dist/index.js",
|
"sideEffects": [
|
||||||
"types": "./dist/index.d.ts",
|
"*.css"
|
||||||
"main": "./dist/index.js",
|
],
|
||||||
|
"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",
|
"homepage": "https://uppy.io",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/transloadit/uppy/issues"
|
"url": "https://github.com/transloadit/uppy/issues"
|
||||||
|
|
@ -20,17 +45,6 @@
|
||||||
"uppy-plugin",
|
"uppy-plugin",
|
||||||
"svelte"
|
"svelte"
|
||||||
],
|
],
|
||||||
"files": [
|
|
||||||
"src",
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"exports": {
|
|
||||||
"./dist/styles.css": "./dist/styles.css",
|
|
||||||
".": {
|
|
||||||
"types": "./dist/index.d.ts",
|
|
||||||
"svelte": "./dist/index.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "svelte-kit sync && svelte-package",
|
"build": "svelte-kit sync && svelte-package",
|
||||||
"build:css": "cp ../components/dist/styles.css dist/styles.css",
|
"build:css": "cp ../components/dist/styles.css dist/styles.css",
|
||||||
|
|
@ -56,19 +70,12 @@
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@uppy/core": "workspace:^",
|
"@uppy/core": "workspace:^",
|
||||||
"@uppy/dashboard": "workspace:^",
|
"@uppy/dashboard": "workspace:^",
|
||||||
"@uppy/status-bar": "workspace:^",
|
|
||||||
"svelte": "^4.0.0 || ^5.0.0"
|
"svelte": "^4.0.0 || ^5.0.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@uppy/dashboard": {
|
"@uppy/dashboard": {
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@uppy/drag-drop": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@uppy/progress-bar": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@uppy/status-bar": {
|
"@uppy/status-bar": {
|
||||||
"optional": true
|
"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";
|
export * from "./components/headless/generated/index.js";
|
||||||
// Headless components
|
// Headless components
|
||||||
export { default as UppyContextProvider } from "./components/headless/UppyContextProvider.svelte";
|
export { default as UppyContextProvider } from "./components/headless/UppyContextProvider.svelte";
|
||||||
export { default as StatusBar } from "./components/StatusBar.svelte";
|
|
||||||
|
|
||||||
// Hooks
|
// Hooks
|
||||||
export * from "./useDropzone.js";
|
export * from "./useDropzone.js";
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -26,6 +27,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"exifr": "^7.0.0"
|
"exifr": "^7.0.0"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -31,6 +32,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -26,6 +27,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@ import type {
|
||||||
Uppy,
|
Uppy,
|
||||||
UppyFile,
|
UppyFile,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import { BasePlugin } from '@uppy/core'
|
import { BasePlugin, EventManager } from '@uppy/core'
|
||||||
import EventManager from '@uppy/core/lib/EventManager.js'
|
|
||||||
import {
|
import {
|
||||||
filterFilesToEmitUploadStarted,
|
filterFilesToEmitUploadStarted,
|
||||||
filterNonFailedFiles,
|
filterNonFailedFiles,
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -23,6 +24,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
"style": "dist/style.min.css",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
"version": "6.1.5",
|
"version": "6.1.5",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -71,7 +72,6 @@
|
||||||
"./lib/CompanionFile": "./lib/CompanionFile.js",
|
"./lib/CompanionFile": "./lib/CompanionFile.js",
|
||||||
"./lib/CompanionClientProvider": "./lib/CompanionClientProvider.js",
|
"./lib/CompanionClientProvider": "./lib/CompanionClientProvider.js",
|
||||||
"./lib/FileProgress": "./lib/FileProgress.js",
|
"./lib/FileProgress": "./lib/FileProgress.js",
|
||||||
"./src/microtip.scss": "./src/microtip.scss",
|
|
||||||
"./lib/UserFacingApiError": "./lib/UserFacingApiError.js",
|
"./lib/UserFacingApiError": "./lib/UserFacingApiError.js",
|
||||||
"./lib/getAllowedMetaFields": "./lib/getAllowedMetaFields.js",
|
"./lib/getAllowedMetaFields": "./lib/getAllowedMetaFields.js",
|
||||||
"./lib/fetcher": "./lib/fetcher.js"
|
"./lib/fetcher": "./lib/fetcher.js"
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@
|
||||||
"version": "2.3.0",
|
"version": "2.3.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
|
|
@ -19,10 +22,17 @@
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vue": "^3.5.14"
|
"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": {
|
"peerDependencies": {
|
||||||
"@uppy/core": "workspace:^",
|
"@uppy/core": "workspace:^",
|
||||||
"@uppy/dashboard": "workspace:^",
|
"@uppy/dashboard": "workspace:^",
|
||||||
"@uppy/status-bar": "workspace:^",
|
|
||||||
"vue": ">=3.0.0"
|
"vue": ">=3.0.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export default defineComponent({
|
||||||
name: 'DashboardModal',
|
name: 'DashboardModal',
|
||||||
props: {
|
props: {
|
||||||
uppy: {
|
uppy: {
|
||||||
type: Uppy<any, any>,
|
type: Object as PropType<Uppy<any, any>>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
props: {
|
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 { UppyContextProvider } from './headless/context-provider.js'
|
||||||
export * from './headless/generated/index.js'
|
export * from './headless/generated/index.js'
|
||||||
export { default as StatusBar } from './status-bar.js'
|
|
||||||
|
|
||||||
export * from './useDropzone.js'
|
export * from './useDropzone.js'
|
||||||
export * from './useFileInput.js'
|
export * from './useFileInput.js'
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ export default defineComponent({
|
||||||
name: 'StatusBar',
|
name: 'StatusBar',
|
||||||
props: {
|
props: {
|
||||||
uppy: {
|
uppy: {
|
||||||
type: Uppy<any, any>,
|
type: Object as PropType<Uppy<any, any>>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"style": "dist/style.min.css",
|
"style": "dist/style.min.css",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": [
|
||||||
|
"*.css"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"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",
|
"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",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.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": {
|
"dependencies": {
|
||||||
"@uppy/utils": "workspace:^",
|
"@uppy/utils": "workspace:^",
|
||||||
"is-mobile": "^4.0.0",
|
"is-mobile": "^4.0.0",
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,11 @@ import type {
|
||||||
DefinePluginOpts,
|
DefinePluginOpts,
|
||||||
Meta,
|
Meta,
|
||||||
MinimalRequiredUppyFile,
|
MinimalRequiredUppyFile,
|
||||||
|
PluginTarget,
|
||||||
UIPluginOptions,
|
UIPluginOptions,
|
||||||
Uppy,
|
Uppy,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
|
|
||||||
import { UIPlugin } 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 canvasToBlob from '@uppy/utils/lib/canvasToBlob'
|
||||||
import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
|
import getFileTypeExtension from '@uppy/utils/lib/getFileTypeExtension'
|
||||||
import mimeTypes from '@uppy/utils/lib/mimeTypes'
|
import mimeTypes from '@uppy/utils/lib/mimeTypes'
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "types/index.d.ts",
|
"types": "types/index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -27,6 +28,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build",
|
"typecheck": "tsc --build",
|
||||||
|
|
@ -28,6 +29,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/utils": "workspace:^"
|
"@uppy/utils": "workspace:^"
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,7 @@ import type {
|
||||||
Uppy,
|
Uppy,
|
||||||
UppyFile,
|
UppyFile,
|
||||||
} from '@uppy/core'
|
} from '@uppy/core'
|
||||||
import { BasePlugin } from '@uppy/core'
|
import { BasePlugin, EventManager } from '@uppy/core'
|
||||||
import EventManager from '@uppy/core/lib/EventManager.js'
|
|
||||||
import { type FetcherOptions, fetcher } from '@uppy/utils/lib/fetcher'
|
import { type FetcherOptions, fetcher } from '@uppy/utils/lib/fetcher'
|
||||||
import {
|
import {
|
||||||
filterFilesToEmitUploadStarted,
|
filterFilesToEmitUploadStarted,
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build tsconfig.build.json",
|
"build": "tsc --build tsconfig.build.json",
|
||||||
"typecheck": "tsc --build"
|
"typecheck": "tsc --build"
|
||||||
|
|
@ -23,6 +24,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/transloadit/uppy.git"
|
"url": "git+https://github.com/transloadit/uppy.git"
|
||||||
},
|
},
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uppy/companion-client": "workspace:^",
|
"@uppy/companion-client": "workspace:^",
|
||||||
"@uppy/provider-views": "workspace:^",
|
"@uppy/provider-views": "workspace:^",
|
||||||
|
|
|
||||||
|
|
@ -11952,7 +11952,6 @@ __metadata:
|
||||||
"@uppy/core": "workspace:^"
|
"@uppy/core": "workspace:^"
|
||||||
"@uppy/dashboard": "workspace:^"
|
"@uppy/dashboard": "workspace:^"
|
||||||
"@uppy/screen-capture": "workspace:^"
|
"@uppy/screen-capture": "workspace:^"
|
||||||
"@uppy/status-bar": "workspace:^"
|
|
||||||
"@uppy/webcam": "workspace:^"
|
"@uppy/webcam": "workspace:^"
|
||||||
react: ^18.0.0 || ^19.0.0
|
react: ^18.0.0 || ^19.0.0
|
||||||
react-dom: ^18.0.0 || ^19.0.0
|
react-dom: ^18.0.0 || ^19.0.0
|
||||||
|
|
@ -11961,8 +11960,6 @@ __metadata:
|
||||||
optional: true
|
optional: true
|
||||||
"@uppy/screen-capture":
|
"@uppy/screen-capture":
|
||||||
optional: true
|
optional: true
|
||||||
"@uppy/status-bar":
|
|
||||||
optional: true
|
|
||||||
"@uppy/webcam":
|
"@uppy/webcam":
|
||||||
optional: true
|
optional: true
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
|
@ -12055,15 +12052,10 @@ __metadata:
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@uppy/core": "workspace:^"
|
"@uppy/core": "workspace:^"
|
||||||
"@uppy/dashboard": "workspace:^"
|
"@uppy/dashboard": "workspace:^"
|
||||||
"@uppy/status-bar": "workspace:^"
|
|
||||||
svelte: ^4.0.0 || ^5.0.0
|
svelte: ^4.0.0 || ^5.0.0
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
"@uppy/dashboard":
|
"@uppy/dashboard":
|
||||||
optional: true
|
optional: true
|
||||||
"@uppy/drag-drop":
|
|
||||||
optional: true
|
|
||||||
"@uppy/progress-bar":
|
|
||||||
optional: true
|
|
||||||
"@uppy/status-bar":
|
"@uppy/status-bar":
|
||||||
optional: true
|
optional: true
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
|
|
@ -12182,7 +12174,6 @@ __metadata:
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
"@uppy/core": "workspace:^"
|
"@uppy/core": "workspace:^"
|
||||||
"@uppy/dashboard": "workspace:^"
|
"@uppy/dashboard": "workspace:^"
|
||||||
"@uppy/status-bar": "workspace:^"
|
|
||||||
vue: ">=3.0.0"
|
vue: ">=3.0.0"
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
"@uppy/dashboard":
|
"@uppy/dashboard":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue