@y14e/portal 1.3.1 → 1.3.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/README.md CHANGED
@@ -13,11 +13,11 @@ npm i @y14e/portal
13
13
  import { createPortal } from '@y14e/portal';
14
14
 
15
15
  // CDNs
16
- import { createPortal } from 'https://esm.sh/@y14e/portal@1.3.1';
16
+ import { createPortal } from 'https://esm.sh/@y14e/portal@1.3.2';
17
17
  // or
18
- import { createPortal } from 'https://cdn.jsdelivr.net/npm/@y14e/portal@1.3.1/+esm';
18
+ import { createPortal } from 'https://cdn.jsdelivr.net/npm/@y14e/portal@1.3.2/+esm';
19
19
  // or
20
- import { createPortal } from 'https://esm.unpkg.com/@y14e/portal@1.3.1';
20
+ import { createPortal } from 'https://esm.unpkg.com/@y14e/portal@1.3.2';
21
21
  ```
22
22
 
23
23
  ## 📦 APIs
@@ -502,7 +502,7 @@ var Portal = class {
502
502
  return;
503
503
  }
504
504
  this.#update();
505
- const focusables = getFocusables(this.#host);
505
+ const focusables = this.#getFocusables();
506
506
  if (focusables.length) {
507
507
  const index = focusables.indexOf(active);
508
508
  if (index >= 0) {
@@ -577,7 +577,7 @@ function containsComposed2(container, element) {
577
577
  * Lightweight DOM portal (teleport) utility with fully focus management.
578
578
  * Designed for accessible dialogs, menus, overlays, popovers.
579
579
  *
580
- * @version 1.3.1
580
+ * @version 1.3.2
581
581
  * @author Yusuke Kamiyamane
582
582
  * @license MIT
583
583
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -500,7 +500,7 @@ var Portal = class {
500
500
  return;
501
501
  }
502
502
  this.#update();
503
- const focusables = getFocusables(this.#host);
503
+ const focusables = this.#getFocusables();
504
504
  if (focusables.length) {
505
505
  const index = focusables.indexOf(active);
506
506
  if (index >= 0) {
@@ -575,7 +575,7 @@ function containsComposed2(container, element) {
575
575
  * Lightweight DOM portal (teleport) utility with fully focus management.
576
576
  * Designed for accessible dialogs, menus, overlays, popovers.
577
577
  *
578
- * @version 1.3.1
578
+ * @version 1.3.2
579
579
  * @author Yusuke Kamiyamane
580
580
  * @license MIT
581
581
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.cjs CHANGED
@@ -134,7 +134,7 @@ var Portal = class {
134
134
  return;
135
135
  }
136
136
  this.#update();
137
- const focusables = pf__namespace.getFocusables(this.#host);
137
+ const focusables = this.#getFocusables();
138
138
  if (focusables.length) {
139
139
  const index = focusables.indexOf(active);
140
140
  if (index >= 0) {
@@ -209,7 +209,7 @@ function containsComposed(container, element) {
209
209
  * Lightweight DOM portal (teleport) utility with fully focus management.
210
210
  * Designed for accessible dialogs, menus, overlays, popovers.
211
211
  *
212
- * @version 1.3.1
212
+ * @version 1.3.2
213
213
  * @author Yusuke Kamiyamane
214
214
  * @license MIT
215
215
  * @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.3.1
6
+ * @version 1.3.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.3.1
6
+ * @version 1.3.2
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -111,7 +111,7 @@ var Portal = class {
111
111
  return;
112
112
  }
113
113
  this.#update();
114
- const focusables = pf.getFocusables(this.#host);
114
+ const focusables = this.#getFocusables();
115
115
  if (focusables.length) {
116
116
  const index = focusables.indexOf(active);
117
117
  if (index >= 0) {
@@ -186,7 +186,7 @@ function containsComposed(container, element) {
186
186
  * Lightweight DOM portal (teleport) utility with fully focus management.
187
187
  * Designed for accessible dialogs, menus, overlays, popovers.
188
188
  *
189
- * @version 1.3.1
189
+ * @version 1.3.2
190
190
  * @author Yusuke Kamiyamane
191
191
  * @license MIT
192
192
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/portal",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Lightweight DOM portal (teleport) utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",