@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.
Files changed (233) hide show
  1. package/dist/{aria-hidden-Dsgzcqqs.mjs → aria-hidden-CEBzyx-2.mjs} +1 -1
  2. package/dist/{aria-hidden-Qw_HHlVH.cjs → aria-hidden-CZ_i-44_.cjs} +1 -1
  3. package/dist/aria-hidden.cjs +2 -2
  4. package/dist/aria-hidden.mjs +2 -2
  5. package/dist/{auto-resize-DpTFFzr4.mjs → auto-resize-BVL59TP4.mjs} +1 -1
  6. package/dist/{auto-resize-B2_UkyPG.cjs → auto-resize-CzaVlUmQ.cjs} +1 -1
  7. package/dist/auto-resize.cjs +2 -2
  8. package/dist/auto-resize.mjs +2 -2
  9. package/dist/{collection-C85P2ZDW.mjs → collection-CjwZd09Z.mjs} +7 -1
  10. package/dist/{collection-C5tUixCe.cjs → collection-Q52RkxUe.cjs} +7 -1
  11. package/dist/collection.cjs +1 -1
  12. package/dist/collection.d.cts +1 -1
  13. package/dist/collection.d.mts +1 -1
  14. package/dist/collection.mjs +1 -1
  15. package/dist/{core-CDOTMAS_.mjs → core-BjksCLhs.mjs} +1 -1
  16. package/dist/{core-BdTUDxaE.cjs → core-NCx2blZX.cjs} +1 -1
  17. package/dist/core.cjs +2 -2
  18. package/dist/core.mjs +2 -2
  19. package/dist/date-utils.d.mts +1 -1
  20. package/dist/{dismissable-CWN_cpDT.mjs → dismissable-B3hx8STR.mjs} +2 -2
  21. package/dist/{dismissable-Chb3G5-M.cjs → dismissable-BADVbumR.cjs} +2 -2
  22. package/dist/dismissable.cjs +3 -3
  23. package/dist/dismissable.mjs +3 -3
  24. package/dist/{dom-query-lSknXAK2.mjs → dom-query-BwpPRIas.mjs} +17 -1
  25. package/dist/{dom-query-Cw3Vjazl.cjs → dom-query-ClqjTSZC.cjs} +22 -0
  26. package/dist/dom-query.cjs +2 -1
  27. package/dist/dom-query.d.cts +2 -2
  28. package/dist/dom-query.d.mts +2 -2
  29. package/dist/dom-query.mjs +2 -2
  30. package/dist/{focus-trap-ROjmlZib.cjs → focus-trap-CH_5ucTD.cjs} +1 -1
  31. package/dist/{focus-trap-pQ6X3hbA.mjs → focus-trap-CbwLeNp4.mjs} +1 -1
  32. package/dist/focus-trap.cjs +2 -2
  33. package/dist/focus-trap.mjs +2 -2
  34. package/dist/{focus-visible-BV5-b3O7.mjs → focus-visible-3pja4Mga.mjs} +1 -1
  35. package/dist/{focus-visible-BtxmnYG0.cjs → focus-visible-BbOZu8QU.cjs} +1 -1
  36. package/dist/focus-visible.cjs +2 -2
  37. package/dist/focus-visible.mjs +2 -2
  38. package/dist/{i18n-utils-BAcKqrRM.mjs → i18n-utils-CSCl08Vd.mjs} +1 -1
  39. package/dist/{i18n-utils-DZrroJom.cjs → i18n-utils-D9RUw2tK.cjs} +1 -1
  40. package/dist/i18n-utils.cjs +2 -2
  41. package/dist/i18n-utils.mjs +2 -2
  42. package/dist/{index-BqhWpjZh.d.mts → index-ExuT65LJ.d.mts} +5 -5
  43. package/dist/{interact-outside-C60P6JkZ.mjs → interact-outside-C0yB--HG.mjs} +1 -1
  44. package/dist/{interact-outside-C1SI9b6g.cjs → interact-outside-D28zeFXP.cjs} +1 -1
  45. package/dist/interact-outside.cjs +2 -2
  46. package/dist/interact-outside.mjs +2 -2
  47. package/dist/machines/accordion/index.cjs +2 -2
  48. package/dist/machines/accordion/index.mjs +2 -2
  49. package/dist/machines/angle-slider/index.cjs +2 -2
  50. package/dist/machines/angle-slider/index.d.cts +1 -1
  51. package/dist/machines/angle-slider/index.d.mts +1 -1
  52. package/dist/machines/angle-slider/index.mjs +2 -2
  53. package/dist/machines/async-list/index.cjs +2 -2
  54. package/dist/machines/async-list/index.mjs +2 -2
  55. package/dist/machines/avatar/index.cjs +2 -2
  56. package/dist/machines/avatar/index.mjs +2 -2
  57. package/dist/machines/bottom-sheet/index.cjs +7 -7
  58. package/dist/machines/bottom-sheet/index.d.cts +1 -1
  59. package/dist/machines/bottom-sheet/index.d.mts +1 -1
  60. package/dist/machines/bottom-sheet/index.mjs +7 -7
  61. package/dist/machines/carousel/index.cjs +3 -3
  62. package/dist/machines/carousel/index.d.cts +1 -1
  63. package/dist/machines/carousel/index.d.mts +1 -1
  64. package/dist/machines/carousel/index.mjs +3 -3
  65. package/dist/machines/checkbox/index.cjs +3 -3
  66. package/dist/machines/checkbox/index.d.cts +1 -1
  67. package/dist/machines/checkbox/index.d.mts +1 -1
  68. package/dist/machines/checkbox/index.mjs +3 -3
  69. package/dist/machines/clipboard/index.cjs +2 -2
  70. package/dist/machines/clipboard/index.d.cts +1 -1
  71. package/dist/machines/clipboard/index.d.mts +1 -1
  72. package/dist/machines/clipboard/index.mjs +2 -2
  73. package/dist/machines/collapsible/index.cjs +2 -2
  74. package/dist/machines/collapsible/index.d.cts +1 -1
  75. package/dist/machines/collapsible/index.d.mts +1 -1
  76. package/dist/machines/collapsible/index.mjs +2 -2
  77. package/dist/machines/color-picker/index.cjs +5 -5
  78. package/dist/machines/color-picker/index.d.cts +1 -1
  79. package/dist/machines/color-picker/index.d.mts +1 -1
  80. package/dist/machines/color-picker/index.mjs +5 -5
  81. package/dist/machines/combobox/index.cjs +6 -6
  82. package/dist/machines/combobox/index.d.cts +1 -1
  83. package/dist/machines/combobox/index.d.mts +1 -1
  84. package/dist/machines/combobox/index.mjs +6 -6
  85. package/dist/machines/date-picker/index.cjs +5 -5
  86. package/dist/machines/date-picker/index.d.cts +1 -1
  87. package/dist/machines/date-picker/index.d.mts +2 -2
  88. package/dist/machines/date-picker/index.mjs +5 -5
  89. package/dist/machines/dialog/index.cjs +7 -7
  90. package/dist/machines/dialog/index.d.cts +1 -1
  91. package/dist/machines/dialog/index.d.mts +1 -1
  92. package/dist/machines/dialog/index.mjs +7 -7
  93. package/dist/machines/editable/index.cjs +3 -3
  94. package/dist/machines/editable/index.mjs +3 -3
  95. package/dist/machines/file-upload/index.cjs +3 -3
  96. package/dist/machines/file-upload/index.d.cts +1 -1
  97. package/dist/machines/file-upload/index.d.mts +1 -1
  98. package/dist/machines/file-upload/index.mjs +3 -3
  99. package/dist/machines/floating-panel/index.cjs +2 -2
  100. package/dist/machines/floating-panel/index.d.cts +1 -1
  101. package/dist/machines/floating-panel/index.d.mts +1 -1
  102. package/dist/machines/floating-panel/index.mjs +2 -2
  103. package/dist/machines/hover-card/index.cjs +5 -5
  104. package/dist/machines/hover-card/index.d.cts +1 -1
  105. package/dist/machines/hover-card/index.d.mts +1 -1
  106. package/dist/machines/hover-card/index.mjs +5 -5
  107. package/dist/machines/image-cropper/index.cjs +2 -2
  108. package/dist/machines/image-cropper/index.d.cts +1 -1
  109. package/dist/machines/image-cropper/index.d.mts +1 -1
  110. package/dist/machines/image-cropper/index.mjs +2 -2
  111. package/dist/machines/listbox/index.cjs +4 -4
  112. package/dist/machines/listbox/index.d.cts +1 -1
  113. package/dist/machines/listbox/index.d.mts +1 -1
  114. package/dist/machines/listbox/index.mjs +4 -4
  115. package/dist/machines/marquee/index.cjs +2 -2
  116. package/dist/machines/marquee/index.d.cts +3 -3
  117. package/dist/machines/marquee/index.d.mts +3 -3
  118. package/dist/machines/marquee/index.mjs +2 -2
  119. package/dist/machines/menu/index.cjs +5 -5
  120. package/dist/machines/menu/index.d.cts +1 -1
  121. package/dist/machines/menu/index.d.mts +1 -1
  122. package/dist/machines/menu/index.mjs +5 -5
  123. package/dist/machines/navigation-menu/index.cjs +4 -4
  124. package/dist/machines/navigation-menu/index.d.cts +1 -1
  125. package/dist/machines/navigation-menu/index.d.mts +1 -1
  126. package/dist/machines/navigation-menu/index.mjs +4 -4
  127. package/dist/machines/number-input/index.cjs +2 -2
  128. package/dist/machines/number-input/index.d.cts +1 -1
  129. package/dist/machines/number-input/index.d.mts +1 -1
  130. package/dist/machines/number-input/index.mjs +2 -2
  131. package/dist/machines/pagination/index.cjs +2 -2
  132. package/dist/machines/pagination/index.mjs +2 -2
  133. package/dist/machines/password-input/index.cjs +2 -2
  134. package/dist/machines/password-input/index.d.cts +1 -1
  135. package/dist/machines/password-input/index.d.mts +1 -1
  136. package/dist/machines/password-input/index.mjs +2 -2
  137. package/dist/machines/pin-input/index.cjs +2 -2
  138. package/dist/machines/pin-input/index.mjs +2 -2
  139. package/dist/machines/popover/index.cjs +8 -8
  140. package/dist/machines/popover/index.d.cts +1 -1
  141. package/dist/machines/popover/index.d.mts +1 -1
  142. package/dist/machines/popover/index.mjs +8 -8
  143. package/dist/machines/presence/index.cjs +2 -2
  144. package/dist/machines/presence/index.mjs +2 -2
  145. package/dist/machines/progress/index.cjs +2 -2
  146. package/dist/machines/progress/index.d.cts +1 -1
  147. package/dist/machines/progress/index.d.mts +1 -1
  148. package/dist/machines/progress/index.mjs +2 -2
  149. package/dist/machines/qr-code/index.cjs +2 -2
  150. package/dist/machines/qr-code/index.mjs +2 -2
  151. package/dist/machines/radio-group/index.cjs +3 -3
  152. package/dist/machines/radio-group/index.d.cts +1 -1
  153. package/dist/machines/radio-group/index.d.mts +1 -1
  154. package/dist/machines/radio-group/index.mjs +3 -3
  155. package/dist/machines/rating-group/index.cjs +2 -2
  156. package/dist/machines/rating-group/index.d.cts +1 -1
  157. package/dist/machines/rating-group/index.d.mts +1 -1
  158. package/dist/machines/rating-group/index.mjs +2 -2
  159. package/dist/machines/scroll-area/index.cjs +2 -2
  160. package/dist/machines/scroll-area/index.d.cts +1 -1
  161. package/dist/machines/scroll-area/index.d.mts +1 -1
  162. package/dist/machines/scroll-area/index.mjs +2 -2
  163. package/dist/machines/select/index.cjs +6 -6
  164. package/dist/machines/select/index.d.cts +1 -1
  165. package/dist/machines/select/index.d.mts +1 -1
  166. package/dist/machines/select/index.mjs +6 -6
  167. package/dist/machines/signature-pad/index.cjs +2 -2
  168. package/dist/machines/signature-pad/index.mjs +2 -2
  169. package/dist/machines/slider/index.cjs +2 -2
  170. package/dist/machines/slider/index.d.cts +1 -1
  171. package/dist/machines/slider/index.d.mts +1 -1
  172. package/dist/machines/slider/index.mjs +2 -2
  173. package/dist/machines/splitter/index.cjs +2 -2
  174. package/dist/machines/splitter/index.d.cts +1 -1
  175. package/dist/machines/splitter/index.d.mts +1 -1
  176. package/dist/machines/splitter/index.mjs +2 -2
  177. package/dist/machines/steps/index.cjs +2 -2
  178. package/dist/machines/steps/index.d.cts +1 -1
  179. package/dist/machines/steps/index.d.mts +1 -1
  180. package/dist/machines/steps/index.mjs +2 -2
  181. package/dist/machines/switch/index.cjs +3 -3
  182. package/dist/machines/switch/index.d.cts +1 -1
  183. package/dist/machines/switch/index.d.mts +1 -1
  184. package/dist/machines/switch/index.mjs +3 -3
  185. package/dist/machines/tabs/index.cjs +2 -2
  186. package/dist/machines/tabs/index.d.cts +1 -1
  187. package/dist/machines/tabs/index.d.mts +1 -1
  188. package/dist/machines/tabs/index.mjs +2 -2
  189. package/dist/machines/tags-input/index.cjs +4 -4
  190. package/dist/machines/tags-input/index.d.cts +1 -1
  191. package/dist/machines/tags-input/index.d.mts +1 -1
  192. package/dist/machines/tags-input/index.mjs +4 -4
  193. package/dist/machines/timer/index.cjs +2 -2
  194. package/dist/machines/timer/index.d.cts +1 -1
  195. package/dist/machines/timer/index.d.mts +1 -1
  196. package/dist/machines/timer/index.mjs +2 -2
  197. package/dist/machines/toast/index.cjs +4 -4
  198. package/dist/machines/toast/index.d.cts +1 -1
  199. package/dist/machines/toast/index.d.mts +1 -1
  200. package/dist/machines/toast/index.mjs +4 -4
  201. package/dist/machines/toggle/index.cjs +2 -2
  202. package/dist/machines/toggle/index.mjs +2 -2
  203. package/dist/machines/toggle-group/index.cjs +2 -2
  204. package/dist/machines/toggle-group/index.mjs +2 -2
  205. package/dist/machines/tooltip/index.cjs +4 -4
  206. package/dist/machines/tooltip/index.d.cts +1 -1
  207. package/dist/machines/tooltip/index.d.mts +1 -1
  208. package/dist/machines/tooltip/index.mjs +4 -4
  209. package/dist/machines/tour/index.cjs +6 -6
  210. package/dist/machines/tour/index.d.cts +2 -2
  211. package/dist/machines/tour/index.d.mts +2 -2
  212. package/dist/machines/tour/index.mjs +6 -6
  213. package/dist/machines/tree-view/index.cjs +13 -8
  214. package/dist/machines/tree-view/index.d.cts +2 -2
  215. package/dist/machines/tree-view/index.d.mts +2 -2
  216. package/dist/machines/tree-view/index.mjs +13 -8
  217. package/dist/{popper-DpxOCdXo.cjs → popper-BwFBqHeN.cjs} +1 -1
  218. package/dist/{popper-CjF4zHDX.mjs → popper-C6DOG0y6.mjs} +1 -1
  219. package/dist/popper.cjs +2 -2
  220. package/dist/popper.mjs +2 -2
  221. package/dist/{remove-scroll-CrGSKwL7.mjs → remove-scroll-Dj2rN8ST.mjs} +1 -1
  222. package/dist/{remove-scroll-CgRTMz8o.cjs → remove-scroll-w6rI9a_g.cjs} +1 -1
  223. package/dist/{scroll-snap-DsiS0MS6.cjs → scroll-snap-D2Ao0kC_.cjs} +1 -1
  224. package/dist/{scroll-snap-DMFCl42o.mjs → scroll-snap-qgiu8AOd.mjs} +1 -1
  225. package/dist/scroll-snap.cjs +2 -2
  226. package/dist/scroll-snap.mjs +2 -2
  227. package/dist/{tree-collection-Dlv1BAsc.d.cts → tree-collection-CmehimuO.d.cts} +1 -1
  228. package/dist/{tree-collection-DYIVkVee.d.mts → tree-collection-CqXQBHwY.d.mts} +1 -1
  229. package/dist/wait-for-ChpX25fU.d.cts +15 -0
  230. package/dist/wait-for-DxY1szJ6.d.mts +15 -0
  231. package/package.json +1 -1
  232. package/dist/wait-for-BkzY39R9.d.mts +0 -10
  233. package/dist/wait-for-CMjPsqWk.d.cts +0 -10
