@tanstack/preact-query-devtools 5.105.0 → 5.105.2

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 (67) hide show
  1. package/build/legacy/PreactQueryDevtools-BZb79hrw.d.ts +67 -0
  2. package/build/legacy/PreactQueryDevtools-BZb79hrw.d.ts.map +1 -0
  3. package/build/legacy/PreactQueryDevtools-CszvBE3E.d.cts +67 -0
  4. package/build/legacy/PreactQueryDevtools-CszvBE3E.d.cts.map +1 -0
  5. package/build/legacy/PreactQueryDevtools.cjs +1 -2
  6. package/build/legacy/PreactQueryDevtools.d.cts +2 -68
  7. package/build/legacy/PreactQueryDevtools.d.ts +2 -68
  8. package/build/legacy/PreactQueryDevtools.js +1 -2
  9. package/build/legacy/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts +57 -0
  10. package/build/legacy/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts.map +1 -0
  11. package/build/legacy/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts +57 -0
  12. package/build/legacy/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts.map +1 -0
  13. package/build/legacy/PreactQueryDevtoolsPanel.cjs +1 -2
  14. package/build/legacy/PreactQueryDevtoolsPanel.d.cts +2 -58
  15. package/build/legacy/PreactQueryDevtoolsPanel.d.ts +2 -58
  16. package/build/legacy/PreactQueryDevtoolsPanel.js +1 -2
  17. package/build/legacy/index.cjs +1 -2
  18. package/build/legacy/index.d.cts +2 -4
  19. package/build/legacy/index.d.cts.map +1 -1
  20. package/build/legacy/index.d.ts +2 -4
  21. package/build/legacy/index.d.ts.map +1 -1
  22. package/build/legacy/index.js +1 -2
  23. package/build/legacy/production.cjs +1 -2
  24. package/build/legacy/production.d.cts +2 -4
  25. package/build/legacy/production.d.cts.map +1 -1
  26. package/build/legacy/production.d.ts +2 -4
  27. package/build/legacy/production.d.ts.map +1 -1
  28. package/build/legacy/production.js +1 -2
  29. package/build/legacy/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  30. package/build/modern/PreactQueryDevtools-BZb79hrw.d.ts +67 -0
  31. package/build/modern/PreactQueryDevtools-BZb79hrw.d.ts.map +1 -0
  32. package/build/modern/PreactQueryDevtools-CszvBE3E.d.cts +67 -0
  33. package/build/modern/PreactQueryDevtools-CszvBE3E.d.cts.map +1 -0
  34. package/build/modern/PreactQueryDevtools.cjs +1 -2
  35. package/build/modern/PreactQueryDevtools.d.cts +2 -68
  36. package/build/modern/PreactQueryDevtools.d.ts +2 -68
  37. package/build/modern/PreactQueryDevtools.js +1 -2
  38. package/build/modern/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts +57 -0
  39. package/build/modern/PreactQueryDevtoolsPanel-Cf86o6V4.d.ts.map +1 -0
  40. package/build/modern/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts +57 -0
  41. package/build/modern/PreactQueryDevtoolsPanel-D1KDQUcf.d.cts.map +1 -0
  42. package/build/modern/PreactQueryDevtoolsPanel.cjs +1 -2
  43. package/build/modern/PreactQueryDevtoolsPanel.d.cts +2 -58
  44. package/build/modern/PreactQueryDevtoolsPanel.d.ts +2 -58
  45. package/build/modern/PreactQueryDevtoolsPanel.js +1 -2
  46. package/build/modern/index.cjs +1 -2
  47. package/build/modern/index.d.cts +2 -4
  48. package/build/modern/index.d.cts.map +1 -1
  49. package/build/modern/index.d.ts +2 -4
  50. package/build/modern/index.d.ts.map +1 -1
  51. package/build/modern/index.js +1 -2
  52. package/build/modern/production.cjs +1 -2
  53. package/build/modern/production.d.cts +2 -4
  54. package/build/modern/production.d.cts.map +1 -1
  55. package/build/modern/production.d.ts +2 -4
  56. package/build/modern/production.d.ts.map +1 -1
  57. package/build/modern/production.js +1 -2
  58. package/build/modern/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  59. package/package.json +4 -4
  60. package/build/legacy/PreactQueryDevtools.d.cts.map +0 -1
  61. package/build/legacy/PreactQueryDevtools.d.ts.map +0 -1
  62. package/build/legacy/PreactQueryDevtoolsPanel.d.cts.map +0 -1
  63. package/build/legacy/PreactQueryDevtoolsPanel.d.ts.map +0 -1
  64. package/build/modern/PreactQueryDevtools.d.cts.map +0 -1
  65. package/build/modern/PreactQueryDevtools.d.ts.map +0 -1
  66. package/build/modern/PreactQueryDevtoolsPanel.d.cts.map +0 -1
  67. package/build/modern/PreactQueryDevtoolsPanel.d.ts.map +0 -1
