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

react-menu-list

Package Overview
Dependencies
Maintainers
6
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 7.2.0-beta.0 to 7.2.0

4

CHANGELOG.md

@@ -1,5 +0,1 @@

## 7.2.0 (2022-11-10)
- Added `noMouseHighlight` prop to MenuItem to allow keyboard highlighting to be tracked separately from mouse hover.
## 7.1.0 (2022-11-09)

@@ -6,0 +2,0 @@

@@ -60,3 +60,2 @@ import * as React from 'react';

highlightedStyle?: Object;
noMouseHighlight?: boolean;

@@ -63,0 +62,0 @@ index?: number;

@@ -111,6 +111,2 @@ "use strict";

if (!byKeyboard && this.props.noMouseHighlight) {
return;
}
this._menuListHandle.highlight(byKeyboard);

@@ -121,8 +117,2 @@ }

value: function unhighlight() {
var byKeyboard = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
if (!byKeyboard && this.props.noMouseHighlight) {
return;
}
this._menuListHandle.unhighlight();

@@ -229,3 +219,3 @@ }

onMouseLeave: onMouseLeave || function () {
return _this3.unhighlight(false);
return _this3.unhighlight();
},

@@ -251,3 +241,2 @@ role: "menuitem",

highlightedStyle: _propTypes["default"].object,
noMouseHighlight: _propTypes["default"].bool,
index: _propTypes["default"].number,

@@ -261,2 +250,2 @@ onMouseLeave: _propTypes["default"].func,

