@ariakit/test 0.3.16 → 0.4.1

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 (80) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/cjs/__chunks/{2PZMNP6W.cjs → 4TS37S3Q.cjs} +27 -30
  3. package/cjs/__chunks/{LG7B6NOG.cjs → 6LDGWG7T.cjs} +2 -2
  4. package/cjs/__chunks/{CYMYDRLS.cjs → 6UE2XSIU.cjs} +8 -11
  5. package/cjs/__chunks/AGLSU3Q2.cjs +68 -0
  6. package/cjs/__chunks/{BXOTZFAK.cjs → AV5N3TNH.cjs} +7 -14
  7. package/cjs/__chunks/{VD3ERVOF.cjs → ELVRZW56.cjs} +3 -3
  8. package/cjs/__chunks/{7KITCMSC.cjs → GFFCFEOC.cjs} +12 -13
  9. package/cjs/__chunks/{IL4UOQ5U.cjs → JFCVJ4KU.cjs} +20 -24
  10. package/cjs/__chunks/{BIB7E6LN.cjs → KRKGFFBK.cjs} +10 -16
  11. package/cjs/__chunks/{QCXNVFD7.cjs → LJ2IERQF.cjs} +8 -10
  12. package/cjs/__chunks/{IZ5UGCXW.cjs → QOXIFOCW.cjs} +2 -2
  13. package/cjs/__chunks/{ZNASNKOZ.cjs → QRXZHH5L.cjs} +22 -29
  14. package/cjs/__chunks/{DJWEA66K.cjs → RKZYK2KK.cjs} +30 -34
  15. package/cjs/__chunks/WO6I3N3U.cjs +20 -0
  16. package/cjs/__chunks/{IZMYJH6V.cjs → Z3RYFL2T.cjs} +7 -9
  17. package/cjs/blur.cjs +5 -5
  18. package/cjs/click.cjs +11 -11
  19. package/cjs/dispatch.cjs +4 -4
  20. package/cjs/focus.cjs +5 -5
  21. package/cjs/hover.cjs +6 -6
  22. package/cjs/index.cjs +17 -17
  23. package/cjs/mouse-down.cjs +7 -7
  24. package/cjs/mouse-up.cjs +5 -5
  25. package/cjs/playwright.cjs +2 -2
  26. package/cjs/press.cjs +9 -9
  27. package/cjs/press.d.cts +15 -15
  28. package/cjs/press.d.ts +15 -15
  29. package/cjs/query.cjs +3 -3
  30. package/cjs/query.d.cts +33 -32
  31. package/cjs/query.d.ts +33 -32
  32. package/cjs/react.cjs +36 -26
  33. package/cjs/react.d.cts +4 -1
  34. package/cjs/react.d.ts +4 -1
  35. package/cjs/select.cjs +11 -11
  36. package/cjs/sleep.cjs +4 -4
  37. package/cjs/tap.cjs +12 -12
  38. package/cjs/type.cjs +7 -7
  39. package/cjs/wait-for.cjs +4 -4
  40. package/esm/__chunks/{YGSLLIRN.js → 2TPVB4MR.js} +6 -7
  41. package/esm/__chunks/{JIRMKL2I.js → 7NQ5CXYI.js} +1 -1
  42. package/esm/__chunks/{HKMYG3ZJ.js → DHZBG4QM.js} +11 -14
  43. package/esm/__chunks/{3EIGH73D.js → DZ24E43J.js} +1 -1
  44. package/esm/__chunks/{U5OPLWAZ.js → EMPG4BYT.js} +11 -15
  45. package/esm/__chunks/{6GDQHEBE.js → G32GEXRJ.js} +7 -13
  46. package/esm/__chunks/{7I2TICIC.js → HFG3HB6M.js} +7 -14
  47. package/esm/__chunks/{QE2YCTHV.js → HI4LQVNU.js} +5 -8
  48. package/esm/__chunks/{VD2VFA32.js → HO5N5GTX.js} +4 -6
  49. package/esm/__chunks/{64UIOMYC.js → NSFKY4TP.js} +1 -1
  50. package/esm/__chunks/{G2JU2LVB.js → SB7WYA2U.js} +1 -1
  51. package/esm/__chunks/{VVYOYAEF.js → UQRVXJ7Z.js} +13 -20
  52. package/esm/__chunks/{LRKW54RD.js → VMVRY4TL.js} +5 -6
  53. package/esm/__chunks/{DMIPXMWG.js → W46IR3LA.js} +11 -15
  54. package/esm/__chunks/{V36IYEJN.js → ZPXIP5WW.js} +5 -7
  55. package/esm/blur.js +4 -4
  56. package/esm/click.js +10 -10
  57. package/esm/dispatch.js +3 -3
  58. package/esm/focus.js +4 -4
  59. package/esm/hover.js +5 -5
  60. package/esm/index.js +16 -16
  61. package/esm/mouse-down.js +6 -6
  62. package/esm/mouse-up.js +4 -4
  63. package/esm/playwright.js +1 -1
  64. package/esm/press.d.ts +15 -15
  65. package/esm/press.js +8 -8
  66. package/esm/query.d.ts +33 -32
  67. package/esm/query.js +2 -2
  68. package/esm/react.d.ts +4 -1
  69. package/esm/react.js +34 -24
  70. package/esm/select.js +10 -10
  71. package/esm/sleep.js +3 -3
  72. package/esm/tap.js +11 -11
  73. package/esm/type.js +6 -6
  74. package/esm/wait-for.js +3 -3
  75. package/package.json +3 -3
  76. package/readme.md +18 -0
  77. package/cjs/__chunks/HQ3KUD6F.cjs +0 -20
  78. package/cjs/__chunks/UWCNB4SR.cjs +0 -69
  79. /package/cjs/__chunks/{OVN5OYWK.cjs → DOXEES2I.cjs} +0 -0
  80. /package/esm/__chunks/{Q65FZOE2.js → SM5ASDQ3.js} +0 -0
package/cjs/press.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  export declare function press(key: string, element?: Element | null, options?: KeyboardEventInit): Promise<void>;
2
2
  export declare namespace press {
3
- var Escape: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
4
- var Backspace: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
5
- var Delete: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
6
- var Tab: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
7
- var ShiftTab: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
8
- var Enter: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
9
- var Space: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
10
- var ArrowUp: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
11
- var ArrowRight: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
12
- var ArrowDown: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
13
- var ArrowLeft: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
14
- var End: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
15
- var Home: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
16
- var PageUp: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
17
- var PageDown: (element?: Element | null | undefined, options?: KeyboardEventInit) => Promise<void>;
3
+ var Escape: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
4
+ var Backspace: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
5
+ var Delete: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
6
+ var Tab: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
7
+ var ShiftTab: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
8
+ var Enter: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
9
+ var Space: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
10
+ var ArrowUp: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
11
+ var ArrowRight: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
12
+ var ArrowDown: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
13
+ var ArrowLeft: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
14
+ var End: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
15
+ var Home: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
16
+ var PageUp: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
17
+ var PageDown: (element?: Element | null, options?: KeyboardEventInit) => Promise<void>;
18
18
  }
package/cjs/query.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _BIB7E6LNcjs = require('./__chunks/BIB7E6LN.cjs');
5
+ var _KRKGFFBKcjs = require('./__chunks/KRKGFFBK.cjs');
6
6
  require('./__chunks/ERFCHS75.cjs');
7
- require('./__chunks/OVN5OYWK.cjs');
7
+ require('./__chunks/DOXEES2I.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.q = _BIB7E6LNcjs.q; exports.query = _BIB7E6LNcjs.query;
11
+ exports.q = _KRKGFFBKcjs.q; exports.query = _KRKGFFBKcjs.query;
package/cjs/query.d.cts CHANGED
@@ -1,27 +1,28 @@
1
+ import { queries as baseQueries } from "@testing-library/dom";
1
2
  import type { ByRoleOptions } from "@testing-library/dom";
2
3
  export declare const query: {
3
- text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
4
- all: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
5
- wait: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
6
- ensure: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
4
+ text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
5
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
6
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
7
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
7
8
  };
8
- wait: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
9
- all: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
9
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
10
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
10
11
  };
11
- ensure: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_5) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
12
- all: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
12
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
13
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
13
14
  };
14
15
  };
15
- labeled: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_6 | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
16
- all: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
17
- wait: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
18
- ensure: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
16
+ labeled: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
17
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
18
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
19
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
19
20
  };
20
- wait: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
21
- all: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
21
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
22
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
22
23
  };
23
- ensure: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_11) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
24
- all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
24
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
25
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
25
26
  };
26
27
  };
27
28
  within: (element?: HTMLElement | null) => any;
@@ -1995,28 +1996,28 @@ export declare const query: {
1995
1996
  };
1996
1997
  };
1997
1998
  export declare const q: {
1998
- text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
1999
- all: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2000
- wait: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2001
- ensure: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
1999
+ text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2000
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2001
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2002
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2002
2003
  };
2003
- wait: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2004
- all: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2004
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2005
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2005
2006
  };
2006
- ensure: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_5) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2007
- all: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2007
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2008
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2008
2009
  };
2009
2010
  };
2010
- labeled: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_6 | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2011
- all: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2012
- wait: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2013
- ensure: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2011
+ labeled: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2012
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2013
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2014
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2014
2015
  };
2015
- wait: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2016
- all: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2016
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2017
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2017
2018
  };
2018
- ensure: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_11) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2019
- all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2019
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2020
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2020
2021
  };
2021
2022
  };
2022
2023
  within: (element?: HTMLElement | null) => any;
package/cjs/query.d.ts CHANGED
@@ -1,27 +1,28 @@
1
+ import { queries as baseQueries } from "@testing-library/dom";
1
2
  import type { ByRoleOptions } from "@testing-library/dom";
2
3
  export declare const query: {
3
- text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
4
- all: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
5
- wait: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
6
- ensure: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
4
+ text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
5
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
6
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
7
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
7
8
  };
8
- wait: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
9
- all: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
9
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
10
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
10
11
  };
11
- ensure: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_5) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
12
- all: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
12
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
13
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
13
14
  };
14
15
  };
15
- labeled: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_6 | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
16
- all: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
17
- wait: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
18
- ensure: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
16
+ labeled: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
17
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
18
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
19
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
19
20
  };
20
- wait: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
21
- all: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
21
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
22
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
22
23
  };
23
- ensure: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_11) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
24
- all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
24
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
25
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
25
26
  };
26
27
  };
27
28
  within: (element?: HTMLElement | null) => any;
@@ -1995,28 +1996,28 @@ export declare const query: {
1995
1996
  };
1996
1997
  };
