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 6.1.3 to 6.2.0-beta.0

4

CHANGELOG.md

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

## 6.2.0 (2022-11-09)
- Added `noMouseHighlight` prop to MenuItem to allow keyboard highlighting to be tracked separately from mouse hover.
## 6.1.3 (2022-08-11)

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

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

highlightedStyle?: Object;
noMouseHighlight?: boolean;

@@ -55,0 +56,0 @@ index?: number;

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

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

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

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

@@ -217,3 +227,3 @@ }

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

@@ -239,2 +249,3 @@ role: "menuitem",

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

@@ -248,2 +259,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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ZpZXdJZk5lZWRlZCgpO1xuICAgICAgICAgICAgfSBlbHNlIGlmIChlbC5zY3JvbGxJbnRvVmlldykge1xuICAgICAgICAgICAgICBlbC5zY3JvbGxJbnRvVmlldygpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIGlmICh0aGlzLnByb3BzLm9uSGlnaGxpZ2h0Q2hhbmdlKSB7XG4gICAgICAgICAgdGhpcy5wcm9wcy5vbkhpZ2hsaWdodENoYW5nZShoaWdobGlnaHRlZCwge1xuICAgICAgICAgICAgYnlLZXlib2FyZDogYnlLZXlib2FyZCA9PSBudWxsID8gdW5kZWZpbmVkIDogYnlLZXlib2FyZCxcbiAgICAgICAgICAgIHByZXZDdXJzb3JMb2NhdGlvbjogcHJldkN1cnNvckxvY2F0aW9uID09IG51bGwgPyB1bmRlZmluZWQgOiBwcmV2Q3Vyc29yTG9jYXRpb24sXG4gICAgICAgICAgICBkaXJlY3Rpb246IGRpcmVjdGlvbiA9PSBudWxsID8gdW5kZWZpbmVkIDogZGlyZWN0aW9uXG4gICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgICBub3RpZnlFdmVudDogKGV2ZW50OiBNZW51RXZlbnQpID0+IHtcbiAgICAgICAgc3dpdGNoIChldmVudC50eXBlKSB7XG4gICAgICAgIGNhc2UgJ2Nob3Nlbic6XG4gICAgICAgIC8vIFRPRE8gUmVhY3RET00udW5zdGFibGVfYmF0Y2hlZFVwZGF0ZXNcbiAgICAgICAgICAvKjo6IGlmICghKGV2ZW50IGluc3RhbmNlb2YgQ2hvc2VuRXZlbnQpKSB0aHJvdyBuZXcgRXJyb3IoKTsgKi9cbiAgICAgICAgICBpZiAodGhpcy5wcm9wcy5vbkl0ZW1DaG9zZW4pIHRoaXMucHJvcHMub25JdGVtQ2hvc2VuKGV2ZW50KTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnbGVmdCc6XG4gICAgICA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gYnlLZXlib2FyZDogP2Jvb2xlYW4sIGRpcmVjdGlvbjogP0RpcmVjdGlvbiwgcHJldkN1cnNvckxvY2F0aW9uOiA/UmVjdCkgPT4ge1xuICAgICAgICB0aGlzLnNldFN0YXRlKHtoaWdobGlnaHRlZH0sICgpID0+IHtcbiAgICAgICAgICBpZiAoaGlnaGxpZ2h0ZWQgJiYgYnlLZXlib2FyZCkge1xuICAgICAgICAgICAgY29uc3QgZWwgPSB0aGlzLl9lbDtcbiAgICAgICAgICAgIC8qOjogaWYgKCFlbCkgdGhyb3cgbmV3IEVycm9yKCk7ICovXG4gICAgICAgICAgICBpZiAodHlwZW9mIChlbDogYW55KS5zY3JvbGxJbnRvVmlld0lmTmVlZGVkID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICAgICAgICAgIChlbDogYW55KS5zY3JvbGxJbnRvVmlld0lmTmVlZGVkKCk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKGVsLnNjcm9sbEludG9WaWV3KSB7XG4gICAgICAgICAgICAgIGVsLnNjcm9sbEludG9WaWV3KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHRoaXMucHJvcHMub25IaWdobGlnaHRDaGFuZ2UpIHtcbiAgICAgICAgICB0aGlzLnByb3BzLm9uSGlnaGxpZ2h0Q2hhbmdlKGhpZ2hsaWdodGVkLCB7XG4gICAgICAgICAgICBieUtleWJvYXJkOiBieUtleWJvYXJkID09IG51bGwgPyB1bmRlZmluZWQgOiBieUtleWJvYXJkLFxuICAgICAgICAgICAgcHJldkN1cnNvckxvY2F0aW9uOiBwcmV2Q3Vyc29yTG9jYXRpb24gPT0gbnVsbCA/IHVuZGVmaW5lZCA6IHByZXZDdXJzb3JMb2NhdGlvbixcbiAgICAgICAgICAgIGRpcmVjdGlvbjogZGlyZWN0aW9uID09IG51bGwgPyB1bmRlZmluZWQgOiBkaXJlY3Rpb25cbiAgICAgICAgICB9KTtcbiAgIC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gICAgICAge2NoaWxkcmVufVxuICAgICAgPC9kaXY+XG4gICAgKTtcbiAgfVxufVxuIl19

2

package.json
{
"name": "react-menu-list",
"version": "6.1.3",
"version": "6.2.0-beta.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