@tanstack/react-query-devtools 5.94.4 → 5.94.5

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 (53) hide show
  1. package/build/legacy/ReactQueryDevtools.cjs +106 -0
  2. package/build/legacy/ReactQueryDevtools.cjs.map +1 -0
  3. package/build/legacy/ReactQueryDevtools.d.cts +2 -0
  4. package/build/legacy/ReactQueryDevtools.d.ts +2 -0
  5. package/build/legacy/ReactQueryDevtools.js +72 -0
  6. package/build/legacy/ReactQueryDevtools.js.map +1 -0
  7. package/build/legacy/ReactQueryDevtoolsPanel.cjs +102 -0
  8. package/build/legacy/ReactQueryDevtoolsPanel.cjs.map +1 -0
  9. package/build/legacy/ReactQueryDevtoolsPanel.d.cts +2 -0
  10. package/build/legacy/ReactQueryDevtoolsPanel.d.ts +2 -0
  11. package/build/legacy/ReactQueryDevtoolsPanel.js +68 -0
  12. package/build/legacy/ReactQueryDevtoolsPanel.js.map +1 -0
  13. package/build/legacy/_tsup-dts-rollup.d.cts +147 -0
  14. package/build/legacy/_tsup-dts-rollup.d.ts +147 -0
  15. package/build/legacy/index.cjs +51 -0
  16. package/build/legacy/index.cjs.map +1 -0
  17. package/build/legacy/index.d.cts +3 -0
  18. package/build/legacy/index.d.ts +3 -0
  19. package/build/legacy/index.js +16 -0
  20. package/build/legacy/index.js.map +1 -0
  21. package/build/legacy/production.cjs +47 -0
  22. package/build/legacy/production.cjs.map +1 -0
  23. package/build/legacy/production.d.cts +2 -0
  24. package/build/legacy/production.d.ts +2 -0
  25. package/build/legacy/production.js +12 -0
  26. package/build/legacy/production.js.map +1 -0
  27. package/build/modern/ReactQueryDevtools.cjs +106 -0
  28. package/build/modern/ReactQueryDevtools.cjs.map +1 -0
  29. package/build/modern/ReactQueryDevtools.d.cts +2 -0
  30. package/build/modern/ReactQueryDevtools.d.ts +2 -0
  31. package/build/modern/ReactQueryDevtools.js +72 -0
  32. package/build/modern/ReactQueryDevtools.js.map +1 -0
  33. package/build/modern/ReactQueryDevtoolsPanel.cjs +102 -0
  34. package/build/modern/ReactQueryDevtoolsPanel.cjs.map +1 -0
  35. package/build/modern/ReactQueryDevtoolsPanel.d.cts +2 -0
  36. package/build/modern/ReactQueryDevtoolsPanel.d.ts +2 -0
  37. package/build/modern/ReactQueryDevtoolsPanel.js +68 -0
  38. package/build/modern/ReactQueryDevtoolsPanel.js.map +1 -0
  39. package/build/modern/_tsup-dts-rollup.d.cts +147 -0
  40. package/build/modern/_tsup-dts-rollup.d.ts +147 -0
  41. package/build/modern/index.cjs +51 -0
  42. package/build/modern/index.cjs.map +1 -0
  43. package/build/modern/index.d.cts +3 -0
  44. package/build/modern/index.d.ts +3 -0
  45. package/build/modern/index.js +16 -0
  46. package/build/modern/index.js.map +1 -0
  47. package/build/modern/production.cjs +47 -0
  48. package/build/modern/production.cjs.map +1 -0
  49. package/build/modern/production.d.cts +2 -0
  50. package/build/modern/production.d.ts +2 -0
  51. package/build/modern/production.js +12 -0
  52. package/build/modern/production.js.map +1 -0
  53. package/package.json +4 -4
