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.11f3d280e.0 to 15.0.0-canary.127a44b28.0

3

announce.js

@@ -77,4 +77,3 @@ /**

var existingLiveRegion = documentLiveRegions.get(priority);
if (existingLiveRegion &&
ownerDocument.body.contains(existingLiveRegion)) {
if (existingLiveRegion && ownerDocument.body.contains(existingLiveRegion)) {
return existingLiveRegion;

@@ -81,0 +80,0 @@ }

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

# [15.0.0-canary.11f3d280e.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.11f3d280e.0) (2023-03-15)
# [15.0.0-canary.127a44b28.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.127a44b28.0) (2023-10-12)

@@ -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.11f3d280e.0",
"version": "15.0.0-canary.127a44b28.0",
"license": "MIT",

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

"dependencies": {
"@material/feature-targeting": "15.0.0-canary.11f3d280e.0",
"@material/rtl": "15.0.0-canary.11f3d280e.0",
"@material/feature-targeting": "15.0.0-canary.127a44b28.0",
"@material/rtl": "15.0.0-canary.127a44b28.0",
"tslib": "^2.1.0"
},
"gitHead": "8e5a0971e8b535be016fdfe963b22dbcf1353e53"
"gitHead": "88d1fc2c5354e751ea3ab567d26bb1886ee152d3"
}

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

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