@tanstack/react-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 (69) hide show
  1. package/build/legacy/ReactQueryDevtools-BhjVbJyl.d.cts +64 -0
  2. package/build/legacy/ReactQueryDevtools-BhjVbJyl.d.cts.map +1 -0
  3. package/build/legacy/ReactQueryDevtools-CaecJz_D.d.ts +64 -0
  4. package/build/legacy/ReactQueryDevtools-CaecJz_D.d.ts.map +1 -0
  5. package/build/legacy/ReactQueryDevtools.cjs +2 -3
  6. package/build/legacy/ReactQueryDevtools.d.cts +2 -65
  7. package/build/legacy/ReactQueryDevtools.d.ts +2 -65
  8. package/build/legacy/ReactQueryDevtools.js +1 -2
  9. package/build/legacy/ReactQueryDevtoolsPanel-C2_VXpks.d.ts +57 -0
  10. package/build/legacy/ReactQueryDevtoolsPanel-C2_VXpks.d.ts.map +1 -0
  11. package/build/legacy/ReactQueryDevtoolsPanel-DKrB7Z0x.d.cts +57 -0
  12. package/build/legacy/ReactQueryDevtoolsPanel-DKrB7Z0x.d.cts.map +1 -0
  13. package/build/legacy/ReactQueryDevtoolsPanel.cjs +2 -3
  14. package/build/legacy/ReactQueryDevtoolsPanel.d.cts +2 -58
  15. package/build/legacy/ReactQueryDevtoolsPanel.d.ts +2 -58
  16. package/build/legacy/ReactQueryDevtoolsPanel.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-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
  30. package/build/legacy/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  31. package/build/modern/ReactQueryDevtools-BhjVbJyl.d.cts +64 -0
  32. package/build/modern/ReactQueryDevtools-BhjVbJyl.d.cts.map +1 -0
  33. package/build/modern/ReactQueryDevtools-CaecJz_D.d.ts +64 -0
  34. package/build/modern/ReactQueryDevtools-CaecJz_D.d.ts.map +1 -0
  35. package/build/modern/ReactQueryDevtools.cjs +2 -3
  36. package/build/modern/ReactQueryDevtools.d.cts +2 -65
  37. package/build/modern/ReactQueryDevtools.d.ts +2 -65
  38. package/build/modern/ReactQueryDevtools.js +1 -2
  39. package/build/modern/ReactQueryDevtoolsPanel-C2_VXpks.d.ts +57 -0
  40. package/build/modern/ReactQueryDevtoolsPanel-C2_VXpks.d.ts.map +1 -0
  41. package/build/modern/ReactQueryDevtoolsPanel-DKrB7Z0x.d.cts +57 -0
  42. package/build/modern/ReactQueryDevtoolsPanel-DKrB7Z0x.d.cts.map +1 -0
  43. package/build/modern/ReactQueryDevtoolsPanel.cjs +2 -3
  44. package/build/modern/ReactQueryDevtoolsPanel.d.cts +2 -58
  45. package/build/modern/ReactQueryDevtoolsPanel.d.ts +2 -58
  46. package/build/modern/ReactQueryDevtoolsPanel.js +1 -2
  47. package/build/modern/index.cjs +1 -2
  48. package/build/modern/index.d.cts +2 -4
  49. package/build/modern/index.d.cts.map +1 -1
  50. package/build/modern/index.d.ts +2 -4
  51. package/build/modern/index.d.ts.map +1 -1
  52. package/build/modern/index.js +1 -2
  53. package/build/modern/production.cjs +1 -2
  54. package/build/modern/production.d.cts +2 -4
  55. package/build/modern/production.d.cts.map +1 -1
  56. package/build/modern/production.d.ts +2 -4
  57. package/build/modern/production.d.ts.map +1 -1
  58. package/build/modern/production.js +1 -2
  59. package/build/modern/{rolldown-runtime-VH7oDXx4.cjs → rolldown-runtime-CmQyd0Gu.cjs} +1 -2
  60. package/build/modern/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  61. package/package.json +7 -7
  62. package/build/legacy/ReactQueryDevtools.d.cts.map +0 -1
  63. package/build/legacy/ReactQueryDevtools.d.ts.map +0 -1
  64. package/build/legacy/ReactQueryDevtoolsPanel.d.cts.map +0 -1
  65. package/build/legacy/ReactQueryDevtoolsPanel.d.ts.map +0 -1
  66. package/build/modern/ReactQueryDevtools.d.cts.map +0 -1
  67. package/build/modern/ReactQueryDevtools.d.ts.map +0 -1
  68. package/build/modern/ReactQueryDevtoolsPanel.d.cts.map +0 -1
  69. package/build/modern/ReactQueryDevtoolsPanel.d.ts.map +0 -1
