@y14e/roving-tabindex 3.1.1 → 3.1.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
@@ -10,14 +10,14 @@ npm i @y14e/roving-tabindex
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import { createRovingTabIndex } from '@y14e/roving-tabindex@3.1.1';
13
+ import { createRovingTabIndex } from '@y14e/roving-tabindex@3.1.2';
14
14
 
15
15
  // CDNs
16
- import { createRovingTabIndex } from 'https://esm.sh/@y14e/roving-tabindex@3.1.1';
16
+ import { createRovingTabIndex } from 'https://esm.sh/@y14e/roving-tabindex@3.1.2';
17
17
  // or
18
- import { createRovingTabIndex } from 'https://cdn.jsdelivr.net/npm/@y14e/roving-tabindex@3.1.1/+esm';
18
+ import { createRovingTabIndex } from 'https://cdn.jsdelivr.net/npm/@y14e/roving-tabindex@3.1.2/+esm';
19
19
  // or
20
- import { createRovingTabIndex } from 'https://esm.unpkg.com/@y14e/roving-tabindex@3.1.1';
20
+ import { createRovingTabIndex } from 'https://esm.unpkg.com/@y14e/roving-tabindex@3.1.2';
21
21
  ```
22
22
 
23
23
  ## 📦 APIs
@@ -383,18 +383,9 @@ var RovingTabIndex = class _RovingTabIndex {
383
383
  }
384
384
  this.#controller = new AbortController();
385
385
  const { signal } = this.#controller;
386
- document.addEventListener("focusin", this.#onFocusIn, {
387
- capture: true,
388
- signal
389
- });
390
- this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, {
391
- capture: true,
392
- signal
393
- });
394
- this.#container.addEventListener("keydown", this.#onKeyDown, {
395
- capture: true,
396
- signal
397
- });
386
+ document.addEventListener("focusin", this.#onFocusIn, { signal });
387
+ this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, { signal });
388
+ this.#container.addEventListener("keydown", this.#onKeyDown, { signal });
398
389
  }
399
390
  #onFocusIn = (event) => {
400
391
  const { target } = event;
@@ -546,7 +537,7 @@ var RovingTabIndex = class _RovingTabIndex {
546
537
  * Lightweight roving tabindex utility with fully focus management.
547
538
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
548
539
  *
549
- * @version 3.1.1
540
+ * @version 3.1.2
550
541
  * @author Yusuke Kamiyamane
551
542
  * @license MIT
552
543
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -381,18 +381,9 @@ var RovingTabIndex = class _RovingTabIndex {
381
381
  }
382
382
  this.#controller = new AbortController();
383
383
  const { signal } = this.#controller;
384
- document.addEventListener("focusin", this.#onFocusIn, {
385
- capture: true,
386
- signal
387
- });
388
- this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, {
389
- capture: true,
390
- signal
391
- });
392
- this.#container.addEventListener("keydown", this.#onKeyDown, {
393
- capture: true,
394
- signal
395
- });
384
+ document.addEventListener("focusin", this.#onFocusIn, { signal });
385
+ this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, { signal });
386
+ this.#container.addEventListener("keydown", this.#onKeyDown, { signal });
396
387
  }
397
388
  #onFocusIn = (event) => {
398
389
  const { target } = event;
@@ -544,7 +535,7 @@ var RovingTabIndex = class _RovingTabIndex {
544
535
  * Lightweight roving tabindex utility with fully focus management.
545
536
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
546
537
  *
547
- * @version 3.1.1
538
+ * @version 3.1.2
548
539
  * @author Yusuke Kamiyamane
549
540
  * @license MIT
550
541
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.cjs CHANGED
@@ -99,18 +99,9 @@ var RovingTabIndex = class _RovingTabIndex {
99
99
  }
100
100
  this.#controller = new AbortController();
101
101
  const { signal } = this.#controller;
102
- document.addEventListener("focusin", this.#onFocusIn, {
103
- capture: true,
104
- signal
105
- });
106
- this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, {
107
- capture: true,
108
- signal
109
- });
110
- this.#container.addEventListener("keydown", this.#onKeyDown, {
111
- capture: true,
112
- signal
113
- });
102
+ document.addEventListener("focusin", this.#onFocusIn, { signal });
103
+ this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, { signal });
104
+ this.#container.addEventListener("keydown", this.#onKeyDown, { signal });
114
105
  }
115
106
  #onFocusIn = (event) => {
116
107
  const { target } = event;
@@ -262,7 +253,7 @@ var RovingTabIndex = class _RovingTabIndex {
262
253
  * Lightweight roving tabindex utility with fully focus management.
263
254
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
264
255
  *
265
- * @version 3.1.1
256
+ * @version 3.1.2
266
257
  * @author Yusuke Kamiyamane
267
258
  * @license MIT
268
259
  * @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 3.1.1
6
+ * @version 3.1.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
  * Lightweight roving tabindex utility with fully focus management.
4
4
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
5
5
  *
6
- * @version 3.1.1
6
+ * @version 3.1.2
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -97,18 +97,9 @@ var RovingTabIndex = class _RovingTabIndex {
97
97
  }
98
98
  this.#controller = new AbortController();
99
99
  const { signal } = this.#controller;
100
- document.addEventListener("focusin", this.#onFocusIn, {
101
- capture: true,
102
- signal
103
- });
104
- this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, {
105
- capture: true,
106
- signal
107
- });
108
- this.#container.addEventListener("keydown", this.#onKeyDown, {
109
- capture: true,
110
- signal
111
- });
100
+ document.addEventListener("focusin", this.#onFocusIn, { signal });
101
+ this.#settings.noMemory && document.addEventListener("focusout", this.#onFocusOut, { signal });
102
+ this.#container.addEventListener("keydown", this.#onKeyDown, { signal });
112
103
  }
113
104
  #onFocusIn = (event) => {
114
105
  const { target } = event;
@@ -260,7 +251,7 @@ var RovingTabIndex = class _RovingTabIndex {
260
251
  * Lightweight roving tabindex utility with fully focus management.
261
252
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
262
253
  *
263
- * @version 3.1.1
254
+ * @version 3.1.2
264
255
  * @author Yusuke Kamiyamane
265
256
  * @license MIT
266
257
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/roving-tabindex",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Lightweight roving tabindex utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",