@sprawlify/primitives 0.0.50 → 0.0.52
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/dist/{aria-hidden-Dsgzcqqs.mjs → aria-hidden-CEBzyx-2.mjs} +1 -1
- package/dist/{aria-hidden-Qw_HHlVH.cjs → aria-hidden-CZ_i-44_.cjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-DpTFFzr4.mjs → auto-resize-BVL59TP4.mjs} +1 -1
- package/dist/{auto-resize-B2_UkyPG.cjs → auto-resize-CzaVlUmQ.cjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/{collection-C85P2ZDW.mjs → collection-CjwZd09Z.mjs} +7 -1
- package/dist/{collection-C5tUixCe.cjs → collection-Q52RkxUe.cjs} +7 -1
- package/dist/collection.cjs +1 -1
- package/dist/collection.d.cts +1 -1
- package/dist/collection.d.mts +1 -1
- package/dist/collection.mjs +1 -1
- package/dist/{core-CDOTMAS_.mjs → core-BjksCLhs.mjs} +1 -1
- package/dist/{core-BdTUDxaE.cjs → core-NCx2blZX.cjs} +1 -1
- package/dist/core.cjs +2 -2
- package/dist/core.mjs +2 -2
- package/dist/date-utils.d.mts +1 -1
- package/dist/{dismissable-CWN_cpDT.mjs → dismissable-B3hx8STR.mjs} +2 -2
- package/dist/{dismissable-Chb3G5-M.cjs → dismissable-BADVbumR.cjs} +2 -2
- package/dist/dismissable.cjs +3 -3
- package/dist/dismissable.mjs +3 -3
- package/dist/{dom-query-lSknXAK2.mjs → dom-query-BwpPRIas.mjs} +17 -1
- package/dist/{dom-query-Cw3Vjazl.cjs → dom-query-ClqjTSZC.cjs} +22 -0
- package/dist/dom-query.cjs +2 -1
- package/dist/dom-query.d.cts +2 -2
- package/dist/dom-query.d.mts +2 -2
- package/dist/dom-query.mjs +2 -2
- package/dist/{focus-trap-ROjmlZib.cjs → focus-trap-CH_5ucTD.cjs} +1 -1
- package/dist/{focus-trap-pQ6X3hbA.mjs → focus-trap-CbwLeNp4.mjs} +1 -1
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-BV5-b3O7.mjs → focus-visible-3pja4Mga.mjs} +1 -1
- package/dist/{focus-visible-BtxmnYG0.cjs → focus-visible-BbOZu8QU.cjs} +1 -1
- package/dist/focus-visible.cjs +2 -2
- package/dist/focus-visible.mjs +2 -2
- package/dist/{i18n-utils-BAcKqrRM.mjs → i18n-utils-CSCl08Vd.mjs} +1 -1
- package/dist/{i18n-utils-DZrroJom.cjs → i18n-utils-D9RUw2tK.cjs} +1 -1
- package/dist/i18n-utils.cjs +2 -2
- package/dist/i18n-utils.mjs +2 -2
- package/dist/{index-BqhWpjZh.d.mts → index-ExuT65LJ.d.mts} +5 -5
- package/dist/{interact-outside-C60P6JkZ.mjs → interact-outside-C0yB--HG.mjs} +1 -1
- package/dist/{interact-outside-C1SI9b6g.cjs → interact-outside-D28zeFXP.cjs} +1 -1
- package/dist/interact-outside.cjs +2 -2
- package/dist/interact-outside.mjs +2 -2
- package/dist/machines/accordion/index.cjs +2 -2
- package/dist/machines/accordion/index.mjs +2 -2
- package/dist/machines/angle-slider/index.cjs +2 -2
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/index.d.mts +1 -1
- package/dist/machines/angle-slider/index.mjs +2 -2
- package/dist/machines/async-list/index.cjs +2 -2
- package/dist/machines/async-list/index.mjs +2 -2
- package/dist/machines/avatar/index.cjs +2 -2
- package/dist/machines/avatar/index.mjs +2 -2
- package/dist/machines/bottom-sheet/index.cjs +7 -7
- package/dist/machines/bottom-sheet/index.d.cts +1 -1
- package/dist/machines/bottom-sheet/index.d.mts +1 -1
- package/dist/machines/bottom-sheet/index.mjs +7 -7
- package/dist/machines/carousel/index.cjs +3 -3
- package/dist/machines/carousel/index.d.cts +1 -1
- package/dist/machines/carousel/index.d.mts +1 -1
- package/dist/machines/carousel/index.mjs +3 -3
- package/dist/machines/checkbox/index.cjs +3 -3
- package/dist/machines/checkbox/index.d.cts +1 -1
- package/dist/machines/checkbox/index.d.mts +1 -1
- package/dist/machines/checkbox/index.mjs +3 -3
- package/dist/machines/clipboard/index.cjs +2 -2
- package/dist/machines/clipboard/index.d.cts +1 -1
- package/dist/machines/clipboard/index.d.mts +1 -1
- package/dist/machines/clipboard/index.mjs +2 -2
- package/dist/machines/collapsible/index.cjs +2 -2
- package/dist/machines/collapsible/index.d.cts +1 -1
- package/dist/machines/collapsible/index.d.mts +1 -1
- package/dist/machines/collapsible/index.mjs +2 -2
- package/dist/machines/color-picker/index.cjs +5 -5
- package/dist/machines/color-picker/index.d.cts +1 -1
- package/dist/machines/color-picker/index.d.mts +1 -1
- package/dist/machines/color-picker/index.mjs +5 -5
- package/dist/machines/combobox/index.cjs +6 -6
- package/dist/machines/combobox/index.d.cts +1 -1
- package/dist/machines/combobox/index.d.mts +1 -1
- package/dist/machines/combobox/index.mjs +6 -6
- package/dist/machines/date-picker/index.cjs +5 -5
- package/dist/machines/date-picker/index.d.cts +1 -1
- package/dist/machines/date-picker/index.d.mts +2 -2
- package/dist/machines/date-picker/index.mjs +5 -5
- package/dist/machines/dialog/index.cjs +7 -7
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.mts +1 -1
- package/dist/machines/dialog/index.mjs +7 -7
- package/dist/machines/editable/index.cjs +3 -3
- package/dist/machines/editable/index.mjs +3 -3
- package/dist/machines/file-upload/index.cjs +3 -3
- package/dist/machines/file-upload/index.d.cts +1 -1
- package/dist/machines/file-upload/index.d.mts +1 -1
- package/dist/machines/file-upload/index.mjs +3 -3
- package/dist/machines/floating-panel/index.cjs +2 -2
- package/dist/machines/floating-panel/index.d.cts +1 -1
- package/dist/machines/floating-panel/index.d.mts +1 -1
- package/dist/machines/floating-panel/index.mjs +2 -2
- package/dist/machines/hover-card/index.cjs +5 -5
- package/dist/machines/hover-card/index.d.cts +1 -1
- package/dist/machines/hover-card/index.d.mts +1 -1
- package/dist/machines/hover-card/index.mjs +5 -5
- package/dist/machines/image-cropper/index.cjs +2 -2
- package/dist/machines/image-cropper/index.d.cts +1 -1
- package/dist/machines/image-cropper/index.d.mts +1 -1
- package/dist/machines/image-cropper/index.mjs +2 -2
- package/dist/machines/listbox/index.cjs +4 -4
- package/dist/machines/listbox/index.d.cts +1 -1
- package/dist/machines/listbox/index.d.mts +1 -1
- package/dist/machines/listbox/index.mjs +4 -4
- package/dist/machines/marquee/index.cjs +2 -2
- package/dist/machines/marquee/index.d.cts +3 -3
- package/dist/machines/marquee/index.d.mts +3 -3
- package/dist/machines/marquee/index.mjs +2 -2
- package/dist/machines/menu/index.cjs +5 -5
- package/dist/machines/menu/index.d.cts +1 -1
- package/dist/machines/menu/index.d.mts +1 -1
- package/dist/machines/menu/index.mjs +5 -5
- package/dist/machines/navigation-menu/index.cjs +4 -4
- package/dist/machines/navigation-menu/index.d.cts +1 -1
- package/dist/machines/navigation-menu/index.d.mts +1 -1
- package/dist/machines/navigation-menu/index.mjs +4 -4
- package/dist/machines/number-input/index.cjs +2 -2
- package/dist/machines/number-input/index.d.cts +1 -1
- package/dist/machines/number-input/index.d.mts +1 -1
- package/dist/machines/number-input/index.mjs +2 -2
- package/dist/machines/pagination/index.cjs +2 -2
- package/dist/machines/pagination/index.mjs +2 -2
- package/dist/machines/password-input/index.cjs +2 -2
- package/dist/machines/password-input/index.d.cts +1 -1
- package/dist/machines/password-input/index.d.mts +1 -1
- package/dist/machines/password-input/index.mjs +2 -2
- package/dist/machines/pin-input/index.cjs +2 -2
- package/dist/machines/pin-input/index.mjs +2 -2
- package/dist/machines/popover/index.cjs +8 -8
- package/dist/machines/popover/index.d.cts +1 -1
- package/dist/machines/popover/index.d.mts +1 -1
- package/dist/machines/popover/index.mjs +8 -8
- package/dist/machines/presence/index.cjs +2 -2
- package/dist/machines/presence/index.mjs +2 -2
- package/dist/machines/progress/index.cjs +2 -2
- package/dist/machines/progress/index.d.cts +1 -1
- package/dist/machines/progress/index.d.mts +1 -1
- package/dist/machines/progress/index.mjs +2 -2
- package/dist/machines/qr-code/index.cjs +2 -2
- package/dist/machines/qr-code/index.mjs +2 -2
- package/dist/machines/radio-group/index.cjs +3 -3
- package/dist/machines/radio-group/index.d.cts +1 -1
- package/dist/machines/radio-group/index.d.mts +1 -1
- package/dist/machines/radio-group/index.mjs +3 -3
- package/dist/machines/rating-group/index.cjs +2 -2
- package/dist/machines/rating-group/index.d.cts +1 -1
- package/dist/machines/rating-group/index.d.mts +1 -1
- package/dist/machines/rating-group/index.mjs +2 -2
- package/dist/machines/scroll-area/index.cjs +2 -2
- package/dist/machines/scroll-area/index.d.cts +1 -1
- package/dist/machines/scroll-area/index.d.mts +1 -1
- package/dist/machines/scroll-area/index.mjs +2 -2
- package/dist/machines/select/index.cjs +6 -6
- package/dist/machines/select/index.d.cts +1 -1
- package/dist/machines/select/index.d.mts +1 -1
- package/dist/machines/select/index.mjs +6 -6
- package/dist/machines/signature-pad/index.cjs +2 -2
- package/dist/machines/signature-pad/index.mjs +2 -2
- package/dist/machines/slider/index.cjs +2 -2
- package/dist/machines/slider/index.d.cts +1 -1
- package/dist/machines/slider/index.d.mts +1 -1
- package/dist/machines/slider/index.mjs +2 -2
- package/dist/machines/splitter/index.cjs +2 -2
- package/dist/machines/splitter/index.d.cts +1 -1
- package/dist/machines/splitter/index.d.mts +1 -1
- package/dist/machines/splitter/index.mjs +2 -2
- package/dist/machines/steps/index.cjs +2 -2
- package/dist/machines/steps/index.d.cts +1 -1
- package/dist/machines/steps/index.d.mts +1 -1
- package/dist/machines/steps/index.mjs +2 -2
- package/dist/machines/switch/index.cjs +3 -3
- package/dist/machines/switch/index.d.cts +1 -1
- package/dist/machines/switch/index.d.mts +1 -1
- package/dist/machines/switch/index.mjs +3 -3
- package/dist/machines/tabs/index.cjs +2 -2
- package/dist/machines/tabs/index.d.cts +1 -1
- package/dist/machines/tabs/index.d.mts +1 -1
- package/dist/machines/tabs/index.mjs +2 -2
- package/dist/machines/tags-input/index.cjs +4 -4
- package/dist/machines/tags-input/index.d.cts +1 -1
- package/dist/machines/tags-input/index.d.mts +1 -1
- package/dist/machines/tags-input/index.mjs +4 -4
- package/dist/machines/timer/index.cjs +2 -2
- package/dist/machines/timer/index.d.cts +1 -1
- package/dist/machines/timer/index.d.mts +1 -1
- package/dist/machines/timer/index.mjs +2 -2
- package/dist/machines/toast/index.cjs +4 -4
- package/dist/machines/toast/index.d.cts +1 -1
- package/dist/machines/toast/index.d.mts +1 -1
- package/dist/machines/toast/index.mjs +4 -4
- package/dist/machines/toggle/index.cjs +2 -2
- package/dist/machines/toggle/index.mjs +2 -2
- package/dist/machines/toggle-group/index.cjs +2 -2
- package/dist/machines/toggle-group/index.mjs +2 -2
- package/dist/machines/tooltip/index.cjs +4 -4
- package/dist/machines/tooltip/index.d.cts +1 -1
- package/dist/machines/tooltip/index.d.mts +1 -1
- package/dist/machines/tooltip/index.mjs +4 -4
- package/dist/machines/tour/index.cjs +6 -6
- package/dist/machines/tour/index.d.cts +2 -2
- package/dist/machines/tour/index.d.mts +2 -2
- package/dist/machines/tour/index.mjs +6 -6
- package/dist/machines/tree-view/index.cjs +13 -8
- package/dist/machines/tree-view/index.d.cts +2 -2
- package/dist/machines/tree-view/index.d.mts +2 -2
- package/dist/machines/tree-view/index.mjs +13 -8
- package/dist/{popper-DpxOCdXo.cjs → popper-BwFBqHeN.cjs} +1 -1
- package/dist/{popper-CjF4zHDX.mjs → popper-C6DOG0y6.mjs} +1 -1
- package/dist/popper.cjs +2 -2
- package/dist/popper.mjs +2 -2
- package/dist/{remove-scroll-CrGSKwL7.mjs → remove-scroll-Dj2rN8ST.mjs} +1 -1
- package/dist/{remove-scroll-CgRTMz8o.cjs → remove-scroll-w6rI9a_g.cjs} +1 -1
- package/dist/{scroll-snap-DsiS0MS6.cjs → scroll-snap-D2Ao0kC_.cjs} +1 -1
- package/dist/{scroll-snap-DMFCl42o.mjs → scroll-snap-qgiu8AOd.mjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{tree-collection-Dlv1BAsc.d.cts → tree-collection-CmehimuO.d.cts} +1 -1
- package/dist/{tree-collection-DYIVkVee.d.mts → tree-collection-CqXQBHwY.d.mts} +1 -1
- package/dist/wait-for-ChpX25fU.d.cts +15 -0
- package/dist/wait-for-DxY1szJ6.d.mts +15 -0
- package/package.json +1 -1
- package/dist/wait-for-BkzY39R9.d.mts +0 -10
- package/dist/wait-for-CMjPsqWk.d.cts +0 -10
package/dist/popper.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('./dom-query-
|
|
1
|
+
require('./dom-query-ClqjTSZC.cjs');
|
|
2
2
|
require('./utils-B4_qn2dt.cjs');
|
|
3
|
-
const require_popper = require('./popper-
|
|
3
|
+
const require_popper = require('./popper-BwFBqHeN.cjs');
|
|
4
4
|
|
|
5
5
|
exports.getPlacement = require_popper.getPlacement;
|
|
6
6
|
exports.getPlacementSide = require_popper.getPlacementSide;
|
package/dist/popper.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dom-query-
|
|
1
|
+
import "./dom-query-BwpPRIas.mjs";
|
|
2
2
|
import "./utils-DSBXwmDm.mjs";
|
|
3
|
-
import { i as isValidPlacement, n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "./popper-
|
|
3
|
+
import { i as isValidPlacement, n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "./popper-C6DOG0y6.mjs";
|
|
4
4
|
|
|
5
5
|
export { getPlacement, getPlacementSide, getPlacementStyles, isValidPlacement };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Lt as isIos, Xt as getComputedStyle, d as setStyleProperty, u as setStyle } from "./dom-query-BwpPRIas.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/remove-scroll/index.ts
|
|
4
4
|
const LOCK_CLASSNAME = "data-scroll-lock";
|
package/dist/scroll-snap.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('./dom-query-
|
|
2
|
-
const require_scroll_snap = require('./scroll-snap-
|
|
1
|
+
require('./dom-query-ClqjTSZC.cjs');
|
|
2
|
+
const require_scroll_snap = require('./scroll-snap-D2Ao0kC_.cjs');
|
|
3
3
|
|
|
4
4
|
exports.findSnapPoint = require_scroll_snap.findSnapPoint;
|
|
5
5
|
exports.getScrollSnapPositions = require_scroll_snap.getScrollSnapPositions;
|
package/dist/scroll-snap.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { i as getSnapPositions, n as getScrollSnapPositions, r as getSnapPointTarget, t as findSnapPoint } from "./scroll-snap-
|
|
1
|
+
import "./dom-query-BwpPRIas.mjs";
|
|
2
|
+
import { i as getSnapPositions, n as getScrollSnapPositions, r as getSnapPointTarget, t as findSnapPoint } from "./scroll-snap-qgiu8AOd.mjs";
|
|
3
3
|
|
|
4
4
|
export { findSnapPoint, getScrollSnapPositions, getSnapPointTarget, getSnapPositions };
|
|
@@ -27,7 +27,7 @@ declare class TreeCollection<T = TreeNode> {
|
|
|
27
27
|
getNodeDisabled: (node: T) => boolean;
|
|
28
28
|
stringify: (value: string) => string | null;
|
|
29
29
|
stringifyNode: (node: T) => string;
|
|
30
|
-
getFirstNode: (rootNode?: T) => T | undefined;
|
|
30
|
+
getFirstNode: (rootNode?: T, opts?: TreeSkipOptions<T>) => T | undefined;
|
|
31
31
|
getLastNode: (rootNode?: T, opts?: TreeSkipOptions<T>) => T | undefined;
|
|
32
32
|
at: (indexPath: IndexPath) => T | undefined;
|
|
33
33
|
findNode: (value: string, rootNode?: T) => T | undefined;
|
|
@@ -27,7 +27,7 @@ declare class TreeCollection<T = TreeNode> {
|
|
|
27
27
|
getNodeDisabled: (node: T) => boolean;
|
|
28
28
|
stringify: (value: string) => string | null;
|
|
29
29
|
stringifyNode: (node: T) => string;
|
|
30
|
-
getFirstNode: (rootNode?: T) => T | undefined;
|
|
30
|
+
getFirstNode: (rootNode?: T, opts?: TreeSkipOptions<T>) => T | undefined;
|
|
31
31
|
getLastNode: (rootNode?: T, opts?: TreeSkipOptions<T>) => T | undefined;
|
|
32
32
|
at: (indexPath: IndexPath) => T | undefined;
|
|
33
33
|
findNode: (value: string, rootNode?: T) => T | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/shared/dom-query/wait-for.d.ts
|
|
2
|
+
interface WaitForOptions {
|
|
3
|
+
timeout: number;
|
|
4
|
+
rootNode?: Document | ShadowRoot | undefined;
|
|
5
|
+
}
|
|
6
|
+
type WaitForPromiseReturn<T> = [Promise<T>, () => void];
|
|
7
|
+
declare function waitForPromise<T>(promise: Promise<T>, controller: AbortController, timeout: number): WaitForPromiseReturn<T>;
|
|
8
|
+
declare function waitForElement(target: () => HTMLElement | null, options: WaitForOptions): WaitForPromiseReturn<HTMLElement>;
|
|
9
|
+
type WaitForEventReturn<K extends keyof HTMLElementEventMap> = [Promise<HTMLElementEventMap[K]>, VoidFunction];
|
|
10
|
+
interface WaitForEventOptions<T extends HTMLElement = HTMLElement> extends AddEventListenerOptions {
|
|
11
|
+
predicate?: (element: T) => boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function waitForEvent<T extends HTMLElement = HTMLElement, K extends keyof HTMLElementEventMap = keyof HTMLElementEventMap>(target: (() => HTMLElement | null) | undefined, event: K, options?: WaitForEventOptions<T>): WaitForEventReturn<K>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { waitForEvent as a, waitForElement as i, WaitForOptions as n, waitForPromise as o, WaitForPromiseReturn as r, WaitForEventOptions as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/shared/dom-query/wait-for.d.ts
|
|
2
|
+
interface WaitForOptions {
|
|
3
|
+
timeout: number;
|
|
4
|
+
rootNode?: Document | ShadowRoot | undefined;
|
|
5
|
+
}
|
|
6
|
+
type WaitForPromiseReturn<T> = [Promise<T>, () => void];
|
|
7
|
+
declare function waitForPromise<T>(promise: Promise<T>, controller: AbortController, timeout: number): WaitForPromiseReturn<T>;
|
|
8
|
+
declare function waitForElement(target: () => HTMLElement | null, options: WaitForOptions): WaitForPromiseReturn<HTMLElement>;
|
|
9
|
+
type WaitForEventReturn<K extends keyof HTMLElementEventMap> = [Promise<HTMLElementEventMap[K]>, VoidFunction];
|
|
10
|
+
interface WaitForEventOptions<T extends HTMLElement = HTMLElement> extends AddEventListenerOptions {
|
|
11
|
+
predicate?: (element: T) => boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function waitForEvent<T extends HTMLElement = HTMLElement, K extends keyof HTMLElementEventMap = keyof HTMLElementEventMap>(target: (() => HTMLElement | null) | undefined, event: K, options?: WaitForEventOptions<T>): WaitForEventReturn<K>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { waitForEvent as a, waitForElement as i, WaitForOptions as n, waitForPromise as o, WaitForPromiseReturn as r, WaitForEventOptions as t };
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/shared/dom-query/wait-for.d.ts
|
|
2
|
-
interface WaitForOptions {
|
|
3
|
-
timeout: number;
|
|
4
|
-
rootNode?: Document | ShadowRoot | undefined;
|
|
5
|
-
}
|
|
6
|
-
type WaitForPromiseReturn<T> = [Promise<T>, () => void];
|
|
7
|
-
declare function waitForPromise<T>(promise: Promise<T>, controller: AbortController, timeout: number): WaitForPromiseReturn<T>;
|
|
8
|
-
declare function waitForElement(target: () => HTMLElement | null, options: WaitForOptions): WaitForPromiseReturn<HTMLElement>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { waitForPromise as i, WaitForPromiseReturn as n, waitForElement as r, WaitForOptions as t };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/shared/dom-query/wait-for.d.ts
|
|
2
|
-
interface WaitForOptions {
|
|
3
|
-
timeout: number;
|
|
4
|
-
rootNode?: Document | ShadowRoot | undefined;
|
|
5
|
-
}
|
|
6
|
-
type WaitForPromiseReturn<T> = [Promise<T>, () => void];
|
|
7
|
-
declare function waitForPromise<T>(promise: Promise<T>, controller: AbortController, timeout: number): WaitForPromiseReturn<T>;
|
|
8
|
-
declare function waitForElement(target: () => HTMLElement | null, options: WaitForOptions): WaitForPromiseReturn<HTMLElement>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { waitForPromise as i, WaitForPromiseReturn as n, waitForElement as r, WaitForOptions as t };
|