@y14e/portal 1.3.3 → 1.3.4

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.3';
16
+ import { createPortal } from 'https://esm.sh/@y14e/portal@1.3.4';
17
17
  // or
18
- import { createPortal } from 'https://cdn.jsdelivr.net/npm/@y14e/portal@1.3.3/+esm';
18
+ import { createPortal } from 'https://cdn.jsdelivr.net/npm/@y14e/portal@1.3.4/+esm';
19
19
  // or
20
- import { createPortal } from 'https://esm.unpkg.com/@y14e/portal@1.3.3';
20
+ import { createPortal } from 'https://esm.unpkg.com/@y14e/portal@1.3.4';
21
21
  ```
22
22
 
23
23
  ## 📦 APIs
@@ -429,12 +429,7 @@ var Portal = class {
429
429
  container = document.body;
430
430
  }
431
431
  this.#container = container;
432
- let { noInlineStyle = false } = options;
433
- if (typeof noInlineStyle !== "boolean") {
434
- console.warn("Invalid noInlineStyle option. Fallback: false.");
435
- noInlineStyle = false;
436
- }
437
- this.#settings = { noInlineStyle };
432
+ this.#settings = resolveOptions(options);
438
433
  this.#entranceSentinel = this.#createSentinel();
439
434
  this.#exitSentinel = this.#createSentinel();
440
435
  this.#initialize();
@@ -572,12 +567,20 @@ function containsComposed2(container, element) {
572
567
  }
573
568
  return false;
574
569
  }
570
+ function resolveOptions(options) {
571
+ let { noInlineStyle = false } = options;
572
+ if (typeof noInlineStyle !== "boolean") {
573
+ console.warn("Invalid noInlineStyle option. Fallback: false.");
574
+ noInlineStyle = false;
575
+ }
576
+ return { noInlineStyle };
577
+ }
575
578
  /**
576
579
  * Portal
577
580
  * Lightweight DOM portal (teleport) utility with fully focus management.
578
581
  * Designed for accessible dialogs, menus, overlays, popovers.
579
582
  *
580
- * @version 1.3.3
583
+ * @version 1.3.4
581
584
  * @author Yusuke Kamiyamane
582
585
  * @license MIT
583
586
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -589,7 +592,7 @@ function containsComposed2(container, element) {
589
592
  (**
590
593
  * Attribute Utils
591
594
  *
592
- * @version 2.0.5
595
+ * @version 2.0.6
593
596
  * @author Yusuke Kamiyamane
594
597
  * @license MIT
595
598
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -602,7 +605,7 @@ power-focusable/dist/index.js:
602
605
  * High-precision focus management utility with full composed tree support.
603
606
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
604
607
  *
605
- * @version 4.3.26
608
+ * @version 4.3.28
606
609
  * @author Yusuke Kamiyamane
607
610
  * @license MIT
608
611
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -427,12 +427,7 @@ var Portal = class {
427
427
  container = document.body;
428
428
  }
429
429
  this.#container = container;
430
- let { noInlineStyle = false } = options;
431
- if (typeof noInlineStyle !== "boolean") {
432
- console.warn("Invalid noInlineStyle option. Fallback: false.");
433
- noInlineStyle = false;
434
- }
435
- this.#settings = { noInlineStyle };
430
+ this.#settings = resolveOptions(options);
436
431
  this.#entranceSentinel = this.#createSentinel();
437
432
  this.#exitSentinel = this.#createSentinel();
438
433
  this.#initialize();
@@ -570,12 +565,20 @@ function containsComposed2(container, element) {
570
565
  }
571
566
  return false;
572
567
  }
568
+ function resolveOptions(options) {
569
+ let { noInlineStyle = false } = options;
570
+ if (typeof noInlineStyle !== "boolean") {
571
+ console.warn("Invalid noInlineStyle option. Fallback: false.");
572
+ noInlineStyle = false;
573
+ }
574
+ return { noInlineStyle };
575
+ }
573
576
  /**
574
577
  * Portal
575
578
  * Lightweight DOM portal (teleport) utility with fully focus management.
576
579
  * Designed for accessible dialogs, menus, overlays, popovers.
577
580
  *
578
- * @version 1.3.3
581
+ * @version 1.3.4
579
582
  * @author Yusuke Kamiyamane
580
583
  * @license MIT
581
584
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -587,7 +590,7 @@ function containsComposed2(container, element) {
587
590
  (**
588
591
  * Attribute Utils
589
592
  *
590
- * @version 2.0.5
593
+ * @version 2.0.6
591
594
  * @author Yusuke Kamiyamane
592
595
  * @license MIT
593
596
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -600,7 +603,7 @@ power-focusable/dist/index.js:
600
603
  * High-precision focus management utility with full composed tree support.
601
604
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
602
605
  *
603
- * @version 4.3.26
606
+ * @version 4.3.28
604
607
  * @author Yusuke Kamiyamane
605
608
  * @license MIT
606
609
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.cjs CHANGED
@@ -61,12 +61,7 @@ var Portal = class {
61
61
  container = document.body;
62
62
  }
63
63
  this.#container = container;
64
- let { noInlineStyle = false } = options;
65
- if (typeof noInlineStyle !== "boolean") {
66
- console.warn("Invalid noInlineStyle option. Fallback: false.");
67
- noInlineStyle = false;
68
- }
69
- this.#settings = { noInlineStyle };
64
+ this.#settings = resolveOptions(options);
70
65
  this.#entranceSentinel = this.#createSentinel();
71
66
  this.#exitSentinel = this.#createSentinel();
72
67
  this.#initialize();
@@ -204,12 +199,20 @@ function containsComposed(container, element) {
204
199
  }
205
200
  return false;
206
201
  }
202
+ function resolveOptions(options) {
203
+ let { noInlineStyle = false } = options;
204
+ if (typeof noInlineStyle !== "boolean") {
205
+ console.warn("Invalid noInlineStyle option. Fallback: false.");
206
+ noInlineStyle = false;
207
+ }
208
+ return { noInlineStyle };
209
+ }
207
210
  /**
208
211
  * Portal
209
212
  * Lightweight DOM portal (teleport) utility with fully focus management.
210
213
  * Designed for accessible dialogs, menus, overlays, popovers.
211
214
  *
212
- * @version 1.3.3
215
+ * @version 1.3.4
213
216
  * @author Yusuke Kamiyamane
214
217
  * @license MIT
215
218
  * @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.3
6
+ * @version 1.3.4
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.3
6
+ * @version 1.3.4
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -38,12 +38,7 @@ var Portal = class {
38
38
  container = document.body;
39
39
  }
40
40
  this.#container = container;
41
- let { noInlineStyle = false } = options;
42
- if (typeof noInlineStyle !== "boolean") {
43
- console.warn("Invalid noInlineStyle option. Fallback: false.");
44
- noInlineStyle = false;
45
- }
46
- this.#settings = { noInlineStyle };
41
+ this.#settings = resolveOptions(options);
47
42
  this.#entranceSentinel = this.#createSentinel();
48
43
  this.#exitSentinel = this.#createSentinel();
49
44
  this.#initialize();
@@ -181,12 +176,20 @@ function containsComposed(container, element) {
181
176
  }
182
177
  return false;
183
178
  }
179
+ function resolveOptions(options) {
180
+ let { noInlineStyle = false } = options;
181
+ if (typeof noInlineStyle !== "boolean") {
182
+ console.warn("Invalid noInlineStyle option. Fallback: false.");
183
+ noInlineStyle = false;
184
+ }
185
+ return { noInlineStyle };
186
+ }
184
187
  /**
185
188
  * Portal
186
189
  * Lightweight DOM portal (teleport) utility with fully focus management.
187
190
  * Designed for accessible dialogs, menus, overlays, popovers.
188
191
  *
189
- * @version 1.3.3
192
+ * @version 1.3.4
190
193
  * @author Yusuke Kamiyamane
191
194
  * @license MIT
192
195
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/portal",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Lightweight DOM portal (teleport) utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -58,7 +58,7 @@
58
58
  "esbuild": true
59
59
  },
60
60
  "dependencies": {
61
- "@y14e/attribute-utils": "^2.0.5",
62
- "power-focusable": "^4.3.26"
61
+ "@y14e/attribute-utils": "^2.0.6",
62
+ "power-focusable": "^4.3.28"
63
63
  }
64
64
  }