@@ -0,0 +1,64 @@
1
+ import * as React from "react";
2
+ import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
3
+ import { QueryClient } from "@tanstack/react-query";
4
+ declare namespace ReactQueryDevtools_d_exports {
5
+ export { DevtoolsOptions, ReactQueryDevtools };
6
+ }
7
+ /**
8
+ * The props of `ReactQueryDevtools`, 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 React Query devtools panel.
24
+ * 'top' | 'bottom' | 'left' | 'right'
25
+ * @defaultValue bottom
26
+ */
27
+ position?: DevtoolsPosition;
28
+ /**
29
+ * Custom instance of QueryClient
30
+ */
31
+ client?: QueryClient;
32
+ /**
33
+ * Use this so you can define custom errors that can be shown in the devtools.
34
+ */
35
+ errorTypes?: Array<DevtoolsErrorType>;
36
+ /**
37
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
38
+ */
39
+ styleNonce?: string;
40
+ /**
41
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
42
+ * within the shadow DOM instead of within the head tag in the light DOM.
43
+ */
44
+ shadowDOMTarget?: ShadowRoot;
45
+ /**
46
+ * Set this to true to hide disabled queries from the devtools panel.
47
+ */
48
+ hideDisabledQueries?: boolean;
49
+ /**
50
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
51
+ * This overrides the theme selected in the devtools Settings menu. When omitted, the
52
+ * selected theme is used, or `'system'` if none is selected.
53
+ */
54
+ theme?: Theme;
55
+ }
56
+ /**
57
+ * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
58
+ * nearest `QueryClient`.
59
+ * @param props - The devtools options.
60
+ * @returns The element the devtools are mounted in.
61
+ */
62
+ declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
63
+ export { ReactQueryDevtools as n, ReactQueryDevtools_d_exports as r, DevtoolsOptions as t };
64
+ //# sourceMappingURL=ReactQueryDevtools-BhjVbJyl.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactQueryDevtools-BhjVbJyl.d.cts","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;EAInB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,mBACd,OAAO,kBACN,MAAM"}
@@ -0,0 +1,64 @@
1
+ import * as React from "react";
2
+ import { QueryClient } from "@tanstack/react-query";
3
+ import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
4
+ declare namespace ReactQueryDevtools_d_exports {
5
+ export { DevtoolsOptions, ReactQueryDevtools };
6
+ }
7
+ /**
8
+ * The props of `ReactQueryDevtools`, 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 React Query devtools panel.
24
+ * 'top' | 'bottom' | 'left' | 'right'
25
+ * @defaultValue bottom
26
+ */
27
+ position?: DevtoolsPosition;
28
+ /**
29
+ * Custom instance of QueryClient
30
+ */
31
+ client?: QueryClient;
32
+ /**
33
+ * Use this so you can define custom errors that can be shown in the devtools.
34
+ */
35
+ errorTypes?: Array<DevtoolsErrorType>;
36
+ /**
37
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
38
+ */
39
+ styleNonce?: string;
40
+ /**
41
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
42
+ * within the shadow DOM instead of within the head tag in the light DOM.
43
+ */
44
+ shadowDOMTarget?: ShadowRoot;
45
+ /**
46
+ * Set this to true to hide disabled queries from the devtools panel.
47
+ */
48
+ hideDisabledQueries?: boolean;
49
+ /**
50
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
51
+ * This overrides the theme selected in the devtools Settings menu. When omitted, the
52
+ * selected theme is used, or `'system'` if none is selected.
53
+ */
54
+ theme?: Theme;
55
+ }
56
+ /**
57
+ * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
58
+ * nearest `QueryClient`.
59
+ * @param props - The devtools options.
60
+ * @returns The element the devtools are mounted in.
61
+ */
62
+ declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
63
+ export { ReactQueryDevtools as n, ReactQueryDevtools_d_exports as r, DevtoolsOptions as t };
64
+ //# sourceMappingURL=ReactQueryDevtools-CaecJz_D.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactQueryDevtools-CaecJz_D.d.ts","names":[],"sources":["../../src/ReactQueryDevtools.tsx"],"mappings":";;;;;;;;;;UAgBiB;;;;EAIf;;;;;;EAMA,iBAAiB;;;;;;EAMjB,WAAW;;;;EAIX,SAAS;;;;EAIT,aAAa,MAAM;;;;EAInB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;;EAMA,QAAQ;;;;;;;;iBASM,mBACd,OAAO,kBACN,MAAM"}
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
3
+ const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
4
4
  let react = require("react");
