@rpldy/upload-drop-zone
Advanced tools
Comparing version 0.14.2 to 0.15.0
@@ -14,18 +14,19 @@ "use strict"; | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
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); } | ||
const UploadDropZone = /*#__PURE__*/(0, _react.forwardRef)(({ | ||
className, | ||
id, | ||
children, | ||
onDragOverClassName, | ||
dropHandler, | ||
htmlDirContentParams, | ||
extraProps, | ||
...uploadOptions | ||
}, ref) => { | ||
const UploadDropZone = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => { | ||
let { | ||
className, | ||
id, | ||
children, | ||
onDragOverClassName, | ||
dropHandler, | ||
htmlDirContentParams, | ||
extraProps, | ||
...uploadOptions | ||
} = _ref; | ||
const { | ||
@@ -32,0 +33,0 @@ upload |
@@ -6,12 +6,13 @@ 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); } | ||
import { useUploadyContext, markAsUploadOptionsComponent } from "@rpldy/shared-ui"; | ||
const UploadDropZone = /*#__PURE__*/forwardRef(({ | ||
className, | ||
id, | ||
children, | ||
onDragOverClassName, | ||
dropHandler, | ||
htmlDirContentParams, | ||
extraProps, | ||
...uploadOptions | ||
}, ref) => { | ||
const UploadDropZone = /*#__PURE__*/forwardRef((_ref, ref) => { | ||
let { | ||
className, | ||
id, | ||
children, | ||
onDragOverClassName, | ||
dropHandler, | ||
htmlDirContentParams, | ||
extraProps, | ||
...uploadOptions | ||
} = _ref; | ||
const { | ||
@@ -18,0 +19,0 @@ upload |
{ | ||
"version": "0.14.2", | ||
"version": "0.15.0", | ||
"name": "@rpldy/upload-drop-zone", | ||
@@ -30,17 +30,17 @@ "description": "drop zone (container) component to initiate file and folder content uploads", | ||
"dependencies": { | ||
"@rpldy/shared-ui": "^0.14.2", | ||
"@rpldy/shared-ui": "^0.15.0", | ||
"html-dir-content": "^0.3.2" | ||
}, | ||
"devDependencies": { | ||
"@rpldy/shared": "^0.14.2", | ||
"@rpldy/upload-button": "^0.14.2", | ||
"@rpldy/uploady": "^0.14.2", | ||
"flow-bin": "^0.159.0", | ||
"react-dnd": "^11.1.3", | ||
"react-dnd-html5-backend": "^10.0.2", | ||
"styled-components": "^5.2.0" | ||
"@rpldy/shared": "^0.15.0", | ||
"@rpldy/upload-button": "^0.15.0", | ||
"@rpldy/uploady": "^0.15.0", | ||
"flow-bin": "^0.164.0", | ||
"react-dnd": "^14.0.4", | ||
"react-dnd-html5-backend": "^14.0.2", | ||
"styled-components": "^5.3.3" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.x", | ||
"react-dom": ">=16.8.x" | ||
"react": ">=16.8", | ||
"react-dom": ">=16.8" | ||
}, | ||
@@ -50,3 +50,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "a03a076546fd0895f2eada2687de86a2e23f7732" | ||
"gitHead": "7909b3aacc4afd229e4bc6810da8560be19706b2" | ||
} |
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
15393
211
+ Added@rpldy/life-events@0.15.0(transitive)
+ Added@rpldy/sender@0.15.0(transitive)
+ Added@rpldy/shared@0.15.0(transitive)
+ Added@rpldy/shared-ui@0.15.0(transitive)
+ Added@rpldy/simple-state@0.15.0(transitive)
+ Added@rpldy/uploader@0.15.0(transitive)
- Removed@rpldy/life-events@0.14.2(transitive)
- Removed@rpldy/sender@0.14.2(transitive)
- Removed@rpldy/shared@0.14.2(transitive)
- Removed@rpldy/shared-ui@0.14.2(transitive)
- Removed@rpldy/simple-state@0.14.2(transitive)
- Removed@rpldy/uploader@0.14.2(transitive)
Updated@rpldy/shared-ui@^0.15.0