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

@material/drawer

Package Overview
Dependencies
Maintainers
14
Versions
1688
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/drawer - npm Package Compare versions

Comparing version 15.0.0-canary.16fbd30ff.0 to 15.0.0-canary.1728a6dcf.0

2

CHANGELOG.md

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

# [15.0.0-canary.16fbd30ff.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.16fbd30ff.0) (2023-01-26)
# [15.0.0-canary.1728a6dcf.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.1728a6dcf.0) (2023-09-26)
**Note:** Version bump only for package @material/drawer

@@ -97,7 +97,7 @@ /**

}
this.handleKeydown = function (evt) {
_this.foundation.handleKeydown(evt);
this.handleKeydown = function (event) {
_this.foundation.handleKeydown(event);
};
this.handleTransitionEnd = function (evt) {
_this.foundation.handleTransitionEnd(evt);
this.handleTransitionEnd = function (event) {
_this.foundation.handleTransitionEnd(event);
};

@@ -104,0 +104,0 @@ this.listen('keydown', this.handleKeydown);

@@ -75,7 +75,7 @@ /**

*/
handleKeydown(evt: KeyboardEvent): void;
handleKeydown(event: KeyboardEvent): void;
/**
* Handles the `transitionend` event when the drawer finishes opening/closing.
*/
handleTransitionEnd(evt: TransitionEvent): void;
handleTransitionEnd(event: TransitionEvent): void;
/**

@@ -82,0 +82,0 @@ * Extension point for when drawer finishes open animation.

@@ -129,4 +129,4 @@ /**

*/
MDCDismissibleDrawerFoundation.prototype.handleKeydown = function (evt) {
var keyCode = evt.keyCode, key = evt.key;
MDCDismissibleDrawerFoundation.prototype.handleKeydown = function (event) {
var keyCode = event.keyCode, key = event.key;
var isEscape = key === 'Escape' || keyCode === 27;

@@ -140,8 +140,8 @@ if (isEscape) {

*/
MDCDismissibleDrawerFoundation.prototype.handleTransitionEnd = function (evt) {
MDCDismissibleDrawerFoundation.prototype.handleTransitionEnd = function (event) {
var OPENING = cssClasses.OPENING, CLOSING = cssClasses.CLOSING, OPEN = cssClasses.OPEN, ANIMATE = cssClasses.ANIMATE, ROOT = cssClasses.ROOT;
// In Edge, transitionend on ripple pseudo-elements yields a target without
// classList, so check for Element first.
var isRootElement = this.isElement(evt.target) &&
this.adapter.elementHasClass(evt.target, ROOT);
var isRootElement = this.isElement(event.target) &&
this.adapter.elementHasClass(event.target, ROOT);
if (!isRootElement) {

@@ -148,0 +148,0 @@ return;

{
"name": "@material/drawer",
"version": "15.0.0-canary.16fbd30ff.0",
"version": "15.0.0-canary.1728a6dcf.0",
"description": "The Material Components Web drawer component",

@@ -21,16 +21,16 @@ "license": "MIT",

"dependencies": {
"@material/animation": "15.0.0-canary.16fbd30ff.0",
"@material/base": "15.0.0-canary.16fbd30ff.0",
"@material/dom": "15.0.0-canary.16fbd30ff.0",
"@material/elevation": "15.0.0-canary.16fbd30ff.0",
"@material/feature-targeting": "15.0.0-canary.16fbd30ff.0",
"@material/list": "15.0.0-canary.16fbd30ff.0",
"@material/ripple": "15.0.0-canary.16fbd30ff.0",
"@material/rtl": "15.0.0-canary.16fbd30ff.0",
"@material/shape": "15.0.0-canary.16fbd30ff.0",
"@material/theme": "15.0.0-canary.16fbd30ff.0",
"@material/typography": "15.0.0-canary.16fbd30ff.0",
"@material/animation": "15.0.0-canary.1728a6dcf.0",
"@material/base": "15.0.0-canary.1728a6dcf.0",
"@material/dom": "15.0.0-canary.1728a6dcf.0",
"@material/elevation": "15.0.0-canary.1728a6dcf.0",
"@material/feature-targeting": "15.0.0-canary.1728a6dcf.0",
"@material/list": "15.0.0-canary.1728a6dcf.0",
"@material/ripple": "15.0.0-canary.1728a6dcf.0",
"@material/rtl": "15.0.0-canary.1728a6dcf.0",
"@material/shape": "15.0.0-canary.1728a6dcf.0",
"@material/theme": "15.0.0-canary.1728a6dcf.0",
"@material/typography": "15.0.0-canary.1728a6dcf.0",
"tslib": "^2.1.0"
},
"gitHead": "f4c39ff05bbd1045563670b4ea50b0be51a91d01"
"gitHead": "3828aedf4f344a948780a69956ca4f069cef3daa"
}

@@ -507,5 +507,5 @@ <!--docs:

--- | ---
`emit(evtType: string, evtData: T, shouldBubble?: boolean) => void` | Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.
`listen(evtType: K, handler: SpecificEventListener<K>, options?: AddEventListenerOptions \| boolean) => void` | Wrapper method to add an event listener to the component's root element. This is most useful when listening for custom events.
`unlisten(evtType: K, handler: SpecificEventListener<K>, options?: AddEventListenerOptions \| boolean) => void` | Wrapper method to remove an event listener to the component's root element. This is most useful when unlistening for custom events.
`emit(eventType: string, eventData: T, shouldBubble?: boolean) => void` | Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.
`listen(eventType: K, handler: SpecificEventListener<K>, options?: AddEventListenerOptions \| boolean) => void` | Wrapper method to add an event listener to the component's root element. This is most useful when listening for custom events.
`unlisten(eventType: K, handler: SpecificEventListener<K>, options?: AddEventListenerOptions \| boolean) => void` | Wrapper method to remove an event listener to the component's root element. This is most useful when unlistening for custom events.

@@ -552,4 +552,4 @@ #### Properties

`close() => void` | Closes the drawer from the open state.
`handleKeydown(evt: KeyboardEvent) => void` | Keydown handler to close drawer when key is escape.
`handleTransitionEnd(evt: TransitionEvent) => void` | Handles the `transitionend` event when the drawer finishes opening/closing.
`handleKeydown(event: KeyboardEvent) => void` | Keydown handler to close drawer when key is escape.
`handleTransitionEnd(event: TransitionEvent) => void` | Handles the `transitionend` event when the drawer finishes opening/closing.
`closed_() => void` | Extension point for when drawer finishes close animation.

@@ -569,5 +569,5 @@ `isClosing() => boolean` | Returns true if the drawer is animating closed.

`close() => void` | Closes the drawer from the open state.
`handleKeydown(evt: KeyboardEvent) => void` | Keydown handler to close drawer when key is escape.
`handleKeydown(event: KeyboardEvent) => void` | Keydown handler to close drawer when key is escape.
`handleScrimClick() => void` | Handles click event on scrim.
`handleTransitionEnd(evt: TransitionEvent) => void` | Handles the `transitionend` event when the drawer finishes opening/closing.
`handleTransitionEnd(event: TransitionEvent) => void` | Handles the `transitionend` event when the drawer finishes opening/closing.
`closed_() => void` | Called when drawer finishes close animation.

@@ -574,0 +574,0 @@ `isClosing() => boolean` | Returns true if the drawer is animating closed.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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

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