@y14e/roving-tabindex 2.0.0 → 2.0.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/dist/index.cjs CHANGED
@@ -438,14 +438,7 @@ var RovingTabIndex = class {
438
438
  focusElement(focusable);
439
439
  };
440
440
  #update(active) {
441
- const current = /* @__PURE__ */ new Set([
442
- ...this.#getFocusables(),
443
- ...getFocusables(this.#container, {
444
- composed: true,
445
- filter: this.#selectorFilter,
446
- skipNegativeTabIndexCheck: !this.#options.navigationOnly
447
- })
448
- ]);
441
+ const current = new Set(this.#getFocusables());
449
442
  for (const focusable of this.#focusables) {
450
443
  if (current.has(focusable)) {
451
444
  continue;
@@ -528,7 +521,7 @@ function getActiveElement() {
528
521
  * Lightweight roving tabindex utility with fully focus management.
529
522
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
530
523
  *
531
- * @version 2.0.0
524
+ * @version 2.0.1
532
525
  * @author Yusuke Kamiyamane
533
526
  * @license MIT
534
527
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Lightweight roving tabindex utility with fully focus management.
4
4
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
5
5
  *
6
- * @version 2.0.0
6
+ * @version 2.0.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
  * Lightweight roving tabindex utility with fully focus management.
4
4
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
5
5
  *
6
- * @version 2.0.0
6
+ * @version 2.0.1
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -436,14 +436,7 @@ var RovingTabIndex = class {
436
436
  focusElement(focusable);
437
437
  };
438
438
  #update(active) {
439
- const current = /* @__PURE__ */ new Set([
440
- ...this.#getFocusables(),
441
- ...getFocusables(this.#container, {
442
- composed: true,
443
- filter: this.#selectorFilter,
444
- skipNegativeTabIndexCheck: !this.#options.navigationOnly
445
- })
446
- ]);
439
+ const current = new Set(this.#getFocusables());
447
440
  for (const focusable of this.#focusables) {
448
441
  if (current.has(focusable)) {
449
442
  continue;
@@ -526,7 +519,7 @@ function getActiveElement() {
526
519
  * Lightweight roving tabindex utility with fully focus management.
527
520
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
528
521
  *
529
- * @version 2.0.0
522
+ * @version 2.0.1
530
523
  * @author Yusuke Kamiyamane
531
524
  * @license MIT
532
525
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/roving-tabindex",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Lightweight roving tabindex utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",