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

@vaadin/a11y-base

Package Overview
Dependencies
Maintainers
12
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/a11y-base - npm Package Compare versions

Comparing version 24.1.0-alpha4 to 24.1.0-alpha5

6

package.json
{
"name": "@vaadin/a11y-base",
"version": "24.1.0-alpha4",
"version": "24.1.0-alpha5",
"publishConfig": {

@@ -35,3 +35,3 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "24.1.0-alpha4",
"@vaadin/component-base": "24.1.0-alpha5",
"lit": "^2.0.0"

@@ -44,3 +44,3 @@ },

},
"gitHead": "4494259f3b7532acb604a3048d5b29a4e14b9ca5"
"gitHead": "1ab6c977fe239d94aac5f39940c1a4722ad4bb63"
}

@@ -8,2 +8,8 @@ /**

/**
* Returns the actually focused element by traversing shadow
* trees recursively to ensure it's the leaf element.
*/
export declare function getDeepActiveElement(): Element;
/**
* Returns true if the window has received a keydown

@@ -10,0 +16,0 @@ * event since the last mousedown event.

@@ -30,2 +30,16 @@ /**

/**
* Returns the actually focused element by traversing shadow
* trees recursively to ensure it's the leaf element.
*
* @return {Element}
*/
export function getDeepActiveElement() {
let host = document.activeElement || document.body;
while (host.shadowRoot && host.shadowRoot.activeElement) {
host = host.shadowRoot.activeElement;
}
return host;
}
/**
* Returns true if the window has received a keydown

@@ -32,0 +46,0 @@ * event since the last mousedown event.

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