@zag-js/focus-visible 1.45.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -138,6 +138,7 @@ function patchFocusMethod(win) {
138
138
  const nativeFocus = win.HTMLElement.prototype.focus;
139
139
  Object.defineProperty(win.HTMLElement.prototype, "focus", {
140
140
  configurable: true,
141
+ writable: true,
141
142
  value: patchedFocus2
142
143
  });
143
144
  return nativeFocus;
@@ -189,6 +190,7 @@ var tearDownWindowFocusTracking = (root, loadListener) => {
189
190
  try {
190
191
  Object.defineProperty(win.HTMLElement.prototype, "focus", {
191
192
  configurable: true,
193
+ writable: true,
192
194
  value: listenerData.focus
193
195
  });
194
196
  } catch {
package/dist/index.mjs CHANGED
@@ -108,6 +108,7 @@ function patchFocusMethod(win) {
108
108
  const nativeFocus = win.HTMLElement.prototype.focus;
109
109
  Object.defineProperty(win.HTMLElement.prototype, "focus", {
110
110
  configurable: true,
111
+ writable: true,
111
112
  value: patchedFocus2
112
113
  });
113
114
  return nativeFocus;
@@ -159,6 +160,7 @@ var tearDownWindowFocusTracking = (root, loadListener) => {
159
160
  try {
160
161
  Object.defineProperty(win.HTMLElement.prototype, "focus", {
161
162
  configurable: true,
163
+ writable: true,
162
164
  value: listenerData.focus
163
165
  });
164
166
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/focus-visible",
3
- "version": "1.45.0",
3
+ "version": "1.46.0",
4
4
  "description": "Focus visible polyfill utility based on WICG",
5
5
  "keywords": [
6
6
  "js",
@@ -28,7 +28,7 @@
28
28
  "clean-package": "../../../clean-package.config.json",
29
29
  "main": "dist/index.js",
30
30
  "dependencies": {
31
- "@zag-js/dom-query": "1.45.0"
31
+ "@zag-js/dom-query": "1.46.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "clean-package": "2.2.0"