5
5
  react = require_rolldown_runtime.__toESM(react, 1);
6
6
  let _tanstack_react_query = require("@tanstack/react-query");
7
7
  let _tanstack_query_devtools = require("@tanstack/query-devtools");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
- //#region src/ReactQueryDevtools.tsx
9
+ // src/ReactQueryDevtools.tsx
10
10
  /**
11
11
  * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
12
12
  * nearest `QueryClient`.
@@ -61,7 +61,6 @@ function ReactQueryDevtools(props) {
61
61
  ref
62
62
  });
63
63
  }
64
- //#endregion
65
64
  exports.ReactQueryDevtools = ReactQueryDevtools;
66
65
 
67
66
  //# sourceMappingURL=ReactQueryDevtools.cjs.map
@@ -1,65 +1,2 @@
1
- import * as React from "react";
2
- import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
3
- import { QueryClient } from "@tanstack/react-query";
4
- declare namespace ReactQueryDevtools_d_exports {
5
- export { DevtoolsOptions, ReactQueryDevtools };
6
- }
7
- /**
8
- * The props of `ReactQueryDevtools`, 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 React Query devtools panel.
24
- * 'top' | 'bottom' | 'left' | 'right'
25
- * @defaultValue bottom
26
- */
27
- position?: DevtoolsPosition;
28
- /**
29
- * Custom instance of QueryClient
30
- */
31
- client?: QueryClient;
32
- /**
33
- * Use this so you can define custom errors that can be shown in the devtools.
34
- */
35
- errorTypes?: Array<DevtoolsErrorType>;
36
- /**
37
- * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
38
- */
39
- styleNonce?: string;
40
- /**
41
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
42
- * within the shadow DOM instead of within the head tag in the light DOM.
43
- */
44
- shadowDOMTarget?: ShadowRoot;
45
- /**
46
- * Set this to true to hide disabled queries from the devtools panel.
47
- */
48
- hideDisabledQueries?: boolean;
49
- /**
50
- * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
51
- * This overrides the theme selected in the devtools Settings menu. When omitted, the
52
- * selected theme is used, or `'system'` if none is selected.
53
- */
54
- theme?: Theme;
55
- }
56
- /**
57
- * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
58
- * nearest `QueryClient`.
59
- * @param props - The devtools options.
60
- * @returns The element the devtools are mounted in.
61
- */
62
- export declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
63
- //#endregion
64
- export { ReactQueryDevtools_d_exports as t };
65
- //# sourceMappingURL=ReactQueryDevtools.d.cts.map
1
+ import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-BhjVbJyl.cjs";
2
+ export { DevtoolsOptions, ReactQueryDevtools };
@@ -1,65 +1,2 @@
1
- import * as React from "react";
2
- import { QueryClient } from "@tanstack/react-query";
3
- import { DevtoolsButtonPosition, DevtoolsErrorType, DevtoolsPosition, Theme } from "@tanstack/query-devtools";
4
- declare namespace ReactQueryDevtools_d_exports {
5
- export { DevtoolsOptions, ReactQueryDevtools };
6
- }
7
- /**
8
- * The props of `ReactQueryDevtools`, 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 React Query devtools panel.
24
- * 'top' | 'bottom' | 'left' | 'right'
25
- * @defaultValue bottom
26
- */
27
- position?: DevtoolsPosition;
28
- /**
29
- * Custom instance of QueryClient
30
- */
31
- client?: QueryClient;
32
- /**
33
- * Use this so you can define custom errors that can be shown in the devtools.
34
- */
35
- errorTypes?: Array<DevtoolsErrorType>;
36
- /**
37
- * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
38
- */
39
- styleNonce?: string;
40
- /**
41
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
42
- * within the shadow DOM instead of within the head tag in the light DOM.
43
- */
44
- shadowDOMTarget?: ShadowRoot;
45
- /**
46
- * Set this to true to hide disabled queries from the devtools panel.
47
- */
48
- hideDisabledQueries?: boolean;
49
- /**
50
- * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
51
- * This overrides the theme selected in the devtools Settings menu. When omitted, the
52
- * selected theme is used, or `'system'` if none is selected.
53
- */
54
- theme?: Theme;
55
- }
56
- /**
57
- * Renders the TanStack Query devtools, with a toggle button that opens them, for the given or
58
- * nearest `QueryClient`.
59
- * @param props - The devtools options.
60
- * @returns The element the devtools are mounted in.
61
- */
62
- export declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
63
- //#endregion
64
- export { ReactQueryDevtools_d_exports as t };
65
- //# sourceMappingURL=ReactQueryDevtools.d.ts.map
1
+ import { n as ReactQueryDevtools, t as DevtoolsOptions } from "./ReactQueryDevtools-CaecJz_D.js";
2
+ export { DevtoolsOptions, ReactQueryDevtools };
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { onlineManager, useQueryClient } from "@tanstack/react-query";
4
4
  import { TanstackQueryDevtools } from "@tanstack/query-devtools";
