backstage-modal
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -15,2 +15,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _modal = require('./modal.css'); | ||
@@ -76,4 +80,4 @@ | ||
CloseButton.propTypes = { | ||
onClick: _react2.default.PropTypes.func | ||
onClick: _propTypes2.default.func | ||
}; | ||
exports.default = CloseButton; |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _modal = require('./modal.css'); | ||
@@ -50,4 +54,4 @@ | ||
ModalBody.propTypes = { | ||
children: _react2.default.PropTypes.node | ||
children: _propTypes2.default.node | ||
}; | ||
exports.default = ModalBody; |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _modal = require('./modal.css'); | ||
@@ -50,4 +54,4 @@ | ||
ModalFooter.propTypes = { | ||
children: _react2.default.PropTypes.node | ||
children: _propTypes2.default.node | ||
}; | ||
exports.default = ModalFooter; |
@@ -16,2 +16,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _reactPortalStateless = require('react-portal-stateless'); | ||
@@ -132,9 +136,9 @@ | ||
Modal.propTypes = { | ||
className: _react2.default.PropTypes.string, | ||
isOpen: _react2.default.PropTypes.bool, | ||
width: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.number]), | ||
height: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.number]), | ||
title: _react2.default.PropTypes.string, | ||
children: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.arrayOf(_react2.default.PropTypes.node), _react2.default.PropTypes.node]), | ||
onCloseRequest: _react2.default.PropTypes.func | ||
className: _propTypes2.default.string, | ||
isOpen: _propTypes2.default.bool, | ||
width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), | ||
height: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), | ||
title: _propTypes2.default.string, | ||
children: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.node), _propTypes2.default.node]), | ||
onCloseRequest: _propTypes2.default.func | ||
}; | ||
@@ -141,0 +145,0 @@ Modal.defaultProps = { |
{ | ||
"name": "backstage-modal", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "backstage modal", | ||
@@ -36,3 +36,3 @@ "main": "dist/modal.js", | ||
"babel-preset-stage-0": "^6.16.0", | ||
"enzyme": "^2.4.1", | ||
"enzyme": "^2.9.1", | ||
"eslint": "^3.3.1", | ||
@@ -44,5 +44,5 @@ "eslint-config-airbnb": "^10.0.1", | ||
"jest": "^16.0.1", | ||
"react": "^15.3.1", | ||
"react-addons-test-utils": "^15.3.1", | ||
"react-dom": "^15.3.1", | ||
"react": "^15.6.1", | ||
"react-dom": "^15.6.1", | ||
"react-test-renderer": "^15.6.1", | ||
"webpack": "^1.13.2", | ||
@@ -52,4 +52,5 @@ "webpack-dev-server": "^1.16.1" | ||
"dependencies": { | ||
"prop-types": "^15.5.10", | ||
"react-portal-stateless": "^1.0.3" | ||
} | ||
} |
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
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
29439
391
2
1
+ Addedprop-types@^15.5.10