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

@material/menu-surface

Package Overview
Dependencies
Maintainers
14
Versions
1656
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/menu-surface - npm Package Compare versions

Comparing version 15.0.0-canary.d0788120f.0 to 15.0.0-canary.d153db62b.0

4

adapter.d.ts

@@ -65,5 +65,5 @@ /**

/** Registers an event listener on the window. */
registerWindowEventHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void;
registerWindowEventHandler<K extends EventType>(eventType: K, handler: SpecificEventListener<K>): void;
/** Deregisters an event listener on the window. */
deregisterWindowEventHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void;
deregisterWindowEventHandler<K extends EventType>(eventType: K, handler: SpecificEventListener<K>): void;
}

@@ -6,3 +6,3 @@ # Change Log

# [15.0.0-canary.d0788120f.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.d0788120f.0) (2023-05-09)
# [15.0.0-canary.d153db62b.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.d153db62b.0) (2023-09-19)

@@ -9,0 +9,0 @@

@@ -201,7 +201,7 @@ /**

},
registerWindowEventHandler: function (evtType, handler) {
window.addEventListener(evtType, handler);
registerWindowEventHandler: function (eventType, handler) {
window.addEventListener(eventType, handler);
},
deregisterWindowEventHandler: function (evtType, handler) {
window.removeEventListener(evtType, handler);
deregisterWindowEventHandler: function (eventType, handler) {
window.removeEventListener(eventType, handler);
},

@@ -208,0 +208,0 @@ };

@@ -142,5 +142,5 @@ /**

/** Handle clicks and close if not within menu-surface element. */
handleBodyClick(evt: MouseEvent): void;
handleBodyClick(event: MouseEvent): void;
/** Handle keys that close the surface. */
handleKeydown(evt: KeyboardEvent): void;
handleKeydown(event: KeyboardEvent): void;
/** Handles resize events on the window. */

@@ -147,0 +147,0 @@ private handleResize;

@@ -283,4 +283,4 @@ /**

/** Handle clicks and close if not within menu-surface element. */
MDCMenuSurfaceFoundation.prototype.handleBodyClick = function (evt) {
var el = evt.target;
MDCMenuSurfaceFoundation.prototype.handleBodyClick = function (event) {
var el = event.target;
if (this.adapter.isElementInContainer(el)) {

@@ -292,4 +292,4 @@ return;

/** Handle keys that close the surface. */
MDCMenuSurfaceFoundation.prototype.handleKeydown = function (evt) {
var keyCode = evt.keyCode, key = evt.key;
MDCMenuSurfaceFoundation.prototype.handleKeydown = function (event) {
var keyCode = event.keyCode, key = event.key;
var isEscape = key === 'Escape' || keyCode === 27;

@@ -296,0 +296,0 @@ if (isEscape) {

{
"name": "@material/menu-surface",
"version": "15.0.0-canary.d0788120f.0",
"version": "15.0.0-canary.d153db62b.0",
"description": "The Material Components for the web menu surface component",

@@ -20,9 +20,9 @@ "license": "MIT",

"dependencies": {
"@material/animation": "15.0.0-canary.d0788120f.0",
"@material/base": "15.0.0-canary.d0788120f.0",
"@material/elevation": "15.0.0-canary.d0788120f.0",
"@material/feature-targeting": "15.0.0-canary.d0788120f.0",
"@material/rtl": "15.0.0-canary.d0788120f.0",
"@material/shape": "15.0.0-canary.d0788120f.0",
"@material/theme": "15.0.0-canary.d0788120f.0",
"@material/animation": "15.0.0-canary.d153db62b.0",
"@material/base": "15.0.0-canary.d153db62b.0",
"@material/elevation": "15.0.0-canary.d153db62b.0",
"@material/feature-targeting": "15.0.0-canary.d153db62b.0",
"@material/rtl": "15.0.0-canary.d153db62b.0",
"@material/shape": "15.0.0-canary.d153db62b.0",
"@material/theme": "15.0.0-canary.d153db62b.0",
"tslib": "^2.1.0"

@@ -33,3 +33,3 @@ },

},
"gitHead": "7eccbee262206623b89c40dadb4e11abe30d5e45"
"gitHead": "4ca05c144c691cd06cd5926fe0bc54818e462202"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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