aria-voyager
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -165,4 +165,9 @@ // src/controls/-utils.ts | ||
// src/navigation-patterns/active-descendent-strategy.ts | ||
import { v4 as uuidv4 } from "uuid"; | ||
// src/utils.ts | ||
function uniqueId() { | ||
return ("30000000-1000-4000-2000" + -1e11).replace( | ||
/[0-3]/g, | ||
(a) => (a * 4 ^ Math.random() * 16 >> (a & 2)).toString(16) | ||
); | ||
} | ||
@@ -243,3 +248,3 @@ // src/navigation-patterns/focus-strategy.ts | ||
if (!item.id) { | ||
item.id = uuidv4(); | ||
item.id = uniqueId(); | ||
} | ||
@@ -953,4 +958,4 @@ } | ||
); | ||
this.ensureSelection(); | ||
this.focusStrategy.updateItems(); | ||
this.ensureSelection(); | ||
} | ||
@@ -957,0 +962,0 @@ readSelection() { |
{ | ||
"name": "aria-voyager", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A framework agnostic / universal package that implements navigation patterns for various aria roles and features", | ||
@@ -23,4 +23,3 @@ "author": "gossi", | ||
"dependencies": { | ||
"lodash.isequal": "^4.5.0", | ||
"uuid": "^11.0.0" | ||
"lodash.isequal": "^4.5.0" | ||
}, | ||
@@ -38,3 +37,2 @@ "devDependencies": { | ||
"@types/lodash.isequal": "4.5.8", | ||
"@types/uuid": "10.0.0", | ||
"@vitest/browser": "^2.1.8", | ||
@@ -41,0 +39,0 @@ "@vitest/coverage-istanbul": "^2.1.8", |
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
87514
1
22
2328
- Removeduuid@^11.0.0
- Removeduuid@11.0.3(transitive)