Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/react

Package Overview
Dependencies
Maintainers
6
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/react - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

lib/DashboardModal.js

@@ -88,3 +88,2 @@ "use strict";

DashboardModal.propTypes = {
// Only check this prop type in the browser.
target: typeof window !== 'undefined' ? PropTypes.instanceOf(window.HTMLElement) : PropTypes.any,

@@ -97,3 +96,2 @@ open: PropTypes.bool,

};
DashboardModal.defaultProps = {};
module.exports = DashboardModal;

6

package.json
{
"name": "@uppy/react",
"description": "React component wrappers around Uppy's official UI plugins.",
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -25,3 +25,3 @@ "main": "index.js",

"dependencies": {
"@uppy/dashboard": "^2.0.1",
"@uppy/dashboard": "^2.0.2",
"@uppy/drag-drop": "^2.0.1",

@@ -45,3 +45,3 @@ "@uppy/file-input": "^2.0.1",

},
"gitHead": "d69043aacc2c9d31813e0fabc4b0ca3f4a760d2a"
"gitHead": "246eafc51a7ed6a1f534629454e1f78cd6f507c1"
}

@@ -9,3 +9,4 @@ import type { Uppy } from '@uppy/core'

type OmitTarget<T> = Pick<T, Exclude<keyof T, 'target'>>
type WithBaseUppyProps<T> = T & { uppy: Uppy }
export type WithBaseUppyProps<T> = T & { uppy: Uppy }
export type ToUppyProps<T> = WithBaseUppyProps<OmitTarget<T>>
import * as React from 'react'
import type { DashboardOptions } from '@uppy/dashboard'
import { Omit, ToUppyProps } from './CommonTypes'
import { Omit, WithBaseUppyProps } from './CommonTypes'
// This type is mapped into `DashboardProps` below so IntelliSense doesn't display this big mess of nested types
type DashboardPropsInner = Omit<
ToUppyProps<DashboardOptions>,
WithBaseUppyProps<DashboardOptions>,
// Remove the modal-only props
'animateOpenClose' | 'browserBackButtonClose' | 'inline' | 'onRequestCloseModal' | 'trigger'
> & React.BaseHTMLAttributes<HTMLDivElement>
| 'animateOpenClose'
| 'browserBackButtonClose'
| 'inline'
| 'onRequestCloseModal'
| 'trigger'
> &
React.BaseHTMLAttributes<HTMLDivElement>
export type DashboardProps = {
[K in keyof DashboardPropsInner]: DashboardPropsInner[K]
[K in keyof DashboardPropsInner]: DashboardPropsInner[K]
}

@@ -15,0 +20,0 @@

@@ -77,3 +77,3 @@ const React = require('react')

DashboardModal.propTypes = { // Only check this prop type in the browser.
DashboardModal.propTypes = {
target: typeof window !== 'undefined' ? PropTypes.instanceOf(window.HTMLElement) : PropTypes.any,

@@ -87,5 +87,2 @@ open: PropTypes.bool,

DashboardModal.defaultProps = {
}
module.exports = DashboardModal

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc