@y14e/roving-tabindex 2.2.0 → 3.0.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/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@2.2.0';
13
+ import { createRovingTabIndex } from '@y14e/roving-tabindex@3.0.0';
14
14
 
15
15
  // CDNs
16
- import { createRovingTabIndex } from 'https://esm.sh/@y14e/roving-tabindex@2.2.0';
16
+ import { createRovingTabIndex } from 'https://esm.sh/@y14e/roving-tabindex@3.0.0';
17
17
  // or
18
- import { createRovingTabIndex } from 'https://cdn.jsdelivr.net/npm/@y14e/roving-tabindex@2.2.0/+esm';
18
+ import { createRovingTabIndex } from 'https://cdn.jsdelivr.net/npm/@y14e/roving-tabindex@3.0.0/+esm';
19
19
  // or
20
- import { createRovingTabIndex } from 'https://esm.unpkg.com/@y14e/roving-tabindex@2.2.0';
20
+ import { createRovingTabIndex } from 'https://esm.unpkg.com/@y14e/roving-tabindex@3.0.0';
21
21
  ```
22
22
 
23
23
  ## 📦 APIs
package/dist/index.cjs CHANGED
@@ -335,7 +335,13 @@ function createRovingTabIndex(container, options = {}) {
335
335
  console.warn("Invalid wrap option. Fallback: false.");
336
336
  wrap = false;
337
337
  }
338
- const settings = { navigationOnly, noMemory, noStart, typeahead, wrap };
338
+ const settings = {
339
+ navigationOnly,
340
+ noMemory,
341
+ noStart,
342
+ typeahead,
343
+ wrap
344
+ };
339
345
  direction && Object.assign(settings, { direction });
340
346
  selector && Object.assign(settings, { selector });
341
347
  const roving = new RovingTabIndex(container, settings);
@@ -423,7 +429,6 @@ var RovingTabIndex = class {
423
429
  return;
424
430
  }
425
431
  event.preventDefault();
426
- event.stopPropagation();
427
432
  const currentIndex = current.indexOf(active);
428
433
  let rawIndex;
429
434
  let newIndex = currentIndex;
@@ -541,7 +546,7 @@ function getActiveElement() {
541
546
  * Lightweight roving tabindex utility with fully focus management.
542
547
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
543
548
  *
544
- * @version 2.2.0
549
+ * @version 3.0.0
545
550
  * @author Yusuke Kamiyamane
546
551
  * @license MIT
547
552
  * @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.2.0
6
+ * @version 3.0.0
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.2.0
6
+ * @version 3.0.0
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -333,7 +333,13 @@ function createRovingTabIndex(container, options = {}) {
333
333
  console.warn("Invalid wrap option. Fallback: false.");
334
334
  wrap = false;
335
335
  }
336
- const settings = { navigationOnly, noMemory, noStart, typeahead, wrap };
336
+ const settings = {
337
+ navigationOnly,
338
+ noMemory,
339
+ noStart,
340
+ typeahead,
341
+ wrap
342
+ };
337
343
  direction && Object.assign(settings, { direction });
338
344
  selector && Object.assign(settings, { selector });
339
345
  const roving = new RovingTabIndex(container, settings);
@@ -421,7 +427,6 @@ var RovingTabIndex = class {
421
427
  return;
422
428
  }
423
429
  event.preventDefault();
424
- event.stopPropagation();
425
430
  const currentIndex = current.indexOf(active);
426
431
  let rawIndex;
427
432
  let newIndex = currentIndex;
@@ -539,7 +544,7 @@ function getActiveElement() {
539
544
  * Lightweight roving tabindex utility with fully focus management.
540
545
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
541
546
  *
542
- * @version 2.2.0
547
+ * @version 3.0.0
543
548
  * @author Yusuke Kamiyamane
544
549
  * @license MIT
545
550
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/roving-tabindex",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "description": "Lightweight roving tabindex utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",