power-focusable 4.3.1 → 4.3.2

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
@@ -21,14 +21,14 @@ import {
21
21
  hasFocusable,
22
22
  inertOutside,
23
23
  isFocusable,
24
- } from 'power-focusable';
24
+ } from 'power-focusable@4.3.2';
25
25
 
26
26
  // CDNs
27
- import { ... } 'https://esm.sh/power-focusable'
27
+ import { ... } 'https://esm.sh/power-focusable@4.3.2';
28
28
  // or
29
- import { ... } 'https://cdn.jsdelivr.net/npm/power-focusable/+esm';
29
+ import { ... } 'https://cdn.jsdelivr.net/npm/power-focusable@4.3.2/+esm';
30
30
  // or
31
- import { ... } 'https://unpkg.com/power-focusable/dist/index.js';
31
+ import { ... } 'https://esm.unpkg.com/power-focusable@4.3.2';
32
32
  ```
33
33
 
34
34
  ## 🪄 Options
package/dist/index.cjs CHANGED
@@ -4,7 +4,7 @@
4
4
  var FOCUSABLE_SELECTOR = `:is(a[href], area[href], button, embed, iframe, input:not([type="hidden" i]), object, select, details > summary:first-of-type, textarea, [contenteditable]:not([contenteditable="false" i]), [controls], [tabindex]):not(:disabled, [hidden], [inert], [tabindex="-1"])`;
5
5
  function createFocusTrap(container = document.body) {
6
6
  if (!(container instanceof Element)) {
7
- throw new Error("Invalid container element");
7
+ throw new TypeError("Invalid container element");
8
8
  }
9
9
  focusElement(container);
10
10
  if (getActiveElement() !== container) {
@@ -483,7 +483,7 @@ function isUngroupedRadio(element) {
483
483
  * High-precision focus management utility with full composed tree support.
484
484
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
485
485
  *
486
- * @version 4.3.1
486
+ * @version 4.3.2
487
487
  * @author Yusuke Kamiyamane
488
488
  * @license MIT
489
489
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * High-precision focus management utility with full composed tree support.
4
4
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
5
5
  *
6
- * @version 4.3.1
6
+ * @version 4.3.2
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 full composed tree support.
4
4
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
5
5
  *
6
- * @version 4.3.1
6
+ * @version 4.3.2
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  var FOCUSABLE_SELECTOR = `:is(a[href], area[href], button, embed, iframe, input:not([type="hidden" i]), object, select, details > summary:first-of-type, textarea, [contenteditable]:not([contenteditable="false" i]), [controls], [tabindex]):not(:disabled, [hidden], [inert], [tabindex="-1"])`;
3
3
  function createFocusTrap(container = document.body) {
4
4
  if (!(container instanceof Element)) {
5
- throw new Error("Invalid container element");
5
+ throw new TypeError("Invalid container element");
6
6
  }
7
7
  focusElement(container);
8
8
  if (getActiveElement() !== container) {
@@ -481,7 +481,7 @@ function isUngroupedRadio(element) {
481
481
  * High-precision focus management utility with full composed tree support.
482
482
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
483
483
  *
484
- * @version 4.3.1
484
+ * @version 4.3.2
485
485
  * @author Yusuke Kamiyamane
486
486
  * @license MIT
487
487
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "power-focusable",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "High-precision focus management utility with full composed tree support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",