@uppy/react
Advanced tools
Comparing version 1.4.6 to 1.5.0
{ | ||
"name": "@uppy/react", | ||
"description": "React component wrappers around Uppy's official UI plugins.", | ||
"version": "1.4.6", | ||
"version": "1.5.0", | ||
"license": "MIT", | ||
@@ -25,7 +25,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"@uppy/dashboard": "^1.6.2", | ||
"@uppy/drag-drop": "^1.4.6", | ||
"@uppy/progress-bar": "^1.3.7", | ||
"@uppy/status-bar": "^1.5.2", | ||
"@uppy/utils": "^2.2.2", | ||
"@uppy/dashboard": "^1.7.0", | ||
"@uppy/drag-drop": "^1.4.7", | ||
"@uppy/progress-bar": "^1.3.8", | ||
"@uppy/status-bar": "^1.6.0", | ||
"@uppy/utils": "^2.3.0", | ||
"prop-types": "^15.6.1" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "b20bc7e1f1a3e4132dde0c311fff1ff18080414c" | ||
"gitHead": "fa32da7cf3b1a518a86304ae169c657f2622e5cd" | ||
} |
@@ -1,13 +0,23 @@ | ||
import { DashboardProps } from './Dashboard' | ||
import { Omit, ToUppyProps } from './CommonTypes' | ||
import Dashboard = require('@uppy/dashboard') | ||
export interface DashboardModalProps extends DashboardProps { | ||
// This type is mapped into `DashboardModalProps` below so IntelliSense doesn't display this big mess of nested types | ||
type DashboardModalPropsInner = { | ||
open?: boolean | ||
onRequestClose?: VoidFunction | ||
} & Omit< | ||
ToUppyProps<Dashboard.DashboardOptions>, | ||
// Remove the inline-only and force-overridden props | ||
'inline' | 'onRequestCloseModal' | ||
> | ||
export type DashboardModalProps = { | ||
[K in keyof DashboardModalPropsInner]: DashboardModalPropsInner[K] | ||
} | ||
/** | ||
* React Component that renders a Dashboard for an Uppy instance in a Modal | ||
* dialog. Visibility of the Modal is toggled using the `open` prop. | ||
* React Component that renders a Dashboard for an Uppy instance. This component | ||
* renders the Dashboard inline so you can put it anywhere you want. | ||
*/ | ||
declare const DashboardModal: React.ComponentType<DashboardModalProps> | ||
export default DashboardModal |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
41330
1167
0
Updated@uppy/dashboard@^1.7.0
Updated@uppy/drag-drop@^1.4.7
Updated@uppy/progress-bar@^1.3.8
Updated@uppy/status-bar@^1.6.0
Updated@uppy/utils@^2.3.0