mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 10:25:33 +00:00
**Fixes**
- `@uppy/components` incorrectly had a lot of packages in `dependencies`
while they should be `peerDependencies`. Also removed `remote-sources`
completely as this drags in a lot of plugins and we don't even need it
there.
- `@uppy/{react,vue,svelte}` now has to have the same `peerDependencies`
as `components` as the requirement has been moved up. We also mark them
as optional, they are only needed if you use a hook such as `useWebcam`
needing `@uppy/webcam`.
- Remove `companion-client` and `provider-views` from `transloadit`.
Those are never used by the package.
- Remove `@uppy/utils` from `@uppy/angular` and `@uppy/react`, we can
just use imports from `core`
- Place `@uppy/status-bar` back in peer deps. This is critical but
forgotten when status bar was put back inside frameworks.
**Implications**
- Moving peer deps to deps in `@uppy/components` now requires people to
install these dependencies. However, they kind of had to anyway before
as we require people to install the plugin on uppy (`.use(Webcam')`) if
you want to use `useWebcam` and if you try to import a dep you did not
install they would have gotten an error already.
- Note: this is not the same situation as with importing dashboard
component from @uppy/react which causes a runtime crash because
@uppy/dashboard is missing. In this case we only depend on _types_, so
we don't have this problem.
86 lines
2.1 KiB
JSON
86 lines
2.1 KiB
JSON
{
|
|
"name": "@uppy/react",
|
|
"description": "React component wrappers around Uppy's official UI plugins.",
|
|
"version": "5.0.3",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc --build tsconfig.build.json",
|
|
"build:css": "mkdir -p dist && cp ../components/dist/styles.css dist/styles.css",
|
|
"typecheck": "tsc --build",
|
|
"test": "vitest run --environment=jsdom --silent='passed-only'"
|
|
},
|
|
"keywords": [
|
|
"file uploader",
|
|
"uppy",
|
|
"uppy-plugin",
|
|
"react",
|
|
"react-components"
|
|
],
|
|
"homepage": "https://uppy.io",
|
|
"bugs": {
|
|
"url": "https://github.com/transloadit/uppy/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/transloadit/uppy.git"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"lib",
|
|
"dist",
|
|
"CHANGELOG.md"
|
|
],
|
|
"dependencies": {
|
|
"@uppy/components": "workspace:^",
|
|
"preact": "^10.5.13",
|
|
"use-sync-external-store": "^1.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.4.2",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@types/react": "^18.0.8",
|
|
"@types/use-sync-external-store": "^0.0.6",
|
|
"@uppy/core": "workspace:^",
|
|
"jsdom": "^26.1.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"exports": {
|
|
".": "./lib/index.js",
|
|
"./css/style.css": "./dist/styles.css",
|
|
"./dashboard": "./lib/Dashboard.js",
|
|
"./status-bar": "./lib/StatusBar.js",
|
|
"./dashboard-modal": "./lib/DashboardModal.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"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@uppy/dashboard": {
|
|
"optional": true
|
|
},
|
|
"@uppy/screen-capture": {
|
|
"optional": true
|
|
},
|
|
"@uppy/status-bar": {
|
|
"optional": true
|
|
},
|
|
"@uppy/webcam": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|