@y14e/portal 0.0.1 → 0.0.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 +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,19 +8,19 @@ Lightweight DOM portal (teleport) utility with fully focus management. Designed
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npm i y14e
|
|
11
|
+
npm i @y14e/portal
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
```ts
|
|
15
15
|
// npm
|
|
16
|
-
import { createPortal } from 'y14e
|
|
16
|
+
import { createPortal } from '@y14e/portal';
|
|
17
17
|
|
|
18
18
|
// CDNs
|
|
19
|
-
import { createPortal } from 'https://esm.sh/
|
|
19
|
+
import { createPortal } from 'https://esm.sh/@y14e/portal'
|
|
20
20
|
// or
|
|
21
|
-
import { createPortal } from 'https://cdn.jsdelivr.net/npm/
|
|
21
|
+
import { createPortal } from 'https://cdn.jsdelivr.net/npm/@y14e/portal/dist/index.js';
|
|
22
22
|
// or
|
|
23
|
-
import { createPortal } from 'https://unpkg.com/
|
|
23
|
+
import { createPortal } from 'https://unpkg.com/@y14e/portal/dist/index.js';
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## 📦 APIs
|
package/dist/index.cjs
CHANGED
|
@@ -417,7 +417,7 @@ function getActiveElement2() {
|
|
|
417
417
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
418
418
|
* Designed for accessible dialogs, menus, overlays, popovers, and etc.
|
|
419
419
|
*
|
|
420
|
-
* @version 0.0.
|
|
420
|
+
* @version 0.0.2
|
|
421
421
|
* @author Yusuke Kamiyamane
|
|
422
422
|
* @license MIT
|
|
423
423
|
* @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, and etc.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0.
|
|
6
|
+
* @version 0.0.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, and etc.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0.
|
|
6
|
+
* @version 0.0.2
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.js
CHANGED
|
@@ -415,7 +415,7 @@ function getActiveElement2() {
|
|
|
415
415
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
416
416
|
* Designed for accessible dialogs, menus, overlays, popovers, and etc.
|
|
417
417
|
*
|
|
418
|
-
* @version 0.0.
|
|
418
|
+
* @version 0.0.2
|
|
419
419
|
* @author Yusuke Kamiyamane
|
|
420
420
|
* @license MIT
|
|
421
421
|
* @copyright Copyright (c) Yusuke Kamiyamane
|