react-float-anchor
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -1,3 +0,1 @@ | ||
// jshint ignore:start | ||
declare function describe(name: string, fn: (done: (err: any) => void) => ?Promise<any>): void; | ||
@@ -4,0 +2,0 @@ declare function xdescribe(name: string, fn: (done: (err: any) => void) => ?Promise<any>): void; |
@@ -65,3 +65,3 @@ 'use strict'; | ||
function FloatAnchor() { | ||
var _Object$getPrototypeO; | ||
var _ref; | ||
@@ -76,3 +76,3 @@ var _temp, _this, _ret; | ||
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_Object$getPrototypeO = (0, _getPrototypeOf2.default)(FloatAnchor)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this._isRenderingFloat = false, _this._shouldRepositionOnFloatRender = false, _this._portalRemoval = (0, _kefirBus2.default)(), _this._unmount = (0, _kefirBus2.default)(), _this._repositionEvents = (0, _kefirBus2.default)(), _this.portal = null, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret); | ||
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = FloatAnchor.__proto__ || (0, _getPrototypeOf2.default)(FloatAnchor)).call.apply(_ref, [this].concat(args))), _this), _this._isRenderingFloat = false, _this._shouldRepositionOnFloatRender = false, _this._portalRemoval = (0, _kefirBus2.default)(), _this._unmount = (0, _kefirBus2.default)(), _this._repositionEvents = (0, _kefirBus2.default)(), _this.portal = null, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret); | ||
} | ||
@@ -127,2 +127,9 @@ | ||
}, { | ||
key: 'componentDidUpdate', | ||
value: function componentDidUpdate(prevProps) { | ||
if (this._portalEl && prevProps.anchor !== this.props.anchor) { | ||
this._portalEl.rfaAnchor = (0, _reactDom.findDOMNode)(this); | ||
} | ||
} | ||
}, { | ||
key: 'componentWillUnmount', | ||
@@ -245,2 +252,2 @@ value: function componentWillUnmount() { | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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pcy5faXNSZW5kZXJpbmdGbG9hdCkge1xuICAgICAgdGhpcy5fc2hvdWxkUmVwb3NpdGlvbk9uRmxvYXRSZW5kZXIgPSB0cnVlO1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICBjb25zdCBwb3J0YWxFbCA9IHRoaXMuX3BvcnRhbEVsO1xuICAgIGlmIChwb3J0YWxFbCkge1xuICAgICAgY29udGFpbkJ5U2NyZWVuKHBvcnRhbEVsLCBmaW5kRE9NTm9kZSh0aGlzKSwgdGhpcy5wcm9wcy5vcHRpb25zIHx8IHt9KTtcbiAgICAgIHRoaXMuX3JlcG9zaXRpb25FdmVudHMuZW1pdChudWxsKTtcbiAgICB9XG4gIH1cblxuICByZW5kZXIoKSB7XG4gICAgY29uc3Qge2FuY2hvcn0gPSB0aGlzLnByb3BzO1xuICAgIHJldHVybiBhbmNob3I7XG4gIH1cbn1cbiJdfQ== |
@@ -25,2 +25,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZnJvbUV2ZW50c1dpdGhPcHRpb25zLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O2tCQU93QixxQjs7QUFMeEI7Ozs7QUFHQTs7OztBQUVlLFNBQVMscUJBQVQsQ0FBK0IsTUFBL0IsRUFBb0QsU0FBcEQsRUFBdUUsT0FBdkUsRUFBeUc7QUFDdEgsU0FBTyxnQkFBTSxNQUFOLENBQWEsbUJBQVc7QUFDN0Isb0RBQWlCLE1BQWpCLEVBQXlCLFNBQXpCLEVBQW9DLFFBQVEsSUFBNUMsRUFBa0QsT0FBbEQ7QUFDQSxXQUFPLFlBQU07QUFDWCx5REFBb0IsTUFBcEIsRUFBNEIsU0FBNUIsRUFBdUMsUUFBUSxJQUEvQyxFQUFxRCxPQUFyRDtBQUNELEtBRkQ7QUFHRCxHQUxNLENBQVA7QUFNR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ZW50TGlzdGVuZXIodGFyZ2V0LCBldmVudE5hbWUsIGVtaXR0ZXIuZW1pdCwgb3B0aW9ucyk7XG4gICAgfTtcbiAgfSk7XG59XG4iXX0= |
{ | ||
"name": "react-float-anchor", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "React component for positioning an element aligned to another", | ||
@@ -35,3 +35,3 @@ "main": "js/index.js", | ||
"babel-eslint": "^6.0.0", | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-runtime": "^6.6.0", | ||
@@ -46,8 +46,8 @@ "babel-preset-es2015": "^6.6.0", | ||
"browserify-hmr": "^0.3.1", | ||
"eslint": "^2.4.0", | ||
"eslint-plugin-react": "^4.2.3", | ||
"flow-bin": "^0.30.0", | ||
"eslint": "^3.4.0", | ||
"eslint-plugin-react": "^6.2.0", | ||
"flow-bin": "^0.31.1", | ||
"flow-copy-source": "^1.0.1", | ||
"jsdom": "^8.1.0", | ||
"mocha": "^2.4.5", | ||
"jsdom": "^9.4.2", | ||
"mocha": "^3.0.2", | ||
"react": "^0.14.7", | ||
@@ -61,6 +61,6 @@ "react-addons-test-utils": "^0.14.7", | ||
"event-listener-with-options": "^1.0.2", | ||
"babel-runtime": "^6.6.1", | ||
"babel-runtime": "^6.11.6", | ||
"contain-by-screen": "^1.0.4", | ||
"kefir": "^3.2.1", | ||
"kefir-bus": "^2.1.0", | ||
"kefir": "^3.5.1", | ||
"kefir-bus": "^2.2.0", | ||
"lodash": "^4.6.1" | ||
@@ -67,0 +67,0 @@ }, |
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
36409
227
Updatedbabel-runtime@^6.11.6
Updatedkefir@^3.5.1
Updatedkefir-bus@^2.2.0