5
5
  import { jsx } from "react/jsx-runtime";
6
- //#region src/ReactQueryDevtools.tsx
6
+ // src/ReactQueryDevtools.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 ReactQueryDevtools(props) {
58
58
  ref
59
59
  });
60
60
  }
61
- //#endregion
62
61
  export { ReactQueryDevtools };
63
62
 
64
63
  //# sourceMappingURL=ReactQueryDevtools.js.map
@@ -0,0 +1,57 @@
1
+ import * as React from "react";
2
+ import { QueryClient } from "@tanstack/react-query";
3
+ import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
4
+ declare namespace ReactQueryDevtoolsPanel_d_exports {
5
+ export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
6
+ }
7
+ /**
8
+ * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
+ */
10
+ interface DevtoolsPanelOptions {
11
+ /**
12
+ * Custom instance of QueryClient
13
+ */
14
+ client?: QueryClient;
15
+ /**
16
+ * Use this so you can define custom errors that can be shown in the devtools.
17
+ */
18
+ errorTypes?: Array<DevtoolsErrorType>;
19
+ /**
20
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
21
+ */
22
+ styleNonce?: string;
23
+ /**
24
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
25
+ * within the shadow DOM instead of within the head tag in the light DOM.
26
+ */
27
+ shadowDOMTarget?: ShadowRoot;
28
+ /**
29
+ * Custom styles for the devtools panel
30
+ * @default { height: '500px' }
31
+ * @example { height: '100%' }
32
+ * @example { height: '100%', width: '100%' }
33
+ */
34
+ style?: React.CSSProperties;
35
+ /**
36
+ * Callback function that is called when the devtools panel is closed
37
+ */
38
+ onClose?: () => void;
39
+ /**
40
+ * Set this to true to hide disabled queries from the devtools panel.
41
+ */
42
+ hideDisabledQueries?: boolean;
43
+ /**
44
+ * Set this to 'light', 'dark', or 'system' to change 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 ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
56
+ export { ReactQueryDevtoolsPanel as n, ReactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
57
+ //# sourceMappingURL=ReactQueryDevtoolsPanel-C2_VXpks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactQueryDevtoolsPanel-C2_VXpks.d.ts","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;EAInB;;;;;EAKA,kBAAkB;;;;;;;EAQlB,QAAQ,MAAM;;;;EAKd;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,wBACd,OAAO,uBACN,MAAM"}
@@ -0,0 +1,57 @@
1
+ import * as React from "react";
2
+ import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
3
+ import { QueryClient } from "@tanstack/react-query";
4
+ declare namespace ReactQueryDevtoolsPanel_d_exports {
5
+ export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
6
+ }
7
+ /**
8
+ * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
+ */
10
+ interface DevtoolsPanelOptions {
11
+ /**
12
+ * Custom instance of QueryClient
13
+ */
14
+ client?: QueryClient;
15
+ /**
16
+ * Use this so you can define custom errors that can be shown in the devtools.
17
+ */
18
+ errorTypes?: Array<DevtoolsErrorType>;
19
+ /**
20
+ * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
21
+ */
22
+ styleNonce?: string;
23
+ /**
24
+ * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
25
+ * within the shadow DOM instead of within the head tag in the light DOM.
26
+ */
27
+ shadowDOMTarget?: ShadowRoot;
28
+ /**
29
+ * Custom styles for the devtools panel
30
+ * @default { height: '500px' }
31
+ * @example { height: '100%' }
32
+ * @example { height: '100%', width: '100%' }
33
+ */
34
+ style?: React.CSSProperties;
35
+ /**
36
+ * Callback function that is called when the devtools panel is closed
37
+ */
38
+ onClose?: () => void;
39
+ /**
40
+ * Set this to true to hide disabled queries from the devtools panel.
41
+ */
42
+ hideDisabledQueries?: boolean;
43
+ /**
44
+ * Set this to 'light', 'dark', or 'system' to change 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 ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
56
+ export { ReactQueryDevtoolsPanel as n, ReactQueryDevtoolsPanel_d_exports as r, DevtoolsPanelOptions as t };
57
+ //# sourceMappingURL=ReactQueryDevtoolsPanel-DKrB7Z0x.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactQueryDevtoolsPanel-DKrB7Z0x.d.cts","names":[],"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"mappings":";;;;;;;;;UAUiB;;;;EAIf,SAAS;;;;EAIT,aAAa,MAAM;;;;EAInB;;;;;EAKA,kBAAkB;;;;;;;EAQlB,QAAQ,MAAM;;;;EAKd;;;;EAIA;;;;;;EAMA,QAAQ;;;;;;;iBAQM,wBACd,OAAO,uBACN,MAAM"}
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
3
+ const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.cjs");
4
4
  let react = require("react");
5
5
  react = require_rolldown_runtime.__toESM(react, 1);
6
6
  let _tanstack_react_query = require("@tanstack/react-query");
7
7
  let _tanstack_query_devtools = require("@tanstack/query-devtools");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
- //#region src/ReactQueryDevtoolsPanel.tsx
9
+ // src/ReactQueryDevtoolsPanel.tsx
10
10
  /**
11
11
  * Renders the TanStack Query devtools panel inline, for the given or nearest `QueryClient`.
12
12
  * @param props - The devtools panel options.
@@ -58,7 +58,6 @@ function ReactQueryDevtoolsPanel(props) {
58
58
  ref
59
59
  });
60
60
  }
61
- //#endregion
62
61
  exports.ReactQueryDevtoolsPanel = ReactQueryDevtoolsPanel;
63
62
 
64
63
  //# sourceMappingURL=ReactQueryDevtoolsPanel.cjs.map
@@ -1,58 +1,2 @@
1
- import * as React from "react";
2
- import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
3
- import { QueryClient } from "@tanstack/react-query";
4
- declare namespace ReactQueryDevtoolsPanel_d_exports {
5
- export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
6
- }
7
- /**
8
- * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
- */
10
- export interface DevtoolsPanelOptions {
11
- /**
12
- * Custom instance of QueryClient
13
- */
14
- client?: QueryClient;
15
- /**
16
- * Use this so you can define custom errors that can be shown in the devtools.
17
- */
18
- errorTypes?: Array<DevtoolsErrorType>;
19
- /**
20
- * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
21
- */
22
- styleNonce?: string;
23
- /**
24
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
25
- * within the shadow DOM instead of within the head tag in the light DOM.
26
- */
27
- shadowDOMTarget?: ShadowRoot;
28
- /**
29
- * Custom styles for the devtools panel
30
- * @default { height: '500px' }
31
- * @example { height: '100%' }
32
- * @example { height: '100%', width: '100%' }
33
- */
34
- style?: React.CSSProperties;
35
- /**
36
- * Callback function that is called when the devtools panel is closed
37
- */
38
- onClose?: () => void;
39
- /**
40
- * Set this to true to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Set this to 'light', 'dark', or 'system' to change 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 ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
56
- //#endregion
57
- export { ReactQueryDevtoolsPanel_d_exports as t };
58
- //# sourceMappingURL=ReactQueryDevtoolsPanel.d.cts.map
1
+ import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-DKrB7Z0x.cjs";
2
+ export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
@@ -1,58 +1,2 @@
1
- import * as React from "react";
2
- import { QueryClient } from "@tanstack/react-query";
3
- import { DevtoolsErrorType, Theme } from "@tanstack/query-devtools";
4
- declare namespace ReactQueryDevtoolsPanel_d_exports {
5
- export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
6
- }
7
- /**
8
- * The props of `ReactQueryDevtoolsPanel`, which renders the devtools panel inline.
9
- */
10
- export interface DevtoolsPanelOptions {
11
- /**
12
- * Custom instance of QueryClient
13
- */
14
- client?: QueryClient;
15
- /**
16
- * Use this so you can define custom errors that can be shown in the devtools.
17
- */
18
- errorTypes?: Array<DevtoolsErrorType>;
19
- /**
20
- * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
21
- */
22
- styleNonce?: string;
23
- /**
24
- * Use this to pass a shadow DOM target to the devtools so that the styles will be applied
25
- * within the shadow DOM instead of within the head tag in the light DOM.
26
- */
27
- shadowDOMTarget?: ShadowRoot;
28
- /**
29
- * Custom styles for the devtools panel
30
- * @default { height: '500px' }
31
- * @example { height: '100%' }
32
- * @example { height: '100%', width: '100%' }
33
- */
34
- style?: React.CSSProperties;
35
- /**
36
- * Callback function that is called when the devtools panel is closed
37
- */
38
- onClose?: () => void;
39
- /**
40
- * Set this to true to hide disabled queries from the devtools panel.
41
- */
42
- hideDisabledQueries?: boolean;
43
- /**
44
- * Set this to 'light', 'dark', or 'system' to change 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 ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React.ReactElement | null;
56
- //#endregion
57
- export { ReactQueryDevtoolsPanel_d_exports as t };
58
- //# sourceMappingURL=ReactQueryDevtoolsPanel.d.ts.map
1
+ import { n as ReactQueryDevtoolsPanel, t as DevtoolsPanelOptions } from "./ReactQueryDevtoolsPanel-C2_VXpks.js";
2
+ export { DevtoolsPanelOptions, ReactQueryDevtoolsPanel };
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import { onlineManager, useQueryClient } from "@tanstack/react-query";
4
4
  import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
5
5
  import { jsx } from "react/jsx-runtime";
6
- //#region src/ReactQueryDevtoolsPanel.tsx
6
+ // src/ReactQueryDevtoolsPanel.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 ReactQueryDevtoolsPanel(props) {
55
55
  ref
56
56
  });
57
57
  }
58
- //#endregion
59
58
  export { ReactQueryDevtoolsPanel };
60
59
 
61
60
  //# sourceMappingURL=ReactQueryDevtoolsPanel.js.map
@@ -2,14 +2,13 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const require_ReactQueryDevtools = require("./ReactQueryDevtools.cjs");
4
4
  const require_ReactQueryDevtoolsPanel = require("./ReactQueryDevtoolsPanel.cjs");
5
- //#region src/index.ts
5
+ // src/index.ts
6
6
  const ReactQueryDevtools = process.env.NODE_ENV !== "development" ? function() {
7
7
  return null;
8
8
  } : require_ReactQueryDevtools.ReactQueryDevtools;
9
9
  const ReactQueryDevtoolsPanel = process.env.NODE_ENV !== "development" ? function() {
10
10
  return null;
11
11
  } : require_ReactQueryDevtoolsPanel.ReactQueryDevtoolsPanel;
12
- //#endregion
13
12
  exports.ReactQueryDevtools = ReactQueryDevtools;
14
13
  exports.ReactQueryDevtoolsPanel = ReactQueryDevtoolsPanel;
15
14
 
@@ -1,11 +1,9 @@
1
- import { t as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools.cjs";
2
- import { DevtoolsPanelOptions as DevtoolsPanelOptions$1, t as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel.cjs";
3
- //#region src/index.d.ts
1
+ import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-BhjVbJyl.cjs";
2
+ import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-DKrB7Z0x.cjs";
4
3
  export declare const ReactQueryDevtools: (typeof ReactQueryDevtools_d_exports)['ReactQueryDevtools'];
5
4
  export declare const ReactQueryDevtoolsPanel: (typeof ReactQueryDevtoolsPanel_d_exports)['ReactQueryDevtoolsPanel'];
6
5
  /**
7
6
  * The props of `ReactQueryDevtoolsPanel`, 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":";;;qBAKa,4BAA4BA;qBAO5B,iCAAiCC;;;;YAUlC,uBAAuBC"}
1
+ {"version":3,"file":"index.d.cts","names":["Devtools","DevtoolsPanel","DevtoolsPanel.DevtoolsPanelOptions"],"sources":["../../src/index.ts"],"mappings":";;qBAKa,4BAA4BA;qBAO5B,iCAAiCC;;;;YAUlC,uBAAuBC"}
@@ -1,11 +1,9 @@
1
- import { t as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools.js";
2
- import { DevtoolsPanelOptions as DevtoolsPanelOptions$1, t as ReactQueryDevtoolsPanel_d_exports } from "./ReactQueryDevtoolsPanel.js";
3
- //#region src/index.d.ts
1
+ import { r as ReactQueryDevtools_d_exports } from "./ReactQueryDevtools-CaecJz_D.js";
2
+ import { r as ReactQueryDevtoolsPanel_d_exports, t as DevtoolsPanelOptions$1 } from "./ReactQueryDevtoolsPanel-C2_VXpks.js";
4
3
  export declare const ReactQueryDevtools: (typeof ReactQueryDevtools_d_exports)['ReactQueryDevtools'];
5
4
  export declare const ReactQueryDevtoolsPanel: (typeof ReactQueryDevtoolsPanel_d_exports)['ReactQueryDevtoolsPanel'];
6
5
  /**
7
6
  * The props of `ReactQueryDevtoolsPanel`, 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":";;;qBAKa,4BAA4BA;qBAO5B,iCAAiCC;;;;YAUlC,uBAAuBC"}
1
+ {"version":3,"file":"index.d.ts","names":["Devtools","DevtoolsPanel","DevtoolsPanel.DevtoolsPanelOptions"],"sources":["../../src/index.ts"],"mappings":";;qBAKa,4BAA4BA;qBAO5B,iCAAiCC;;;;YAUlC,uBAAuBC"}