power-focusable 2.2.0 → 2.2.1

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/README.md CHANGED
@@ -33,9 +33,9 @@ import { ... } 'https://unpkg.com/power-focusable/dist/index.js';
33
33
 
34
34
  ```ts
35
35
  interface PowerFocusableOptions {
36
- active?: HTMLElement | null; // default: document.activeElement
37
- composed?: boolean; // default: false
38
- wrap?: boolean; // default: false
36
+ active?: Element | null; // default: document.activeElement
37
+ composed?: boolean; // default: false
38
+ wrap?: boolean; // default: false
39
39
  }
40
40
  ```
41
41
 
@@ -65,9 +65,9 @@ Returns all focusable elements within the container.
65
65
 
66
66
  ```ts
67
67
  getFocusables(container);
68
- // => HTMLElement[]
68
+ // => Element[]
69
69
  //
70
- // container (optional): HTMLElement (default: <body>)
70
+ // container (optional): Element (default: <body>)
71
71
 
72
72
  // Traverses the composed tree (including shadow DOM; slower)
73
73
  getFocusables(container, { composed: true });
@@ -79,9 +79,9 @@ Returns the next focusable element within the container, starting from `document
79
79
 
80
80
  ```ts
81
81
  getNextFocusable(container);
82
- // => HTMLElement | null
82
+ // => Element | null
83
83
  //
84
- // container (optional): HTMLElement (default: <body>)
84
+ // container (optional): Element (default: <body>)
85
85
 
86
86
  // Specifies the starting element
87
87
  getNextFocusable(container, { active: document.querySelector('.button') });
@@ -99,9 +99,9 @@ Returns the previous focusable element within the container, starting from `docu
99
99
 
100
100
  ```ts
101
101
  getPreviousFocusable(container);
102
- // => HTMLElement | null
102
+ // => Element | null
103
103
  //
104
- // container (optional): HTMLElement (default: <body>)
104
+ // container (optional): Element (default: <body>)
105
105
 
106
106
  // Specifies the starting element
107
107
  getPreviousFocusable(container, { active: document.querySelector('.button') });
@@ -122,7 +122,7 @@ Returns whether the container contains at least one focusable element.
122
122
  hasFocusable(container);
123
123
  // => boolean
124
124
  //
125
- // container (optional): HTMLElement (default: <body>)
125
+ // container (optional): Element (default: <body>)
126
126
 
127
127
  // Traverses the composed tree (including shadow DOM; slower)
128
128
  hasFocusable(container, { composed: true });
@@ -136,6 +136,6 @@ Returns whether the given element is focusable.
136
136
  isFocusable(element);
137
137
  // => boolean
138
138
  //
139
- // element: HTMLElement
139
+ // element: Element
140
140
 
141
141
  ```
package/dist/index.cjs CHANGED
@@ -258,7 +258,7 @@ function isUngroupedRadio(element) {
258
258
  * High-precision focus management utility with shadow DOM support.
259
259
  * Handles complex focus rules including tabindex ordering, radio groups, etc.
260
260
  *
261
- * @version 2.2.0
261
+ * @version 2.2.1
262
262
  * @author Yusuke Kamiyamane
263
263
  * @license MIT
264
264
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * High-precision focus management utility with shadow DOM support.
4
4
  * Handles complex focus rules including tabindex ordering, radio groups, etc.
5
5
  *
6
- * @version 2.2.0
6
+ * @version 2.2.1
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * High-precision focus management utility with shadow DOM support.
4
4
  * Handles complex focus rules including tabindex ordering, radio groups, etc.
5
5
  *
6
- * @version 2.2.0
6
+ * @version 2.2.1
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -256,7 +256,7 @@ function isUngroupedRadio(element) {
256
256
  * High-precision focus management utility with shadow DOM support.
257
257
  * Handles complex focus rules including tabindex ordering, radio groups, etc.
258
258
  *
259
- * @version 2.2.0
259
+ * @version 2.2.1
260
260
  * @author Yusuke Kamiyamane
261
261
  * @license MIT
262
262
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "power-focusable",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "High-precision focus management utility with shadow DOM support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",