@y14e/portal 1.2.18 → 1.2.19
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 +4 -4
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,14 +10,14 @@ npm i @y14e/portal
|
|
|
10
10
|
|
|
11
11
|
```ts
|
|
12
12
|
// npm
|
|
13
|
-
import { createPortal } from '@y14e/portal@1.2.
|
|
13
|
+
import { createPortal } from '@y14e/portal@1.2.19';
|
|
14
14
|
|
|
15
15
|
// CDNs
|
|
16
|
-
import { createPortal } from 'https://esm.sh/@y14e/portal@1.2.
|
|
16
|
+
import { createPortal } from 'https://esm.sh/@y14e/portal@1.2.19';
|
|
17
17
|
// or
|
|
18
|
-
import { createPortal } from 'https://cdn.jsdelivr.net/npm/@y14e/portal@1.2.
|
|
18
|
+
import { createPortal } from 'https://cdn.jsdelivr.net/npm/@y14e/portal@1.2.19/+esm';
|
|
19
19
|
// or
|
|
20
|
-
import { createPortal } from 'https://esm.unpkg.com/@y14e/portal@1.2.
|
|
20
|
+
import { createPortal } from 'https://esm.unpkg.com/@y14e/portal@1.2.19';
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 📦 APIs
|
package/dist/index.cjs
CHANGED
|
@@ -565,7 +565,7 @@ function containsComposed2(container, element) {
|
|
|
565
565
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
566
566
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
567
567
|
*
|
|
568
|
-
* @version 1.2.
|
|
568
|
+
* @version 1.2.19
|
|
569
569
|
* @author Yusuke Kamiyamane
|
|
570
570
|
* @license MIT
|
|
571
571
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -599,6 +599,8 @@ power-focusable/dist/index.js:
|
|
|
599
599
|
*/
|
|
600
600
|
|
|
601
601
|
exports.createPortal = createPortal;
|
|
602
|
+
exports.focusElement = focusElement;
|
|
603
|
+
exports.getActiveElement = getActiveElement;
|
|
602
604
|
exports.getFocusables = getFocusables;
|
|
603
605
|
exports.getNextFocusable = getNextFocusable;
|
|
604
606
|
exports.getPreviousFocusable = getPreviousFocusable;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { restoreAttributes, saveAttributes } from '@y14e/attributes-utils';
|
|
2
|
-
export { getFocusables, getNextFocusable, getPreviousFocusable } from 'power-focusable';
|
|
2
|
+
export { focusElement, getActiveElement, getFocusables, getNextFocusable, getPreviousFocusable } from 'power-focusable';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Portal
|
|
6
6
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
7
7
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
8
8
|
*
|
|
9
|
-
* @version 1.2.
|
|
9
|
+
* @version 1.2.19
|
|
10
10
|
* @author Yusuke Kamiyamane
|
|
11
11
|
* @license MIT
|
|
12
12
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { restoreAttributes, saveAttributes } from '@y14e/attributes-utils';
|
|
2
|
-
export { getFocusables, getNextFocusable, getPreviousFocusable } from 'power-focusable';
|
|
2
|
+
export { focusElement, getActiveElement, getFocusables, getNextFocusable, getPreviousFocusable } from 'power-focusable';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Portal
|
|
6
6
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
7
7
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
8
8
|
*
|
|
9
|
-
* @version 1.2.
|
|
9
|
+
* @version 1.2.19
|
|
10
10
|
* @author Yusuke Kamiyamane
|
|
11
11
|
* @license MIT
|
|
12
12
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.js
CHANGED
|
@@ -563,7 +563,7 @@ function containsComposed2(container, element) {
|
|
|
563
563
|
* Lightweight DOM portal (teleport) utility with fully focus management.
|
|
564
564
|
* Designed for accessible dialogs, menus, overlays, popovers.
|
|
565
565
|
*
|
|
566
|
-
* @version 1.2.
|
|
566
|
+
* @version 1.2.19
|
|
567
567
|
* @author Yusuke Kamiyamane
|
|
568
568
|
* @license MIT
|
|
569
569
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
|
@@ -596,4 +596,4 @@ power-focusable/dist/index.js:
|
|
|
596
596
|
*)
|
|
597
597
|
*/
|
|
598
598
|
|
|
599
|
-
export { createPortal, getFocusables, getNextFocusable, getPreviousFocusable, restoreAttributes, saveAttributes };
|
|
599
|
+
export { createPortal, focusElement, getActiveElement, getFocusables, getNextFocusable, getPreviousFocusable, restoreAttributes, saveAttributes };
|