@@ -0,0 +1,67 @@
1
+ import { QueryClient } from "@tanstack/preact-query";
2
+ import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
3
+ import { VNode } from "preact";
4
+ declare namespace PreactQueryDevtools_d_exports {
5
+ export { DevtoolsOptions, PreactQueryDevtools };
6
+ }
7
+ /**
8
+ * The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
9
+ * them.
10
+ */
11
+ interface DevtoolsOptions {
12
+ /**
13
+ * Set this true if you want the dev tools to default to being open
14
+ */
15
+ initialIsOpen?: boolean;
16
+ /**
17
+ * The position of the TanStack logo to open and close the devtools panel.
18
+ * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
19
+ * @defaultValue bottom-right
20
+ */
21
+ buttonPosition?: DevtoolsButtonPosition;
22
+ /**
23
+ * The position of the Preact Query devtools panel.
24
+ * 'top' | 'bottom' | 'left' | 'right'
25
+ * @defaultValue bottom
26
+ */
27
+ position?: DevtoolsPosition;
28
+ /**
29
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
30
+ * nearest QueryClientProvider will be used.
31
+ */
32
+ client?: QueryClient;
33
+ /**
34
+ * Use this to provide custom error type handlers for the devtools panel.
35
+ */
36
+ errorTypes?: Array<DevtoolsErrorType>;
37
+ /**
38
+ * Use this to pass a nonce to the style tag that is added to the document
39
+ * head. This is useful if you are using a Content Security Policy (CSP)
40
+ * nonce to allow inline styles.
41
+ */
42
+ styleNonce?: string;
43
+ /**
44
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
45
+ * within the shadow DOM instead of within the head tag in the light DOM.
46
+ */
47
+ shadowDOMTarget?: ShadowRoot;
48
+ /**
49
+ * Use this to hide disabled queries from the devtools panel.
50
+ */
51
+ hideDisabledQueries?: boolean;
52
+ /**
53
+ * Use this to set the theme of the devtools panel.
54
+ * This overrides the theme selected in the devtools Settings menu. When omitted, the
55
+ * selected theme is used, or `'system'` if none is selected.
56
+ */
57
+ theme?: Theme;
58
+ }
59
+ /**
60
+ * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
61
+ * nearest `QueryClient`.
62
+ * @param props - The devtools options.
63
+ * @returns The element the devtools are mounted in.
64
+ */
65
+ declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
66
+ export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
67
+ //# sourceMappingURL=PreactQueryDevtools-BZb79hrw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreactQueryDevtools-BZb79hrw.d.ts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
@@ -0,0 +1,67 @@
1
+ import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
2
+ import { QueryClient } from "@tanstack/preact-query";
3
+ import { VNode } from "preact";
4
+ declare namespace PreactQueryDevtools_d_exports {
5
+ export { DevtoolsOptions, PreactQueryDevtools };
6
+ }
7
+ /**
8
+ * The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
9
+ * them.
10
+ */
11
+ interface DevtoolsOptions {
12
+ /**
13
+ * Set this true if you want the dev tools to default to being open
14
+ */
15
+ initialIsOpen?: boolean;
16
+ /**
17
+ * The position of the TanStack logo to open and close the devtools panel.
18
+ * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
19
+ * @defaultValue bottom-right
20
+ */
21
+ buttonPosition?: DevtoolsButtonPosition;
22
+ /**
23
+ * The position of the Preact Query devtools panel.
24
+ * 'top' | 'bottom' | 'left' | 'right'
25
+ * @defaultValue bottom
26
+ */
27
+ position?: DevtoolsPosition;
28
+ /**
29
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
30
+ * nearest QueryClientProvider will be used.
31
+ */
32
+ client?: QueryClient;
33
+ /**
34
+ * Use this to provide custom error type handlers for the devtools panel.
35
+ */
36
+ errorTypes?: Array<DevtoolsErrorType>;
37
+ /**
38
+ * Use this to pass a nonce to the style tag that is added to the document
39
+ * head. This is useful if you are using a Content Security Policy (CSP)
40
+ * nonce to allow inline styles.
41
+ */
42
+ styleNonce?: string;
43
+ /**
44
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
45
+ * within the shadow DOM instead of within the head tag in the light DOM.
46
+ */
47
+ shadowDOMTarget?: ShadowRoot;
48
+ /**
49
+ * Use this to hide disabled queries from the devtools panel.
50
+ */
51
+ hideDisabledQueries?: boolean;
52
+ /**
53
+ * Use this to set the theme of the devtools panel.
54
+ * This overrides the theme selected in the devtools Settings menu. When omitted, the
55
+ * selected theme is used, or `'system'` if none is selected.
56
+ */
57
+ theme?: Theme;
58
+ }
59
+ /**
60
+ * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
61
+ * nearest `QueryClient`.
62
+ * @param props - The devtools options.
63
+ * @returns The element the devtools are mounted in.
64
+ */
65
+ declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
66
+ export { PreactQueryDevtools as n, PreactQueryDevtools_d_exports as r, DevtoolsOptions as t };
67
+ //# sourceMappingURL=PreactQueryDevtools-CszvBE3E.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreactQueryDevtools-CszvBE3E.d.cts","names":[],"sources":["../../src/PreactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;;EAKX,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,oBAAoB,OAAO,kBAAkB"}
@@ -3,7 +3,7 @@ let preact_hooks = require("preact/hooks");
3
3
  let _tanstack_preact_query = require("@tanstack/preact-query");
