react-resizable
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -7,5 +7,5 @@ 'use strict'; | ||
var React = _interopRequireWildcard(_react); | ||
var _react2 = _interopRequireDefault(_react); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -20,3 +20,3 @@ // React.addons.cloneWithProps look-alike that merges style & className. | ||
} | ||
return React.cloneElement(element, props); | ||
return _react2.default.cloneElement(element, props); | ||
}; |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var React = _interopRequireWildcard(_react); | ||
var _react2 = _interopRequireDefault(_react); | ||
@@ -24,4 +24,2 @@ var _propTypes = require('prop-types'); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
@@ -205,3 +203,3 @@ | ||
className: className, | ||
children: [children.props.children, React.createElement( | ||
children: [children.props.children, _react2.default.createElement( | ||
_reactDraggable.DraggableCore, | ||
@@ -214,3 +212,3 @@ _extends({}, draggableOpts, { | ||
}), | ||
React.createElement('span', { className: 'react-resizable-handle' }) | ||
_react2.default.createElement('span', { className: 'react-resizable-handle' }) | ||
)] | ||
@@ -221,3 +219,3 @@ })); | ||
return Resizable; | ||
}(React.Component); | ||
}(_react2.default.Component); | ||
@@ -224,0 +222,0 @@ Resizable.propTypes = { |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var React = _interopRequireWildcard(_react); | ||
var _react2 = _interopRequireDefault(_react); | ||
@@ -22,4 +22,2 @@ var _propTypes = require('prop-types'); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
@@ -93,3 +91,3 @@ | ||
return React.createElement( | ||
return _react2.default.createElement( | ||
_Resizable2.default, | ||
@@ -109,3 +107,3 @@ { | ||
}, | ||
React.createElement('div', _extends({ style: { width: this.state.width + 'px', height: this.state.height + 'px' } }, props)) | ||
_react2.default.createElement('div', _extends({ style: { width: this.state.width + 'px', height: this.state.height + 'px' } }, props)) | ||
); | ||
@@ -115,3 +113,3 @@ }; | ||
return ResizableBox; | ||
}(React.Component); | ||
}(_react2.default.Component); | ||
@@ -118,0 +116,0 @@ ResizableBox.propTypes = { |
# Changelog | ||
### 1.7.3 (Aug 31, 2017) | ||
- Fix React deprecation warnings from `import *` | ||
- https://github.com/facebook/react/issues/10583 | ||
### 1.7.2 (Aug 21, 2017) | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "react-resizable", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "A component that is resizable with handles.", | ||
@@ -13,4 +13,4 @@ "main": "index.js", | ||
"watch": "webpack --progress --watch", | ||
"prepublish": "npm run build", | ||
"validate": "yarn list", | ||
"prepare": "npm run build", | ||
"validate": "yarn check", | ||
"preversion": "npm run lint", | ||
@@ -17,0 +17,0 @@ "version": "git add CHANGELOG.md", |
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
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
34947
337