1997
1998
  export declare const q: {
1998
- text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
1999
- all: (<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_1[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2000
- wait: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2001
- ensure: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
1999
+ text: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2000
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2001
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2002
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2002
2003
  };
2003
- wait: (<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_4>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2004
- all: (<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_2[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2004
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2005
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2005
2006
  };
2006
- ensure: (<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_5) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2007
- all: (<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_3[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2007
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2008
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2008
2009
  };
2009
2010
  };
2010
- labeled: (<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_6 | null) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2011
- all: (<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_7[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2012
- wait: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2013
- ensure: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2011
+ labeled: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null) & {
2012
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]) & {
2013
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2014
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2014
2015
  };
2015
- wait: (<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_10>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2016
- all: (<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<T_8[]>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2016
+ wait: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>) & {
2017
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<baseQueries.FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
2017
2018
  };
2018
- ensure: (<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_11) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2019
- all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2019
+ ensure: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement) & {
2020
+ all: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<baseQueries.AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
2020
2021
  };
2021
2022
  };
2022
2023
  within: (element?: HTMLElement | null) => any;
package/cjs/react.cjs CHANGED
@@ -2,76 +2,86 @@
2
2
  require('./__chunks/I2BROIQW.cjs');
3
3
 
4
4
 
5
- var _LG7B6NOGcjs = require('./__chunks/LG7B6NOG.cjs');
5
+ var _6LDGWG7Tcjs = require('./__chunks/6LDGWG7T.cjs');
6
6
 
7
7
 
8
- var _IZ5UGCXWcjs = require('./__chunks/IZ5UGCXW.cjs');
8
+ var _QOXIFOCWcjs = require('./__chunks/QOXIFOCW.cjs');
9
9
 
10
10
 
11
- var _2PZMNP6Wcjs = require('./__chunks/2PZMNP6W.cjs');
11
+ var _4TS37S3Qcjs = require('./__chunks/4TS37S3Q.cjs');
12
12
 
13
13
 
14
- var _IL4UOQ5Ucjs = require('./__chunks/IL4UOQ5U.cjs');
14
+ var _JFCVJ4KUcjs = require('./__chunks/JFCVJ4KU.cjs');
15
15
 
16
16
 
17
- var _QCXNVFD7cjs = require('./__chunks/QCXNVFD7.cjs');
17
+ var _LJ2IERQFcjs = require('./__chunks/LJ2IERQF.cjs');
18
18
 
19
19
 
20
- var _7KITCMSCcjs = require('./__chunks/7KITCMSC.cjs');
20
+ var _GFFCFEOCcjs = require('./__chunks/GFFCFEOC.cjs');
21
21
 
22
22
 
23
- var _UWCNB4SRcjs = require('./__chunks/UWCNB4SR.cjs');
23
+ var _AGLSU3Q2cjs = require('./__chunks/AGLSU3Q2.cjs');
24
24
 
25
25
 
26
26
 
27
- var _BIB7E6LNcjs = require('./__chunks/BIB7E6LN.cjs');
27
+ var _KRKGFFBKcjs = require('./__chunks/KRKGFFBK.cjs');
28
28
  require('./__chunks/ERFCHS75.cjs');
29
29
 
30
30
 
31
- var _DJWEA66Kcjs = require('./__chunks/DJWEA66K.cjs');
31
+ var _RKZYK2KKcjs = require('./__chunks/RKZYK2KK.cjs');
32
32
 
33
33
 
34
- var _ZNASNKOZcjs = require('./__chunks/ZNASNKOZ.cjs');
34
+ var _QRXZHH5Lcjs = require('./__chunks/QRXZHH5L.cjs');
35
35
 
36
36
 
37
- var _CYMYDRLScjs = require('./__chunks/CYMYDRLS.cjs');
37
+ var _6UE2XSIUcjs = require('./__chunks/6UE2XSIU.cjs');
38
38
 
39
39
 
40
- var _IZMYJH6Vcjs = require('./__chunks/IZMYJH6V.cjs');
40
+ var _Z3RYFL2Tcjs = require('./__chunks/Z3RYFL2T.cjs');
41
41
 
42
42
 
43
- var _VD3ERVOFcjs = require('./__chunks/VD3ERVOF.cjs');
43
+ var _ELVRZW56cjs = require('./__chunks/ELVRZW56.cjs');
44
44
 
45
45
 
46
- var _HQ3KUD6Fcjs = require('./__chunks/HQ3KUD6F.cjs');
46
+ var _WO6I3N3Ucjs = require('./__chunks/WO6I3N3U.cjs');
47
47
 
48
48
 
49
49
 
50
50
 
51
- var _BXOTZFAKcjs = require('./__chunks/BXOTZFAK.cjs');
51
+ var _AV5N3TNHcjs = require('./__chunks/AV5N3TNH.cjs');
52
52
 
53
53
 
54
54
 
55
- var _OVN5OYWKcjs = require('./__chunks/OVN5OYWK.cjs');
55
+ var _DOXEES2Icjs = require('./__chunks/DOXEES2I.cjs');
56
56
 
57
57
  // src/react.tsx
58
58
  var _react = require('@testing-library/react'); var ReactTestingLibrary = _interopRequireWildcard(_react);
59
59
  var _react2 = require('react');
60
60
  var _jsxruntime = require('react/jsx-runtime');
61
+ function wrapRender(renderFn) {
62
+ return _AV5N3TNHcjs.wrapAsync.call(void 0, async () => {
63
+ const output = renderFn();
64
+ await _AV5N3TNHcjs.flushMicrotasks.call(void 0, );
65
+ await _AV5N3TNHcjs.nextFrame.call(void 0, );
66
+ await _AV5N3TNHcjs.flushMicrotasks.call(void 0, );
67
+ return output;
68
+ });
69
+ }
61
70
  async function render2(ui, options) {
62
71
  const wrapper = (props) => {
63
72
  const Wrapper = options == null ? void 0 : options.wrapper;
64
- const element = Wrapper ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Wrapper, _OVN5OYWKcjs.__spreadValues.call(void 0, {}, props)) : props.children;
65
- if (!(options == null ? void 0 : options.strictMode))
66
- return element;
73
+ const element = Wrapper ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Wrapper, _DOXEES2Icjs.__spreadValues.call(void 0, {}, props)) : props.children;
74
+ if (!(options == null ? void 0 : options.strictMode)) return element;
67
75
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.StrictMode, { children: element });
68
76
  };
69
- return _BXOTZFAKcjs.wrapAsync.call(void 0, async () => {
70
- const { unmount } = ReactTestingLibrary.render(ui, _OVN5OYWKcjs.__spreadProps.call(void 0, _OVN5OYWKcjs.__spreadValues.call(void 0, {}, options), { wrapper }));
71
- await _BXOTZFAKcjs.flushMicrotasks.call(void 0, );
72
- await _BXOTZFAKcjs.nextFrame.call(void 0, );
73
- await _BXOTZFAKcjs.flushMicrotasks.call(void 0, );
74
- return unmount;
77
+ return wrapRender(() => {
78
+ const { unmount, rerender } = ReactTestingLibrary.render(ui, _DOXEES2Icjs.__spreadProps.call(void 0, _DOXEES2Icjs.__spreadValues.call(void 0, {}, options), {
79
+ wrapper
80
+ }));
81
+ return {
82
+ unmount,
83
+ rerender: (newUi) => wrapRender(() => rerender(newUi))
84
+ };
75
85
  });
76
86
  }
77
87
 
@@ -91,4 +101,4 @@ async function render2(ui, options) {
91
101
 
92
102
 
93
103
 
94
- exports.blur = _CYMYDRLScjs.blur; exports.click = _2PZMNP6Wcjs.click; exports.dispatch = _VD3ERVOFcjs.dispatch; exports.focus = _IZMYJH6Vcjs.focus; exports.hover = _UWCNB4SRcjs.hover; exports.mouseDown = _7KITCMSCcjs.mouseDown; exports.mouseUp = _QCXNVFD7cjs.mouseUp; exports.press = _DJWEA66Kcjs.press; exports.q = _BIB7E6LNcjs.q; exports.query = _BIB7E6LNcjs.query; exports.render = render2; exports.select = _IL4UOQ5Ucjs.select; exports.sleep = _HQ3KUD6Fcjs.sleep; exports.tap = _IZ5UGCXWcjs.tap; exports.type = _ZNASNKOZcjs.type; exports.waitFor = _LG7B6NOGcjs.waitFor;
104
+ exports.blur = _6UE2XSIUcjs.blur; exports.click = _4TS37S3Qcjs.click; exports.dispatch = _ELVRZW56cjs.dispatch; exports.focus = _Z3RYFL2Tcjs.focus; exports.hover = _AGLSU3Q2cjs.hover; exports.mouseDown = _GFFCFEOCcjs.mouseDown; exports.mouseUp = _LJ2IERQFcjs.mouseUp; exports.press = _RKZYK2KKcjs.press; exports.q = _KRKGFFBKcjs.q; exports.query = _KRKGFFBKcjs.query; exports.render = render2; exports.select = _JFCVJ4KUcjs.select; exports.sleep = _WO6I3N3Ucjs.sleep; exports.tap = _QOXIFOCWcjs.tap; exports.type = _QRXZHH5Lcjs.type; exports.waitFor = _6LDGWG7Tcjs.waitFor;
package/cjs/react.d.cts CHANGED
@@ -4,4 +4,7 @@ export * from "./index.ts";
4
4
  export interface RenderOptions extends Omit<ReactTestingLibrary.RenderOptions, "queries"> {
5
5
  strictMode?: boolean;
6
6
  }
7
- export declare function render(ui: ReactNode, options?: RenderOptions): Promise<() => void>;
7
+ export declare function render(ui: ReactNode, options?: RenderOptions): Promise<{
8
+ unmount: () => void;
9
+ rerender: (newUi: ReactNode) => Promise<void>;
10
+ }>;
package/cjs/react.d.ts CHANGED
@@ -4,4 +4,7 @@ export * from "./index.ts";
4
4
  export interface RenderOptions extends Omit<ReactTestingLibrary.RenderOptions, "queries"> {
5
5
  strictMode?: boolean;
6
6
  }
7
- export declare function render(ui: ReactNode, options?: RenderOptions): Promise<() => void>;
7
+ export declare function render(ui: ReactNode, options?: RenderOptions): Promise<{
8
+ unmount: () => void;
9
+ rerender: (newUi: ReactNode) => Promise<void>;
10
+ }>;
package/cjs/select.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _IL4UOQ5Ucjs = require('./__chunks/IL4UOQ5U.cjs');
5
- require('./__chunks/QCXNVFD7.cjs');
6
- require('./__chunks/7KITCMSC.cjs');
7
- require('./__chunks/UWCNB4SR.cjs');
8
- require('./__chunks/CYMYDRLS.cjs');
9
- require('./__chunks/IZMYJH6V.cjs');
10
- require('./__chunks/VD3ERVOF.cjs');
11
- require('./__chunks/HQ3KUD6F.cjs');
12
- require('./__chunks/BXOTZFAK.cjs');
13
- require('./__chunks/OVN5OYWK.cjs');
4
+ var _JFCVJ4KUcjs = require('./__chunks/JFCVJ4KU.cjs');
5
+ require('./__chunks/LJ2IERQF.cjs');
6
+ require('./__chunks/GFFCFEOC.cjs');
7
+ require('./__chunks/AGLSU3Q2.cjs');
8
+ require('./__chunks/6UE2XSIU.cjs');
9
+ require('./__chunks/Z3RYFL2T.cjs');
10
+ require('./__chunks/ELVRZW56.cjs');
11
+ require('./__chunks/WO6I3N3U.cjs');
12
+ require('./__chunks/AV5N3TNH.cjs');
13
+ require('./__chunks/DOXEES2I.cjs');
14
14
 
15
15
 
16
- exports.select = _IL4UOQ5Ucjs.select;
16
+ exports.select = _JFCVJ4KUcjs.select;
package/cjs/sleep.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _HQ3KUD6Fcjs = require('./__chunks/HQ3KUD6F.cjs');
5
- require('./__chunks/BXOTZFAK.cjs');
6
- require('./__chunks/OVN5OYWK.cjs');
4
+ var _WO6I3N3Ucjs = require('./__chunks/WO6I3N3U.cjs');
5
+ require('./__chunks/AV5N3TNH.cjs');
6
+ require('./__chunks/DOXEES2I.cjs');
7
7
 
8
8
 
9
- exports.sleep = _HQ3KUD6Fcjs.sleep;
9
+ exports.sleep = _WO6I3N3Ucjs.sleep;
package/cjs/tap.cjs CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _IZ5UGCXWcjs = require('./__chunks/IZ5UGCXW.cjs');
5
- require('./__chunks/2PZMNP6W.cjs');
6
- require('./__chunks/QCXNVFD7.cjs');
7
- require('./__chunks/7KITCMSC.cjs');
8
- require('./__chunks/UWCNB4SR.cjs');
9
- require('./__chunks/CYMYDRLS.cjs');
10
- require('./__chunks/IZMYJH6V.cjs');
11
- require('./__chunks/VD3ERVOF.cjs');
12
- require('./__chunks/HQ3KUD6F.cjs');
13
- require('./__chunks/BXOTZFAK.cjs');
14
- require('./__chunks/OVN5OYWK.cjs');
4
+ var _QOXIFOCWcjs = require('./__chunks/QOXIFOCW.cjs');
5
+ require('./__chunks/4TS37S3Q.cjs');
6
+ require('./__chunks/LJ2IERQF.cjs');
7
+ require('./__chunks/GFFCFEOC.cjs');
8
+ require('./__chunks/AGLSU3Q2.cjs');
9
+ require('./__chunks/6UE2XSIU.cjs');
10
+ require('./__chunks/Z3RYFL2T.cjs');
11
+ require('./__chunks/ELVRZW56.cjs');
12
+ require('./__chunks/WO6I3N3U.cjs');
13
+ require('./__chunks/AV5N3TNH.cjs');
14
+ require('./__chunks/DOXEES2I.cjs');
15
15
 
16
16
 
17
- exports.tap = _IZ5UGCXWcjs.tap;
17
+ exports.tap = _QOXIFOCWcjs.tap;
package/cjs/type.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _ZNASNKOZcjs = require('./__chunks/ZNASNKOZ.cjs');
5
- require('./__chunks/IZMYJH6V.cjs');
6
- require('./__chunks/VD3ERVOF.cjs');
7
- require('./__chunks/HQ3KUD6F.cjs');
8
- require('./__chunks/BXOTZFAK.cjs');
9
- require('./__chunks/OVN5OYWK.cjs');
4
+ var _QRXZHH5Lcjs = require('./__chunks/QRXZHH5L.cjs');
5
+ require('./__chunks/Z3RYFL2T.cjs');
6
+ require('./__chunks/ELVRZW56.cjs');
7
+ require('./__chunks/WO6I3N3U.cjs');
8
+ require('./__chunks/AV5N3TNH.cjs');
9
+ require('./__chunks/DOXEES2I.cjs');
10
10
 
11
11
 
12
- exports.type = _ZNASNKOZcjs.type;
12
+ exports.type = _QRXZHH5Lcjs.type;
package/cjs/wait-for.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _LG7B6NOGcjs = require('./__chunks/LG7B6NOG.cjs');
5
- require('./__chunks/BXOTZFAK.cjs');
6
- require('./__chunks/OVN5OYWK.cjs');
4
+ var _6LDGWG7Tcjs = require('./__chunks/6LDGWG7T.cjs');
5
+ require('./__chunks/AV5N3TNH.cjs');
6
+ require('./__chunks/DOXEES2I.cjs');
7
7
 
8
8
 
9
- exports.waitFor = _LG7B6NOGcjs.waitFor;
9
+ exports.waitFor = _6LDGWG7Tcjs.waitFor;