4
4
  let _tanstack_query_devtools = require("@tanstack/query-devtools");
5
5
  let preact_jsx_runtime = require("preact/jsx-runtime");
6
- //#region src/PreactQueryDevtools.tsx
6
+ // src/PreactQueryDevtools.tsx
7
7
  /**
8
8
  * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
9
9
  * nearest `QueryClient`.
@@ -58,7 +58,6 @@ function PreactQueryDevtools(props) {
58
58
  ref
59
59
  });
60
60
  }
61
- //#endregion
62
61
  exports.PreactQueryDevtools = PreactQueryDevtools;
63
62
 
64
63
  //# sourceMappingURL=PreactQueryDevtools.cjs.map
@@ -1,68 +1,2 @@
1
- import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
2
- import { QueryClient } from "@tanstack/preact-query";
3
- import { VNode } from "preact";
4
- declare namespace PreactQueryDevtools_d_exports {
5
- export { DevtoolsOptions, PreactQueryDevtools };
6
- }
7
- /**
8
- * The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
9
- * them.
10
- */
11
- export interface DevtoolsOptions {
12
- /**
13
- * Set this true if you want the dev tools to default to being open
14
- */
15
- initialIsOpen?: boolean;
16
- /**
17
- * The position of the TanStack logo to open and close the devtools panel.
18
- * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
19
- * @defaultValue bottom-right
20
- */
21
- buttonPosition?: DevtoolsButtonPosition;
22
- /**
23
- * The position of the Preact Query devtools panel.
24
- * 'top' | 'bottom' | 'left' | 'right'
25
- * @defaultValue bottom
26
- */
27
- position?: DevtoolsPosition;
28
- /**
29
- * Use this to provide a custom QueryClient. Otherwise, the one from the
30
- * nearest QueryClientProvider will be used.
31
- */
32
- client?: QueryClient;
33
- /**
34
- * Use this to provide custom error type handlers for the devtools panel.
35
- */
36
- errorTypes?: Array<DevtoolsErrorType>;
37
- /**
38
- * Use this to pass a nonce to the style tag that is added to the document
39
- * head. This is useful if you are using a Content Security Policy (CSP)
40
- * nonce to allow inline styles.
41
- */
42
- styleNonce?: string;
43
- /**
44
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
45
- * within the shadow DOM instead of within the head tag in the light DOM.
46
- */
47
- shadowDOMTarget?: ShadowRoot;
48
- /**
49
- * Use this to hide disabled queries from the devtools panel.
50
- */
51
- hideDisabledQueries?: boolean;
52
- /**
53
- * Use this to set the theme of the devtools panel.
54
- * This overrides the theme selected in the devtools Settings menu. When omitted, the
55
- * selected theme is used, or `'system'` if none is selected.
56
- */
57
- theme?: Theme;
58
- }
59
- /**
60
- * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
61
- * nearest `QueryClient`.
62
- * @param props - The devtools options.
63
- * @returns The element the devtools are mounted in.
64
- */
65
- export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
66
- //#endregion
67
- export { PreactQueryDevtools_d_exports as t };
68
- //# sourceMappingURL=PreactQueryDevtools.d.cts.map
1
+ import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-CszvBE3E.cjs";
2
+ export { DevtoolsOptions, PreactQueryDevtools };
@@ -1,68 +1,2 @@
1
- import { QueryClient } from "@tanstack/preact-query";
2
- import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
3
- import { VNode } from "preact";
4
- declare namespace PreactQueryDevtools_d_exports {
5
- export { DevtoolsOptions, PreactQueryDevtools };
6
- }
7
- /**
8
- * The props of `PreactQueryDevtools`, which renders the devtools with a toggle button that opens
9
- * them.
10
- */
11
- export interface DevtoolsOptions {
12
- /**
13
- * Set this true if you want the dev tools to default to being open
14
- */
15
- initialIsOpen?: boolean;
16
- /**
17
- * The position of the TanStack logo to open and close the devtools panel.
18
- * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'relative'
19
- * @defaultValue bottom-right
20
- */
21
- buttonPosition?: DevtoolsButtonPosition;
22
- /**
23
- * The position of the Preact Query devtools panel.
24
- * 'top' | 'bottom' | 'left' | 'right'
25
- * @defaultValue bottom
26
- */
27
- position?: DevtoolsPosition;
28
- /**
29
- * Use this to provide a custom QueryClient. Otherwise, the one from the
30
- * nearest QueryClientProvider will be used.
31
- */
32
- client?: QueryClient;
33
- /**
34
- * Use this to provide custom error type handlers for the devtools panel.
35
- */
36
- errorTypes?: Array<DevtoolsErrorType>;
37
- /**
38
- * Use this to pass a nonce to the style tag that is added to the document
39
- * head. This is useful if you are using a Content Security Policy (CSP)
40
- * nonce to allow inline styles.
41
- */
42
- styleNonce?: string;
43
- /**
44
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
45
- * within the shadow DOM instead of within the head tag in the light DOM.
46
- */
47
- shadowDOMTarget?: ShadowRoot;
48
- /**
49
- * Use this to hide disabled queries from the devtools panel.
50
- */
51
- hideDisabledQueries?: boolean;
52
- /**
53
- * Use this to set the theme of the devtools panel.
54
- * This overrides the theme selected in the devtools Settings menu. When omitted, the
55
- * selected theme is used, or `'system'` if none is selected.
56
- */
57
- theme?: Theme;
58
- }
59
- /**
60
- * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
61
- * nearest `QueryClient`.
62
- * @param props - The devtools options.
63
- * @returns The element the devtools are mounted in.
64
- */
65
- export declare function PreactQueryDevtools(props: DevtoolsOptions): VNode | null;
66
- //#endregion
67
- export { PreactQueryDevtools_d_exports as t };
68
- //# sourceMappingURL=PreactQueryDevtools.d.ts.map
1
+ import { n as PreactQueryDevtools, t as DevtoolsOptions } from "./PreactQueryDevtools-BZb79hrw.js";
2
+ export { DevtoolsOptions, PreactQueryDevtools };
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "preact/hooks";
2
2
  import { onlineManager, useQueryClient } from "@tanstack/preact-query";
