@yamada-ui/use-focus-visible
Advanced tools
Comparing version 1.1.14 to 1.1.15-dev-20250223070525
@@ -82,6 +82,14 @@ "use client" | ||
const { focus } = HTMLElement.prototype; | ||
HTMLElement.prototype.focus = function customFocus(...args) { | ||
hasEventBeforeFocus = true; | ||
if (this) focus.apply(this, args); | ||
}; | ||
if (process.env.NODE_ENV !== "test") { | ||
Object.defineProperties(HTMLElement.prototype, { | ||
focus: { | ||
configurable: false, | ||
value: function customFocus(...args) { | ||
hasEventBeforeFocus = true; | ||
if (this) focus.apply(this, args); | ||
}, | ||
writable: false | ||
} | ||
}); | ||
} | ||
document.addEventListener("keydown", onKeyboard, true); | ||
@@ -88,0 +96,0 @@ document.addEventListener("keyup", onKeyboard, true); |
{ | ||
"name": "@yamada-ui/use-focus-visible", | ||
"version": "1.1.14", | ||
"version": "1.1.15-dev-20250223070525", | ||
"description": "Yamada UI useFocusVisible custom hook", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/utils": "1.7.0" | ||
"@yamada-ui/utils": "1.7.1-dev-20250223070525" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
26005
256
1
2
+ Added@yamada-ui/utils@1.7.1-dev-20250223070525(transitive)
- Removed@yamada-ui/utils@1.7.0(transitive)