Socket
Socket
Sign inDemoInstall

@material/dom

Package Overview
Dependencies
Maintainers
14
Versions
1652
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/dom - npm Package Compare versions

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

2

CHANGELOG.md

@@ -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 @@

@@ -506,4 +506,4 @@ /**

*/
function normalizeKey(evt) {
var key = evt.key;
function normalizeKey(event) {
var key = event.key;
// If the event already has a normalized key, return it

@@ -514,3 +514,3 @@ if (normalizedKeys.has(key)) {

// tslint:disable-next-line:deprecation
var mappedKey = mappedKeyCodes.get(evt.keyCode);
var mappedKey = mappedKeyCodes.get(event.keyCode);
if (mappedKey) {

@@ -525,4 +525,4 @@ return mappedKey;

*/
function isNavigationEvent(evt) {
return navigationKeys.has(normalizeKey(evt));
function isNavigationEvent(event) {
return navigationKeys.has(normalizeKey(event));
}

@@ -529,0 +529,0 @@ exports.isNavigationEvent = isNavigationEvent;

@@ -46,6 +46,6 @@ /**

*/
export declare function normalizeKey(evt: KeyboardEvent): string;
export declare function normalizeKey(event: KeyboardEvent): string;
/**
* isNavigationEvent returns whether the event is a navigation event
*/
export declare function isNavigationEvent(evt: KeyboardEvent): boolean;
export declare function isNavigationEvent(event: KeyboardEvent): boolean;

@@ -107,4 +107,4 @@ /**

*/
export function normalizeKey(evt) {
var key = evt.key;
export function normalizeKey(event) {
var key = event.key;
// If the event already has a normalized key, return it

@@ -115,3 +115,3 @@ if (normalizedKeys.has(key)) {

// tslint:disable-next-line:deprecation
var mappedKey = mappedKeyCodes.get(evt.keyCode);
var mappedKey = mappedKeyCodes.get(event.keyCode);
if (mappedKey) {

@@ -125,5 +125,5 @@ return mappedKey;

*/
export function isNavigationEvent(evt) {
return navigationKeys.has(normalizeKey(evt));
export function isNavigationEvent(event) {
return navigationKeys.has(normalizeKey(event));
}
//# sourceMappingURL=keyboard.js.map
{
"name": "@material/dom",
"description": "DOM manipulation utilities for Material Components for the web",
"version": "15.0.0-canary.d0788120f.0",
"version": "15.0.0-canary.d153db62b.0",
"license": "MIT",

@@ -18,7 +18,7 @@ "main": "dist/mdc.dom.js",

"dependencies": {
"@material/feature-targeting": "15.0.0-canary.d0788120f.0",
"@material/rtl": "15.0.0-canary.d0788120f.0",
"@material/feature-targeting": "15.0.0-canary.d153db62b.0",
"@material/rtl": "15.0.0-canary.d153db62b.0",
"tslib": "^2.1.0"
},
"gitHead": "7eccbee262206623b89c40dadb4e11abe30d5e45"
"gitHead": "4ca05c144c691cd06cd5926fe0bc54818e462202"
}

@@ -72,4 +72,4 @@ <!--docs:

--- | ---
`normalizeKey(evt: KeyboardEvent) => string` | Returns a normalized string derived from `KeyboardEvent`'s `keyCode` property to be standard across browsers.
`isNavigationEvent(evt: KeyboardEvent) => boolean` | Returns `true` if the event is a navigation event (Page Up, Page Down, Home, End, Left, Up, Right, Down).
`normalizeKey(event: KeyboardEvent) => string` | Returns a normalized string derived from `KeyboardEvent`'s `keyCode` property to be standard across browsers.
`isNavigationEvent(event: KeyboardEvent) => boolean` | Returns `true` if the event is a navigation event (Page Up, Page Down, Home, End, Left, Up, Right, Down).

@@ -76,0 +76,0 @@ ## Mixins

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