3
3
  import { TanstackQueryDevtools } from "@tanstack/query-devtools";
4
4
  import { jsx } from "preact/jsx-runtime";
5
- //#region src/PreactQueryDevtools.tsx
5
+ // src/PreactQueryDevtools.tsx
6
6
  /**
7
7
  * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
8
8
  * nearest `QueryClient`.
@@ -57,7 +57,6 @@ function PreactQueryDevtools(props) {
57
57
  ref
58
58
  });
59
59
  }
60
- //#endregion
61
60
  export { PreactQueryDevtools };
62
61
 
63
62
  //# sourceMappingURL=PreactQueryDevtools.js.map
@@ -0,0 +1,57 @@
1
+ import { QueryClient } from "@tanstack/preact-query";
2
+ import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
3
+ import { CSSProperties, VNode } from "preact";
4
+ declare namespace PreactQueryDevtoolsPanel_d_exports {
5
+ export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
6
+ }
7
+ /**
8
+ * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
+ */
10
+ interface DevtoolsPanelOptions {
11
+ /**
12
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
13
+ * nearest QueryClientProvider will be used.
14
+ */
15
+ client?: QueryClient;
16
+ /**
17
+ * Custom error types to be shown in the devtools.
18
+ */
19
+ errorTypes?: Array<DevtoolsErrorType>;
20
+ /**
21
+ * Use this to pass a nonce to the style tag that is added to the document
22
+ * head. This is useful if you are using a Content Security Policy (CSP)
23
+ * nonce to allow inline styles.
24
+ */
25
+ styleNonce?: string;
26
+ /**
27
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
28
+ * within the shadow DOM instead of within the head tag in the light DOM.
29
+ */
30
+ shadowDOMTarget?: ShadowRoot;
31
+ /**
32
+ * Custom styles for the devtools panel container.
33
+ */
34
+ style?: CSSProperties;
35
+ /**
36
+ * Callback function when the devtools panel is closed.
37
+ */
38
+ onClose?: () => unknown;
39
+ /**
40
+ * Use this to hide disabled queries from the devtools panel.
41
+ */
42
+ hideDisabledQueries?: boolean;
43
+ /**
44
+ * Use this to set the theme of the devtools panel.
45
+ * This overrides the theme selected in the devtools Settings menu. When omitted, the
46
+ * selected theme is used, or `'system'` if none is selected.
47
+ */
48
+ theme?: Theme;
49
+ }
50
+ /**
51
+ * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
52
+ * @param props - The devtools panel options.
53
+ * @returns The element the devtools panel is mounted in.
54
+ */
55
+ declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
56
+ export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
57
+ //# sourceMappingURL=PreactQueryDevtoolsPanel-Cf86o6V4.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreactQueryDevtoolsPanel-Cf86o6V4.d.ts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
@@ -0,0 +1,57 @@
1
+ import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
2
+ import { QueryClient } from "@tanstack/preact-query";
3
+ import { CSSProperties, VNode } from "preact";
4
+ declare namespace PreactQueryDevtoolsPanel_d_exports {
5
+ export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
6
+ }
7
+ /**
8
+ * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
+ */
10
+ interface DevtoolsPanelOptions {
11
+ /**
12
+ * Use this to provide a custom QueryClient. Otherwise, the one from the
13
+ * nearest QueryClientProvider will be used.
14
+ */
15
+ client?: QueryClient;
16
+ /**
17
+ * Custom error types to be shown in the devtools.
18
+ */
19
+ errorTypes?: Array<DevtoolsErrorType>;
20
+ /**
21
+ * Use this to pass a nonce to the style tag that is added to the document
22
+ * head. This is useful if you are using a Content Security Policy (CSP)
23
+ * nonce to allow inline styles.
24
+ */
25
+ styleNonce?: string;
26
+ /**
27
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
28
+ * within the shadow DOM instead of within the head tag in the light DOM.
29
+ */
30
+ shadowDOMTarget?: ShadowRoot;
31
+ /**
32
+ * Custom styles for the devtools panel container.
33
+ */
34
+ style?: CSSProperties;
35
+ /**
36
+ * Callback function when the devtools panel is closed.
37
+ */
38
+ onClose?: () => unknown;
39
+ /**
40
+ * Use this to hide disabled queries from the devtools panel.
41
+ */
42
+ hideDisabledQueries?: boolean;
43
+ /**
44
+ * Use this to set the theme of the devtools panel.
45
+ * This overrides the theme selected in the devtools Settings menu. When omitted, the
46
+ * selected theme is used, or `'system'` if none is selected.
47
+ */
48
+ theme?: Theme;
49
+ }
50
+ /**
51
+ * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
52
+ * @param props - The devtools panel options.
53
+ * @returns The element the devtools panel is mounted in.
54
+ */
55
+ declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
56
+ export { PreactQueryDevtoolsPanel as n, PreactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
57
+ //# sourceMappingURL=PreactQueryDevtoolsPanel-D1KDQUcf.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreactQueryDevtoolsPanel-D1KDQUcf.d.cts","names":[],"sources":["../../src/PreactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;;EAKf,SAAS;;;;EAIT,aAAa,MAAM;;;;;;EAMnB;;;;;EAKA,kBAAkB;;;;EAIlB,QAAQ;;;;EAIR;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,yBACd,OAAO,uBACN"}
@@ -3,7 +3,7 @@ let preact_hooks = require("preact/hooks");
3
3
  let _tanstack_preact_query = require("@tanstack/preact-query");
4
4
  let _tanstack_query_devtools = require("@tanstack/query-devtools");
5
5
  let preact_jsx_runtime = require("preact/jsx-runtime");
6
- //#region src/PreactQueryDevtoolsPanel.tsx
6
+ // src/PreactQueryDevtoolsPanel.tsx
7
7
  /**
8
8
  * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
9
9
  * @param props - The devtools panel options.
@@ -55,7 +55,6 @@ function PreactQueryDevtoolsPanel(props) {
55
55
  ref
56
56
  });
57
57
  }
58
- //#endregion
59
58
  exports.PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel;
60
59
 
61
60
  //# sourceMappingURL=PreactQueryDevtoolsPanel.cjs.map
@@ -1,58 +1,2 @@
1
- import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
2
- import { QueryClient } from "@tanstack/preact-query";
3
- import { CSSProperties, VNode } from "preact";
4
- declare namespace PreactQueryDevtoolsPanel_d_exports {
5
- export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
6
- }
7
- /**
8
- * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
- */
10
- export interface DevtoolsPanelOptions {
11
- /**
12
- * Use this to provide a custom QueryClient. Otherwise, the one from the
13
- * nearest QueryClientProvider will be used.
14
- */
15
- client?: QueryClient;
16
- /**
17
- * Custom error types to be shown in the devtools.
18
- */
19
- errorTypes?: Array<DevtoolsErrorType>;
20
- /**
21
- * Use this to pass a nonce to the style tag that is added to the document
22
- * head. This is useful if you are using a Content Security Policy (CSP)
23
- * nonce to allow inline styles.
24
- */
25
- styleNonce?: string;
26
- /**
27
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
28
- * within the shadow DOM instead of within the head tag in the light DOM.
29
- */
30
- shadowDOMTarget?: ShadowRoot;
31
- /**
32
- * Custom styles for the devtools panel container.
33
- */
34
- style?: CSSProperties;
35
- /**
36
- * Callback function when the devtools panel is closed.
37
- */
38
- onClose?: () => unknown;
39
- /**
40
- * Use this to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Use this to set the theme of the devtools panel.
45
- * This overrides the theme selected in the devtools Settings menu. When omitted, the
46
- * selected theme is used, or `'system'` if none is selected.
47
- */
48
- theme?: Theme;
49
- }
50
- /**
51
- * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
52
- * @param props - The devtools panel options.
53
- * @returns The element the devtools panel is mounted in.
54
- */
55
- export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
56
- //#endregion
57
- export { PreactQueryDevtoolsPanel_d_exports as t };
58
- //# sourceMappingURL=PreactQueryDevtoolsPanel.d.cts.map
1
+ import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-D1KDQUcf.cjs";
2
+ export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
@@ -1,58 +1,2 @@
1
- import { QueryClient } from "@tanstack/preact-query";
2
- import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
3
- import { CSSProperties, VNode } from "preact";
4
- declare namespace PreactQueryDevtoolsPanel_d_exports {
5
- export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
6
- }
7
- /**
8
- * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
- */
10
- export interface DevtoolsPanelOptions {
11
- /**
12
- * Use this to provide a custom QueryClient. Otherwise, the one from the
13
- * nearest QueryClientProvider will be used.
14
- */
15
- client?: QueryClient;
16
- /**
17
- * Custom error types to be shown in the devtools.
18
- */
19
- errorTypes?: Array<DevtoolsErrorType>;
20
- /**
21
- * Use this to pass a nonce to the style tag that is added to the document
22
- * head. This is useful if you are using a Content Security Policy (CSP)
23
- * nonce to allow inline styles.
24
- */
25
- styleNonce?: string;
26
- /**
27
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
28
- * within the shadow DOM instead of within the head tag in the light DOM.
29
- */
30
- shadowDOMTarget?: ShadowRoot;
31
- /**
32
- * Custom styles for the devtools panel container.
33
- */
34
- style?: CSSProperties;
35
- /**
36
- * Callback function when the devtools panel is closed.
37
- */
38
- onClose?: () => unknown;
39
- /**
40
- * Use this to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Use this to set the theme of the devtools panel.
45
- * This overrides the theme selected in the devtools Settings menu. When omitted, the
46
- * selected theme is used, or `'system'` if none is selected.
47
- */
48
- theme?: Theme;
49
- }
50
- /**
51
- * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
52
- * @param props - The devtools panel options.
53
- * @returns The element the devtools panel is mounted in.
54
- */
55
- export declare function PreactQueryDevtoolsPanel(props: DevtoolsPanelOptions): VNode | null;
56
- //#endregion
57
- export { PreactQueryDevtoolsPanel_d_exports as t };
58
- //# sourceMappingURL=PreactQueryDevtoolsPanel.d.ts.map
1
+ import { n as PreactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./PreactQueryDevtoolsPanel-Cf86o6V4.js";
2
+ export { DevtoolsPanelOptions, PreactQueryDevtoolsPanel };
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "preact/hooks";
2
2
  import { onlineManager, useQueryClient } from "@tanstack/preact-query";
3
3
  import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
4
4
  import { jsx } from "preact/jsx-runtime";
5
- //#region src/PreactQueryDevtoolsPanel.tsx
5
+ // src/PreactQueryDevtoolsPanel.tsx
6
6
  /**
7
7
  * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
8
8
  * @param props - The devtools panel options.
@@ -54,7 +54,6 @@ function PreactQueryDevtoolsPanel(props) {
54
54
  ref
55
55
  });
56
56
  }
57
- //#endregion
58
57
  export { PreactQueryDevtoolsPanel };
59
58
 
60
59
  //# sourceMappingURL=PreactQueryDevtoolsPanel.js.map
@@ -1,14 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_PreactQueryDevtools = require("./PreactQueryDevtools.cjs");
3
3
  const require_PreactQueryDevtoolsPanel = require("./PreactQueryDevtoolsPanel.cjs");
4
- //#region src/index.ts
4
+ // src/index.ts
5
5
  const PreactQueryDevtools = process.env.NODE_ENV !== "development" ? function() {
6
6
  return null;
7
7
  } : require_PreactQueryDevtools.PreactQueryDevtools;
8
8
  const PreactQueryDevtoolsPanel = process.env.NODE_ENV !== "development" ? function() {
9
9
  return null;
10
10
  } : require_PreactQueryDevtoolsPanel.PreactQueryDevtoolsPanel;
11
- //#endregion
12
11
  exports.PreactQueryDevtools = PreactQueryDevtools;
13
12
  exports.PreactQueryDevtoolsPanel = PreactQueryDevtoolsPanel;
14
13
 
@@ -1,11 +1,9 @@
1
- import { t as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools.cjs";
2
- import { DevtoolsPanelOptions as DevtoolsPanelOptions$1, t as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel.cjs";
3
- //#region src/index.d.ts
1
+ import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-CszvBE3E.cjs";
2
+ import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-D1KDQUcf.cjs";
4
3
  export declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
5
4
  export declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
6
5
  /**
7
6
  * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
8
7
  */
9
8
  export type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
10
- //#endregion
11
9
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":["Devtools","DevtoolsPanel","DevtoolsPanel.DevtoolsPanelOptions"],"sources":["../../src/index.ts"],"mappings":";;;qBAGa,6BAA6BA;qBAO7B,kCAAkCC;;;;YAUnC,uBAAuBC"}
1
+ {"version":3,"file":"index.d.cts","names":["Devtools","DevtoolsPanel","DevtoolsPanel.DevtoolsPanelOptions"],"sources":["../../src/index.ts"],"mappings":";;qBAGa,6BAA6BA;qBAO7B,kCAAkCC;;;;YAUnC,uBAAuBC"}
@@ -1,11 +1,9 @@
1
- import { t as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools.js";
2
- import { DevtoolsPanelOptions as DevtoolsPanelOptions$1, t as PreactQueryDevtoolsPanel_d_exports } from "./PreactQueryDevtoolsPanel.js";
3
- //#region src/index.d.ts
1
+ import { r as PreactQueryDevtools_d_exports } from "./PreactQueryDevtools-BZb79hrw.js";
2
+ import { r as PreactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./PreactQueryDevtoolsPanel-Cf86o6V4.js";
4
3
  export declare const PreactQueryDevtools: (typeof PreactQueryDevtools_d_exports)['PreactQueryDevtools'];
5
4
  export declare const PreactQueryDevtoolsPanel: (typeof PreactQueryDevtoolsPanel_d_exports)['PreactQueryDevtoolsPanel'];
6
5
  /**
7
6
  * The props of `PreactQueryDevtoolsPanel`, which renders the devtools panel inline.
8
7
  */
9
8
  export type DevtoolsPanelOptions = DevtoolsPanelOptions$1;
10
- //#endregion
11
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["Devtools","DevtoolsPanel","DevtoolsPanel.DevtoolsPanelOptions"],"sources":["../../src/index.ts"],"mappings":";;;qBAGa,6BAA6BA;qBAO7B,kCAAkCC;;;;YAUnC,uBAAuBC"}
1
+ {"version":3,"file":"index.d.ts","names":["Devtools","DevtoolsPanel","DevtoolsPanel.DevtoolsPanelOptions"],"sources":["../../src/index.ts"],"mappings":";;qBAGa,6BAA6BA;qBAO7B,kCAAkCC;;;;YAUnC,uBAAuBC"}