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

react-menu-list

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-menu-list - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

8

js/MenuButton.js

@@ -97,2 +97,7 @@ 'use strict';

}, {
key: 'reposition',
value: function reposition() {
this.refs.floatAnchor.reposition();
}
}, {
key: '_itemChosen',

@@ -134,2 +139,3 @@ value: function _itemChosen() {

return _react2.default.createElement(_reactFloatAnchor2.default, {
ref: 'floatAnchor',
options: positionOptions,

@@ -235,2 +241,2 @@ zIndex: zIndex,

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZW51QnV0dG9uLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7O0lBTXFCOzs7Ozs7Ozs7Ozs7Ozs4TkF1Qm5CLFFBQWU7QUFDYixjQUFRLEtBQVI7YUFNRixxQkFBMEIsWUFJMUIsWUFBcUI7Ozs7Ozs7Ozs7Ozs2QkFsQ0Y7OzJCQW9DWjtBQUNMLFVBQUksS0FBSyxLQUFMLENBQVcsTUFBWCxFQUFtQixPQUF2QjtBQUNBLFVBQUksS0FBSyxLQUFMLENBQVcsVUFBWCxFQUF1QixLQUFLLEtBQUwsQ0FBVyxVQUFYLEdBQTNCO0FBQ0EsV0FBSyxRQUFMLENBQWMsRUFBQyxRQUFRLElBQVIsRUFBZixFQUE4QixLQUFLLEtBQUwsQ0FBVyxTQUFYLENBQTlCLENBSEs7Ozs7NEJBTUM7QUFDTixVQUFJLENBQUMsS0FBSyxLQUFMLENBQVcsTUFBWCxFQUFtQixPQUF4QjtBQU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zc05hbWV8fCcnfSAke3RoaXMucHJvcHMub3BlbmVkQ2xhc3NOYW1lfWA7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIChcbiAgICAgIDxGbG9hdEFuY2hvclxuICAgICAgICBvcHRpb25zPXtwb3NpdGlvbk9wdGlvbnN9XG4gICAgICAgIHpJbmRleD17ekluZGV4fVxuICAgICAgICBhbmNob3I9e1xuICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgcmVmPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgICAgICAgc3R5bGU9e3N0eWxlfVxuICAgICAgICAgICAgb25Gb2N1cz17KCk9PntcbiAgICAgICAgICAgICAgdGhpcy5fZm9jdXNpbmcgPSBmYWxzZTtcbiAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuX2ZvY3VzRml4ZXJUaW1lb3V0KTtcbiAgICAgICAgICAgIH19XG4gICAgICAgICAgICBvbkJsdXI9eygpPT57XG4gICAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aGlzLl9mb2N1c0ZpeGVyVGltZW91dCk7XG4gICAgICAgICAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICAgICAgICAgIH19XG4gICAgICAgICAgICBvbk1vdXNlRG93bj17KCk9PntcbiAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuX2ZvY3VzRml4ZXJUaW1lb3V0KTtcbiAgICAgICAgICAgICAgaWYgKCFvcGVuZWQpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9mb2N1c2luZyA9IHRydWU7XG4gICAgICAgICAgICAgICAgdGhpcy5fZm9jdXNGaXhlclRpbWVvdXQgPSBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50ICE9PSB0aGlzLnJlZnMuYnV0dG9uKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucmVmcy5mb2N1c0hvbGRlci5mb2N1cygpO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sIDApO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHRoaXMudG9nZ2xlKCk7XG4gICAgICAgICAgICB9fVxuICAgICAgICAgICAgb25LZXlQcmVzcz17ZT0+e1xuICAgICAgICAgICAgICBpZiAoZS5rZXkgPT09ICdFbnRlcicgfHwgZS5rZXkgPT09ICcgJykge1xuICAgICAgICAgICAgICAgIHRoaXMudG9nZ2xlKCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH19XG4gICAgICAgICAgICBvbktleURvd249e2U9PntcbiAgICAgICAgICAgICAgaWYgKGUua2V5ID09PSAnRXNjYXBlJyAmJiBvcGVuZWQpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmNsb3NlKCk7XG4gICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgIGUuc3RvcFByb3BhZ2F0aW9uKCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH19XG4gICAgICAgICAgICBhcmlhLWhhc3BvcHVwPXt0cnVlfVxuICAgICAgICAgICAgYXJpYS1leHBhbmRlZD17b3BlbmVkfVxuICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgdGl0bGU9e3RpdGxlfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgcmVmPVwiZm9jdXNIb2xkZXJcIlxuICAgICAgICAgICAgICB0YWJJbmRleD1cIi0xXCJcbiAgICAgICAgICAgICAgYXJpYS1oaWRkZW49e3RydWV9XG4gICAgICAgICAgICAgIHN0eWxlPXt7XG4gICAgICAgICAgICAgICAgb3BhY2l0eTogJzAnLFxuICAgICAgICAgICAgICAgIG91dGxpbmU6ICdub25lJyxcbiAgICAgICAgICAgICAgICB3aWR0aDogJzBweCcsXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAnMHB4JyxcbiAgICAgICAgICAgICAgICBvdmVyZmxvdzogJ2hpZGRlbidcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgb25CbHVyPXtlPT57XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuX2ZvY3VzaW5nKSB7XG4gICAgICAgICAgICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbigpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgPC9idXR0b24+XG4gICAgICAgIH1cbiAgICAgICAgZmxvYXQ9e1xuICAgICAgICAgICFvcGVuZWQgPyBudWxsIDpcbiAgICAgICAgICAgIDxNZW51TGlzdEluc3BlY3RvciBvbkl0ZW1DaG9zZW49eygpID0+IHRoaXMuX2l0ZW1DaG9zZW4oKX0+XG4gICAgICAgICAgICAgIHttZW51fVxuICAgICAgICAgICAgPC9NZW51TGlzdEluc3BlY3Rvcj5cbiAgICAgICAgfVxuICAgICAgLz5cbiAgICApO1xuICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZW51QnV0dG9uLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7O0lBTXFCOzs7Ozs7Ozs7Ozs7Ozs4TkF1Qm5CLFFBQWU7QUFDYixjQUFRLEtBQVI7YUFNRixxQkFBMEIsWUFJMUIsWUFBcUI7Ozs7Ozs7Ozs7Ozs2QkFsQ0Y7OzJCQW9DWjtBQUNMLFVBQUksS0FBSyxLQUFMLENBQVcsTUFBWCxFQUFtQixP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iAgICAgIGRpc2FibGVkLCB0aXRsZVxuICAgIH0gPSB0aGlzLnByb3BzO1xuICAgIGNvbnN0IHtvcGVuZWR9ID0gdGhpcy5zdGF0ZTtcblxuICAgIGxldCBzdHlsZSA9IHRoaXMucHJvcHMuc3R5bGU7XG4gICAgbGV0IGNsYXNzTmFtZSA9IHRoaXMucHJvcHMuY2xhc3NOYW1lO1xuICAgIGlmIChvcGVuZWQpIHtcbiAgICAgIGlmICh0aGlzLnByb3BzLm9wZW5lZFN0eWxlKSB7XG4gICAgICAgIHN0eWxlID0gey4uLnN0eWxlLCAuLi50aGlzLnByb3BzLm9wZW5lZFN0eWxlfTtcbiAgICAgIH1cbiAgICAgIGlmICh0aGlzLnByb3BzLm9wZW5lZENsYXNzTmFtZSkge1xuICAgICAgICBjbGFzc05hbWUgPSBgJHtjbGFzc05hbWV8fCcnfSAke3RoaXMucHJvcHMub3BlbmVkQ2xhc3NOYW1lfWA7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIChcbiAgICAgIDxGbG9hdEFuY2hvclxuICAgICAgICByZWY9XCJmbG9hdEFuY2hvclwiXG4gICAgICAgIG9wdGlvbnM9e3Bvc2l0aW9uT3B0aW9uc31cbiAgICAgICAgekluZGV4PXt6SW5kZXh9XG4gICAgICAgIGFuY2hvcj17XG4gICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICByZWY9XCJidXR0b25cIlxuICAgICAgICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICAgICAgICBzdHlsZT17c3R5bGV9XG4gICAgICAgICAgICBvbkZvY3VzPXsoKT0+e1xuICAgICAgICAgICAgICB0aGlzLl9mb2N1c2luZyA9IGZhbHNlO1xuICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy5fZm9jdXNGaXhlclRpbWVvdXQpO1xuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIG9uQmx1cj17KCk9PntcbiAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuX2ZvY3VzRml4ZXJUaW1lb3V0KTtcbiAgICAgICAgICAgICAgdGhpcy5jbG9zZSgpO1xuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIG9uTW91c2VEb3duPXsoKT0+e1xuICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy5fZm9jdXNGaXhlclRpbWVvdXQpO1xuICAgICAgICAgICAgICBpZiAoIW9wZW5lZCkge1xuICAgICAgICAgICAgICAgIHRoaXMuX2ZvY3VzaW5nID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICB0aGlzLl9mb2N1c0ZpeGVyVGltZW91dCA9IHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgaWYgKGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQgIT09IHRoaXMucmVmcy5idXR0b24pIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZWZzLmZvY3VzSG9sZGVyLmZvY3VzKCk7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSwgMCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgdGhpcy50b2dnbGUoKTtcbiAgICAgICAgICAgIH19XG4gICAgICAgICAgICBvbktleVByZXNzPXtlPT57XG4gICAgICAgICAgICAgIGlmIChlLmtleSA9PT0gJ0VudGVyJyB8fCBlLmtleSA9PT0gJyAnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy50b2dnbGUoKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIG9uS2V5RG93bj17ZT0+e1xuICAgICAgICAgICAgICBpZiAoZS5rZXkgPT09ICdFc2NhcGUnICYmIG9wZW5lZCkge1xuICAgICAgICAgICAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICAgICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICAgICAgZS5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIGFyaWEtaGFzcG9wdXA9e3RydWV9XG4gICAgICAgICAgICBhcmlhLWV4cGFuZGVkPXtvcGVuZWR9XG4gICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICB0aXRsZT17dGl0bGV9XG4gICAgICAgICAgPlxuICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICByZWY9XCJmb2N1c0hvbGRlclwiXG4gICAgICAgICAgICAgIHRhYkluZGV4PVwiLTFcIlxuICAgICAgICAgICAgICBhcmlhLWhpZGRlbj17dHJ1ZX1cbiAgICAgICAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAgICAgICBvcGFjaXR5OiAnMCcsXG4gICAgICAgICAgICAgICAgb3V0bGluZTogJ25vbmUnLFxuICAgICAgICAgICAgICAgIHdpZHRoOiAnMHB4JyxcbiAgICAgICAgICAgICAgICBoZWlnaHQ6ICcwcHgnLFxuICAgICAgICAgICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJ1xuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICBvbkJsdXI9e2U9PntcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5fZm9jdXNpbmcpIHtcbiAgICAgICAgICAgICAgICAgIGUuc3RvcFByb3BhZ2F0aW9uKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgfVxuICAgICAgICBmbG9hdD17XG4gICAgICAgICAgIW9wZW5lZCA/IG51bGwgOlxuICAgICAgICAgICAgPE1lbnVMaXN0SW5zcGVjdG9yIG9uSXRlbUNob3Nlbj17KCkgPT4gdGhpcy5faXRlbUNob3NlbigpfT5cbiAgICAgICAgICAgICAge21lbnV9XG4gICAgICAgICAgICA8L01lbnVMaXN0SW5zcGVjdG9yPlxuICAgICAgICB9XG4gICAgICAvPlxuICAgICk7XG4gIH1cbn1cbiJdfQ==

@@ -113,2 +113,7 @@ 'use strict';

}, {
key: 'reposition',
value: function reposition() {
this.refs.floatAnchor.reposition();
}
}, {
key: '_onHighlightChange',

@@ -255,2 +260,3 @@ value: function _onHighlightChange(highlighted, event) {

_react2.default.createElement(_reactFloatAnchor2.default, {
ref: 'floatAnchor',
options: positionOptions,

@@ -319,2 +325,2 @@ zIndex: zIndex,

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TdWJNZW51SXRlbS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUVBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7O0lBU3FCOzs7Ozs7Ozs7Ozs7OzsrTkE2Qm5CLFFBQWU7QUFDYixjQUFRLEtBQVI7YUFHRiwwQkFBa0MsaUNBQ2xDLFdBQW1COzs7NkJBbENBOzsyQ0FvQ0k7QUFDckIsV0FBSyxRQUFMLENBQWMsSUFBZCxDQUFtQixJQUFuQixFQURxQjs7OzsyQkFJaEI7QUFDTCxXQUFLLElBQUwsQ0FBVSxRQUFWLENBQW1CLGFBQW5CLEdBREs7QUFFTCxVQUFJLEtBQUssS0FBTCxDQUFXLE1BQVgsRUFBbUIsT0FBdkI7QUFDQSxVQUFJLEtBQUssS0FBTCxDQUFXLFVBQVgsRUFBdUIsS0FBSyxLQUFMLENBQVcsVUFBWCxHQUEzQjtBQUNBLFdBQUssUUFBTCxDQUFjLEVBQUMsUUFBUSxJQUFSLEVBQWYsRUFBOEIsS0FBSyxLQUFMLENBQVcsU0FBWCxDQUE5QixDQUpLO0FBS0wsV0F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gIGFuY2hvcj17XG4gICAgICAgICAgICA8ZGl2PlxuICAgICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICB9XG4gICAgICAgICAgZmxvYXQ9e1xuICAgICAgICAgICAgIW9wZW5lZCA/IG51bGwgOlxuICAgICAgICAgICAgICA8TWVudUxpc3RJbnNwZWN0b3JcbiAgICAgICAgICAgICAgICByZWY9XCJtZW51SW5zcGVjdG9yXCJcbiAgICAgICAgICAgICAgICBvbkxlZnRQdXNoZWQ9e2UgPT4ge1xuICAgICAgICAgICAgICAgICAgZS5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgICAgcmVmPVwibWVudUNvbnRhaW5lclwiXG4gICAgICAgICAgICAgICAgICBvbk1vdXNlRW50ZXI9eygpPT50aGlzLl9tb3VzZUVudGVyTWVudSgpfVxuICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAge21lbnV9XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgIDwvTWVudUxpc3RJbnNwZWN0b3I+XG4gICAgICAgICAgfVxuICAgICAgICAgIC8+XG4gICAgICA8L01lbnVJdGVtPlxuICAgICk7XG4gIH1cbn1cbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TdWJNZW51SXRlbS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUVBOzs7O0FBQ0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IGUuc3RvcFByb3BhZ2F0aW9uKCk7XG4gICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICB0aGlzLm9wZW4oKTtcbiAgICAgICAgICAgIHRoaXMucmVmcy5tZW51SW5zcGVjdG9yLm1vdmVDdXJzb3IoJ2Rvd24nKTtcbiAgICAgICAgICB9XG4gICAgICAgIH19XG4gICAgICAgIG9uSXRlbUNob3Nlbj17KGU6IENob3NlbkV2ZW50KSA9PiB7XG4gICAgICAgICAgZS5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgdGhpcy5vcGVuKCk7XG4gICAgICAgICAgaWYgKGUuYnlLZXlib2FyZCkge1xuICAgICAgICAgICAgdGhpcy5yZWZzLm1lbnVJbnNwZWN0b3IubW92ZUN1cnNvcignZG93bicpO1xuICAgICAgICAgIH1cbiAgICAgICAgfX1cbiAgICAgICAgYXJpYS1oYXNwb3B1cD17dHJ1ZX1cbiAgICAgICAgYXJpYS1leHBhbmRlZD17b3BlbmVkfVxuICAgICAgPlxuICAgICAgICA8RmxvYXRBbmNob3JcbiAgICAgICAgICByZWY9XCJmbG9hdEFuY2hvclwiXG4gICAgICAgICAgb3B0aW9ucz17cG9zaXRpb25PcHRpb25zfVxuICAgICAgICAgIHpJbmRleD17ekluZGV4fVxuICAgICAgICAgIGFuY2hvcj17XG4gICAgICAgICAgICA8ZGl2PlxuICAgICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICB9XG4gICAgICAgICAgZmxvYXQ9e1xuICAgICAgICAgICAgIW9wZW5lZCA/IG51bGwgOlxuICAgICAgICAgICAgICA8TWVudUxpc3RJbnNwZWN0b3JcbiAgICAgICAgICAgICAgICByZWY9XCJtZW51SW5zcGVjdG9yXCJcbiAgICAgICAgICAgICAgICBvbkxlZnRQdXNoZWQ9e2UgPT4ge1xuICAgICAgICAgICAgICAgICAgZS5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgICAgcmVmPVwibWVudUNvbnRhaW5lclwiXG4gICAgICAgICAgICAgICAgICBvbk1vdXNlRW50ZXI9eygpPT50aGlzLl9tb3VzZUVudGVyTWVudSgpfVxuICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAge21lbnV9XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgIDwvTWVudUxpc3RJbnNwZWN0b3I+XG4gICAgICAgICAgfVxuICAgICAgICAgIC8+XG4gICAgICA8L01lbnVJdGVtPlxuICAgICk7XG4gIH1cbn1cbiJdfQ==

2

package.json
{
"name": "react-menu-list",
"version": "1.3.1",
"version": "1.4.0",
"description": "React component for menu lists and submenus",

@@ -5,0 +5,0 @@ "main": "js/index.js",

@@ -162,2 +162,4 @@ # react-menu-list

* `toggle()`
* `reposition()`: Repositions the floating submenu. Call this if you change the
size of the menu.

@@ -200,2 +202,4 @@ ### MenuListInspector

* `toggle()`
* `reposition()`: Repositions the floating submenu. Call this if you change the
size of the menu.

@@ -202,0 +206,0 @@ ### Dropdown

Sorry, the diff of this file is not supported yet

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