@y14e/portal 1.2.1 → 1.2.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/dist/index.cjs CHANGED
@@ -401,8 +401,8 @@ var Portal = class {
401
401
  };
402
402
  #update() {
403
403
  const current = /* @__PURE__ */ new Set([
404
- ...getFocusables(this.#host, { composed: true }),
405
- ...this.#getFocusables()
404
+ ...this.#getFocusables(),
405
+ ...getFocusables(this.#host, { composed: true })
406
406
  ]);
407
407
  this.#focusables.forEach((focusable) => {
408
408
  if (current.has(focusable)) {
@@ -444,9 +444,7 @@ var Portal = class {
444
444
  #getFocusables() {
445
445
  return getFocusables(this.#host, {
446
446
  composed: true,
447
- include: (element) => {
448
- return this.#focusables.has(element);
449
- }
447
+ include: (element) => this.#focusables.has(element)
450
448
  });
451
449
  }
452
450
  #moveFocus(direction) {
@@ -483,7 +481,7 @@ function getActiveElement2() {
483
481
  * Lightweight DOM portal (teleport) utility with fully focus management.
484
482
  * Designed for accessible dialogs, menus, overlays, popovers.
485
483
  *
486
- * @version 1.2.1
484
+ * @version 1.2.2
487
485
  * @author Yusuke Kamiyamane
488
486
  * @license MIT
489
487
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Lightweight DOM portal (teleport) utility with fully focus management.
4
4
  * Designed for accessible dialogs, menus, overlays, popovers.
5
5
  *
6
- * @version 1.2.1
6
+ * @version 1.2.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 DOM portal (teleport) utility with fully focus management.
4
4
  * Designed for accessible dialogs, menus, overlays, popovers.
5
5
  *
6
- * @version 1.2.1
6
+ * @version 1.2.2
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -399,8 +399,8 @@ var Portal = class {
399
399
  };
400
400
  #update() {
401
401
  const current = /* @__PURE__ */ new Set([
402
- ...getFocusables(this.#host, { composed: true }),
403
- ...this.#getFocusables()
402
+ ...this.#getFocusables(),
403
+ ...getFocusables(this.#host, { composed: true })
404
404
  ]);
405
405
  this.#focusables.forEach((focusable) => {
406
406
  if (current.has(focusable)) {
@@ -442,9 +442,7 @@ var Portal = class {
442
442
  #getFocusables() {
443
443
  return getFocusables(this.#host, {
444
444
  composed: true,
445
- include: (element) => {
446
- return this.#focusables.has(element);
447
- }
445
+ include: (element) => this.#focusables.has(element)
448
446
  });
449
447
  }
450
448
  #moveFocus(direction) {
@@ -481,7 +479,7 @@ function getActiveElement2() {
481
479
  * Lightweight DOM portal (teleport) utility with fully focus management.
482
480
  * Designed for accessible dialogs, menus, overlays, popovers.
483
481
  *
484
- * @version 1.2.1
482
+ * @version 1.2.2
485
483
  * @author Yusuke Kamiyamane
486
484
  * @license MIT
487
485
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/portal",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Lightweight DOM portal (teleport) utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",