react-sortable-hoc
Advanced tools
Comparing version 0.0.10 to 0.0.11
Changelog | ||
------------ | ||
### 0.0.11 | ||
Utilize babel-plugin-transform-runtime to utilize `babelHelpers` without them being required in application code [#45](https://github.com/clauderic/react-sortable-hoc/issues/45) | ||
### 0.0.10 | ||
The `arrayMove` helper no longer mutates the array, it now returns a new array [#61](https://github.com/clauderic/react-sortable-hoc/issues/61) | ||
### 0.0.9 | ||
@@ -4,0 +10,0 @@ Server-side rendering bugfix: safeguard against `document` being undefined [#59](https://github.com/clauderic/react-sortable-hoc/pull/59) |
@@ -0,1 +1,3 @@ | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _createClass from 'babel-runtime/helpers/createClass'; | ||
import find from 'lodash/find'; | ||
@@ -6,7 +8,8 @@ import sortBy from 'lodash/sortBy'; | ||
function Manager() { | ||
babelHelpers.classCallCheck(this, Manager); | ||
_classCallCheck(this, Manager); | ||
this.refs = {}; | ||
} | ||
babelHelpers.createClass(Manager, [{ | ||
_createClass(Manager, [{ | ||
key: 'add', | ||
@@ -53,2 +56,3 @@ value: function add(collection, ref) { | ||
}]); | ||
return Manager; | ||
@@ -55,0 +59,0 @@ }(); |
@@ -0,1 +1,9 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _slicedToArray from 'babel-runtime/helpers/slicedToArray'; | ||
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; | ||
import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _createClass from 'babel-runtime/helpers/createClass'; | ||
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; | ||
import _inherits from 'babel-runtime/helpers/inherits'; | ||
import React, { Component, PropTypes } from 'react'; | ||
@@ -14,8 +22,8 @@ import ReactDOM from 'react-dom'; | ||
return _temp = _class = function (_Component) { | ||
babelHelpers.inherits(_class, _Component); | ||
_inherits(_class, _Component); | ||
function _class(props) { | ||
babelHelpers.classCallCheck(this, _class); | ||
_classCallCheck(this, _class); | ||
var _this = babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(_class).call(this)); | ||
var _this = _possibleConstructorReturn(this, _Object$getPrototypeOf(_class).call(this)); | ||
@@ -160,3 +168,3 @@ _this.state = {}; | ||
(_this$helper$classLis = _this.helper.classList).add.apply(_this$helper$classLis, babelHelpers.toConsumableArray(helperClass.split(' '))); | ||
(_this$helper$classLis = _this.helper.classList).add.apply(_this$helper$classLis, _toConsumableArray(helperClass.split(' '))); | ||
} | ||
@@ -294,3 +302,3 @@ | ||
babelHelpers.createClass(_class, [{ | ||
_createClass(_class, [{ | ||
key: 'getChildContext', | ||
@@ -377,3 +385,3 @@ value: function getChildContext() { | ||
var _lockOffset2 = babelHelpers.slicedToArray(_lockOffset, 2); | ||
var _lockOffset2 = _slicedToArray(_lockOffset, 2); | ||
@@ -428,3 +436,3 @@ var minLockOffset = _lockOffset2[0]; | ||
var _getLockPixelOffsets2 = babelHelpers.slicedToArray(_getLockPixelOffsets, 2); | ||
var _getLockPixelOffsets2 = _slicedToArray(_getLockPixelOffsets, 2); | ||
@@ -533,5 +541,6 @@ var minLockOffset = _getLockPixelOffsets2[0]; | ||
return React.createElement(WrappedComponent, babelHelpers.extends({ ref: ref }, this.props, this.state)); | ||
return React.createElement(WrappedComponent, _extends({ ref: ref }, this.props, this.state)); | ||
} | ||
}]); | ||
return _class; | ||
@@ -538,0 +547,0 @@ }(Component), _class.displayName = WrappedComponent.displayName ? 'SortableList(' + WrappedComponent.displayName + ')' : 'SortableList', _class.WrappedComponent = WrappedComponent, _class.defaultProps = { |
@@ -0,1 +1,7 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _createClass from 'babel-runtime/helpers/createClass'; | ||
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; | ||
import _inherits from 'babel-runtime/helpers/inherits'; | ||
import React, { Component, PropTypes } from 'react'; | ||
@@ -12,10 +18,11 @@ import { findDOMNode } from 'react-dom'; | ||
return _temp = _class = function (_Component) { | ||
babelHelpers.inherits(_class, _Component); | ||
_inherits(_class, _Component); | ||
function _class() { | ||
babelHelpers.classCallCheck(this, _class); | ||
return babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(_class).apply(this, arguments)); | ||
_classCallCheck(this, _class); | ||
return _possibleConstructorReturn(this, _Object$getPrototypeOf(_class).apply(this, arguments)); | ||
} | ||
babelHelpers.createClass(_class, [{ | ||
_createClass(_class, [{ | ||
key: 'componentDidMount', | ||
@@ -88,5 +95,6 @@ value: function componentDidMount() { | ||
var ref = config.withRef ? 'wrappedInstance' : null; | ||
return React.createElement(WrappedComponent, babelHelpers.extends({ ref: ref }, this.props)); | ||
return React.createElement(WrappedComponent, _extends({ ref: ref }, this.props)); | ||
} | ||
}]); | ||
return _class; | ||
@@ -93,0 +101,0 @@ }(Component), _class.displayName = WrappedComponent.displayName ? 'SortableElement(' + WrappedComponent.displayName + ')' : 'SortableElement', _class.WrappedComponent = WrappedComponent, _class.contextTypes = { |
@@ -0,1 +1,7 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _createClass from 'babel-runtime/helpers/createClass'; | ||
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; | ||
import _inherits from 'babel-runtime/helpers/inherits'; | ||
import React, { Component } from 'react'; | ||
@@ -12,10 +18,11 @@ import { findDOMNode } from 'react-dom'; | ||
return _temp = _class = function (_Component) { | ||
babelHelpers.inherits(_class, _Component); | ||
_inherits(_class, _Component); | ||
function _class() { | ||
babelHelpers.classCallCheck(this, _class); | ||
return babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(_class).apply(this, arguments)); | ||
_classCallCheck(this, _class); | ||
return _possibleConstructorReturn(this, _Object$getPrototypeOf(_class).apply(this, arguments)); | ||
} | ||
babelHelpers.createClass(_class, [{ | ||
_createClass(_class, [{ | ||
key: 'componentDidMount', | ||
@@ -36,7 +43,8 @@ value: function componentDidMount() { | ||
var ref = config.withRef ? 'wrappedInstance' : null; | ||
return React.createElement(WrappedComponent, babelHelpers.extends({ ref: ref }, this.props)); | ||
return React.createElement(WrappedComponent, _extends({ ref: ref }, this.props)); | ||
} | ||
}]); | ||
return _class; | ||
}(Component), _class.displayName = WrappedComponent.displayName ? 'SortableHandle(' + WrappedComponent.displayName + ')' : 'SortableHandle', _class.WrappedComponent = WrappedComponent, _temp; | ||
} |
{ | ||
"name": "react-sortable-hoc", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list", | ||
@@ -48,2 +48,3 @@ "author": { | ||
"dependencies": { | ||
"babel-runtime": "^6.11.6", | ||
"invariant": "^2.2.1", | ||
@@ -66,2 +67,3 @@ "lodash": "^4.12.0" | ||
"babel-plugin-transform-object-assign": "^6.8.0", | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"babel-polyfill": "^6.3.14", | ||
@@ -68,0 +70,0 @@ "babel-preset-es2015": "^6.3.13", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
971748
8322
5
49
4
+ Addedbabel-runtime@^6.11.6
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)