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

backstage-modal

Package Overview
Dependencies
Maintainers
8
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backstage-modal - npm Package Compare versions

Comparing version 0.2.6 to 0.3.0

23

dist/modal.js

@@ -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"
}
}
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