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

aria-voyager

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aria-voyager - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

16

dist/index.js

@@ -653,2 +653,3 @@ // src/controls/-utils.ts

navigateWithPointer(event) {
const target = event.target;
if (event.type === "pointerover") {

@@ -666,8 +667,9 @@ this.control.items.filter((item) => item !== this.control.activeItem).filter((item) => item.hasAttribute("popovertarget")).forEach((item) => {

} else if (event.type === "pointerout") {
const target = event.target;
if (target === this.control.element && event.relatedTarget === this.control.element[OPENER]) {
event.relatedTarget.focus();
}
} else if (event.type === "pointerup" && !this.control.activeItem?.hasAttribute("popovertarget")) {
window.setTimeout(() => this.closeRootMenu(), 0);
} else if (event.type === "pointerup") {
if (this.control.items.find((item) => item.contains(target)) && !this.control.activeItem?.hasAttribute("popovertarget")) {
window.setTimeout(() => this.closeRootMenu(), 0);
}
}

@@ -823,3 +825,9 @@ }

readItems() {
this.items = [...this.element.querySelectorAll('& > [role="menuitem"]')];
const items = this.element.querySelectorAll(
'[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]'
);
this.items = Array.from(items).filter((item) => {
const closestMenu = item.closest('menu,[role="menu"]');
return !closestMenu || closestMenu === this.element;
});
this.focusStrategy.updateItems();

@@ -826,0 +834,0 @@ }

{
"name": "aria-voyager",
"version": "0.0.2",
"version": "0.0.3",
"description": "A framework agnostic / universal package that implements navigation patterns for various aria roles and features",

@@ -28,22 +28,22 @@ "author": "gossi",

"@gossi/config-prettier": "0.9.0",
"@hokulea/core": "^0.1.0",
"@hokulea/theme-moana": "^0.0.2",
"@hokulea/core": "^0.1.2",
"@hokulea/theme-moana": "^0.0.3",
"@swc/cli": "0.4.0",
"@swc/core": "1.7.6",
"@swc/core": "1.7.36",
"@testing-library/dom": "10.4.0",
"@types/css-modules": "1.0.5",
"@types/eslint": "9.6.0",
"@types/eslint": "9.6.1",
"@types/lodash.isequal": "4.5.8",
"@types/uuid": "10.0.0",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-istanbul": "^2.0.5",
"@vitest/ui": "^2.0.5",
"concurrently": "8.2.2",
"eslint": "8.57.0",
"@vitest/browser": "^2.1.3",
"@vitest/coverage-istanbul": "^2.1.3",
"@vitest/ui": "^2.1.3",
"concurrently": "9.0.1",
"eslint": "8.57.1",
"prettier": "3.3.3",
"tsup": "8.2.4",
"typescript": "5.5.4",
"vite": "5.3.5",
"vitest": "^2.0.5",
"webdriverio": "^8.39.1"
"tsup": "8.3.0",
"typescript": "5.6.3",
"vite": "5.4.9",
"vitest": "^2.1.3",
"webdriverio": "^9.2.1"
},

@@ -50,0 +50,0 @@ "engines": {

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