@y14e/roving-tabindex 3.1.4 → 3.1.5
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 +3 -3
- package/dist/index.bundle.cjs +2 -2
- package/dist/index.bundle.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,11 +13,11 @@ npm i @y14e/roving-tabindex
|
|
|
13
13
|
import { createRovingTabIndex } from '@y14e/roving-tabindex';
|
|
14
14
|
|
|
15
15
|
// CDNs
|
|
16
|
-
import { createRovingTabIndex } from 'https://esm.sh/@y14e/roving-tabindex@3.1.
|
|
16
|
+
import { createRovingTabIndex } from 'https://esm.sh/@y14e/roving-tabindex@3.1.5';
|
|
17
17
|
// or
|
|
18
|
-
import { createRovingTabIndex } from 'https://cdn.jsdelivr.net/npm/@y14e/roving-tabindex@3.1.
|
|
18
|
+
import { createRovingTabIndex } from 'https://cdn.jsdelivr.net/npm/@y14e/roving-tabindex@3.1.5/+esm';
|
|
19
19
|
// or
|
|
20
|
-
import { createRovingTabIndex } from 'https://esm.unpkg.com/@y14e/roving-tabindex@3.1.
|
|
20
|
+
import { createRovingTabIndex } from 'https://esm.unpkg.com/@y14e/roving-tabindex@3.1.5';
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 📦 APIs
|
package/dist/index.bundle.cjs
CHANGED
|
@@ -408,7 +408,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
const active = getActiveElement();
|
|
411
|
-
if (!(active instanceof
|
|
411
|
+
if (!(active instanceof Element)) {
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
const current = this.#getFocusables();
|
|
@@ -526,7 +526,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
526
526
|
* Lightweight roving tabindex utility with fully focus management.
|
|
527
527
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
528
528
|
*
|
|
529
|
-
* @version 3.1.
|
|
529
|
+
* @version 3.1.5
|
|
530
530
|
* @author Yusuke Kamiyamane
|
|
531
531
|
* @license MIT
|
|
532
532
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.bundle.js
CHANGED
|
@@ -406,7 +406,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
const active = getActiveElement();
|
|
409
|
-
if (!(active instanceof
|
|
409
|
+
if (!(active instanceof Element)) {
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
const current = this.#getFocusables();
|
|
@@ -524,7 +524,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
524
524
|
* Lightweight roving tabindex utility with fully focus management.
|
|
525
525
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
526
526
|
*
|
|
527
|
-
* @version 3.1.
|
|
527
|
+
* @version 3.1.5
|
|
528
528
|
* @author Yusuke Kamiyamane
|
|
529
529
|
* @license MIT
|
|
530
530
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.cjs
CHANGED
|
@@ -124,7 +124,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
const active = powerFocusable.getActiveElement();
|
|
127
|
-
if (!(active instanceof
|
|
127
|
+
if (!(active instanceof Element)) {
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
const current = this.#getFocusables();
|
|
@@ -242,7 +242,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
242
242
|
* Lightweight roving tabindex utility with fully focus management.
|
|
243
243
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
244
244
|
*
|
|
245
|
-
* @version 3.1.
|
|
245
|
+
* @version 3.1.5
|
|
246
246
|
* @author Yusuke Kamiyamane
|
|
247
247
|
* @license MIT
|
|
248
248
|
* @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.
|
|
6
|
+
* @version 3.1.5
|
|
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.
|
|
6
|
+
* @version 3.1.5
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.js
CHANGED
|
@@ -122,7 +122,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
const active = getActiveElement();
|
|
125
|
-
if (!(active instanceof
|
|
125
|
+
if (!(active instanceof Element)) {
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
128
|
const current = this.#getFocusables();
|
|
@@ -240,7 +240,7 @@ var RovingTabIndex = class _RovingTabIndex {
|
|
|
240
240
|
* Lightweight roving tabindex utility with fully focus management.
|
|
241
241
|
* Designed for accessible menus, tabs, toolbars, and composite widgets.
|
|
242
242
|
*
|
|
243
|
-
* @version 3.1.
|
|
243
|
+
* @version 3.1.5
|
|
244
244
|
* @author Yusuke Kamiyamane
|
|
245
245
|
* @license MIT
|
|
246
246
|
* @copyright Copyright (c) Yusuke Kamiyamane
|