@y14e/roving-tabindex 1.2.7 → 1.2.8

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
@@ -59,15 +59,19 @@ function getFocusables(container = document.body, options = {}) {
59
59
  }
60
60
  let { composed = false, filter, include } = options;
61
61
  if (typeof composed !== "boolean") {
62
- console.warn("Invalid composed. Fallback: false.");
62
+ console.warn("Invalid composed option. Fallback: false.");
63
63
  composed = false;
64
64
  }
65
65
  if (typeof filter !== "undefined" && typeof filter !== "function") {
66
- console.warn("Invalid filter. Fallback: no filter function (undefined).");
66
+ console.warn(
67
+ "Invalid filter function. Fallback: no filter function (undefined)."
68
+ );
67
69
  filter = void 0;
68
70
  }
69
71
  if (typeof include !== "undefined" && typeof include !== "function") {
70
- console.warn("Invalid include. Fallback: no include function (undefined).");
72
+ console.warn(
73
+ "Invalid include function. Fallback: no include function (undefined)."
74
+ );
71
75
  include = void 0;
72
76
  }
73
77
  const elements = [];
@@ -264,7 +268,7 @@ function createRovingTabIndex(container, options = {}) {
264
268
  }
265
269
  let { direction, selector, typeahead = false, wrap = false } = options;
266
270
  if (typeof direction !== "undefined" && !["horizontal", "vertical"].includes(direction)) {
267
- console.warn("Invalid direction. Fallback: both (undefined).");
271
+ console.warn("Invalid direction option. Fallback: both (undefined).");
268
272
  direction = void 0;
269
273
  }
270
274
  if (typeof selector !== "undefined" && typeof selector !== "string") {
@@ -274,11 +278,11 @@ function createRovingTabIndex(container, options = {}) {
274
278
  selector = void 0;
275
279
  }
276
280
  if (typeof typeahead !== "boolean") {
277
- console.warn("Invalid typeahead. Fallback: false.");
281
+ console.warn("Invalid typeahead option. Fallback: false.");
278
282
  typeahead = false;
279
283
  }
280
284
  if (typeof wrap !== "boolean") {
281
- console.warn("Invalid wrap. Fallback: false.");
285
+ console.warn("Invalid wrap option. Fallback: false.");
282
286
  wrap = false;
283
287
  }
284
288
  const roving = new RovingTabIndex(container, {
@@ -480,7 +484,7 @@ function getActiveElement() {
480
484
  * Lightweight roving tabindex utility with fully focus management.
481
485
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
482
486
  *
483
- * @version 1.2.7
487
+ * @version 1.2.8
484
488
  * @author Yusuke Kamiyamane
485
489
  * @license MIT
486
490
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -505,7 +509,7 @@ power-focusable/dist/index.js:
505
509
  * High-precision focus management utility with full composed tree support.
506
510
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
507
511
  *
508
- * @version 4.1.7
512
+ * @version 4.1.8
509
513
  * @author Yusuke Kamiyamane
510
514
  * @license MIT
511
515
  * @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.7
6
+ * @version 1.2.8
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.7
6
+ * @version 1.2.8
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -57,15 +57,19 @@ function getFocusables(container = document.body, options = {}) {
57
57
  }
58
58
  let { composed = false, filter, include } = options;
59
59
  if (typeof composed !== "boolean") {
60
- console.warn("Invalid composed. Fallback: false.");
60
+ console.warn("Invalid composed option. Fallback: false.");
61
61
  composed = false;
62
62
  }
63
63
  if (typeof filter !== "undefined" && typeof filter !== "function") {
64
- console.warn("Invalid filter. Fallback: no filter function (undefined).");
64
+ console.warn(
65
+ "Invalid filter function. Fallback: no filter function (undefined)."
66
+ );
65
67
  filter = void 0;
66
68
  }
67
69
  if (typeof include !== "undefined" && typeof include !== "function") {
68
- console.warn("Invalid include. Fallback: no include function (undefined).");
70
+ console.warn(
71
+ "Invalid include function. Fallback: no include function (undefined)."
72
+ );
69
73
  include = void 0;
70
74
  }
71
75
  const elements = [];
@@ -262,7 +266,7 @@ function createRovingTabIndex(container, options = {}) {
262
266
  }
263
267
  let { direction, selector, typeahead = false, wrap = false } = options;
264
268
  if (typeof direction !== "undefined" && !["horizontal", "vertical"].includes(direction)) {
265
- console.warn("Invalid direction. Fallback: both (undefined).");
269
+ console.warn("Invalid direction option. Fallback: both (undefined).");
266
270
  direction = void 0;
267
271
  }
268
272
  if (typeof selector !== "undefined" && typeof selector !== "string") {
@@ -272,11 +276,11 @@ function createRovingTabIndex(container, options = {}) {
272
276
  selector = void 0;
273
277
  }
274
278
  if (typeof typeahead !== "boolean") {
275
- console.warn("Invalid typeahead. Fallback: false.");
279
+ console.warn("Invalid typeahead option. Fallback: false.");
276
280
  typeahead = false;
277
281
  }
278
282
  if (typeof wrap !== "boolean") {
279
- console.warn("Invalid wrap. Fallback: false.");
283
+ console.warn("Invalid wrap option. Fallback: false.");
280
284
  wrap = false;
281
285
  }
282
286
  const roving = new RovingTabIndex(container, {
@@ -478,7 +482,7 @@ function getActiveElement() {
478
482
  * Lightweight roving tabindex utility with fully focus management.
479
483
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
480
484
  *
481
- * @version 1.2.7
485
+ * @version 1.2.8
482
486
  * @author Yusuke Kamiyamane
483
487
  * @license MIT
484
488
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -503,7 +507,7 @@ power-focusable/dist/index.js:
503
507
  * High-precision focus management utility with full composed tree support.
504
508
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
505
509
  *
506
- * @version 4.1.7
510
+ * @version 4.1.8
507
511
  * @author Yusuke Kamiyamane
508
512
  * @license MIT
509
513
  * @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.7",
3
+ "version": "1.2.8",
4
4
  "description": "Lightweight roving tabindex utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "@y14e/attributes-utils": "^1.0.5",
52
52
  "bun-types": "latest",
53
- "power-focusable": "^4.1.7",
53
+ "power-focusable": "^4.1.8",
54
54
  "tsup": "^8.0.0",
55
55
  "typescript": "^5.6.0"
56
56
  },