@@ -0,0 +1,68 @@
1
+ "use client";
2
+
3
+ // src/ReactQueryDevtoolsPanel.tsx
4
+ import * as React from "react";
5
+ import { onlineManager, useQueryClient } from "@tanstack/react-query";
6
+ import { TanstackQueryDevtoolsPanel } from "@tanstack/query-devtools";
7
+ import { jsx } from "react/jsx-runtime";
8
+ function ReactQueryDevtoolsPanel(props) {
9
+ const queryClient = useQueryClient(props.client);
10
+ const ref = React.useRef(null);
11
+ const {
12
+ errorTypes,
13
+ styleNonce,
14
+ shadowDOMTarget,
15
+ hideDisabledQueries,
16
+ theme
17
+ } = props;
18
+ const [devtools] = React.useState(
19
+ new TanstackQueryDevtoolsPanel({
20
+ client: queryClient,
21
+ queryFlavor: "React Query",
22
+ version: "5",
23
+ onlineManager,
24
+ buttonPosition: "bottom-left",
25
+ position: "bottom",
26
+ initialIsOpen: true,
27
+ errorTypes,
28
+ styleNonce,
29
+ shadowDOMTarget,
30
+ onClose: props.onClose,
31
+ hideDisabledQueries,
32
+ theme
33
+ })
34
+ );
35
+ React.useEffect(() => {
36
+ devtools.setClient(queryClient);
37
+ }, [queryClient, devtools]);
38
+ React.useEffect(() => {
39
+ devtools.setOnClose(props.onClose ?? (() => {
40
+ }));
41
+ }, [props.onClose, devtools]);
42
+ React.useEffect(() => {
43
+ devtools.setErrorTypes(errorTypes || []);
44
+ }, [errorTypes, devtools]);
45
+ React.useEffect(() => {
46
+ devtools.setTheme(theme);
47
+ }, [theme, devtools]);
48
+ React.useEffect(() => {
49
+ if (ref.current) {
50
+ devtools.mount(ref.current);
51
+ }
52
+ return () => {
53
+ devtools.unmount();
54
+ };
55
+ }, [devtools]);
56
+ return /* @__PURE__ */ jsx(
57
+ "div",
58
+ {
59
+ style: { height: "500px", ...props.style },
60
+ className: "tsqd-parent-container",
61
+ ref
62
+ }
63
+ );
64
+ }
65
+ export {
66
+ ReactQueryDevtoolsPanel
67
+ };
68
+ //# sourceMappingURL=ReactQueryDevtoolsPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/ReactQueryDevtoolsPanel.tsx"],"sourcesContent":["'use client'\nimport * as React from 'react'\nimport { onlineManager, useQueryClient } from '@tanstack/react-query'\nimport { TanstackQueryDevtoolsPanel } from '@tanstack/query-devtools'\nimport type { DevtoolsErrorType, Theme } from '@tanstack/query-devtools'\nimport type { QueryClient } from '@tanstack/react-query'\n\nexport interface DevtoolsPanelOptions {\n /**\n * Custom instance of QueryClient\n */\n client?: QueryClient\n /**\n * Use this so you can define custom errors that can be shown in the devtools.\n */\n errorTypes?: Array<DevtoolsErrorType>\n /**\n * 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.\n */\n styleNonce?: string\n /**\n * Use this so you can attach the devtool's styles to specific element in the DOM.\n */\n shadowDOMTarget?: ShadowRoot\n\n /**\n * Custom styles for the devtools panel\n * @default { height: '500px' }\n * @example { height: '100%' }\n * @example { height: '100%', width: '100%' }\n */\n style?: React.CSSProperties\n\n /**\n * Callback function that is called when the devtools panel is closed\n */\n onClose?: () => unknown\n /**\n * Set this to true to hide disabled queries from the devtools panel.\n */\n hideDisabledQueries?: boolean\n /**\n * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.\n * Defaults to 'system'.\n */\n theme?: Theme\n}\n\nexport function ReactQueryDevtoolsPanel(\n props: DevtoolsPanelOptions,\n): React.ReactElement | null {\n const queryClient = useQueryClient(props.client)\n const ref = React.useRef<HTMLDivElement>(null)\n const {\n errorTypes,\n styleNonce,\n shadowDOMTarget,\n hideDisabledQueries,\n theme,\n } = props\n const [devtools] = React.useState(\n new TanstackQueryDevtoolsPanel({\n client: queryClient,\n queryFlavor: 'React Query',\n version: '5',\n onlineManager,\n buttonPosition: 'bottom-left',\n position: 'bottom',\n initialIsOpen: true,\n errorTypes,\n styleNonce,\n shadowDOMTarget,\n onClose: props.onClose,\n hideDisabledQueries,\n theme,\n }),\n )\n\n React.useEffect(() => {\n devtools.setClient(queryClient)\n }, [queryClient, devtools])\n\n React.useEffect(() => {\n devtools.setOnClose(props.onClose ?? (() => {}))\n }, [props.onClose, devtools])\n\n React.useEffect(() => {\n devtools.setErrorTypes(errorTypes || [])\n }, [errorTypes, devtools])\n\n React.useEffect(() => {\n devtools.setTheme(theme)\n }, [theme, devtools])\n\n React.useEffect(() => {\n if (ref.current) {\n devtools.mount(ref.current)\n }\n\n return () => {\n devtools.unmount()\n }\n }, [devtools])\n\n return (\n <div\n style={{ height: '500px', ...props.style }}\n className=\"tsqd-parent-container\"\n ref={ref}\n ></div>\n )\n}\n"],"mappings":";;;AACA,YAAY,WAAW;AACvB,SAAS,eAAe,sBAAsB;AAC9C,SAAS,kCAAkC;AAsGvC;AAzDG,SAAS,wBACd,OAC2B;AAC3B,QAAM,cAAc,eAAe,MAAM,MAAM;AAC/C,QAAM,MAAY,aAAuB,IAAI;AAC7C,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,CAAC,QAAQ,IAAU;AAAA,IACvB,IAAI,2BAA2B;AAAA,MAC7B,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,SAAS;AAAA,MACT;AAAA,MACA,gBAAgB;AAAA,MAChB,UAAU;AAAA,MACV,eAAe;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS,MAAM;AAAA,MACf;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH;AAEA,EAAM,gBAAU,MAAM;AACpB,aAAS,UAAU,WAAW;AAAA,EAChC,GAAG,CAAC,aAAa,QAAQ,CAAC;AAE1B,EAAM,gBAAU,MAAM;AACpB,aAAS,WAAW,MAAM,YAAY,MAAM;AAAA,IAAC,EAAE;AAAA,EACjD,GAAG,CAAC,MAAM,SAAS,QAAQ,CAAC;AAE5B,EAAM,gBAAU,MAAM;AACpB,aAAS,cAAc,cAAc,CAAC,CAAC;AAAA,EACzC,GAAG,CAAC,YAAY,QAAQ,CAAC;AAEzB,EAAM,gBAAU,MAAM;AACpB,aAAS,SAAS,KAAK;AAAA,EACzB,GAAG,CAAC,OAAO,QAAQ,CAAC;AAEpB,EAAM,gBAAU,MAAM;AACpB,QAAI,IAAI,SAAS;AACf,eAAS,MAAM,IAAI,OAAO;AAAA,IAC5B;AAEA,WAAO,MAAM;AACX,eAAS,QAAQ;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,EAAE,QAAQ,SAAS,GAAG,MAAM,MAAM;AAAA,MACzC,WAAU;AAAA,MACV;AAAA;AAAA,EACD;AAEL;","names":[]}
@@ -0,0 +1,147 @@
1
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
2
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
4
+ import { Options } from 'tsup';
5
+ import type { QueryClient } from '@tanstack/react-query';
6
+ import * as React_2 from 'react';
7
+ import type { Theme } from '@tanstack/query-devtools';
8
+ import { UserConfig } from 'vite';
9
+
10
+ export declare const default_alias: any[];
11
+
12
+ export declare const default_alias_1: any[];
13
+
14
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
15
+
16
+ export declare const default_alias_3: UserConfig;
17
+
18
+ declare namespace Devtools {
19
+ export {
20
+ ReactQueryDevtools,
21
+ DevtoolsOptions
22
+ }
23
+ }
24
+
25
+ export declare interface DevtoolsOptions {
26
+ /**
27
+ * Set this true if you want the dev tools to default to being open
28
+ */
29
+ initialIsOpen?: boolean;
30
+ /**
31
+ * The position of the React Query logo to open and close the devtools panel.
32
+ * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
33
+ * Defaults to 'bottom-right'.
34
+ */
35
+ buttonPosition?: DevtoolsButtonPosition;
36
+ /**
37
+ * The position of the React Query devtools panel.
38
+ * 'top' | 'bottom' | 'left' | 'right'
39
+ * Defaults to 'bottom'.
40
+ */
41
+ position?: DevtoolsPosition;
42
+ /**
43
+ * Custom instance of QueryClient
44
+ */
45
+ client?: QueryClient;
46
+ /**
47
+ * Use this so you can define custom errors that can be shown in the devtools.
48
+ */
49
+ errorTypes?: Array<DevtoolsErrorType>;
50
+ /**
51
+ * 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.
52
+ */
53
+ styleNonce?: string;
54
+ /**
55
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
56
+ */
57
+ shadowDOMTarget?: ShadowRoot;
58
+ /**
59
+ * Set this to true to hide disabled queries from the devtools panel.
60
+ */
61
+ hideDisabledQueries?: boolean;
62
+ /**
63
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
64
+ * Defaults to 'system'.
65
+ */
66
+ theme?: Theme;
67
+ }
68
+
69
+ declare namespace DevtoolsPanel {
70
+ export {
71
+ ReactQueryDevtoolsPanel,
72
+ DevtoolsPanelOptions
73
+ }
74
+ }
75
+
76
+ export declare interface DevtoolsPanelOptions {
77
+ /**
78
+ * Custom instance of QueryClient
79
+ */
80
+ client?: QueryClient;
81
+ /**
82
+ * Use this so you can define custom errors that can be shown in the devtools.
83
+ */
84
+ errorTypes?: Array<DevtoolsErrorType>;
85
+ /**
86
+ * 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.
87
+ */
88
+ styleNonce?: string;
89
+ /**
90
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
91
+ */
92
+ shadowDOMTarget?: ShadowRoot;
93
+ /**
94
+ * Custom styles for the devtools panel
95
+ * @default { height: '500px' }
96
+ * @example { height: '100%' }
97
+ * @example { height: '100%', width: '100%' }
98
+ */
99
+ style?: React_2.CSSProperties;
100
+ /**
101
+ * Callback function that is called when the devtools panel is closed
102
+ */
103
+ onClose?: () => unknown;
104
+ /**
105
+ * Set this to true to hide disabled queries from the devtools panel.
106
+ */
107
+ hideDisabledQueries?: boolean;
108
+ /**
109
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
110
+ * Defaults to 'system'.
111
+ */
112
+ theme?: Theme;
113
+ }
114
+
115
+ export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
116
+
117
+ /**
118
+ * @param {Object} opts - Options for building configurations.
119
+ * @param {string[]} opts.entry - The entry array.
120
+ * @returns {import('tsup').Options}
121
+ */
122
+ export declare function legacyConfig(opts: {
123
+ entry: string[];
124
+ }): Options;
125
+
126
+ /**
127
+ * @param {Object} opts - Options for building configurations.
128
+ * @param {string[]} opts.entry - The entry array.
129
+ * @returns {import('tsup').Options}
130
+ */
131
+ export declare function modernConfig(opts: {
132
+ entry: string[];
133
+ }): Options;
134
+
135
+ export declare function ReactQueryDevtools(props: DevtoolsOptions): React_2.ReactElement | null;
136
+
137
+ export declare const ReactQueryDevtools_alias_1: (typeof Devtools)['ReactQueryDevtools'];
138
+
139
+ export declare const ReactQueryDevtools_alias_2: typeof Devtools.ReactQueryDevtools;
140
+
141
+ export declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React_2.ReactElement | null;
142
+
143
+ export declare const ReactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'];
144
+
145
+ export declare const ReactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.ReactQueryDevtoolsPanel;
146
+
147
+ export { }
@@ -0,0 +1,147 @@
1
+ import type { DevtoolsButtonPosition } from '@tanstack/query-devtools';
2
+ import type { DevtoolsErrorType } from '@tanstack/query-devtools';
3
+ import type { DevtoolsPosition } from '@tanstack/query-devtools';
4
+ import { Options } from 'tsup';
5
+ import type { QueryClient } from '@tanstack/react-query';
6
+ import * as React_2 from 'react';
7
+ import type { Theme } from '@tanstack/query-devtools';
8
+ import { UserConfig } from 'vite';
9
+
10
+ export declare const default_alias: any[];
11
+
12
+ export declare const default_alias_1: any[];
13
+
14
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
15
+
16
+ export declare const default_alias_3: UserConfig;
17
+
18
+ declare namespace Devtools {
19
+ export {
20
+ ReactQueryDevtools,
21
+ DevtoolsOptions
22
+ }
23
+ }
24
+
25
+ export declare interface DevtoolsOptions {
26
+ /**
27
+ * Set this true if you want the dev tools to default to being open
28
+ */
29
+ initialIsOpen?: boolean;
30
+ /**
31
+ * The position of the React Query logo to open and close the devtools panel.
32
+ * 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
33
+ * Defaults to 'bottom-right'.
34
+ */
35
+ buttonPosition?: DevtoolsButtonPosition;
36
+ /**
37
+ * The position of the React Query devtools panel.
38
+ * 'top' | 'bottom' | 'left' | 'right'
39
+ * Defaults to 'bottom'.
40
+ */
41
+ position?: DevtoolsPosition;
42
+ /**
43
+ * Custom instance of QueryClient
44
+ */
45
+ client?: QueryClient;
46
+ /**
47
+ * Use this so you can define custom errors that can be shown in the devtools.
48
+ */
49
+ errorTypes?: Array<DevtoolsErrorType>;
50
+ /**
51
+ * 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.
52
+ */
53
+ styleNonce?: string;
54
+ /**
55
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
56
+ */
57
+ shadowDOMTarget?: ShadowRoot;
58
+ /**
59
+ * Set this to true to hide disabled queries from the devtools panel.
60
+ */
61
+ hideDisabledQueries?: boolean;
62
+ /**
63
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
64
+ * Defaults to 'system'.
65
+ */
66
+ theme?: Theme;
67
+ }
68
+
69
+ declare namespace DevtoolsPanel {
70
+ export {
71
+ ReactQueryDevtoolsPanel,
72
+ DevtoolsPanelOptions
73
+ }
74
+ }
75
+
76
+ export declare interface DevtoolsPanelOptions {
77
+ /**
78
+ * Custom instance of QueryClient
79
+ */
80
+ client?: QueryClient;
81
+ /**
82
+ * Use this so you can define custom errors that can be shown in the devtools.
83
+ */
84
+ errorTypes?: Array<DevtoolsErrorType>;
85
+ /**
86
+ * 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.
87
+ */
88
+ styleNonce?: string;
89
+ /**
90
+ * Use this so you can attach the devtool's styles to specific element in the DOM.
91
+ */
92
+ shadowDOMTarget?: ShadowRoot;
93
+ /**
94
+ * Custom styles for the devtools panel
95
+ * @default { height: '500px' }
96
+ * @example { height: '100%' }
97
+ * @example { height: '100%', width: '100%' }
98
+ */
99
+ style?: React_2.CSSProperties;
100
+ /**
101
+ * Callback function that is called when the devtools panel is closed
102
+ */
103
+ onClose?: () => unknown;
104
+ /**
105
+ * Set this to true to hide disabled queries from the devtools panel.
106
+ */
107
+ hideDisabledQueries?: boolean;
108
+ /**
109
+ * Set this to 'light', 'dark', or 'system' to change the theme of the devtools panel.
110
+ * Defaults to 'system'.
111
+ */
112
+ theme?: Theme;
113
+ }
114
+
115
+ export declare type DevtoolsPanelOptions_alias_1 = DevtoolsPanel.DevtoolsPanelOptions;
116
+
117
+ /**
118
+ * @param {Object} opts - Options for building configurations.
119
+ * @param {string[]} opts.entry - The entry array.
120
+ * @returns {import('tsup').Options}
121
+ */
122
+ export declare function legacyConfig(opts: {
123
+ entry: string[];
124
+ }): Options;
125
+
126
+ /**
127
+ * @param {Object} opts - Options for building configurations.
128
+ * @param {string[]} opts.entry - The entry array.
129
+ * @returns {import('tsup').Options}
130
+ */
131
+ export declare function modernConfig(opts: {
132
+ entry: string[];
133
+ }): Options;
134
+
135
+ export declare function ReactQueryDevtools(props: DevtoolsOptions): React_2.ReactElement | null;
136
+
137
+ export declare const ReactQueryDevtools_alias_1: (typeof Devtools)['ReactQueryDevtools'];
138
+
139
+ export declare const ReactQueryDevtools_alias_2: typeof Devtools.ReactQueryDevtools;
140
+
141
+ export declare function ReactQueryDevtoolsPanel(props: DevtoolsPanelOptions): React_2.ReactElement | null;
142
+
143
+ export declare const ReactQueryDevtoolsPanel_alias_1: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'];
144
+
145
+ export declare const ReactQueryDevtoolsPanel_alias_2: typeof DevtoolsPanel.ReactQueryDevtoolsPanel;
146
+
147
+ export { }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/index.ts
32
+ var index_exports = {};
33
+ __export(index_exports, {
34
+ ReactQueryDevtools: () => ReactQueryDevtools2,
35
+ ReactQueryDevtoolsPanel: () => ReactQueryDevtoolsPanel2
36
+ });
37
+ module.exports = __toCommonJS(index_exports);
38
+ var Devtools = __toESM(require("./ReactQueryDevtools.cjs"), 1);
39
+ var DevtoolsPanel = __toESM(require("./ReactQueryDevtoolsPanel.cjs"), 1);
40
+ var ReactQueryDevtools2 = process.env.NODE_ENV !== "development" ? function() {
41
+ return null;
42
+ } : Devtools.ReactQueryDevtools;
43
+ var ReactQueryDevtoolsPanel2 = process.env.NODE_ENV !== "development" ? function() {
44
+ return null;
45
+ } : DevtoolsPanel.ReactQueryDevtoolsPanel;
46
+ // Annotate the CommonJS export names for ESM import in node:
47
+ 0 && (module.exports = {
48
+ ReactQueryDevtools,
49
+ ReactQueryDevtoolsPanel
50
+ });
51
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["'use client'\n\nimport * as Devtools from './ReactQueryDevtools'\nimport * as DevtoolsPanel from './ReactQueryDevtoolsPanel'\n\nexport const ReactQueryDevtools: (typeof Devtools)['ReactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : Devtools.ReactQueryDevtools\n\nexport const ReactQueryDevtoolsPanel: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : DevtoolsPanel.ReactQueryDevtoolsPanel\n\nexport type DevtoolsPanelOptions = DevtoolsPanel.DevtoolsPanelOptions\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,+BAAAC;AAAA;AAAA;AAEA,eAA0B;AAC1B,oBAA+B;AAExB,IAAMD,sBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACS;AAER,IAAMC,2BACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACc;","names":["ReactQueryDevtools","ReactQueryDevtoolsPanel"]}
@@ -0,0 +1,3 @@
1
+ export { ReactQueryDevtools_alias_1 as ReactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { ReactQueryDevtoolsPanel_alias_1 as ReactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.cjs';
@@ -0,0 +1,3 @@
1
+ export { ReactQueryDevtools_alias_1 as ReactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { ReactQueryDevtoolsPanel_alias_1 as ReactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
3
+ export { DevtoolsPanelOptions_alias_1 as DevtoolsPanelOptions } from './_tsup-dts-rollup.js';
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ // src/index.ts
4
+ import * as Devtools from "./ReactQueryDevtools.js";
5
+ import * as DevtoolsPanel from "./ReactQueryDevtoolsPanel.js";
6
+ var ReactQueryDevtools2 = process.env.NODE_ENV !== "development" ? function() {
7
+ return null;
8
+ } : Devtools.ReactQueryDevtools;
9
+ var ReactQueryDevtoolsPanel2 = process.env.NODE_ENV !== "development" ? function() {
10
+ return null;
11
+ } : DevtoolsPanel.ReactQueryDevtoolsPanel;
12
+ export {
13
+ ReactQueryDevtools2 as ReactQueryDevtools,
14
+ ReactQueryDevtoolsPanel2 as ReactQueryDevtoolsPanel
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["'use client'\n\nimport * as Devtools from './ReactQueryDevtools'\nimport * as DevtoolsPanel from './ReactQueryDevtoolsPanel'\n\nexport const ReactQueryDevtools: (typeof Devtools)['ReactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : Devtools.ReactQueryDevtools\n\nexport const ReactQueryDevtoolsPanel: (typeof DevtoolsPanel)['ReactQueryDevtoolsPanel'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : DevtoolsPanel.ReactQueryDevtoolsPanel\n\nexport type DevtoolsPanelOptions = DevtoolsPanel.DevtoolsPanelOptions\n"],"mappings":";;;AAEA,YAAY,cAAc;AAC1B,YAAY,mBAAmB;AAExB,IAAMA,sBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACS;AAER,IAAMC,2BACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACc;","names":["ReactQueryDevtools","ReactQueryDevtoolsPanel"]}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/production.ts
32
+ var production_exports = {};
33
+ __export(production_exports, {
34
+ ReactQueryDevtools: () => ReactQueryDevtools2,
35
+ ReactQueryDevtoolsPanel: () => ReactQueryDevtoolsPanel2
36
+ });
37
+ module.exports = __toCommonJS(production_exports);
38
+ var Devtools = __toESM(require("./ReactQueryDevtools.cjs"), 1);
39
+ var DevtoolsPanel = __toESM(require("./ReactQueryDevtoolsPanel.cjs"), 1);
40
+ var ReactQueryDevtools2 = Devtools.ReactQueryDevtools;
41
+ var ReactQueryDevtoolsPanel2 = DevtoolsPanel.ReactQueryDevtoolsPanel;
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ ReactQueryDevtools,
45
+ ReactQueryDevtoolsPanel
46
+ });
47
+ //# sourceMappingURL=production.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/production.ts"],"sourcesContent":["'use client'\n\nimport * as Devtools from './ReactQueryDevtools'\nimport * as DevtoolsPanel from './ReactQueryDevtoolsPanel'\n\nexport const ReactQueryDevtools = Devtools.ReactQueryDevtools\nexport const ReactQueryDevtoolsPanel = DevtoolsPanel.ReactQueryDevtoolsPanel\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,+BAAAC;AAAA;AAAA;AAEA,eAA0B;AAC1B,oBAA+B;AAExB,IAAMD,sBAA8B;AACpC,IAAMC,2BAAwC;","names":["ReactQueryDevtools","ReactQueryDevtoolsPanel"]}
@@ -0,0 +1,2 @@
1
+ export { ReactQueryDevtools_alias_2 as ReactQueryDevtools } from './_tsup-dts-rollup.cjs';
2
+ export { ReactQueryDevtoolsPanel_alias_2 as ReactQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
@@ -0,0 +1,2 @@
1
+ export { ReactQueryDevtools_alias_2 as ReactQueryDevtools } from './_tsup-dts-rollup.js';
2
+ export { ReactQueryDevtoolsPanel_alias_2 as ReactQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
@@ -0,0 +1,12 @@
1
+ "use client";
2
+
3
+ // src/production.ts
4
+ import * as Devtools from "./ReactQueryDevtools.js";
5
+ import * as DevtoolsPanel from "./ReactQueryDevtoolsPanel.js";
6
+ var ReactQueryDevtools2 = Devtools.ReactQueryDevtools;
7
+ var ReactQueryDevtoolsPanel2 = DevtoolsPanel.ReactQueryDevtoolsPanel;
8
+ export {
9
+ ReactQueryDevtools2 as ReactQueryDevtools,
10
+ ReactQueryDevtoolsPanel2 as ReactQueryDevtoolsPanel
11
+ };
12
+ //# sourceMappingURL=production.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/production.ts"],"sourcesContent":["'use client'\n\nimport * as Devtools from './ReactQueryDevtools'\nimport * as DevtoolsPanel from './ReactQueryDevtoolsPanel'\n\nexport const ReactQueryDevtools = Devtools.ReactQueryDevtools\nexport const ReactQueryDevtoolsPanel = DevtoolsPanel.ReactQueryDevtoolsPanel\n"],"mappings":";;;AAEA,YAAY,cAAc;AAC1B,YAAY,mBAAmB;AAExB,IAAMA,sBAA8B;AACpC,IAAMC,2BAAwC;","names":["ReactQueryDevtools","ReactQueryDevtoolsPanel"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-query-devtools",
3
- "version": "5.94.4",
3
+ "version": "5.94.5",
4
4
  "description": "Developer tools to interact with and visualize the TanStack/react-query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "!src/__tests__"
60
60
  ],
61
61
  "dependencies": {
62
- "@tanstack/query-devtools": "5.94.4"
62
+ "@tanstack/query-devtools": "5.94.5"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@testing-library/react": "^16.1.0",
@@ -67,11 +67,11 @@
67
67
  "@vitejs/plugin-react": "^4.3.4",
68
68
  "npm-run-all2": "^5.0.0",
69
69
  "react": "^19.2.1",
70
- "@tanstack/react-query": "5.94.4"
70
+ "@tanstack/react-query": "5.94.5"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": "^18 || ^19",
74
- "@tanstack/react-query": "^5.94.4"
74
+ "@tanstack/react-query": "^5.94.5"
75
75
  },
76
76
  "scripts": {
77
77
  "clean": "premove ./build ./coverage ./dist-ts",