Socket
Socket
Sign inDemoInstall

@uppy/react

Package Overview
Dependencies
Maintainers
5
Versions
112
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 1.11.5 to 1.11.6

4

lib/Dashboard.js
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var React = require('react');

@@ -6,0 +8,0 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var React = require('react');

@@ -6,0 +8,0 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var React = require('react');

@@ -6,0 +8,0 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var PropTypes = require('prop-types');

@@ -6,0 +8,0 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var React = require('react');

@@ -6,0 +8,0 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var React = require('react');

@@ -6,0 +8,0 @@

@@ -18,3 +18,3 @@ var _require = require('react'),

if (!(uppy.current instanceof UppyCore)) {
throw new TypeError('useUppy: factory function must return an Uppy instance, got ' + typeof uppy.current);
throw new TypeError("useUppy: factory function must return an Uppy instance, got " + typeof uppy.current);
}

@@ -21,0 +21,0 @@ }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
var React = require('react');

@@ -6,0 +8,0 @@

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

@@ -25,14 +25,19 @@ "main": "index.js",

"dependencies": {
"@uppy/dashboard": "^1.17.1",
"@uppy/drag-drop": "^1.4.26",
"@uppy/file-input": "^1.4.24",
"@uppy/progress-bar": "^1.3.26",
"@uppy/status-bar": "^1.9.2",
"@uppy/utils": "^3.4.2",
"@uppy/dashboard": "^1.18.0",
"@uppy/drag-drop": "^1.4.27",
"@uppy/file-input": "^1.4.25",
"@uppy/progress-bar": "^1.3.27",
"@uppy/status-bar": "^1.9.3",
"@uppy/utils": "^3.5.0",
"prop-types": "^15.6.1"
},
"devDependencies": {
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.2"
},
"peerDependencies": {
"@uppy/core": "^1.0.0"
"@uppy/core": "^1.0.0",
"react": "^16.0.0 || ^17.0.0"
},
"gitHead": "4bf107236340dc98f8584f15a06e13ffa9fc31f4"
"gitHead": "6771545fe70134088a5441ef5c2f7b872e32d812"
}

@@ -30,7 +30,7 @@ const React = require('react')

const uppy = this.props.uppy
const options = Object.assign(
{ id: 'react:Dashboard' },
this.props,
{ target: this.container }
)
const options = {
id: 'react:Dashboard',
...this.props,
target: this.container,
}
delete options.uppy

@@ -52,3 +52,3 @@ uppy.use(DashboardPlugin, options)

this.container = container
}
},
})

@@ -61,5 +61,5 @@ }

Dashboard.defaultProps = {
inline: true
inline: true,
}
module.exports = Dashboard

@@ -36,9 +36,7 @@ const React = require('react')

const uppy = this.props.uppy
const options = Object.assign(
{ id: 'react:DashboardModal' },
this.props,
{
onRequestCloseModal: this.props.onRequestClose
}
)
const options = {
id: 'react:DashboardModal',
...this.props,
onRequestCloseModal: this.props.onRequestClose,
}

@@ -68,3 +66,3 @@ if (!options.target) {

this.container = container
}
},
})

@@ -74,4 +72,3 @@ }

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

@@ -81,4 +78,5 @@ open: PropTypes.bool,

closeModalOnClickOutside: PropTypes.bool,
disablePageScrollWhenModalOpen: PropTypes.bool
}, basePropTypes)
disablePageScrollWhenModalOpen: PropTypes.bool,
...basePropTypes,
}

@@ -85,0 +83,0 @@ DashboardModal.defaultProps = {

@@ -17,3 +17,3 @@ const h = require('react').createElement

openModal: jest.fn(),
closeModal: jest.fn()
closeModal: jest.fn(),
})

@@ -20,0 +20,0 @@ })

@@ -30,7 +30,7 @@ const React = require('react')