(0, _defineProperty2["default"])(MenuItem, "contextType", _MenuList.MenuListContext);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9NZW51SXRlbS5qcyJdLCJuYW1lcyI6WyJNZW51SXRlbSIsImhpZ2hsaWdodGVkIiwiZWwiLCJfZWwiLCJwcm9wcyIsImRvbVJlZiIsInN0YXRlIiwiX21lbnVMaXN0SGFuZGxlIiwidGFrZUtleWJvYXJkIiwicmVsZWFzZUtleWJ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B7XG4gICAgY29uc3QgZWwgPSB0aGlzLl9lbDtcbiAgICAvKjo6IGlmICghZWwpIHRocm93IG5ldyBFcnJvcigpOyAqL1xuXG4gICAgdGhpcy5fbWVudUxpc3RIYW5kbGUgPSAodGhpcy5jb250ZXh0OiBNZW51TGlzdENvbnRleHRWYWx1ZSkucmVnaXN0ZXJJdGVtKFxuICAgICAgdGhpcy5wcm9wcyxcbiAgICAgIHtcbiAgICAgICAgbm90aWZ5SGlnaGxpZ2h0ZWQ6IChcbiAgICAgICAgICBoaWdobGlnaHRlZDogYm9vbGVhbixcbiAgICAgICAgICBieUtleWJvYXJkOiA/Ym9vbGVhbixcbiAgICAgICAgICBkaXJlY3Rpb246ID9EaXJlY3Rpb24sXG4gICAgICAgICAgcHJldkN1cnNvckxvY2F0aW9uOiA/UmVjdFxuICAgICAgICApID0+IHtcbiAgICAgICAgICB0aGlzLnNldFN0YXRlKHtoaWdobGlnaHRlZH0sICgpID0+IHtcbiAgICAgICAgICAgIGlmIChoaWdobGlnaHRlZCAmJiBieUtleWJvYXJkKSB7XG4gICAgICAgICAgICAgIGNvbnN0IGVsID0gdGhpcy5fZWw7XG4gICAgICAgICAgICAgIC8qOjogaWYgKCFlbCkgdGhyb3cgbmV3IEVycm9yKCk7ICovXG4gICAgICAgICAgICAgIGlmICh0eXBlb2YgKGVsOiBhbnkpLnNjcm9sbEludG9WaWV3SWZOZWVkZWQgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICAgICAgICAoZWw6IGFueSkuc2Nyb2xsSW50b1ZpZXdJZk5lZWRlZCgpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKGVsLnNjcm9sbEludG9WaWV3KSB7XG4gICAgICAgICAgICAgICAgZWwuc2Nyb2xsSW50b1ZpZXcoKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGlmICh0aGlzLnByb3BzLm9uSGlnaGxpZ2h0Q2hhbmdlK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xJbnRvVmlldygpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgICAgaWYgKHRoaXMucHJvcHMub25IaWdobGlnaHRDaGFuZ2UpIHtcbiAgICAgICAgICAgIHRoaXMucHJvcHMub25IaWdobGlnaHRDaGFuZ2UoaGlnaGxpZ2h0ZWQsIHtcbiAgICAgICAgICAgICAgYnlLZXlib2FyZDogYnlLZXlib2FyZCA9PSBudWxsID8gdW5kZWZpbmVkIDogYnlLZXlib2FyZCxcbiAgICAgICAgICAgICAgcHJldkN1cnNvckxvY2F0aW9uOlxuICAgICAgICAgICAgICAgIHByZXZDdXJzb3JMb2NhdGlvbiA9PSBudWxsID8gdW5kZWZpbmVkIDogcHJldkN1cnNvckxvY2F0aW9uLFxuICAgICAgICAgICAgICBkaXJlY3Rpb246IGRpcmVjdGlvbiA9PSBudWxsID8gdW5kZWZpbmVkIDogZGlyZWN0aW9uLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBub3RpZnlFdmVudDogKGV2ZW50OiBNZW51RXZlbnQpID0+IHtcbiAgICAgICAgICBzd2l0Y2ggKGV2ZW50LnR5cGUpIHtcbiAgICAgICAgICAgIGNhc2UgJ2Nob3Nlbic6XG4gICAgICAgICAgICAgIC8qOjogaWYgKCEoZXZlbnQgaW5zdGFuY2VvZiBDaG9zZW5FdmVudCkpIHRocm93IG5ldyBFcnJvcigpOyAqL1xuICAgICAgICAgICAgICBpZiAodGhpcy5wcm9wcy5vbkl0ZW1DaG9zZW4pIHRoaXMucHJvcHMub25JdGVtQ2hvc2VuKGV2ZW50KTtcbiAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdsZWZ0JzpcbiAgICAgICAgICAgICAgaWYgKHRoaXMucHJvcHMub25MZWZ0UHVzaGVkKSB0aGlzLnByb3BzLm9uTGVmdFB1c2hlZChldmVudCk7XG4gICAgICAgICAgICA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gICAgICA8ZGl2XG4gICAgICAgIHJlZj17dGhpcy5fZWxTZXR0ZXJ9XG4gICAgICAgIHN0eWxlPXtzdHlsZX1cbiAgICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgICAgIG9uQ2xpY2s9eygpID0+IHRoaXMuX21lbnVMaXN0SGFuZGxlLml0ZW1DaG9zZW4oKX1cbiAgICAgICAgb25Nb3VzZUVudGVyPXsoKSA9PiB0aGlzLmhpZ2hsaWdodChmYWxzZSl9XG4gICAgICAgIG9uTW91c2VMZWF2ZT17b25Nb3VzZUxlYXZlIHx8ICgoKSA9PiB0aGlzLnVuaGlnaGxpZ2h0KCkpfVxuICAgICAgICByb2xlPVwibWVudWl0ZW1cIlxuICAgICAgICBhcmlhLWhhc3BvcHVwPXt0aGlzLnByb3BzWydhcmlhLWhhc3BvcHVwJ119XG4gICAgICAgIGFyaWEtZXhwYW5kZWQ9e3RoaXMucHJvcHNbJ2FyaWEtZXhwYW5kZWQnXX1cbiAgICAgID5cbiAgICAgICAge2NoaWxkcmVufVxuICAgICAgPC9kaXY+XG4gICAgKTtcbiAgfVxufVxuIl19

2

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

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

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