@y14e/roving-tabindex 1.2.5 → 1.2.7

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
@@ -258,7 +258,9 @@ function isUngroupedRadio(element) {
258
258
  // src/index.ts
259
259
  function createRovingTabIndex(container, options = {}) {
260
260
  if (!(container instanceof Element)) {
261
- throw new Error("Invalid container element");
261
+ console.warn("Invalid container element");
262
+ return () => {
263
+ };
262
264
  }
263
265
  let { direction, selector, typeahead = false, wrap = false } = options;
264
266
  if (typeof direction !== "undefined" && !["horizontal", "vertical"].includes(direction)) {
@@ -478,7 +480,7 @@ function getActiveElement() {
478
480
  * Lightweight roving tabindex utility with fully focus management.
479
481
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
480
482
  *
481
- * @version 1.2.5
483
+ * @version 1.2.7
482
484
  * @author Yusuke Kamiyamane
483
485
  * @license MIT
484
486
  * @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 1.2.5
6
+ * @version 1.2.7
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 1.2.5
6
+ * @version 1.2.7
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -256,7 +256,9 @@ function isUngroupedRadio(element) {
256
256
  // src/index.ts
257
257
  function createRovingTabIndex(container, options = {}) {
258
258
  if (!(container instanceof Element)) {
259
- throw new Error("Invalid container element");
259
+ console.warn("Invalid container element");
260
+ return () => {
261
+ };
260
262
  }
261
263
  let { direction, selector, typeahead = false, wrap = false } = options;
262
264
  if (typeof direction !== "undefined" && !["horizontal", "vertical"].includes(direction)) {
@@ -476,7 +478,7 @@ function getActiveElement() {
476
478
  * Lightweight roving tabindex utility with fully focus management.
477
479
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
478
480
  *
479
- * @version 1.2.5
481
+ * @version 1.2.7
480
482
  * @author Yusuke Kamiyamane
481
483
  * @license MIT
482
484
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/roving-tabindex",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Lightweight roving tabindex utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",