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

@rmwc/menu

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/menu - npm Package Compare versions

Comparing version 2.2.2 to 3.0.0

4

index.d.ts

@@ -70,3 +70,3 @@ import { SimpleTagPropsT, CustomEventT } from '@rmwc/base';

initialSyncWithDOM(): void;
destroy(): void;
destroy(): void; /** Opens the menu. */
getDefaultFoundation(): {

@@ -167,3 +167,3 @@ adapter_: {};

initialSyncWithDOM(): void;
destroy(): void;
destroy(): void; /** Opens the menu. */
getDefaultFoundation(): {

@@ -170,0 +170,0 @@ adapter_: {};

@@ -137,2 +137,12 @@ 'use strict';

this.menuSurface_.listen(_mdc2.MDCMenuSurfaceFoundation.strings.CLOSED_EVENT, this.onCloseHandler_);
if (this.foundation_) {
this.foundation_.preventDefaultEvent_ = function (evt) {
var target = evt.target;
var tagName = ('' + target.tagName).toLowerCase();
if (['input', 'button', 'textarea', 'select', 'a'].indexOf(tagName) === -1) {
evt.preventDefault();
}
};
}
}

@@ -139,0 +149,0 @@ }, {

{
"name": "@rmwc/menu",
"version": "2.2.2",
"version": "3.0.0",
"description": "RMWC Menu component",

@@ -29,7 +29,7 @@ "main": "index.js",

"dependencies": {
"@material/menu": "~0.39.0",
"@material/menu-surface": "~0.39.0",
"@rmwc/base": "^2.2.0",
"@rmwc/list": "^2.2.2"
"@material/menu": "~0.40.0",
"@material/menu-surface": "~0.40.0",
"@rmwc/base": "^3.0.0",
"@rmwc/list": "^3.0.0"
}
}

@@ -89,7 +89,8 @@ # Menus

```jsx renderOnly
import { DocumentComponent } from '@rmwc/base/utils/DocumentComponent';
import { DocumentComponent } from '@rmwc/base/utils/document-component';
import * as docs from './docgen.json';
import * as listDocs from '@rmwc/list//docgen.json';
<DocumentComponent docs={docs} displayName="Menu" />
<DocumentComponent docs={docs} displayName="MenuItem" composes={['ListItem']}/>
<DocumentComponent docs={[docs, listDocs]} displayName="MenuItem" composes={['ListItem']}/>
<DocumentComponent docs={docs} displayName="MenuSurface" />

@@ -96,0 +97,0 @@ <DocumentComponent docs={docs} displayName="MenuSurfaceAnchor" />

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