backstage-modal
Advanced tools
Comparing version 0.2.6 to 0.3.0
@@ -16,5 +16,5 @@ 'use strict'; | ||
var _reactPortal = require('react-portal'); | ||
var _reactPortalStateless = require('react-portal-stateless'); | ||
var _reactPortal2 = _interopRequireDefault(_reactPortal); | ||
var _reactPortalStateless2 = _interopRequireDefault(_reactPortalStateless); | ||
@@ -56,5 +56,4 @@ var _modal = require('./modal.css'); | ||
_this.handleCloseClick = _this.handleCloseClick.bind(_this); | ||
_this.handleOverlayClick = _this.handleOverlayClick.bind(_this); | ||
_this.handlePortalClose = _this.handlePortalClose.bind(_this); | ||
_this.handleClose = _this.handleClose.bind(_this); | ||
return _this; | ||
@@ -64,7 +63,2 @@ } | ||
_createClass(Modal, [{ | ||
key: 'handleCloseClick', | ||
value: function handleCloseClick() { | ||
this.handleClose(); | ||
} | ||
}, { | ||
key: 'handleOverlayClick', | ||
@@ -87,7 +81,2 @@ value: function handleOverlayClick(event) { | ||
}, { | ||
key: 'handlePortalClose', | ||
value: function handlePortalClose() { | ||
this.props.onCloseRequest(); | ||
} | ||
}, { | ||
key: 'render', | ||
@@ -106,4 +95,4 @@ value: function render() { | ||
return _react2.default.createElement( | ||
_reactPortal2.default, | ||
{ isOpened: this.props.isOpen, closeOnEsc: true, onClose: this.handlePortalClose }, | ||
_reactPortalStateless2.default, | ||
{ isOpen: this.props.isOpen, closeOnEsc: true, onClose: this.handleClose }, | ||
_react2.default.createElement( | ||
@@ -133,3 +122,3 @@ 'div', | ||
), | ||
_react2.default.createElement(_closeButton2.default, { onClick: this.handleCloseClick }) | ||
_react2.default.createElement(_closeButton2.default, { onClick: this.handleClose }) | ||
), | ||
@@ -136,0 +125,0 @@ this.props.children |
{ | ||
"name": "backstage-modal", | ||
"version": "0.2.6", | ||
"version": "0.3.0", | ||
"description": "backstage modal", | ||
@@ -8,3 +8,2 @@ "main": "dist/modal.js", | ||
"start": "webpack-dev-server", | ||
"prepublish": "npm run build", | ||
"build": "babel src/ --out-dir dist/ --ignore __tests__,__mocks__", | ||
@@ -23,3 +22,3 @@ "lint": "eslint src", | ||
"jest": {}, | ||
"author": "Globo.com", | ||
"author": "", | ||
"license": "MIT", | ||
@@ -53,4 +52,4 @@ "bugs": { | ||
"dependencies": { | ||
"react-portal": "^3.0.0" | ||
"react-portal-stateless": "^1.0.2" | ||
} | ||
} |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
29131
383
2
+ Addedreact-portal-stateless@1.0.3(transitive)
- Removedreact-portal@^3.0.0
- Removedreact-portal@3.2.0(transitive)