package/dist/popper.cjs CHANGED
@@ -1,6 +1,6 @@
1
- require('./dom-query-Cw3Vjazl.cjs');
1
+ require('./dom-query-ClqjTSZC.cjs');
2
2
  require('./utils-B4_qn2dt.cjs');
3
- const require_popper = require('./popper-DpxOCdXo.cjs');
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-lSknXAK2.mjs";
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-CjF4zHDX.mjs";
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 { It as isIos, Yt as getComputedStyle, l as setStyle, u as setStyleProperty } from "./dom-query-lSknXAK2.mjs";
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";
@@ -1,4 +1,4 @@
1
- const require_dom_query = require('./dom-query-Cw3Vjazl.cjs');
1
+ const require_dom_query = require('./dom-query-ClqjTSZC.cjs');
2
2
 
3
3
  //#region src/shared/remove-scroll/index.ts
4
4
  const LOCK_CLASSNAME = "data-scroll-lock";
@@ -1,4 +1,4 @@
1
- const require_dom_query = require('./dom-query-Cw3Vjazl.cjs');
1
+ const require_dom_query = require('./dom-query-ClqjTSZC.cjs');
2
2
 
3
3
  //#region src/shared/scroll-snap/index.ts
4
4
  const getDirection = (element) => require_dom_query.getComputedStyle(element).direction;
@@ -1,4 +1,4 @@
1
- import { Yt as getComputedStyle } from "./dom-query-lSknXAK2.mjs";
1
+ import { Xt as getComputedStyle } from "./dom-query-BwpPRIas.mjs";
2
2
 
3
3
  //#region src/shared/scroll-snap/index.ts
4
4
  const getDirection = (element) => getComputedStyle(element).direction;
@@ -1,5 +1,5 @@
1
- require('./dom-query-Cw3Vjazl.cjs');
2
- const require_scroll_snap = require('./scroll-snap-DsiS0MS6.cjs');
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;
@@ -1,4 +1,4 @@
1
- import "./dom-query-lSknXAK2.mjs";
2
- import { i as getSnapPositions, n as getScrollSnapPositions, r as getSnapPointTarget, t as findSnapPoint } from "./scroll-snap-DMFCl42o.mjs";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprawlify/primitives",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "description": "A set of primitive components for building user interfaces.",
6
6
  "author": "sprawlify <npm@sprawlify.com>",
@@ -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 };