const uppy = this.props.uppy
const options = Object.assign(
{ id: 'react:DragDrop' },
this.props,
{ target: this.container }
)
const options = {
id: 'react:DragDrop',
...this.props,
target: this.container,
}
delete options.uppy

@@ -53,3 +53,3 @@

this.container = container
}
},
})

@@ -61,3 +61,3 @@ }

uppy: propTypes.uppy,
locale: propTypes.locale
locale: propTypes.locale,
}

@@ -64,0 +64,0 @@ DragDrop.defaultProps = {

@@ -31,7 +31,7 @@ const PropTypes = require('prop-types')

const uppy = this.props.uppy
const options = Object.assign(
{ id: 'react:FileInput' },
this.props,
{ target: this.container }
)
const options = {
id: 'react:FileInput',
...this.props,
target: this.container,
}
delete options.uppy

@@ -54,3 +54,3 @@

this.container = container
}
},
})

@@ -64,3 +64,3 @@ }

pretty: PropTypes.bool,
inputName: PropTypes.string
inputName: PropTypes.string,
}

@@ -67,0 +67,0 @@ FileInput.defaultProps = {

@@ -30,7 +30,7 @@ const React = require('react')

const uppy = this.props.uppy
const options = Object.assign(
{ id: 'react:ProgressBar' },
this.props,
{ target: this.container }
)
const options = {
id: 'react:ProgressBar',
...this.props,
target: this.container,
}
delete options.uppy

@@ -53,3 +53,3 @@

this.container = container
}
},
})

@@ -62,3 +62,3 @@ }

fixed: PropTypes.bool,
hideAfterFinish: PropTypes.bool
hideAfterFinish: PropTypes.bool,
}

@@ -65,0 +65,0 @@ ProgressBar.defaultProps = {

@@ -13,3 +13,3 @@ const PropTypes = require('prop-types')

strings: PropTypes.object,
pluralize: PropTypes.func
pluralize: PropTypes.func,
})

@@ -21,3 +21,3 @@

name: PropTypes.string.isRequired,
placeholder: PropTypes.string
placeholder: PropTypes.string,
})

@@ -29,3 +29,3 @@ const metaFields = PropTypes.arrayOf(metaField)

PropTypes.string,
PropTypes.number
PropTypes.number,
])

@@ -51,3 +51,3 @@

thumbnailWidth: PropTypes.number,
locale
locale,
}

@@ -58,3 +58,3 @@

locale,
dashboard
dashboard,
}

@@ -31,7 +31,7 @@ const React = require('react')

const uppy = this.props.uppy
const options = Object.assign(
{ id: 'react:StatusBar' },
this.props,
{ target: this.container }
)
const options = {
id: 'react:StatusBar',
...this.props,
target: this.container,
}
delete options.uppy

@@ -54,3 +54,3 @@

this.container = container
}
},
})

@@ -63,3 +63,3 @@ }

hideAfterFinish: PropTypes.bool,
showProgressDetails: PropTypes.bool
showProgressDetails: PropTypes.bool,
}

@@ -66,0 +66,0 @@ StatusBar.defaultProps = {

@@ -14,3 +14,3 @@ const { useEffect, useRef } = require('react')

if (!(uppy.current instanceof UppyCore)) {
throw new TypeError('useUppy: factory function must return an Uppy instance, got ' + typeof uppy.current)
throw new TypeError(`useUppy: factory function must return an Uppy instance, got ${typeof uppy.current}`)
}

@@ -17,0 +17,0 @@ }

@@ -51,3 +51,3 @@ const h = require('react').createElement

const uppy = useUppy(() => ({
garbage: 'lala'
garbage: 'lala',
}))

@@ -54,0 +54,0 @@

@@ -54,5 +54,5 @@ const React = require('react')

uppy: uppyPropType,
plugin: PropTypes.string.isRequired
plugin: PropTypes.string.isRequired,
}
module.exports = UppyWrapper

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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