@material/dom
Advanced tools
Comparing version 15.0.0-canary.419b23cc6.0 to 15.0.0-canary.423edc3dc.0
@@ -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.419b23cc6.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.419b23cc6.0) (2023-03-14) | ||
# [15.0.0-canary.423edc3dc.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.423edc3dc.0) (2024-06-26) | ||
@@ -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.419b23cc6.0", | ||
"version": "15.0.0-canary.423edc3dc.0", | ||
"license": "MIT", | ||
@@ -18,7 +18,7 @@ "main": "dist/mdc.dom.js", | ||
"dependencies": { | ||
"@material/feature-targeting": "15.0.0-canary.419b23cc6.0", | ||
"@material/rtl": "15.0.0-canary.419b23cc6.0", | ||
"@material/feature-targeting": "15.0.0-canary.423edc3dc.0", | ||
"@material/rtl": "15.0.0-canary.423edc3dc.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "3b1188210d22a02ba5ae948779bf92655e47aac3" | ||
"gitHead": "19b2c5a95782b4928b3aecb29a1075c42aee53e5" | ||
} |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113802
1358
+ Added@material/feature-targeting@15.0.0-canary.423edc3dc.0(transitive)
+ Added@material/rtl@15.0.0-canary.423edc3dc.0(transitive)
+ Added@material/theme@15.0.0-canary.423edc3dc.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.419b23cc6.0(transitive)
- Removed@material/rtl@15.0.0-canary.419b23cc6.0(transitive)
- Removed@material/theme@15.0.0-canary.419b23cc6.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.423edc3dc.0