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

react-float-anchor

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-float-anchor - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

75

js/index.js

@@ -152,39 +152,36 @@ 'use strict';

if (float) {
(function () {
var shouldReposition = forceReposition;
if (!_this3._portalEl) {
(function () {
shouldReposition = true;
var el = (0, _reactDom.findDOMNode)(_this3);
var portalEl = _this3._portalEl = document.createElement('div');
portalEl.style.zIndex = String(props.zIndex);
portalEl.style.position = 'fixed';
var target = document.body || document.documentElement;
if (!target) throw new Error('Could not find element to attach portal to');
target.appendChild(portalEl);
portalEl.rfaAnchor = el;
_this3._portalRemoval.take(1).onValue(function () {
portalEl.rfaAnchor = undefined;
_this3.portal = null;
_reactDom2.default.unmountComponentAtNode(portalEl);
portalEl.remove();
_this3._portalEl = null;
});
_kefir2.default.merge([_kefir2.default.fromEvents(window, 'resize'), (0, _fromEventsWithOptions2.default)(window, 'scroll', { capture: true, passive: true }).filter(function (event) {
return event.target.contains(el);
})]).takeUntilBy(_this3._portalRemoval).onValue(function () {
_this3.reposition();
});
})();
var shouldReposition = forceReposition;
if (!this._portalEl) {
shouldReposition = true;
var el = (0, _reactDom.findDOMNode)(this);
if (!el) throw new Error('ReactFloatAnchor missing element');
var portalEl = this._portalEl = document.createElement('div');
portalEl.style.zIndex = String(props.zIndex);
portalEl.style.position = 'fixed';
var target = document.body || document.documentElement;
if (!target) throw new Error('Could not find element to attach portal to');
target.appendChild(portalEl);
portalEl.rfaAnchor = el;
this._portalRemoval.take(1).onValue(function () {
portalEl.rfaAnchor = undefined;
_this3.portal = null;
_reactDom2.default.unmountComponentAtNode(portalEl);
portalEl.remove();
_this3._portalEl = null;
});
_kefir2.default.merge([_kefir2.default.fromEvents(window, 'resize'), (0, _fromEventsWithOptions2.default)(window, 'scroll', { capture: true, passive: true }).filter(function (event) {
return event.target.contains(el);
})]).takeUntilBy(this._portalRemoval).onValue(function () {
_this3.reposition();
});
}
this._isRenderingFloat = true;
this.portal = _reactDom2.default.unstable_renderSubtreeIntoContainer(this, float, this._portalEl, function () {
_this3._isRenderingFloat = false;
if (_this3._shouldRepositionOnFloatRender || shouldReposition) {
_this3._shouldRepositionOnFloatRender = false;
_this3.reposition();
}
_this3._isRenderingFloat = true;
_this3.portal = _reactDom2.default.unstable_renderSubtreeIntoContainer(_this3, float, _this3._portalEl, function () {
_this3._isRenderingFloat = false;
if (_this3._shouldRepositionOnFloatRender || shouldReposition) {
_this3._shouldRepositionOnFloatRender = false;
_this3.reposition();
}
});
})();
});
} else {

@@ -205,3 +202,5 @@ if (this._portalEl) {

if (portalEl) {
(0, _containByScreen2.default)(portalEl, (0, _reactDom.findDOMNode)(this), this.props.options || {});
var el = (0, _reactDom.findDOMNode)(this);
if (!(el instanceof HTMLElement)) throw new Error('ReactFloatAnchor missing element');
(0, _containByScreen2.default)(portalEl, el, this.props.options || {});
this._repositionEvents.emit(null);

@@ -257,2 +256,2 @@ }

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJyZXF1ZXN0QW5pbWF0aW9uRnJhbWUiLCJnbG9iYWwiLCJzZXRUaW1lb3V0IiwiY2IiLCJGbG9hdEFuY2hvciIsIl9pc1JlbmRlcmluZ0Zsb2F0IiwiX3Nob3VsZFJlcG9zaXRpb25PbkZsb2F0UmVuZGVyIiwiX3BvcnRhbFJlbW92YWwiLCJfdW5tb3VudCIsIl9yZXBvc2l0aW9uRXZlbnRzIiwicG9ydGFsIiwiZmxvYXRhbmNob3IiLCJyZXBvc2l0aW9uRXZlbnRzIiwiY29udGV4dCIsIl91cGRhdGVGbG9hdCIsInByb3BzIiwicGFyZW50Q3R4IiwiX3BhcmVudEN0eCIsIn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dGlvbk9uRmxvYXRSZW5kZXIgPSB0cnVlO1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICBjb25zdCBwb3J0YWxFbCA9IHRoaXMuX3BvcnRhbEVsO1xuICAgIGlmIChwb3J0YWxFbCkge1xuICAgICAgY29uc3QgZWwgPSBmaW5kRE9NTm9kZSh0aGlzKTtcbiAgICAgIGlmICghKGVsIGluc3RhbmNlb2YgSFRNTEVsZW1lbnQpKSB0aHJvdyBuZXcgRXJyb3IoJ1JlYWN0RmxvYXRBbmNob3IgbWlzc2luZyBlbGVtZW50Jyk7XG4gICAgICBjb250YWluQnlTY3JlZW4ocG9ydGFsRWwsIGVsLCB0aGlzLnByb3BzLm9wdGlvbnMgfHwge30pO1xuICAgICAgdGhpcy5fcmVwb3NpdGlvbkV2ZW50cy5lbWl0KG51bGwpO1xuICAgIH1cbiAgfVxuXG4gIHJlbmRlcigpIHtcbiAgICBjb25zdCB7YW5jaG9yfSA9IHRoaXMucHJvcHM7XG4gICAgcmV0dXJuIGFuY2hvcjtcbiAgfVxufVxuIl19

@@ -25,2 +25,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZnJvbUV2ZW50c1dpdGhPcHRpb25zLmpzIl0sIm5hbWVzIjpbImZyb21FdmVudHNXaXRoT3B0aW9ucyIsInRhcmdldCIsImV2ZW50TmFtZSIsIm9wdGlvbnMiLCJzdHJlYW0iLCJlbWl0dGVyIiwiZW1pdCJdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBT3dCQSxxQjs7QUFMeEI7Ozs7QUFHQTs7OztBQUVlLFNBQVNBLHFCQUFULENBQStCQyxNQUEvQixFQUFvREMsU0FBcEQsRUFBdUVDLE9BQXZFLEVBQTJIO0FBQ3hJLFNBQU8sZ0JBQU1DLE1BQU4sQ0FBYSxtQkFBVztBQUM3QixvREFBaUJILE1BQWpCLEVBQX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b2xlYW4pOiBLZWZpci5PYnNlcnZhYmxlPE9iamVjdD4ge1xuICByZXR1cm4gS2VmaXIuc3RyZWFtKGVtaXR0ZXIgPT4ge1xuICAgIGFkZEV2ZW50TGlzdGVuZXIodGFyZ2V0LCBldmVudE5hbWUsIGVtaXR0ZXIuZW1pdCwgb3B0aW9ucyk7XG4gICAgcmV0dXJuICgpID0+IHtcbiAgICAgIHJlbW92ZUV2ZW50TGlzdGVuZXIodGFyZ2V0LCBldmVudE5hbWUsIGVtaXR0ZXIuZW1pdCwgb3B0aW9ucyk7XG4gICAgfTtcbiAgfSk7XG59XG4iXX0=
{
"name": "react-float-anchor",
"version": "1.3.6",
"version": "1.3.7",
"description": "React component for positioning an element aligned to another",

@@ -43,7 +43,7 @@ "main": "js/index.js",

"babelify": "^7.2.0",
"browserify": "^13.0.0",
"browserify": "^14.1.0",
"browserify-hmr": "^0.3.1",
"eslint": "^3.4.0",
"eslint-plugin-react": "^6.2.0",
"flow-bin": "^0.38.0",
"flow-bin": "^0.41.0",
"flow-copy-source": "^1.0.1",

@@ -56,3 +56,3 @@ "jsdom": "^9.4.2",

"sinon": "^1.17.3",
"watchify": "^3.7.0"
"watchify": "^3.9.0"
},

@@ -59,0 +59,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

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