@hashrytech/quick-components-kit 0.16.2 → 0.16.3
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/CHANGELOG.md +6 -0
- package/dist/actions/portal.d.ts +1 -1
- package/dist/actions/portal.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/actions/portal.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export type PortalOptions = {
|
|
|
2
2
|
target?: HTMLElement;
|
|
3
3
|
prepend?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function portalAction(node: HTMLElement, { target, prepend }?: PortalOptions): {
|
|
6
6
|
destroy(): void;
|
|
7
7
|
};
|
package/dist/actions/portal.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* - `prepend`: Whether to insert at the beginning instead of appending (default: true)
|
|
25
25
|
*/
|
|
26
26
|
import { browser } from '$app/environment';
|
|
27
|
-
export function
|
|
27
|
+
export function portalAction(node, { target = browser ? document.body : undefined, prepend = true } = {}) {
|
|
28
28
|
if (prepend) {
|
|
29
29
|
target?.prepend(node);
|
|
30
30
|
}
|